Arduino Mega ADK not talking to Nexus S (Handbag & Arduino Labs) (solved)

Hi

I am trying to get my Arduino Mega ADK up and talking to my Nexus S. I have tried two approaches both of which have the same result. Both configurations compile and upload correctly without any errors. However when I plug the phone in there are no popups and nothing in the notification area. The Handbag app also sits on the waiting screen. The phone does charge from the USB.

I have followed the guides closely and tried various other combinations in addition to the ones listed.

Do I have to do anything like root the phone etc to get this working? I am out of ideas, any help much appreciated.

Gary

Phone setup:
Nexus S i9023
2.3.4
2.6.35.7
Sim free, stock android
not rooted

Arduino setup:
Arduino Mega ADK
12V 4.2A Power brink

setup 1) Handbag http://www.labradoc.com/i/follower/p/android-arduino-handbag

arduino-0022

Custom boards.txt

Latest git Handbag:

Latest USB_Host_Shield (Not v2):

AndroidAccessory from official google release:
adk_release_0512.zip

Latest Handbag app installed on phone

setup 2) Arduino Lab http://labs.arduino.cc/ADK/AccessoryMode

arduino-1.0-beta1

AndroidAccessory & USB_Host_Shield from:
http://labs.arduino.cc/uploads/ADK/GettingStarted/arduino_bundle_ADK.zip

Processing set up as per tutorial, installed on phone and working.

Hi

I have been playing with this a bit more. The Mega ADK works fine as a normal Arduino board when used with my PC. So the issue has to be with the USB Host interface.

Is there a way to test the USB Host interface with something other then a phone to prove this? If the USB Host interface is broken can it be returned to Arduino to be fixed?

Thanks

Gary

OK

So I found board_test.pde an uploaded it but did not see anything in my serial monitor. I then tried a hello world app writing to the serial port and still nothing. I tried then cating the /dev/ttyACM0 as root and still nothing. When I send from the serial monitor the rx light comes up on my board. However the tx does not, when it should be sending hello world etc.

I suspect that this board is faulty perhaps the issue mentioned in this post? (solved) Arduino ADK Mega2560 Drivers - #3 by system - IDE 1.x - Arduino Forum

If someone from Arduino could PM me or reply regarding further trouble shooting, or RMA information I would appreciate it.

Gary

OK so I now have everything working. It turns out it was a a new version of avr-gcc that fedora pushed out. This has now been fixed.

If anyone is having issues getting their ADK working under GNU/Linux I wrote a quick howto on my site that may be helpful:

http://blog.re.je/2011/11/11/processing-arduino/

Not ADK specific but gets the environment set up correctly!