且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Arduino Android USB 连接

更新时间:2023-02-27 07:47:32

您从 http 引用的项目://android.serverbox.ch/?p=549 评论中只适用于更新的 Arduino 板,例如 Uno(或其他使用 CDC-ACM 串行 USB 方案的东西,他们实施).

The project you reference from http://android.serverbox.ch/?p=549 in comments will only work with the more recent Arduino boards such as the Uno (or with something else which uses the CDC-ACM serial-over-USB scheme which they implement).

较旧的 Arduino 板(例如您的 Duemilanove)使用 FTDI USB 串行芯片,这需要不同的 USB 操作.

The older Arduino boards such as your duemilanove use an FTDI USB-serial chip, which would require different USB operations.

您可以在某处找到有关将 FT232 系列 USB 串行转换器与 Android 的 USB 主机 api 连接的内容(FTDI 部件广泛用于嵌入式系统,因此您肯定会找到一些东西),或者您可以使用 Uno 板来尝试您已有的代码.

You may be able to find something somewhere about interfacing the FT232 family of USB-serial converters with Android's USB host api (the FTDI parts are widely used in embedded systems, so it's not out of the question you'll find something), or you can get an Uno board to try the code you already have.