<?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>Python example on BlueZ with nrf52840 stop connection after 30 seconds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46618/python-example-on-bluez-with-nrf52840-stop-connection-after-30-seconds</link><description>Using the BlueZ Python example in BlueZ /test/example-gatt-server with the dongle nf52840 will fail with &amp;quot; Failed to call gattsExchangeMtuReply (NRF_ERROR_INVALID_PARAM)&amp;quot; 
 and then disconnect after 30 seconds. 
 With the phone it will not connect and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 May 2019 07:17:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46618/python-example-on-bluez-with-nrf52840-stop-connection-after-30-seconds" /><item><title>RE: Python example on BlueZ with nrf52840 stop connection after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/185616?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 07:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261f3b42-eb6b-4f5a-bc4b-7722bae0f3ca</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The bug on our side is that we seem to echo back the same MTU, ie 517 bytes, in the MTU REPLY. The developers are looking into if this originates from the PC application or the firmware running on the nRF side.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python example on BlueZ with nrf52840 stop connection after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/185606?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 06:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c2e1510-aadd-4d7c-84f9-5b76a1e5ca8a</guid><dc:creator>jean-marc</dc:creator><description>&lt;p&gt;OK I think we are looking at the right place. I will have to figure out when (probably on the connection time) the BlueZ app does the MTU request or related command. Anyway thank you for your answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python example on BlueZ with nrf52840 stop connection after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/185535?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 14:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:757fd8d2-d81f-4ac5-ba0b-0d38f0ad7a12</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="jean-marc"]But where do you see that example-gatt-server ask for &amp;gt;247 bytes.[/quote]
&lt;p&gt;I used wireshark to see the MTU. I do not have enough knowledge about bluez and its inner workings in order to tell where this value is overridden. 517 is likely the default unless otherwise stated on either the device (maybe hciconfig / btmgmt can override this?) or more likely: in the bluez gatts object.&lt;/p&gt;
&lt;p&gt;[quote user="jean-marc"][/quote]&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And what about the link you give me. Does Nordic will care about a fix?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for reporting the issue back to us, and providing a way for us to recreate the scenario. I have added my .log to the internal bug report, and made the developers aware of this, and hopefully they will look into this soon.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python example on BlueZ with nrf52840 stop connection after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/185530?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 14:03:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90c5b831-d38e-43ae-9770-7226deb298b9</guid><dc:creator>jean-marc</dc:creator><description>&lt;p&gt;I agree that we are running on a problem linked to the MTU size or MTU exchange at initialisation. But where do you see that example-gatt-server ask for &amp;gt;247 bytes.&lt;/p&gt;
&lt;p&gt;I know that the bluetooth server&amp;nbsp;without any GATT exchange MTU has 517bytes MTU. I can see it with my TI BTool. Cannot see where example-gatt-server manage this case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And what about the link you give me. Does Nordic will care about a fix?&lt;/p&gt;
&lt;p&gt;Thank you so much for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python example on BlueZ with nrf52840 stop connection after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/185500?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 12:47:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff7ac13b-cc9a-4d82-abcf-f72f81acb3e4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Sorry for the long wait. I had issues getting the example-gatt-server to properly work.&lt;/p&gt;
&lt;p&gt;It seems that it works fine with the mobile app, while it fails with the error message that you post when tested with nRF Connect 2.6.2 for windows (with pca10040).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The issue is related to the buffer size of the connectivity firmware (example-gatt-server asks for &amp;gt;247 bytes) that&amp;#39;s running on the pca10040:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39496/nrf-connect-failed-to-call-gattsexchangemtureply-nrf_error_invalid_param"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39496/nrf-connect-failed-to-call-gattsexchangemtureply-nrf_error_invalid_param&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python example on BlueZ with nrf52840 stop connection after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/184697?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 12:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de1f96b8-1de4-48a1-b76c-6c905979a101</guid><dc:creator>jean-marc</dc:creator><description>&lt;p&gt;nRF connect 2.6.2&lt;/p&gt;
&lt;p&gt;Using BT Tools from TI and a Windows LE Explorer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for helping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python example on BlueZ with nrf52840 stop connection after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/184359?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 14:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c7329f5-cb40-4501-b63a-def2f5afe53b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user=""]&amp;quot;&lt;span&gt;Failed to call gattsExchangeMtuReply (NRF_ERROR_INVALID_PARAM)&amp;quot;&lt;/span&gt;[/quote]
&lt;p&gt;Are you using nRF connect, if yes; which OS are you running on?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With other means it is connecting OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What could be wrong with Nordic?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What other central devices have you used to connect to the bluez gatts example?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>