Annonce

>>> Bienvenue sur codelab! >>> Première visite ? >>> quelques mots sur codelab //// une carte des membres//// (apéros) codelab


#1 2011-05-11 13:27:21 ADK - Android Open Accessory Development Kit

22_
membre
Lieu: paris
Date d'inscription: 2010-04-08
Messages: 189

ADK - Android Open Accessory Development Kit



basé sur Arduino, bonne initiative :

http://developer.android.com/guide/topics/usb/adk.html

citation :

The Android 3.1 platform (also backported to Android 2.3.4) introduces Android Open Accessory support, which allows external USB hardware (an Android USB accessory) to interact with an Android-powered device in a special "accessory" mode. When an Android-powered powered device is in accessory mode, the connected accessory acts as the USB host (powers the bus and enumerates devices) and the Android-powered device acts as the device. Android USB accessories are specifically designed to attach to Android-powered devices and adhere to a simple protocol (Android accessory protocol) that allows them to detect Android-powered devices that support accessory mode. Accessories must also provide 500mA at 5V for charging power. Many previously released Android-powered devices are only capable of acting as a USB device and cannot initiate connections with external USB devices. Android Open Accessory support overcomes this limitation and allows you to build accessories that can interact with an assortment of Android-powered devices by allowing the accessory initiate the connection.

Note: Accessory mode is ultimately dependent on the device's hardware and not all devices will support accessory mode. Devices that support accessory mode can be filtered using a <uses-feature> element in your corresponding application's Android manifest. For more information, see the USB Accessory Developer Guide.

The Android Open Accessory Development Kit (ADK) provides an implementation of an Android USB accessory that is based on the Arduino open source electronics prototyping platform, the accessory's hardware design files, code that implements the accessory's firmware, and the Android application that interacts with the accessory. The hardware design files and code are contained in the ADK package download. You can buy the hardware components of the ADK if you do not already have them. The main hardware and software components of the ADK include:

    A USB micro-controller board that is based on the Arduino Mega2560 and Circuits@Home USB Host Shield designs (now referred to as the ADK board), which you will later implement as an Android USB accessory. The ADK board provides input and output pins that you can implement through the use of attachments called "shields." Custom firmware, written in C++, is installed on the board to define the board's functionality and interaction with the attached shield and Android-powered device. The hardware design files for the board are located in hardware/ directory.
    An Android Demo Shield (ADK shield) that affixes atop the ADK board implements the input and output points on the board. These implementations include a joystick, LED outputs, and temperature and light sensors. You can create or buy your own shields or wire your own features to the ADK board to implement custom functionality. The hardware design files for the shield are located in hardware/.
    A library based on the Arduino USB Host Shield library provides the logic for the USB micro-controller board to act as a USB Host. This allows the board to initiate transactions with USB devices. Describing how to use this entire library is out of the scope of this document. Where needed, this document points out important interactions with the library. For more information, see the source code for the Arduino USB Host Shield library in the firmware/arduino_libs/USB_Host_Shield directory.
    An Arduino sketch, firmware/demokit/demokit.pde, defines the firmware that runs on the ADK board and is written in C++. The sketch calls the Android accessory protocol library to interact with the Android-powered device. It also sends data from the ADK board and shield to the Android application and receives data from the Android application and outputs it to the ADK board and shield.
    The Android accessory protocol library, which is located in the firmware/arduino_libs/AndroidAccessory directory. This library defines how to enumerate the bus, find a connected Android-powered device that supports accessory mode, and how to setup communication with the device.
    Other third party libraries to support the ADK board's functionality:
        CapSense library
        I2C / TWI (Two-Wire Interface) library
        Servo library
        Spi library
        Wire library
    An Android application, DemoKit, that communicates with the ADK board and shield. The source for this project is in the app/ directory.

Hors ligne

 

#2 2011-05-11 15:23:49 Re : ADK - Android Open Accessory Development Kit

oyster_twiter
membre
Lieu: saint-herblain
Date d'inscription: 2008-04-01
Messages: 444
Site web

Re: ADK - Android Open Accessory Development Kit



très prometteur ça !
Il y a aussi le magnifique Amarino pour relier Android à Arduino en Bluetooth :
http://www.amarino-toolkit.net/index.php/home.html

Hors ligne

 

#3 2011-05-14 17:31:13 Re : ADK - Android Open Accessory Development Kit

22_
membre
Lieu: paris
Date d'inscription: 2010-04-08
Messages: 189

Re: ADK - Android Open Accessory Development Kit



voici un article là-dessus... j'ai seulement survolé :
http://blog.makezine.com/archive/2011/0 … od-tm.html

Hors ligne

 

#4 2011-05-14 21:09:52 Re : ADK - Android Open Accessory Development Kit

cdriko
modérateur
Lieu: Le Landreau
Date d'inscription: 2010-07-16
Messages: 76
Site web

Re: ADK - Android Open Accessory Development Kit



fichtre !
une limitation d'android qui tombe !
amarino est joli, mais un sheil bluetooth coute un arduino.
la connection USB permet un dialogue plus direct et plus simple

Hors ligne

 

#5 2011-05-14 21:20:43 Re : ADK - Android Open Accessory Development Kit

cdriko
modérateur
Lieu: Le Landreau
Date d'inscription: 2010-07-16
Messages: 76
Site web

Re: ADK - Android Open Accessory Development Kit



oupps
le système dont il est fait référence dans l'article
est
http://www.sparkfun.com/products/10585
IOIO for Android

en fait, c'est un arduino, mais avec un host usb au lieu d'être client
et il ne coûte que ....deux arduino

android s'ouvre vraiment ?
ça ressemble à un hack

un effort de 3h pour les developpeurs android (officiels) pourrait nous donner droit à de l'host USB sur android, ce qui permettrai d'utiliser un arduino "standard"

en gros google se fatigue pas sur cette affaire....

un abord "soft" serai plus simple
https://github.com/monaka/libusb-android


mais bon, on va pas cracher dans la soupe de mox

Dernière modification par cdriko (2011-05-14 21:27:22)

Hors ligne

 

fil rss de cette discussion : rss

Pied de page des forums

Powered by FluxBB

codelab, graphisme & code : emoc / 2008-2024