<?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>Problems interpreting a passkey failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65352/problems-interpreting-a-passkey-failure</link><description>Hi! 
 My BLE peripheral needs to change its &amp;quot;static&amp;quot; passkey under certain circumstance. 
 However, when I attempt to connect after setting it, I get a PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING failure. 
 
 Here is the code fragment from update_advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Aug 2020 10:59:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65352/problems-interpreting-a-passkey-failure" /><item><title>RE: Problems interpreting a passkey failure</title><link>https://devzone.nordicsemi.com/thread/267180?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 10:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0415ad2-ced0-498d-93a0-1d934edf390b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Ben&lt;/p&gt;
&lt;p&gt;The description of PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING states: &amp;quot;Encryption failed because the peripheral has lost the LTK for this bond&amp;quot;. It&amp;#39;s most likely that the phone was bonded with this device prior to the connection, but that the device has erased the bonding information, meaning that they are using different passkeys. Please try erasing bonding information on both devices and try again. On the nRF side, this can be done by doing an nrfjprog --eraseall in the command line if the device is connected to your computer via a J-Link device.&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>