<?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 ACK packet not received?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36842/esb-ack-packet-not-received</link><description>Hi. 
 I am experimenting with using a nRF52832 to communicate with a nRF24L01+. It is almost working, the nRF52 is sending a packed to the nRF24 ok, and the NRF_ESB_EVENT_TX_SUCCESS event is triggered when the device is in range, so it must be at least</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Jul 2018 11:44:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36842/esb-ack-packet-not-received" /><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/142142?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 11:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bc0f3b6-03b6-4482-a3f2-e05481f982ad</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks, yes&amp;nbsp;that works bit better solution than the one I posted earlier to get it working. As you say there is no length byte at the start of the payload.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your all your help,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Phil&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/142137?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 11:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ccf03b3-34a7-4c82-abdf-53b2866648d9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Just wondering,&amp;nbsp;if it was working&amp;nbsp;would both the&amp;nbsp;NRF_ESB_EVENT_TX_SUCCESS and the&amp;nbsp;NRF_ESB_EVENT_RX_RECEIVED events be triggered?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You&amp;#39;ll see both.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to replicate your scenario, and since the &amp;quot;length&amp;quot; field is disregarded if you use a static length in nRF24L (nRF24L01+ datasheet, chapter 7.3.3.1), you have to hard-code everything to 32 bytes.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a rev2 that does this:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-44b08ba986bc4029903ab01caec71a43/nrf_5F00_esb_5F00_statick_5F00_ack_5F00_32b_5F00_rev2.c"&gt;devzone.nordicsemi.com/.../nrf_5F00_esb_5F00_statick_5F00_ack_5F00_32b_5F00_rev2.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you try it and see if it works now?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again; this is highly experimental and given &amp;quot;as is&amp;quot;, it may likely break other configurations of nrf_esb, so it should only be used for your scenario!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/142127?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 10:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8222eefe-b215-4ad6-b43e-d66e925a82ff</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;It is working now thanks! I had to make a couple of extra changes. I have attached an updated version of the c file.&lt;/p&gt;
&lt;p&gt;I have done a few tests watching the returned ACK packet contents, and it seems to be correct. Not sure if this will introduce any other little bugs but seems ok at the moment.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Phil&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf_5F00_esb_5F00_static_5F00_ack_5F00_32bV2.c"&gt;devzone.nordicsemi.com/.../nrf_5F00_esb_5F00_static_5F00_ack_5F00_32bV2.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/141980?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 14:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62042310-ccce-4111-8ddd-f669e8e0ced6</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;Gave that a try, still no&amp;nbsp;&lt;span&gt;NRF_ESB_EVENT_RX_RECEIVED event being triggered&amp;nbsp;still the&amp;nbsp;NRF_ESB_EVENT_TX_SUCCESS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Just wondering,&amp;nbsp;if it was working&amp;nbsp;would both the&amp;nbsp;NRF_ESB_EVENT_TX_SUCCESS and the&amp;nbsp;NRF_ESB_EVENT_RX_RECEIVED events be triggered? Or would just the&amp;nbsp;NRF_ESB_EVENT_RX_RECEIVED event be triggered?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/141945?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a3d4b77-0b83-4afb-838b-3cf3fcbd1a7d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Ok, thanks. Just needed to double-check, so that I hadn&amp;#39;t misunderstood.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What you need to do in this case is to patch the nrf_esb library to always receive 32 bytes ACK. This would require a bit of work (and likely more testing than actual work?), as this is not a scenario that is covered in nrf_esb. First, you&amp;#39;ll need to adjust the radio registers payload length to be 32 bytes in state &amp;quot;NRF_ESB_PROTOCOL_ESB&amp;quot; when receiving an ACK, and then you&amp;#39;ll need to always assume that there&amp;#39;s an 32 byte ACK payload in order to get the evt NRF_ESB_EVENT_RX_RECEIVED.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a quick mock-up that I have not tested, as I do not have this specific setup (may include side-effects!). Could you test it and see if you receive anything on the reverse-channel (ACK payload) ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf_5F00_esb_5F00_static_5F00_ack_5F00_32b.c"&gt;devzone.nordicsemi.com/.../nrf_5F00_esb_5F00_static_5F00_ack_5F00_32b.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(note: Based on SDK 15, and you&amp;#39;ll need to define &amp;quot;ALWAYS_32B_ACK&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/141935?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4efc669d-dd84-4b15-bcf2-c0971fd68b0b</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;Yes we always send 32 bytes back to the transmitter in the ACK. We&amp;nbsp;write 0x00 bytes to pad out to 32 bytes if we don&amp;#39;t have&amp;nbsp;32 bytes&amp;nbsp;to send.&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;hindsight using dynamic payload would have been good, but this is now a legacy system so would be good to be able to communicate with it using a nRF52...&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/141930?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:687c8690-8919-45e0-81a7-534102abdb26</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If I understand correctly, then this is a very unusual configuration.&lt;/p&gt;
&lt;p&gt;You have DPL=0, but EN_ACK_PAY=1. For this to work, you always have to send the static payload length (32 bytes) back to the transmitter in the ACK. Could you please confirm your configuration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/141923?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e30df9c-880d-4daf-b844-51b979f74181</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;H&amp;aring;kon, thanks for getting back to me.&lt;/p&gt;
&lt;p&gt;The nRF24L which is in RX mode is configured with ACK enabled, dynamic payload disabled, and 32 bytes are written to the ACK payload to send i.e. max allowed. It is definitely sending an ACK, as we get two way comms with our other legacy kit (what we are trying to replicate with the nRF52832).&lt;/p&gt;
&lt;p&gt;The nRF24L is setup as a legacy system so I haven&amp;#39;t changed any settings, and&amp;nbsp;it communicates with other nRF24L set up as TX&amp;#39;s ok.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the nRF24L you don&amp;#39;t need to enable dynamic payload length to be able to send ACKs. We are very familiar with those modules. You just setup the expected payload size on the nRF24L you setup as the TX.&lt;/p&gt;
&lt;p&gt;Ideally we want to be able to read the ACK payload on the nRF52832 without havn&amp;#39;t to change any settings on the old legacy&amp;nbsp;&lt;span&gt;nRF24L.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Phil&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/141913?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 12:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a1f4327-10b5-4ab9-a144-a72a5f2f128c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If your nRF24L radio is configured with static length (and thus; no , you should configure nrf_esb with mode NRF_ESB_PROTOCOL_ESB.&lt;/p&gt;
&lt;p&gt;How is your nRF24L radio configured, and how are you setting up the nrf_esb?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you actually sending an ACK payload from the nRF24L side? If so, then you have to enable the&amp;nbsp;EN_ACK_PAY (and thus the dynamic payload lengths).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB ACK packet not received?</title><link>https://devzone.nordicsemi.com/thread/141448?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 06:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a5ee1ab-63ac-49d2-9154-be564abf1090</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;I have just found a few similar cases that suggest a data packed can only be received with the ACK if the protocol is&amp;nbsp;&lt;span&gt;NRF_ESB_PROTOCOL_ESB_DPL&lt;/span&gt;&lt;span&gt;&amp;nbsp;rather than&lt;/span&gt;&amp;nbsp;&lt;span&gt;NRF_ESB_PROTOCOL_ESB&amp;nbsp;i.e. dynamic payload is on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So does this mean a legacy nRF24L01+ system set up to use static payloads and as a RX, can&amp;#39;t communicate&amp;nbsp;back via ACK to a nRF52832 setup as a TX?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>