<?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>data dose not sent with specified connection interval</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35573/data-dose-not-sent-with-specified-connection-interval</link><description>Hi to all, 
 i am developing a device with nrf51822 soc, i want to read some data from flash storage of nrf51822 then forward it on ble, i implemented a code for this job but i can not receive the data with specified connection interval, the connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jun 2018 11:04:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35573/data-dose-not-sent-with-specified-connection-interval" /><item><title>RE: data dose not sent with specified connection interval</title><link>https://devzone.nordicsemi.com/thread/137061?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 11:04:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b39eef74-199f-4b17-94bb-97a6c04a8152</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I don&amp;#39;t&amp;nbsp;see any benefits of&amp;nbsp;adding sd_ble_gatts_hvx() to the app scheduler queue,&amp;nbsp;I&amp;#39;d suggest to call it&amp;nbsp;as soon as you&amp;#39;ve read out the data from flash. sd_ble_gatts_hvx() adds the notification packet to the softdevice&amp;#39;s internal scheduler queue.&lt;/p&gt;
&lt;p&gt;As a test, please try to always&amp;nbsp;keep&amp;nbsp;more than one packet&amp;nbsp;queued in&amp;nbsp;the softdevice scheduler and check if the central is receiving one packet for every connection event in that case.&lt;/p&gt;
&lt;p&gt;Indications are significantly slower because the central needs to acknowledge&amp;nbsp;each&amp;nbsp;packet with &amp;#39;ATT handle value confirmation&amp;#39;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data dose not sent with specified connection interval</title><link>https://devzone.nordicsemi.com/thread/136927?ContentTypeID=1</link><pubDate>Wed, 20 Jun 2018 13:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751ba8a5-0087-4b77-8e2d-b180d1ed3beb</guid><dc:creator>alireza sadeghpour</dc:creator><description>&lt;p&gt;after BLE_EVT_TX_COMPLETE i call a function, in this function i&amp;nbsp;call&amp;nbsp;fds_record_find &amp;amp;&amp;nbsp;fds_record_open function to open a flash record to read, then i copy 20Byte content from opened record to an array and then i put an task in queue with&amp;nbsp;app_sched_event_put function, when the task started i call&amp;nbsp;sd_ble_gatts_hvx() function to send data over bluetooth and again i wait for&amp;nbsp;&lt;span&gt;BLE_EVT_TX_COMPLETE&amp;nbsp;event to start the process again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i gave also other question, if i change charactristic type from notification to indication it can help to make performance better?? in central i have a limit that can receive only one packet at a time, what happen if i change char type to indication and queue six packet in ble stack to send it one by one in each connection interval.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks for your response.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data dose not sent with specified connection interval</title><link>https://devzone.nordicsemi.com/thread/136893?ContentTypeID=1</link><pubDate>Wed, 20 Jun 2018 11:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b88f77c6-cc81-4b37-8477-662b58032c38</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you&amp;nbsp;doing anything else in the&amp;nbsp;BLE_EVT_TX_COMPLETE apart from reading data from flash, and do&amp;nbsp;you see the same if you queue more than one packet at a time? 25 ms connection interval should give the application plenty of time to read data from flash and add it to the tx buffer for the following connection event.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>