help for USB 2.0

ambuj: can any one tell me how this library work.....??? any related document any kind of flow of this library...???

https://github.com/felis/USB_Host_Shield_2.0

any kind of manual how this library works....what is the all function which covers by this library any thing then please give to me

if anyone tell me what is the work of basic function then it will be more use full for me...

The libraries have header code, the file with last name .h, and .cpp file. When things get heavy, you read the code and relate instructions to what the hardware is/should-be doing.

It is usually not easy or simple but you can be sure what you have. You need to find all the ways the Init() function can fail and find out which one happens to your project. It may be something as simple as code written for an UNO being run on a Mega without changing the pins used or it may be like having teeth pulled to find.

Sorry but you want to do the complex thing with the complex pieces then most of the time you will get complex problems.

According to this page http://www.circuitsathome.com/mcu/programming/android_adk_compatible_usb_host_library_release there is a difference between the pins used by the actual usb host shield and the usb host on an adk board. You might need to look into that, and it would explain why the Usb.Init() is failing.

Olegs's library does NOT work with the Mega ADK,I have tried it again with the new 1.0 IDE and his updated USB library for that IDE. It compiles OK but it will NOT work on the Mega ADK. DON'T buy the Mega ADK if you want to work and experiment with oleg's USB-lib. Spare yourself the frustration with this next to useless board...

Spare yourself the frustration with this next to useless board...

It is hardly next-to-useless. What it is is a special purpose board that should not be used as a general purpose board.

PaulS:

Spare yourself the frustration with this next to useless board...

It is hardly next-to-useless. What it is is a special purpose board that should not be used as a general purpose board.

A quote from the product page: http://arduino.cc/en/Main/ArduinoBoardADK

"...The USB host interface given by MAX3421E IC allows the ADK Arduino to connect and interact to any type of device that have a USB port. For example, allows you to interact with many types of phones, controlling Canon cameras, interfacing with keyboard, mouse and games controllers as Wiimote and PS3."

Sound like a general purpose board to me. And the product page really should have mentioned that just not any USB-lib will work on it !

Next Week:

IBM/Windows PC is useless because it won't run Mac software.

What is really bad, is that Google's adk page actually links to the Circuits@home page for the usb host library.

GoForSmoke:
Next Week:

IBM/Windows PC is useless because it won’t run Mac software.

Comparing apples and pears…

https://github.com/felis/USB_Host_Shield_2.0

if i want make compatible this library with MEGA ADK so in which files i have to make changes.....???

i thinks just change in Max3421e.h file with SPI pins. if another changes so please help me to make compatible with MEGA ADK

just check avrpins.h