<?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>Connect secure and save System Attributes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107253/connect-secure-and-save-system-attributes</link><description>I test my product to make sure it works the way I want it to. 
 The MCU is nrf52832 and it develope with SDK17. 
 I first used my phone to perform a pairing and binding, and then deleted the binding information on my phone.Then I try to connect and bond</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jan 2024 17:35:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107253/connect-secure-and-save-system-attributes" /><item><title>RE: Connect secure and save System Attributes</title><link>https://devzone.nordicsemi.com/thread/464469?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 17:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbd8518a-89a4-4306-9930-8c228bb1326b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="Chaoyue Ying"]I try the way that call&amp;nbsp;pm_conn_sec_params_reply(),but it do nothing.[/quote]
&lt;p&gt;You can check what is returned by&amp;nbsp;pm_conn_sec_params_reply.&amp;nbsp;&lt;span&gt;If no reply is sent, the parameters given in&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__peer__manager.html#gac27a2cc39be9fce1bd866ba4c6b18349"&gt;pm_sec_params_set&lt;/a&gt;&lt;span&gt;&amp;nbsp;are used. See&amp;nbsp;the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__peer__manager.html#gga4a0e37cf07eb91e1a1808995b957808ba7ebd4003aafe1f0987f8ddacbb13444a"&gt;PM_EVT_CONN_SEC_PARAMS_REQ&lt;/a&gt;&amp;nbsp;event description.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would recommend looking at&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_bms.html"&gt;&lt;b&gt;ble_app_bms&amp;nbsp;&lt;/b&gt;&lt;/a&gt;&lt;span&gt;or&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_gls.html"&gt;&lt;strong&gt;ble_app_gls&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;. If they cannot help, please create a new support case for the new issue away from the original scope.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect secure and save System Attributes</title><link>https://devzone.nordicsemi.com/thread/464293?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 06:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f8210c-5384-46d7-914b-dddb70c8e0b2</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A new problem has arisen here.When I paring and bonding with central(Mobile phones made by different manufacturers) one by one,pm_evt_handler() will get&amp;nbsp;several identical events in a row that&amp;nbsp;PM_EVT_CONN_SEC_PARAMS_REQ.&lt;/p&gt;
&lt;p&gt;It seem lag happened in peer_manager,I try the way that call&amp;nbsp;pm_conn_sec_params_reply(),but it do nothing.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case PM_EVT_CONN_SEC_PARAMS_REQ:
        {
				  ble_gap_sec_params_t sec_param;
					memset(&amp;amp;sec_param, 0, sizeof(ble_gap_sec_params_t));

					sec_param.bond           = SEC_PARAM_BOND;
					sec_param.mitm           = SEC_PARAM_MITM;
					sec_param.lesc           = SEC_PARAM_LESC;
					sec_param.keypress       = SEC_PARAM_KEYPRESS;
					sec_param.io_caps        = SEC_PARAM_IO_CAPABILITIES;
					sec_param.oob            = SEC_PARAM_OOB;
					sec_param.min_key_size   = SEC_PARAM_MIN_KEY_SIZE;
					sec_param.max_key_size   = SEC_PARAM_MAX_KEY_SIZE;
					sec_param.kdist_own.enc  = 1;
					sec_param.kdist_own.id   = 1;
					sec_param.kdist_peer.enc = 1;
					sec_param.kdist_peer.id  = 1;
          pm_conn_sec_params_reply(p_evt-&amp;gt;conn_handle, &amp;amp;sec_param,NULL);
        } break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The phone shows pairing until the pop-up pairing failed.What should I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect secure and save System Attributes</title><link>https://devzone.nordicsemi.com/thread/464022?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 20:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15a4b993-c769-4dd7-9f9a-8df5381b1f62</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can take a look at the _conn_secure() in the&amp;nbsp;nRF5_SDK\components\ble\peer_manager\peer_manager_handler.c on how to do that.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect secure and save System Attributes</title><link>https://devzone.nordicsemi.com/thread/463820?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 15:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7155b37e-fc3f-4483-bd46-980d21ab7e38</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;你好&lt;/p&gt;
&lt;p&gt;&lt;span&gt;我想知道我应该怎么做才能&lt;span&gt;添加检查以确保设备已&amp;ldquo;准备就绪&amp;rdquo;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect secure and save System Attributes</title><link>https://devzone.nordicsemi.com/thread/463806?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 15:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dfe113f-62bc-4d69-9aaa-e6af5df46b82</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the devices aren&amp;#39;t disconnected it&amp;#39;s likely due to the devices being in a security procedure already, so you could add a check to make sure that the devices are &amp;quot;ready&amp;quot; or add a delay before calling pm_conn_secure().&lt;/span&gt;&lt;/p&gt;
[quote user="Chaoyue Ying"]I want to know a central is bonded or the bond queue is&amp;nbsp;vacant at the process of&amp;nbsp;peripheral.If&amp;nbsp;peripheral&amp;nbsp; can to learn the bond queue is NULL,then call&amp;nbsp;pm_conn_secure() maybe avoid&amp;nbsp;NRF_ERROR_BUSY.[/quote]
&lt;p&gt;From the peripheral side, the phone is still bonded, but the phone doesn&amp;#39;t have the bond data anymore.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect secure and save System Attributes</title><link>https://devzone.nordicsemi.com/thread/463667?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 07:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:581e21b2-14cf-4000-a276-a10e11c5c7d8</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope to know what should I do to avoid&amp;nbsp;&lt;span&gt;NRF_ERROR_BUSY when I try to rebind my phone and nrf52832 after the peripheral call pm_conn_secure().&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can find that NRF_ERROR_BUSY&amp;nbsp;means a security procedure is already in progress on the link, or if the link is disconnecting or disconnected.But I can not understand, because I can&amp;nbsp;observed connecting and pairing while RTT output&amp;nbsp;NRF_ERROR_BUSY.And disconnect not appear in RTT output.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Besides,I think the config of&amp;nbsp;PM_EVT_CONN_SEC_CONFIG_REQ is support rebind.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want to know a central is bonded or the bond queue is&amp;nbsp;vacant at the process of&amp;nbsp;peripheral.If&amp;nbsp;peripheral&amp;nbsp; can to learn the bond queue is NULL,then call&amp;nbsp;pm_conn_secure() maybe avoid&amp;nbsp;NRF_ERROR_BUSY.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect secure and save System Attributes</title><link>https://devzone.nordicsemi.com/thread/463625?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 17:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33724bb2-e394-49b0-845a-9b1ca4596af3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]I first used my phone to perform a pairing and binding, and then deleted the binding information on my phone.Then I try to connect and bond with my board again,it will return&amp;nbsp;NRF_ERROR_BUSY while using pm_conn_secure().[/quote]
&lt;p&gt;It should also delete the bond information on the device&amp;nbsp;if you&amp;nbsp;&lt;span&gt;delete the binding information on my phone, and then reconnect. Returning&amp;nbsp;NRF_ERROR_BUSY from &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__peer__manager.html#ga46dfaf46c0aa94fc15017d42b3a2e514"&gt;pm_conn_secure&lt;/a&gt;() means i&lt;/span&gt;&lt;span&gt;f a security procedure is already in progress on the link, or if the link is disconnecting or disconnected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]While the central lose the bonding information,the program will run as below:[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That would allow pairing requests from an already bonded peer.&lt;/p&gt;
[quote user=""]how I to know a central is bonded or the bond queue is&amp;nbsp;vacant.[/quote]
&lt;p&gt;If the central device is your smartphone, you could use the nRF Connect app and check the bond tab.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65706/ble_nus_data_send-error"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6433.pastedimage1704907108344v1.png" alt=" " /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Then while the board send informations to phone,ble_nus_data_send() always return&amp;nbsp;BLE_ERROR_GATTS_SYS_ATTR_MISSING.[/quote]
&lt;p&gt;See my colleague&amp;#39;s explanation in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65706/ble_nus_data_send-error/268754"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>