Example #1
0
    def discover(cls):
        """Return tuple with discovered serial connection."""
        for port in serialenum.enumerate():
            ser = _SerialCommand(port, 19200)
            if ser.exec_cmd(_commands.test) is not None:
                return cls((port, 19200))

        return None
Example #2
0
File: elm.py Project: djs/obdii
def available_ports():
    return serialenum.enumerate()
Example #3
0
def available_ports():
    return serialenum.enumerate()