<?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>Loosing radio packets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60512/loosing-radio-packets</link><description>I have a setup with one transmitter and three receivers. The transmitter (nRF24L01+) sends a message to the receivers (nRF52832, using SDK v15.3.0) every 10 seconds. The receivers are in RX all the time, except when a packet has been received, it will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 May 2020 23:47:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60512/loosing-radio-packets" /><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/248031?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 23:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1c2c69-699d-4026-9fe4-7a144e36ed2c</guid><dc:creator>kris_s</dc:creator><description>&lt;p&gt;This suggestion was helpful to me as well.&amp;nbsp; Looking into the ESB example projects, in esb_prx it&amp;#39;s done this way (susceptible to this issue):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (nrf_esb_read_rx_payload(&amp;amp;rx_payload) == NRF_SUCCESS)
{
// Handle packet
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But in the other one (esb_low_power_prx) it is done this way (better):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;while (nrf_esb_read_rx_payload(&amp;amp;rx_payload) == NRF_SUCCESS)
{
// Handle packet
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Would be nice if there was&amp;nbsp;consistency in the example projects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247770?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 07:04:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0297f188-d244-49b5-a688-d0556c909258</guid><dc:creator>Aune</dc:creator><description>&lt;p&gt;Okey, sounds reasonable. Thanks for taking the time to explain.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247463?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 07:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3845809-aeb9-4bf9-bb41-7f3f50a4de04</guid><dc:creator>Kenneth</dc:creator><description>[quote user="Aune"]Or is it possible, in your opinion, that one receiver misses the payload, while two receives it [/quote]
&lt;p&gt;Yes it is, because the antennas are far from omni-directional. This means that in some directions they can +-20dB gain or attentuation, which of course will impact how much an interference source impact reception. Also the frequency, reflections etc will impact.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247448?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 06:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9ffe788-0175-4754-bccb-0be697a0d2d1</guid><dc:creator>Aune</dc:creator><description>&lt;p&gt;Yes that is a possibility I agree, but wouldn&amp;#39;t this affect all three receives the same way ? Or is it possible, in your opinion, that one receiver misses the payload, while two receives it ? This is the scenario I cannot understand...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247247?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 09:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a070273-872b-4a01-ac0e-2f70a31c4465</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;An error in the address due to noise from nearby Wifi or BT can cause the packet not be be received, however this will only occur from time to time. In such case you will not receive any packet, can this be the case?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247230?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 07:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ca1514d-1be8-45b7-aa0c-92e406d82d75</guid><dc:creator>Aune</dc:creator><description>&lt;p&gt;Understandable, but what about the scenario when two of the receivers got the payload, while the third did not, and it did not report a CRC error. In your opinion, can this be explained by noise ?&lt;/p&gt;
&lt;p&gt;Our priority is to make 100% sure that is not a software issue...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247101?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 12:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f88a6871-c6be-451e-95ea-2f1dd71209be</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The radio is demodulating on-air noise continuously, these are random patterns which over time may hit the configured address, in such case the radio will receive a packet, however the packet is corrupt -&amp;gt; CRCSTATUS = 0. So the packet should be discarded.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247037?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 10:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:512d45e7-2962-455b-b78a-1ba4b25b0d57</guid><dc:creator>Aune</dc:creator><description>&lt;p&gt;True, I will look into that and see there is an opening in the code that would allow this, never thought about it to be honest..&lt;/p&gt;
&lt;p&gt;But would that explain why one of the receivers suddenly reports an RX with&amp;nbsp;NRF_RADIO-&amp;gt;CRCSTATUS = 0 ? In this case I do not the&amp;nbsp;&lt;span&gt;NRF_ESB_EVENT_RX_RECEIVED. But something has to trigger the it.... ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247030?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 09:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89b918a8-e528-4933-b0d0-0341412fe693</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Technically possible yes, for instance if the application are processing other interrupts with higher or same priority.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247025?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 09:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3275041-b07a-424b-a845-20e57f2783fb</guid><dc:creator>Aune</dc:creator><description>&lt;p&gt;Yes, the CRC is set to 16 bit, I used the&amp;nbsp;NRF_ESB_DEFAULT_CONFIG so didn&amp;#39;t see it at first glance..&lt;/p&gt;
&lt;p&gt;Currently I&amp;#39;m just caling&amp;nbsp;&lt;span&gt;nrf_esb_read_rx_payload() one for each&amp;nbsp;NRF_ESB_EVENT_RX_RECEIVED event. Is it possible for esb to receive two payloads before issuing the event ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/247008?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 08:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac5a6b46-36dc-4d6a-91ed-af63281dba3c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;When you call&amp;nbsp;nrf_esb_init() there is a parameter in&amp;nbsp;nrf_esb_config_t that configure CRC length.&lt;/p&gt;
&lt;p&gt;Are you calling&amp;nbsp;nrf_esb_read_rx_payload() until&amp;nbsp;NRF_ERROR_NOT_FOUND?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/246957?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 05:30:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67b815df-819b-4294-9f2d-b25923f9fa6a</guid><dc:creator>Aune</dc:creator><description>&lt;p&gt;I&amp;#39;m using esb, so the CRC is 16 bit isn&amp;#39;t it ? esb stack handles this..&lt;/p&gt;
&lt;p&gt;The content changes slightly, a packet counter increments between each transmission.This is what I use to determine if all receives lost the same payload.&lt;/p&gt;
&lt;p&gt;Noise or signal interference could of course be the issue, but I would think this would cause all receivers to loose the payload,not just some of them.. So really at a loss why this is happening.. Been looking at the errata and cannot find anything here that would explain it. The errors surrounding the radio should already be handled by the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/246741?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 09:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c89e573-43a3-4592-bded-b43fe9238eae</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Your configuration should avoid the problem I described yes.&lt;/p&gt;
&lt;p&gt;What CRC length do you have? Does the packet content from TX to RX change between each transmit?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/246354?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 20:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4363bd32-5f5d-41e0-9053-24fae3a24ce6</guid><dc:creator>Aune</dc:creator><description>&lt;p&gt;On the nRF24 the EN_AA register is set to 0, disabling auto-ack on all pipes. On the nRF52, selective_autoack is set to true, and in the tx payload, the noack is also set to true, so ACK should be turned off right ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loosing radio packets</title><link>https://devzone.nordicsemi.com/thread/246272?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 12:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb609def-d257-44af-8ff7-d26ca3274e5d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;For this to work you need to disable ack, else a combination of the following case may occur:&lt;/p&gt;
&lt;p&gt;2 receives the packet, 1 doesn&amp;#39;t receive the packet due to noise or interference&lt;/p&gt;
&lt;p&gt;2&amp;nbsp;receivers ack the packet, 1 now receive the ack&lt;/p&gt;
&lt;p&gt;1 ack the ack, 2 now receive the ack&lt;/p&gt;
&lt;p&gt;2 ack the ack, 1 receive the ack&lt;/p&gt;
&lt;p&gt;..&lt;/p&gt;
&lt;p&gt;This may end in an endless loop, can this be the case?&lt;/p&gt;
&lt;p&gt;For the nRF24L01+ make sure to check all irq sources for each transmission, since it is possible to receive RX_DR even for a transmitter. Also make sure to always read out the packet length if there is an RX_DR irq, and if the length exceed 32bytes you need to flush the rx fifo before next transmission or reception may occur.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>