首页
产品
驱动程序
固件
技术支持
参考文档
参考设计
软件示例
FT51A 示例
FT90x 示例
FT9xx 示例
嵌入式图像引擎(EVE) 项目
FT600/601 示例
FT602 示例
Android 项目
Android Java D2XX
Vinculum-II 项目
Vinculum 项目
SafeGuard-IT
FTDIChip-ID™
MPSSE
示例代码
FT12 示例
FT313H 示例
FT4222H 示例
实用工具
知识库
相关连结
常见问题解答
安卓(Android)
嵌入式图像引擎(EVE)
微处理器(MCU)
销售网络
网上商店
新闻稿
企业介绍
联系方式

Android

近期安卓新闻

 

  Android Open Accessory Mode
Android Open Accessory Mode is a feature of Android OS 3.1 (back portable to version 2.3.4) whereby an external USB host controller may enumerate the Android USB peripheral port and create a two way data port to allow external hardware to control the Android platform or for the Android platform to control external hardware. A typical application may be buttons, LEDs, or joystick as found on a games controller.

For more information on Open Accessory Mode in Android platforms see: http://developer.android.com/guide/topics/usb/accessory.html

FTDI offer a solution for connecting to the Open Accessory Mode via the Vinculum-II device. Examples may be found on this page.

  Example 1 - Buttons and LEDs Controller
In this example the Vinculum-II evaluation board (V2EVAL) is used to communicate with an Android platform via the Vinculum-II USB host port 1.

VNC2 GPIO lines are used to drive LEDs in response to commands from the application running on the Android platform and to read other GPIO lines in response to button presses on the V2EVAL hardware to control software LEDs in the Arduino application.

A fifth LED will flash at a variable rate as a slider on the Android application controls the VNC2 PWM interface.

This gives the appearance of an LED dimmer switch.

Source code and a precompiled ROM file for running on the Vinculum-II may be downloaded from here:
http://www.ftdichip.cn/Support/SoftwareExamples/Android/vinco_android_acc.zip

Source code and a precompiled application file to run on the Android platform may be downloaded from here:
http://www.ftdichip.cn/Support/SoftwareExamples/Android/android_acc_appl.zip

For more information on the project see: AN_181_ Accessing Android Open Accessory Mode with Vinculum-II

  Example 2 – Collection of FT31xD Demo Applications
 

The Android.zip file contains seven Android Open Accessory Demo applications for use with the FT311D and FT312D (note only UART apps apply to FT312D). The zipped file contains both source code and the compiled .apk

  • GPIODemoActivity.apk

A demonstration to show the Android device reading / writing GPIO lines on the FT311D.

  • UARTTestActivity.apk

A demonstration to show the Android device streaming data via the FT311D/FT312D UART port.

  • UARTLoopbackActivity.apk

A demonstration to show the Android device reading and writing data via the FT311D/FT312D UART port.

  • PWMDemoActivity.apk

A demonstration to show the Android device writing PWM waveforms on the 4 PWM channels of the FT311D.

  • I2CDemoActivity.apk

A demonstration to show the Android device reading and writing data via the FT311D I2C host.

  • SPIMasterDemoActivity.apk

A demonstration to show the Android device reading and writing data via the FT311D SPI host.

  • SPISlaveDemoActivity.apk

A demonstration to show the Android device reading and writing data via the FT311D SPI slave.

 

Also included in the Android.zip file are projects for the robotic arm and slider demos featured in our Android video.

For more information on the projects see: AN_208 FT311/FT312D Demo APK User Guide  



 

© Future Technology Devices International Ltd. 2016