<?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>unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111970/unable-to-sniff-packets-with-wireshark-setting-higher-connection-intervals</link><description>Hello, 
 I&amp;#39;m trying to sniff packets with wireshark by varying the connection interval and supervision timeout of my ble application. I see that with lower connection intervals i&amp;#39;m able to do this. The test was performing good util the values CI=1000ms</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jun 2024 13:18:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111970/unable-to-sniff-packets-with-wireshark-setting-higher-connection-intervals" /><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/489533?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 13:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eab087b-bf49-488b-98bf-8f92759b310b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh, that is not a Nordic nRF52840 Dongle. Ok, now I see.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see that they claim it will work with the WireShark sniffer, but that will be something that they need to make sure it does. The nRF Sniffer for Bluetooth LE is made to work with the DKs and Dongles produced by Nordic Semiconductor (&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-Dongle"&gt;this dongle&lt;/a&gt;), and if it doesn&amp;#39;t work with a 3rd party dongle, then you need to contact the 3rd party company to ask why it doesn&amp;#39;t do what it promised to do.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That being said, I guess it is a clock issue. Perhaps they use a different Low frequency clock crystal than we use, which doesn&amp;#39;t have the same accuracy. Unfortunately, since the sniffer FW is closed source, it is not possible to tweak these parameters, so that it would work on your device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But you have two devices, right? The 3rd party dongle and something else that the Device Under Test (DUT) is running on. What is the DUT? Another dongle of the same kind? A Nordic dongle/DK?&lt;/p&gt;
&lt;p&gt;If it is a nordic device, I guess you could try to swap them around. Run the application on the 3rd party dongle, and run the sniffer on the Nordic device.&lt;/p&gt;
&lt;p&gt;Either way, I am sorry, but I don&amp;#39;t think there is much else I can do, other than to tell you that the nRF Sniffer for Bluetooth LE works only with Nordic devices, not 3rd party devices.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/489445?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 09:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f9d8e3-fcb4-4836-918b-9209e6d77e27</guid><dc:creator>antoine98</dc:creator><description>&lt;p&gt;Thanks for the explanation Edvin, in the back of my dongle there is a qr code which sends me to this link:&amp;nbsp;&lt;a id="" href="https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/"&gt;https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/&lt;/a&gt;. There is no line pca10059&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/489438?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 08:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9fd781b-8062-436a-aa51-037cb80f5250</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes. For encrypted connections, the sniffer will not be able to follow the connection after a while, because the messages are encrypted, so the sniffer will not be able to pick up the channel update messages, so eventually, it doesn&amp;#39;t know what channel to hop to next. In addition, it will not be able to decrypt the packets it actually picks up, so it will just show the raw, undecrypted packets.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Depending on the type of enctyption, it is still possible to make the sniffer decrypt the packets. If the connection is encrypted using &amp;quot;just works&amp;quot; encryption, the sniffer will pick up the keys and use them. If they use a 6-digit passkey you can enter this in the sniffer before you enter it in the BLE devices, and it will be able to decrypt the packets. If you are using bonding, you need to delete bonding information, so that the devices will do the key-exchange again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;LESC however, which uses a Diffie-Hellman key exchange is not possible to sniff, because the keys are never sent over the air, and there is no good way to extract it from the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But back to this issue:&lt;/p&gt;
&lt;p&gt;What does it say on the Dongle that you are using? On the white sticker on the back, what does it say on the line directly below &amp;quot;pca10059&amp;quot;?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/489427?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 08:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cabbb00f-0b5e-4ea4-a9ce-741d49e382c0</guid><dc:creator>antoine98</dc:creator><description>&lt;p&gt;Yes I tried with the same dongle as before, unfortunately I have just one dongle. I noticed that i have the same problem with encrypted communications, after some time capturing process end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/489110?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 13:06:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad50d05c-6490-448c-bd20-5df10bfe01f1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hmm. I am still not able to reproduce it in v4.1.1 of the nRF Sniffer for Bluetooth LE.&amp;nbsp;&lt;/p&gt;
[quote user="antoine98"]extcap files on another computer and the result is the same[/quote]
&lt;p&gt;Is this with the same nRF52840 dongle?&lt;/p&gt;
&lt;p&gt;Can you try with another Dongle, or another DK for the sniffer? If you have an extra nRF device?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/489028?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 08:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba345a03-41de-4c3b-b262-18596df5a794</guid><dc:creator>antoine98</dc:creator><description>&lt;p&gt;I installed extcap file and relative profile. I have now tryed to install from 0 wireshark, python and relative extcap files on another computer and the result is the same. When i use a connection interval of 2000ms capuring process stops after connection parameter update&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488928?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 20:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9db8682-e89c-487d-af1e-5f2048271b79</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That is very strange. Did you only use the .hex file, or did you install the entire sniffer 4.1.0 in wireshark (with the extcap files and all those things)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you tried using a different device (DK instead of dongle)? Or have you tried a different computer?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488616?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 08:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74cd908f-1577-4196-9447-3b92bd947563</guid><dc:creator>antoine98</dc:creator><description>&lt;p&gt;I have now tryed with version 4.1.0, but nothing changed. The capturing process stops after connection parameters update as before.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488612?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 08:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71b460f6-8b59-4acd-8558-1b8af736d944</guid><dc:creator>antoine98</dc:creator><description>&lt;p&gt;I used version 4.1.1, i will now try with version 4.1.0 and I&amp;#39;ll let you know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488562?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2024 20:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4a08dec-576f-49fa-bad8-c2085f63b502</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t see the same. I set up the sniffer on the dongle at work today, but I am not able to change the sniffer FW from my home office. I will give it another go with the latest sniffer FW flashed to the dongle tomorrow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the meantime, what version of nRF Sniffer for Bluetooth LE did you use? If you have not already, can you try the v4.1.0, which I am currently using, and see if that changes anything for you?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488360?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 14:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5274731d-fda0-47a9-8d8f-79db47f954ab</guid><dc:creator>antoine98</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sniffer_5F00_uart.pcapng"&gt;devzone.nordicsemi.com/.../sniffer_5F00_uart.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is a track done with the uart example setting:&lt;/p&gt;
&lt;p&gt;#define MAX_CONN_INTERVAL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MSEC_TO_UNITS(2000, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;#define MIN_CONN_INTERVAL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MSEC_TO_UNITS(2000, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;#define CONN_SUP_TIMEOUT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MSEC_TO_UNITS(8010, UNIT_10_MS)&lt;/p&gt;
&lt;p&gt;the problem is the same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488344?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 13:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4217253-1cba-44a9-868e-9764e4bc1674</guid><dc:creator>antoine98</dc:creator><description>&lt;p&gt;yes, the peripheral is firstly reset.&lt;/p&gt;
&lt;p&gt;In segger I can see that the communication with packet exchange has been correctly performed, but i cannot see the packet exchange in wireshark since the sniffing process stops immediatly after the parameter exchange.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It happens each time I set a connection interval which at least 2000ms.&lt;/p&gt;
&lt;p&gt;The devices are not bonded nor paired.&lt;/p&gt;
&lt;p&gt;The two boards are nrf52dk, I didn&amp;#39;t tryed with other examples setting a CI of 2000ms but I will do&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488341?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 12:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4eed0ad-6e77-4160-adf9-c732dc30aec9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Is this what happened on the first time they disconnected in the trace as well? (around packet nr. 939?) I guess that was just a reset of the peripheral?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;At the end of the trace, are the devices still connected after the sniffer stops receiving packets? Or do you see something in the application logs indicating that the devices are no longer connected?&lt;/p&gt;
&lt;p&gt;And does it happen in the exact same place every time?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From the sniffer trace, it doesn&amp;#39;t look like this is the case, but your devices aren&amp;#39;t bonded/paired? Right?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And no, as far as I know, It shouldn&amp;#39;t be any problems for the sniffer to keep track of a connection with connection interval = 2000ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there some way for me to reproduce what you are seeing? Are both your peripheral and central an nRF? Are they running on DKs?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488325?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 12:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:453d1be0-c1fc-49a8-a6b0-500c85ba2f0c</guid><dc:creator>antoine98</dc:creator><description>&lt;p&gt;Hi Edvin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using a&amp;nbsp;nRF52840 USB dongle as a sniffer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The track is this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/track_5F00_sniffer.pcapng"&gt;devzone.nordicsemi.com/.../track_5F00_sniffer.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see there after connection parameter exchange the sniffing process ends&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to sniff packets with wireshark setting higher connection intervals</title><link>https://devzone.nordicsemi.com/thread/488322?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 12:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dd3cd8a-0709-4663-af39-0bfa68f22197</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What device are you using as the sniffer? and is it possible to upload the sniffer trace (.pcapng file) that you recorded that wasn&amp;#39;t able to keep track of the connection?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>