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