Android的USB主机到串行连接? [英] Android USB host-to-serial connection?

查看:170
本文介绍了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电缆连接到我的笔记本电脑,我可以用一个简单的串行通信程序在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.

这篇关于Android的USB主机到串行连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆