Ejemplo n.º 1
0
 def __init__(self, serial_device):
     Device.__init__(self, mode='t', device_id=serial_device)
     self.logger = logging.getLogger(
         "mycodo.device.atlas_scientific_ftdi_{dev}".format(dev=serial_device))
     time.sleep(1)
     self.flush()
     self.setup = True
Ejemplo n.º 2
0
    def __init__(self, serial_device):
        Device.__init__(self, mode='t', device_id=serial_device)
        self.logger = logging.getLogger(
            "{}_{}".format(__name__, serial_device))

        time.sleep(1)
        self.flush()
        self.setup = True
Ejemplo n.º 3
0
 def __init__(self, serial_device):
     Device.__init__(self, mode='t', device_id=serial_device)
     self.logger = logging.getLogger(
         "mycodo.device.atlas_scientific_ftdi_{dev}".format(
             dev=serial_device))
     time.sleep(1)
     self.flush()
     self.setup = True
Ejemplo n.º 4
0
    def __init__(self, serial_device):
        Device.__init__(self, mode='t', device_id=serial_device)
        super(AtlasScientificFTDI, self).__init__(interface='FTDI', name=serial_device.replace("/", "_"))

        self.logger = logging.getLogger(
            "{}_{}".format(__name__, serial_device))

        self.send_cmd("C,0")  # turn off continuous mode
        time.sleep(1)
        self.flush()

        (board,
         revision,
         firmware_version) = self.get_board_version()

        self.logger.info(
            "Atlas Scientific Board: {brd}, Rev: {rev}, Firmware: {fw}".format(
                brd=board,
                rev=revision,
                fw=firmware_version))

        self.setup = True
Ejemplo n.º 5
0
	def __init__(self, sn):
		Device.__init__(self, mode='t', device_id=sn)
	def __init__(self, sn):
		Device.__init__(self, mode='t', device_id=sn)