<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87979/nrf52840-dongle-ble-sniffing</link><description>I have nRF52840 Dongle and I want to sniff packets between two BLE devices. When I search in the Nordic DevZone forum, there are inconsistent answer about BLE sniffing support for the nRF52840 Dongle. On the &amp;quot;nRF Sniffer for Bluetooth LE&amp;quot; tool page (</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 07 Jun 2022 06:25:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87979/nrf52840-dongle-ble-sniffing" /><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/371024?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 06:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a303b471-777a-451e-be8d-384a390f1681</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is 16 bytes. You must reverse each byte, so 2 and 2 numbers. For example&amp;nbsp;33cd8dab22a023202a7074ad2a7afc69 will be 69fc7a... and so forth.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/370955?ContentTypeID=1</link><pubDate>Sat, 04 Jun 2022 21:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed4e15d6-4988-4a5f-b6cb-cff2cba5fe1d</guid><dc:creator>user116343</dc:creator><description>&lt;p&gt;ok. thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;is this 16bit ? how shouls I reverse the byte order ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/370837?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 10:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:747eb30f-92b8-411b-ba33-a062bcd88e94</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You must reverse the byte order of the LTK. Wireshark is showing the LTK as little endian, but the LTK must be provided as big endian.&lt;/p&gt;
&lt;p&gt;Additionally, it is the LTK from the received encryption information you should use (so&amp;nbsp;33cd8dab22a023202a7074ad2a7afc69 in your case), since it is the central that starts the encryption.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/370528?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 20:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9ebb5a1-aa8b-4573-ac2f-84c76eba1567</guid><dc:creator>user116343</dc:creator><description>&lt;p&gt;did you see my post below ? Is it helpful to understand the problem ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/370045?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 16:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e13123f4-feb8-42f6-bc43-90ecc9eedda7</guid><dc:creator>user116343</dc:creator><description>&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_captures.7z"&gt;test-devzone.nordicsemi.com/.../ble_5F00_captures.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have captured 5 files. The first one named &amp;quot;pairing&amp;quot; includes the pairing session.&lt;/p&gt;
&lt;p&gt;From that session following notes:&lt;/p&gt;
&lt;p&gt;d4:9c:dd:9e:f7:5b - camera (BLE client)&lt;br /&gt;94:a1:a2:25:5a:49 - remote (BLE server)&lt;/p&gt;
&lt;p&gt;33cd8dab22a023202a7074ad2a7afc69 - rcvd encryption information (packet 7887)&lt;br /&gt;b0ddb6dbfb16725a1091d08c2b547221 - sent encryption information (packet 7898)&lt;/p&gt;
&lt;p&gt;And with these keys I tried to decrypt other sessions. Files are named tfor easy understanding.&lt;/p&gt;
&lt;p&gt;I hope you can find my mistake.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/369895?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 07:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846eaf80-595a-4b30-b705-1843fc012272</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is difficult to say without looking at the sniffer trace. Can you upload it here as a pcap file?&lt;/p&gt;
&lt;p&gt;Best regarads,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/369858?ContentTypeID=1</link><pubDate>Sun, 29 May 2022 15:35:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf817ff4-f8f4-4d60-ab85-4e83beb69e96</guid><dc:creator>user116343</dc:creator><description>&lt;p&gt;what might be wrong ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/369014?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 12:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:647ce393-3307-47e6-a9de-cabbc958e0f8</guid><dc:creator>user116343</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Now I am able to get packets from that specific device.&lt;/p&gt;
&lt;p&gt;However, I see &amp;quot;Encrypted packet decrypted incorrectly (bad MIC)&amp;quot; info&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In fact, from the previous pairing session I got the LTK.&lt;/p&gt;
&lt;p&gt;I got 2 LTKs, one from master device (sent encryption information)&lt;/p&gt;
&lt;p&gt;value:&amp;nbsp;24c2432367ca4ba062aa2be421b233e5&lt;/p&gt;
&lt;p&gt;one from the slave device (rcvd encryption information)&lt;/p&gt;
&lt;p&gt;value:&amp;nbsp;c4383dae339da6bb0be21f61bd7cd0b6&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried both values entering them on the value field like 0xc4383dae339da6bb0be21f61bd7cd0b6&lt;/p&gt;
&lt;p&gt;selecting Legacy LTK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but it is still not decrypting.&lt;/p&gt;
&lt;p&gt;Any ideas about where am I doing wrong ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/368975?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 10:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6619da9-1330-4a69-9611-1102569ea17b</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If the device is not advertising you can add the device&amp;#39;s LE address to the device list, as explained under&amp;nbsp;&lt;strong&gt;Add LE Address&amp;nbsp;&lt;/strong&gt;in&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/sniffer_usage.html"&gt;nRF Sniffer usage&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/368886?ContentTypeID=1</link><pubDate>Sat, 21 May 2022 12:45:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:160182dc-ed6a-4bbf-936d-844aacc18855</guid><dc:creator>user116343</dc:creator><description>&lt;p&gt;Thanks for this. I have successfully followed the instructions and now I am able to see BLE packets in Wireshark with the provided profile.&lt;/p&gt;
&lt;p&gt;But all I see is advertising packets.&lt;/p&gt;
&lt;p&gt;How can I see messages between bonded/paired devices ?&lt;/p&gt;
&lt;p&gt;The documentation says:&lt;/p&gt;
&lt;ol class="ol steps"&gt;
&lt;li class="li step"&gt;&lt;span class="ph cmd"&gt;&lt;a class="xref" title="To start sniffing, place the DK or dongle that runs the nRF Sniffer for Bluetooth LE firmware between the two devices that are communicating. Then open Wireshark and start recording packets." href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/running_sniffer.html#running_sniffer"&gt;Run the nRF Sniffer&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(if not already running).&lt;/span&gt;&lt;/li&gt;
&lt;li class="li step"&gt;&lt;span class="ph cmd"&gt;Select your device from the device list.&lt;/span&gt;&lt;/li&gt;
&lt;li class="li step"&gt;&lt;span class="ph cmd"&gt;Enter the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="A key that is stored by both devices after the Bluetooth Low Energy pairing procedure has establishing a bond. The Long Term Key is either distributed by the peripheral device (when using legacy pairing) or derived from a Diffie-Hellman exchange (when using LE Secure Connections). The key is stored in both devices and is used to encrypt connections between the two devices." href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/dita_common/glossary/glossary.html#ltk"&gt;&lt;dfn class="term abbreviated-form"&gt;LTK&lt;/dfn&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for the bond.&lt;/span&gt;&lt;span class="ph cmd"&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;But I don&amp;#39;t have the LTK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;I also followed the &amp;quot;&lt;/span&gt;Sniffing the pairing procedure of a connection&lt;span class="ph cmd"&gt;&amp;quot; instructions but I could not get packetrs other than advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;My devices pair withput a key. I just turn both devices on (reset them to force bonding) and select the device B from device A menu.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;Edit:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;I finally managed to sniff packets other than advertising data. But that only happens in the same session.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;To continue capturing in another session, I got the LTK from the first session but I was not able to use it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;The problem is that,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;1.device B starts pairing to device A&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;2.Then I get 2 LTKs (one is from master, the other one is from slave)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;3.In the next session, device A does not advertise because it is already bonded, so I can not select it from the device list.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;4. If I select device B from the list , then I try both LTK to get packets, I can not get any data other than advertising data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;What am I doing wrong ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ph cmd"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle BLE Sniffing</title><link>https://test-devzone.nordicsemi.com/thread/368228?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 08:25:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1ca415b-a21c-4658-b9c2-86dbbd853315</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF Sniffer for Bluetooth LE is supported on the nRF52840 Dongle. You can see supported DKs and Dongles under&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/min_requirements.html"&gt;nRF Sniffer for Bluetooth LE &amp;gt; Minimum requirements&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Information about installation and how to use the sniffer can be found in the documentation here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html"&gt;nRF Sniffer for Bluetooth LE&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>