<?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 payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117380/esb-payloads-occasionally-sent-off-later-than-expected</link><description>I am working with ESB between 2 nRF5340DK&amp;#39;s (w/ no need to be cross compatible w/ other devices) and with NCS v2.5.0. I am using ESB to wirelessly transmit data every 2ms, and have been mostly able to achieve it by relying on the example projects (located</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jan 2025 22:06:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117380/esb-payloads-occasionally-sent-off-later-than-expected" /><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/517337?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 22:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb9d983-f3be-47e9-8110-5f6eb8b651c5</guid><dc:creator>esmart-engineering</dc:creator><description>&lt;p&gt;I see; that makes sense. Thank you for the info! I appreciate it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/517336?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 22:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf0fc40-3791-4404-876f-f3b611890051</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t expect lowering it is possible no. Have in mind that switching from tx to rx (to receive the ack) and vice versa is about 130us each way. In addition you need to spend the necessary time in rx or tx (to send/receive the on-air data), which can be a couple of hundreds of us depending on the on-air datarate and payload size.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/517334?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 21:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9aba0f6-f776-43c6-936f-8497657037bf</guid><dc:creator>esmart-engineering</dc:creator><description>&lt;p&gt;Thank you for confirming that my hypothesis was correct. So is this problem/delay unavoidable? Are there ways to minimize that delay even more? For example, I would have expected lowering the retransmit delay could help lower the delay but my experiments seem to suggest that it doesn&amp;#39;t; is this expected behavior?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/517330?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 20:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af4ae2df-c927-49f2-a89f-c1a8b5e5b97f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any specific questions here, other than a confirmation that it make sense, and it absolutely does.&lt;/p&gt;
&lt;p&gt;If you for instance get yourself an Power Profiler Kit II you can measure the current with high timing precision, and actually observe the exacting timing of tx and rx:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/Power-Profiler-Kit-2"&gt;https://www.nordicsemi.com/Products/Development-hardware/Power-Profiler-Kit-2&lt;/a&gt;&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: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/517282?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 15:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b873f848-0f8d-4e56-9f05-1b7f444305bb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We are looking into this. Thank you for your reminder. We&amp;#39;ll get back to you by end of week.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/516848?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2025 20:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f73b0cfb-3a7a-42d1-ab05-66897f37a3de</guid><dc:creator>esmart-engineering</dc:creator><description>&lt;p&gt;Just wanted to add a kind reminder for your ESB expert to take a look at this post on the 6th. Looking forward to your thoughts on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/516000?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2024 20:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dde3bff-db91-4935-81d9-576ba1516644</guid><dc:creator>esmart-engineering</dc:creator><description>&lt;p&gt;I already clarified this in my previous reply - packets are late, and logic analyzer only is used for timing. Please have your ESB experts address this when they get back Jan 6.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/515881?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2024 10:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0c3f455-4cc9-42dc-8520-3a87c093bc4d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What makes the packet receive what seems to be early here though (4ms - 5.5ms - 7 ms)? Do you have a log or something showing the timings here or do you take them just based on the logic analyzer?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/515817?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 18:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddf188c2-b4fe-4dd6-8b96-427a9ba735e7</guid><dc:creator>esmart-engineering</dc:creator><description>&lt;p&gt;I corrected the example about when the packets are coming in, to show why the packet is getting sent late.&lt;/p&gt;
&lt;p&gt;I measured timing using LEDs and a logic analyzer (and, to clarify again, using the ESB examples heavily as a starting point)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:75%;"&gt;I rewrote the LED code used in the ESB examples so that leds_update(uint8_t value) will toggle led&amp;lt;value&amp;gt;. For example, leds_update(0) toggles led0, which is LED1 on the nRF5340DK&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:75%;"&gt;On PTX, I toggle led0 before and after the esb_write_payload() call&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:75%;"&gt;On PTX, I toggle led1 twice when handling ESB_EVENT_TX_SUCCESS.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:75%;"&gt;On PRX, I toggle led0 twice when handling ESB_EVENT_RX_RECEIVED.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:75%;"&gt;I hooked up a logic analyzer to those LEDs and measured timing this way.&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:75%;"&gt;PTX led0 toggles every 2ms as expected.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:75%;"&gt;PTX led1 and PRX led0 shows the occasional late packet.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;The packets do use ACKing (on PTX, I set tx_payload.noack = false).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB payloads occasionally sent off later than expected</title><link>https://devzone.nordicsemi.com/thread/515658?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 08:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3222e3d-0fc4-426a-b334-da672f241428</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess tis could be the Auto Retransmit delay that does this, which is at least 0.5ms. How would you explain this behavior exactly on your end? Since the payloads come in at 4ms, then 5.5ms, it sounds like the packet is early, not late? Can you show us how exactly you measure the timing here, and do you do ACKing or not?&lt;/p&gt;
&lt;p&gt;Unfortunately, our ESB experts have left for the holiday season, so you won&amp;#39;t have any expert advice until January 6th I&amp;#39;m afraid.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>