On Fri, Feb 15, 2013 at 9:59 PM, Wim De Kimpe <wim.deki...@medecbenelux.be> wrote: > I have a custom USB device that is using bulk transfer on 2 endpoints, > EP1 is in, EP2 is out. > > int nEndpoint = 0x01; > int nTimeout = 500; //in milliseconds > int BytesWritten = 0; > unsigned char OutputPacketBuffer[64]; > OutputPacketBuffer[0] = SET_LEDS; > OutputPacketBuffer[1] = 0x02; > libusb_interrupt_transfer( handle, nEndpoint, OutputPacketBuffer, > 2, &BytesWritten, nTimeout );
Hmm, if you want to use EP1 for Interrupt IN transfer, the nEndpoint should be 0x81. If you want to use EP2 for Interrrupt OUT transfer, then nEndpoint should be 0x02. How can your program work under Windows? -- Xiaofan ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel