【发布时间】:2012-04-05 10:11:44
【问题描述】:
我尝试使用 Demokit 源将 Arduino Mega ADK 连接到几部手机,但没有成功。
我用 arduino 0022 编译并上传了 Arduino 草图“Demokit.pde”。它看起来没问题,因为板子在其 USB 客户端端口上发送“开始”。
我使用 Google API 10(适用于运行 Gingerbread 的手机)和 Android API 15(适用于 ICS 手机)在 Eclipse 下编译了 Demokit 应用程序。一切都很好。
在手机端,我尝试了这些设置:
samsung i9000 运行 CM 7.1 并在推送 android.hardware.usb.accessory.xml 和 com.android.future.usb.accessory.jar 之后
运行 ICS 的三星 i9000
nexus S 运行 ICS
什么也没发生。 eclipse logcat 中只有一个警告:
W/PowerUI(654):未知意图:Intent { act=android.intent.action.ACTION_POWER_CONNECTED flg=0x10000010 }
没有别的了。我想知道板子的usb主机是否有问题......
如果有人有想法?
谢谢
【问题讨论】: