[libhid-discuss] Need API for identifying the port no to which the usb device is connected

Charles Lepple clepple at ghz.cc
Mon Jun 23 12:13:29 UTC 2008


On Jun 23, 2008, at 6:49 AM, shivaprasad javali wrote:

>      The usb device that I am working with doesnot have a unique  
> serial no
> for each usb device. So I have to use the port no of the port it is
> connected to identify the device uniquely. Is there an API in  
> libhid that I
> can use to get port no?


Look in src/hid_presentation.c for hid_write_identification() - it  
prints a "location" which should probably work for your needs.

-- 
Charles Lepple






More information about the libhid-discuss mailing list