Go Down

Topic: USB Library (Read 1 time) previous topic - next topic

ambuj

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

PaulS

Quote
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.

ozracing

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 :)
if (str = "arduino rulez") {
 delay(250);
 str = "Pic is crap";
}

ambuj

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.

ozracing

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
if (str = "arduino rulez") {
 delay(250);
 str = "Pic is crap";
}

ambuj

@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". 

ozracing

the smaller usb socket a female type i believe
if (str = "arduino rulez") {
 delay(250);
 str = "Pic is crap";
}

ambuj

yes u r right.

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

ozracing

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
if (str = "arduino rulez") {
 delay(250);
 str = "Pic is crap";
}

ambuj

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

but anyone know then plz give me reply

dxw00d

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.

ambuj

@dxw00d....

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

dxw00d

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.

ambuj

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

dxw00d

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.

Go Up