Hello, I am working with Lenovo tablet (Android 3.1) and I want to fetch data from Telosb sensor. The sensor has following interface and endpoint
Interface 0 Endpoint 0: Inbound, type- bulk, max packet size- 64 Endpoint 1: Outbound, type- bulk, max packet size- 64 I want to read the data from sensor and I used UsbDeviceConnection and bulkTransfer(endpoint, buffer, length, timeout) method to get the data. The "byte[] buffer" field in the method must have the data from the sensor at endpoint 0 is what I understand from the documentation. When I read in this way, only 2 bytes (length= 64) are read and rest are zeros. Can anyone explain what might be the cause for this? Also, how do I set the baud rate? How do I read data from the sensor continuously? Thanks, Ashish. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en