You can subscribe to this list here.
| 2003 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct (5) | Nov (27) | Dec (9) | 
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 | Jan (2) | Feb (19) | Mar (13) | Apr (15) | May (11) | Jun (17) | Jul (31) | Aug (45) | Sep (10) | Oct (40) | Nov (39) | Dec (45) | 
| 2005 | Jan (113) | Feb (45) | Mar (38) | Apr (53) | May (11) | Jun (42) | Jul (56) | Aug (50) | Sep (32) | Oct (32) | Nov (47) | Dec (22) | 
| 2006 | Jan (19) | Feb (32) | Mar (40) | Apr (40) | May (41) | Jun (44) | Jul (37) | Aug (51) | Sep (30) | Oct (30) | Nov (51) | Dec (20) | 
| 2007 | Jan (7) | Feb (20) | Mar (17) | Apr (67) | May (13) | Jun (73) | Jul (16) | Aug (58) | Sep (29) | Oct (5) | Nov (74) | Dec (9) | 
| 2008 | Jan (17) | Feb (12) | Mar (65) | Apr (22) | May (40) | Jun (32) | Jul (11) | Aug (8) | Sep (3) | Oct (41) | Nov (34) | Dec (12) | 
| 2009 | Jan (44) | Feb (33) | Mar (16) | Apr (109) | May (11) | Jun (22) | Jul (21) | Aug (37) | Sep (5) | Oct (23) | Nov (7) | Dec (7) | 
| 2010 | Jan (36) | Feb (40) | Mar (35) | Apr (45) | May (42) | Jun (104) | Jul (135) | Aug (50) | Sep (65) | Oct (110) | Nov (129) | Dec (75) | 
| 2011 | Jan (105) | Feb (48) | Mar (93) | Apr (166) | May (169) | Jun (188) | Jul (106) | Aug (33) | Sep (85) | Oct (46) | Nov (102) | Dec (105) | 
| 2012 | Jan (81) | Feb (115) | Mar (56) | Apr (93) | May (56) | Jun (77) | Jul (88) | Aug (52) | Sep (72) | Oct (16) | Nov (70) | Dec (70) | 
| 2013 | Jan (23) | Feb (85) | Mar (38) | Apr (48) | May (40) | Jun (49) | Jul (33) | Aug (28) | Sep (66) | Oct (28) | Nov (28) | Dec (16) | 
| 2014 | Jan (33) | Feb (58) | Mar (17) | Apr (50) | May (16) | Jun (24) | Jul (19) | Aug (32) | Sep (10) | Oct (10) | Nov (4) | Dec (10) | 
| 2015 | Jan (11) | Feb (2) | Mar (4) | Apr (14) | May (1) | Jun (6) | Jul (16) | Aug (29) | Sep (6) | Oct (26) | Nov (10) | Dec | 
| 2016 | Jan | Feb (20) | Mar (6) | Apr | May (3) | Jun (3) | Jul | Aug (16) | Sep (6) | Oct | Nov (15) | Dec | 
| 2017 | Jan (1) | Feb (2) | Mar (4) | Apr | May (1) | Jun (3) | Jul | Aug | Sep | Oct (1) | Nov (1) | Dec (1) | 
| 2018 | Jan | Feb (8) | Mar (10) | Apr (16) | May | Jun (15) | Jul | Aug (3) | Sep (19) | Oct | Nov | Dec | 
| 2019 | Jan | Feb | Mar (1) | Apr (2) | May | Jun | Jul | Aug | Sep (3) | Oct | Nov | Dec | 
| 2020 | Jan | Feb | Mar | Apr (5) | May | Jun | Jul (7) | Aug | Sep | Oct | Nov | Dec | 
| 2021 | Jan (5) | Feb | Mar | Apr | May | Jun (5) | Jul (3) | Aug | Sep (6) | Oct (2) | Nov (4) | Dec | 
| 2022 | Jan (1) | Feb (1) | Mar | Apr (1) | May | Jun (5) | Jul | Aug | Sep | Oct | Nov | Dec | 
| 2023 | Jan (5) | Feb (1) | Mar | Apr (3) | May (1) | Jun | Jul | Aug | Sep | Oct | Nov | Dec | 
| 2024 | Jan | Feb (3) | Mar (1) | Apr (1) | May (11) | Jun (1) | Jul | Aug | Sep | Oct (3) | Nov (3) | Dec | 
| 
      
      
      From: Dan E. <Dan...@ne...> - 2006-05-30 17:10:29
      
     | 
| I've got a DELL inspiron 510m laptop here which fails to come out of suspend when libusb is attached to any USB device that I've tried. =20 Has anyone else experienced this problem? The LEDs show that the laptop has started to wake up, and there's a little bit of disk activity, but it gets no further and the only solution is a power cycle. =20 --=20 Dan Ellis =20 | 
| 
      
      
      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 | 
| 
      
      
      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: Stephan M. <ste...@we...> - 2006-05-19 16:34:04
      
     | 
| 
> Hi,
> 
>  I've recently started with libusb-win32 and I've found some behaviour I didn't understand. I'm using Visual Studio with libusb.lib included.
> 
>  I tryed this:
> 
>                 udev = usb_open(dev);
You forgot to configure the device:
usb_set_configuration(udev, 1);
 
> 		if (udev) {
> 			if (usb_claim_interface(udev, 0)<0){ perror("Error"); }
> ....
> 
>  And the usb_claim_interface return -22 what perror couldn't interpret. It wrote me "Error: No error". What am I doing wrong?
> 
Use usb_strerror() to retrieve a printable error message.
> Thanks for all your ideas.
> Yours Martin Hasaj
> 
> 
> -------------------------------------------------------
> 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: 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: Fouzi B. <fou...@tr...> - 2006-05-19 11:33:58
      
     | 
| 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 ). 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 | 
| 
      
      
      From: Stephan M. <ste...@we...> - 2006-05-18 17:17:50
      
     | 
| 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:  <MH...@se...> - 2006-05-18 16:54:21
      
     | 
| Hi,
 I've recently started with libusb-win32 and I've found some behaviour I didn't understand. I'm using Visual Studio with libusb.lib included.
 I tryed this:
                udev = usb_open(dev);
		if (udev) {
			if (usb_claim_interface(udev, 0)<0){ perror("Error"); }
....
 And the usb_claim_interface return -22 what perror couldn't interpret. It wrote me "Error: No error". What am I doing wrong?
Thanks for all your ideas.
Yours Martin Hasaj
 | 
| 
      
      
      From: Fouzi B. <fou...@tr...> - 2006-05-18 08:14:55
      
     | 
| 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 | 
| 
      
      
      From: Zivi, D. <DZ...@nd...> - 2006-05-10 08:41:12
      
     | 
| =20 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of Mark Bourne Sent: Wednesday, May 10, 2006 11:13 AM To: lib...@li... Subject: Re: [Libusb-win32-devel] Could not claim interface- requested resource in use. Could be that another driver has connected to the device. I had this when I was trying to use libusb-win32 to connect to a mouse (just to check how to use it!) - I had to overwrite the mouse driver with libusb, even when using the filter driver. I'm a newbie too, so can't help much unfortunately. Mark. Jon Burroughs wrote: > Hello, > > =20 > > I am developing my first USB application using libusb-win32. (Read: I > am a newbie.) I was getting -22 (EINVAL) returned by=20 > usb_claim_interface, until I read some of the posts and learned that I > needed to call usb_set_configuration first. Now that I am doing that, > I am getting errno code -5 (EIO), and usb_strerror() returns the=20 > following message "could not claim interface 0, error: The requested > resource is in use." Can anyone give me any suggestions? > > =20 > > Best regards, > > Jon > ------------------------------------------------------- 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel *************************************************************************= ********** This email message and any attachments thereto are intended only for use = by the addressee(s) named above, and may contain legally privileged and/o= r confidential information. If the reader of this message is not the inte= nded recipient, or the employee or agent responsible to deliver it to the= intended recipient, you are hereby notified that any dissemination, dist= ribution or copying of this communication is strictly prohibited. If you = have received this communication in error, please immediately notify the = pos...@nd... and destroy the original message. *************************************************************************= ********** | 
| 
      
      
      From: Mark B. <mc...@ec...> - 2006-05-10 08:26:24
      
     | 
| Look in the errno.h standard header - that's how I find them. Not sure if there's a better way. Diego . wrote: > you can use the usbview.exe to know the number of interface and > configuration that you need to claim and set. I had this problem > because the number of interface and configuration was incorrect. In > your email you write -22 (EINVAL) and -5 (EIO) how do you know the > name of this errors? I had read the documentation at > http://libusb.sourceforge.net/doc/ but this errors are not documented. > > | 
| 
      
      
      From: Mark B. <mb...@ze...> - 2006-05-10 08:13:41
      
     | 
| Could be that another driver has connected to the device. I had this when I was trying to use libusb-win32 to connect to a mouse (just to check how to use it!) - I had to overwrite the mouse driver with libusb, even when using the filter driver. I'm a newbie too, so can't help much unfortunately. Mark. Jon Burroughs wrote: > Hello, > > > > I am developing my first USB application using libusb-win32. (Read: I > am a newbie.) I was getting -22 (EINVAL) returned by > usb_claim_interface, until I read some of the posts and learned that I > needed to call usb_set_configuration first. Now that I am doing that, > I am getting errno code -5 (EIO), and usb_strerror() returns the > following message "could not claim interface 0, error: The requested > resource is in use." Can anyone give me any suggestions? > > > > Best regards, > > Jon > | 
| 
      
      
      From: Diego . <di...@gm...> - 2006-05-09 08:30:35
      
     | 
| you can use the usbview.exe to know the number of interface and configuration that you need to claim and set. I had this problem because the number of interface and configuration was incorrect. In your email you write -22 (EINVAL) and -5 (EIO) how do you know the name of this errors? I had read the documentation at http://libusb.sourceforge.net/doc/ but this errors are not documented. | 
| 
      
      
      From: Jonathon L. - H. <jon...@ha...> - 2006-05-08 23:17:12
      
     | 
| Are you communicating with an FTDI device? I had a similar problem with an FTDI device in the past. J. Jon Burroughs wrote: > Hello, > > > > I am developing my first USB application using libusb-win32. (Read: I > am a newbie.) I was getting -22 (EINVAL) returned by > usb_claim_interface, until I read some of the posts and learned that I > needed to call usb_set_configuration first. Now that I am doing that, I > am getting errno code -5 (EIO), and usb_strerror() returns the following > message "could not claim interface 0, error: The requested resource is > in use." Can anyone give me any suggestions? > > > > Best regards, > > Jon > | 
| 
      
      
      From: Jon B. <Jon...@da...> - 2006-05-08 23:01:33
      
     | 
| Hello, I am developing my first USB application using libusb-win32. (Read: I am a newbie.) I was getting -22 (EINVAL) returned by usb_claim_interface, until I read some of the posts and learned that I needed to call usb_set_configuration first. Now that I am doing that, I am getting errno code -5 (EIO), and usb_strerror() returns the following message "could not claim interface 0, error: The requested resource is in use." Can anyone give me any suggestions? Best regards, Jon | 
| 
      
      
      From: Philipp-7 <phi...@we...> - 2006-05-06 10:17:43
      
     | 
| Hi Stephan, thanks for your fast replay. The missing handshake it=E2=80=99s a pity. Are the USB token packets like A= CK, NAK=E2=80=A6 also handled by the kernel driver or the operating system? What do you mean by? > The latest version from the CVS doesn't have this limitation any more and > should=20 > work with these analyzers (not tested by me). Try it. Which version do you mean? Do have any suggestion (experience) what time I should in between sending and receiving? And what time should I put into the Method for timeout? Or do you have a good example for Interrupt transfers? The reason I=E2=80=99m asking is that it seems if I Poll to fast that he on= ly receives half of the message. Best Regards Philipp -- View this message in context: http://www.nabble.com/Re%3A-Libusb-win32-deve= l-Questions-And-Problem-LIBUSB-and-usb_interrupt_read-t1565552.html#a425958= 9 Sent from the LibUSB Dev - Win32 forum at Nabble.com. | 
| 
      
      
      From: Graeme G. <gr...@ar...> - 2006-05-06 08:16:04
      
     | 
| [Thanks for the help withe getting the driver working. It seems
  to compile and install OK now.]
I've noticed a strange thing using libusb-win32. If I've
got one program happily communicating with my device,
and I start another instance of the program, just scanning
though the available USB devices. ie.
     usb_init();
     usb_find_busses();
     usb_find_devices();
     for (bus = usb_get_busses(); bus != NULL; bus = bus->next) {
         struct usb_device *dev;
         for (dev = bus->devices; dev != NULL; dev = dev->next) {
             ... examine dev structure ...
         }
     }
then not only does the second instance suffer a substantial
delay before it completes these operations, but the first
programs communications get completely fouled up - in fact,
the communications stop, and it's necessary to unplug and replug
the device to get things going again.
(This is true if testlibusb.exe is substituted for the second instance
  of my program, since it essentially does the same sort of things.)
Is this expected behaviour ? What is the cause ? How can it be avoided ?
thanks,
	Graeme Gill.
 | 
| 
      
      
      From: Graeme G. <gr...@ar...> - 2006-05-06 00:22:11
      
     | 
| Stephan Meyer wrote: > The DDK is not needed any more in order to compile libusb-win32. > Mingw/Msys is all you need. > > Try this: > > - get a more recent version of libusb-win32, version 0.1.10.0 is > pretty outdated > - download and install the latest win32-api package from www.mingw.org > - open an Msys shell and run 'make' (without any arguments) > - that's it Thanks for the reply. Which version of libusb-win32 would you recommend ? The dowload site calls 0.1.10.1 the release version, and everything else snapshots. Which recent snapshot has proven reasonably stable ? (I'm running the Cygwin shell and tools, not Msys, although I've got MingW installed, not the Cygwin compiler. Presumably this won't make any difference.) Graeme Gill. | 
| 
      
      
      From: Stephan M. <ste...@we...> - 2006-05-05 17:35:44
      
     | 
| > Hi @ All. > I=E2=80=99m using the LIB-USB for my thesis. > LIBUSB=5FDLL: usb=5Fos=5Finit: dll version: 0.1.10.1 > LIBUSB=5FDLL: usb=5Fos=5Finit: driver version: 0.1.10.1 > First I have some general questions about the LIBUSB: > 1 Is there a handshake implemented, that informs me about arrived data=3F No, you have to poll the device. > 2 Why can=E2=80=99t the USB software analysers show me the data transfers whil= e using > LIBUSB=3F e.g. Snoopy(from sourceforge.net ) and USB monitor > (http://www.hhdsoftware.com/usbmon.html) That's because the kernel driver sends its requests directly to the lowest= device object=20 of the USB stack, i.e. bypassing all lower filter objects (the software an= alyzers you mentioned use filter drivers). The latest version from the CVS doesn't have this limitation any more and = should work with these analyzers (not tested by me). Try it. > 3 Do I have any influence of Enumeration process=3F And how is it handled=3F= The enumeration is handled by Windows' USB stack, not by libusb. You can't= control it. > 4 Why do I have to read always the full EP size=3F > (http://thread.gmane.org/gmane.comp.lib.libusb.devel.windows/475/focus=3D4= 75)=20 >=20 You don't have to. The only thing you should take care of is that your rea= d request's buffer size is equal or larger than your device's current packet size. Oth= erwise data overrun errors might occur. Example: your device has a max=5Fpacket=5Fsiz= e of 64 bytes but it only transmits 8 bytes in each packet then the buffer s= ize you pass to usb=5Fbulk=5Fread() must be at least 8 bytes. > And now my recent Problems: > At the firs implementation step I=E2=80=99m using interrupt transfers, but I h= ave > problems during =E2=80=9Cusb=5Finterrupt=5Fread=E2=80=9D > Because if I=E2=80=99am reading to fast the debug message was that the System = has not > enough capacity for this operation. But I guess this is just the fault o= f my > Programming J > This message is disappeared since I added a loop in between send an rece= ive. But > now I get: > LIBUSB=5FDLL error: usb=5Freap=5Fasync: timeout error > What could be the reason for this=3F =20 >=20 > I=E2=80=99m gratefully about any suggestions or Programming Examples! >=20 > Best Regards > Philipp=20 > =20 > P.S. here is the diskriptor of my USB device: >=20 > Port1: USB Test Device > Hub Power: Self Power > Number of Ports: 2 > Power switching: None > Compound device: No > Over-current Protection: Individual > Device Descriptor > USB Version: 2.0 > Device Class: (0) Reserved (defined in Interface Descriptor) > Device Subclass: 0 > Device Protocol: 0 > Max Packet Size: 0x40 (64) bytes > Vendor: 0xffff () > Product ID: 0x0001 > Product Version: 0x0000 > Manufacturer: 1 > 0x0409: XXX > Product: 2 > 0x0409: XXX > SerialNumber: 3 > 0x0409: 00000001 > Number of Configurations: 1 > Connection Status: Device Connected > Current Configuration: 1 > Device Bus Speed: Full > Device Address: 0x01 > Number of Open Pipes: 2 > Configuration Descriptor (1) > Total Length: 32 bytes > Number of Interfaces: 1 > Configuration Value: 1 > Configuration: 0 > Attributes: 0x80 > Bus Powered > Max Power: 0x32 (100 Ma) > Interface Descriptor (0) > Interface Number: 0 > Alternate Setting: 0x00 > Number of Endpoints: 0x02 > Interface Class: (255) Vendor Specific > Interface Subclass: 255 > Interface Protocol: 255 > Interface: 0 > Endpoint Descriptor (Addr: 0x81) > Endpoint Address: 0x81, Input > Transfer Type: Interrupt > Max Packet Size: 0x0040 (64) bytes > Interval: 0x02 > Endpoint Descriptor (Addr: 0x04) > Endpoint Address: 0x04, Output > Transfer Type: Interrupt > Max Packet Size: 0x0040 (64) bytes > Interval: 0x02 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > Using Tomcat but need to do more=3F Need to support web services, security= =3F > Get stuff done quickly with pre-integrated technology to make your job e= asier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geroni= mo > http://sel.as-us.falkag.net/sel=3Fcmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642= > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/=3Fmc=3D021192 | 
| 
      
      
      From: Stephan M. <ste...@we...> - 2006-05-05 17:02:39
      
     | 
| The DDK is not needed any more in order to compile libusb-win32. Mingw/Msys is all you need. Try this: - get a more recent version of libusb-win32, version 0.1.10.0 is pretty outdated - download and install the latest win32-api package from www.mingw.org - open an Msys shell and run 'make' (without any arguments) - that's it Stephan > I've made a little more progress in understanding why I'm > having so many troubles getting libusb running. > > I was under the impression that libusb0.sys needed the > DDK to be built, and since I hadn't configured this, > it wouldn't be built. > > It seems that libusb0.sys is built anyway, and this is > what the operating system is choking on. If I > substitute libusb0.sys from the binary distribution, > it works OK, and I'm able to happily hack away at > libusb0.dll. > > I'm using libusb-win32 version 0.1.10.0. > I've got MingW 3.2.0-rc-3 installed. > I've got the Latest XP DDK installed. > I'm on a Windows 2k box. > > I don't understand how running "gmake DDK_PATH=<DDKDIR>" > (where <DDKDIR> os "D:/WINDDK" in my case) is going to > work. I can' find a reference to DDK_PATH anywhere, > and the build doesn't fail if the path is wrong. > It appears that the driver is being linked against > MingW/liblibntoskrnl.a, rather than anything from the DDK. > > The libusb0.sys file that results is exactly the same length > as the one in the binary distribution, but the binaries differ > in 97 bytes (some presumably time stamp, but not all.) > > Could the version of MingW I'm using be the problem ? > Any other ideas ? > > thanks, > > Graeme Gill. > > > > ------------------------------------------------------- > 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: Dan E. <Dan...@ne...> - 2006-05-05 16:45:11
      
     | 
| Andrew Xiang wrote: > Here is what I have, I try to if(usb_set_configuration(dev, 1) < 0) > but I don't see it on the device.=20 What's the printout from the program? Has it definitely found your device? Does the set_configuration call return an error? >=20 > Also, who will set the address? The device needs an address to work. Of course it needs an address. Windows will do that very soon after the device is plugged in, and before you run your bulk write program. Dan. | 
| 
      
      
      From: Philipp <phi...@we...> - 2006-05-05 15:20:29
      
     | 
| Hi @ All. I’m using the LIB-USB for my thesis. LIBUSB_DLL: usb_os_init: dll version: 0.1.10.1 LIBUSB_DLL: usb_os_init: driver version: 0.1.10.1 First I have some general questions about the LIBUSB: 1 Is there a handshake implemented, that informs me about arrived data? 2 Why can’t the USB software analysers show me the data transfers while using LIBUSB? e.g. Snoopy(from sourceforge.net ) and USB monitor (http://www.hhdsoftware.com/usbmon.html) 3 Do I have any influence of Enumeration process? And how is it handled? 4 Why do I have to read always the full EP size? (http://thread.gmane.org/gmane.comp.lib.libusb.devel.windows/475/focus=475) And now my recent Problems: At the firs implementation step I’m using interrupt transfers, but I have problems during “usb_interrupt_read” Because if I’am reading to fast the debug message was that the System has not enough capacity for this operation. But I guess this is just the fault of my Programming J This message is disappeared since I added a loop in between send an receive. But now I get: LIBUSB_DLL error: usb_reap_async: timeout error What could be the reason for this? I’m gratefully about any suggestions or Programming Examples! Best Regards Philipp P.S. here is the diskriptor of my USB device: Port1: USB Test Device Hub Power: Self Power Number of Ports: 2 Power switching: None Compound device: No Over-current Protection: Individual Device Descriptor USB Version: 2.0 Device Class: (0) Reserved (defined in Interface Descriptor) Device Subclass: 0 Device Protocol: 0 Max Packet Size: 0x40 (64) bytes Vendor: 0xffff () Product ID: 0x0001 Product Version: 0x0000 Manufacturer: 1 0x0409: XXX Product: 2 0x0409: XXX SerialNumber: 3 0x0409: 00000001 Number of Configurations: 1 Connection Status: Device Connected Current Configuration: 1 Device Bus Speed: Full Device Address: 0x01 Number of Open Pipes: 2 Configuration Descriptor (1) Total Length: 32 bytes Number of Interfaces: 1 Configuration Value: 1 Configuration: 0 Attributes: 0x80 Bus Powered Max Power: 0x32 (100 Ma) Interface Descriptor (0) Interface Number: 0 Alternate Setting: 0x00 Number of Endpoints: 0x02 Interface Class: (255) Vendor Specific Interface Subclass: 255 Interface Protocol: 255 Interface: 0 Endpoint Descriptor (Addr: 0x81) Endpoint Address: 0x81, Input Transfer Type: Interrupt Max Packet Size: 0x0040 (64) bytes Interval: 0x02 Endpoint Descriptor (Addr: 0x04) Endpoint Address: 0x04, Output Transfer Type: Interrupt Max Packet Size: 0x0040 (64) bytes Interval: 0x02 | 
| 
      
      
      From: Andrew X. <and...@gm...> - 2006-05-05 14:25:10
      
     | 
| #define STD_GET_STATUS_ZERO           0x0080
#define STD_GET_STATUS_INTERFACE      0x0081
#define STD_GET_STATUS_ENDPOINT       0x0082
#define STD_CLEAR_FEATURE_ZERO        0x0100
#define STD_CLEAR_FEATURE_INTERFACE   0x0101
#define STD_CLEAR_FEATURE_ENDPOINT    0x0102
#define STD_SET_FEATURE_ZERO          0x0300
#define STD_SET_FEATURE_INTERFACE     0x0301
#define STD_SET_FEATURE_ENDPOINT      0x0302
#define STD_SET_ADDRESS               0x0500
#define STD_GET_DESCRIPTOR            0x0680
#define STD_SET_DESCRIPTOR            0x0700
#define STD_GET_CONFIGURATION         0x0880
#define STD_SET_CONFIGURATION         0x0900
#define STD_GET_INTERFACE             0x0A81
#define STD_SET_INTERFACE             0x0B01
#define STD_SYNCH_FRAME               0x0C82
/* CDC Class Specific Request Code */
#define GET_LINE_CODING               0x21A1
#define SET_LINE_CODING               0x2021
#define SET_CONTROL_LINE_STATE        0x2221
code (bRequest << 8) | bmRequestType,  wValue,    wIndex,    wLength);
code 680 100 0 12.
code 680 200 0 43.
code 880 0 0 1.
code 880 0 0 1.
code 880 0 0 0 ff
code 680 301 0 ff.
code 680 302 409f.
code 680 303 409 ff.
code 680 303 409 ff.
code 880 0 0 1.
Here is the code I see from the device after I plugin and ran the bulk 
program.
  struct usb_bus *bus;
  usb_dev_handle *dev = NULL;
    char tmp[BUF_SIZE];
  if (argc > 1 && !strcmp(argv[1], "-v"))
    verbose = 1;
  usb_init();
  usb_set_debug(0xffff);
  usb_find_busses();
  usb_find_devices();
  for (bus = usb_get_busses(); bus; bus = bus->next) {
    if (bus->root_dev && !verbose)
      print_device(bus->root_dev, 0);
    else {
      struct usb_device *dev1;
      for (dev1 = bus->devices; dev1; dev1 = dev1->next)
   {
      //  print_device(dev1, 0);
   }
 }
  }
  if(!(dev = open_dev()))
    {
      printf("error: device not found!\n");
      return 0;
    }
  char temp;
  int ret;
/*int ret=usb_control_msg(dev, 0, USB_REQ_SET_ADDRESS,
                      0, 0, 0, 0,
                      500);
   if(ret<0)
   {
      printf("error: USB_REQ_SET_ADDRESS 3 failed\n");
      usb_close(dev);
      return 0;
    }
    ret=usb_control_msg(dev, 0, USB_REQ_GET_DESCRIPTOR,
                      0, 0, &temp, 0,
                      500);
   if(ret<0)
   {
      printf("error: USB_REQ_GET_DESCRIPTOR 0 failed\n");
      usb_close(dev);
      return 0;
    }*/
  if(usb_set_configuration(dev, 1) < 0)
    {
      printf("error: setting config 1 failed\n");
      usb_close(dev);
      return 0;
    }
  if(usb_claim_interface(dev, 0) < 0)
    {
      printf("error: claiming interface 0 failed\n");
      usb_close(dev);
      return 0;
    }
  if(usb_bulk_write(dev, EP_OUT, tmp, sizeof(tmp), 5000)
     != sizeof(tmp))
    {
      printf("error: bulk write failed\n");
    }
  if(usb_bulk_read(dev, EP_IN, tmp, sizeof(tmp), 5000)
     != sizeof(tmp))
    {
      printf("error: bulk read failed\n");
    }
  usb_release_interface(dev, 0);
  usb_close(dev);
----- Original Message ----- 
From: "Dan Ellis" <Dan...@ne...>
To: <lib...@li...>
Sent: Friday, May 05, 2006 5:23 AM
Subject: RE: [Libusb-win32-devel] usb_set_configuration error
> Andrew Xiang wrote:
>> I don't see the set_configuration 0x0900 come in on the device.
>> I see all the get_descriptor messages, and also, 0x880 to get the
>> configuration, but NOT the 0x0900.
>>
>> I wonder why?
>
> You'll have to provide more description than that for anyone to help.
> Please clarify what the number are you are quoting, e.g. the whole 8
> bytes of the request in order, or name the bytes.
>
> Also, when do you see this happening? When you plug the device in, in
> which case it's just windows interrogating the device, or when you run
> your code.
>
> Dan.
>
>
> -------------------------------------------------------
> 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_______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> 
 | 
| 
      
      
      From: Andrew X. <and...@gm...> - 2006-05-05 14:16:04
      
     | 
| How come I don't see the set_address on the device then when I plug it = in and run the sample program you sent me. -Andrew ----- Original Message -----=20 From: Stephan Meyer=20 To: lib...@li...=20 Sent: Friday, May 05, 2006 2:32 AM Subject: Re: [Libusb-win32-devel] USB_REQ_SET_ADDRESS not implemented > I notice that USB_REQ_SET_ADDRESS is not supported,=20 Addresses are always assigned by the host controller driver not by the = device driver, so there is no need for this feature.=20 > And there is no support for address for the bulkwrite/read?=20 What do you mean by this? What address?=20 > =20 > how come?=20 > =20 > thanks=20 > Andrew=20 > | 
| 
      
      
      From: Andrew X. <and...@gm...> - 2006-05-05 14:06:31
      
     | 
| Here is what I have, I try to  if(usb_set_configuration(dev, 1) < 0) but I 
don't see it on the device.
Also, who will set the address? The device needs an address to work.
-Andrew
 struct usb_bus *bus;
  usb_dev_handle *dev = NULL;
    char tmp[BUF_SIZE];
  if (argc > 1 && !strcmp(argv[1], "-v"))
    verbose = 1;
  usb_init();
  usb_set_debug(0xffff);
  usb_find_busses();
  usb_find_devices();
  for (bus = usb_get_busses(); bus; bus = bus->next) {
    if (bus->root_dev && !verbose)
      print_device(bus->root_dev, 0);
    else {
      struct usb_device *dev1;
      for (dev1 = bus->devices; dev1; dev1 = dev1->next)
   {
      //  print_device(dev1, 0);
   }
 }
  }
  if(!(dev = open_dev()))
    {
      printf("error: device not found!\n");
      return 0;
    }
  char temp;
  int ret;
/*int ret=usb_control_msg(dev, 0, USB_REQ_SET_ADDRESS,
                      0, 0, 0, 0,
                      500);
   if(ret<0)
   {
      printf("error: USB_REQ_SET_ADDRESS 3 failed\n");
      usb_close(dev);
      return 0;
    }
    ret=usb_control_msg(dev, 0, USB_REQ_GET_DESCRIPTOR,
                      0, 0, &temp, 0,
                      500);
   if(ret<0)
   {
      printf("error: USB_REQ_GET_DESCRIPTOR 0 failed\n");
      usb_close(dev);
      return 0;
    }*/
  if(usb_set_configuration(dev, 1) < 0)
    {
      printf("error: setting config 1 failed\n");
      usb_close(dev);
      return 0;
    }
  if(usb_claim_interface(dev, 0) < 0)
    {
      printf("error: claiming interface 0 failed\n");
      usb_close(dev);
      return 0;
    }
  if(usb_bulk_write(dev, EP_OUT, tmp, sizeof(tmp), 5000)
     != sizeof(tmp))
    {
      printf("error: bulk write failed\n");
    }
  if(usb_bulk_read(dev, EP_IN, tmp, sizeof(tmp), 5000)
     != sizeof(tmp))
    {
      printf("error: bulk read failed\n");
    }
  usb_release_interface(dev, 0);
  usb_close(dev);
----- Original Message ----- 
From: "Dan Ellis" <Dan...@ne...>
To: <lib...@li...>
Sent: Friday, May 05, 2006 5:23 AM
Subject: RE: [Libusb-win32-devel] usb_set_configuration error
> Andrew Xiang wrote:
>> I don't see the set_configuration 0x0900 come in on the device.
>> I see all the get_descriptor messages, and also, 0x880 to get the
>> configuration, but NOT the 0x0900.
>>
>> I wonder why?
>
> You'll have to provide more description than that for anyone to help.
> Please clarify what the number are you are quoting, e.g. the whole 8
> bytes of the request in order, or name the bytes.
>
> Also, when do you see this happening? When you plug the device in, in
> which case it's just windows interrogating the device, or when you run
> your code.
>
> Dan.
>
>
> -------------------------------------------------------
> 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_______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> 
 |