Loading...
Pages: [1]   Go Down
Author Topic: What does Android logcat say when connecting Arduino ADK (ie. an "accessory")  (Read 568 times)
0 Members and 1 Guest are viewing this topic.
Helsinki
Offline Offline
Newbie
*
Karma: 0
Posts: 11
A librarydude
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all. I'm connecting my Arduino (Mega ADK) to my Android device (Galaxy Nexus running CyanogenMod 10.1 Nightlies, based on Jelly Bean 4.2.1), and i'm having some issues.

Thus, I would like to ask from someone who actually has this Android USB Accessory stuff working, that is the output of the command

Code:
adb logcat -s UsbDeviceManager:*

Mine only says "exited USB accessory mode", and nothing else, when connecting and Arduino. On the Arduino serial monitor, i'm getting first a message that the Android is identified and supports protocol 1 and up, and then setup package error D on acc.isConnected(), when Arduino is trying to setup the file descriptors. I'm using the normal USB Host Shield libraries, not the 2.0 -flavour.

Thanks, i would really appreciate to see the logcat output of a normal, operating Android Accessory (=Arduino) handshake.
Logged

Helsinki
Offline Offline
Newbie
*
Karma: 0
Posts: 11
A librarydude
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

After more time spent with google, i can see i should expect to receive an entering USB accessory mode -message from UsbDeviceManager, f.ex. this question on StockExchange lists it.

Code:
D/UsbDeviceManager(  163): entering USB accessory mode: UsbAccessory[mManufacturer=Embedded Artists AB, mModel=AOA Board - Nodes, mDescription=Demo - AOA Nodes, mVersion=1.0, mUri=http://www.embeddedartists.com/_aoa/Demo_AOA_Nodes.apk, mSerial=N/A]
Logged

Helsinki
Offline Offline
Newbie
*
Karma: 0
Posts: 11
A librarydude
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Aha, I managed to solve my issue, and now my Jelly Bean logcat gives the entering USB accessory mode -message, Android pops up the dialog for starting the registered app, and i can even confirm (using demo apps) that data is being passed between Arduino ADK and Android.

The core of the issue was that the Arduino USB Host Shield libraries are no longer compatible with new, Android Jelly Bean, and i installed first a beta version of the USB Host Shield libraries from Arduino.cc (which work, after some fiddling), and then I moved to the Circuits@Home USB Host Shield libraries version 2.0. Not a lot of information about the changes in JB accessory mode is available online, unfortunately, I hope someone with the same problem will find this forum and i'm willing to give more details and help out the best I can!

Woohoo!
« Last Edit: January 19, 2013, 07:02:45 am by mace » Logged

Pages: [1]   Go Up
Print
 
Jump to: