<?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>Delay between sending radio messages using ESB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106096/delay-between-sending-radio-messages-using-esb</link><description>Hello everyone, I am using 2 nRF52840 of nRF9160 DK to send large bulks of data (like 2MB) . My problem is that this communication have to be necesseraly delayed or it can&amp;#39;t be completed, because at some point the TX board cannot receive the ACK from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Nov 2023 20:56:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106096/delay-between-sending-radio-messages-using-esb" /><item><title>RE: Delay between sending radio messages using ESB</title><link>https://devzone.nordicsemi.com/thread/458408?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 20:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0495e897-6d39-4d2d-b8f7-fb82571cc2e6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest&amp;nbsp;to follow the intended flow of sending a packet and wait for&amp;nbsp;irq, and ensure the correct event trigger and take appropriate steps (e.g&amp;nbsp;on failed (flush + send new) and on sent (send new)).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delay between sending radio messages using ESB</title><link>https://devzone.nordicsemi.com/thread/458089?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 12:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea1fbfd1-e6c8-42d7-a46f-da87fb5afb9d</guid><dc:creator>tiler9</dc:creator><description>&lt;p&gt;Hello Kenneth, goood morning.&lt;/p&gt;
&lt;p&gt;So,&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/106096/delay-between-sending-radio-messages-using-esb/458039"]look at your implementation vs. the reference code[/quote]
&lt;p&gt;I copied great part of sample ESB ptx code. Just changed to test if it gets any faster to transmit.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/106096/delay-between-sending-radio-messages-using-esb/458039"]are you sure you are using .noack intentionally?[/quote]
&lt;p&gt;I just leaved it there to test but it is not doing anything because i&amp;#39;m using &amp;quot;config.selective_auto_ack = false&amp;quot; and the ESB library says that &amp;quot;When this feature is disabled, all packets will be acknowledged ignoring the noack field.&amp;quot;&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/106096/delay-between-sending-radio-messages-using-esb/458039"]You are clearing the ready flag in the&amp;nbsp;&lt;span&gt;event_handler()&lt;/span&gt;[/quote]
&lt;p&gt;Yes, because now i evaluating the highest speed of transmission of the packet.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/106096/delay-between-sending-radio-messages-using-esb/458039"] if 1MBPS works[/quote]
&lt;p&gt;It does works, but i had to increase the delay.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/106096/delay-between-sending-radio-messages-using-esb/458039"]100bytes instead of 252bytes[/quote]
&lt;p&gt;It doens&amp;#39;t.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/106096/delay-between-sending-radio-messages-using-esb/458039"]Are you sending any data in reverse direction here?[/quote]
&lt;p&gt;No, i copied the code from ESB prx sample code, just changed the configuration of ESB to match with the TX board. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delay between sending radio messages using ESB</title><link>https://devzone.nordicsemi.com/thread/458039?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 10:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9a96d05-ea41-4ce6-b61f-2e98e686ed87</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think you will just have to take a step back and look at your implementation vs. the reference code also, for instance it does look that you are using .noack = true (meaning you do not want ack), are you sure you are using .noack intentionally? You are clearing the ready flag in the&amp;nbsp;&lt;span&gt;event_handler(), but you should ideally do this depending on the actual event, e.g. is it&amp;nbsp;ESB_EVENT_TX_SUCCESS or&amp;nbsp;ESB_EVENT_TX_FAILED. If it&amp;#39;s *_FAILED, maybe you should consider resending the esb packet (not just sending the next etc). For test you can also check if 1MBPS works the same and whether using 100bytes instead of 252bytes makes any difference. Are you sending any data in reverse direction here?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delay between sending radio messages using ESB</title><link>https://devzone.nordicsemi.com/thread/457896?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 14:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1265631-f2e5-4dae-87d9-a32aa8bd9b95</guid><dc:creator>tiler9</dc:creator><description>&lt;p&gt;Hi Kenneth, thanks for replying. &lt;br /&gt;&lt;br /&gt;Unfortunately, this code that i posted is missing the &lt;em&gt;&amp;quot;ready = true&amp;quot;&lt;/em&gt;, at the end of the&lt;em&gt; event_handler function&lt;/em&gt;. But the problem of the necessity of putting the delay after &lt;em&gt;esb_write_payload(&amp;amp;tx_payload); &lt;/em&gt;persists&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;But i managed to reduce to 3ms delay, by putting the following configuration of ESB:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; config.protocol = ESB_PROTOCOL_ESB;&lt;br /&gt; config.payload_length = ESB_MAX_PAYLOAD_LENGTH;&lt;br /&gt; config.bitrate = ESB_BITRATE_2MBPS;&lt;br /&gt; config.event_handler = event_handler;&lt;br /&gt; config.mode = ESB_MODE_PTX;&lt;br /&gt; config.selective_auto_ack = false;&lt;br /&gt; config.crc = ESB_CRC_16BIT;&lt;br /&gt; config.use_fast_ramp_up = true;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delay between sending radio messages using ESB</title><link>https://devzone.nordicsemi.com/thread/457881?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 13:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e44f467-ffe1-46f8-ac31-0232cbd3a8d8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So I assume you have set&amp;nbsp;CONFIG_ESB_MAX_PAYLOAD_LENGTH=252 here on both sides of the link.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see where the ready flag is set to true?&lt;/p&gt;
&lt;p&gt;Are you sure the problem is on the PTX and not the PRX?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>