Android: RS232 Serial Communication with android device

ishan jain picture ishan jain · Oct 20, 2014 · Viewed 31k times · Source

I have a MR400s taximeter hardware. I want to communicate with this taximeter using RS232 cable and I have already achieved this connection and communication in windows. But I wanted to make connection using android device.

How can I achieve this?

Thanks Ishan jain

Answer

Frank D. picture Frank D. · Feb 2, 2015

I use the USB to serial library, you can find it here: USB Serial for Android. It doesn't require any root access. You'll need to check if your Android device supports USB host mode. Then, using a usb OTG cable and a USB to serial adapter cable you can start communicating with your serial device via RS232. There are code examples to get you started on the Github page of the USB to Serial library.