<?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>Check if a certain packet has been transmitted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15431/check-if-a-certain-packet-has-been-transmitted</link><description>Hello Nordic! In my FW, I need to know when a specific packet has been actually sent (because of SD packet buffering). I am able to receive the BLE_EVT_TX_COMPLETE event, but that provides no information regarding the contents of the packet that was sent</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 31 Jul 2016 04:56:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15431/check-if-a-certain-packet-has-been-transmitted" /><item><title>RE: Check if a certain packet has been transmitted</title><link>https://devzone.nordicsemi.com/thread/58917?ContentTypeID=1</link><pubDate>Sun, 31 Jul 2016 04:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e70d529a-ac37-4cb5-90ea-2191887e5765</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;All you need to do is keep track of the TX_COMPLETE messages coming in, each one of those represents the completion of the send, in order, of the packets you sent out. So if you have 4 packets in-flight, the first TX_COMPLETE represents the first of those having been sent. So just keep whatever information you want about your packets in an array or ring buffer or something, as you send a new one add it to the list, as a TX_COMPLETE comes in, remove the first one and process it.&lt;/p&gt;
&lt;p&gt;Or if the use case is as simple as you state above, and you just want to know for a certain packet occasionally when it&amp;#39;s been transmitted, just keep a tally of packets in-flight incrementing each time you send one and decrementing each time you get TX_COMPLETE, that number &lt;em&gt;is&lt;/em&gt; the current status of packets in-flight, no need to query the softdevice (and you can&amp;#39;t anyway).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if a certain packet has been transmitted</title><link>https://devzone.nordicsemi.com/thread/58916?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 17:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51ebf02c-48d8-4309-a0df-d61baf4d746e</guid><dc:creator>sidekick</dc:creator><description>&lt;p&gt;I really doubt that your approach is feasible since SD&amp;#39;s management of the buffers is completely transparent to the application. And even if it provides you some API through which you can check the SD&amp;#39;s internal buffer count status, how would you guarantee that your application request is serviced with hard real time constraints.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>