Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

how to save real time data

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 28056
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic