<?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>Trouble connection multiple times : Bonding, error: 133</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83017/trouble-connection-multiple-times-bonding-error-133</link><description>Hi, 
 
 I am trying to integrate the CTS (Clock Time Service) within my application. My current application is heavily based on the BLE UART from SDK 17.1 and I tried to integrate parts of the exemple cts from the same SDK. 
 I don&amp;#39;t have any trouble</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jan 2022 08:43:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83017/trouble-connection-multiple-times-bonding-error-133" /><item><title>RE: Trouble connection multiple times : Bonding, error: 133</title><link>https://devzone.nordicsemi.com/thread/345585?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 08:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:343100b6-f14b-436d-afee-e21c61e9f77b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, you might want to use bonding in your application, the easiest way to implement a working solution would be not to use bonding, which is why I suggested that.&lt;/p&gt;
&lt;p&gt;You can do bonding and I&amp;#39;d recommend doing so for security purposes, but if doing so, make sure that your application does&amp;nbsp;&lt;strong&gt;not&lt;/strong&gt; delete bonding information upon a disconnect, and make sure you don&amp;#39;t&amp;nbsp;&lt;strong&gt;forget&amp;nbsp;&lt;/strong&gt;the device when you disconnect on the central side either.&lt;/p&gt;
&lt;p&gt;I think the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_gls.html"&gt;ble_app_gls example&lt;/a&gt; project is well suited as reference for a peripheral project like this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connection multiple times : Bonding, error: 133</title><link>https://devzone.nordicsemi.com/thread/344957?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 13:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ebcdeda-593e-4e74-912c-c00965279403</guid><dc:creator>c.tessierpiart</dc:creator><description>&lt;p&gt;But don&amp;#39;t I want to be bonded for using CTS and Apple devices ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connection multiple times : Bonding, error: 133</title><link>https://devzone.nordicsemi.com/thread/344944?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 12:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddd9057f-a716-4da5-a6cf-5cc5c0fdd270</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;If you do advertising and connection like the ble_app_uart example project&amp;nbsp; does, the device shouldn&amp;#39;t pair to the application at all.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;SImon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connection multiple times : Bonding, error: 133</title><link>https://devzone.nordicsemi.com/thread/344887?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 08:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e3bf799-e876-4b78-a3d1-c297613ef200</guid><dc:creator>c.tessierpiart</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks, as the application would be used regularly, what is the way of using the bond information ? So that it is not necessary to delete the bonds on both devices ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connection multiple times : Bonding, error: 133</title><link>https://devzone.nordicsemi.com/thread/344882?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 08:37:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f975d9b-3dbc-4caa-ab0e-f525eef72b11</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Thank you for the explanation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the nRFConnect app you&amp;#39;re seeing this 133 error message in the iOS, Android, or Desktop version of nRFConnect?&lt;/p&gt;
&lt;p&gt;Since you&amp;#39;re using the peer manager and connect/disconnect multiple times, I think what&amp;#39;s happening is that you either start or complete pairing, then disconnect and one of the devices thinks they&amp;#39;re paired while the other does not. Try making sure you delete bonding information on both devices before reconnecting. On the nRF side, you can do something like calling the following delete_bonds() function as part of your disconnect procedure, and then make sure you delete bond info manually in the nRFConnect app (top right dropdown folder has an option to do so).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Clear bond information from persistent storage.
 */
static void delete_bonds(void)
{
    ret_code_t err_code;

    NRF_LOG_INFO(&amp;quot;Erase bonds.&amp;quot;);
    err_code = pm_peers_delete();
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connection multiple times : Bonding, error: 133</title><link>https://devzone.nordicsemi.com/thread/344743?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 08:45:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7013a551-5a9e-4839-8b93-c1c24d8b28b3</guid><dc:creator>c.tessierpiart</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I may have been unclear with my issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have two issues that will hopefully be solve by one thing. The major issue is when I connect and diconnect multiple times using an NRF52840 Dongle and NRF Connect. In that case I receive the 133 error message.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The minor issue is when I test things with an Apple Device. When the Application rties to read a characteristic, it return a &amp;quot;Reading not permitted&amp;quot; message. As the Application is still very young, we did not test the same issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What makes me hope that the two issues might be solved at once is that I botched a bit the merge part of the CTS and UART exemple. The former using Peer manager and the latter only doing a basic Advertising.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connection multiple times : Bonding, error: 133</title><link>https://devzone.nordicsemi.com/thread/344725?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 07:32:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6043a0db-db23-42d6-bf78-2ae8c5db6e5f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Charles&lt;/p&gt;
&lt;p&gt;We will be short on staff during the Holiday period, and delayed replies must be expected. We will be back to full staff on January 3rd. Happy holidays and happy new year!&lt;/p&gt;
&lt;p&gt;When you say you&amp;#39;re connecting multiple times, can you explain what you mean about that? Are you trying to connect to multiple devices, or do you connect, disconnect, and connect again to the same device and so on?&lt;/p&gt;
&lt;p&gt;Are you only testing with an Apple iPhone as a central? I&amp;#39;m asking because the 133 error generally is seen on Android devices. Can you provide a detailed explanation of how you cause this error to occur. You can also try using the nRFConnect application for iOS/Android to see if you can recreate the issue there, where you also can get debug information from the phone side.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>