<?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>PC Repeat Pair</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76037/pc-repeat-pair</link><description>hi 
 I use nrf52833 and nRF5_SDK_17.0.2_d674dde HID keyborad demo. 
 1. I pair PC success first , then I erase_bonds ,and repeat pair my pc. with other address but PC do not pair OK. if PC delect pair information, it is ok. 
 2. the same way repeat pair</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 12 Jun 2021 12:53:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76037/pc-repeat-pair" /><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314999?ContentTypeID=1</link><pubDate>Sat, 12 Jun 2021 12:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c24338-6cd0-4813-9f7b-4b8024ad1817</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;Thanks very much.&lt;/p&gt;
&lt;p&gt;I try it OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314805?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 01:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078bc3d7-43b6-4c43-89c0-ec16eba1e890</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3817.png" /&gt;&lt;/p&gt;
&lt;p&gt;print log error：0 .&lt;/p&gt;
&lt;p&gt;maybe set OK？&lt;/p&gt;
&lt;p&gt;My application is&lt;/p&gt;
&lt;p&gt;1 .my device pair and bond&amp;nbsp; notebook （win10）。&lt;/p&gt;
&lt;p&gt;2. I use button delect my device address， then use one new address pair bond notebook。（notebook have not delet&amp;nbsp; pre device bond information&amp;nbsp; ）&lt;/p&gt;
&lt;p&gt;3. notebook can find device （new address） ，but can not pair and bond。&lt;/p&gt;
&lt;p&gt;if notebook delet pre bond information， can pair and bond new address device。&lt;/p&gt;
&lt;p&gt;so i want to change irk for notebook can repeat pair bond when do not delet pre device。&lt;/p&gt;
&lt;p&gt;i am not sure is ok？ or have other way ？&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314604?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 06:51:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc3567ca-a4db-4681-a2e6-2fc346e9ec10</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you try:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    ret_code_t error;    
    static pm_privacy_params_t myparams;
    static ble_gap_irk_t device_irk;    
    myparams.p_device_irk = &amp;amp;device_irk;

    error =pm_privacy_get(&amp;amp;myparams);
    NRF_LOG_INFO(&amp;quot;Error:%x&amp;quot;, error);

    myparams.p_device_irk-&amp;gt;irk[0]=0x02;
    myparams.p_device_irk-&amp;gt;irk[1]=0x02;
    error =pm_privacy_set(&amp;amp;myparams);
    NRF_LOG_INFO(&amp;quot;Error:%x&amp;quot;, error);

    pm_privacy_get(&amp;amp;myparams);

    advertising_start(erase_bonds);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314586?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 03:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1319f755-eaa9-40f4-927e-5959ca0002df</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2705.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I reference ,but&amp;nbsp; memcpy(myparams.p_device_irk,irk_v,16) is fail&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314355?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 07:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6448e690-5f9f-44db-842a-7d4ddd61f5be</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Maybe you can check out some of these cases:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74980/unable-to-reconnect-on-windows-if-ble-privacy-turned-on"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/74980/unable-to-reconnect-on-windows-if-ble-privacy-turned-on&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51408/how-do-change-the-value-of-irk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51408/how-do-change-the-value-of-irk&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314104?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 08:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3eb1d75-dbdf-4e9d-bde8-86e69a0369a9</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;yes，i am sure ，it is after &lt;span&gt;peer_manager_init ，and before&amp;nbsp;advertising_start。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;buffer_init();&lt;br /&gt; peer_manager_init();&lt;br /&gt; // Start execution.&lt;br /&gt; NRF_LOG_INFO(&amp;quot;HID Keyboard example started.&amp;quot;);&lt;br /&gt; timers_start();&lt;br /&gt; &lt;br /&gt; error =pm_privacy_get(&amp;amp;myparams);&lt;br /&gt; myparams.p_device_irk-&amp;gt;irk[0]=0x02;&lt;br /&gt; myparams.p_device_irk-&amp;gt;irk[1]=0x02;&lt;br /&gt; error =pm_privacy_set(&amp;amp;myparams);&lt;br /&gt; &lt;br /&gt; pm_privacy_get(&amp;amp;myparams);&lt;/p&gt;
&lt;p&gt;advertising_start(erase_bonds);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314081?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 07:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3872f11-196f-4687-93e0-192fd7beeaa1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;That error code means one of the following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;* @retval NRF_ERROR_INVALID_STATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If the Peer Manager is not initialized.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;* @retval ::NRF_ERROR_INVALID_STATE Privacy settings cannot be changed while advertising.&lt;/p&gt;
&lt;p&gt;Can you check that you are calling&amp;nbsp;&lt;span&gt;pm_privacy_set() after&amp;nbsp;peer_manager_init() but before&amp;nbsp;advertising_start()?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314055?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 01:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c443f1f6-3fbf-4b8f-8b14-8d096a711390</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;Thanks your answer。&lt;/p&gt;
&lt;p&gt;I call get and set。&amp;nbsp;&lt;/p&gt;
&lt;p&gt;error =pm_privacy_get(&amp;amp;myparams);&lt;br /&gt; myparams.p_device_irk-&amp;gt;irk[0]=0x02;&lt;br /&gt; myparams.p_device_irk-&amp;gt;irk[1]=0x02;&lt;br /&gt; error =pm_privacy_set(&amp;amp;myparams);&lt;/p&gt;
&lt;p&gt;I want to make sure change OK。 but can not be change。&lt;/p&gt;
&lt;p&gt;error =0x0E。&lt;/p&gt;
&lt;p&gt;may be give me a example how to have a new IPK？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/314025?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 18:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d4b34d-703d-4fb4-9dff-d04464266f81</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand why re-pairing does not work, but if you are able to provide an on-air sniffer log (e.g. nrf sniffer), then we might get more information about what the problem may be. You may try to comment out&amp;nbsp;pm_handler_on_pm_evt() in pm_evt_handler(), I have seen this may cause problems.&lt;/p&gt;
&lt;p&gt;Regarding changing IRK, the softdevice will by default use the preprogrammed IRK in FICR. It&amp;#39;s not possible to change this value, however you can call&amp;nbsp;pm_privacy_set() with the pm_privacy_params_t parameter holding a pointer to a new IRK. Note that you have to store this IRK in flash (for instance using&amp;nbsp;FDS), and make this call after every reset.&amp;nbsp;Also see here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47722/the-usage-of-an-irk-for-the-default-setting-and-how-to-change-an-irk-each-bonding-cycle"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47722/the-usage-of-an-irk-for-the-default-setting-and-how-to-change-an-irk-each-bonding-cycle&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/313955?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 13:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:044ae8b4-6d9e-4c2e-aeea-2312a15c9d5d</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;&amp;nbsp;can i change irk?&amp;nbsp; but i use&amp;nbsp;&lt;/p&gt;
&lt;p&gt;pm_privacy_get(&amp;amp;myparams);&lt;br /&gt; myparams.p_device_irk-&amp;gt;irk[0]=0x02;&lt;br /&gt; myparams.p_device_irk-&amp;gt;irk[1]=0x02;&lt;br /&gt; pm_privacy_set(&amp;amp;myparams);&lt;/p&gt;
&lt;p&gt;irk can not change?&lt;/p&gt;
&lt;p&gt;have same example please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC Repeat Pair</title><link>https://devzone.nordicsemi.com/thread/313773?ContentTypeID=1</link><pubDate>Sat, 05 Jun 2021 12:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b19e0b-9fc9-453f-8171-5e77f2f78e2d</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;&amp;gt; &amp;lt;info&amp;gt; app: HID Keyboard example started.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Erase bonds!&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: All peers deleted.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Connected&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 136&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Disconnected&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>