<?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>nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83758/nrf52840-dk-sniffer-only-displays-adv_ind</link><description>Hey! I&amp;#39;m trying to sniff the data moving between a Bluetooth LE button and a Central. 
 Installation of the Bluetooth LE Sniffer went pretty smoothly but Wireshark only shows `ADV_IND` packets. 
 
 nRF52840 DK 
 macOS Intel on Catalina 
 I have to use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jan 2022 18:36:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83758/nrf52840-dk-sniffer-only-displays-adv_ind" /><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/350282?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 18:36:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abf198da-5f80-4aec-950f-7b5139bb427e</guid><dc:creator>aladin.taleb</dc:creator><description>&lt;p&gt;It seems that using the nRF USB port&amp;nbsp;instead of &amp;quot;the other one&amp;quot; has made it work as expected!&lt;/p&gt;
&lt;p&gt;After reading through the&amp;nbsp;doc - I now&amp;nbsp;realise that there was a note about this... However, as a non-bluetooth expert, I just followed the hardware setup&amp;nbsp;picture.&lt;/p&gt;
&lt;p&gt;The nRF USB connector is on the size of the DK - hence the mistake!&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/CleanShot-2022_2D00_01_2D00_28-at-19.34.16_4000_2x.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/350163?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 10:33:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5bc7a81-224a-48a2-ab78-4f679a0f0a5c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="aladin.taleb"]Okay, I had to add &amp;quot; public&amp;quot;&amp;nbsp;to make the Value field not turn red&amp;nbsp;but it didn&amp;#39;t really help.&amp;nbsp;[/quote]
&lt;p&gt;Strange that this also made no difference.&lt;/p&gt;
[quote user="aladin.taleb"]&lt;p&gt;So&amp;nbsp;the central side is&amp;nbsp;a node.js script&amp;nbsp;running on my mac. After&amp;nbsp;digging&amp;nbsp;into the library (@abandonware/noble) it seems that bonding/pairing is not supported so I&amp;nbsp;don&amp;#39;t see how &amp;quot;forgetting the device&amp;quot; would help.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also tried to sniff a connection between my iPhone and the button but same thing: only `ADV_IND`&amp;nbsp;are&amp;nbsp;output on Wireshark.&lt;/p&gt;[/quote]
&lt;p&gt;I see - it is still strange that the sniffer log ends so abruptly, and that it does not perform as expected prior to the abrupt stop.&lt;br /&gt;Since the devices are able to connect this means that there is something wrong with the wireshark / sniffer.&lt;br /&gt;I will discuss this with some colleagues who work on Mac&amp;#39;s, to see if they ever have experienced anything like this with wireshark, and if they are able to reproduce the behavior you describe.&lt;br /&gt;&lt;br /&gt;In the mean time, could you do a completely fresh install of the sniffer v4.1 - including reflashing of the sniffer device?&lt;br /&gt;Could you also try to switch which USB port you are using on the DK, to see if this makes any difference after the re-installation?&lt;br /&gt;I.e if you were using the programming port during regular operation, try to switch to the nRF USB port (after having successfully flashed the sniffer firmware), or visa versa.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/350047?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 16:34:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcdafea3-cd7c-4383-9144-a60851d75fb6</guid><dc:creator>aladin.taleb</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/83758/nrf52840-dk-sniffer-only-displays-adv_ind/349809#349809"]&lt;p&gt;You will need to include the &amp;quot; (random)&amp;quot; or &amp;quot; (private)&amp;quot; at the end of address before it is a valid address.&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;Okay, I had to add &amp;quot; public&amp;quot;&amp;nbsp;to make the Value field not turn red&amp;nbsp;but it didn&amp;#39;t really help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/83758/nrf52840-dk-sniffer-only-displays-adv_ind/349809#349809"]Could you use the &amp;quot;forget device&amp;quot; on your central side, and then redo the trace for the scenario in which the central establishes connection to the device, to see if there is any difference then?&lt;br /&gt;[/quote]
&lt;p&gt;So&amp;nbsp;the central side is&amp;nbsp;a node.js script&amp;nbsp;running on my mac. After&amp;nbsp;digging&amp;nbsp;into the library (@abandonware/noble) it seems that bonding/pairing is not supported so I&amp;nbsp;don&amp;#39;t see how &amp;quot;forgetting the device&amp;quot; would help.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also tried to sniff a connection between my iPhone and the button but same thing: only `ADV_IND`&amp;nbsp;are&amp;nbsp;output on Wireshark.&lt;/p&gt;
&lt;p&gt;Any other ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/349809?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 15:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ebff48-5289-46d3-b1d4-ae876d61fb29</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this.&lt;/p&gt;
[quote user="aladin.taleb"]I am not sure I understand how that works. When I input an address in the &amp;quot;Value&amp;quot;, the field gets all red and I cannot click on the arrow (see screenshot)[/quote]
&lt;p&gt;You will need to include the &amp;quot; (random)&amp;quot; or &amp;quot; (private)&amp;quot; at the end of address before it is a valid address.&lt;/p&gt;
[quote user="aladin.taleb"]To be honest, I don&amp;#39;t know. It seems that anything can connect to this button.[/quote]
&lt;p&gt;Could you use the &amp;quot;forget device&amp;quot; on your central side, and then redo the trace for the scenario in which the central establishes connection to the device, to see if there is any difference then?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/349061?ContentTypeID=1</link><pubDate>Sat, 22 Jan 2022 13:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af548bd8-fa92-4991-b895-1868be3ba1ca</guid><dc:creator>aladin.taleb</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/83758/nrf52840-dk-sniffer-only-displays-adv_ind/348535#348535"]Selecting the device in the dropdown did not filter anything? That is very strange.&lt;br /&gt;[/quote]
&lt;p&gt;Yep it doesn&amp;#39;t do anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/83758/nrf52840-dk-sniffer-only-displays-adv_ind/348535#348535"]&lt;p&gt;You can do this by selecting the desired&amp;nbsp;&lt;em&gt;key&lt;/em&gt; - such as Follow LE Address - and then inputting the value - the LE Address in this case - in the value field, and pressing the arrow button on the value field to apply it.&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;I am not sure I understand how that works. When I input an address in the &amp;quot;Value&amp;quot;, the field gets all red and I cannot click on the arrow (see screenshot)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/CleanShot-2022_2D00_01_2D00_22-at-14.06.03_4000_2x.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/83758/nrf52840-dk-sniffer-only-displays-adv_ind/348535#348535"]This is strange indeed. Are the devices already paired/bonded, so that they could be reverting to their stored keys once the connection indication is received?&lt;br /&gt;[/quote]
&lt;p&gt;To be honest, I don&amp;#39;t know. It seems that anything can connect to this button.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/83758/nrf52840-dk-sniffer-only-displays-adv_ind/348535#348535"]If not, could you show me the contents of the CONNECT_IND packet?&lt;br /&gt;[/quote]
&lt;p&gt;Please find attached the trace with CONNECT_IND&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/connect_5F00_ind.pcapng"&gt;devzone.nordicsemi.com/.../connect_5F00_ind.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/348535?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 13:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c036f9d1-d6b7-473f-896e-7491c7b32a81</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="aladin.taleb"]thanks for your answer![/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="aladin.taleb"]Yeah I&amp;#39;m positive that the device went into a connection while the sniffer was listening. The central is&amp;nbsp;actually a node.js script on the mac -&amp;nbsp;I&amp;#39;m able to follow the connection through it. I&amp;#39;ve also tried with the connection being made from my&amp;nbsp;iPad - got the same issue.&amp;nbsp;I&amp;#39;ve also double-checked the device id, I&amp;#39;m 100% sure it&amp;#39;s the right device id.[/quote]
&lt;p&gt;Thank you for confirming this. I assumed so, but I just wanted to make sure.&lt;/p&gt;
[quote user="aladin.taleb"]Once the connection is made, the&amp;nbsp;advertising packets are not received.&amp;nbsp;The button automatically disconnects after about 10sec. Once I wake up the button again, the advertising packets&amp;nbsp;are coming back as expected.[/quote]
&lt;p&gt;Great, this is also good to know - I assume it is the expected behavior of the device to stop advertising once a connection is made, since this is how most single concurrent-connection devices work.&lt;/p&gt;
[quote user="aladin.taleb"]&lt;p&gt;I was using `btle.advertising_address.filer` in the toolbar&amp;nbsp;because selecting the device in the dropdown&amp;nbsp;didn&amp;#39;t&amp;nbsp;filter anything.&lt;/p&gt;
&lt;p&gt;How should I use Key/Value to follow the device? Any other advise here?&lt;/p&gt;[/quote]
&lt;p&gt;Selecting the device in the dropdown did not filter anything? That is very strange.&lt;br /&gt;The key and value field can be used for different things, like following a LE Address without having seen it first (it only appears in the device drop down list after an advertising is picked up from it), or to follow privacy enabled devices through use of the IRK directly (the identity key, used for generating the new addresses), for instance.&lt;br /&gt;You can do this by selecting the desired&amp;nbsp;&lt;em&gt;key&lt;/em&gt; - such as Follow LE Address - and then inputting the value - the LE Address in this case - in the value field, and pressing the arrow button on the value field to apply it.&lt;/p&gt;
[quote user="aladin.taleb"]I gave it a try with v3.1.0 of the bluetooth sniffer.&amp;nbsp;[/quote]
&lt;p&gt;I would recommend using the newest sniffer - v4.1.0 - instead. There has been made a lot of improvements on the sniffer with the v4.0.0 and v4.1.0 release.&lt;/p&gt;
[quote user="aladin.taleb"]When I connect the button,&amp;nbsp;Wireshark outputs&amp;nbsp;a CONNECT_IND packet - and&amp;nbsp;the &amp;quot;device&amp;quot; drop down displays the correct name - but then nothing.[/quote]
&lt;p&gt;This is strange indeed. Are the devices already paired/bonded, so that they could be reverting to their stored keys once the connection indication is received?&lt;br /&gt;If so, please delete the pairing/bond information on both devices, and re-do the connection + pairing/bonding while the sniffer is listening in (peripheral chosen in the drop-down menu).&lt;br /&gt;If not, could you show me the contents of the CONNECT_IND packet?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/348389?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 22:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:571a528f-34aa-45a2-bf80-ecc90824edc2</guid><dc:creator>aladin.taleb</dc:creator><description>&lt;p&gt;I gave it a try with v3.1.0 of the bluetooth sniffer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I connect the button,&amp;nbsp;Wireshark outputs&amp;nbsp;a CONNECT_IND packet - and&amp;nbsp;the &amp;quot;device&amp;quot; drop down displays the correct name - but then nothing.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/CleanShot-2022_2D00_01_2D00_18-at-23.18.14_4000_2x.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/348388?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 22:03:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bed99578-506c-4cd9-b3bf-4f8fc9361e10</guid><dc:creator>aladin.taleb</dc:creator><description>&lt;p&gt;Hey Karl, thanks for your answer!&lt;/p&gt;
&lt;p&gt;Yeah I&amp;#39;m positive that the device went into a connection while the sniffer was listening. The central is&amp;nbsp;actually a node.js script on the mac -&amp;nbsp;I&amp;#39;m able to follow the connection through it. I&amp;#39;ve also tried with the connection being made from my&amp;nbsp;iPad - got the same issue.&amp;nbsp;I&amp;#39;ve also double-checked the device id, I&amp;#39;m 100% sure it&amp;#39;s the right device id.&lt;/p&gt;
&lt;p&gt;Once the connection is made, the&amp;nbsp;advertising packets are not received.&amp;nbsp;The button automatically disconnects after about 10sec. Once I wake up the button again, the advertising packets&amp;nbsp;are coming back as expected.&lt;/p&gt;
&lt;p&gt;I was using `btle.advertising_address.filer` in the toolbar&amp;nbsp;because selecting the device in the dropdown&amp;nbsp;didn&amp;#39;t&amp;nbsp;filter anything.&lt;/p&gt;
&lt;p&gt;How should I use Key/Value to follow the device? Any other advise here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK sniffer only displays ADV_IND</title><link>https://devzone.nordicsemi.com/thread/348203?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 08:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4648a2cf-e03a-4a07-a852-2fff4efe4971</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Normally, this means that you have not selected the device to listen for in the dropdown menu. When this is set to &amp;#39;all advertising devices&amp;#39; the sniffer will not follow into any connections, but instead only listen for packets on the primary advertising channels. It does however seem like you have selected the device, so that should not be the issue here.&lt;br /&gt;&lt;br /&gt;Could you verify that the devices actually went into a connection while your sniffer was listening, and could you also ensure that you are listening to the correct device?&lt;br /&gt;Did the advertising packets keep on coming in even after the devices entered into the connection? If so, is this the correct behavior of the peripheral device, or could it be that you are targeting an incorrect device?&lt;br /&gt;&lt;br /&gt;In the attached sniffer trace it seems that you have not applied any filter / chosen a specific device to follow, but your screenshot seems to have all the correct filters set.&lt;br /&gt;For the record, you do not have to fill in the btle.advertising_address filter in the top bar if you make use of the&amp;nbsp;&lt;em&gt;key&amp;nbsp;&lt;/em&gt;and&amp;nbsp;&lt;em&gt;value&amp;nbsp;&lt;/em&gt;fields to follow your device. The filter specified in the top bar only filters what is viewable in the sniffer trace, as a convenience. You could try to remove this line, to see if this changes anything in your trace.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>