Thanks for your help! What I'm ultimately trying to do is reset the
device, but it looks like pyusb has a .reset() method so I'm gonna give
that a try to see if it has the same effect as the usb_modeswitch hack
that we're using.
Again, thanks so much! I'm not a great programmer so I kinda just have
to hack my way through this stuff and sometimes I don't know where to
look in the code. Once you suggested port_number, I did a search for
that and found all the different items you were talking about and more.
Thanks!!
On 5/7/2018 12:39 AM, Tormod Volden wrote:
Mike,
It might depend on the backend, but your device object should have
.bus , .address and .port_number members.
Regards,
Tormod
On Mon, May 7, 2018 at 2:26 AM, Soultanian, Mike wrote:
The last two items I can't figure out how to get are the bus and the dev# as
displayed in the usb-devices output - any idea how I retrieve those? I was
searching through the files and I can't seem to figure out what to type to
get those attributes.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users