Skip to content

Wrong serial number and missing interface number for FTDI multi-port device on Windows #203

@sirhcel

Description

@sirhcel

While looking into #201, I found a wrong serial number '5' reported for a FTDI 2232D which does not have a serial number (due to not having an external EEPROM fitted):

>cargo run --example list_ports
[...]
Found 2 ports:
  COM9
    Type: USB
    VID:0403 PID:6010
     Serial Number: 5
      Manufacturer: FTDI
           Product: USB Serial Port (COM9)
  COM10
    Type: USB
    VID:0403 PID:6010
     Serial Number: 5
      Manufacturer: FTDI
           Product: USB Serial Port (COM10)

The same serial number is also reported by pySerial:

>python -m serial.tools.list_ports -v
[...]
COM9
    desc: USB Serial Port (COM9)
    hwid: USB VID:PID=0403:6010 SER=5
COM10
    desc: USB Serial Port (COM10)
    hwid: USB VID:PID=0403:6010 SER=5
3 ports found

Listing the ports on macOS gives the espected result of no serial number at all:

$ cargo run --example list_ports
[...]
  /dev/cu.usbserial-21400
    Type: USB
    VID:0403 PID:6010
     Serial Number:
      Manufacturer: FTDI
           Product: Dual RS232
  /dev/tty.usbserial-21400
    Type: USB
    VID:0403 PID:6010
     Serial Number:
      Manufacturer: FTDI
           Product: Dual RS232
[...]

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