<?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>when I reconnect the device pin or key missing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68166/when-i-reconnect-the-device-pin-or-key-missing</link><description>Dear Nordic: 
 Help to see this problem，tks 
 
 Problem description: 
 SDK：nRF5_SDK_15.2.0_9412b96 
 status：bonded device 
 demo：Let&amp;#39;s refer to this sample code ---- nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_template 
 
 First, bond the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Nov 2020 12:00:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68166/when-i-reconnect-the-device-pin-or-key-missing" /><item><title>RE: when I reconnect the device pin or key missing</title><link>https://devzone.nordicsemi.com/thread/279470?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 12:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc9dd166-8199-49c0-bea2-270bee3a002b</guid><dc:creator>zqzhang</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, but are we still on the same subject?&lt;/p&gt;
&lt;p&gt;==》&lt;span&gt;After removing it, the PIN error is gone. It&amp;#39;s a new phenomenon.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure I understand what you&amp;#39;re asking. Are you able to connect to the mobile phone successfully now?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;==》yes ，&lt;span&gt;The first phone can connect properly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The nRF52832 supports maintaining multiple connections, which is why you&amp;#39;re able to connect to multiple phones.&lt;/p&gt;
&lt;p&gt;==》&lt;span&gt;After we disconnect from the first phone, connect to the second phone.It&amp;#39;s not two connected at the same time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Are you saying that just one of the phones are prompting a pop-up for bonding/pairing when you connect to it? If that&amp;#39;s the case, I assume this is due to the first one already being bonded to it.&lt;/p&gt;
&lt;p&gt;==》&lt;span class="tgt highlight"&gt;After the first phone is disconnected, the second phone initiates the connection and receives a paired pop up, but cannot connect after clicking.&lt;/span&gt;&lt;span class="tgt"&gt;Prompt connection rejection.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I reconnect the device pin or key missing</title><link>https://devzone.nordicsemi.com/thread/279469?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 11:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4cc04b6-af7d-484a-bc58-a7d27ff9d13c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, but are we still on the same subject? I&amp;#39;m not sure I understand what you&amp;#39;re asking. Are you able to connect to the mobile phone successfully now?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The nRF52832 supports maintaining multiple connections, which is why you&amp;#39;re able to connect to multiple phones. Are you saying that just one of the phones are prompting a pop-up for bonding/pairing when you connect to it? If that&amp;#39;s the case, I assume this is due to the first one already being bonded to it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I reconnect the device pin or key missing</title><link>https://devzone.nordicsemi.com/thread/279441?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 10:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:423eaa5f-35ab-4afb-94e3-3db5e8fb71f2</guid><dc:creator>zqzhang</dc:creator><description>&lt;p&gt;Hi，Nordic：&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I`m sorry, we checked carefully and deleted the delete_bond call that should not have appeared when the nrf52832 was booted up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt highlight"&gt;However, the first phone USES NRFConnect to connect NRF52832 to connect normally.&lt;/span&gt;&lt;span class="tgt"&gt;When the second phone connects NRFConnect to NRF52832, a paired bounding box appears. What is the reason for this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt"&gt;tks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I reconnect the device pin or key missing</title><link>https://devzone.nordicsemi.com/thread/279436?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 09:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751108b0-0f80-4f09-a804-38315ec53c3e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. The &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_peer_manager.html"&gt;peer manager&lt;/a&gt; should take care of storing bonding information for a connection, both in the ble_app_template and our other examples supporting pairing over BLE.&lt;/p&gt;
&lt;p&gt;2. You can read more about &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Flib_ble_advertising.html&amp;amp;anchor=whitelist"&gt;whitelisting &lt;/a&gt;here. This is not the same as bonding information.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I reconnect the device pin or key missing</title><link>https://devzone.nordicsemi.com/thread/279399?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 07:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8397805-cbaa-4cd1-aa2d-bb6fa157c530</guid><dc:creator>zqzhang</dc:creator><description>&lt;p&gt;&lt;span&gt;What I assume is happening here, is that one of the devices has erased the bonding information, while the other has not&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;==&amp;gt;&lt;span class="tgt highlight"&gt;Yes, the encrypted link can be successful when the Phone switches bluetooth again.&lt;/span&gt;&lt;span class="tgt"&gt;When NRF52832 is shut down and recharged, the encrypted link fails due to PIN or key missing.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="tgt"&gt;Have you made any changes at all to the ble_app_template project?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="tgt"&gt;==&amp;gt;We haven&amp;#39;t made any changes to the link connection.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="tgt"&gt;Most of our examples does this if button 2 (P0.14) on the DK is pressed upon startup, which might be what is happening here, seeing as this issue only occurs when you turn the device off.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="tgt"&gt;==&amp;gt;When I started NRF52832, I only pressed the power key.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="tgt"&gt;Q1:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="tgt"&gt;&lt;span class="tgt"&gt;In the ble_app_template project, we found no call to save the bond information.&lt;/span&gt;&lt;span class="tgt"&gt;In this Template project, how does it save bond information when NRF52832 is shut down?&lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt"&gt;&lt;strong&gt;&lt;span class="tgt"&gt;Q2:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="tgt"&gt;&lt;span class="tgt"&gt;In the HID_mouse project, we see that there is a Whitelist configuration. Is it related to storing bond information?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="tgt"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I reconnect the device pin or key missing</title><link>https://devzone.nordicsemi.com/thread/279398?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 07:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca1f910-5888-4637-9969-3468d0b41a78</guid><dc:creator>zqzhang</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi，Nordic：&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First off, have you tried using the nRFConnect for Android app to see if the issue prevails in our app as well?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;==》We use NRFConnect to connect NRF52832. When encrypting, there will be PIN or key missing when reconnecting.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="skip"&gt;Scenarioone,&amp;nbsp;Bond first and then connect with NRFConnect step：&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;span class="skip"&gt;1. Bond the nrf52832 device on the sdm845 mobile phone using android settings app.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;span class="skip"&gt;2.&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;On the NRFConnect app, click connect nrF52832.&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;Turn off NRF52832，then turn it on. and it&amp;nbsp;will reconnect automatically( because Settings APK uses background connection)&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;The PIN or key missing error is still present.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;span class="skip"&gt; 2,796 Event Encryption Change PIN or Key Missing 0x0004 4 7 2020/11/11 6:52:50.346560 00:00:00.173523&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;span class="skip"&gt;Now&amp;nbsp; the&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&amp;nbsp;encryption process fails, but the ACL link is connected.&amp;nbsp; The subsequent interactive data then becomes unencrypted data.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;span class="skip"&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="skip"&gt;Scenario&amp;nbsp;two&amp;nbsp;&lt;/span&gt;&lt;/em&gt;We just use NRFConnect APK to connect NRF52832 step:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. connect NRF52832 using&amp;nbsp;NRFConnect&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;2. bonded&amp;nbsp;&lt;span&gt;NRF52832 device&amp;nbsp;using&amp;nbsp;NRFConnect&amp;nbsp;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&amp;nbsp;Turn off NRF52832，then turn it on. and it&amp;nbsp;will reconnect automatically(nrfconnect enable background connection)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4.&amp;nbsp;The PIN or key missing error is still present.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;10,436 Event Disconnection Complete Success 0x0007 4 7 2020/11/11 7:22:31.581183 00:00:00.002060 &lt;/p&gt;
&lt;p&gt;10,438 Command 0x2043 Low Energy HCI_LE_Extended_Create_Connection_Command 42 46 2020/11/11 7:22:31.584379 00:00:00.000443 &lt;/p&gt;
&lt;p&gt;// restart&amp;nbsp;&lt;span&gt;NRF52832 device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;10,444 Event LE Enhanced Connection Complete Success 31 34 2020/11/11 7:22:58.657200 00:00:27.059425 &lt;/p&gt;
&lt;p&gt;10,462 Command 0x2019 Low Energy HCI_LE_Start_Encryption 28 32 2020/11/11 7:22:58.683573 00:00:00.000313 &lt;/p&gt;
&lt;p&gt;10,471 Event Encryption Change PIN or Key Missing 0x0008 4 7 2020/11/11 7:22:59.528533 00:00:00.179602 &lt;/p&gt;
&lt;p&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: when I reconnect the device pin or key missing</title><link>https://devzone.nordicsemi.com/thread/279245?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 12:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699b99f6-bc21-42b6-8943-d8dc693419e7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;First off, have you tried using the nRFConnect for Android app to see if the issue prevails in our app as well? What I assume is happening here, is that one of the devices has erased the bonding information, while the other has not. So if the Android device has the bonding information stored, then it won&amp;#39;t be able to bond again as it thinks it is already bonded with your nRF52. Have you made any changes at all to the ble_app_template project? I assume that somehow it deletes the bonding information when you turn it off. Most of our examples does this if button 2 (P0.14) on the DK is pressed upon startup, which might be what is happening here, seeing as this issue only occurs when you turn the device off.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>