Skip to content

Windows: serial number of USB com port may be truncated #491

@joergschoebel

Description

@joergschoebel

Hi,

when using serial.tools.list_ports_windows, the serial number of the USB serial port may be truncated. I have just come across this issue when using the default settings of an Atmel microcontroller for a usb-serial interface, such as in
http://asf.atmel.com/docs/latest/uc3l/html/udc_use_case_2.html

The default serial number used by Atmel is "12...EF". Now, list_port_windows.py restricts the serial number of a hardware ID (see line 213 for "USB" devices, and probably also line 251 for "FTDIBUS" devices) in the grep command to \w , i.e. [a-zA-Z0-9_]. In my opinion, it should rather be \S (oder similar), to allow the full set of characters in the serial number.

Kind Regards
Joerg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions