def prelude(self, args): port = args.port builder = LinkBuilder() if port == 'scan': port = builder.scan() self.link = link = LinkBuilder().build(args.radio_type, port) link.open() self.pump = Pump(self.link, args.serial) self.model = None if args.no_rf_prelude: return if not args.autoinit: if args.init: self.pump.power_control(minutes=args.session_life) else: self.autoinit(args) self.sniff_model()
def prelude(self, args): port = args.port builder = LinkBuilder() if port == 'scan': port = builder.scan() self.link = link = LinkBuilder().build(args.radio_type, port) link.open() # get link # drain rx buffer self.pump = Pump(self.link, args.serial) # Early return if we don't want to send any radio comms. Useful from both # the command line and for MMTuneApp if args.no_rf_prelude: return if not args.autoinit: if args.init: self.pump.power_control(minutes=args.session_life) else: self.autoinit(args) self.sniff_model()
def prelude (self, args): port = args.port builder = LinkBuilder( ) if port == 'scan': port = builder.scan( ) self.link = link = LinkBuilder().build(args.radio_type, port) link.open() # get link # drain rx buffer self.pump = Pump(self.link, args.serial) # Early return if we don't want to send any radio comms. Useful from both # the command line and for MMTuneApp if args.no_rf_prelude: return if not args.autoinit: if args.init: self.pump.power_control(minutes=args.session_life) else: self.autoinit(args) self.sniff_model()