<?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>Timing in ESB TX nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104053/timing-in-esb-tx-nrf52840</link><description>Hello all, 
 I am using ESB to build my project. 
 I am trying to achieve as close as possible to 2Mbps. 
 My code sequence 
 1. Collecting 240 bytes payload 
 2. if (nrf_esb_write_payload(&amp;amp;tx_payload) == NRF_SUCCESS); 
 { 
 Start Collecting next 240</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Sep 2023 12:01:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104053/timing-in-esb-tx-nrf52840" /><item><title>RE: Timing in ESB TX nRF52840</title><link>https://devzone.nordicsemi.com/thread/447468?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 12:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a5f37b4-5554-4dbd-acc3-0e8d65c8eb51</guid><dc:creator>Sigurd</dc:creator><description>[quote user="MinhDuc"]So for one round-trip communication, the bytes on-air is 264 bytes. Am I right?&amp;nbsp;[/quote]
&lt;p&gt;Sounds a bit high with 12 bytes for address, crc, etc. Take a look at this link if you are using nRF5-SDK:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/esb_users_guide.html?cp=9_1_5_3_6#esb_addressing"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/esb_users_guide.html?cp=9_1_5_3_6#esb_addressing&lt;/a&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;or this if you are using nRF Connect SDK:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/esb/index.html#pipes-and-addressing"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/esb/index.html#pipes-and-addressing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You might also find this post here helpful:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72577/speeding-up-esb-on-nrf52"&gt;Speeding up ESB on nrf52&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing in ESB TX nRF52840</title><link>https://devzone.nordicsemi.com/thread/447304?ContentTypeID=1</link><pubDate>Sat, 23 Sep 2023 07:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dbbcf12-49d8-4c31-b047-1580a9901bd0</guid><dc:creator>MinhDuc</dc:creator><description>&lt;p&gt;I make a calculation:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;tx packet:&lt;/p&gt;
&lt;p&gt;address, crc, etc. - 12 bytes&lt;/p&gt;
&lt;p&gt;payload 240 bytes&amp;nbsp;&lt;/p&gt;
&lt;p&gt;rx ack packet:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;address, crc, etc. - 12 bytes&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;payload&amp;nbsp;0 bytes&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So for one round-trip communication, the bytes on-air is 264 bytes. Am I right?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So the best payload data rate I can get is around 1.8Mbps in 2Mbps bitrate?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please correct me if I misunderstood some point.&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: Timing in ESB TX nRF52840</title><link>https://devzone.nordicsemi.com/thread/447303?ContentTypeID=1</link><pubDate>Sat, 23 Sep 2023 07:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a9b387c-92e8-4611-a085-9edd03e533c5</guid><dc:creator>MinhDuc</dc:creator><description>&lt;p&gt;Thank you Sigurd.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got the concept of ACK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I am using the ESB driver. Is it faster if I work directly with the register like HAL?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing in ESB TX nRF52840</title><link>https://devzone.nordicsemi.com/thread/447269?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2023 14:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97f8f20-32bc-471d-b988-c67c987329ed</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_esb_write_payload() returns&amp;nbsp;NRF_SUCCESS if the payload was successfully queued for writing.&lt;/span&gt;&lt;span&gt;&amp;nbsp;When an ACK is successfully received from a PRX, the PTX assumes that the payload was successfully received and added to the PRX&amp;#39;s RX FIFO. The successfully transmitted packet is removed from the TX FIFO, so that the next packet in the FIFO can be transmitted.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Assuming that you are waiting for ACK now, then disabling ACK&amp;#39;s will allow you to increase the data rate significantly. But this is not a good choice if you need a reliable stream of data.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>