From: Wander L. C. <wan...@gm...> - 2016-10-11 10:04:37
|
Hi Hermann, Thanks for digging on this. I didn't have free time to update docs yet, but will do. 2016-10-11 6:27 GMT-03:00 Hermann Hamann <her...@we...>: > Hi, > The use of the pyusb0 service is a bit troublesome, because you have to > specify the desired library by hand. > I always had the dream of automatically use the installed library. > Well, here is how. > You must know the Vid and Pid of your device. With that you can look up > the registry for the installed service. > If it is winusb you need not care. > If it is pyusb0 then you get the device descriptor and extract the device > name. > With it you go to the driverstore and scan the filerepository directory > for a directory file name > that starts with the device name. > Then you walk under this tree until you find a dll name. > This is the installed library. > Was not so hard. > I want to thank Xiaofan for his encouraging advice to dig deeper in this > registry thingens. > Now there is no more any need to pick a wrong library. > > > > ------------------------------------------------------------ > ------------------ > 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 > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > -- Best Regards, Wander Lairson Costa |