<?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>Max packet size when using bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103889/max-packet-size-when-using-bonding</link><description>I&amp;#39;ve been trying to implement bonding and encryption into the ble_app_uart example, and realized that the issues I&amp;#39;ve been running into were caused by the following configuration. 
 
 Once I changed the values to match the ble_app_gls example, I was able</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Oct 2023 23:59:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103889/max-packet-size-when-using-bonding" /><item><title>RE: Max packet size when using bonding</title><link>https://devzone.nordicsemi.com/thread/448724?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 23:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f0a6828-1609-4a2f-bad3-3bb57a18fad8</guid><dc:creator>kurtovic</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have figured out what has been going on. It turns out the issue is isolated to the device I&amp;#39;ve been running the nRF Connect app on (it is a very old tablet). If I&amp;nbsp;attempt the same procedure using a more up-to-date mobile device, I have no issues pairing when using the 251/247 configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max packet size when using bonding</title><link>https://devzone.nordicsemi.com/thread/448234?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 02:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b80305e3-5f6a-4890-b36e-4cc9b025ec28</guid><dc:creator>kurtovic</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My last post was a false-positive, I must have misinterpreted log output and thought bonds were succeeding with the increased values of 251/247.&lt;/p&gt;
&lt;p&gt;Here is a sample of the log output from the nrf52840 running peripheral/ble_app_gls while I try to bond via the nRF connect app.&lt;/p&gt;
&lt;p&gt;With data length = 27 and mtu = 23, I see the pairing prompt on the app.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Initialized nrf_crypto.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Initialized nrf_ble_lesc.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; app: Glucose example started.
&amp;lt;info&amp;gt; app: Fast advertising
&amp;lt;debug&amp;gt; nrf_ble_gq: Registering connection handle: 0x0000
&amp;lt;info&amp;gt; app: Connected
&amp;lt;debug&amp;gt; app: BLE_GAP_EVT_SEC_PARAMS_REQUEST
&amp;lt;info&amp;gt; app: Passkey: 872149
&amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Bonding
&amp;lt;info&amp;gt; app: Link secured. Role: 1. conn_handle: 0, Procedure: 1
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; app: BLE_GAP_EVT_AUTH_STATUS: status=0x0 bond=0x1 lv4: 0 kdist_own:0x3 kdist_peer:0x3
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Bonding data, action: Update
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Central address resolution, action: Update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With data length = 251 and mtu = 247, the app connects but never shows the pairing prompt&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Initialized nrf_crypto.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Initialized nrf_ble_lesc.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; app: Glucose example started.
&amp;lt;info&amp;gt; app: Fast advertising
&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Registering connection handle: 0x0000
&amp;lt;info&amp;gt; app: Connected
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).
&amp;lt;info&amp;gt; app: Fast advertising
&amp;lt;info&amp;gt; app: Disconnected&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The app shows error 129 (0x81) GATT INTERNAL ERROR, and 133 (0x85) GATT ERROR for the latter configuration.&lt;/p&gt;
&lt;p&gt;Edit: Updated the second log with DEBUG log level since it was missing originally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max packet size when using bonding</title><link>https://devzone.nordicsemi.com/thread/447223?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2023 10:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f897738a-64bb-4fa1-923e-bd9302605775</guid><dc:creator>kurtovic</dc:creator><description>&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;I believe I must have overlooked some other error after getting successful bonding. I&amp;#39;m able to revert back to the original values of 251/247, and everything appears to be working as expected still (even after deleting bonds).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;Sorry for the mistake&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max packet size when using bonding</title><link>https://devzone.nordicsemi.com/thread/446793?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 08:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11cb6b1e-f9ca-4781-9ed6-7b0ce59c5a22</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;I am looking into this. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>