Author Topic: Logging binary data on Android  (Read 1595 times)

0 Members and 1 Guest are viewing this topic.

Offline mojoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 372
  • Country: us
Logging binary data on Android
« on: May 30, 2016, 03:52:12 am »
Is there any easy way (preferably a simple app) to capture and store data from a device plugged into the USB OTG port on an Android tablet? The app doesn't need to understand the data, just store it as it arrives. The data is 8-bit binary.

I have configured a uBlox LEA-6T GPS module to output ubx raw data on its USB port. I want to capture this data for later post processing with RTKLIB. I'm doing it right now with STRSVR from RTKLIB on Win7. I'd like to use a tablet so I can go portable.

It just occurred to me - would a driver for the uBlox GPS be needed, or does Android see it as a Com port if I am simply capturing the incoming data? I know on Win7, to use the uCenter software, a driver is required. The GPS will start spewing data as soon as it is plugged into a powered USB port.

I know that I could use Bluetooth and that Android has SPP support, which might make things easier. However, I don't have a Bluetooth enabled GPS, or a Bluetooth module that I could interface with the uBlox GPS I do have. I could always order something, but If I can make this work with what I already have, that would be preferred.

All I need is a simple app that has a START and a STOP button. Every time START is pressed, a new file is created and any data coming into the USB port is saved. When STOP is pressed, that file is closed. Pressing START again will open a new file. I don't care whether the data is saved to internal storage or an SD card, although having a choice would be nice.

I've done some searching on the net, but haven't turned up anything so far. Thanks for any help.
 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2320
  • Country: au
Re: Logging binary data on Android
« Reply #1 on: May 30, 2016, 04:05:28 am »
Check to see whether you can talk to your device over the COM port in Win7 using a normal terminal program, like PuTTy or hyperterminal. Check whether the device appears under devmgmt.msc as a COM port.

Even better, try a linux PC and see if it appears under /dev/tty***.

Once you have those questions answered, we can start talking about Android. Android does support CDC USB ("USB COM ports"), but whether it works on your phone and whether root is required are tricky questions.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf