<?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>Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77155/asset-tracker-v2-failed_data-buffer-not-filling</link><description>I&amp;#39;m testing my own firmware based on the current Asset tracker V2 code (AWS cloud). 
 The code generally runs well, but when reception drops (simulated by disconnecting the antenna), the firmware does not detect that a packet has not reached AWS. Which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Oct 2021 06:14:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77155/asset-tracker-v2-failed_data-buffer-not-filling" /><item><title>RE: Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/thread/332461?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 06:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e95acb9-63e5-482f-8884-040361c0ee86</guid><dc:creator>Jelmer</dc:creator><description>&lt;p&gt;Took me a while to verify this, but that PR seems to fix my issue.&lt;/p&gt;
&lt;p&gt;Thanks to the team for implementing the fix!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/thread/326193?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 12:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f67e2668-cd3e-4c57-a184-e74ca8b9b638</guid><dc:creator>simensr</dc:creator><description>&lt;p&gt;Hi! &lt;a href="https://devzone.nordicsemi.com/members/jelmer"&gt;Jelmer&lt;/a&gt;. There is currently a fix in PR for this issue. It would be great if you could test and review&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/5353,"&gt;https://github.com/nrfconnect/sdk-nrf/pull/5353&lt;/a&gt;&amp;nbsp;to see if it resolves the issue you are seeing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/thread/323851?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 19:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b1cd61c-e20e-4dfc-8125-1698dcac73d1</guid><dc:creator>Jelmer</dc:creator><description>&lt;p&gt;Thanks for your help &lt;a href="https://devzone.nordicsemi.com/members/simensr"&gt;simensr&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Some more arguments from our side to make the SDK compatible with both 1.2.3 and 1.3:&lt;/p&gt;
&lt;p&gt;- Currently MFW 1.2.3 wrongly reports the online status of the modem in the AT command. This has decent consequences for the user application using this modem firmware. It seems like the bug has been there for at least a year. We&amp;#39;d consider this a high priority bug.&lt;br /&gt;- Luckily the bug can easily be fixed with a couple lines of code in the SDK, without breaking compatibility with the future modem firmware versions.&lt;br /&gt;- Upgrading modem firmware to 1.3 might be a solution, but is not supported by Nordic for the hardware in question, and Nordic has mentioned to keep supporting this hardware, since AFAIK there&amp;#39;s already large deployments of these chips in the field (rev 1).&lt;/p&gt;
&lt;p&gt;So we don&amp;#39;t see why you wouldn&amp;#39;t fix this bug with a patch in the SDK. The alternative would be to release mfw 1.2.4, which could fix the issue, but will be extremely costly on the Nordic side and the customer side (testing and certifying a whole new modem firmware + pushing and upgrading large modem firmwares for all the devices currently deployed vs just pushing a smaller new version of the user app).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/thread/323674?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 09:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c7df2d6-0821-4a2d-82e2-cbbee09d4ad5</guid><dc:creator>simensr</dc:creator><description>&lt;p&gt;There are currently no plans of including&amp;nbsp;such functionality in the link controller. But providing a solution which addresses this issue for all modem builds is appealing. I will discuss this with my co-workers and get back to you. Please note that there is still vacation&amp;nbsp;period in Norway so it might take some time before I respond.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/thread/323643?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 07:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e58f0c21-fed5-4842-a528-eec559634b2b</guid><dc:creator>Jelmer</dc:creator><description>&lt;p&gt;Our units in the field are&amp;nbsp;&lt;span&gt;Revision 1 that are currently running modem firmware 1.2.3. So I&amp;#39;ll test the issue with 1.3, but even if that fixes the problem, upgrading our rev1 chips to 1.3 isn&amp;#39;t officially supported, so it wouldn&amp;#39;t be a fix.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are there plans to upgrade&amp;nbsp;lte_lc.c and the link control lib to interpret cell id instead of network reg status? I doubt we&amp;#39;re the only ones in this position and having this issue, so an official bugfix in the SDK might be a good solution.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/thread/323637?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 06:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:054d138f-a1ff-4bad-bcee-ae47fdb05b5a</guid><dc:creator>simensr</dc:creator><description>&lt;p&gt;Hi, modem firmware 1.3 has been released so this can be tested by flashing the latest version found&amp;nbsp;on this page:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF9160-DK/Download"&gt;https://www.nordicsemi.com/Products/Development-hardware/nRF9160-DK/Download&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As for the devices you have in the field&amp;nbsp;the issue can be fixed by doing a modem FOTA of the modem firmware, or the application, which includes functionality that&amp;nbsp;interprets a cell ID being reported as&amp;nbsp;&amp;quot;FFFFFFFF&amp;quot; as a disconnect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/thread/323632?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 05:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4afee724-952f-4238-97e5-7619b6b9cb87</guid><dc:creator>Jelmer</dc:creator><description>&lt;p&gt;Thanks for your answer and clarification &lt;a href="https://devzone.nordicsemi.com/members/simensr"&gt;simensr&lt;/a&gt; !&lt;/p&gt;
&lt;p&gt;After going through the events all the way back to the AT commands, it seems like the culprit is this previously reported issues:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63267/getting-cereg-5-fffe-ffffffff-while-disconnected-from-the-network"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/63267/getting-cereg-5-fffe-ffffffff-while-disconnected-from-the-network&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When I disconnect the antenna, RSRP drops and the modem reports:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:01:01.965,759] &amp;lt;dbg&amp;gt; lte_lc.at_handler: +CEREG notification: +CEREG: 5,&amp;quot;FFFE&amp;quot;,&amp;quot;FFFFFFFF&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With a network registration status of 5, the lte_lc never detects there is an issue, or a disconnect. So there are no messages to the application that a disconnect occured.&lt;/p&gt;
&lt;p&gt;The post I linked to mentions this would be resolved in firmware 1.3, is this the case? We currently have devices with 1.2 in the field suffering of this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker V2 failed_data buffer not filling</title><link>https://devzone.nordicsemi.com/thread/318770?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 11:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:941fb97c-4174-4346-b263-ceffd1027e50</guid><dc:creator>simensr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The application detects if the device is connected/disconnected from LTE/MQTT via events that is received in the various modules. The &lt;em&gt;cloud_module&lt;/em&gt;&amp;nbsp;and &lt;em&gt;data_module&lt;/em&gt;&amp;nbsp;should block/unblock data transmission depending on being connected to MQTT or not.&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;modem_module&lt;/em&gt;&amp;nbsp;is responsible for propagating the events &lt;em&gt;MODEM_EVT_LTE_CONNECTED&lt;/em&gt;&amp;nbsp;and &lt;em&gt;MODEM_EVT_LTE_DISCONNECTED&lt;/em&gt;&amp;nbsp;that is used in the &lt;em&gt;cloud_module&lt;/em&gt;&amp;nbsp;to govern cloud connection/re-connection and data transmission.&lt;br /&gt;&lt;br /&gt;In turn, the &lt;em&gt;data_module&lt;/em&gt;&amp;nbsp;listens to events from the &lt;em&gt;cloud_module&lt;/em&gt;, more specifically &lt;em&gt;CLOUD_EVT_CLOUD_CONNECTED&lt;/em&gt;&amp;nbsp;and &lt;em&gt;CLOUD_EVT_CLOUD_DISCONNECTED&lt;/em&gt;. And, decides based on&amp;nbsp;those events if data should be encoded and sent to the &lt;em&gt;cloud_module&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;It seems that in the describes scenario the application is not able to detect that it is disconnected from LTE (no `MODEM_EVT_LTE_DISCONNECTED`event and keeps on sending data, essentially filling the &lt;em&gt;message queue&lt;/em&gt; used to schedule MQTT data transmission in the `cloud_module` thread. I suspect that the &lt;em&gt;cloud_module&lt;/em&gt;&amp;nbsp;thread is blocked in &lt;em&gt;data_send&lt;/em&gt;&amp;nbsp;that makes&amp;nbsp;the thread unable to process further &lt;em&gt;message queue&lt;/em&gt; items. This eventually leads to the message queue being filled which triggers a reboot.&lt;br /&gt;&lt;br /&gt;There is&amp;nbsp;ongoing work to improve this by properly handling socket timeouts in case a &lt;em&gt;send&lt;/em&gt;&amp;nbsp;blocks for too long. This way the application can recover more gracefully.&lt;br /&gt;&lt;br /&gt;It would be most helpful if you could provide debug logs (alternatively modem trace logs) that could help us identify the exact issue at hand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>