<?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>TCP connection cannot be established for a long time (about 4.5 hours) through BLE IPv6</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55829/tcp-connection-cannot-be-established-for-a-long-time-about-4-5-hours-through-ble-ipv6</link><description>Hi everybody 
 I use the nrf52 SDK (nrf5_SDK_15.2.0) to develop the IoT application of BLE. The IoT device acts as the TCP server and the BLE gateway acts as the TCP client. The BLE gateway connects the IoT device periodically and disconnects after obtaining</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2020 19:20:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55829/tcp-connection-cannot-be-established-for-a-long-time-about-4-5-hours-through-ble-ipv6" /><item><title>RE: TCP connection cannot be established for a long time (about 4.5 hours) through BLE IPv6</title><link>https://devzone.nordicsemi.com/thread/229293?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 19:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b36c731c-2210-4165-8fce-debc8f74dbc7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. I do not have a good idea to be honest, but I will try to look into it and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP connection cannot be established for a long time (about 4.5 hours) through BLE IPv6</title><link>https://devzone.nordicsemi.com/thread/228930?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 06:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a282f7-c1c1-4bde-a183-c15a5efb8ab6</guid><dc:creator>michael lee</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There are some the RPi logs as follows.&lt;/p&gt;
&lt;p&gt;&lt;img height="189" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1578982043999v1.png" width="338" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1578982134417v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The BLE CC OK means BLE PHY connected and IPv6 interface established. The NW CC NG means TCP connection is failed.&amp;nbsp; The BT interface status is printed during&amp;nbsp;&amp;nbsp;&lt;span&gt;The NW CC NG.&amp;nbsp;One more retry after NW CC NG.&amp;nbsp;Unfortunately, we don&amp;#39;t see any effective information from&amp;nbsp;the above logs.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP connection cannot be established for a long time (about 4.5 hours) through BLE IPv6</title><link>https://devzone.nordicsemi.com/thread/227194?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 08:45:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23cdc5e3-1af4-4dd6-a998-5bfc96b211bb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks to me like the nRF is connectable, but the RPi does not connect for some reason. What is the state of the RPi? Do you have logs from there? Since this is where the problem is, I suspect here is where you need to look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP connection cannot be established for a long time (about 4.5 hours) through BLE IPv6</title><link>https://devzone.nordicsemi.com/thread/226683?ContentTypeID=1</link><pubDate>Sun, 22 Dec 2019 09:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ddd94ad-8999-41c9-94ef-f0d55abc1c20</guid><dc:creator>michael lee</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;OK, I&amp;#39;ve learned that the response time will be longer during Christmas. I hope there will be some progress after the holiday in January.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP connection cannot be established for a long time (about 4.5 hours) through BLE IPv6</title><link>https://devzone.nordicsemi.com/thread/226599?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 14:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62adb294-8dbb-4662-b670-16fd65a542b5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;OK. I am a bit puzzled since this comment made me think the nRF may be in a bad state:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&amp;quot;&lt;em&gt;Further more, the log is printed at the every abnormal returns of the NS message receiving path. It is found that no log is printed during the connection cannot be established. It can be inferred that the SoftDevice does not return any message to the application layer during the connection cannot be established.&lt;/em&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;But this is actually on the gateway?&lt;/p&gt;
&lt;p&gt;Please note that there will be an increase in response time from Nordic employes during the Christmas holiday (starting now), but I will be back in the beginning of January.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP connection cannot be established for a long time (about 4.5 hours) through BLE IPv6</title><link>https://devzone.nordicsemi.com/thread/226460?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 02:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76cafe92-6f05-413c-a896-27c53d069b23</guid><dc:creator>michael lee</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi，Thank you for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here have&amp;nbsp;&lt;/span&gt;&lt;span&gt;some nRF logs of TCP&amp;nbsp;connection but I don&amp;#39;t know if it helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First it is normal logs of our TCP connect and disconnect, we can see the ICMP6 NS event clearly.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1576808524890v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Next is the failed logs,&amp;nbsp;we can see that the ICMP6 NS has not been received. The connection timed out 40 seconds after the IPv6 interface was established, and then the BLE connection was disconnected. The process lasted about 4.5 hours.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1576808897185v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Finally, the fault is automatically recovered, and the TCP connection can be completed normally again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1576809584945v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In addition, if the log output of BLE IPSP/BLE 6lowpan/lwIP stack driver is enabled, the fault may not be repeated.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP connection cannot be established for a long time (about 4.5 hours) through BLE IPv6</title><link>https://devzone.nordicsemi.com/thread/226403?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 14:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a98618b-ad1d-455f-aad5-1b120dbfaa75</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since no logs are written etc. I assume the expected code is not executing. Could it be that the application is stuck waiting for something that does not happen? Either some very long app_timer timeout, or could it be that the application enters a bad state, and stays that way until something triggers a reset? This is just vague ideas. I suggest you try to debug on the nRF side to see what is actually going on there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>