Hello

I am writing software to communicate between tablet (Motorola Xoom
with Android version 4.0.3 and Kernel version 2.6.39.4) and a
peripheral device using USB Host API provided by Android. I use only
two types of communication:

control - controlTransfer(int requestType, int request, int value, int
index, byte[] buffer, int length, int timeout)
bulk - bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length,
int timeout)
Control transfer works fine, but I have a problem with bulk transfer.
I can use 16384 bytes (max) as a size of the buffer for bulkTransfer
function. I know that I cannot use more because of the limit of the
buffer pipe (size: 16K).

This peripheral device streams data which is not correctly read by
bulkTranfer function. I suppose that some data is lost. (there is
similar problem: 
http://stackoverflow.com/questions/9108548/android-usb-host-bulktransfer-is-losing-data)
Do you have any solution for that problem?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to