예제 #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