• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to control the sample rate of an acceleration sensor?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to use the acceleration sensor of a Samsung i8910 from a Java MIDP application. I have implemented the DataListener interface found the Sensor, registered the listener and the application is receiving acceleration data.
The application receives a set of double values (X, Y, Z) once in a second, which is too rare for me. I would like to increase the sample rate somehow. It seems to me the buffer size has no (or no significant) effect on the call frequency. Additionally the received data does not reflect the latest acceleration values. If I turn the phone it takes approximately 10 seconds to get the correct values. It behaves like a rather slow built in filter. Although it might exist, I could not find a SampleRateControl either, which would make it possible to change the sampling frequency.
On the other hand I can check the acceleration sensor of the phone in test mode *#0*#, where I can see that its rather fast and responsive.

I would appreciate any idea for getting current acceleration data more frequently. I do not know if this is a phone specific or a general issue.
Thanks in advance for your support.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic