<?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>MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90291/mqtt-tls-connect-blocking</link><description>Hi 
 
 I am currently working on a custom nrf9160 board and I have a random bug that appears to be in this function mqtt_client_connect_tls. 
 For 3min, the board consumption is 4mA and then the mqtt returns -116 error (timeout). 
 I have found in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Sep 2022 11:58:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90291/mqtt-tls-connect-blocking" /><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/387684?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 11:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72dc2a21-483f-4a11-9f5f-defbfcd6cbb4</guid><dc:creator>Hakon</dc:creator><description>[quote user="Achevillard"]Do you know the minimum version of the nrf SDK needed to support UDP with MQTT ?[/quote]
&lt;p&gt;It is not supported at all. MQTT is TCP based exclusively, so if you want to use UDP you should consider using CoAP instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/385368?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 15:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ec18fb-72ea-40b4-9c20-a06e79d7917c</guid><dc:creator>Achevillard</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for your answer. It really help our understanding of this behavior.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You said that we should use UDP if possible. Do you know the minimum version of the nrf SDK needed to support UDP with MQTT ? and for the modem firmware version ?&lt;/p&gt;
&lt;p&gt;We are currently using version 1.9.1 and I would like to know if we need to upgrade.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Antoine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/385283?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d7ba91e-2857-4fda-a611-a49c0acf607f</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Using TCP over NB-IoT is not recommended, you should rather use UDP if possible.&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;&amp;quot;There are three TLS connections in the log. 1st and 3rd TLS connection is successfully established. The 2nd TLS connection fails to timeout.&lt;/p&gt;
&lt;p&gt;The same problem is visible in all three TLS connections. The NB-IoT connection is so slow that server starts to send TCP re-transmissions during the TLS handshake.&lt;/p&gt;
&lt;p&gt;The Server Hello message contains TLS handshake protocol messages: Server Hello, Certificate, Server Key Exchange, Certificate Request, and Server Hello Done. It&amp;#39;s length is 3583 bytes and it is split to six TCP segments. In all TCP connections the whole content of Server Hello is re-transmitted in TCP level. In the failing connection the TCP re-transmission is not completed in time and timeout ends the TLS handshake.&lt;/p&gt;
&lt;p&gt;I am afraid that the only option here is to increase the TCP re-transmission interval in&amp;nbsp; server side. Constant re-transmissions are lowering the throughput and preventing the TLS handshake to complete in time.&amp;quot;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/384829?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 14:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad113a0-7e71-48ac-bd19-40fa342ac304</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/383334?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 14:28:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b4966ba-f606-4baf-a5c3-3195f4fd9070</guid><dc:creator>Achevillard</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&lt;br /&gt;here are the trace of the modem. The bug appears 24&amp;#39; after the start&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_08_2D00_25T13_2D00_34_2D00_33.144Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_08_2D00_25T13_2D00_34_2D00_33.144Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope that can help you fix this issue.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Antoine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/383002?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 07:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6710f2b2-2dfd-4264-858c-367697235787</guid><dc:creator>Achevillard</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&lt;br /&gt;I can activate UART1 as it is used as I2C for another function of my product.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a way to change the uart by default of the modem trace and set it to uart0 (the one that I use to debug my application) ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Antoine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/382600?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 09:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4316547-b352-427d-87a2-66d3d324518a</guid><dc:creator>Achevillard</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&lt;br /&gt;Sorry for the delay, the company was in vacation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As I have a custom board, I haven&amp;#39;t the modem trace activated.&lt;/p&gt;
&lt;p&gt;I will activate and send you modem trace as soon as I can.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Antoine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/379496?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 10:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:155954dd-0b5b-4c0e-b4ce-2e8f698c15d8</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Do you have a modem trace from this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/378729?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 13:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:666bd6b6-4f80-4886-a0d1-48f1e9f90090</guid><dc:creator>Achevillard</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have the modem version 1.3.2. And I got the same bug as this ticket that I found searching for an explanation for this behavior on internet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t find in the changelog of mfw 1.3.x the correction of the bug.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Antoine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT TLS connect blocking</title><link>https://devzone.nordicsemi.com/thread/378728?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 13:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:690e90bc-4f3e-4f29-8c2b-118df1e7f6f5</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I have found in the devzone that is a known bug that should have been corrected in modem version 1.3.0.[/quote]
&lt;p&gt;where did you get this from? The ticket you linked to has the bug occurring in mfw 1.3.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>