Re: [pyusb-users] Finally found: the installed library

2016-10-13 Thread Hermann Hamann
Hi Jeff
 


 




Re: [pyusb-users] Finally found: the installed library

2016-10-11 Thread Jeffrey Nichols
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 >:


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
pyusb-users@lists.sourceforge.net

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
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


--
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


Re: [pyusb-users] Finally found: the installed library

2016-10-11 Thread Wander Lairson Costa
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 :

> 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
> pyusb-users@lists.sourceforge.net
> 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
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


[pyusb-users] Finally found: the installed library

2016-10-11 Thread Hermann Hamann


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.

 


 




find_linstalled_library.py
Description: Binary data
--
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