<?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 when reading a characteristic when notify enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64487/gatt-timeout-when-reading-a-characteristic-when-notify-enabled</link><description>I&amp;#39;m using nRF Connect for Windows with a PCA10040 DK to debug my nRF52832 product. Code is using SDK16 &amp;amp; S132 
 So I currently have one primary GATT service running with one write-only characteristic and one read-only characteristic. Both are working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 23 Jan 2021 01:58:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64487/gatt-timeout-when-reading-a-characteristic-when-notify-enabled" /><item><title>RE: GATT timeout when reading a characteristic when notify enabled</title><link>https://devzone.nordicsemi.com/thread/290842?ContentTypeID=1</link><pubDate>Sat, 23 Jan 2021 01:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03bd0bef-b714-43df-9a2f-e19b62bc94ff</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Just wondering if you could help me understand how/why adding an event handler for a &amp;#39;missing attribute&amp;#39; solves the problem you see when &amp;#39;reading an existing characteristic&amp;#39;?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;RMV&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT timeout when reading a characteristic when notify enabled</title><link>https://devzone.nordicsemi.com/thread/266180?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 10:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cd352ae-0a23-40f6-9899-271f85b3ab80</guid><dc:creator>Nick_RA</dc:creator><description>&lt;p&gt;No, the characteristics were all fine. I didn&amp;#39;t bother wasting time with a DK because logic dictates it couldn&amp;#39;t be related to hardware.&lt;/p&gt;
&lt;p&gt;After some hours going through my code and comparing it to the Blinky example I found that I did not have a BLE handler for BLE_GATTS_EVT_SYS_ATTR_MISSING. Added this and it now works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT timeout when reading a characteristic when notify enabled</title><link>https://devzone.nordicsemi.com/thread/265107?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 12:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1202862-c4b6-4599-a5c9-ffb66d085579</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply,&lt;/p&gt;
&lt;p&gt;Have you had any progress with this issue? It would be good to try it on a DK as well just to be sure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I agree that it probably is something wrong with the configuration of the characteristic. I suggest you go through &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial" rel="noopener noreferrer" target="_blank"&gt;this&lt;/a&gt; and see that everything is set up correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT timeout when reading a characteristic when notify enabled</title><link>https://devzone.nordicsemi.com/thread/263482?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 15:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a190cccb-e813-46b8-97ff-04339d4e4a5c</guid><dc:creator>Nick_RA</dc:creator><description>&lt;p&gt;OK let me clarify my setup:&lt;/p&gt;
&lt;p&gt;Yes this is a custom board. I haven&amp;#39;t tried my code on a DK but there shouldn&amp;#39;t be any difference to the BLE side, just the I/O. Also, the blinky example runs just fine on my custom board so I&amp;#39;d expect the same set of results running my code on the DK.&lt;/p&gt;
&lt;p&gt;I do also have 2 x PCA10040 DK boards. One is set up to work with NRF Connect, the other is set up for the Wireshark sniffer.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s definitely because there&amp;#39;s something screwy with the Client Characteristic Configuration because it&amp;#39;s returning an &amp;quot;unknown handle&amp;quot; . Is that set up as part of the characteristic add process? I can&amp;#39;t see anything in the Blinky code that does anything like that.&lt;/p&gt;
&lt;p&gt;Edit: Sorry forgot to add the only mods to the code above is i) I removed the debug lines for clarity and ii) I just changed the name to &amp;quot;mysvc&amp;quot; as this is a public forum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT timeout when reading a characteristic when notify enabled</title><link>https://devzone.nordicsemi.com/thread/263467?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 13:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0414385c-7924-4d6d-bcb2-ff77be136a81</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;What other modifications have you done to the code except for the one mention above?&amp;nbsp;&lt;/p&gt;
[quote user=""]PCA10040 DK to debug my&amp;nbsp;nRF52832 product.[/quote]
&lt;p&gt;Are you&amp;nbsp;using a custom board? Have you tested with a DK?&amp;nbsp;&lt;/p&gt;
[quote user="Nick_RA"]Here&amp;#39;s a Wireshark trace which may be of some help&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gatt-timeout.pcapng"&gt;gatt timeout.pcapng&lt;/a&gt;[/quote]
&lt;p&gt;I will have a look.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT timeout when reading a characteristic when notify enabled</title><link>https://devzone.nordicsemi.com/thread/263289?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 15:23:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c4bb2b3-f0bf-44a7-a782-226b3c2ebff3</guid><dc:creator>Nick_RA</dc:creator><description>&lt;p&gt;Hi thanks for replying. No, nothing gets thrown up during debug, also I can confirm that I checked err_code after the function calls above and they return zero (success).&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a Wireshark trace which may be of some help&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gatt-timeout.pcapng"&gt;devzone.nordicsemi.com/.../gatt-timeout.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT timeout when reading a characteristic when notify enabled</title><link>https://devzone.nordicsemi.com/thread/263252?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 13:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63e3b1a-629b-4dc9-b777-c335a19d03a4</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try to debug your application and see if you get any error codes when this happens?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>