Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: RS232 Serial Communication with android device

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

like image 660
ishan jain Avatar asked Oct 20 '14 11:10

ishan jain


1 Answers

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.

like image 191
Frank D. Avatar answered Sep 27 '22 17:09

Frank D.