Assign com port (windows)
Posted: Sat Feb 18, 2023 8:56 am
I have several ESP32 projects going on simultaneously, (also ESP8266's) and have 2 or 3 plugged into a powered USB hub at the same time.
Windows is happy enough to assign COM numbers to the devices and all is good.
However, each time I disconnect and connect the devices from the hub, Windows may assign different COM numbers to each.
An example:
If I connect ESP32-1 I may get COM15, then ESP32-2 may get COM16.
If I disconnect both then attach them in reverse order, Windows will assign the opposite COM numbers (ESP32-1 will get COM16 and ESP32-2 will get COM15).
Is there any way I can differentiate the two devices sufficiently enough so Windows will assign the same COM numbers to the same device? (Like the way UUID is used on hard drives in Linux to assign device names.)
Thanks, Mark.
Windows is happy enough to assign COM numbers to the devices and all is good.
However, each time I disconnect and connect the devices from the hub, Windows may assign different COM numbers to each.
An example:
If I connect ESP32-1 I may get COM15, then ESP32-2 may get COM16.
If I disconnect both then attach them in reverse order, Windows will assign the opposite COM numbers (ESP32-1 will get COM16 and ESP32-2 will get COM15).
Is there any way I can differentiate the two devices sufficiently enough so Windows will assign the same COM numbers to the same device? (Like the way UUID is used on hard drives in Linux to assign device names.)
Thanks, Mark.