I'm trying to transfer data via USB, from Android device to PC. I use AOA (Android Open Accessory) protocol and libusb for PC side.
In Android side, I have this function: outputStream!!.write(data, 0, data!!.size).
In PC side, I use this function: libusb_bulk_transfer(), like that: ret = libusb_bulk_transfer(handle, in_addr, buff, BUFFER_SIZE, &size, 0);
"in_addr" is for endpoint.
Both of them block indefinitely.
When I print all endpoint of Android device with libusb, I have 4 endpoint: 81h, 01h, 02h, 82h.
So my question is how to choose between all this endpoint, because I have no option to choose one in Android side?