Closed cederom closed 3 weeks ago
Hi @cederom, Thank you for the suggestion!
This is an interesting feature, but completely out of the scope of esptool.
Esptool is a utility for working with chips from the ESP family. It is agnostic to DevKit configuration and components, such as USB-to-UART bridges. What's more, this would only work for Silicon Labs cp210x chips. What about FTDI or CH340 chips?
The idea to add a serial number filter option sounds good, we'll most likely include that, but the logic to program cp210x chips has to stay in a separate package.
Thank you @radimkarnis :-) I thought so but I had to try this seems mandatory feature when more devices are under test but its not here yet and needs some time/work :-)
I also proposed this idea to PySerial https://github.com/pyserial/pyserial/issues/779 that you use and may leverage this functionality whenever it shows up or from another module :-)
As a big company you have better advantage to convince vendors to create this kind of tool (i.e. python module) whenever it is for CP201X or CH34XX it seems a really useful feature! :-)
simple use udev rules (at least on linux) to make uniq symlink based on serial number of chip chip.
Is your feature request related to a problem?
/dev/cuaU*
) numbers are assigned randomly on attach. Problem is even worse then 16 port USB HUBs are used with dynamic port power cycling.Describe the solution you'd like
esptool.py --port-filter
to also filter based on SN.Describe alternatives you've considered
cp210x-cfg
works fine and allows Name and SN change to CP2102 on the ESP32-DevKitC several times.Additional context