Android USB host-to-serial connection?

Hein du Plessis picture Hein du Plessis · Aug 3, 2011 · Viewed 41k times · Source

Apparently with Android 2.3.4 and 3.1 one can now access USB accessories.

I have a Ardupilot Mega (based on Arduino) board with a USB cable connected to my laptop, and I can connect to it using a simple serial communications program over COM7 and 115,200 baud. This allows me into the command-line interface, and I can issue commands and get logs.

Is it possible to write an Android app that will communicate over USB to my Ardupilot Mega board?

I've seen many similar threads, but most of them were pre-USB host.

Answer

mik3y picture mik3y · Jul 7, 2012

usb-serial-for-android is my open source library written for exactly this need. It supports FTDI and CDC-ACM usb serial devices using Android's USB host support; no root or ADK necessary. It can talk most Arduinos.

The project is still in its early days, but the basic support has worked well enough for several projects. There is also a discussion list where you can get help.