Author Topic: Android tablet - plotting data bytes coming through Bluetooth  (Read 4159 times)

0 Members and 1 Guest are viewing this topic.

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
I expect to take sequences of say, 50 temperature measurements expressed by a byte each with values ranging from 0 to 255.

The micro will transmit them through bluetooth to a tablet running Android 4.4 at a pace not decided yet. Say, for now, every 30 seconds.

I spent two days already, reading intensively about Android but still have questions:

a - What application (tablet side) could I use to receive and (save?) them?

b - What application is actually able to take the above data and plot the values against an X axis (time).

c - Initially I thought that a .bin file would be involved but it seems that in Android they are different than in Windows and maybe they are not needed at all. The .bin files seem to have a more or less specific use.

d - The apps I've read about up to now, they all seem able to graph functions but no data values.

Could anyone suggest how to handle this, based on previous experience. BTW, I am not Java, nor C conversant.

Gracias for any help.
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #1 on: June 05, 2015, 01:46:01 pm »
Are you looking for an off the shelf Android app or do you plan to write your own?

 

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #2 on: June 05, 2015, 02:18:59 pm »
Are you looking for an off the shelf Android app or do you plan to write your own?

If at all possible something free and ready.

Writting would mean learning a whole bundled of things and going out of focus on what I intend to do in the micro's side.
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 

Offline ivaylo

  • Frequent Contributor
  • **
  • Posts: 661
  • Country: us
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #3 on: June 06, 2015, 07:11:47 am »
a - What application (tablet side) could I use to receive and (save?) them?

b - What application is actually able to take the above data and plot the values against an X axis (time).
One which you'll have to write yourself. There isn't an app which would connect to an arbitrary bluetooth correspondent, make sense of the incoming bytes and take another arbitrary action.
 

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #4 on: June 06, 2015, 11:26:33 am »
a - What application (tablet side) could I use to receive and (save?) them?

b - What application is actually able to take the above data and plot the values against an X axis (time).
One which you'll have to write yourself. There isn't an app which would connect to an arbitrary bluetooth correspondent, make sense of the incoming bytes and take another arbitrary action.

Had answers already saying totally the oposite but truth is that nobody can tell me a link for that so, yes, I am in my (slow) way to develope mine.
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 732
  • Country: us
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #5 on: June 08, 2015, 05:48:09 pm »
I think a generic app could be written that would fill a gap.  Data logging, graphing, save to file, etc. with the measurements coming in over a configurable BLE characteristic, or a very simple wifi (TCP stream) based protocol.  I've often wondered if anyone has written such a thing.  It would be quite useful in a variety of applications.
 

Offline ivaylo

  • Frequent Contributor
  • **
  • Posts: 661
  • Country: us
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #6 on: June 09, 2015, 07:56:32 am »
I think a generic app could be written that would fill a gap.  Data logging, graphing, save to file, etc. with the measurements coming in over a configurable BLE characteristic, or a very simple wifi (TCP stream) based protocol.  I've often wondered if anyone has written such a thing.  It would be quite useful in a variety of applications.
Such a thing doesn't exist for a PC, why would it exist for a tablet? What data do you pass? One bite, two bytes, four bytes,..., big endian, little endian, integer, float, ASCII, structured data, parity check, no parity check, compression, no compression, weird delimiters, synch, asynch, how many channels, etc, etc? You'd want it at any speed convenient too I guess...
« Last Edit: June 09, 2015, 01:35:28 pm by ivaylo »
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #7 on: June 09, 2015, 03:27:29 pm »
Didn't read the whole thread, but has anyone tried to suggest using a spreadsheet graphing/plotting app?

Search for "plot graph android" or similar.
 

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #8 on: July 04, 2015, 07:07:02 pm »
Finally decided to roll my own. The basics are solved and it serves my purpose.

Here it is https://youtu.be/JCy21NPKMlY
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 

Offline ivaylo

  • Frequent Contributor
  • **
  • Posts: 661
  • Country: us
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #9 on: July 05, 2015, 07:12:39 am »
Good job! Any plans to publish it?
 

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
Re: Android tablet - plotting data bytes coming through Bluetooth
« Reply #10 on: July 05, 2015, 08:47:14 pm »
Good job! Any plans to publish it?

Thanks!

No plans for the moment. It just graphs the 260 values in each of three common .bin files. I should make it a little (or a LOT) more flexible to be of any use to someone else.

I am now on the micro's side seeing how to hook a BT module to it. RN 42?

Besides voting for Major I spent most of my day reading...and feeling our winter's cold! :P
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf