示例#1
0
文件: easyEBB.py 项目: vsimonis/worm1
 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
示例#2
0
文件: easyEBB.py 项目: vsimonis/worm3
 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
示例#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