1

I'm working with some Python where I have 5 USB devices plugged into the computer and I'm interacting with them. I've been programming for a number of years in PHP, but I'm pretty new to the application side.

I am currently looking for a way to uniquely identify a device such as a device serial number, one that isn't assigned by the computer, but from the device itself. Does something like that exist? If it does, is there a simple way to access it?

halfer
  • 19,824
  • 17
  • 99
  • 186
John Sly
  • 763
  • 1
  • 10
  • 31
  • http://stackoverflow.com/questions/8110310/simple-way-to-query-connected-usb-devices-info-in-python – MmmHmm Jun 21 '16 at 21:27
  • The answer appears to be that there is no way to do this: https://stackoverflow.com/questions/14053764/how-to-identify-uniquely-a-usb-device – William Hay Nov 16 '17 at 10:59

1 Answers1

-1

I'm not sure what platform you're using, but a cross-platform solution to dealing with serial ports is PySerial:

https://pypi.python.org/pypi/pyserial

linus72982
  • 1,418
  • 2
  • 16
  • 31