def __init__(self, port, baudrate): UwfProcessor.__init__(self, port, baudrate) # Expected registration values for an RM1XX self.expected_handle = 0 self.expected_num_banks = 1 self.expected_bank_algo = 1
def __init__(self, port, baudrate): UwfProcessor.__init__(self, port, baudrate) # Setup the DBus connection to the device service self.bus = dbus.SystemBus() self.device_svc = dbus.Interface( self.bus.get_object('com.lairdtech.device.DeviceService', '/com/lairdtech/device/DeviceService'), 'com.lairdtech.device.public.DeviceInterface') # Expected registration values for an IG60 BL654 self.expected_handle = 0 self.expected_num_banks = 1 self.expected_bank_algo = 1