hello, I also want to fetch data from Telosb sensor.And my host device is Lenovo thinkpad tablet(Android 3.1).I want to know can your host device distinguish Telosb. can you give me a hand?Think you!!!
在 2012年4月4日星期三UTC+8上午2时14分30秒,ashish sharma写道: > > 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 [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

