Search code examples
nativesensorstizen-wearable-sdksensormanagersamsung-galaxy-gear

Tizen wearable sensor API stops giving data after sometime


I am trying to make a tizen gear application in which I record accelerometer and gyroscope data of user activity for about an hour and give analytics based on this raw sensor data saved in a csv file.

I have a tizen wearable hybrid application. I am using native service application to retrieve sensor data, and further sending it to web application for writing into csv file.

Upon testing, I have observed that after few minutes of starting the data recording (after about 3-8 minutes) the sensor data is no longer received (seen from the logs in sensor_callback() function). Moreover, during the test scenarios, I have observed that SHealth application opens up and starts recording the dynamic workout activity of the user. Is it possible that SHealth application might be hindering my application from receiving sensor data? If yes, how could one possibly resolve this?

Thanks in advance.


Solution

  • Actually nothing can be say without seeing any code. SHealth can be an issue but it is just a guess as you have not provided any logs that can show SHealth is an issue. I will suggest you to follow the sensor app workflow properly from the below guide. The guides also provided sample app.