Usb serial connection of FT232BL - android

I am working on an Android project. I want to make an Android app and load to an Android tablet. My goal is control the peripheral device over the Android app installed Android device. Therefore, I researched on the Internet to send/receive data over USB, and I saw the FTDI chip.
I have an FT232BL. I loaded the D2XXsample and driver and also read and processed TN_134_FTDI_Android_D2XX_Driver.pdf and TN_147_Java_D2xx_for_Android.pdf. But I don't achieve to connect the Android tablet and peripheral device. How can I fix this?

Related

How can I communicate between a Windows App and an Android App using the USB cable?

I would like to communicate from a .Net UWP app to an Android device to send and receive data.
For this, I have to activate the "USB Debugging" feature of the Android Device and I have to install an App on it.
If I'm right, I have to use the "Accessory" of the USB Manager in the Android App anyway.
For this, I have to implement a related daemon in my UWP App to open the Accessory of the Android device.
Unfortunately, I can't find further information how to realize this.
The solution should work on any Windows installation and any Android device without installing further software / hardware.
How can I communicate between a Windows App and an Android App using the USB cable?
The reference to Android Open Accessory (AOA) feature has the Android device is acting as USB accessory and the counter-party device is configured as USB Host.
An important point is that with AOA on Android the device needs an Android app to communicate with the other side:
If you use the general accessory protocol to communicate with your accessory (rather than the adb or audio protocol), you must provide an Android app that can detect the connection of your USB accessory and establish communication.
If you do not want to write an Android app, you are limited to either the Android Debug Bridge (adb) protocol, source directions here or via Windows Media Transfer Protocol (MTP) which with a search brings up libraries like libmtp.

Getting mobile IMEI using Arduino

I have an Arduino device connected through USB to the Android smartphone.
Is it possible to get the mobile's IMEI without routing it using my Arduino board?
By default I hope not, or else it would be a security issue.
The Android device controls what information is shared with the attached device.
You can probably create an Android app that will detect a plugged Arduino device in a special way and share that information (write it to USB from the app). In this case you have to install and run this app first on the mobile phone.
If you don't have an app, you can probably pretend that Arduino is a "debugger device" (like a PC with a debugging driver), and then the Android OS will ask if you trust it or not, and then can issue debugger commands from Arduino. That's much more complicated, because such drivers differ between manufacturers.

What Android USB driver can I use to communicate with a device that implemented WinUSB.sys

I am about to write an Android application that will communicate with a device through USB. The device has implemented WinUSB.sys.
Is there any ready made USB lib that I can use in order to avoid writing my own USB driver for Android?
I haven't got a hold of the actual device yet, so it might be that I will be able to communicate via the built in Android USB lib. If that is the case, I will let you know.

developing a special device communication app that connects through USB port on Android

I found the USB docs for Android and from there it seems as if one could write a communication program on an Android phone that works exactly like on a PC.
I have a normal USB-cable that normally connects between a PC and an external device. On one end it is a normal USB on the other end it has a special plug for the device.
If I get an USB female-female adapter I could connect my normal Android phone cable USB end to my device USB cable and so basically plug in my special USB cable into the Android phone.
Does anyone have experience doing USB communcation programming on Android - basically copying normal PC USB functionality? All I would have to do is sent and receive text strings over the USB port - just like on a PC.
Is this possible or is the USB port programming on Android limited in any way
and not really identical to USB programming on a PC? eg. power supply through USB or anything else?
ps on the PC I need to have a FTDI driver installed to work with the external device.
Many thanks
UPDATE:
it seems that starting with Android 3.1 it is possible to do this - however, if I understand htis correctly, Android 3.1 runs only on tablet Android devices - I might be wrong with this - compared to Apple this all this pretty confusing (however, with Apple iPhone it will never work! ;)
Yes, Android supports USB host on 3.1 and newer, so you can connect USB devices directly to an Android device using a converter cable. Android 4.0 brings this feature to handset devices.

Android USB Accessory Communication with Linux System

I am trying to setup a Nexus One phone to communicate with an application running on a Linux tablet.
On the phone side of things, the Nexus One is Android 2.3.4 so it has the USB accessory library on it. And I have created an application Android following the instructions on http://developer.android.com/guide/topics/usb/accessory.html. I have verified that the Android application works by plugging it into the Microchip Accessory Development Starter kit and connecting to it.
On the Linux side of things, I have configured it to register the Nexus device with the usbserial module and create a ttyUSB0 device when the phone is plugged in. I have verified my application reads and writes to ttyUSB0 correctly. I did this by connecting it to a serial port on another computer and watching data come in through minicom.
Unfortunately The Android developer website does not cover any configuration that host devices (in my case, my Linux tablet) need to perform. In other words, what protocol does the Linux heed to follow to communicate with the phone?
This is not possible. After further research it is not possible to communicate with the Android device using serial USB communication. To communicate with Android applications through Linux use the libusb-1.x library.

Categories

Resources