<?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>Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72827/using-nrfsniffer-to-debug-connection-loss</link><description>I am trying to use nrfsniffer to debug connection related issues. 
 
 We have a ble connection between central and peripheral and we are sending status updates to the peripheral fro the central at a rate of about 1 per second. We have issues with the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Mar 2021 13:12:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72827/using-nrfsniffer-to-debug-connection-loss" /><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/302752?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 13:12:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbb0dc4f-4371-4ccf-91cb-6eab03cd1b5c</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;I haave wireshark 3.4.4; loaded latest nrfutils as said and latest segger. Reprogrammed dongle.&lt;br /&gt;The powering peripheral on/off test as you did appears to work OK.&lt;br /&gt;&lt;br /&gt;I do not have microwave here in work; will retest tomorrow at home.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/301998?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 17:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ad0633e-e1b8-435b-9b16-24aa8c3ceabf</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I programmed two nRF52840-DK (pca10056) for devices under test:&lt;/p&gt;
&lt;p&gt;\nRF5_SDK_17.0.2_d674dde\examples\ble_central\ble_app_blinky_c\hex&lt;/p&gt;
&lt;p&gt;\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_blinky\hex&lt;/p&gt;
&lt;p&gt;For nRF sniffer I used an nRF52-DK (pca10040), and I programmed it with the&amp;nbsp;sniffer_nrf52dk_nrf52832_7cc811f.hex.&lt;/p&gt;
&lt;p&gt;I then started Wireshark and choose the Nordic Blinky device from the drop down box, I were able to successfully follow several connections with the nRF sniffer (I just turned off/on the peripheral since I didn&amp;#39;t walk to the microwave):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7571.pastedimage1616691713393v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The blue section above is the second connection.&lt;/p&gt;
&lt;p&gt;Some information about my setup:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3404.pastedimage1616691754346v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7536.pastedimage1616691766020v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/301539?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 18:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa5bd65f-da8e-4203-8d06-aa6237f1f7a5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Sorry, haven&amp;#39;t had time, it&amp;#39;s on the to do list.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/301498?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 15:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60d6905e-673e-46a7-b8ef-74179d6427ae</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Have you tried the microwave test?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/301441?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 13:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:785361f6-b330-4188-a68f-0f2ef7afbe89</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The command line tools were&amp;nbsp;a bit old, maybe give it an update:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, just write a &amp;quot;nrfjprog -p&amp;quot; afterwards, I believe this will update the j-link&amp;nbsp;firmware afterwards (this should at least have an effect for the pca10040, which is the one I am using also for nRF sniffer. I haven&amp;#39;t done testing with the pca10059, though I believe support was recently added).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/301352?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 09:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eede438b-9e0a-47e5-98cb-5fad9e6efa81</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Here details of the two cards/dongles used for these tests....&lt;br /&gt;&lt;br /&gt;PCA10040&amp;nbsp; Sticker:: 1.2.1 2017.48 682534162 PCB: 400150&amp;nbsp; &amp;nbsp; 0256RUBR&lt;/p&gt;
&lt;p&gt;PCA10059 Sticker: 1.0.0 2018.22 CC:33:61:0C:BC:84&amp;nbsp; &amp;nbsp;PCB: 400250&amp;nbsp; 0284RUBR&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;C:\Users\Owain&amp;gt;nrfjprog --version&lt;br /&gt;nrfjprog version: 9.8.1&lt;br /&gt;JLinkARM.dll version: 6.88a&lt;/p&gt;
&lt;p&gt;C:\Users\Owain&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/301251?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 14:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c0897a8-3f69-427f-8130-55a859057236</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I will see if I can get some time to recreate this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you just provide details about the pca10040 you are using for test here? E.g. version printed on the label.&lt;/p&gt;
&lt;p&gt;Also type &amp;#39;nrfjprog --version&amp;#39; in a command line window.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/301147?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 09:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:856bcbc2-5f82-4a85-b4a6-0e2ef2ee9de4</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;br /&gt;&lt;br /&gt;I have just repeated the microwave test using a new nrf52840 dongle as the sniffer.&lt;br /&gt;Successfully logged until the peripheral was put into the microwave;&amp;nbsp; I see one led flashing green; another solid red.&lt;br /&gt;&lt;br /&gt;On removing peripheral from the microwave the red led goes off and the green led is static; and wireshark is not seeing any more packets. I repeated and saw all leds off.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/possibleSnifferBug.pcapng"&gt;devzone.nordicsemi.com/.../possibleSnifferBug.pcapng&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I can see my central is connected to the peripheral and working properly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would add to this that starting/stopping wireshark does not appear to start the dongle now; static green led; in fact wirshark appears crashed. Restarting wireshark; dongle interface is NOT seen!!! Had to unplug/plug dongle in again to get it seen from wireshark.&lt;br /&gt;&lt;br /&gt;This looks like sniffer FW bugs.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you please try and reproduce this one?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Owain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/300333?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 10:10:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f3bd8ff-d5da-4a13-8b78-568828022042</guid><dc:creator>Kenneth</dc:creator><description>[quote user="owain"]I have sniffer FW on a pca10040 dev card; and normally when its running I see a couple of leds flashing tx and rx? When it stops logging those leds stop as well; they only start flashing if I reset the dev card (sniffer).[/quote]
&lt;p&gt;That may indicate some issues with the board, do you have a second pca10040 you can use for test? What is the marking on the pca10040 you are using? Can you try to connect the board to a different USB hub/port and possible replace the USB cable? Also update for instance segger j-link from:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/300202?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 15:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9144287a-ac89-4174-8b3d-4e0ef5402c89</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;I just ran another test putting the peripheral into a microwave; not turned on :-)&lt;br /&gt;&lt;br /&gt;I see behaviour as in last trace; but as I bring the peripheral out of the microwave; my central reconencts OK, but the sniffer stops logging packets.&lt;br /&gt;&lt;br /&gt;I have sniffer FW on a pca10040 dev card; and normally when its running I see a couple of leds flashing tx and rx? When it stops logging those leds stop as well; they only start flashing if I reset the dev card (sniffer).&lt;br /&gt;&lt;br /&gt;Has sniffer crashed when my device successfully reconnects?&lt;br /&gt;&lt;br /&gt;I blew hex onto sniffer by copying the hex to the segger mass storage device; I did not flash it via ICE. Is my problem with the sniffer itself?&lt;br /&gt;&lt;br /&gt;Many thanks for analysis above; we are not using whitelists/blacklists. It looks like that test trace you see did catch my issue; sporadic disconnects for a substantial period before a successful reconnect. The big question is why is the peripheral&lt;br /&gt;&lt;br /&gt;The confusing thing is the &amp;quot;crashed&amp;quot; sniffer; so I suspect in the trace I uploaded the last sampes seen are where the central successfully reconnected (and crashed the sniffer).&lt;br /&gt;&lt;br /&gt;Although at end of trace those LL_VERSION_IND&amp;#39;&amp;#39;s are showing bad sequence numbers.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/300168?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 14:01:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46570b68-a65b-4b02-b715-65a112b861fd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;What happens here is that the central send a connection request, but the connection request is not received by the peripheral. In such case the central will try for some attempts before giving up and try again. This is something that can happens from time to time due to noise, but if it always occurs (which seems to be the case). Then I suspect that the peripheral have not included the central in it&amp;#39;s whitelist when advertising, and thereby don&amp;#39;t allow&amp;nbsp;the central to connect. None of the connections after 71727 is successful (you can see the SN and NESN don&amp;#39;t increment). It doesn&amp;#39;t look like any bonding is involved, so I don&amp;#39;t expect you are using whitelist on the peripheral (at least you should not be)?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/300144?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70bdd623-c84e-4c90-bb00-e81a53e7fb75</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Here the trace file&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/12_2D00_03_2D00_21_2D00_1730_2D00_ladybayHookLoop.pcapng"&gt;devzone.nordicsemi.com/.../12_2D00_03_2D00_21_2D00_1730_2D00_ladybayHookLoop.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#1755 initial connection made&lt;br /&gt;#71263 Starts having connection issues / bad sequence numbers&lt;br /&gt;#71718 peripheral starts advertising again&lt;br /&gt;#71726 connects again; but does not decode/filters out peripheral packets&amp;gt;&lt;br /&gt;&lt;br /&gt;Just see advertising/connection indicators till end of trace as sniffer had dropped filtered out packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrfsniffer to debug connection loss</title><link>https://devzone.nordicsemi.com/thread/300118?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 12:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00aaa60e-a399-431a-9bc5-af842310a395</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;This should work, I have done this many times and can sniff subsequent connections.&lt;/p&gt;
&lt;p&gt;Maybe you are stopping and starting the sniffer between connections here? Can you share a log file that show what you describe?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>