android usb requestWait not return

后端 未结 2 1963
轮回少年
轮回少年 2021-02-14 04:28
ByteBuffer byteBuffer = ByteBuffer.allocate(9);;    
UsbRequest request = new UsbRequest();
request.initialize(mConnection,mEndpointIntr);
boolean b = request.queue(byte         


        
2条回答
  •  情深已故
    2021-02-14 05:15

    On my own USB HID device with two endpoints (IN and OUT) connected to MK802, I encountered the same problem (queuing a request returned false). I had claimInterface called with false. Setting the following helped, I receive data alright.

    c.claimInterface(device.getInterface(0), true);
    

提交回复
热议问题