<?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>MTU size is not getting updated with Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121434/mtu-size-is-not-getting-updated-with-android</link><description>I have a custom hardware running on nrf52840 and using ncs 2.6.1. I have implemented a custom authentication flow with customer characteristic along with the BLE bonding. I have a custom app for iOS and Android both. I tested my device pairing and bonding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 May 2025 12:37:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121434/mtu-size-is-not-getting-updated-with-android" /><item><title>RE: MTU size is not getting updated with Android</title><link>https://devzone.nordicsemi.com/thread/535990?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 12:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c6504e8-1aa1-4cbb-a2f2-92269633ef66</guid><dc:creator>Ankit_chauhan</dc:creator><description>&lt;p&gt;I will check the sniffer logs.&lt;br /&gt;Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size is not getting updated with Android</title><link>https://devzone.nordicsemi.com/thread/535987?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 12:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5875b5e9-ec8e-47dc-88a2-b6f4f93a1c5f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ankit,&amp;nbsp;&lt;br /&gt;Please try to get a &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-6-bluetooth-le-sniffer/"&gt;sniffer trace.&amp;nbsp;&lt;/a&gt;&lt;br /&gt;Is the issue reproducible now. If it does, please describe the process.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size is not getting updated with Android</title><link>https://devzone.nordicsemi.com/thread/535946?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 10:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7286fe06-7e7f-4b19-baf3-bd2f5ba7d09c</guid><dc:creator>Ankit_chauhan</dc:creator><description>&lt;p&gt;Sorry for the late reply. After some debugging it looks like there is no any issue related to the MTU as I have tested the same with nRF connect app and try to read and write larger data than the MTU and it worked.&lt;br /&gt;&lt;br /&gt;So it looks like there must be some issue with the Android OS approach of handling pairing. Because when iOS app initiate the pairing process, my Zephyr code will receive pairing_accept callback and&amp;nbsp;if I return success then only the iOS app shows the pairing pop-up else it will show nothing. While in case of Android, it display the pairing pop-up first and then pairing_accept calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size is not getting updated with Android</title><link>https://devzone.nordicsemi.com/thread/535354?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 13:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f06f275-712a-4135-ac11-ac936ece9efe</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I suspect that the Android phone was paired with your device before. You may want to try erase everything&amp;nbsp; (chip erase or click on the double arrow when you flash) to make sure the device delete all bond before testing.&amp;nbsp;&lt;br /&gt;If you want to allow a device to re-pair at security level 2 , you would need to enable this:&amp;nbsp;CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size is not getting updated with Android</title><link>https://devzone.nordicsemi.com/thread/535335?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 12:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e34ee124-cf56-4596-8bbd-00b3f54dcdb4</guid><dc:creator>Ankit_chauhan</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for the reply.&lt;br /&gt;&lt;br /&gt;I used bonding with&amp;nbsp;&lt;span&gt;bt_conn_set_security&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;conn&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;BT_SECURITY_L2&lt;/span&gt;&lt;span&gt;); with below authentication callbacks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_conn_auth_cb&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;conn_auth_callbacks&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;cancel&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;auth_cancel&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;br /&gt;&lt;br /&gt;With this configuration, the App will have a pop-up to pair or cancel after the connection. The disconnect happens from the App side, as you see the reason 19.&lt;br /&gt;&lt;br /&gt;The flow of operation is designed in such a way that if the App does not get the data from the sensor as part of authentication, it will disconnect the sensor and declare a failure.&lt;br /&gt;&lt;br /&gt;The app tries to read the characteristic data, but it does not fit into the MTU requirement; hence, it tries to update the MTU, but somehow the request is not reaching the sensor.&lt;br /&gt;&lt;br /&gt;Meanwhile, I will get some logs from the sniffer tool to understand the issue more.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size is not getting updated with Android</title><link>https://devzone.nordicsemi.com/thread/535333?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 12:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8ef00ee-baaa-4bd5-a80f-1dd9acbdb6c8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ankit,&amp;nbsp;&lt;br /&gt;Error 4 you got () means&amp;nbsp; &lt;br /&gt;&lt;br /&gt;BT_SECURITY_ERR_AUTH_REQUIREMENT&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;/** The requested security level could not be reached. */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Which security level did you request from the peripheral ? Or did you request pairing from the central ?&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;We would need to have a &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-6-bluetooth-le-sniffer/"&gt;sniffer trace&lt;/a&gt; to see what exactly happens between the 2 devices.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;I don&amp;#39;t see a reason why MTU updating would cause pairing to fail.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>