与Android / Arduino的USB通信 [英] USB Communication with Android/Arduino

查看:434
本文介绍了与Android / Arduino的USB通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,需要通过USB将本Android应用程序。我有一个爱可视101平板电脑(规格在这里:<一href="http://www.archos.com/products/ta/archos_101it/specs.html?country=us&lang=en">http://www.archos.com/products/ta/archos_101it/specs.html?country=us&lang=en).它有一个完整的USB主机端口。我可以在USB端口把闪存USB驱动器和复制文件和从闪存驱动器上的内部存储。

I am working on this Android application that needs to communicate over USB. I have an Archos 101 Tablet (specifications here: http://www.archos.com/products/ta/archos_101it/specs.html?country=us&lang=en). It has a full USB host port. I can put a flash USB drive in the USB port and copy files to and from the flash drive onto internal storage.

我有这样的 Arduino的吸入氧浓度板,用的的XBee 的重视它。我有一个的XBee资源管理器适配器与我计划挂钩​​到爱可视101平板电脑插入USB端口另一个的XBee。

I have this Arduino Fio board, with an XBee attached to it. I have an XBee Explorer Dongle with another XBee that I plan to hook into the Archos 101 tablet into the USB port.

截至目前,我可以把浏览器的XBee适配器插入我的计算机和发送/接收数据和从Arduino的吸入氧浓度,没有问题。

As of right now, I can put the XBee Explorer Dongle into my computer and send/receive data to and from the Arduino Fio, no problems.

有没有办法为Android洽谈USB?我知道必须有某个驱动程序在平板电脑允许USB通信,但我不能找到一种方法来访问它们,或使用它们。

Is there a way for Android to talk over USB? I know there has to be drivers somewhere in the tablet allowing USB communication, but I cannot find a way to access them or use them.

我可以看到Android的认识到资源管理器的XBee适配器。我下载了一个终端模拟器,我可以键入dmesg的,并认为它看到加密狗勾搭上了。但我不能用它做什么。

I can see Android recognizing the XBee Explorer Dongle. I downloaded a terminal emulator, and I can type "dmesg" and see that it sees the dongle hooked up. But I cannot do anything with it.

我似乎需要一个 FTDI 的驱动程序为Android。

I seem to need a FTDI driver for Android.

我将不胜AP preciate地让我的平板电脑的帮助与资源管理器的XBee适配器通信。

I would greatly appreciate any help in getting my tablet to communicate with the XBee Explorer Dongle.

推荐答案

如果您有根,可以破解你的内核,FTDI提供其Android操作系统D2XX驱动程序。检查其网站,请。

If you have root and can hack your kernel, FTDI offers its D2XX driver for Android OS. Check its website, please.

如果你的Andr​​oid设备3.1+,你应该能够使用Android USB主机与Arduino的交谈。然而,我遇到了这方面的一些问题。

If your Android device is 3.1+, you should be able to use Android USB host to talk with Arduino. However, I met some issues on this.

如果您有ADK / UHS就在眼前,你的Arduino可以作为USB主机和交谈的Andr​​oid USB设备。即使是在相同的硬件,如果你的Andr​​oid操作系统是很老喜欢1.5 / 1.6,你必须使用亚行界面,而不是ADK(附件开发工具包)的协议。

If you have ADK/UHS at hand, your Arduino can act as USB host and talk to Android USB device. Even in same hardware, if your Android OS is quite old like 1.5/1.6, you have to use ADB interface rather than ADK (Accessory Developer Kit) protocol.

如果您有蓝牙功能,你可以写你自己的蓝牙SPP在你的应用程序。

If you have Bluetooth, you can write your own Bluetooth SPP in your app.

如果你能处理无线网络,您可以编写应用程序来与套接字通信,或通过在Android的最新的无线直接模式。

If you can handle WiFi, you can write app to communication with socket, or via latest WiFi direct mode in Android.

沟通是多方面的。但是,这取决于你的硬件。

Communication is various. However, it depends your hardware.

这篇关于与Android / Arduino的USB通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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