[Q] Asynchronously bulk data transfer
I am working on USB communication between an Android Galaxy S III smartphone and a device which does not conform to Android Open Accessory device definition. I want to transfer asynchronously bulk data from the device to the host. The connection between the host and device works correctly, what has been verified by sending control commands to the device.
1. Can this transfer be done with an endpoint of the bulk type (USB_ENDPOINT_XFER_BULK) or it has to be the interrupt type (USB_ENDPOINT_XFER_INT) as it is specified in the MissileLauncher app sample?
2. Assuming that control commands send to the device work correctly, can asynchronous bulk transfer be accomplished with just these two following methods or some other methods need to be used?
a) queue of the UsbRequest class;
b) requestWait of UsbDeviceConnection class?
3. Does the request.queue call fill the data buffer after the connection.requestWait returns or some other conditions need to be checked?
|