Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Communicating with serial USB device over Android

I have one custom made device for measuring current. This device can be connected to PC and communication is done over USB. It is based on FTDI chip. I have application written in Java and that application is using rxtxSerial.dll library and gnu.io.rxtx_2.1.7.4.jar. Now I want to port this application on my android device and I'm litte bit confused what to do that? All I have is android tablet (os version 4.1.1), OTG cable and this measuring device.

Should my device be rooted? Is there any kind of library that I can simply add to my Java Android application and read data over USB? Where to start?

I have tried to port existing application for PC using same library, but rxtxSerial.dll is missing and I can't transfer it to my android device.

like image 613
Josef Avatar asked Feb 15 '14 17:02

Josef


People also ask

How do I access my USB serial device?

Right click on the Windows Start Icon and select "Device Manager." Open the "Ports (COM & LPT)" Section. Locate the "PI USB to Serial" and note which COM port it is using.

What is USB serial communication?

A serial port USB is intended to interface with a modem or with a similar communication device. This USB gateway usually identifies hardware that is more or less compliant to RS-232 standard.


1 Answers

I can really recommend the USB-Serial-For-Android library, it supports multiple popular usb-to-serial chips (also FTDI) and there is no rooting required. Check out the GitHub project here.

like image 65
Frank D. Avatar answered Sep 22 '22 13:09

Frank D.