<?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>How to get status of message transmission</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120767/how-to-get-status-of-message-transmission</link><description>My application communicates via UDP and all communication is initiated from the device. Before packet transmission, network registration status is checked (CEREG) and sendto () is called only if the modem is registered to the network (maybe it would be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Apr 2025 15:40:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120767/how-to-get-status-of-message-transmission" /><item><title>RE: How to get status of message transmission</title><link>https://devzone.nordicsemi.com/thread/532651?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 15:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:815ca437-dbc6-4d04-b1e9-215220970080</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="117940" url="~/f/nordic-q-a/120767/how-to-get-status-of-message-transmission/532641"]But e.g. I can get buffer overflow, if packets are stuck in buffer for some reason.[/quote]
&lt;p&gt;It&amp;#39;s not, that I don&amp;#39;t agree, that this functions would be valuable. But 2 years ago there was a ticket &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99009/bug-report-non-blocking-send-fails-with-ewouldblock-even-though-poll-returned-pollout"&gt;Bug report: Non-blocking send fails with EWOULDBLOCK even though poll returned POLLOUT&lt;/a&gt; which explains some of the limitations (modem buffers + app buffers), and so I guess, this is still not implemented nor is there a schedule for implementing it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get status of message transmission</title><link>https://devzone.nordicsemi.com/thread/532641?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 15:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:200ccb5c-790c-45f7-8470-2684fd11a2d5</guid><dc:creator>Martin Vitek</dc:creator><description>&lt;p&gt;I have implemented ACK/timeout with retransmission in my protocol. And I agree, that those informations are not important from UDP point of view. But e.g. I can get buffer overflow, if packets are stuck in buffer for some reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get status of message transmission</title><link>https://devzone.nordicsemi.com/thread/532160?ContentTypeID=1</link><pubDate>Fri, 18 Apr 2025 07:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc88b36b-5aec-496b-ae28-2c0f6a1d7cc3</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;While that will make it easier to implement a UDP based protocol, it may be also seen as &amp;quot;duplicate&amp;quot;, because regardless if the modem has sent the message, it may not reach the destination.&lt;/p&gt;
&lt;p&gt;Therefore UDP based protocols use some ACK/timeout mechanisms to cover that. In my experience it&amp;#39;s therefore only important to know, when to start the transmission timer. I use &amp;quot;registered + pdn context + rrc active&amp;quot; to start that timer. To make it a little more reliable on &amp;quot;wake up after PSM&amp;quot;, it may be considered to add &amp;quot;for 2s&amp;quot; because in rare cases of some gone network registrations, you get &amp;quot;rrc active&amp;quot;, while the registration is still from the last &amp;quot;rrc active&amp;quot; and then changes to &amp;quot;searching&amp;quot; short after.&lt;/p&gt;
&lt;p&gt;For CoAP/DTLS 1.2 CID that works pretty well. I don&amp;#39;t use the current coap-client logic , I&amp;#39;ve implemented my own timeout/retransmission mechanism. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>