Android的USB主机到串行连接?串行、主机、Android、USB

由网友(大爷范)分享简介:显然与Android 2.3.4和3.1的一种,现在可以访问USB配件。Apparently with Android 2.3.4 and 3.1 one can now access USB accessories.我有一个Ardupilot兆(基于Arduino的)板通过USB电缆连接到我的笔记本电脑,我可以用...

显然与Android 2.3.4和3.1的一种,现在可以访问USB配件。

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

我有一个Ardupilot兆(基于Arduino的)板通过USB电缆连接到我的笔记本电脑,我可以用一个简单的串行通信程序在COM7和115,200波特连接。这使我进入命令行界面,我可以发出指令,并得到日志。

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.

是否可以写一个Android应用程序,将通过USB通信,我Ardupilot兆丰板?

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

我见过很多类似的主题,但其中大多数是pre-USB主机。

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

推荐答案

USB串行换安卓 是正是这一点需要写我的开源库。它支持使用Android手机的USB主机支持FTDI和CDC-ACM USB串行设备;没有根或需要ADK。它可以说话最Arduinos。

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.

阅读全文

相关推荐

最新文章