Highlighted

Mobile accelerometer and suspended mode rate

New Here ,
Mar 20, 2015

Copy link to clipboard

Copied

Hi!

I am building an app that will, among other things, act as a pedometer.  After much sweat I managed to build a pretty reliable code to detect steps by using, among other things, a dot product of the three axes values and a weighted moving average to smooth the result.  Now the problem I seem to be struggling with is when the app is in background.  The update event rate seems to be ~2x slower (4-5 updates per second) and sometimes the movement doesn't seem to register at all.

I am testing on IOS, on Android I have yet to manage having the accelerometer work in background at all.

Is it a bug? Is there something I can do?

Any help would be really appreciated.

Thanks!

TOPICS
Performance issues

Views

180

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Mobile accelerometer and suspended mode rate

New Here ,
Mar 20, 2015

Copy link to clipboard

Copied

Hi!

I am building an app that will, among other things, act as a pedometer.  After much sweat I managed to build a pretty reliable code to detect steps by using, among other things, a dot product of the three axes values and a weighted moving average to smooth the result.  Now the problem I seem to be struggling with is when the app is in background.  The update event rate seems to be ~2x slower (4-5 updates per second) and sometimes the movement doesn't seem to register at all.

I am testing on IOS, on Android I have yet to manage having the accelerometer work in background at all.

Is it a bug? Is there something I can do?

Any help would be really appreciated.

Thanks!

TOPICS
Performance issues

Views

181

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 20, 2015 0
New Here ,
Mar 20, 2015

Copy link to clipboard

Copied

I made some checks on android and the event is indeed triggered but only 2x per second.  Needless to say this is not enough to have sensible data.  Any thoughts?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 20, 2015 0