<?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>ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96053/esp32-gateway-disconnects-from-end-devices-nordic-after-30-seconds</link><description>I have problem with BLE connection. I developing a BLE Gatt client application with ESP32. There is a nordic processor in my sensor (end device). 
 Notify is not coming to ESP32. I can read and write without notify it, but when I need to collect data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Feb 2023 08:24:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96053/esp32-gateway-disconnects-from-end-devices-nordic-after-30-seconds" /><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/408752?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 08:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d223a4-0c84-4f2d-9196-3ec8208e100e</guid><dc:creator>Emil Lenngren</dc:creator><description>&lt;p&gt;Per the GAP specification, section 15.2, both LE Centrals and LE Peripherals must support the GATT Server role. Therefore, it&amp;#39;s not allowed for a BLE device to ignore the Exchange MTU request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/408746?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 07:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e65bc53c-a20a-4dc0-a655-1666ccb8a123</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I understand, but then you must find a way to make the ESP respond to the MTU request.&amp;nbsp;I suggest you reach out to&amp;nbsp;the manufacturer to ask if there is a way to do this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/408745?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 07:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27fc5424-e4a2-4ab1-9ad8-959ce7483731</guid><dc:creator>erifat</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Our nordic nRF devices were placed in different regions. We can&amp;#39;t send update via dfu without solving bluetooth problem.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any other suggestions for solving the problem?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/408194?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 08:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:989d8629-e5bf-4706-b38b-10f72d1618dc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can change your nRF FW to not send the MTU request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/408192?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 08:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3300353-9f29-4a92-81cd-f31fd9a73d76</guid><dc:creator>erifat</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The ESP32 cannot respond in client mode.It&amp;#39;s not in the source code.&lt;/p&gt;
&lt;p&gt;I shared the MTU request immediately after the nordic device was found on the ESP32 side. but it didn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;What is your suggestion in this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/408177?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 07:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bffb304-d5d9-4f7a-84b6-d7176a7c6ac8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Even if the peripheral is&amp;nbsp;primarily acting as a GATT server it can still initiate the MTU request as long as the connected peer does not do it first. The issue here is that the ESP does not respond to the request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/408170?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 06:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb749532-428a-4ed2-8a60-cca749c8b085</guid><dc:creator>erifat</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Nordic(Slave-Server) device is used as server and ESP(Master-Client) device is used as client.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1675664334706v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As can be seen in the image, the Nordic device sends a request while it should send a response under normal conditions.&lt;/p&gt;
&lt;p&gt;Why might the Nordic device be sending the request even though it is set as the server?&lt;/p&gt;
&lt;p&gt;Nordic (Slave - Server)&amp;nbsp; ESP32 (Master - Client)&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1675664569308v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/407214?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 07:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cce01b6-374f-4bbd-b4d7-3f0fb790bd4b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The ESP does not respond to the nRF&amp;#39;s MTU request according to the sniffer trace which would explain the timeout.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1675149651610v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/407211?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 07:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3029393-d0d6-4432-93b3-11613a369bce</guid><dc:creator>erifat</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I saved the data with wireshark. I&amp;#39;ve looked through the data but still can&amp;#39;t see the problem.&lt;/p&gt;
&lt;p&gt;(ESP32 = 98:cd:ac:73:4d:d6) (Nordic : c0:ba:42:19:22:22 )&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ESP32_2D00_Nordic.pcapng"&gt;devzone.nordicsemi.com/.../ESP32_2D00_Nordic.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:129px;max-height:129px;max-width:642px;" height="115" src="https://devzone.nordicsemi.com/resized-image/__size/1284x258/__key/communityserver-discussions-components-files/4/pastedimage1675149873922v2.png" width="642" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This image, could that be the cause of the error?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What are your suggestions about the problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/406794?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 08:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd4d2aed-d6f5-4e3d-8f99-05f961c2dc84</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;OK, the fact that you don&amp;#39;t see the disconnects with Windows and iOS indicates the problem is on the ESP.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you trying to receive&amp;nbsp;notifications or indications (ref.&amp;nbsp;&lt;a title="GATTS Handle Value Notification" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_t_t_s___h_v_n___m_s_c.html?cp=4_7_3_1_2_4_3_5"&gt;GATTS Handle Value Notification&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a title="GATTS Handle Value Indication" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_t_t_s___h_v_i___m_s_c.html?cp=4_7_3_1_2_4_3_2"&gt;GATTS Handle Value Indication&lt;/a&gt;) when you experience the timeout?&amp;nbsp;Notice the indication require acknowledgement from the client to avoid GATT timeouts:&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1674809085411v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;A sniffer capture (&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le&lt;/a&gt;) would be helpful if we need to troubleshoot this further.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/406768?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 05:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf2beaf-b47f-4151-b571-8e635bc2100c</guid><dc:creator>erifat</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I use custom apps on Windows and iOS, but they don&amp;#39;t make the disconnection.&lt;span&gt;&amp;nbsp;I use SDK 16. The system is constantly experiencing bluetooth drops(ESP32).&amp;nbsp;Do you have any suggestions for solving the problem?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESP32 (Gateway) disconnects from end devices(Nordic) after 30 seconds</title><link>https://devzone.nordicsemi.com/thread/406618?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 10:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37bb926d-cfc0-46b4-974c-906b76482823</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The ESP log shows that the shows that the connection was terminated by the nRF (disconnect reason 19 corresponds to&amp;nbsp;BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION).&amp;nbsp; I could be caused by&amp;nbsp;GATT procedure timeout.&amp;nbsp;This&amp;nbsp;timeout is 30 seconds and&amp;nbsp;is&amp;nbsp;raised if a GATT&amp;nbsp;procedure&amp;nbsp;is not completed in time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which SDK is your Sensor FW based on? Also, do you get the same disconnect if you connect to your sensor with the nRF connect app on android or iOS?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>