|
From: Dan E. <Dan...@ne...> - 2006-05-19 12:32:47
|
You should only be trying to set the configuration using usb_set_configuration, doing using usb_control_msg could potentially bypass the USB stack and cause problems. Dan. Fouzi Belhadj wrote: > Hi Stephan, >=20 > Thank you for your quick answer ! >=20 > I'm trying to run my program with the last release of the > libusb-win32 and the problem still happens !=20 > I tried also to send a set_configuration to an other device, the > program freeze too (with an USB keyboard ).=20 > The problem happens also when I try to set configuration with > usb_control_msg.=20 >=20 > Regards. >=20 > Fouzi >=20 >=20 >> The current CVS version should fix this problem. >> For your convenience, I just released a new development snapshot. >> See: >> http://sourceforge.net/project/showfiles.php?group_id=3D78138&package_id >> =3D121441&release_id=3D417945 =20 >>=20 >> Please let me know if it works or not. >>=20 >> Stephan >>=20 >>=20 >>> Hi, >>>=20 >>> I'm trying to write a little program to communicate with a USB >>> device (ChipCard Reader) through the libusb-win32.First, I tried to >>> send a usb_bulk_write message without setting configuration, I had a >>> "invalid configuration -1" error; so I tried to set configuration >>> with bConfigurationValue before sending the bulk message but when I >>> run the program, it freeze totally until I detach the device >>> physically or reboot the computer ! I tried also to set >>> configuration with other values, the program doesn't freeze but I >>> had a "wrong parameter" error.=20 >>>=20 >>> thank you for your help in advance. >>>=20 >>> Fouzi Belhadj >=20 >=20 >=20 > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security?=20 > Get stuff done quickly with pre-integrated technology to make your > job easier Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > _______________________________________________ =20 > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel |
|
From: Stephan M. <ste...@we...> - 2006-05-19 16:38:48
|
> Hi Stephan, > > Thank you for your quick answer ! > > I'm trying to run my program with the last release of the libusb-win32 and the problem still happens ! > I tried also to send a set_configuration to an other device, the program freeze too (with an USB keyboard ). It works for me, tested on XP-SP2 with a keyboard and a mouse. > The problem happens also when I try to set configuration with usb_control_msg. > > Regards. > > Fouzi > > > > The current CVS version should fix this problem. > > For your convenience, I just released a new development snapshot. > > See: > > http://sourceforge.net/project/showfiles.php?group_id=78138&package_id=121441&release_id=417945 > > > > Please let me know if it works or not. > > > > Stephan > > > > > > > Hi, > > > > > > I'm trying to write a little program to communicate with a USB device > > > (ChipCard Reader) through the libusb-win32.First, I tried to send a > > > usb_bulk_write message without setting configuration, I had a "invalid > > > configuration -1" error; so I tried to set configuration with > > > bConfigurationValue before sending the bulk message but when I run the > > > program, it freeze totally until I detach the device physically or > > > reboot the computer ! I tried also to set configuration with other > > > values, the program doesn't freeze but I had a "wrong parameter" error. > > > > > > thank you for your help in advance. > > > > > > Fouzi Belhadj > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 |
|
From: Fouzi B. <fou...@tr...> - 2006-05-22 13:20:42
|
Hi Stephan, It works for me too now (set_configuration), the problem happened last=20 time because I did not install correctly the new snapshot. But now, I can't send a bulk message: (LIBUSB_DLL: error:=20 usb_submit_async: submitting request failed, win error: Param=DEtre=20 incorrect). With the last release of the libusb-win32, the bulk messages works if=20 the set_configuration succeeded, do you have any idea of the reason of=20 that ? Thank you for your helping ! Fouzi Belhadj |