<?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>Central device (Raspberry Pi/nRF dongle) missing many BLE notifications from nRF52840 DK/Feather. Can this be improved?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49922/central-device-raspberry-pi-nrf-dongle-missing-many-ble-notifications-from-nrf52840-dk-feather-can-this-be-improved</link><description>Hi! I&amp;#39;m having some trouble with missed BLE notifications. We are using a custom BLE service and characteristic on the nRF52840 Development Kits and Feathers with notifications to send sensor data. For a central device we&amp;#39;re using a Raspberry Pi 3B+ as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Aug 2019 11:41:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49922/central-device-raspberry-pi-nrf-dongle-missing-many-ble-notifications-from-nrf52840-dk-feather-can-this-be-improved" /><item><title>RE: Central device (Raspberry Pi/nRF dongle) missing many BLE notifications from nRF52840 DK/Feather. Can this be improved?</title><link>https://devzone.nordicsemi.com/thread/202591?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 11:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e44b14ae-2bd0-47cf-a0d0-c07ce89bafcb</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for a great explanation, however i&amp;#39;m still not fully convinced that the problem is at the receiver side of the connection. How did you confirm that the notifications are actually sent? Could you upload the sniffer logs for the different timer settings?&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device (Raspberry Pi/nRF dongle) missing many BLE notifications from nRF52840 DK/Feather. Can this be improved?</title><link>https://devzone.nordicsemi.com/thread/202323?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 07:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ecb05a3-fd4a-4af3-b79d-81a9c73edb3a</guid><dc:creator>tietokone</dc:creator><description>&lt;p&gt;For the notifications that are received, all the data (12 bytes) is received. We had previously been using a window of 100 to 200 ms, which was set in the Nordic example project that I based this on, and the results were the same.&lt;/p&gt;
&lt;p&gt;I tried using nRF Sniffer to analyze the connection, as you suggested, and I&amp;#39;m a little puzzled by the results, or maybe I&amp;#39;m not understanding them correctly. I tried running the code with only one peripheral, with the time between notifications set to 10 ms, 100 ms, and then 5 s, and what it seemed to show was that the notifications were sent about every 15-18 ms with the first two and more like 150 ms with the 5 s setting. I don&amp;#39;t know if I&amp;#39;m missing something in the readings, but these are listed as &amp;quot;Handle Value Notification[s]&amp;quot; for the correct handle, with the correct length.&lt;/p&gt;
&lt;p&gt;Separately, I wrote a couple of scripts to calculate the average number of values we logged per second and the average interval between receiving them on the central side, and this is what I found:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="markdown"&gt;| Timer setting | Devices       | Avg. notifications/s | Avg. interval between notifications |
|---------------|---------------|----------------------|-------------------------------------|
| 10 ms         | 1 peripheral  | 64                   | 15.38 ms                            |
| 10 ms         | 2 peripherals | 96                   | 10.38 ms                            |
| 10 ms         | 3 peripherals | 96                   | 10.29 ms                            |
| 20 ms         | 1 peripheral  | 50                   | 19.99 ms                            |
| 20 ms         | 2 peripherals | 93                   | 10.73 ms                            |
| 20 ms         | 3 peripherals | 95                   | 10.47 ms                            |
| 40 ms         | 1 peripheral  | 24                   | 40.01 ms                            |
| 40 ms         | 2 peripherals | 49                   | 20.01 ms                            |
| 40 ms         | 3 peripherals | 49                   | 20.02 ms                            |
| 100 ms        | 1 peripheral  | 9                    | 100.01 ms                           |
| 100 ms        | 2 peripherals | 19                   | 50.01 ms                            |
| 100 ms        | 3 peripherals | 29                   | 33.36 ms                            |&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;These results seem to indicate that the lowest timer setting where we don&amp;#39;t lose any notifications is&amp;nbsp;about 20 ms when using only one peripheral, and the interval needs to increase more or less in proportion to the number of peripheral devices.&lt;/p&gt;
&lt;p&gt;If you have any ideas about what these results indicate or advice on how to use the Sniffer to better effect, we would appreciate it. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device (Raspberry Pi/nRF dongle) missing many BLE notifications from nRF52840 DK/Feather. Can this be improved?</title><link>https://devzone.nordicsemi.com/thread/199940?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 08:05:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d80a43e-da62-46b5-a6a4-a0991e35898a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;7.5 ms might be a too small window for the peripheral to send all the data. The best approach to analyze this is by taking a sniffer trace of the connection and see if the packets are sent properly every 10 ms and if they are received accordingly.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device (Raspberry Pi/nRF dongle) missing many BLE notifications from nRF52840 DK/Feather. Can this be improved?</title><link>https://devzone.nordicsemi.com/thread/199762?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 11:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4853bdb1-9927-4f5b-99c4-7cbda1c9bf51</guid><dc:creator>tietokone</dc:creator><description>&lt;p&gt;Both are currently 7.5 ms. The connection interval was quite a bit longer before, but I tried setting the maximum and minimum connection interval both to 7.5 ms, and it doesn&amp;#39;t seem to have made any difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device (Raspberry Pi/nRF dongle) missing many BLE notifications from nRF52840 DK/Feather. Can this be improved?</title><link>https://devzone.nordicsemi.com/thread/199579?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 15:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:116a1d83-b70e-4f36-bae6-f040f9c2428c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What connection interval and connection event length are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>