Scan by VendorID/Product ID for USB Serial devices
Brought to you by:
cliechti
We needed to be able to tie a VendorID/Product ID from a serial port to the device endpoint (aka COM1 or /dev/ttyXXX ) for some work we are doing. To that end, we created some new tools for Linux/Mac/Windows which ties a VendorID and ProductID to a serial port endpoint.
Our project is available at https://github.com/makerbot/pyserial
apologies I don't have time/skill to create a proper patch or diff file, but I think a core developer may do better grabbing our repo, and pulling the relevant code than I would.
The project code was done by Cibomahto and David Sayles, I'm just submitting it on their behalf.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
I would also add the Usb SerialNumber.
I did the same thing, made a separate class which resolves vid/pid/serial to a /dev/ttyUSBx device. (That actually has to work the other way around as you have to start by resolving the ttyUSBx devices back to their Vid/Pid/Serial.)
Anyway, this feature is useful. But I think it does not belong within PySerial. It would be worth it becoming a module itself.
Last edit: Anonymous 2013-11-20
After checking with Cibomahto, i've added the list_ports implementation for OSX.