<?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>Increase Notification Frequency nrf51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41276/increase-notification-frequency-nrf51422</link><description>Hello there, 
 
 I&amp;#39;m sending IMU data (16bytes) using a notification from a custom board to a phone. My final goal is to send this packet of data (16 bytes) every 10 milliseconds. My first step was to generate a program that sends a new packet (16 bytes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Dec 2018 17:01:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41276/increase-notification-frequency-nrf51422" /><item><title>RE: Increase Notification Frequency nrf51422</title><link>https://devzone.nordicsemi.com/thread/161515?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 17:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ff78652-3e34-4eb1-a90c-9643d4e0b936</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;So the peripheral device is the slave device when you look at the physical radio layer. This means that RX is turned on first, then TX. What happens is that it transmits on TX, waits one connection interval, it gets the ACK on RX, which is the BLE_EVT_TX_COMPLETE event. By the time the application finishes setting up the notification packet, the radio has already transmitted an empty packet on TX, and is waiting for the next connection interval to transmit the notification packet. &lt;/p&gt;
&lt;p&gt;So the method takes two connection intervals to transmit the packet. So when you connect to the cell phone it sets the interval to 15ms. This goes up into 30ms (every other connection interval), 45ms and 60ms. The reason why it&amp;#39;s not consistent on 30ms is because you get packet loss, which happens from time to time, and a retransmission of the last packet.&lt;/p&gt;
&lt;p&gt;You can try to use radio notifications instead. With radio notifications you can set it up to trigger on an event X number of milliseconds before the actual radio event (connection event) and call the hrs send function.&lt;/p&gt;
&lt;p&gt;You should also look into using the nRF sniffer. It&amp;#39;s a great tool for debugging. It allows you to sniff the packets on air, so you can see what is actually going on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase Notification Frequency nrf51422</title><link>https://devzone.nordicsemi.com/thread/160841?ContentTypeID=1</link><pubDate>Sun, 09 Dec 2018 01:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d11afe6e-8428-40c0-afed-e1efa439998c</guid><dc:creator>Pablo G</dc:creator><description>&lt;p&gt;For the moment I&amp;#39;m testing&amp;nbsp;my code using the nRF51 DK board by connecting it&amp;nbsp;with my phone. On the nrfConnect mobile app, I found &amp;quot;Request connection priority&amp;quot; which can be set HIGH (11.25-15ms), BALANCED(30-50ms), LOW POWER(100-125ms). After I set to HIGH option, I can see through the gpio&amp;nbsp;pin that TX speed has increased from 90 ms to 30 ms. However, I&amp;#39;m still getting variations on the sending frequency (Sometimes is not 30 ms interval but 60.3 or 45.4ms):&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Logic8_5F00_2.JPG" /&gt;&lt;br /&gt;I understand the period of &lt;span&gt;BLE_EVT_TX_COMPLETE&lt;/span&gt; may not be the adequated because of my central&amp;#39;s configuration, but what I don&amp;#39;t understand is the variations on the sending frequency. Do you think may be a central problem or&amp;nbsp;the peripheral is not well configured? (I&amp;#39;m uploading my peripheral main.c and service (I used a modified version of the ble_hrs file) to the post)&lt;br /&gt;&lt;br /&gt;ps. Thank you for helping me solve this problem, I&amp;#39;ve spent so many hours and I&amp;#39;m running out of ideas to&amp;nbsp; solve this issue :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase Notification Frequency nrf51422</title><link>https://devzone.nordicsemi.com/thread/160728?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 12:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67edcfa8-ebd1-4b5e-8ea5-ea93c2ce79d1</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Are you sure the connection interval is actually 10ms? In the end it is the central device that decides the connection interval. If you connect using nRF Connect, you can set the connection interval directly. Click on the settings icon -&amp;gt; Update connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase Notification Frequency nrf51422</title><link>https://devzone.nordicsemi.com/thread/160641?ContentTypeID=1</link><pubDate>Thu, 06 Dec 2018 21:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c17644b-ad7a-44e2-87e0-f41e58dca1e2</guid><dc:creator>Pablo G</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Logic8_5F00_1.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;I tried&amp;nbsp;what you proposed. Toggle extends the time to &amp;#39;1&amp;#39; of the gpio, but the period is still way far from 10 ms and it is not constant: 90ms, 90ms, 90ms, 135ms&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;90ms, 90ms&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;90ms, 90m&lt;/span&gt;&lt;span&gt;s, 90ms, 135ms,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase Notification Frequency nrf51422</title><link>https://devzone.nordicsemi.com/thread/160572?ContentTypeID=1</link><pubDate>Thu, 06 Dec 2018 12:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bcc06fa-89a8-4a42-96de-2a517822beae</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Can you try to use &lt;strong&gt;nrf_gpio_pin_toggle(14);&lt;/strong&gt; instead of &lt;strong&gt;nrf_gpio_pin_set(14);nrf_gpio_pin_clear(14);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have a feeling that the pin toggling is too fast for the logic analyzer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>