<?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>ESB RX answer Ack to TX when TX periodical send data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104694/esb-rx-answer-ack-to-tx-when-tx-periodical-send-data</link><description>Hello, 
 I am using ESB to communicate between 2 devices. One works as TX and one works as RX. I start from esb_ptx and esb_prx example in nrf sdk 17.1 
 My TX ack set up: 
 nrf_esb_config.selective_auto_ack = true; 
 tx_payload.noack = fasle; 
 My RX</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Oct 2023 05:10:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104694/esb-rx-answer-ack-to-tx-when-tx-periodical-send-data" /><item><title>RE: ESB RX answer Ack to TX when TX periodical send data</title><link>https://devzone.nordicsemi.com/thread/451415?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 05:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed232694-2976-4bac-923d-0bae969f9418</guid><dc:creator>MinhDuc</dc:creator><description>&lt;p&gt;Thank you for all you suggestions!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB RX answer Ack to TX when TX periodical send data</title><link>https://devzone.nordicsemi.com/thread/451392?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2023 22:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87d6cc7d-f6d6-4924-aab3-8289ed4fe483</guid><dc:creator>Sigurd</dc:creator><description>[quote user="MinhDuc"]Can you explain to me why noack = true affects the way PRX answer to PTX? As I understand, only PTX decide to expect ack from PRX or not.&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;When the PRX receives a packet that does not require an ACK, it does not send an ACK packet to the PTX&lt;/span&gt;&lt;/p&gt;
[quote user="MinhDuc"]And one more small question. If I connect external antenna to nrf52840-dk, SWF connector will automatically disconnect the signal from PCB antenna. Am I right?&amp;nbsp;[/quote]
&lt;p&gt;Correct.&lt;/p&gt;
[quote user="MinhDuc"]How can I be sure that PTX always send the next packet even if PRX doesn&amp;#39;t answer the packet with noack = false?[/quote]
&lt;p&gt;You can set the desired&amp;nbsp;&lt;span&gt;retransmit count with the function&amp;nbsp;&lt;/span&gt;nrf_esb_set_retransmit_count(). Try setting it to 0, if you don&amp;#39;t want&amp;nbsp;&lt;span&gt;retransmit.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB RX answer Ack to TX when TX periodical send data</title><link>https://devzone.nordicsemi.com/thread/451164?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2023 00:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7036b0b4-fb2f-448b-983e-3ddc4c86ddea</guid><dc:creator>MinhDuc</dc:creator><description>&lt;p&gt;Hello Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just want to update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I successfully set the tx_payload.noack state for Tx. 250 packet noack = true then 6 noack = false then ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My current problem is &amp;quot;sometimes,&amp;nbsp;PTX can not get the answer from PRX at packet with noack = false. Then my system stop&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How can I be sure that PTX always send the next packet even if PRX doesn&amp;#39;t answer the packet with noack = false?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bests,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB RX answer Ack to TX when TX periodical send data</title><link>https://devzone.nordicsemi.com/thread/451000?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 08:59:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ac2357b-0d7c-465c-bf3c-116da918abd9</guid><dc:creator>MinhDuc</dc:creator><description>&lt;p&gt;Hello Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In PRX side, I set the&amp;nbsp;&lt;span&gt;selective_auto_ack = true and noack = true then it works.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you explain to me why noack = true affects the way PRX answer to PTX? As I understand, only PTX decide to expect ack from PRX or not.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And one more small question. If I connect external antenna to nrf52840-dk, SWF connector will automatically disconnect the signal from PCB antenna. Am I right?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bests,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB RX answer Ack to TX when TX periodical send data</title><link>https://devzone.nordicsemi.com/thread/450988?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 08:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99efe657-0918-4373-9d3d-6c6cd5a040e7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user="MinhDuc"]Update: I solve my problem.[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="MinhDuc"]But I am not success with this target.&amp;nbsp;[/quote]
&lt;p&gt;What is not working? Never acked or always acked?&lt;/p&gt;
[quote user="MinhDuc"]PRX set up:&amp;nbsp;&lt;span&gt;selective_auto_ack = false;&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;If I recall correctly, if you set setting selective_auto_ack=false, then noack is ignored, and all packets are acked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB RX answer Ack to TX when TX periodical send data</title><link>https://devzone.nordicsemi.com/thread/450440?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 07:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f896eeff-6db4-4031-875a-94cf782fa759</guid><dc:creator>MinhDuc</dc:creator><description>&lt;p&gt;Update: I solve my problem.&lt;/p&gt;
&lt;p&gt;Another question I hope I can get the suggestion here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Most of the time, I want to send data without ack ( tx_payload.noack = true).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I code like this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;uint8_t count;&lt;/p&gt;
&lt;p&gt;while (true)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count++&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (count &amp;gt; 250) {tx_payload.noack = false}&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else {&lt;span&gt;tx_payload.noack = true&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;By this way I&amp;nbsp;always can send ack to Tx in some packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I understand, In PRX side, I just write tx_payload.data to buffer then driver wait until the next Rx packet with ack expectation to send it back to PTX side. Am I right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PTX set up:&amp;nbsp;&amp;nbsp;selective_auto_ack = true;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PRX set up:&amp;nbsp;&lt;span&gt;selective_auto_ack = false;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I am not success with this target.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please suggest the solution.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bests,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>