<?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>Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93434/please-tell-me-how-to-achieve-re-pairing</link><description>I am developing with nrf52832 (s132 v7.0.1, SDK v17.0.0) as a peripheral device. 
 I would like to have it re-paired when there is no pairing information for either peripheral or central. 
 I found out that this can be done by allowing re-pairing when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Dec 2022 09:32:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93434/please-tell-me-how-to-achieve-re-pairing" /><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/400330?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 09:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc04b16e-e628-46a3-9b08-f16d466f52dd</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thanks for sharing the solution!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/400104?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 11:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7185488c-8443-4384-9652-7f4b8cb135b9</guid><dc:creator>sdi_kei</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello.&lt;/span&gt;&lt;br /&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I found the reason why my code did not re-pair.&lt;br /&gt;When PM_EVT_CONN_SEC_CONFIG_REQ occurred, it was not processed in the event handler, but was stored as a task and processed after some time had passed.&lt;/p&gt;
&lt;p&gt;As you taught us, we implemented PM_EVR_CONN_SEC_CONFIG_REQ and were able to re-pair.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;div id="gtx-trans" style="left:-27px;position:absolute;top:-20px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393927?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 14:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f7f0809-b016-4818-9f54-9e92962e9388</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Before looking at your logs, I tested this in an example myself, to check if I&amp;nbsp;would&amp;nbsp;reproduce the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void pm_evt_handler(pm_evt_t const * p_evt)
{
    pm_handler_on_pm_evt(p_evt);
    pm_handler_disconnect_on_sec_failure(p_evt);
    pm_handler_flash_clean(p_evt);

    pm_conn_sec_config_t conn_sec_config;

    switch (p_evt-&amp;gt;evt_id)
    {
        case PM_EVT_PEERS_DELETE_SUCCEEDED:
            advertising_start(false);
            break;
        
        case PM_EVT_CONN_SEC_CONFIG_REQ:
            conn_sec_config.allow_repairing = true;
            pm_conn_sec_config_reply(m_conn_handle, &amp;amp;conn_sec_config);
            break;

        default:
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Paired the device to my phone. Then I deleted the bond on the central (phone) side, and tried to re-pair. Works as expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393459?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 12:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57456725-5228-4d05-b772-e45acb7ff311</guid><dc:creator>sdi_kei</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I have re-logged the re-pairing.&lt;br /&gt;I have changed the log level to Debug to output a more detailed log.&lt;br /&gt;Can you tell the cause of the error from this information?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x10.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_BONDED_PEER_CONNECTED
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Previously bonded peer connected: role: Peripheral, conn_handle: 0, peer_id: 0
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_CONN_SEC_PARAMS_REQ
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Security parameter request
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_LOCAL_DB_CACHE_APPLIED
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Previously stored local DB applied: conn_handle: 0, peer_id: 0
00&amp;gt; &amp;lt;info&amp;gt; app: Connected, handle 0x0.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x21.
00&amp;gt; &amp;lt;info&amp;gt; app: PHY update request.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x22.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x23.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Peer on connection 0x0 requested a data length of 251 bytes.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 27 on connection 0x0.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x24.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 27 on connection 0x0.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 27
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 27
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 2120
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x55.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Peer on connection 0x0 requested an ATT MTU of 185 bytes.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Updating ATT MTU to 23 bytes (desired: 23) on connection 0x0.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x50.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_FLASH_GARBAGE_COLLECTED
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Flash garbage collection complete.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x13.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_CONN_SEC_START
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Connection security procedure started: role: Peripheral, conn_handle: 0, procedure: Bonding
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_CONN_SEC_PARAMS_REQ
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Security parameter request
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_CONN_SEC_CONFIG_REQ
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Security configuration request
00&amp;gt; &amp;lt;info&amp;gt; app: PM_EVT_CONN_SEC_CONFIG_REQ
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x19.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_CONN_SEC_FAILED
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Error (decoded): BLE_GAP_SEC_STATUS 0x85
00&amp;gt; &amp;lt;info&amp;gt; app: Connection Security Failed. procedure: 0x1, error: 0x85, error_src: 0x0.
00&amp;gt; &amp;lt;info&amp;gt; app: No Bonding Infomation for Central.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x50.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_FLASH_GARBAGE_COLLECTED
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Flash garbage collection complete.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x50.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_FLASH_GARBAGE_COLLECTED
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Flash garbage collection complete.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x50.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_PEER_DATA_UPDATE_SUCCEEDED
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x50.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_soc: SoC event: 0x2.
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Event PM_EVT_FLASH_GARBAGE_COLLECTED
00&amp;gt; &amp;lt;debug&amp;gt; peer_manager_handler: Flash garbage collection complete.
00&amp;gt; &amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x11.
00&amp;gt; &amp;lt;info&amp;gt; app: Disconnected. conn_handle: 0x0, reason 0x13.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards and thank you in advance for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393431?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 11:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:526ee3bd-dd5c-462a-b3ba-c61f4a432372</guid><dc:creator>sdi_kei</dc:creator><description>&lt;p&gt;I didn&amp;#39;t communicate it well, my apologies.&lt;/p&gt;
&lt;p&gt;When I said when disconnected, I meant when BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP occurs and disconnection occurs.&lt;/p&gt;
&lt;p&gt;Central (phone) does not remember pairing information because it is manually deleted.&lt;br /&gt;This is because it wants to perform a re-pairing action.&lt;/p&gt;
&lt;p&gt;Thank you in advance for your cooperation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393429?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 10:59:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eef7a909-1541-4ced-8d31-1b3e996571ca</guid><dc:creator>Joakim Jakobsen</dc:creator><description>[quote user="sdi_kei"]This is because we currently do not delete bonding information when disconnecting.[/quote]
&lt;p&gt;You don&amp;#39;t delete bonding information on when disconnecting, but you are unable to reconnect due to the bonding information is missing?&lt;/p&gt;
&lt;p&gt;But on the phone side, you choose to disconnect and &amp;quot;forget&amp;quot; the device, thus deleting the bond information?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393427?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 10:56:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf1ea02-1181-47c8-a3e2-3ed95625a153</guid><dc:creator>sdi_kei</dc:creator><description>&lt;p&gt;Thank you. Please confirm.&lt;/p&gt;
&lt;p&gt;This is because we currently do not delete bonding information when disconnecting.&lt;/p&gt;
&lt;p&gt;Best regards, and thank you in advance for your cooperation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393422?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 10:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4caf8e54-1381-48dc-9741-796688836b70</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;I&amp;#39;ll take a closer look at the error you get.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like to note that if you perform bonding; the best way to avoid this would be not to delete bond information upon disconnection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393420?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 10:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:880c1d96-2706-4a86-ae0a-eeea85fc6b03</guid><dc:creator>sdi_kei</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;Thanks for the answer!&lt;/p&gt;
&lt;p&gt;I have it set to true because I want to update the pairing request instead of rejecting it.&lt;/p&gt;
&lt;p&gt;For the central device only bonding information is being deleted, PM_EVT_CONN_SEC_CONFIG_REQ is being called, but it is being errored by BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP.&lt;/p&gt;
&lt;p&gt;Why am I getting an error even though I have set up an update?&lt;/p&gt;
&lt;p&gt;Also, you say that re-pairing is only done if the central does not have bonding information, how can I update it if the peripheral does not have bonding information?&lt;/p&gt;
&lt;p&gt;Best regards, and thank you in advance for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393414?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 10:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2f963be-fa29-46f0-9220-5d72e78c8dc1</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What you are seeing is to be expected. Re-pairing is used for when the peripheral already have a bond for the central that is trying to connect. If the bond information is deleted on the central device and tries to pair with the peripheral that already has a bond with the central, you can use the allow_repairing to either reject the request or update the bond with the peripheral.&lt;/p&gt;
&lt;p&gt;Using allow_repairing =&amp;nbsp;false:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;A connected peer (central) is trying to pair, but the Peer Manager already has a bond&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;span&gt;for that peer. Setting allow_repairing to false rejects the pairing request.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
[quote user=""]re-paired when there is no pairing information for either peripheral or central.[/quote]
&lt;p&gt;If there is no bonding information on either the peripheral or the central, there wouldn&amp;#39;t be a reason to re-pair. Then you can simply pair the devices as normal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Please tell me how to achieve re-pairing.</title><link>https://devzone.nordicsemi.com/thread/393364?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 07:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1911439e-ed5e-4c29-87b9-0fa2c6760b1c</guid><dc:creator>sdi_kei</dc:creator><description>&lt;p&gt;I logged it thinking that PM_EVT_CONN_SEC_CONFIG_REQ may not have been called.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Logs where only pairing information for peripherals was deleted and re-paired.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Connected, handle 0x0.
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102
00&amp;gt; &amp;lt;info&amp;gt; app: Connection Security Failed. procedure: 0x0, error: 0x1006, error_src: 0x0.
00&amp;gt; &amp;lt;info&amp;gt; app: No Bonding Infomation for Peripheral.
00&amp;gt; &amp;lt;info&amp;gt; app: Disconnected. conn_handle: 0x0, reason 0x13.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Logs where only central pairing information was deleted and re-paired.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change
00&amp;gt; &amp;lt;info&amp;gt; app: Connected, handle 0x0.
00&amp;gt; &amp;lt;info&amp;gt; app: PHY update request.
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
00&amp;gt; &amp;lt;info&amp;gt; app: PM_EVT_CONN_SEC_CONFIG_REQ
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133
00&amp;gt; &amp;lt;info&amp;gt; app: Connection Security Failed. procedure: 0x1, error: 0x85, error_src: 0x0.
00&amp;gt; &amp;lt;info&amp;gt; app: No Bonding Infomation for Central.
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
00&amp;gt; &amp;lt;info&amp;gt; app: Disconnected. conn_handle: 0x0, reason 0x13.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As a result, PM_EVT_CONN_SEC_CONFIG_REQ was done only when the central pairing information was deleted.&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t know why I can&amp;#39;t re-pair.&lt;br /&gt;If anyone can figure it out, please let me know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>