<?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>How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111753/how-to-deal-with-gatt-timeout</link><description>I&amp;#39;m develping application on nrf52832 with nrf5SDK v17.0. 
 The connection interval is set to 12 to 16.And the conn_sup_timeout is set to 1000. 
 The condition happened frequently in my application that the connection is still display connected but the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2024 12:08:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111753/how-to-deal-with-gatt-timeout" /><item><title>RE: How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/488313?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 12:08:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5ec37f6-1f87-42bf-bc3c-65124541cd9e</guid><dc:creator>Edvin</dc:creator><description>&lt;ol&gt;
&lt;li&gt;That is the log when you changed to NRF_CLOCK_LF_SRC_XTAL?&lt;/li&gt;
&lt;li&gt;What phone are you using?&lt;/li&gt;
&lt;li&gt;Have you tried another type of phone? Does it look the same?&lt;/li&gt;
&lt;li&gt;Can you please try to capture a sniffer trace of the connection and upload the trace (.pcapng file)? You can use the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer for Bluetooth LE&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;And what does it look like when you&amp;nbsp;run the same application on a DK?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/488210?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 04:13:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd0d2c7a-5bd6-4783-8de7-5d48b0a78b7c</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;And I get such log when my phone connecting.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_AE5FE14FFE5647725F00_20240611121028.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/488209?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 04:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cfaf658-0db5-48b3-94f7-90a2281bc998</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;Hi,&lt;span class="yd-translate-container"&gt;&lt;span&gt; &lt;/span&gt;&lt;span class="yd-wrapper-inline yd-highlight"&gt; 你好,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t try to run in a DK.&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;我没想穿DK跑步。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m contacting with&amp;nbsp;agency to get the datasheet for that crystal.&lt;/p&gt;
&lt;p&gt;&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;我正在联系代理商拿到那块水晶的数据表。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My LFCLK settings as fllow:&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;我的LFCLK设置如下:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7026._5563B783_.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Finally,when I set&amp;nbsp;&lt;span&gt;NRF_SDH_CLOCK_LF_SRC 2,What should I do and how can I judge whether the clock may be the issue?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/488040?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 08:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:785bf49c-0f6d-4c13-bf36-7d1e7c7f75ee</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Have you tried running the application on a DK yet, to see if you get the same issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On your custom board, do you have an LFXTAL, or do you use the RC Oscillator?&lt;/p&gt;
&lt;p&gt;If you are using an XTAL, do you have the datasheet for that crystal?&lt;/p&gt;
&lt;p&gt;And whether you are using an XTAL or RC Oscillator, what are your LFCLK settings in sdk_config:&lt;/p&gt;
&lt;p&gt;NRF_SDH_CLOCK_LF_SRC&lt;br /&gt;NRF_SDH_CLOCK_LF_RC_CTIV&lt;br /&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV&lt;br /&gt;NRF_SDH_CLOCK_LF_ACCURACY&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And finally, can you, for debugging purposes, try to use the LF_SRC_SYNTH by setting:&lt;/p&gt;
&lt;p&gt;NRF_SDH_CLOCK_LF_SRC 2&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t use this for production, because it will significantly increase the current consumption, but it will let us know whether the clock may be the issue right now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/487610?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 05:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0264edfc-c6de-444e-9afd-7d59efc05c90</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;Hi,&lt;span class="yd-translate-container"&gt;&lt;span&gt; &lt;/span&gt;&lt;span class="yd-wrapper-inline yd-highlight"&gt; 你好,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have issues when the nRF is the peripheral.It connect with my mobile phone and check log with nRF Connect.The log as follow.&lt;br /&gt;&lt;span class="yd-translate-container"&gt;&lt;span&gt; &lt;/span&gt;&lt;span class="yd-wrapper-inline yd-highlight"&gt; 我错了&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/mmexport1717648816875.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Sometimes,the error code is 0x22(LMP Response Timeout).&lt;/p&gt;
&lt;p&gt;Either 0x08 or 0x22 happened,the data will not be send to periphral until the next Connection parameters updated&amp;hellip;&amp;hellip; occured.(The screenshot is return to nrmal quickly).&lt;/p&gt;
&lt;p&gt;But I still want to repair the question automatically in peripheral when it happened.Otherwise,the data maybe losed.&lt;/p&gt;
&lt;p&gt;How can I change the code to arrive it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/487492?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 11:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e298a278-9960-4d96-b3a8-55c00928cf75</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;By &amp;quot;clean machine&amp;quot; I meant &amp;quot;another machine&amp;quot;. But you don&amp;#39;t need another machine. Just unzip the folder that you uploaded to me in a new location, and see if you can build it from there.&amp;nbsp;&lt;/p&gt;
[quote user="Chaoyue Ying"]&lt;p&gt;About the project,first I build it for nrf52832 but I get information from screenshot that you build it in nrf52840.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Oh, sorry. My mistake. Yes. The pca10040 project builds fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the connection that you are having issues with, is that when the nRF is the peripheral or central? (I see that it both advertises and scans). And what is it connected to? Your mobile phone? I was able to program it, and connect to it using nRF Connect for Desktop -&amp;gt; Bluetooth Low Energy&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/pastedimage1717585319886v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And I can send data from the central to the peripheral.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/487401?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 02:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68599963-1785-402c-a32e-b5e050e36f45</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;Hello,&lt;span class="yd-translate-container"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry that I not save any screenshots.So I cannot provide.&lt;/p&gt;
&lt;p&gt;I try to send data to my board but the log is not happened just like the nus service not be connected.I add log out in nus callback function,if data send by central,the log will output some informations about it.&lt;/p&gt;
&lt;p&gt;I do not use the DK board,So I also not try another DK.&lt;/p&gt;
&lt;p&gt;About the project,first I build it for nrf52832 but I get information from screenshot that you build it in nrf52840.&lt;/p&gt;
&lt;p&gt;Then,these errors seem that the include paths did not work which included in my package.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how the machine can be called a clean mechine.Can you tell me what should I do to get a clean machine to build and run my application?&lt;/p&gt;
&lt;p&gt;&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deal with GATT TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/487245?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 08:46:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1850346-2fb5-4a0e-871a-c6d796e87d56</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;p&gt;The condition happened frequently in my application that the connection is still display connected but the nus service is not avaliable.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Can you please share some screenshots of what this looks like?&lt;/p&gt;
&lt;p&gt;Have you tried connecting to the device using another DK running nRF Connect for Desktop -&amp;gt; Bluetooth Low Energy?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to build your project, but I got these errors:&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/pastedimage1717490726798v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(I also fixed a bunch of missing header files before this).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I could fix these errors, but I suspect that if I do, I will not be running the same application that you are. Are you able to build and run the application that you uploaded on a clean machine?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>