<?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>About central pair issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72963/about-central-pair-issues</link><description>Hi, 
 I&amp;#39;m developing a CENTRAL using 52832 to connect a earphone. 
 1.When I enable LESC, the pair fails with the AUTH_NOT_SUPP error. Why ? 
 What I think if the earphone doesn&amp;#39;t support LESC, legacy pair will take place, pair should still complete.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Mar 2021 14:11:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72963/about-central-pair-issues" /><item><title>RE: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/301239?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 14:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9585aba0-4c9d-4cf8-9c6f-8a1ba53bd338</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, it&amp;#39;s my loss. Also, need to set the optimization level to 0. Please follow&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;this guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After that you can add a breakpoint in app_error_handler() (or where app_error_fault_handler is called), and you can find information about&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;error_info_t error_info =
{
    .line_num    = line_num,
    .p_file_name = p_file_name,
    .err_code    = error_code,
};&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/301036?ContentTypeID=1</link><pubDate>Sat, 20 Mar 2021 07:05:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:989acfee-de56-4bb0-88c3-2fb70fb2e4d1</guid><dc:creator>daoms</dc:creator><description>&lt;p&gt;The fact is when DEBUG enabled ,app_error_save_and_stop gives out nothing.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1616223710538v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/300833?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 08:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adf1732f-bc13-4997-b2d8-14f5915b82c8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What did you modify the&amp;nbsp;&lt;span&gt;ble_app_hrs_c?&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you test with&amp;nbsp;&lt;span&gt;ble_app_hrs on the peripheral device?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have the same issue on SDK17?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I recommend to define DEBUG in the project as this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38708/ble_app_uart-i-get-a-fatal-error-on-rtt-logging/149651#149651"&gt;thread &lt;/a&gt;suggested.&amp;nbsp;&lt;/span&gt;&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: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/300804?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 03:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb6926d-a1d8-4c36-b8bd-4992ccf93196</guid><dc:creator>daoms</dc:creator><description>&lt;p&gt;And actually, the peer device support LESC feature.&lt;/p&gt;
&lt;p&gt;But when CENTRAL enables LESC, app reboots or fatal error.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1616124665598v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/300802?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 02:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:393ea8f9-9616-4856-bf30-867acb769169</guid><dc:creator>daoms</dc:creator><description>&lt;p&gt;It&amp;#39;s weird, LESC will cause system reboot or ERR:Fatal.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1616121870155v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1616121881795v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/300725?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 14:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22092ce6-34e2-48df-a7c5-9cdab52d09bb</guid><dc:creator>daoms</dc:creator><description>&lt;p&gt;Thanks for your kind suggestion.&lt;/p&gt;
&lt;p&gt;I use KEIL, you mean provide the NRF_LOG_DEBUG info output from RTT log Viewer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/300705?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 14:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e78cb159-006e-4fa2-93b5-4f9ff59e0223</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it is possible, I would suggest you use the latest version of SDK. Now it is &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/index.html"&gt;17.0.2&lt;/a&gt; which fixes bugs and includes new features.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s hard to say anything without the debug log from the device. Are you able to provide it? If you are playing an example, you should be able to build with the Debug.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build_5F00_debug.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/300698?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 13:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2329269-3791-4aed-8ff2-73097b361a57</guid><dc:creator>daoms</dc:creator><description>&lt;p&gt;1.I&amp;#39;m playing SDK13.1.0 S132_4.0.2.&amp;nbsp; ble_app_hrs_c.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I detected this AUTH_NOT_SUPP error by adding a log as below.&lt;/p&gt;
&lt;p&gt;And if it is the version, what is the right way to play Nordic SKD? Always use the latest version, or just keep on a stable version?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1616071988565v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About central pair issues</title><link>https://devzone.nordicsemi.com/thread/300659?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 12:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cf88a37-ec33-4cf4-95c7-7fa457a7ee9a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]1.When I enable LESC, the pair fails with the&amp;nbsp;AUTH_NOT_SUPP error. Why ?[/quote]
&lt;p&gt;Which SDK version are you using?&lt;/p&gt;
&lt;p&gt;Are you able to provide the complete log? You could build with debug or add DEBUG into Processor Definitions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which function returns&amp;nbsp;&lt;span&gt;AUTH_NOT_SUPP error?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]2.When CENTRAL disconnects from a bounded connection and erased the bond info(earphone still keep the bond info),&amp;nbsp;it cannot make the connection again.&amp;nbsp;There will be error=0x3e immediately happens on every connect attempt.[/quote]
&lt;p&gt;&lt;span&gt;Please beware that repairing is not secure.&amp;nbsp;&lt;/span&gt;If repairing is allowed anyone can just pretend it has the same MAC address and read all the data by bonding again.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s recommended to instead remove the pairing info on both sides. This can also be done &amp;quot;remotely&amp;quot;, like with a &amp;quot;restore factory defaults&amp;quot; setting in your device, or with a button.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;For the SDK examples, you can delete all bonds by pressing board button 2 while resetting the device.&amp;nbsp;&lt;/span&gt;If you choose to allow repairing anyways, the user data should at least be removed so no one can get access to them.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The peer manager which handles pairing&amp;nbsp;requests will for&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;security reasons*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;reject new pairing requests from an already bonded peer device.&amp;nbsp;You may add the following event handling to the PM callback if you want to allow repairing:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;       case PM_EVT_CONN_SEC_CONFIG_REQ: 
       {
            pm_conn_sec_config_t config = {.allow_repairing = true};
            pm_conn_sec_config_reply(p_evt-&amp;gt;conn_handle, &amp;amp;config);
       }&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>