Skip to content

Show USB serial numbers to tell identical boards apart #1142

Open

Description

@SergioGasquez

Motivations

With several identical boards connected, list-ports and the interactive port selection show identical rows, so there's no way to tell which port is which board:

/dev/cu.usbmodem111301    303A:1001  Espressif     USB JTAG/serial debug unit
/dev/cu.usbmodem111401    303A:1001  Espressif     USB JTAG/serial debug unit
/dev/cu.usbserial-11110   10C4:EA60  Silicon Labs  CP2102N USB to UART Bridge Controller
/dev/cu.usbserial-11120   10C4:EA60  Silicon Labs  CP2102N USB to UART Bridge Controller

The USB serial number is available in UsbPortInfo::serial_number. For the USB-Serial-JTAG peripheral it is the chip's MAC address (D0:CF:13:ED:BC:94 and 60:55:F9:F5:20:D4 here), which board-info also prints. CP2102N bridges have unique serial numbers too (e.g. fea9cc9ca470f011a34d8a301045c30f).

  • Would you like to implement this feature? n

Solution

Show the serial number as an extra column in list-ports, and in the interactive port selection when two ports have the same VID/PID and product. --name-only stays unchanged.

Alternatives

Only show it with a --verbose flag.

Additional context

Related to #1023 (selecting a port by VID/PID). Selecting by serial number would be a natural follow-up.

Activity

  1. added
    port detection
    feature request
    on Nov 16, 2026
  2. Jay-Karson commented on Nov 21, 2026

    @Jay-Karson

    Hi! I'm interested in working on this issue as my first contribution to espflash (and open source in general). I'm familiar with espressif software (mainly esp-idf) and am trying to learn/improve my rust skills, so I figured this would be a great first step. Please let me know if there's any information or design considerations I should familiarize myself with before getting started!

  3. SergioGasquez commented on Nov 21, 2026

    @SergioGasquez
    MemberAuthor

    Hi! Great, looking forward to your contributiuons! As a reference, you can use old PRs and check the esp-hal documentation folder (somethings also apply here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestport detection

    Type

    No type

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions