Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to save real time data

 
rahul taiwala
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have been able to send thie ECG signal to mobile phones through Bluetooth and we have been able to plot it in real time.
now my question is How to save the data without affecting the plot on the mobile phone?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Real Time on mobile phones has its limitations, since mobile phones generally trade faster processing power in for lower energy use. And, of course "Real Time' means different things depending on what your requirements are.

However, you seem to have managed the important parts. Few J2ME devices are using hard disk drives, so the time required to store data is defined by the speed of the NVRAM that does the storage and the overhead of the database or file system being used. I would generally expect that the extra time required to capture data on the device wouldn't be all that much.
 
Walter Gabrielsen Iii
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose this is where the Thread class and Runnable interface come in handy, to do two things at once. You'll have to test the performance on that for grabing data running in real-time though. Also, read about thread safety (synchronize, volatile ).

And, the storage options:

javax.microedition.rms

or

FileConnection API (jsr 75) -- an optional package.
If you have this, you can test for your midlet's private directory (accessed only by it, so you'll also need to access the data through your program to use it later) by requesting the System property: fileconn.dir.private.name.

You have to be careful though. I could easily see a real time storage box be filled up by a continus feed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic