Hi all,
I am new here, and i would like to talk about the specification of How to utilize UART serial interface on Android system today.
Introduction
Here is a page describing the different ways you could use to connect an Android device to an RS232 peripheral.
Solution 1
I am new here, and i would like to talk about the specification of How to utilize UART serial interface on Android system today.
Introduction
Here is a page describing the different ways you could use to connect an Android device to an RS232 peripheral.
Solution 1
- pros
- No need for external API, the Android SDK provides the class BluetoothSocket
- No need for hardware modifications
- hardware flow control is supported
- No need for external API, the Android SDK provides the class BluetoothSocket
- cons
- Bluetooth consume battery
- high latency
- low bandwidth
- API
- pros
- USB to RS232 adapters are cheap and easy to find
- no hardware modification needed
- no external battery needed
- low latency
- high bandwidth
- USB to RS232 adapters are cheap and easy to find
- cons
- your Android device needs an USB host connector (most tablets have one, but phones usually don't)
- your may need to root your device in order to change /dev/ttyUSB0 file permission, and to load a kernel module.
- your Android device needs an USB host connector (most tablets have one, but phones usually don't)
- API
- android-serialport-api
- android-serialport-api
- pros
- The cheapest solution
- The cheapest solution
- cons
- hardware adapter must be built (http://www.instructables.com/id/Android-G1-Serial-Cable)
- very few Android devices compatibles
- hardware flow control is not supported (only RX/TX, no RTS/CTS signals)
- hardware adapter must be built (http://www.instructables.com/id/Android-G1-Serial-Cable)
- API
- android-serialport-api
- android-serialport-api
- pros
- compatible with any Android device with an USB slave connector, i.e. 99.9% of the Android devices.
- no need to root your phone
- low latency
- high bandwidth
- you may use other GPIOs of the microcontroller at the same time
- compatible with any Android device with an USB slave connector, i.e. 99.9% of the Android devices.
- cons
- API