USB Library

hi all,
i have Mega ADK development board. could anyone tell about USB library?????
i want to send my data via USB. so plz provide me this library........

Thanks in advance

i want to send my data via USB.

Send it where? Using what USB?

If you are referring to the onboard serial to USB chip, there is no library required. Serial.print(), Serial.write(), and Serial.println() are all you need.

Paul i believe he's talking about "Arduino mega ADK" and that board is with usb host
btw Ambuj you could always check playground or www.freeduino.org for usb host libraries :slight_smile:

i want to know about USB which connected by Max3421 IC ...????

another USB is for dumping hex file in this board. can we use this usb for communication.

usb socket b is for pc connection and the other usb socket a is for any usb device you can use it for practically anything
both sockets on the board should be female type

@ozracing
yes i have "arduino Mega ADK".... so that why i m asking about USB library, in the schematic of this board which USB connect with MAX3421 IC?????

i m not asking about from which i can program my "mega ADK".

the smaller usb socket a female type i believe

yes u r right.

but my query is how could i send data via this USB...........??

well i cant answer that because i don't have that board but you could try Serial.write and stuff and you can try these:
http://www.circuitsathome.com/mcu/programming/android_adk_compatible_usb_host_library_release for talking with android
http://www.circuitsathome.com/arduino_usb_host_shield_projects this can help too

@ozracing
thanks for your help......i has been tried this but not working.

but anyone know then plz give me reply

Have you downloaded the Android ADK software from Google? I believe that it contains libraries for accessing the host usb port. The MAX3421 is attached to the arduino via an I2C connection, so you will need to use that to communicate with it.

@dxw00d....

i had tried, when i didn't get then i ask here..... :slight_smile:

ADK_MEGA_2560-Rev2-sch.pdf (186 KB)

If you haven't got the ADK package from here https://dl-ssl.google.com/android/adk/adk_release_0512.zip, you'll need to do direct communication with the MAX3421 using I2C, with the Wire library.

i have "ardunino MEGA ADK" development kit
i want to use his USB host which connected wit max3421 IC but i could not find this IC how to connect with controller

i m working with schematic but can not find, so anyone tell me and if anyone has this sample code than plz give it to me

Thanks in advance

You have already been told this. The Max3421 is attached to the arduino via an I2C connection. You can use the Wire library to talk to it. The links ozracing gave you have sample code. You will need this https://dl-ssl.google.com/android/adk/adk_release_0512.zip. I don't have a Mega ADK. so I can't help any more than that.