标签: android usb synchronous serial-communication
我的USB设备同时具有IN和OUT UsbEndpoint,但仅在OUT 端点上进行通信。我向它发送一条消息,设备在同一端点上响应。
UsbEndpoint
我需要同步通信,这意味着使用bulkTransfer(),对吧? bulkTransfer() UsbEndpoint.getDirection()确定无法更改的方向。如何使用OUT方向从端点使用bulkTransfer() 读取?
bulkTransfer()
UsbEndpoint.getDirection()