<?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-DK stops following a BLE connection after a small amount of time passes.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70728/nrf52-dk-stops-following-a-ble-connection-after-a-small-amount-of-time-passes</link><description>I am currently using a nRF52-DK to follow the connection between two external devices. I run the sniffer and start/stop the sniffing via Wireshark. When I start sniffing, I can see the advertisement packets of the two devices. Then, I select to follow</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jan 2021 06:33:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70728/nrf52-dk-stops-following-a-ble-connection-after-a-small-amount-of-time-passes" /><item><title>RE: nRF52-DK stops following a BLE connection after a small amount of time passes.</title><link>https://devzone.nordicsemi.com/thread/290645?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 06:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:378b0fb7-70f7-4710-bbba-097501279a01</guid><dc:creator>daviddedwin</dc:creator><description>&lt;p&gt;&lt;span&gt;I had linked to the case where using the debug key for secure connections are described, but I see that the debug key setting is not so straight forward.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can look at peer manager init (I checked on SDK 17.0.2 for the HID Mouse example) and set the LE Secure parameter to off, this should switch the pairing process to legacy.&lt;pre class="ui-code" data-mode="text"&gt;static void peer_manager_init(void)
....

&amp;#160; &amp;#160; sec_param.lesc=SEC_PARAM_LESC;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52-DK stops following a BLE connection after a small amount of time passes.</title><link>https://devzone.nordicsemi.com/thread/290616?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 20:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c69313ea-5420-45e4-a91a-6615bb9f90a8</guid><dc:creator>tjhasan</dc:creator><description>&lt;p&gt;Thank you very much for your insight. I&amp;#39;m still fairly new to this so I apologize if this is a silly question, but how do I go about downgrading to legacy passkey mode? I&amp;#39;m assuming I would have to do it on one of the two devices I have (Samsung Galaxy Phone &amp;amp; Garmin Vivosmart 4). Could you by chance point me in the right direction for this?&lt;br /&gt;&lt;br /&gt;Alternatively, how would I go about enabling debug mode for secure connections on my devices? The example that you linked to, I believe, shows a user asking about pairing their nRF82382 to nRF Connect and using a separate DK as a sniffer. But in my case, I&amp;#39;m trying to sniff the connection between a different set of devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52-DK stops following a BLE connection after a small amount of time passes.</title><link>https://devzone.nordicsemi.com/thread/290612?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 19:29:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6b45332-0b2c-41fe-9c22-ea29ff4e05a0</guid><dc:creator>daviddedwin</dc:creator><description>&lt;p&gt;It looks like the pairing is using secure connections and the sniffer only supports the&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Faction_paired.html&amp;amp;cp=9_4_4_3"&gt; debug mode for secure connections&lt;/a&gt;. There is an example in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63608/getting-encrypted-packet-decrypted-incorrectly-bad-nic-while-pairing-the-2-devices-with-lesc-enabled-with-the-help-of-nrf_ble_sniffer"&gt;this case&lt;/a&gt;&amp;nbsp;to set the debug mode for secure connections so it can be sniffed by the sniffer. Alternatively you can downgrade to legacy passkey mode so the sniffer can sniff the connection.&lt;/p&gt;
&lt;p&gt;Hope this helps, please accept my answer and upvote it.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52-DK stops following a BLE connection after a small amount of time passes.</title><link>https://devzone.nordicsemi.com/thread/290609?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 19:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2598edbc-4357-4eba-bb73-4517fdab193a</guid><dc:creator>tjhasan</dc:creator><description>&lt;p&gt;Forgot to mention some more details on the 2 .pcapng files I provided.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;Pairing&amp;quot; .pcapng file shows the packets sniffed during the pairing process in which I supplied a Passkey as described in &lt;a href="https://www.nordicsemi.com/-/media/DocLib/Other/User_Guides/nRFSnifferUGv22.pdf?la=en"&gt;this document (Section 5).&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;Post-Pairing&amp;quot; .pcapng file shows the packets sniffed after the pairing has already taken place. This was done following the instructions shown in &lt;a href="https://www.nordicsemi.com/-/media/DocLib/Other/User_Guides/nRFSnifferUGv22.pdf?la=en"&gt;Section 5.5&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52-DK stops following a BLE connection after a small amount of time passes.</title><link>https://devzone.nordicsemi.com/thread/290608?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 19:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9386166-6f6c-4986-aa0b-42a0f20aaeac</guid><dc:creator>tjhasan</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF_5F00_Capture_2D00_Post_2D00_Pairing.pcapng"&gt;devzone.nordicsemi.com/.../nRF_5F00_Capture_2D00_Post_2D00_Pairing.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF_5F00_Capture_2D00_Pairing.pcapng"&gt;devzone.nordicsemi.com/.../nRF_5F00_Capture_2D00_Pairing.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Sniffer Version: 3.1.0&lt;/li&gt;
&lt;li&gt;DK Version: Not entirely sure but I believe there is only 1 version available for the nRF52-DK: 1.10&lt;/li&gt;
&lt;li&gt;Wireshark captures: I&amp;#39;ve attached two of my Wireshark captures. The &amp;quot;Pairing&amp;quot; .pcapng file shows the packets sniffed during the pairing process in which I supplied a Passkey as described in &lt;a href="https://www.nordicsemi.com/-/media/DocLib/Other/User_Guides/nRFSnifferUGv22.pdf?la=en"&gt;this document (Section 5).&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;My method of capture is as follows:
&lt;ol&gt;
&lt;li&gt;Ensure that the two devices are not paired.&lt;/li&gt;
&lt;li&gt;Start Wireshark &amp;amp; nRF52-DK Sniffer&lt;/li&gt;
&lt;li&gt;Select the device I want to follow via the toolbar.&lt;/li&gt;
&lt;li&gt;Begin the pairing process between my 2 devices.&lt;/li&gt;
&lt;li&gt;When given the passkey, type it into the &amp;quot;Passkey / OOB&amp;quot; text box and hit enter.&lt;/li&gt;
&lt;li&gt;Enter the passkey onto my actual device to finish the pairing process.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Before I began sniffing, of course, I used nRF Connect to write the appropriate HEX file to my nRF52-DK (in this case it was the sniffer_nrf52dk_nrf52832_7cc811f.hex file located in the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE/Download"&gt;provided sniffer files.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if you need anything else. Thank you very much in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52-DK stops following a BLE connection after a small amount of time passes.</title><link>https://devzone.nordicsemi.com/thread/290387?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 05:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cc698f1-147e-41cf-be62-8b79bb3e0558</guid><dc:creator>daviddedwin</dc:creator><description>&lt;p&gt;Please post:&lt;br /&gt;1. Sniffer version used&lt;br /&gt;2. DK version used&lt;br /&gt;3. The wireshark capture file that you got after sniffing&lt;br /&gt;4. Any other actions done on the devices to setup the connection.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>