From: Heesob Park Date: 2012-04-09T10:28:15+09:00 Subject: Re: (libusb) Fail to open USB device on Windows XP --20cf3005ddca80412f04bd34eb81 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 2012/3/30 Huang Emmanuel > Dear all, > > While I use libusb-0.1.3-x86-mingw32 on Windows XP with the following > code > > ******************************* > require "libusb" > usb =3D LIBUSB::Context.new > device =3D usb.devices(:idVendor =3D> 0x058f, :idProduct =3D> 0x6387).fir= st > handle =3D device.open > ******************************* > > I always get > > 'raise_error': LIBUSB::ERROR_NOT_SUPPORTED in libusb_open > > > In the code for 'open' (libusb.rb), it's written > > You need proper access permissions on: > Linux: /dev/bus/usb// > > Here are my questions: > 1. Does my 'fail to open' comes from wrong access permission? > 2. How can I solve this problem on Windows XP? > > BR > Emmanuel > > > According to the README.rdoc of libsub, In contrast to Linux, any access to an USB device by LIBUSB on Windows requires a proper driver installed in the system. Fortunately creating such a driver is quite easy with Zadig. Select the interesting USB device and press =E2=80=9CInstall Driver=E2=80= =9D. That=E2=80=99s it. You may take the generated output directory with it=E2=80=99s INI-file and = use it for driver installation on other 32 or 64 bit Windows systems I installed Zadig at http://sourceforge.net/apps/mediawiki/libwdi/index.php?title=3DMain_Page After some trial and error, I could open usb device with device.open on Windows XP. I guess you can get more reliable answer if you submit an issue on the libusb github (https://github.com/larskanis/libusb/issues) Regards, Park Heesob --20cf3005ddca80412f04bd34eb81 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

2012/3/30 Huang Emmanuel <lists@ruby-forum.com&= gt;
Dear all,

While I use libusb-0.1.3-x86-mingw32 on Windows XP with the following
code

*******************************
require "libusb"
usb =3D LIBUSB::Context.new
device =3D usb.devices(:idVendor =3D> 0x058f, :idProduct =3D> 0x6387)= .first
handle =3D device.open
*******************************

I always get

'raise_error': LIBUSB::ERROR_NOT_SUPPORTED in libusb_open


In the code for 'open' (libusb.rb), it's written

You need proper access permissions on:
=C2=A0 =C2=A0Linux: /dev/bus/usb/<bus>/<dev>

Here are my questions:
1. Does my 'fail to open' comes from wrong access permission?
2. How can I solve this problem on Windows XP?

BR
Emmanuel



=C2=A0According to t= he README.rdoc of libsub,=C2=A0
In contrast to Linux, any access = to an USB device by LIBUSB on Windows requires a proper driver installed in= the system. Fortunately creating such a driver is quite easy with=C2=A0Zadig. Select the interesting USB device and press =E2=80=9CInst= all Driver=E2=80=9D. That=E2=80=99s it. You may take the generated output d= irectory with it=E2=80=99s INI-file and use it for driver installation on o= ther 32 or 64 bit Windows systems

After = some trial and error, I could open usb device with device.open on Windows X= P.

I guess you can get more reliable answer if you submit = an issue on the libusb github (https://github.com/larskanis/libusb/issues)

Regards,

Park Heesob

=C2=A0

--20cf3005ddca80412f04bd34eb81--