Android and USB

dburrin

New Member
I have a small datalogging device that connects to a PC via a usb port. The data on the device can be downloaded to the pc when you connect at 9600bps with 8 data bits, no parity and 1 stop bit. The software for downloading on the pc is fine and i wrote a EVB application for the device that i used to use under my old Windows Pocket PC (IPAQ) I'd like to develop an android app to download the data directly to my tablet instead.

Is this possible using Basic4Droid, i'm assuming the usb host on the tablets is usable in the same way as on the PC etc.

If there is any sample code kicking about for pulling data from devices cia a serial connection i'd be very inerested.

Thanks
Damian
 

ScarBelly

Member
Licensed User
Longtime User
Your logging device appears to use serial port emulation which is common with such devices and others like barcode scanners. I don't know if there are any drivers for that with Android but I doubt it.
 
Upvote 0

dburrin

New Member
Bummer

That's a shame, i'd read a few people were able to pull data of serial systems such as GPS and medical serial devices and hoped it would be similar.

Thank you
Damian
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
If it uses a Prolific PL2303 chip, which is one of the most common, then you could try http://www.b4x.com/forum/additional...es/11449-pl2303-usb-rs232-adaptor-driver.html which at least two people are using successfully. You would need to purchase Basic4android to get the use of the library and your device needs Honeycomb 3.1 or later and probably a host adaptor cable.

Post #2 http://www.b4x.com/forum/additional-libraries-official-updates/11290-usb-host-library.html#post63127 has a program that will give you information about a USB device when you plug it in. A PL2303 has a Product ID 0f 0x2393 and a Vendor ID of 0x67b.
 
Upvote 0
Top