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 Reply
  • Hi,

    We have a flash write example in the SDK that accesses the flash directly. But direct access to flash is restricted when using the softdevice. We recommend you to use FDS instead. It is a simple file system, that will handle write and erase for you.  You don't need to worry about the address you store the variable or how you back up data when erasing a page. Have a look at this post for more details.

    The maximum time you can put in the app timer depends on the prescaler of RTC1. The maximum is limited by the time the counter wraps around. I suggest you have a look at this for more details about the application timer.

Children
Related