ADK 1.0 devices do not work with Bean jelly, why?

He simply connected the tested and reliable ADK accessory to the Nexus 7 and Galaxy Nexus - and he was unable to connect to the message "could not read the version of the device protocol." The idea that the board died, is connected to the Nexus S using ICS, did an excellent job. Worked on the Galaxy Nexus before Jelly Bean, which means hardware failure can be ruled out.

I watched the ADK announcements closely, but I don’t remember reading or hearing anything about this particular change, as well as the backward compatibility of Android devices supporting ADK 2.0.

Accessory Development Kit 2011 Guide says: "Protocol version 1 is supported by Android 2.3.4 (API level 10) and higher. Protocol version 2 is supported by Android 4.1 (API level 16) and higher," he does not say that version 1 is not supported by 4.1 , and it would be rather strange to find that existing equipment would be left that way.

What am I missing here? Is this a bug or function?

+5
source share
4 answers

Older ADK1 libraries released last year do not recognize the new AOA v2 protocol spoken by JellyBean devices (Android 4.1 and higher). This has been fixed in the updated version of the ADK1 library.

Browse to the new ADK1 libraries:

ADK ADK1. , Arduino 1.0 , , , Arduino.

+5

@Chris Stratton .

( protocol == 1 check in switchDevice()), . 20120606 ( protocol >= 1 switchDevice()), , .

, , , , Jelly Bean. .

, , , , "ADK package" , , , . ( : https://code.google.com/p/android/issues/detail?id=35463)

:

  • , http://developer.android.com/tools/adk/aoa2.html#detecting : " 2.0 , , , - Android". .

  • , http://developer.android.com/tools/adk/adk.html#start-adk http://developer.android.com/tools/adk/aoa2.html#detecting protocol >= 1. ( , , , ADK2011 , .)

+2

ADK Jelly Beans. :

  • Mac OS Mountain Lion
  • Arduino Mega ADK
  • Samsung Galaxy S3 4.1.1

:

  • darduino-1.0.1-macosx
  • Documents/Arduino
  • USB labs.arduino.cc/uploads/ADK/GettingStarted/ArduinoADK-beta-001.zip.
  • ArduinoADK-beta-001/libraries/UsbHost , .
  • AndroidAccessory . , , . , , , Accesory. AndroidAccessory.cpp AndroidAccessory.h
  • Ardoinu , , (, # , ):

    < Max3421e.h > < Usb.h > < AndroidAccessory.h > ARRAY_SIZE 12;

    AndroidAccessory acc ( "", "", "", "", "URI", "" );

    char [12] = {'h', 'e', ​​'l', 'l', 'o', '', 'w', 'o', 'r', 'l', 'd'};

    void setup() { Serial.begin(115200); //acc.powerOn(); acc.begin(); }

    void loop() {

    if (acc.isConnected()) {   (int = 0; < 12; ++) {    Serial.print( [I]);     (250);  }

    Serial.println();   (250);  } }

    • S3 USB .

FL

+1

( == 1) (ul >= 1) ( - ). - LPC1768 mbed. (http://mbed.org/cookbook/mbed-with-Android-ADK)

0
source

All Articles