def _autodiscover_usb(self):
if sys.platform.startswith('<STR_LIT>'):<EOL><INDENT>ports = ['<STR_LIT>' % (i + <NUM_LIT:1>) for i in range(<NUM_LIT>)]<EOL><DEDENT>elif sys.platform.startswith('<STR_LIT>') or sys.platform.startswith('<STR_LIT>'):<EOL><INDENT>ports = glob.glob('<STR_LIT>')<EOL><DEDENT>elif sys.platform.startswith('<STR_LIT>'):<EOL><INDENT>ports = glob.glob('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>raise EnvironmentError('<STR_LIT>')<EOL><DEDENT>match = None<EOL>for port in ports:<EOL><INDENT>try:<EOL><INDENT>s = serial.Serial(port)<EOL>s.close()<EOL>if (port.find("<STR_LIT>") > -<NUM_LIT:1> and<EOL>port.find('<STR_LIT>') == -<NUM_LIT:1>):<EOL><INDENT>self.USB_PORT = port<EOL>match = port<EOL>break<EOL><DEDENT><DEDENT>except (OSError, serial.SerialException):<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return match<EOL>
Attempt to find the serial adapter for the hottop.

        This will loop over the USB serial interfaces looking for a connection
        that appears to match the naming convention of the Hottop roaster.

        :returns: string