Hello All,

  I use control transfer to read some bytes of data from a device. 
But I dont know how much data it is going to give me.

If I give less number of bytes as size, the usb_control_msg() function
skips data (returns when the size number of bytes is read).  If I give
more number of bytes as size, the usb_control_msg() function returns
timeout error.

Is there any way to read n number of bytes from the device (using
control transfer) when n is not known apriori ?

Note: If I use usb_bulk_msg() with size = 1024, it always returns even
if there is less number of data.


Regards,
Jayaprakash.


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to