<?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>How I changed the PASSKEY in NRF52832??</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116363/how-i-changed-the-passkey-in-nrf52832</link><description>I want to change static_passkey from &amp;quot;000000&amp;quot; to &amp;quot;0000&amp;quot;. 
 But It doesn&amp;#39;t work when I update changed code to board. 
 I changed like below pictures.(000000 -&amp;gt; 0000) 
 
 
 And this is the code of PASSKEY 
 
 Please help me.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Nov 2024 14:30:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116363/how-i-changed-the-passkey-in-nrf52832" /><item><title>RE: How I changed the PASSKEY in NRF52832??</title><link>https://devzone.nordicsemi.com/thread/511517?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 14:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30a8f16a-193f-43cf-a72b-bbc35177e71c</guid><dc:creator>SwRa</dc:creator><description>&lt;div&gt;
&lt;div&gt;Hello,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;You are correct. The passkey for Bluetooth pairing must indeed be 6 digits long. This is not just related to Android security regulations, but is a requirement specified in the Bluetooth standard itself.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The passkey is always a 6-digit number, ranging from 000000 to 999999. Attempting to use a 4-digit passkey (like &amp;quot;0000&amp;quot;) would not comply with the Bluetooth specification and thus would not work correctly for pairing.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;/div&gt;
&lt;div&gt;Swathy&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I changed the PASSKEY in NRF52832??</title><link>https://devzone.nordicsemi.com/thread/510587?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 03:09:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e842967c-aa38-4669-ae0a-7d6a82eca122</guid><dc:creator>chosseang</dc:creator><description>&lt;p&gt;Oh, Sorry.&lt;br /&gt;I didn&amp;#39;t write that part.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I coded that part like this :&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span&gt;#define &lt;/span&gt;SEC_PARAM_BOND                  &lt;span&gt;1                                       &lt;/span&gt;&lt;span&gt;/**&amp;lt; Perform bonding. */&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#define &lt;/span&gt;SEC_PARAM_MITM                  &lt;span&gt;1                                       &lt;/span&gt;&lt;span&gt;/**&amp;lt; Man In The Middle protection not required. */&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#define &lt;/span&gt;SEC_PARAM_LESC                  &lt;span&gt;0                                       &lt;/span&gt;&lt;span&gt;/**&amp;lt; LE Secure Connections not enabled. */&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#define &lt;/span&gt;SEC_PARAM_KEYPRESS              &lt;span&gt;0                                       &lt;/span&gt;&lt;span&gt;/**&amp;lt; Keypress notifications not enabled. */&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#define &lt;/span&gt;SEC_PARAM_IO_CAPABILITIES       BLE_GAP_IO_CAPS_DISPLAY_ONLY            &lt;span&gt;/**&amp;lt; Display only I/O capabilities. */&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#define &lt;/span&gt;SEC_PARAM_OOB                   &lt;span&gt;0                                       &lt;/span&gt;&lt;span&gt;/**&amp;lt; Out Of Band data not available. */&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#define &lt;/span&gt;SEC_PARAM_MIN_KEY_SIZE          &lt;span&gt;7                                       &lt;/span&gt;&lt;span&gt;/**&amp;lt; Minimum encryption key size. */&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#define &lt;/span&gt;SEC_PARAM_MAX_KEY_SIZE          &lt;span&gt;16                                      &lt;/span&gt;&lt;span&gt;/**&amp;lt; Maximum encryption key size. */&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#define &lt;/span&gt;STATIC_PASSKEY                  &lt;span&gt;&amp;quot;000000&amp;quot;                                &lt;/span&gt;&lt;span&gt;/**&amp;lt; Paring pass-key */&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But I found the reason of this issue.&lt;/p&gt;
&lt;p&gt;The passkey must be 6 digits. So I can&amp;#39;t change passkey to 4 digits.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I heard that this is related to Bluetooth, Android security regulations.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it right??&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I changed the PASSKEY in NRF52832??</title><link>https://devzone.nordicsemi.com/thread/510498?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 13:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c58810ef-bdd8-4ac6-b11c-baac2f2b44ce</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Setting the STATIC_PASSKEY value to &amp;quot;0000&amp;quot; is indeed the right way to do do.&amp;nbsp;&lt;span&gt;You might also need to adjust the following parameters for it:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define SEC_PARAM_MITM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt; #define SEC_PARAM_IO_CAPABILITIES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BLE_GAP_IO_CAPS_DISPLAY_ONLY&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This has been described in this ticket: (&lt;a title="https://devzone.nordicsemi.com/f/nordic-q-a/101940/how-to-config-lesc?replyfilter=answers&amp;amp;replysortby=answers&amp;amp;replysortorder=descending)" href="https://devzone.nordicsemi.com/f/nordic-q-a/101940/how-to-config-lesc?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending)" rel="noopener noreferrer" target="_blank"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/101940/how-to-config-lesc?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending)&lt;/a&gt;&amp;nbsp;and shows an example on how to implement these changes in the context of the ble_app_hrs example.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Swathy&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I changed the PASSKEY in NRF52832??</title><link>https://devzone.nordicsemi.com/thread/510386?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 01:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6132c151-1237-42b8-9d9d-ec3704221288</guid><dc:creator>chosseang</dc:creator><description>&lt;p&gt;&amp;quot;Doesn&amp;#39;t work&amp;quot; means I can&amp;#39;t find this device when I scanned by app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>