<?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>GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76427/gatt-timeout-on-writing-to-buttonless-dfu-characteristic</link><description>Hello Devzone, 
 We update our peripheral device(nrf52) with our gateway(nrf52840, central) using the DFU protocol. We have this working and the DFU update is successful when the device actually restarts to the bootloader. 
 However, when we start the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Aug 2021 10:07:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76427/gatt-timeout-on-writing-to-buttonless-dfu-characteristic" /><item><title>RE: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/326701?ContentTypeID=1</link><pubDate>Thu, 26 Aug 2021 10:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f72fbe-fb66-455e-8793-8f05fb8b3c40</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;&lt;em&gt;How does your devices implement these security modes?&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;We use nrf52 devices on either side of the connection. The connection works fine, the problem only occurs when we try to update the devices.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Sniffing using the SC LTK works for the most part. I&amp;#39;ve tested the devices where we got the GATT Timeouts, but I cant seem to recreate the problem. Leaving this issue resolved until it reoccurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/326083?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 06:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b72b2e5-37f2-4980-bd68-133e107c9740</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry that I haven&amp;#39;t gotten back to you until now. Have you still not been able to get a sniffer trace of the timeout occurring? If the TIMEOUT only occurs on one of the security modes, it seems like one of the devices have not implemented support for Security level 4:&amp;nbsp;&lt;strong&gt;LESC&amp;nbsp;MITM protected encrypted link using a 128-bit strength encryption key required.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;How does your devices implement these security modes?&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: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/325961?ContentTypeID=1</link><pubDate>Fri, 20 Aug 2021 12:24:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2283cb87-d2eb-4eed-a4c0-f205248f33c8</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;With nrf Sniffer version 4.0 we can use the SC LTK to sniff the connections&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/321277?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 09:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2915913-dc70-4a3a-aacf-a0226e5f388b</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;I have tried to recreate the GATT Timeout while the two devices are in debug mode with LESC level 2 and Debug Keys enabled. The GATT Timeout does not happen in the 20 times I&amp;#39;ve started the DFU.&lt;/p&gt;
&lt;p&gt;It still does happen on our Release devices using LESC level 4. I don&amp;#39;t see another way to pinpoint the problem with the GATT Timeout. Do you have any ideas?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/319009?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 13:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0117ab52-fa33-460f-bccf-733bddb6fea7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi, Simon is on summer vacation and hence the delay in response. Good to know that you are now able to sniff the packets during LESC connected peers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/318980?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 12:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c914dbd4-8a80-4d41-a2ee-7c7d37256f0c</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;I can indeed sniff LESC Just-Works connections with the nrf-sniffer and wireshark.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37078/lesc_debug_mode-define-in-ble_app_multirole_lesc-nrf5-sdk-15-0-0"&gt;Daniel&amp;#39;s method&lt;/a&gt; works perfectly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/318481?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 14:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34c5b45d-bc55-4a25-80fb-f6e02c31f6c6</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;Do you know how to enable this debugging mode?&lt;br /&gt;We are currently using LESC with OOB.&lt;/p&gt;
&lt;p&gt;My best guess is setting the mode to just-works, but where do I put/set the public/private debug keys?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/316631?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 08:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0f25c5f-3267-4d9d-bb1b-7e6db6b8ee62</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for answering my initial questions!&lt;/p&gt;
&lt;p&gt;Sniffing a connection between paired devices is possible, and it&amp;#39;s described how to that for connections that use LESC is described at the bottom of the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/action_paired.html"&gt;Common Sniffing Actions guide here&lt;/a&gt;.&amp;nbsp;&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: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/316521?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 14:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca52e17d-23b5-4c42-a5c5-d2f6458aa2fa</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;Thank you for your answer Simon.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which of the devices is it that times out?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Our gateway receives the timeout&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What happens in the log of the other device when this timeout occurs?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both sides disconnect, no special error.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you could provide a sniffer trace of the devices in the DFU that would be great so we could see exactly what is going on over the air. You can use any nRF52 family DK as a sniffer with our &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Fintro.html"&gt;nRFSniffer &lt;/a&gt;firmware that&amp;#39;s to be used with Wireshark.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That will be hard. We use LESC encryption on our connections. Decrypting LESC is not supported with the current plugin, or is it?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do you have any log between your devices that point to the notification subscribtion doesn&amp;#39;t go through? To the best of my knowledge a delay like this shouldn&amp;#39;t be required. HAve you tried implementing it to see if it decreases the chances of this timeout occurring&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I will set up another test to capture both logs and try adding the delay after the write response which enabled the indications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Timeout on writing to buttonless dfu characteristic</title><link>https://devzone.nordicsemi.com/thread/315842?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 11:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:514692e4-763e-4cea-9aad-68e3ee0399d5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Which of the devices is it that times out? What happens in the log of the other device when this timeout occurs? If you could provide a sniffer trace of the devices in the DFU that would be great so we could see exactly what is going on over the air. You can use any nRF52 family DK as a sniffer with our &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Fintro.html"&gt;nRFSniffer &lt;/a&gt;firmware that&amp;#39;s to be used with Wireshark.&lt;/p&gt;
&lt;p&gt;Do you have any log between your devices that point to the notification subscribtion doesn&amp;#39;t go through? To the best of my knowledge a delay like this shouldn&amp;#39;t be required. HAve you tried implementing it to see if it decreases the chances of this timeout occurring?&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>