-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are many non-unique VID/PID pairs in boards.txt
#9702
Comments
the reason is that they all use the same peripheral that has hardware set VID and PID and are not changeable by software. |
But @me-no-dev in #9690 you said peripheral-hardcoded VID/PID should NOT be in Originally I was complaining they weren't there, you said they shouldn't be, now I'm talking about the ones that are there, you say they should be? Which is it? I am confused and misunderstanding surely |
wether they are there or not, does not really make a difference. Or does it for you? Either way the board can not be properly identified. Exception of course is when they use TinyUSB (like Adafruit boards, etc.). Still this option is available only on S2 and S3 currently (that have a full USB peripheral). |
It does for me...! Backing up, my use case (which I think is common!!) is not "here's a serial port, what board is attached?" but instead "this is the board I'm using, which of these serial ports is it connected to?", because lots of random peripherals (my webcam, for example) show up as serial ports. So without some sort of VID/PID matching I'm left to guess like "it's probably the highest numbered one because I connected it last" or "let me plug and unplug it and see which one goes away" or "let's just try all of them". So it would be helpful (to me!) to have the expected VID/PID even if it's not unique. BUT I was led to believe from the other bug (and documentation) that this is actively harmful to the user experience with the IDE, so I was like "bah" and then I was like "ok if it's actively harmful to have nonunique VID/PIDs in boards.txt, we should get rid of them, right?" and so here we are. |
I have to check the current state, but last the IDE2 was showing always some random board that matches, which causes port to not be recognized on reboot and so on mess. If that is all fixed and instead the first board that matches is displayed, we can add a "default" board with the vid and pid and name it something like "ESP32 Family MCU". |
Board
Many many boards
Device Description
Many many boards
Hardware Configuration
N/A
Version
latest master (checkout manually)
IDE Name
All
Operating System
All
Flash frequency
N/A
PSRAM enabled
yes
Upload speed
N/A
Description
Per the discussion in #9690, and per the "USB VID/PID" section of the Arduino Platform specification,
This suggests that
boards.txt
should not include VID/PID pairs that are "generic" from a USB/serial converter, or from the fixed VID/PID of a chip's Serial/JTAG unit, or from the default VID/PID of a chip's USB OTG module. Otherwise, many different boards might be confused with each other, and the Arduino IDE tends to pick a random one of those choices, and it's a confusing user experience.However, many entries in
boards.txt
currently have nonunique Espressif-generic VID/PID entries, which should probably be removed?Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: