Go Down

Topic: help for USB 2.0 (Read 3369 times) previous topic - next topic

dxw00d

#15
Jan 12, 2012, 01:10 pm Last Edit: Jan 12, 2012, 01:12 pm by dxw00d Reason: 1
That's one of the example sketches from the github link. It does say "OSC did not start".

ambuj

this is the code provied in USB 2.0 library .......

i am using normal USB mouse whom compatible with PC.
could u tell me how Usb.Init() function will be work......??

GoForSmoke


thanks

could you tell me which way i have to use for learning process... i m trying HID code but that code not with my board even single code so may be i m doing in wrong direction. so guide me how could i use in general term.


Learning process should focus on all electrical connections and then finding out WHY Usb.Init() failed.
You have the library and documents/sites, some difference between what You Have and What Is Supposed To Work should show with enough You Doing The Looking. You are the only one with your hardware. Don't assume everything is right. When there's a problem check 3 times and check again.
Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

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

dxw00d

#19
Jan 12, 2012, 02:04 pm Last Edit: Jan 12, 2012, 02:06 pm by dxw00d Reason: 1
Perhaps start here http://www.circuitsathome.com/arduino_usb_host_shield_projects as they wrote the library.

What did you plan to do with it when you purchased it?

GoForSmoke


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.
Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

dxw00d

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.

bob1810

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

PaulS

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

bob1810


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




GoForSmoke

Next Week:

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

Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

dxw00d

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

bob1810


Next Week:

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



Comparing apples and pears...

ambuj

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


Go Up