Discussion:
[pyusb-users] Exclude USB Host from Devices List
Igor Bezenchuk
2016-06-05 13:44:33 UTC
Permalink
Hi All,When I try to search for devices under specific host, I always get a list of device that include the host and it's root hub. is there a way to exclude both them, so I get only devices list under a specific Host?
Igor Bezenchuk
2016-06-06 09:37:20 UTC
Permalink
It's OK, I figure it out. all I need to cast results from code.find() as list
devs = list(usb.core.find(find_all=True,idVendor=VID, idProduct=PID))
and then I can iterate over device list and remove host from list.

From: ***@hotmail.com
To: pyusb-***@lists.sourceforge.net
Date: Sun, 5 Jun 2016 16:44:33 +0300
Subject: [pyusb-users] Exclude USB Host from Devices List




Hi All,When I try to search for devices under specific host, I always get a list of device that include the host and it's root hub. is there a way to exclude both them, so I get only devices list under a specific Host?
Loading...