<?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>NRF52832 ESB RADIO timing question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90658/nrf52832-esb-radio-timing-question</link><description>Hi, I have a question to ask: I am using ESB demo as the communication framework. One master corresponds to two slaves, but occasionally there are some problems. Please see the following figure first: 
 
 
 
 
 
 The figure shows some important moments</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Aug 2022 05:18:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90658/nrf52832-esb-radio-timing-question" /><item><title>RE: NRF52832 ESB RADIO timing question</title><link>https://devzone.nordicsemi.com/thread/380917?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 05:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a93b5495-73b0-4471-8bef-778f1440ac27</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;You welcome, a good day to you too &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 ESB RADIO timing question</title><link>https://devzone.nordicsemi.com/thread/380742?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 07:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77700a8c-7754-4171-99bd-502de898b0c1</guid><dc:creator>Liny</dc:creator><description>&lt;p&gt;thanks for your help！！！have&amp;nbsp; a good day&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 ESB RADIO timing question</title><link>https://devzone.nordicsemi.com/thread/380330?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 10:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb985e2-dda4-469c-8f5f-afb88049d046</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You still didn&amp;#39;t tell me which SDK you are using, but assuming you are using the nRF Connect SDK there is a parameter called&amp;nbsp;CONFIG_ESB_MAX_PAYLOAD_LENGTH which will control the MAXLEN parameter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you set this parameter to 20 then MAXLEN would be set to the same, and any packet above 20 bytes would be truncated.&amp;nbsp;&lt;/p&gt;
[quote user="Liny"]&lt;p&gt;1.if i set MAXLEN to 20, slave send length = 30bytes&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div style="padding-bottom:0;" dir="ltr"&gt;
&lt;p&gt;&lt;span&gt;Will the master generate an end signal after receiving 20 bytes?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Or will the end signal be generated after receiving 30 bytes, but only 20 bytes will be read when reading?&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;The master will generate the end signal after receiving 20 bytes of payload and the CRC, yes, but keep in mind that the CRC check will fail since what the radio thinks is the CRC is actually parts of the payload (payload bytes number 21 and up).&amp;nbsp;&lt;/p&gt;
[quote user="Liny"]2.if i set master MAXLEN to 20 ,can master send 30 byte data?it&amp;#39;s send ,not receive.&amp;nbsp;[/quote]
&lt;p&gt;No. MAXLEN limits both how much you can send, and how much you can receive. In this case you would need to change the MAXLEN parameter before sending a packet, and then change it back when you want to receive.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 ESB RADIO timing question</title><link>https://devzone.nordicsemi.com/thread/380100?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 11:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a6c93df-d76b-4c8c-a88b-75ba5813b93d</guid><dc:creator>Liny</dc:creator><description>&lt;p&gt;thank you very much!!&lt;/p&gt;
&lt;p&gt;you said:&amp;quot;Yes. If a bit error causes the length field to be read as 20 the radio will receive all 20 bytes, and then proceed to read the CRC after the payload. In this case the CRC check should fail, causing the packet to be discarded (unless you are very unlucky and happen to read a valid CRC value by accident).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that the radio will never receive a payload longer than the MAXLEN field ind the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html?cp=4_0_0_5_19_13_49#register.PCNF1"&gt;PCNF1 register&lt;/a&gt;. If the length field is longer than MAXLEN the radio will only read out a number of bytes equal to MAXLEN.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;question:could i use MAXLEN to avoid this problem?&lt;/p&gt;
&lt;p&gt;1.if i set MAXLEN to 20, slave send length = 30bytes&lt;/p&gt;
&lt;div class="trans-right"&gt;
&lt;div class="output-wrap small-font" data-domain-value="common"&gt;
&lt;div class="output-mod ordinary-wrap"&gt;
&lt;div class="output-bd" style="padding-bottom:0px;" dir="ltr"&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;Will the master generate an end signal after receiving 20 bytes?&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;Or will the end signal be generated after receiving 30 bytes, but only 20 bytes will be read when reading?&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;2.if i set master MAXLEN to 20 ,can master send 30 byte data?it&amp;#39;s send ,not receive.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;regards.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="notranslate"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 ESB RADIO timing question</title><link>https://devzone.nordicsemi.com/thread/380088?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 11:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33a1b887-9c19-4b50-9a8d-c02cf3c192e7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Which SDK are you working with?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Liny"]1. What are the possibilities of disabling without alignment, like the above figure?[/quote]
&lt;p&gt;On the PTX side the receiver will be disabled by a timer, if no ACK packet is received within a certain time. In this case there will be no close alignment between the PTX and PRX. When this problem occurs what kind of interrupt do you get on the PTX side? Does it report TX success or TX failure?&lt;/p&gt;
[quote user="Liny"]&lt;span&gt;2. What does radio produce end signal depend on?&lt;/span&gt;&lt;span&gt; Depends on the received payload length?&lt;/span&gt;[/quote]
&lt;p&gt;Yes, if you are transmitting or receiving a packet the end signal will depend on the payload length, as well as some other radio parameters such as bitrate, address length and CRC length.&lt;/p&gt;
&lt;p&gt;As I said earlier, if no packet is received in a certain amount of time when a PTX device is listening for the ACK, then the radio will be disabled by a timer. In this case it will then proceed to retransmit the same packet again, unless the retransmit limit is already reached.&amp;nbsp;&lt;/p&gt;
[quote user="Liny"] If the slave sends a length = 10, but the master recognizes it as 20 due to interference, will it keep the acceptance time of 20 bytes?[/quote]
&lt;p&gt;Yes. If a bit error causes the length field to be read as 20 the radio will receive all 20 bytes, and then proceed to read the CRC after the payload. In this case the CRC check should fail, causing the packet to be discarded (unless you are very unlucky and happen to read a valid CRC value by accident).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that the radio will never receive a payload longer than the MAXLEN field ind the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html?cp=4_0_0_5_19_13_49#register.PCNF1"&gt;PCNF1 register&lt;/a&gt;. If the length field is longer than MAXLEN the radio will only read out a number of bytes equal to MAXLEN.&amp;nbsp;&lt;/p&gt;
[quote user="Liny"]&lt;span&gt;3. Does the end signal generated by radio depend on a specific packet tail?&lt;/span&gt;&lt;span&gt; If the end signal is generated only after the tail of the packet is recognized, is the scenario in the figure waiting because the tail of the packet is not received?&lt;/span&gt;[/quote]
&lt;p&gt;No, there is no &amp;#39;end of packet&amp;#39; symbol to indicate where the packet is over. The radio will assume that the packet is finished after receiving the CRC, and trigger the END event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 ESB RADIO timing question</title><link>https://devzone.nordicsemi.com/thread/379898?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 11:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d6cfad4-5cf3-494e-89e7-bb53081356e6</guid><dc:creator>Liny</dc:creator><description>&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;The figure shows some important moments, such as tx/rx ready disable signal, which I believe you can understand.&lt;span&gt;When problems occur:&lt;/span&gt;The master sends the message, and then the slave can receive the message normally. You can see that the end/disable signals of the master and the slave are aligned. （end short with disable）&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;When the slave replies to the message, the master&amp;#39;s disable signal cannot be aligned with the slave&amp;#39;s disable signal, which is delayed by hundreds of us. This place is abnormal.&lt;/span&gt;&lt;span class=""&gt; When such timing occurs, our equipment will work abnormally.&lt;/span&gt;&lt;/p&gt;
&lt;div class="trans-right"&gt;
&lt;div class="output-wrap small-font" data-domain-value="common"&gt;
&lt;div class="output-mod ordinary-wrap"&gt;
&lt;div class="output-bd" style="padding-bottom:0px;" dir="ltr"&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;I would like to ask the following questions:&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;1. What are the possibilities of disabling without alignment, like the above figure?&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;2. What does radio produce end signal depend on?&lt;/span&gt;&lt;span class=""&gt; Depends on the received payload length?&lt;/span&gt;&lt;span class=""&gt; If the slave sends a length = 10, but the master recognizes it as 20 due to interference, will it keep the acceptance time of 20 bytes?&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;3. Does the end signal generated by radio depend on a specific packet tail?&lt;/span&gt;&lt;span class=""&gt; If the end signal is generated only after the tail of the packet is recognized, is the scenario in the figure waiting because the tail of the packet is not received?&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;I would appreciate it if you could answer these questions&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>