Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differentiate multiple USB devices having same Vendor and Product ID

Tags:

usb

lsusb

I am writing an application which allows a Linux machine to connect to internet over usb modem. I have multiple usb modems having same vendor and product ID; I cannot differentiate them using lsusb which gives vendor and product ID. Also giving IDs according to their usb ports does not solve my problem either, because I want to be able to use usb modems in whichever port I want.
Is there a unique identifier which I can use to differentiate my usb devices?

like image 257
denizeren Avatar asked Nov 30 '12 15:11

denizeren


1 Answers

Using serial numbers I differetiated my usb modems. Here in this site basic commands are shown.

http://wiki.openmoko.org/wiki/Hardware:AT_Commands#Section_5.2C_General_Commands

I used "ATE+CGSN" command which gives serial number of the device.

like image 140
denizeren Avatar answered Sep 22 '22 03:09

denizeren