Example #1
0
 def initDevice(self):
     logger.debug("deviceserial initDevice start.")
     self.using_dev = 0;
     self.using_dummy = 0;
     try :
       self.createSERIALDevice()
     except :
       logger.warning('Serial device  = ' + str(DEVICE) + ' and BAUDRATE = ' + str(BAUDRATE) + ' not found. Using dummy device')
       self.p = track_bola_utils.dummydevice()
       self.using_dummy = 1;
       self.using_dev = 0;
     logger.debug("deviceserial initDevice end.")
Example #2
0
 def initDevice(self):
     logger.debug("deviceusb initDevice start.")
     self.using_dev = 0;
     self.using_dummy = 0;
     try :
       self.createUSBDevice()
     except :
       logger.warning('USB device idVendor = ' + str(hex(IDVendor)) + ' and idProduct = ' + str(hex(IDProduct)) + ' not found. Using dummy device')
       self.p = track_bola_utils.dummydevice()
       self.using_dummy = 1;
       self.using_dev = 0;
     logger.debug("deviceusb initDevice end.")
Example #3
0
 def initDevice(self):
     logger.debug("deviceserial initDevice start.")
     self.using_dev = 0
     self.using_dummy = 0
     try:
         self.createSERIALDevice()
     except:
         logger.warning('Serial device  = ' + str(DEVICE) +
                        ' and BAUDRATE = ' + str(BAUDRATE) +
                        ' not found. Using dummy device')
         self.p = track_bola_utils.dummydevice()
         self.using_dummy = 1
         self.using_dev = 0
     logger.debug("deviceserial initDevice end.")
Example #4
0
 def initDevice(self):
     logger.debug("deviceusb initDevice start.")
     self.using_dev = 0
     self.using_dummy = 0
     try:
         self.createUSBDevice()
     except:
         logger.warning('USB device idVendor = ' + str(hex(IDVendor)) +
                        ' and idProduct = ' + str(hex(IDProduct)) +
                        ' not found. Using dummy device')
         self.p = track_bola_utils.dummydevice()
         self.using_dummy = 1
         self.using_dev = 0
     logger.debug("deviceusb initDevice end.")