Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: 4ntoine on Mar 21, 2012, 03:55 am

Title: Android + Arduino via USB
Post by: 4ntoine on Mar 21, 2012, 03:55 am
i'm trying to communicate with Arduino board (Duemilanove) from Android 3.1 device with USB-host support using Android USB Host API.

The goal is to communicate with the board in the same way as via Serial.

I follow this manual (http://android.serverbox.ch/?p=427 (http://android.serverbox.ch/?p=427)) but have few problems (f.e. failed to claim interface) and of coarse dev guide (http://developer.android.com/reference/android/hardware/usb/package-summary.html (http://developer.android.com/reference/android/hardware/usb/package-summary.html)) but no luck.

The questions are:

1. how to prepare arduino board (modify firmware) - interruptions or smth?
2. how to check if it's okay with arduino board (f.e. enumerate USB interfaces and verify that it supports needed. what tools can be used?
3. how to find needed interface (what are interface class/protocol/subclass)
4. what can be the reason when interface cannot be claimed? (faced with that)

Thanks in advance
Title: Re: Android + Arduino via USB
Post by: 4ntoine on Mar 22, 2012, 11:29 am
I've found USB library with demo app, that enables USB-to-Serial support: https://play.google.com/store/apps/details?id=slickdevlabs.apps.usb2serialdemo (https://play.google.com/store/apps/details?id=slickdevlabs.apps.usb2serialdemo) and
probably can help in my case. Did somebody try it? How does it work?

I've read in some forums that android linux kernel should be recompiled or smth to support that.
Title: Re: Android + Arduino via USB
Post by: 4ntoine on Mar 23, 2012, 12:07 pm
Few answers can be found here:
http://android.serverbox.ch/?p=427 (http://android.serverbox.ch/?p=427)
http://android.serverbox.ch/?p=370 (http://android.serverbox.ch/?p=370)
Title: Re: Android + Arduino via USB
Post by: 4ntoine on Jul 31, 2012, 07:41 pm
Well, now USB support (USB and ADK) is finally available in the app.
Read for details here: http://arduino.cc/forum/index.php/topic,91261.msg875134.html#msg875134 (http://arduino.cc/forum/index.php/topic,91261.msg875134.html#msg875134)