我指的是安卓与Arduino板通信的this示例。我有freeduino uno板与通用串行总线屏蔽和安卓手机(micromax A110 (4.1.1),索尼xperia P (4.0.6)和samsumg核心(4.1.2))。我已经从here下载了USB_Host_Shield_2.0。我正在编译草图并上传成功。但是,无法在freeduino uno board和Android手机之间建立通信。我试图闪烁LED使用13引脚的freduino uno板,但它不工作。我在连接Android手机到freeduino主板后,在串行监视器上得到输出。
ADK demo start
Waits for Android device get ready.
Waits for Android device get ready.
Waits for Android device get ready.
Waits for Android device get ready.
Waits for Android device get ready.
ADK Init
ADK Init
ADK protocol rev. 0002
swAcc:
ADK Init
getDevDescr 0D
ADK Init
getDevDescr 0D
ADK Init
getDevDescr 0D如果我连接Android phone(v4.0.3)和freeduino主板,我会在串行显示器上看到下面的错误
Device addressed... Requesting device descriptor.
found possible device. swithcing to serial mode
device supports protocol 1 or higher
Data packet error: D
Data packet error: D提前谢谢你..
发布于 2017-04-25 07:50:54
好吧,可能有几件事。对于这个问题,在arduino板上按几次重置按钮可能会有所帮助,然后再试一次。此外,当您连接屏蔽时,尝试将引脚d7连接到arduino板上的复位引脚。如果这不能解决问题,那么您的usb屏蔽可能有问题,但也许其他人有更好的答案,如果这有帮助,请让我知道!
https://stackoverflow.com/questions/19634930
复制相似问题