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

查看:25
本文介绍了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 Mega(基于 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 Mega 板进行通信?

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

我见过很多类似的帖子,但其中大部分都是 USB 之前的主机.

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

推荐答案

usb-serial-for-android 是我的开源库,正是为了这个需求而编写的.支持FTDI和CDC-ACM使用Android的USB主机支持的USB串口设备;不需要 root 或 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天全站免登陆