1

I have an application in Tizen in which I am recording the sensor data of some activity of a user. The application is hybrid type and the accelerometer, gyroscope data is registered in the native service application. I have an option where the user can pause the recording of data. When the device goes to is paused, sensor_listener_unset_event_cb(listener_accelero) and device_power_release_lock(POWER_LOCK_CPU) are called. Hence, it is expected that no sensor data will be received while in sleep state.

However, on submitting to Tizen store I get the following rejection message :

[CURRENT] Gear current consumption is too high on sleep mode
- Tested application
Min current: 23.1 mA, Average current: 24.173 mA
- Samsung Gear standard current consumption
Min current: 4 mA, Average current: 7 mA

The video attachment shows that reported current consumption is in sleep state after pausing the recording. What could be the reason for such high current drawn? Also, how can I verify whether some tweak actually solves the problem. Is there any application which does the current/power profiling for Samsung gear S2/S3?

Manish Sharma
  • 170
  • 2
  • 11

1 Answers1

1

Keeping app awake in device screen off state is sensitive issue. Have you tried using SENSOR_OPTION_ALWAYS_ON

sensor_listener_set_option(listener, SENSOR_OPTION_ALWAYS_ON);

Sensor API: Sensor option

You may also see this links:

Allowing Applications to Run on the Background

Tizen accelerometer sensor usage

Stop the sensor listeners when the app is going to pause state. Then again start the listeners when app is up front again if necessary.

sensor_listener_stop ( listener )

Md. Armaan-Ul-Islam
  • 2,154
  • 2
  • 16
  • 20
  • Hi there, I have included the option in my native application for both gyroscope and accelerometer sensors. However, my problem is not that I want to receive data in sleep mode, but I want to know why the current consumption in sleep mode is high even though data is not received (paused). – Manish Sharma Nov 22 '16 at 08:34
  • Even when you are using sensor_listener_unset_event_cb(listener_accelero) and device_power_release_lock(POWER_LOCK_CPU) at the moment device is going to pause state the power consumption is high in sleep mode? – Md. Armaan-Ul-Islam Nov 22 '16 at 08:53
  • Yes, this is what the video sent along with the rejection report says. I am not able to understand what could be the reason for this or how I could resolve this – Manish Sharma Nov 23 '16 at 09:17
  • 1
    Edited@Manish Sharma – Md. Armaan-Ul-Islam Nov 24 '16 at 04:36