USB product string, as reported by device. USB manufacturer string, as reported by device. USB device location string (“-…”) manufacturer ¶ Platform does not support extended info). USB specific data, these are all None if it is not an USB device (or the Returned as third element when accessed by index. Returned as second element when accessed by index. Information returned as first element when accessed by index. It supports indexedĪccess for backwards compatibility, as in port, desc, hwid = info. This object holds information about a serial port. Generates, but includes only those entries that match the regexp. Returns an iterable that contains the same data that comports() Port name,ĭescription and hwid are searched (case insensitive). Search for ports using a regular expression. include_links ( bool) – include symlinks under /dev when they pointĪn iterable that yields ListPortInfo objects, see also.regexp – regular expression (see stdlib re).grep ( regexp, include_links=False ) ¶ Parameters: This implies that the sameĭevice listed twice, once under its original name and once under linked Tested if they are a link to a known serial port device. If include_links is true, all devices under /dev are inspected and The USB info is also available as attributes of SER (serial number), LOCATION (hierarchy), which makes them searchable the ListPortInfo.hwid string contains VID:PID, Under Linux, OSX and Windows, extended information will be available for Systems description and hardware ID will not be available Support is limited to a number of operating systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |