Arduino MEGA ADK: read data from usb(not serial)

arduinoserialusbusb-host

I'm new on this field and I've spent my last 3 days searching for a way to read some data from a usb device(http://www.willow.co.uk/TelosB_Datasheet.pdf). It sends packets of 12 octest and all I want to do is to read 2 of them. I want to be able to set the transfer speed and the data buffer . . . I guess.

This board has a integrated usb device PORT. I've read about USB shield 2 Library but I've seen it helps connectiong with a Android phone. I'm sure it's a simple solution but I'm not able to find it.

Do you have some advices where should I find something?

Best Answer

Looking at the datasheet and a page I found by google searching for "TELOSB mote platform", it appears the TelosB module uses an FTDI USB to serial chip for communications.

The Arduino USB host library has support for these chips and contains an example for using them. You could modify it to read/write whatever data you're looking for.

However that's a pretty roundabout way of getting data from the TelosB; your Arduino would be talking to a USB host sheild, which would talk to a FTDI chip, which would talk to the UART on the TelosB's onboard micro-controller.

It would be easier if you could find a way to connect the Arduino's UART directly to the onboard micro-controller's UART. Then you could use standard Arduino serial comms to get data from the TelosB. Level conversion may be required if the UARTs on the Arduino and the TelosB run at different voltages.

It is possible one of the two expansion headers on the side of the board connect to the micro-controller's UART. The datasheet doesn't provide this infomation, you'd need to look at a schematic of the board or a pinout description.

Related Topic