언어 설정

Menu
Sites
Language
Tizen wearable sensor data loss in background after wifi is switched off

I am developing a hybrid application for Tizen Wearable 2.3. For the application, accelerometer and gyroscope sensor data is extracted and written to a file in native service application at a frequency of 100Hz.

However, in certain trials I see that data is lost after few minutes upon switching off WiFi. For instance, if I record the data for 10 minutes, while keeping the app in background (display off) and turn off wifi during the fifth minute, the file shows data for only first 5 minutes, the remaining data is not written to the file. How can I stop this behaviour?

Thanks.

Responses

2 댓글
Armaan-Ul- Islam

Hello,

Seems weird. Have you used any function that is related with wi-fi in your code ? What happens if you keep the wi-fi off for entire period ?

Armaan-Ul- Islam

So, according to your post the Issue is CPU going to sleep state and you have to request CPU to stay awake for processing your app using Power API, right ?

//Start of Session
device_power_request_lock( POWER_LOCK_CPU, 0);

//End of Session
device_power_release_lock(POWER_LOCK_CPU); 

https://stackoverflow.com/questions/40449985/tizen-wearable-sensor-data-loss-in-background-after-wifi-is-switched-off