私はthisといいます。AndroidとArduinoボードとの通信の例です。私はUSBシールドとAndroidの携帯電話(micromax A110(4.1.1)、sony xperia P(4.0.6)、samsumg core(4.1.2))を使ってfreeduino uno boardを持っています。 USB_Host_Shield_2.0をhereからダウンロードしました。私はスケッチをコンパイルし、正常にアップロードしています。しかし、freeduino uno boardとAndroid phoneの間の通信を確立することができません。私はfreundino uno boardのPIN 13を使ってLEDを点滅させようとしていますが、動作しません。 Androidの携帯電話をfreeduinoボードに接続した後、シリアルモニタで出力しています。Android用Arduino - ADKを使用してLEDをオン/オフする
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
私は..私は
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
は、事前にありがとうシリアルモニターにエラーの下に取得していますfreeduinoボードとAndroid携帯電話(V4.0.3)を接続していた場合
同じUSBホストシールドを使用していますか? – Dage
@日:私はfreeduino USBホストシールドを使用しています。 –
ファームウェアがそのボードと互換性があるかどうか分かりませんか? これらのリンクは役に立ちます:https://github.com/moderndevice/FreeduinoHostBoard/tree/master/Freeduino_USB_Host_Board http://wiki.moderndevice.com/pmwiki.php?n=MD.FHB – Dage