dhrosa / circuitpython_tool

Command-line tool for interacting with CircuitPython devices
MIT License
2 stars 0 forks source link

Matching partition devices to serial devices fails for Raspberry Pi Pico #7

Closed dhrosa closed 7 months ago

dhrosa commented 7 months ago

The Pico doesn't use the same USB descriptor strings in the partition device and serial device, the integer IDs match however though

udevadm info --export-db entries for device:

CIRCUITPY partition:

E: ID_USB_MODEL=Pico_W
E: ID_USB_MODEL_ENC=Pico\x20W\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_USB_MODEL_ID=8120
E: ID_USB_SERIAL=Raspberr_Pico_W_E661801017488C39-0:0
E: ID_USB_SERIAL_SHORT=E661801017488C39
E: ID_USB_VENDOR=Raspberr
E: ID_USB_VENDOR_ENC=Raspberr
E: ID_USB_VENDOR_ID=239a

Serial TTY:

E: ID_USB_MODEL=Pico_W
E: ID_USB_MODEL_ENC=Pico\x20W
E: ID_USB_MODEL_ID=8120
E: ID_USB_SERIAL=Raspberry_Pi_Pico_W_E661801017488C39
E: ID_USB_SERIAL_SHORT=E661801017488C39
E: ID_USB_VENDOR=Raspberry_Pi
E: ID_USB_VENDOR_ENC=Raspberry\x20Pi
E: ID_USB_VENDOR_ID=239a