We have a setup where we are downloading a log from a device over USB. The device sends a packet and then waits for an acknowledgement from the Android side before sending the next packet. In B4A I am thus sending the ack response message after every received packet. On one of my Android devices it works fine, but on another I get "Error Queuing Request" when trying to call UsbRequest.Queue. Interestingly, if I run in Debug mode, I don't get the error - presumably because it is running much slower. Any ideas on how to debug / mitigate / fix this? Our device times out after 100ms if no ack message is received and carries on with the next packet, so things still work, however it is obviously very slow.
The stack when the error occurs is simply:
at anywheresoftware.b4a.objects.usb.UsbDeviceConnectionWrapper$UsbRequestWrapper.Queue(UsbDeviceConnectionWrapper.java:207)
Thank-you for any input / advice!
The stack when the error occurs is simply:
at anywheresoftware.b4a.objects.usb.UsbDeviceConnectionWrapper$UsbRequestWrapper.Queue(UsbDeviceConnectionWrapper.java:207)
Thank-you for any input / advice!