This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How i change app timer time using android app?

Hello,

We are using nRF52832 DK, nRF52 sdk15.0 with SES IDE in windows 10. Currently we have senor network which is trigger every 1 Hr and send data trigger time set in program flash memory.

We want to change the sensor trigger time using android app which will connect to our sensor node and send time to set in device.

So how we can update application timer time in sensor node by using android app. The sensor trigger time is different and set it by user like 30 min, 1Hr, 3 Hr, 8Hr, 1 day etc.

Is it need to store in flash by ble android app or it can be do by other way..

Please anyone provide me example code and tutorial link so we can do quickly. In sensor node we are using ble_app_uart example and modified by own application.

Looking forward your response.!!

Thanks in advanced....!!!! 

Parents
  • Hi,

    Unfortunately, we do not have an example or tutorial for this specific case. 

    You can update your application timer by sending the value you want to the RX characteristic. You can do this in nRF Connect. Then you just have to store this value as the new trigger time before going back to sleep.

  • Thanks for your reply..!!!

    Ok, so If i send new timer value in RX characteristics then is it save this new updated timer value in flash. Because if battery remove or restart sensor device that last set time need to remember not set time in program use. Is this possible.

    Currently i have import F storage library and also able to save time variable value in flash but in this got issue. When i read this time variable value from flash getting garbage value. 

    Will you please suggest best solution for setting app timer value using android app. When new time set successfully by android it should not reset when device power off. Because this wake time of sensor set and change it by user

    Thanks you..

Reply
  • Thanks for your reply..!!!

    Ok, so If i send new timer value in RX characteristics then is it save this new updated timer value in flash. Because if battery remove or restart sensor device that last set time need to remember not set time in program use. Is this possible.

    Currently i have import F storage library and also able to save time variable value in flash but in this got issue. When i read this time variable value from flash getting garbage value. 

    Will you please suggest best solution for setting app timer value using android app. When new time set successfully by android it should not reset when device power off. Because this wake time of sensor set and change it by user

    Thanks you..

Children
No Data
Related