feat: include serial number in list-ports output#998
feat: include serial number in list-ports output#998vfabr wants to merge 3 commits intoesp-rs:mainfrom
Conversation
SergioGasquez
left a comment
There was a problem hiding this comment.
Thanks for the contribution! I think it makes sense to add this information, but maybe on a different format? For USB-Serial/JTAG the format is good but for UART ports:
/dev/ttyUSB0 10C4:EA60:dc414a793059ed11a99bb5301d62bc44 Silicon Labs CP2102N USB to UART Bridge Controller
|
My problems are:
It seems JTAG serial_number based on MAC address and hardware burned into chip but USB_to_UART_Bridge may not have it or have the same. I've tried a few boards with USB and it looks like serial_number is not good choice here. It looks indistinguishable but interesting that Linux have the same problem compare with JTAG I don't see any good solution for USB except to use MAC address for this aims. But it can be more complicated ... and I know nothing about the previous and next esp generations WROOM or P4 because I don't have it :)) For my current aims this is a good enough solution because I use only JTAG boards now. But I agree that could be more common and better implementation here. I need more time to try to do it :) |
The current list-ports output lacks serial numbers, making it impossible to identify specific devices when multiple ESP32 are connected and now it is possible to get a port for the flash by PROBE.