Question

I have been trying to get the FTDI D2xx driver working with my Android 2.3.4 tablet for a while now. After solving a number issues relating to actually loading the driver I am now in a situation where the FTDI device is just not seen by the sample application FTDI provides.

There are no errors reported in either LogCat or Java (debug) the device is just simply not found.

Java_com_ftdi_D2xx_getDeviceInfoList() returns zero.

The tablet is rooted, and the permissions for the ueventd.rc file are set to:

/dev/bus/usb/* 0666 root usb

The USB port I have connected my TTL-232R to does work (in that I can read a USB memory stick with it at least...)

Has anyone else experimented with this and/or got it working? If so some pointers would be greatly appreciated!

Many thanks

Was it helpful?

Solution

Does 2.3.4 support USB Host?

http://developer.android.com/sdk/android-2.3.4.html

No USB host support — Android 2.3.4 and the Open Accessory Library do not support USB host mode (for example, through UsbDevice), although USB host mode is supported in Android 3.1. An Android-powered device running Android 2.3.4 can not function as a USB host. The library enables the Android-powered device to function as a peripheral only, with the connected accessory functioning as USB host (through UsbAccessory).

I've got the sample working with ICS.

OTHER TIPS

Well, I must manually switch from USB peripherals to USB host and vice versa in terminal emulator, since stock kernel does not support otg, custom kernel support otg, but not turn it on automaticly.

cmd1="echo host > /d/otg/mode"; // usb otg host on
cmd2="cat /d/otg/info</";    // check usb status, must be usb a_host and otg=1
cmd3="echo peripheral > /d/otg/mode"; // usb oth host off
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top