You may be missing a call to UsbDeviceConnection.claimInterface().
Am Donnerstag, 4. Juli 2013 05:44:51 UTC+2 schrieb AndroidYourself: > > I have a problem, I've connected an USB CSR BT Dongle to my Acer A210 > Android Device and all is working fine, I can receive endless data without > problems. > > And also I can send Data with USB "bulkTransfer" successfully: > int send = usbConnection.bulkTransfer(usbEndpointOUT, buf, buf.length, 1); > > So, all is working fine. > > > But after 10-15 times of sending data's (5 Bytes every 4 Seconds) over the > usbEndpointOUT > with bulkTransfer... I receive only -1 from: > > int receive = usbConnection.bulkTransfer(usbEndpointIN, buffer.array(), > buffer.array().length, 1000); > > > ....and then the connection is lost. > > > > Do I have to read any other usb EndpointIN's to prevent a Buffer Overflow > or something else? > > > I've tested it with Asus TF700, Galaxy Note 2, ... and Android 3.2, > Android 4.03, Android 4.1.2, Android 4.2.2. Always the same issue. > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

