<?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 pending messages in sending queue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105012/asset-tracker-v2-pending-messages-in-sending-queue</link><description>Hi All! 
 I am using nrf9160Dk, asset tracker v2, NCS 2.40 nrf cloud, and VScode studio. 
 My question is that I am sending packets/ data (50 bytes) from nrf52833Dk serial to nrf9160Dk after every 5 sec or less. And nrf9160 after reading the packet add</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Oct 2023 11:03:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105012/asset-tracker-v2-pending-messages-in-sending-queue" /><item><title>RE: asset tracker v2 pending messages in sending queue</title><link>https://devzone.nordicsemi.com/thread/452510?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 11:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35725074-78c3-4669-b30e-8313812d2aae</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your guidelines.&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/105012/asset-tracker-v2-pending-messages-in-sending-queue/452445"]What size is you memory allocation configured to?[/quote]
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_HEAP_MEM_POOL_SIZE&lt;/span&gt;&lt;span&gt;=47250&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;&lt;span&gt;=2048&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE&lt;/span&gt;&lt;span&gt;=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Sure I will study the link provided by you. And enable the config in prj.conf to know the reason.I will update you on this further.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: asset tracker v2 pending messages in sending queue</title><link>https://devzone.nordicsemi.com/thread/452445?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 08:15:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:127c6f09-dbda-4e9b-a058-61bc4af74b9b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Muhammad Usman"]Is there anything implemented in asset tracker v2, which stores the incoming packets in a queue and sends them one by one and we come to know how many packets are in the queue?[/quote]
&lt;p&gt;The Asset Tracker uses message queues.&amp;nbsp;&lt;span&gt;Data is batched to reduce the number of messages transmitted, and to be able to retain collected data while the device is offline.&lt;/span&gt;&lt;/p&gt;
[quote user="Muhammad Usman"]Sorry, this thing I want to ask, in my code I stored the packet in an array coming from nrf52833 and sent it to the cloud. And when incoming packet frequency increases it resets the nrf9160.Any solution regarding that?&amp;nbsp;[/quote]
&lt;p&gt;Could you add the following configurations to your project, this way we can hopefully capture the reason for the reset&lt;/p&gt;
&lt;p&gt;CONFIG_ASSERT=y&lt;/p&gt;
&lt;p&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/p&gt;
&lt;p&gt;What size is you memory allocation configured to? Have a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/applications/asset_tracker_v2/doc/firmware_architecture.html#memory-allocation"&gt;memory allocation chapter in the Asset Tracker documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: asset tracker v2 pending messages in sending queue</title><link>https://devzone.nordicsemi.com/thread/452303?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 13:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a420f0-1d24-41e8-9328-eea0adeec422</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you for response!&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/105012/asset-tracker-v2-pending-messages-in-sending-queue/452292"]Is this something you have added to the Asset Tracker?[/quote]
&lt;p&gt;yes, when the asset tracker app, receives(nrf52833 connected via uart) a specific packet then it forwards it to the nrf cloud.&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/105012/asset-tracker-v2-pending-messages-in-sending-queue/452292"]How does your message queue work? Is this something proprietary from the nRF Connect SDK?&amp;nbsp;[/quote]
&lt;p&gt;Sorry, this thing I want to ask, in my code I stored the packet in an array coming from nrf52833 and sent it to the cloud. And when incoming packet frequency increases it resets the nrf9160.Any solution regarding that?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there anything implemented in asset tracker v2, which stores the incoming packets in a queue and sends them one by one and we come to know how many packets are in the queue?&lt;/p&gt;
&lt;p&gt;thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: asset tracker v2 pending messages in sending queue</title><link>https://devzone.nordicsemi.com/thread/452292?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 13:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c548cb8b-a939-4793-8868-56c28880de24</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""] I am sending packets/ data (50 bytes) from nrf52833Dk serial to nrf9160Dk after every 5 sec or les[/quote]
&lt;p&gt;Is this something you have added to the Asset Tracker?&amp;nbsp;&lt;/p&gt;
[quote user=""]Or how many messages are in a queue/ ready for transmission to the nrf cloud?[/quote]
&lt;p&gt;How does your message queue work? Is this something proprietary from the nRF Connect SDK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>