<?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>ble_app_hrs_freertos example questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55388/ble_app_hrs_freertos-example-questions</link><description>Sorry for asking, maybe stupid questions, but looking at ble_app_hrs_freertos example in SDK 16.0.0 cant get through: 
 
 1.to documentation ble_conn_params_init_t. first_conn_params_update_delay and conn_params_update_delay should be: (in number of timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Dec 2019 12:14:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55388/ble_app_hrs_freertos-example-questions" /><item><title>RE: ble_app_hrs_freertos example questions</title><link>https://devzone.nordicsemi.com/thread/224908?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 12:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7342be0f-f742-4738-af60-7e54f65b9419</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;we can continue the discussion in the other thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs_freertos example questions</title><link>https://devzone.nordicsemi.com/thread/224778?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 15:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8c39259-356d-4873-b92a-f5da14751017</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;As this thread was not accepting any Replies until now, I already posted a new Question&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55460/ble_app_hrs_freertos-2"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/55460/ble_app_hrs_freertos-2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which is actually a continuation of this thread. If there is moderator - feel free to merge both if you find it appropriate. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs_freertos example questions</title><link>https://devzone.nordicsemi.com/thread/224721?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 12:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2fa6ceb-6473-4b34-a9fc-f05409c88277</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;First of all, the FreeRTOS is not running on app_timer.c but instead running on app_timer_freertos.c.&lt;/p&gt;
&lt;p&gt;Which means that its timings are not dictated by sdk_config.h but instead the define in FreeRTOSConfig.h -&amp;gt;&amp;nbsp;configTICK_RATE_HZ&lt;/p&gt;
&lt;p&gt;You are not totally wrong though.&lt;/p&gt;
&lt;p&gt;We cannot get the granualarity of 1ms exactly using a 32768 Hz timer. Since&amp;nbsp;configTICK_RATE_HZ = 1024Hz, one tick is equal 1/1024 seconds, which = 0.976ms.&lt;/p&gt;
&lt;p&gt;For realtime systems that need that can of granularity you should use&amp;nbsp;&lt;span&gt;portTICK_PERIOD_MS(time_in_ms) as below&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define FIRST_CONN_PARAMS_UPDATE_DELAY      portTICK_PERIOD_MS (5000)           /**&amp;lt; Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */

#define NEXT_CONN_PARAMS_UPDATE_DELAY       portTICK_PERIOD_MS (30000)          /**&amp;lt; Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */

 &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Even though this is a bit harmless in current conditions, I can see that it could lead to bad results if the user has changed the&amp;nbsp;configTICK_RATE_HZ rate to cause any other tick different than almost 1ms.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for lettings us know this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.&lt;/span&gt;&lt;/p&gt;
[quote user=""]%s specificator for nrf_log_* doesn’t work in ble_app_hrs_freertos[/quote]
&lt;p&gt;instead of uint8_t define&amp;nbsp;&lt;span&gt;bc_buf2 as char. String literals work with char and not uints&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""] In sdk_config.h APP_TIMER_CONFIG_RTC_FREQUENCY 1 (template ) vs 0 (hrs_freertos)&amp;nbsp; - what is the objectives to use once 0 (32768 Hz) vs&amp;nbsp; 1 (16384 Hz) ?[/quote]
&lt;p&gt;This define should be irrelevant in your use case since with freeRTOS you are not using app_timer.c file where the above mentioned define becomes valid.&lt;/p&gt;
&lt;p&gt;Since you should only use app_timer_freertos.c, the value above is not used&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>