Hi: thanks for your kind help. 2009/6/6 Xiaofan Chen <xiaofanc@xxxxxxxxx>: > On Sat, Jun 6, 2009 at 11:28 AM, loody<miloody@xxxxxxxxx> wrote: > >> thanks for all your kind help. >> BTW, is there any api document about libusb. > For 0.1: http://libusb.sourceforge.net/doc/ > For 1.0: http://libusb.sourceforge.net/api-1.0/ > >> I intend to r/w the USB flash by hand, that means I want to send >> control/bulk/interrupt directly. >> Is that possible by libusb? appreciate your help, > It must be possible. But why do you want to do that? I think it is > easier to use the file I/O. Do you mean fopen the dev node and r/w it? like fd = fopen(filename, "w")? BTW, I change the venderid/deviceid in /libusb/examples/dpfp.c to get familiar with the lib apis. But it return message as: usb_claim_interface error -6 >From source code, -6 means it is busy. I try it again by umounting the usb flash disk, but the error is still the same. Is there anything I have to do before testing libusb api? appreciate your help, miloody -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html