Hi all,
I'm new in this list and i'm approaching libusb programming.
Trying to write a sane backend for my scanner, i do the following steps:

open the device with scanner = usb_open(dev);
set the device configuration with usb_set_configuration(scanner, 1);
claim the device with usb_claim_interface(scanner, 0);

when i try to send any data to the device:
usb_bulk_write(scanner, 81, cmd, length, 1000)
returns -22 (Invalid argument).

I'm wondering what is the "Invalid argument" referred to?




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to