Hello, I purchased Udoo neo, Udoo quad, LVDS displays, etc. and booted Android Marshmallow on it. I've been trying to use Android adk on it to talk to Arduino, but the call to open accessory fails. More specifically, mUsbManager.getAccessoryList() returns null. I've tried plugging in J16 jumper and then unplugging it to reset Arduino, but didn't make a difference. The Arduino sketch that I had uploaded is the one from "Android Arduino Hello World" UDOO tutorial. In Android UI, I've enabled Android <--> Arduino communication. Jumpers J2 and J18 are in plugged-in state. Jumpers J16 and J22 are in unplugged state. Everytime, I make sure to remove the app from "recent app list", and relaunch it afresh, but doesn't make a difference. Please advise as to how I should debug the Android adk issue. Have been struggling with this for weeks now. :-( Any help would be appreciated ! Thanks!
Hi there @iDo, and welcome to the UDOO community. Are you sure the USB-OTG of i.MX 6 is speaking with Arduino? Have you followed the guide?
I know that the USB-OTG of iMX has been configured on Android UI to communicate with Arduino because with that enabled, adb from my laptop can no longer connect to Udoo. So, the communication between Android <--> Udoo has definitely been enabled. Yes, I've followed that guide as well as Android Arduino Hello world example/tutorial/demo -- but, mUsbManager.getAccessoryList() returns null. Does it make sense for me to debug this from first principles with Udoo engineer? Pretty much the main reason for purchasing these is to be able to communicate between Android and Arduino. But I've been struggling with this for weeks -- please help ! Thank you.
Hi @iDo, please don't follow that tutorial, which is related to the old Android version and may not work anymore. Follow the docs instead: http://www.udoo.org/docs/Cookbook_Android/Android_And_Arduino_Simple_Hello_World_Tutorial.html At the end of that page there is a link to the demo, whose code is not the same of the tutorial you linked https://github.com/UDOOboard/android_adk_demo