<?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>Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107743/diagnosing-aws-iot-communication-failure</link><description>Hello, 
 I&amp;#39;m tinkering (motion detection mostly) with a Thingy:91 unit (I don&amp;#39;t have a DK board), and in general it works fine reporting sensory data to AWS IoT Core. 
 Last night it some point the communication suddenly stopped. Today I opened the nRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Oct 2025 04:57:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107743/diagnosing-aws-iot-communication-failure" /><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/552571?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2025 04:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bd2ca4e-3eaa-4765-9c35-10159ac32317</guid><dc:creator>Emily Grace</dc:creator><description>&lt;p&gt;Diagnosing AWS IoT communication failures often involves checking device connectivity, message broker configurations, and authentication policies. Network latency and MQTT topic mismatches can also be culprits. In complex deployments like &lt;a href="https://packnbag.com.au/collections/tower-boxes"&gt;Tower Boxes Melbourne&lt;/a&gt;, maintaining clear monitoring dashboards and structured logging ensures quick isolation of issues and smoother IoT performance across all connected systems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/475478?ContentTypeID=1</link><pubDate>Sat, 23 Mar 2024 06:38:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8255dc7d-d653-4f31-b1be-8660e35cfd4c</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; The actual TLS record size is not visible in the log. Is customer able to check and reconfigure the TLS record size server is using.&lt;/p&gt;
&lt;p&gt;Searching for that issue &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74251/nrf9160-serial-interface-with-https-support-for-large-post/321185"&gt;other tickets&lt;/a&gt; already mentions the solution for this years ago. AFAIK mbedtls supports that extension so it may be more a question to configure the modem build to use it in a matching way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/470669?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 10:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4db477a-b3a9-4e20-a8b1-faef7860be9f</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Comment from modem team regarding the modem trace;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;Attached picture points to a problem in DNS query but modem log doesn’t reveal any issues in DNS.&lt;/p&gt;
&lt;p&gt;However, there seem to be problems in TLS data transmission. In all TLS connections the device (modem) closes TLS connection with error cause “Too long SSL fragment has been received from a network” meaning that server has sent a TLS packet that does not fit to devices TLS buffer. For the TLS buffer sizes there is following limitation mentioned in modem release notes:&lt;br /&gt;Limitations&lt;br /&gt;- TLS/DTLS Secure socket buffer size is 2kB&lt;/p&gt;
&lt;p&gt;The actual TLS record size is not visible in the log. Is customer able to check and reconfigure the TLS record size server is using.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/469312?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 16:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45615fd5-5f95-4b92-bd4a-17123b7448f4</guid><dc:creator>Hakon</dc:creator><description>[quote user="Ivan Popov"]Here, in the archive there are some traces from today, including the required .bin file:[/quote]
&lt;p&gt;Thanks, I will take a look.&lt;/p&gt;
[quote user="Ivan Popov"]Do you think it might give me some hints about what&amp;#39;s going on if I go and compare both samples?[/quote]
&lt;p&gt;They use entirely different libraries, so I doubt it is very useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/468833?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2024 13:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e66b162-5044-48e4-901f-7abfb1703411</guid><dc:creator>Ivan Popov</dc:creator><description>&lt;p&gt;Here, in the archive there are some traces from today, including the required .bin file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/aws_2D00_iot_2D00_traces_2D00_2024_2D00_02.14.zip"&gt;devzone.nordicsemi.com/.../aws_2D00_iot_2D00_traces_2D00_2024_2D00_02.14.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Meanwhile, as I was browsing the code samples related to AWS I noticed that there is a new (at least to me) sample related to the subject matter:&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/Screenshot-from-2024_2D00_02_2D00_14-15_2D00_35_2D00_27.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The one in the Zephyr samples tree. Do you think it might give me some hints about what&amp;#39;s going on if I go and compare both samples?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/467326?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 09:56:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b13c749-e2a8-4f2a-90f8-650cb58c9229</guid><dc:creator>Hakon</dc:creator><description>[quote user="Ivan Popov"]I can add another trace file but from that I&amp;#39;m seeing in WireShark, the information would be the same as in the previously attached trace.[/quote]
&lt;p&gt;Can you also include the raw trace (.bin file)?&lt;/p&gt;
[quote user="Ivan Popov"]Also in the Cellular Monitor I get this while executing the modem trace:[/quote]
&lt;p&gt;Yes, RSRP is -81, threshold is around -115 so this should be fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/466985?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 15:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94b62049-2d65-4c57-a6e9-45e2f0e22443</guid><dc:creator>Ivan Popov</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the input. Is this output relevant in some way?&amp;nbsp;&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/Screenshot-from-2024_2D00_01_2D00_31-17_2D00_27_2D00_31.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also in the Cellular Monitor I get this while executing the modem trace:&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/Screenshot-from-2024_2D00_01_2D00_31-17_2D00_42_2D00_06.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I can add another trace file but from that I&amp;#39;m seeing in WireShark, the information would be the same as in the previously attached trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/466984?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 15:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b305df0-8bb8-4769-810d-850a59effecd</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;have you checked the signal quality? You can run the command AT+CESQ? to read various parameters including RSRP and RSRQ.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/466356?ContentTypeID=1</link><pubDate>Sun, 28 Jan 2024 16:13:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b7c2ce-b68f-41fc-86f0-e7e6d324b2ec</guid><dc:creator>Ivan Popov</dc:creator><description>&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I followed &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/collect_modem_trace_thingy.html"&gt;the Cellular Monitor section in the documentation&lt;/a&gt;. As an added value I updated both the SIP and SoC firmwares to the latest versions (with no change in the behaviour).&lt;/p&gt;
&lt;p&gt;I could test with a set of three applications:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The main application (App A) I&amp;#39;m using - it is the &lt;strong&gt;aws_iot&lt;/strong&gt; sample configured the proper way and with additions only appending sensor readings (ext_sensor.h &amp;amp; ext_sensor.c) to the shadow update - the MQTT (or overall connectivity) functionality was not touched.&lt;/li&gt;
&lt;li&gt;Basic MQTT client (App B) - only the &lt;strong&gt;aws_iot&lt;/strong&gt;&amp;nbsp;sample as it is configured with my credentials (tested was previously working - not touched since then).&lt;/li&gt;
&lt;li&gt;The full Nordic &lt;strong&gt;Asset Tracker v2&lt;/strong&gt; (App C)&amp;nbsp;- the sample from the repository only configured with my credentials&lt;span&gt;&amp;nbsp;- the MQTT (or overall connectivity)&amp;nbsp;functionality was not touched.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;The Wireshark for App A and App B showed sets of these:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;App A&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/Screenshot-from-2024_2D00_01_2D00_28-02_2D00_30_2D00_11.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;App B&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/Screenshot-from-2024_2D00_01_2D00_28-12_2D00_06_2D00_06.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;App C&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/Screenshot-from-2024_2D00_01_2D00_28-13_2D00_10_2D00_19.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can see that there is some resetting of the connection on the TCP protocol level but I&amp;#39;m not familiar with this type of logs and traces and I&amp;#39;m not sure how to extract the relations between the messages and the functionality in the code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here I provide the relevant trace in two file formats in full&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/aws_2D00_iot_2D00_mqtt_2D00_connection_2D00_problem.zip"&gt;devzone.nordicsemi.com/.../aws_2D00_iot_2D00_mqtt_2D00_connection_2D00_problem.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope there are enough hints in there so I can get a proper advise and help to figure out the problem. I&amp;#39;ll provide any additional information if required.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Almost forgot to mention that on the serial terminal the behviour looks like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/Screenshot-from-2024_2D00_01_2D00_29-09_2D00_35_2D00_12.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/466351?ContentTypeID=1</link><pubDate>Sun, 28 Jan 2024 14:01:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e956590-3647-4018-aa71-efac1d9a8e7d</guid><dc:creator>Ivan Popov</dc:creator><description>&lt;p&gt;Yes, thanks!&lt;br /&gt;I needed to catch up a bit on the subject so I followed &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/capture_modem_trace_thingy.html"&gt;this documentation section&lt;/a&gt; and this &lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-7-cellular-fundamentals/"&gt;DevAcademy lesson&lt;/a&gt;. I have some finding to share and I&amp;#39;ll do it in an update post later.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Diagnosing AWS IoT Communication failure</title><link>https://devzone.nordicsemi.com/thread/466301?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 17:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67140ae9-e66d-40ef-9836-44fe2ff8b883</guid><dc:creator>AlekFlatley</dc:creator><description>&lt;p&gt;You can take a modem trace and analyze them using the LTE Link Monitor tool available in nRF Connect for Desktop. From there you can narrow down the exact problem with network connectivity and NB-IoT mode. &lt;span style="color:#ffffff;font-size:75%;"&gt;&lt;a style="color:#ffffff;" href="https://gettingoverit.io"&gt;getting over it&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>