<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36390/how-i-change-app-timer-time-using-android-app</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Aug 2018 04:34:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36390/how-i-change-app-timer-time-using-android-app" /><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/146390?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 04:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:236a48e0-e94e-4119-af39-178affce9667</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Yes, Thank you so much Mttrinh for your great help...!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/146364?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 15:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f2df5c6-e6b0-41ab-8796-b27a03513558</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;It seems like you opened a&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37743/problem-with-fds-flash-read-write-delete-calling-that-function-using-android-phone" target="_blank" rel="noopener noreferrer"&gt;new ticket&lt;/a&gt;, I suggest you continue the case there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/145268?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 09:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32267b46-d2c4-40b4-a6c3-45474a8a8f28</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Thanks for provided flash write examples.&lt;/p&gt;
&lt;p&gt;Now i am able to write some data in flash and read as well. But regarding app timer time save in flash as per receiving from android connection still confused.&lt;/p&gt;
&lt;p&gt;How i can saved new timer overwrite on old time will please provide small program snippet for read time from android connection in &lt;strong&gt;static void nus_data_handler(ble_nus_evt_t * p_evt)&lt;/strong&gt;&lt;br /&gt;so that i can understand.&amp;nbsp; &amp;nbsp;Also how i can call write function after getting data from android and then update it in timer variable.&lt;/p&gt;
&lt;p&gt;Thanks...!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/141482?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 09:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ab7480-d91d-4c89-b56a-0aa010ed01bc</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/flashwrite_example.html?cp=4_0_0_4_5_10" target="_blank" rel="noopener noreferrer"&gt;flash write example&lt;/a&gt; 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.&amp;nbsp;&amp;nbsp;You don&amp;#39;t&amp;nbsp;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 &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/21988/how-to-save-data-in-flash-memory" target="_blank" rel="noopener noreferrer"&gt;post&lt;/a&gt;&amp;nbsp;for more details.&lt;/p&gt;
&lt;p&gt;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 &lt;a href="https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/application-timer-tutorial" target="_blank" rel="noopener noreferrer"&gt;this&lt;/a&gt;&amp;nbsp;for more details about the application timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140825?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 12:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6d04dea-28d6-4e43-b4c0-cc02e667de96</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Mttrinh,&lt;/p&gt;
&lt;p&gt;Will please also tell me what is the maximum time we can set in app timer. We need to set sensor wake up time 1 week or may be max 2 week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How i can set large app timer time ticks.. I am using sdk for nRF52 version 15.0 latest and SD132.&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140800?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 09:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c239142-26f4-46d3-b3f1-ed5d9d2615b5</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Thanks awneil for your suggestion,&lt;/p&gt;
&lt;p&gt;Is any register in nRF52832 to store variable value into directly flash without adding any other f storage library or something other also.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140799?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 09:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e17717b4-584d-4a0f-a635-bb1f9b817659</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The nRF5 SDK provides &amp;#39;Flash Storage&amp;#39; and &amp;#39;Flash Data Storage&amp;#39; libraries to help you with storing data in flash:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_fds.html?cp=4_0_0_3_52"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_fds.html?cp=4_0_0_3_52&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_fstorage.html?cp=4_0_0_3_53"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_fstorage.html?cp=4_0_0_3_53&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140796?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 09:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfcf5ee5-7e3f-42d6-8525-71b0194bf48f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Flash is the &lt;em&gt;&lt;strong&gt;only&lt;/strong&gt;&lt;/em&gt; available non-volatile storage&amp;nbsp; on nRF52 devices - so, if you want something else, you are going to have to add it externally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140784?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 08:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaaf72ba-de23-4698-91ff-110f47488cb4</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ok,&amp;nbsp; But can you suggest other solution instead of store timer variable value in flash. In nordic nRF52832 is it have any simple function to store value in flash instead of writing program for flash.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140709?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 14:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870b12c5-bef4-4bf1-8c5f-40d27a1a8f9a</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes it is possible, like you said after receiving the value, you can store it in flash so that the value doesn&amp;#39;t reset when powering off the sensor device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the flash issue, I suggest you create a new ticket on Devzone with more details on the flash issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140656?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 11:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f2a871b-2bf6-445e-b85d-2828e9b5691d</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Thanks for your reply..!!!&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;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.&amp;nbsp;&lt;/strong&gt;Because this wake time of sensor set and change it by user&lt;/p&gt;
&lt;p&gt;Thanks you..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140647?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 10:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:146d69bf-929f-450e-b731-d945019de531</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately, we do not have an example or tutorial for this specific case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i change app timer time using android app?</title><link>https://devzone.nordicsemi.com/thread/140178?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 09:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf282d8f-1d84-4fe8-900f-36f661c83748</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Please any one give me response.....!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>