<?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>nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets</link><description>Hi there, 
 In my application I use a hardware timer to capture and transmit sensor data with a sample time of 10ms (after corresponding notification is enabled). The connection interval is set up to 7.5ms. 
 As the TX queue is filled with slower rate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Mar 2023 04:25:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets" /><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/417554?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 04:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4a4f2f0-3fc5-48ab-83c1-02154a602f19</guid><dc:creator>ymb</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having a similar issue where I would like to get BLE packets sent at a more regular interval. Can anyone advise how that may be achieved?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/194250?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 08:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3e98af1-75e1-4af6-91d4-eb7b30abc56f</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;could you please answer my last questions? I know this thread has exceeded the usual extent, but the last questions are still related to my original question and are very important for our project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/191975?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e38994f0-a4cd-4036-985c-d84e33bc164f</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;thanks a lot for the support so far. I think your last reply answers my original question, as it explains why it can happen that the timing of the received packets varies and sometimes multiple packets are send during one connection interval (I&amp;#39;m going to check the timing in my application between adjacent calls to BLE-update function, maybe a variation of the processing time causes the queue to be filled unequally).&lt;/p&gt;
&lt;p&gt;My last questions (promised ;-)) related to this topic:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If the available packet data size is 247 (or 244 without header) due to data length extension, does it have influence on timing how many bytes are really used (as long as the number of bytes is &amp;lt;244)?&lt;/li&gt;
&lt;li&gt;The value in NRF_SDH_BLE_GAP_EVENT_LENGTH (in ms) should be smaller than the connection interval in order to provide correct timing behavior, right?&lt;br /&gt; &amp;nbsp;&lt;/li&gt;
&lt;li&gt;Should I avoid using connection length extension as my relay device has to handle two connections?&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;I made the following test to evaluate timing: I connected the peripheral (slave) directly over NRF connect using an NRF52 DK, set the connection interval to 7.5ms and activated notification. In the firmware, I set a GPIO-pin to high whenever BLE-update is called, and set it to low when the event&amp;nbsp;BLE_GATTS_EVT_HVN_TX_COMPLETE is called. I analyzed the resulting signal during notification using an oscilloscope. The signal is usually high for a duration of about 11.9ms. Even in worst case regarding the time difference between the call to BLE-update (filling the queue) and the next connection interval event, I would expect the time difference to be less than 7.5ms. How can that be? &lt;br /&gt;Additional information: NRF_SDH_BLE_GAP_EVENT_LENGTH is 6 (which should equal 7.5ms), connection length extension is deactivated, and no errors with &lt;span style="font-family:inherit;"&gt;&lt;span&gt;NRF_ERROR_RESOURCES&lt;/span&gt;&lt;/span&gt; are returned.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/190884?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 15:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860e5939-7299-4e35-9470-0002f6e40cde</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="79283" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/190289"]What exactly is meant with “resources”? Does it mean that there is not enough time left in the current connection interval? Or does it have anything to do with the transmit buffer size?[/quote]
&lt;p&gt;NRF_ERROR_RESOURCES means that too many notifications are queued, and the internal buffers in the SoftDevice are full. If that happens, you can not &lt;span&gt;queue&amp;nbsp;&lt;/span&gt;any more notifications until the BLE_GATTS_EVT_HVN_TX_COMPLETE event occurs.&amp;nbsp;You have 2 options, either call&amp;nbsp;your update function in a loop until the function returns NRF_SUCCESS, or wait for the BLE_GATTS_EVT_HVN_TX_COMPLETE and then send the packet. (e.g. in ble_app_uart example we are just waiting in a loop).&lt;/p&gt;
[quote userid="79283" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/190289"]If the BLE update is called periodically in a fixed timing interval, does the timing between the call to BLE update function and the next connection event matter? What happens for example, if the function is called when the connection event has already started?[/quote]
&lt;p&gt;At the start of the connection event the&amp;nbsp;&lt;span&gt;peripheral&amp;nbsp;will start to send all the data(notifications) in the internal buffer as fast as possible to the central. When the&amp;nbsp;peripheral&amp;nbsp;don&amp;#39;t have any more data to send, the connection event ends, and the peripheral&amp;nbsp;need to wait until the next connection event occurs before it can send data again. If the application is queuing up data to the softdevice fast enough, i.e. faster than the data is being sent over BLE(this is typically not the case),&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;the whole connection event could possibly be used to send data. The internal buffer size is configured indirectly by setting the&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH in sdk_config.h, so if you are having issues with&amp;nbsp;&lt;span&gt;NRF_ERROR_RESOURCES, I suggest increasing that value in the&amp;nbsp;peripheral project.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/190289?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 12:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86412244-29bc-4431-8013-da8b0797f74b</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;altogether 3 devices are used: two self-developed boards with an NRF52, and one NRF52DK board.&amp;nbsp; One of the self-developed boards acts as relay, and at the beginning scans for the advertising message of the other board (&amp;ldquo;slave&amp;rdquo;). The relay connects to the slave but does not yet activate notification of the slave characteristic. The connection interval is 7.5ms. As long as the relay is only connected to the slave, it simultaneously sends out its own advertising message. The DK board is used as central master and scans for the advertising message of the relay. It automatically connects to the relay based on the UUID and then it activates notification of the relay service/characteristic. In that case, the relay activates notification of the corresponding characteristic of the slave. After that, none of the devices advertises or scans anymore. &lt;br /&gt; The slave sends its data to the relay, the relay send preprocessed data to the central master. The master transmits the data via NRF_LOG-commands either by UART or RTT to the PC (NRF connect app is not involved!). &lt;br /&gt; Each notification message contains a Message ID, which is incremented in every call to BLE-update. BLE-Update is called based on a timer interrupt event every 10ms. The relay sends its own message ID and the Message ID received by the slave to the central. In this way, it can be controlled if any packet was not received between slave and relay, and/or relay and central (by looking at the difference between the message IDs of two adjacent packets). When I speak of lost packets, I mean the case when the difference between two adjacent packets is larger than 1 because that indicates that the corresponding message was not received.&lt;/p&gt;
&lt;p&gt;However, I think I found out why in wireshark the difference of the packet index between adjacent &amp;nbsp;packets is always 1 (i.e. no packet is lost), but the difference of &amp;ldquo;my&amp;rdquo; message ID is not always 1 between two adjacent packets: the reason is, that the call to BLE update function was not always successful. It occasionally returned NRF_ERROR_RESOURCES, that means that the message was not sent. In these cases, the (application) message ID was still incremented, so that ID differences &amp;gt; 1 occurred. Now, I have changed the code to repeat the call to BLE Update function in case of return value NRF_ERROR_RESOURCES and it seems that the problem is solved.&lt;/p&gt;
&lt;p&gt;What exactly is meant with &amp;ldquo;resources&amp;rdquo;? Does it mean that there is not enough time left in the current connection interval? Or does it have anything to do with the transmit buffer size?&lt;/p&gt;
&lt;p&gt;If the BLE update is called periodically in a fixed timing interval, does the timing between the call to BLE update function and the next connection event matter? What happens for example, if the function is called when the connection event has already started?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/189882?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 12:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19c04650-576d-423f-ba05-ad378ea7d98e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The latest sniffer log also has event counter increments of more than 1, and that happens when the device starts to send notifications. But you are not losing any packets (as the SN, NESN are in sync). So, it seems like the master is deliberately skipping connection events.&lt;/p&gt;
&lt;p&gt;How did the setup look like when you captured the sniffer log ?Could you explain this some more ? How many devices, 2 or 3? 1 DK used for nRF Connect BLE app(acting as central master) that you connect to this relay device(acting as peripheral in this case) ? Is the relay device connected to anything else, I assume it can connect to another peripheral? Is the relay scanning for other peripherals?&lt;/p&gt;
[quote userid="79283" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/189787"]some packets get lost [/quote]
&lt;p&gt;How are you detecting this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/189787?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 08:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e2222d3-0e5a-45d6-9d99-09cd36940c49</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;another question: as already stated I have activated data length extension and set MTU Size to 247. In my recent software, I have increased the transmitted data bytes from 64 to 82 bytes (sent from master/relay to central). Now, regularly some packets get lost (before all packets were received). If the available packet data size is 247 (or 244 without header), why does it matter if I transmit 64 or 82 bytes? Shouldn&amp;#39;t the time needed for the 247 byte packet be the same?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/189781?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 08:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca834d4c-24c8-4f65-a838-5dfe24f19e9e</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;the log files I have uploaded so far were related to the communication between the slave and the master/relay. As the master has to communicate with both the slave and the central, I think the log file of the master to central communication could be interesting as well (see attachment). I think that one cause of timing problems could be, that I have activated the connection length extension for the master. As the master has to handle two connections, this might be a problem. I also tested the communication with deactivated connection extension, and the result is very bad (many missing packets, see log file).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; What is your opinion? Could this be the reason for sporadic timing problems?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/WithConnExtension.pcapng"&gt;devzone.nordicsemi.com/.../WithConnExtension.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/WithoutConnExtension.pcapng"&gt;devzone.nordicsemi.com/.../WithoutConnExtension.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/186779?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 15:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:279973d8-3f90-4cda-94c0-ee3c535789eb</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/185937"]1) Is the central doing scanning when it&amp;#39;s connected to 1&amp;nbsp;peripheral?[/quote]
&lt;p&gt;No, the central device stops scanning after connecting to the Master (Relay).&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/185937"]2) if the central is not scanning, could you provide a sniffer-log where you are not&amp;nbsp;encrypting the link ?[/quote]
&lt;p&gt;Please find the log file attached to this post. I disabled encryption by declining pairing using &lt;br /&gt;sd_ble_gap_sec_params_reply(conn_handle,BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL); &lt;br /&gt;I hope this is correct.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Wireshark_5F00_NoEncryption.pcapng"&gt;devzone.nordicsemi.com/.../Wireshark_5F00_NoEncryption.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/185937?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 11:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68fd3d79-f6b1-461b-b581-700cc78a53f0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="79283" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/185525"]what does the flag &amp;quot;More Data&amp;quot; (TRUE/FALSE) represent?[/quote]
&lt;p&gt;It means that the&amp;nbsp;peripheral has more data to send. From the Bluetooth spec(BLUETOOTH SPECIFICATION Version 5.0 | Vol 6, Part B page 2642):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The MD bit of the Header of the Data Channel PDU is used to indicate that the device has more data to send. If neither device has set the MD bit in their packets, the packet from the slave closes the connection event. If either or both of the devices have set the MD bit, the master may continue the connection event by sending another packet, and the slave should listen after sending its packet. If a packet is not received from the slave by the master, the master will&amp;nbsp;close the connection event. If a packet is not received from the master by the slave, the slave will close the connection event.&lt;/em&gt;&lt;/p&gt;
[quote userid="79283" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/185525"]Isn&amp;#39;t the delta time just the time spend &lt;em&gt;during&lt;/em&gt; a connection interval, defined by NRF_SDH_BLE_GAP_EVENT_LENGTH?[/quote]
&lt;p&gt;No. Delta is the time since&amp;nbsp;previously recieved packet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looking at the event counter field, it seems like every other connection event is missed by the sniffer(maybe due to the encryption), &lt;span style="text-decoration:underline;"&gt;OR&lt;/span&gt; since this is a multlink central, the&amp;nbsp;&lt;span&gt;connection events are being skipped so that it can scan for other devices.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1) Is the central doing scanning when it&amp;#39;s connected to 1&amp;nbsp;peripheral?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) if the central is not scanning, could you provide a sniffer-log where you are not&amp;nbsp;encrypting the link ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/185525?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 13:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12906ce1-cabe-40ff-bb3b-50ce5a958054</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/185511"]The link gets encrypted, and the sniffer is therefore unable to see the packet content.[/quote]
&lt;p&gt;I thought that sniffing is possible, as long as the encryption is initiated &lt;em&gt;after&lt;/em&gt; starting of the sniffing, as it was during my procedure (s. here &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14035/is-nrf-sniffer-doing-decryption"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/14035/is-nrf-sniffer-doing-decryption&lt;/a&gt;). Is bonding mandatory for that? Or are the devices using encryption information which was exchanged during first connection?&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/185511"]I don&amp;#39;t see any issues in the log. The connection interval is 15 ms (Delta time (µs start to start) for master + slave). For each connection event, the master sends a packet, and the slave responds. Then after 15 ms the next connection event starts. The slave is always just sending 1 packet per connection event.[/quote]
&lt;p&gt;Isn&amp;#39;t the delta time just the time spend &lt;em&gt;during&lt;/em&gt; a connection interval, defined by NRF_SDH_BLE_GAP_EVENT_LENGTH? That would be &amp;quot;the time set aside for this connection on every connection interval&amp;quot;. But what I am interested in is the &lt;em&gt;time difference between two adjacent connection intervals&lt;/em&gt;. &lt;br /&gt;By the way: the min- and max-values for the connection intervals are set to 7.5ms in the software for all devices. The value for NRF_SDH_BLE_GAP_EVENT_LENGTH is set to 5, which should result in 6.25 ms. &lt;/p&gt;
&lt;p&gt;And: what does the flag &amp;quot;More Data&amp;quot; (TRUE/FALSE) represent? I wasn&amp;#39;t able to find this information in the user guide. The flag is TRUE for some of the packets send from the slave to the master...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/185511?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 13:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:881a7a7d-328d-458e-8473-426e2fdf2b22</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="79283" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/185227"]Do you have any suggestion to deal with the “bad MIC” problem?[/quote]
&lt;p&gt;The link gets encrypted, and the sniffer is therefore unable to see the packet content.&amp;nbsp;See chapter 5.4 and 5.5 in the &lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrftools/struct/nrftools_nrfsniffer.html?cp=6_4"&gt;Sniffer User guide&lt;/a&gt;.&lt;/p&gt;
[quote userid="79283" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/185227"]he problem of varying delay times between the packets can also be observed when looking at the time stamps of packet[/quote]
&lt;p&gt;I don&amp;#39;t see any issues in the log. The connection interval is 15 ms (Delta time (&amp;micro;s start to start) for master + slave). For each connection event, the master sends a packet, and the slave responds. Then after 15 ms the next connection event starts. The slave is always just sending 1 packet per connection event.&lt;/p&gt;
&lt;p&gt;Note that the &amp;quot;Time&amp;quot; field in the sniffer is not accurate(that is just the&amp;nbsp;&lt;span&gt;time stamp on UART on PC&lt;/span&gt;), the accurate timestamp is the &amp;quot;delta time&amp;quot; fields.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/185227?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 14:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:656da6a5-7262-4f90-9f77-84caa60a2070</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;I already had found the information regarding the bug of the prior version when using DLE, so I already have used 2.0.0.-beta 3 (the profile folder seems to be the same as v2_001, that&amp;#39;s why this version appears in the lower-right corner).&lt;/p&gt;
&lt;p&gt;However, an update of Wireshark (to v3.01) apparently did the job and I now see normal behavior when sniffing data (maybe a reinstalling of the old version would have done the trick as well, but I cannot say for the certain).&lt;/p&gt;
&lt;p&gt;Nevertheless: the problem of varying delay times between the packets can also be observed when looking at the time stamps of packet (s. screenshot).&lt;/p&gt;
&lt;p&gt;For your information: our application is based on three devices which communicate via bluetooth. Two of the devices are self-developed battery driven devices each using an NRF52, and the third device is usually a smartphone. However for simplicity I use an NRF52-DK board connected to the PC via USB instead of the smartphone most of the times. One of the self-developed boards (&amp;ldquo;slave&amp;rdquo;) collects sensor data and sends it to the other board (&amp;ldquo;master&amp;rdquo;) every 7.5ms. The master uses its&amp;rsquo; own data and the data of the slave for processing and sends the preprocessed data to the central (in this case the NRF52 DK). The DK transmits the data via RTT to the PC. The bluetooth code of the master is originally based on the relay example found in the SDK, and the bluetooth code of the slave is originally based on the heart rate example. However, many changes containing own services and characteristics (with own UUIDs) have been implemented since beginning of the project. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;For sniffing of the attached log file I first turned on the slave device, and filtered the displayed data based on the advertising data. Then I turned on the master. The master automatically connects to the slave. The master does not activate notification of the slave characteristic before connecting to the central. That&amp;rsquo;s why there seem to be a lot of empty packet exchanges in between the connection events (s. log file). After connecting to the central, the central activates notification of the master (to central), and the master activates notification of the slave (to master). After the master establishes connection to the central, the packets start to appear with the info &amp;ldquo;bad MIC&amp;rdquo;. Is the tool confused by the messages the master exchanges with the central to establish connection? The data format of the slave generally does not change, it only starts containing real data (no empty packets anymore).&lt;/p&gt;
&lt;p&gt;Anyway, as I&amp;rsquo;m currently interested in the packet timing, the time stamps are relevant and should still be valid. &lt;br /&gt; &lt;br /&gt; Do you have any idea for the variation of delay times regarding the data sent from the slave to the master? As mentioned, usually no packets get lost (this is verified by the incremented packet indexes).&lt;/p&gt;
&lt;p&gt;Do you have any suggestion to deal with the &amp;ldquo;bad MIC&amp;rdquo; problem?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x1008/__key/communityserver-discussions-components-files/4/Wireshark_5F00_screenshot.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/WiresharkLog.pcapng"&gt;devzone.nordicsemi.com/.../WiresharkLog.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/184762?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 07:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e336691a-f6a4-476c-b941-1a5aafe04b40</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="79283" url="~/f/nordic-q-a/46678/nrf52---irregular-delay-between-data-packets/184695"]I&amp;#39;m using Wireshark Version 2.4.2 and Sniffer v2_001[/quote]
&lt;p&gt;You are using version 2.0.0-beta-1 ?&lt;br /&gt;If that is the case, please use the 2.0.0-beta-3 version, as there was some bug-fixes for DLE in that version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/184695?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 11:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fd2908e-a10c-4660-bd73-d65b01f72669</guid><dc:creator>Pjay</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for the reply.&lt;/p&gt;
&lt;p&gt;I went through the various steps to get the sniffer running under wireshark.. Although I followed all the steps in the troubleshooting area (checking the jlink version on the firmware, running the &amp;quot;sethwfc force&amp;quot; option and so on) the tool chain does not work properly. I need several starting retries to finally receive packets after activating the COM port.&lt;br /&gt; However, even then there seems to be a problem remaining, because all advertising packets show &amp;quot;length is incorrect&amp;quot; under header-&amp;gt;length of payload (s. screenshot below).&lt;br /&gt; I&amp;#39;m using Wireshark Version 2.4.2 and Sniffer v2_001. The sniffer firmware runs on a NRF52 DK (PCA10040).&lt;br /&gt; Do you have any ideas what causes this behaviour?&lt;/p&gt;
&lt;p&gt;(The marked packet in the screenshot does not relate to my device, it is just examplatory... All received advertising messages are shown in that way).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x869/__key/communityserver-discussions-components-files/4/screenshot_5F00_wireshark.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 - Irregular delay between data packets</title><link>https://devzone.nordicsemi.com/thread/184397?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 18:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01d96002-3187-476c-abce-37b8ce076349</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There could be some log buffering and deferred logging happening in the nRF Connect BLE app, so the timestamps might not be perfectly accurate.&amp;nbsp;In order to get accurate timestamps, and see what’s really happening on-air, you would need to&amp;nbsp;do&amp;nbsp;a sniffer trace. If you have a&amp;nbsp;extra DK, you could use &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer"&gt;nRF Sniffer&lt;/a&gt; for that. (I recommend to use the nRFSniffer v2 variant)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>