Android adk

Discussion in 'Accessories' started by iDo, Nov 18, 2016.

  1. iDo

    iDo New Member

    Joined:
    Nov 18, 2016
    Messages:
    2
    Likes Received:
    0
    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!
     
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    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?
     
  3. iDo

    iDo New Member

    Joined:
    Nov 18, 2016
    Messages:
    2
    Likes Received:
    0
    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.
     
  4. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240

Share This Page