5114Views4Replies

Author Options:

How to get data from serial port to USB on android tablet? Answered

Hi friends,
I'm new in android. I have one tablet,usb-serial port data cable and GPRS device.
Now my doubt is i want to get the data from gprs device using that cable.Because the gprs device will connect using the serial port.So it gives the data on serial port.
I tried in many ways.But it's not working.
Please let me know.

4 Replies

user
steveastrouk (author)2012-03-27

Can you see the USB-serial adapter inside Android ?

Steve

Select as Best AnswerUndo Best Answer

user
Lavanya S (author)steveastrouk2012-03-28

ya i'm having.Then i followed this link.,
http://code.google.com/p/android-serialport-api/

It says first root ur device.So I tried to root my device using Universalandroot.It's working fine.

Then what can i do?I'm not aware of this.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)Lavanya S2012-03-28

Does his sample code work ?
http://code.google.com/p/android-serialport-api/downloads/detail?name=SerialPort_1.1.apk&can=2&q=

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)Lavanya S2012-03-28

Sorry, me neither. I haven't done much with Android myself, I was wondering if tablets gave a USB master by default.

What code have you used ?

Steve

Select as Best AnswerUndo Best Answer