OK, I hope this can help figure it out.Part of the problem, at least with the Note II, is timing. The error I get when debugging the USB host code is a timeout (error code 0xFF) on one of the USB packets. This doesn't happen if (for instance) I output a whole lot of serial data to slow the sketch down. It is not enough to add a delay() in the main loop, since the whole thing fails if we delay() too much as well. Adding a delay(50) between each call to Usb.Task() and a few delay(100) at strategic places inside USBHost::Task() makes it work pretty reliably. I haven't had the time to make it work well yet or I would post code.Another issue is the fact that the USB code stops working if you soft-reset the Due, such as by opening the serial console after a sketch has started running. This can be worked around by uploading the sketch, then unplugging the Due and as fast as humanly possible after plugging it in, you open the debug console. I guess this works because you can actually soft-reset the Due before the USB initialization takes place, and therefore it doesn't try to initialize it twice.If you have the phone connected to the Due and your sketch either crashes or your code is timed wrong, you might confuse the USB stack on the Android. This is only solved by rebooting. So if it stops working, you might get it running again by simply rebooting the Android. I power-cycle the Due between every run.I ran a modified version of the ADK2012 sketch and library, compiled with the ADK2012 version of the IDE. This powered up the USB port even when running on external power, so there's nothing wrong with the hardware. There has to be a mistake somewhere in the library, I just don't have enough knowledge to find it!
I could get the ADKTerminalTest demo to work without changes with a - Galaxy Nexus / Android 4.2.1- Nexus 7 / 4.2.1- Acer A500/4.0.3.First I had the same problems: only loading, nothing else. It started to work after I connected the Due directly with my Macbook (i.e. no hub in between etc.). If a power supply is connected, it does _not_ work either. To me, it looks like a power issue.My setup:Macbook -> Due/programming port (as I said, no hub/other device on that port)Due / native USB -> USB-OTG adapter (Samsung ET-R205U) -> USB cable -> Android deviceThe due runs the ADKTerminalTest sample (I just added Serial.begin(9600) at the beginning of setup()). The android device runs the "Thibault ICS Termial" app as stated in ADKTerminalTest.
I used the version that comes as sample with the arduino ide version 1.5.1/mac (file menu -> samples -> USBHost -> ADKTerminalTest) and the apk from the address in the ADKTerminalTest sketch (http://labs.arduino.cc/uploads/ADK/ArduinoTerminal/ThibaultTerminal_ICS_0001.apk).
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16