<?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>Issue changing the frequency of heart rate update in heart rate Monitor Example App for nrf51 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14886/issue-changing-the-frequency-of-heart-rate-update-in-heart-rate-monitor-example-app-for-nrf51-dk</link><description>Hi, I wanted o increase the frequency at which heart rate is updated.
So I made the following change 
 #define HEART_RATE_MEAS_INTERVAL APP_TIMER_TICKS(300, APP_TIMER_PRESCALER) /**&amp;lt; Heart rate measurement interval (ticks)CHANGED from 1000 to 300. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jul 2016 08:42:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14886/issue-changing-the-frequency-of-heart-rate-update-in-heart-rate-monitor-example-app-for-nrf51-dk" /><item><title>RE: Issue changing the frequency of heart rate update in heart rate Monitor Example App for nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/56836?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 08:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e69ac605-f2f4-415c-bad1-0acc76585eeb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The frequency depends on two things; the connection interval and how often you actually tell the stack to send a notification to the central. The connection interval is dictated by the the central device, the min and max connection interval is only given to the central as guidance. You should try to figure out what connection interval you actually have, please see &lt;a href="https://devzone.nordicsemi.com/question/56471/check-ble-connection-interval/"&gt;this&lt;/a&gt; thread for how to do that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue changing the frequency of heart rate update in heart rate Monitor Example App for nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/56833?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 08:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53e1cd7-4ea4-430e-84d4-e2a26b75d9b9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;To get the plot to update faster I think you must change the actual app on the smart phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue changing the frequency of heart rate update in heart rate Monitor Example App for nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/56835?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2016 05:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bb35b34-bac8-413f-9271-e7017e53410d</guid><dc:creator>Manu</dc:creator><description>&lt;p&gt;Hi Stefan
I did as you advised, I changed the connection intervals as shown below. Is there a way I can further increase the frequency?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; #define HEART_RATE_MEAS_INTERVAL         APP_TIMER_TICKS(5, APP_TIMER_PRESCALER) /**&amp;lt; Heart     rate measurement interval (ticks)CHANGED from 1000. */
 #define MIN_CONN_INTERVAL                MSEC_TO_UNITS(8, UNIT_1_25_MS)           /**&amp;lt; 100 from 400  Minimum acceptable connection interval (0.4 seconds). */
#define MAX_CONN_INTERVAL                MSEC_TO_UNITS(15, UNIT_1_25_MS)
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue changing the frequency of heart rate update in heart rate Monitor Example App for nrf51 DK</title><link>https://devzone.nordicsemi.com/thread/56834?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2016 14:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5d7d414-570f-459f-83b6-725bb51fbade</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Manu&lt;/p&gt;
&lt;p&gt;To get a faster update rate in nRFToolbox, you need to both change the HEART_RATE_MEAS_INTERVAL as you have mentioned, but you also need to adjust the BLE connection interval. Try to set the following constants in the ble_app_hrs example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BATTERY_LEVEL_MEAS_INTERVAL      APP_TIMER_TICKS(100, APP_TIMER_PRESCALER) /**&amp;lt; Battery level measurement interval (ticks). */
#define MIN_CONN_INTERVAL                MSEC_TO_UNITS(100, UNIT_1_25_MS)       /**&amp;lt; Minimum acceptable connection interval (0.4 seconds). */
#define MAX_CONN_INTERVAL                MSEC_TO_UNITS(250, UNIT_1_25_MS)       /**&amp;lt; Maximum acceptable connection interval (0.65 second). */
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>