Pages: 1 [2]   Go Down
Author Topic: help for USB 2.0  (Read 2352 times)
0 Members and 1 Guest are viewing this topic.
Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's one of the example sketches from the github link. It does say "OSC did not start".
« Last Edit: January 12, 2012, 07:12:52 am by dxw00d » Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 4020
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Examples can be found in your IDE.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
« Last Edit: January 12, 2012, 08:06:14 am by dxw00d » Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 4020
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Examples can be found in your IDE.

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46113
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 !

 

Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 4020
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Next Week:

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

Logged

Examples can be found in your IDE.

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Next Week:

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


Comparing apples and pears...
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

just check avrpins.h
Logged

Pages: 1 [2]   Go Up
Jump to: