<?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>notification not receivied with timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5246/notification-not-receivied-with-timer</link><description>uint8_t ntime=0;
while(ntime&amp;lt;10)
{
	nrf_timer_delay_ms(TIMER2, (110UL));
	pin_read = nrf_gpio_pin_read(25);
	if(pin_read==0) send_debug_message(&amp;quot;PIN=0&amp;quot;);
	if(pin_read==1) send_debug_message(&amp;quot;PIN=1&amp;quot;);
	ntime++;
}
 
 But I only receive notifications</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jan 2015 17:36:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5246/notification-not-receivied-with-timer" /><item><title>RE: notification not receivied with timer</title><link>https://devzone.nordicsemi.com/thread/18378?ContentTypeID=1</link><pubDate>Thu, 22 Jan 2015 17:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9ca5007-3854-492d-99b7-73407b06983b</guid><dc:creator>mobi</dc:creator><description>&lt;p&gt;Debugging in further... the problem was in send_debug_message...
As per documentation, the application must take care of application buffer when sending messages and keep the count of message buffered and decrement when BLE_EVT_TX_COMPLETE happens..&lt;/p&gt;
&lt;p&gt;or simply, if receive BLE_ERROR_NO_TX_BUFFERS when error from sd_ble_gatts_hvx call... then wait till BLE_EVT_TX_COMPLETE happens, meaning buffer have place to send more packets.&lt;/p&gt;
&lt;p&gt;Hope this helps for other who end up trying something like that.&lt;/p&gt;
&lt;p&gt;Here is what helped me to understand this:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.0.1/s110/html/a01058.html#ga00ea603adee7561e8bdc00c8853a0ba8"&gt;developer.nordicsemi.com/.../a01058.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.0.1/s110/html/a01043.html#ga37e443c585217475a97e40dfb443a1b6"&gt;developer.nordicsemi.com/.../a01043.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: notification not receivied with timer</title><link>https://devzone.nordicsemi.com/thread/18377?ContentTypeID=1</link><pubDate>Thu, 22 Jan 2015 17:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe30a7b4-d9db-4a32-9c53-39171f91791d</guid><dc:creator>leo b.</dc:creator><description>&lt;p&gt;I think I know the problem.  I think you are sending all 10 notifications in a single connection interval.  I think a single connection interval can only send 4 to 6 packets/notifications.  The rest are discarded.  Try using a faster connection interval, an interval time that is smaller than your timer delay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: notification not receivied with timer</title><link>https://devzone.nordicsemi.com/thread/18373?ContentTypeID=1</link><pubDate>Thu, 22 Jan 2015 09:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f0aaaaf-4331-47d2-8692-73d6b928265a</guid><dc:creator>mobi</dc:creator><description>&lt;p&gt;in total I receive only 9 notifications... and then I don&amp;#39;t receive any notification even If I loop for 20 or 30 times...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: notification not receivied with timer</title><link>https://devzone.nordicsemi.com/thread/18376?ContentTypeID=1</link><pubDate>Thu, 22 Jan 2015 08:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:661cade4-f347-49bf-bf76-b538114de4cd</guid><dc:creator>mobi</dc:creator><description>&lt;p&gt;I tested and now I send the message number a long as well... Now I see, index 0,1,2,3,4,5
But I don&amp;#39;t see 7,8,9 being sent.... That is strange.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: notification not receivied with timer</title><link>https://devzone.nordicsemi.com/thread/18375?ContentTypeID=1</link><pubDate>Thu, 22 Jan 2015 06:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b6ff2ca-488f-47b6-acb2-946933c28957</guid><dc:creator>mobi</dc:creator><description>&lt;p&gt;now that is interesting point... &amp;quot;Maybe some of the notifications are overlapping with each other during one connection interval, causing some notifications to be discarded.&amp;quot; any topic ?
I would like to know this in detail. As I&amp;#39;m looking into reliable data transmissions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: notification not receivied with timer</title><link>https://devzone.nordicsemi.com/thread/18374?ContentTypeID=1</link><pubDate>Thu, 22 Jan 2015 06:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4f8eff7-1859-4b63-b9ae-079a4b0a055b</guid><dc:creator>leo b.</dc:creator><description>&lt;p&gt;Maybe the connection interval you are using is much slower than the timer delay.  Maybe some of the notifications are overlapping with each other during one connection interval, causing some notifications to be discarded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>