【问题标题】:USB communication between Arduino Mega ADK 2560 and Samsung Galaxy S2Arduino Mega ADK 2560 和三星 Galaxy S2 之间的 USB 通信
【发布时间】:2012-08-09 14:16:08
【问题描述】:

我尝试在 Arduino Mega ADK 2560(它有两种类型,我使用带有两个 USB 端口的那种)和版本为 2.3.5(自定义构建)的三星 Galaxy S2 之间提供 USB 通信。但是,当我尝试 Arduino 网站上给出的 demokit 代码时,我总是收到一个错误,即error 5 : Device descriptor cannot be retrieved. Trying again.

Demokit 代码包括;

AndroidAccessory acc("Google, Inc.",
             "DemoKit",
             "DemoKit Arduino Board",
             "1.0",
             "http://www.android.com",
             "0000000012345678");

acc.powerOn();
acc.isConnected();  ---error occurs here!

【问题讨论】:

    标签: arduino galaxy


    【解决方案1】:

    该行不应该有错误,但acc.powerOn() 肯定会抛出错误;这个函数是私有的。使用begin(),而不是powerOn()。无论如何,一个引用另一个。

    【讨论】:

      【解决方案2】:

      尽管 ADK 已向后移植到 Android 2.3.4,但许多供应商并未在固件中包含必要的内核修改。我自己也为同样的问题苦苦挣扎了很长时间。我尝试了不同的 2.3.5 自定义和官方 ROM,但我找不到可用的工作内核。

      问题不再在于 ICS。官方 ICS 版本包括具有适当 ADK 支持的内核。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-12-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多