Ejemplo n.º 1
0
 def getSerialPort( self ):
     """
     Returns details of the serial connection
     """
     #try to connect to EBB devices
     for strComPort in eggbot_scanlinux.findEiBotBoards():
         serialPort = self.testSerialPort( strComPort )
         if serialPort:
             self.actualSerialPort = strComPort
             return serialPort
     
     #if that fails, try any likely ports
     for strComPort in eggbot_scanlinux.findPorts():
         serialPort = self.testSerialPort( strComPort )
         if serialPort:
             self.actualSerialPort = strComPort
             return serialPort
Ejemplo n.º 2
0
 def getSerialPort( self ):
     """
     Returns details of the serial connection
     """
     logging.debug('Get Serial Port Start')
     #try to connect to EBB devices
     for strComPort in eggbot_scanlinux.findEiBotBoards():
         logger.debug('trying to connect to EBB device: %s' % str(strComPort) )
         serialPort = self.testSerialPort( strComPort )
         if serialPort:
             self.actualSerialPort = strComPort
             return serialPort
     
     #if that fails, try any likely ports
     logger.debug('No EBB from scan_linux')
     for strComPort in eggbot_scanlinux.findPorts():
         serialPort = self.testSerialPort( strComPort )
         if serialPort:
             self.actualSerialPort = strComPort
             return serialPort
Ejemplo n.º 3
0
    def getSerialPort(self):
        """
        Returns details of the serial connection
        """
        logging.debug('Get Serial Port Start')
        #try to connect to EBB devices
        for strComPort in eggbot_scanlinux.findEiBotBoards():
            logger.debug('trying to connect to EBB device: %s' %
                         str(strComPort))
            serialPort = self.testSerialPort(strComPort)
            if serialPort:
                self.actualSerialPort = strComPort
                return serialPort

        #if that fails, try any likely ports
        logger.debug('No EBB from scan_linux')
        for strComPort in eggbot_scanlinux.findPorts():
            serialPort = self.testSerialPort(strComPort)
            if serialPort:
                self.actualSerialPort = strComPort
                return serialPort