From: Jeffrey N. <jsn...@su...> - 2016-10-11 13:11:51
|
Don't forget to indicate in the documentation that not knowing which driver to use is a VERY unusual situation, and that anyone going down that path will need to install both libusb DLLs in the application's PATH. Jeff On 10/11/2016 6:03 AM, Wander Lairson Costa wrote: > 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... > <mailto: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... > <mailto:pyu...@li...> > https://lists.sourceforge.net/lists/listinfo/pyusb-users > <https://lists.sourceforge.net/lists/listinfo/pyusb-users> > > > > > -- > Best Regards, > Wander Lairson Costa > > > > ------------------------------------------------------------------------------ > 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 |