문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top