<?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>SDK16.0 NUS service sometimes connecting timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61948/sdk16-0-nus-service-sometimes-connecting-timeout</link><description>Hi, 
 I am using SDK16.0(ble_app_uart) program to sending dates between the phone and board.When I use my iphone xs max,it works on well.But it come out some faults when it connecting iphone 6s.Plese tell me how can I change my code to fix it.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 May 2020 16:56:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61948/sdk16-0-nus-service-sometimes-connecting-timeout" /><item><title>RE: SDK16.0 NUS service sometimes connecting timeout</title><link>https://devzone.nordicsemi.com/thread/252475?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 16:56:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef80f358-47bb-4863-8567-0a750e61e8f8</guid><dc:creator>roy yao</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Thanks again for helping me find the problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;After searching the same questions in community,I have solved problem.I change the external crystal oscillator to internal&amp;nbsp;&lt;span&gt;oscillator.It works on well now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; Here is my change&amp;nbsp;code:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;NRF_SDH_CLOCK_LF_SRC = &lt;span&gt;0&lt;/span&gt;&lt;span&gt;
NRF_SDH_CLOCK_LF_RC_CTIV &lt;/span&gt;= &lt;span&gt;16&lt;/span&gt;    &lt;span&gt;//&lt;/span&gt;&lt;span&gt;4S&lt;/span&gt;&lt;span&gt;
NRF_SDH_CLOCK_LF_RC_TEMP_CTIV &lt;/span&gt;= &lt;span&gt;2&lt;/span&gt;&lt;span&gt;
NRF_SDH_CLOCK_LF_ACCURACY &lt;/span&gt;= &lt;span&gt;1&lt;/span&gt;  &lt;span&gt;//&lt;/span&gt;&lt;span&gt;500ppm&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;The thing that really confuses me is there have been so many same problems happen,why nordic did&amp;#39;t change it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK16.0 NUS service sometimes connecting timeout</title><link>https://devzone.nordicsemi.com/thread/252445?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 14:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b935f1f-2841-4f7a-b907-e42c68cff1b0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, so the disconnect reason 0x08 is&amp;nbsp;BLE_HCI_CONNECTION_TIMEOUT (listed in ble_hci.h).&lt;/p&gt;
&lt;p&gt;What version of the sniffer did you use? My Wireshark wasn&amp;#39;t able to decode the packets, so it looks like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7f23f8861fa544cca4ac4f35e3974c1c/pastedimage1590761085527v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you please try the last version of the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE" rel="noopener noreferrer" target="_blank"&gt;nRF Sniffer&lt;/a&gt;? I am sorry that I have to ask you this. Does it open normally if you open it? I haven&amp;#39;t seen this before.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So can you please try to capture with the latest sniffer version? And while you&amp;#39;re at it, can you capture a sniffer trace with the phone that works without any issues as well?&lt;/p&gt;
&lt;p&gt;Just in case I can&amp;#39;t open the next trace either, can you check what happens about 30 seconds before the nRF stops responding in the sniffer trace? That would be at the timestamp 80 seconds, give or take. What happens there? Are there any update requests of some sort from either of the devices?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK16.0 NUS service sometimes connecting timeout</title><link>https://devzone.nordicsemi.com/thread/252443?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 14:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65348de3-e4ec-42a5-a1da-c26970cff989</guid><dc:creator>roy yao</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;After i check the error code,disconnect reason 0x08 is&amp;nbsp;BLE_HCI_CONNECTION_TIMEOUT.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span&gt; It happens randomly when i use iphone 6s connect to board.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK16.0 NUS service sometimes connecting timeout</title><link>https://devzone.nordicsemi.com/thread/252439?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 13:53:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09dfcff4-d9cb-4315-9c80-720704e98bfd</guid><dc:creator>roy yao</dc:creator><description>&lt;p&gt;Hi,Edvin&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thanks for your help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; This is&amp;nbsp;the print disconnect error code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/12121212.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; And this is sniffer message.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fault-message.pcapng"&gt;devzone.nordicsemi.com/.../fault-message.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK16.0 NUS service sometimes connecting timeout</title><link>https://devzone.nordicsemi.com/thread/252432?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 13:22:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3181ddf7-5f4c-4caa-a7bc-5bc019111cfc</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you check the disconnect reason in your&amp;nbsp;BLE_GAP_EVT_DISCONNECTED event?&lt;/p&gt;
&lt;p&gt;You can check it like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;            NRF_LOG_INFO(&amp;quot;Disconnected, reason 0x%x.&amp;quot;,
                         p_gap_evt-&amp;gt;params.disconnected.reason);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is the log with the 6s from the disconnected event that you got on the phone? That is, does the log say &amp;quot;Disconnected&amp;quot; when disconnects from the phone?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you send the sniffer trace? Save it as a .pcapng file (default format) and upload it here on DevZone.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK16.0 NUS service sometimes connecting timeout</title><link>https://devzone.nordicsemi.com/thread/252384?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 11:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ac1ebde-8eda-4dae-b677-9ab87ebfbaf3</guid><dc:creator>roy yao</dc:creator><description>&lt;p&gt;I use sniffer to catch some package,after GATT primary service declaration,disconnect&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1212.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>