<?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>nRF52840 dongle &amp;amp; nRF24L01 Pipe Config</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89258/nrf52840-dongle-nrf24l01-pipe-config</link><description>Hi, 
 I&amp;#39;m confused about ESB settings. I&amp;#39;m trying to renew our board with new nRF520840 chip and we must need to provide backward compatibility that the existing board has nRF24L01. 
 
 In the ESB example of NRF5 SDK the pipe settings is set by: 
 
 static</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 02 Jul 2022 20:18:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89258/nrf52840-dongle-nrf24l01-pipe-config" /><item><title>RE: nRF52840 dongle &amp; nRF24L01 Pipe Config</title><link>https://devzone.nordicsemi.com/thread/375200?ContentTypeID=1</link><pubDate>Sat, 02 Jul 2022 20:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b47e3500-0391-45ad-99ca-e5a6f75f2adf</guid><dc:creator>salihonur</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have no more questions under this topic.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle &amp; nRF24L01 Pipe Config</title><link>https://devzone.nordicsemi.com/thread/375098?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 12:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:904aa1cd-bee0-4173-9561-b9a4b6fb522a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Salih&lt;/p&gt;
&lt;p&gt;Good to hear that you got it working, and thanks for sharing your settings.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will consider the case closed then, unless you have more questions?&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: nRF52840 dongle &amp; nRF24L01 Pipe Config</title><link>https://devzone.nordicsemi.com/thread/374980?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2022 20:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d96d141f-6574-4e35-ae4a-b360b53c35b7</guid><dc:creator>salihonur</dc:creator><description>&lt;p&gt;Thanks a lot. Devices were successful paired according to the description in the links. To match, I needed to change NRF24 parameters like below to be suited to the example code of PTX. I&amp;#39;m sharing below what I did.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NRF24&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="c_cpp"&gt;const byte addr[5] = {0xE7, 0xE7, 0xE7, 0xE7, 0xE7};&amp;#160; &amp;#160;// Pipe address

&amp;#160; RF.setChannel(80); &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;// Custom channel. Same as NRF5
&amp;#160; RF.setDataRate(RF24_1MBPS); &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; // NRF52840 doens&amp;#39;t support 250KBs
&amp;#160; RF.openWritingPipe(addr);
&amp;#160; RF.openReadingPipe(1, addr);
&amp;#160; RF.enableAckPayload();
&amp;#160; RF.enableDynamicPayloads();
&amp;#160; RF.setRetries(2, 10); &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; // Whatever
&amp;#160; RF.setCRCLength(RF24_CRC_16);&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;NRF5&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;For the certain data package, I changed the code like below in the main function:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="c_cpp"&gt;static struct esb_payload test_payload;

short rf_data[25];
/* some stuff with rf_data */

test.length = 25;
test.noack = true;
for(i=0; i&amp;lt;25; i++)
&amp;#160; &amp;#160; &amp;#160;test.data[i] = rf_data[i];&amp;#160; // Data copy

err = esb_write_payload(&amp;amp;test);&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle &amp; nRF24L01 Pipe Config</title><link>https://devzone.nordicsemi.com/thread/374372?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2022 14:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8880e82-9b46-4b70-83c9-01636d745e29</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Salih&lt;/p&gt;
&lt;p&gt;I will help Markus out with this case as I have more experience with the ESB protocol.&amp;nbsp;&lt;/p&gt;
[quote user=""]As I understand from the function definition Red is the pipe index, blue is the data size, greens are the pipe bytes.&lt;strong&gt; Is it correct?&lt;/strong&gt;[/quote]
&lt;p&gt;The red value is the pipe index, that is correct, but there is no data size parameter. The macro sets the size according to how many bytes you include after the pipe index (8 bytes in this case).&amp;nbsp;&lt;/p&gt;
[quote user=""]Data size Is 24 bytes. &lt;strong&gt;So do I need to set &amp;quot;blue&amp;quot; parameter to 24?&lt;/strong&gt;[/quote]
&lt;p&gt;No. As I mentioned earlier the ESB_CREATE_PAYLOAD macro doesn&amp;#39;t take the size as an argument.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your case I would probably just populate the fields of the tx_payload struct directly, rather than use the ESB_CREATE_PAYLOAD macro. This macro is only meant as a utility macro to make it easy to define simple ESB payloads for the ESB samples, but is impractical to use in most applications where the payload content is dynamically rather than statically defined.&amp;nbsp;&lt;/p&gt;
[quote user=""]Is there only one pipe for both transmitting and receiving in new SDK (ESB)?[/quote]
&lt;p&gt;No, you can both receive or transmit on any pipe.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;strong&gt;Look like new SDK is require 7 pipe bytes if I&amp;#39;m correct. How can I set 5 byte pipe number? Is it like&amp;nbsp;&lt;/strong&gt;&lt;em&gt;ESB_CREATE_PAYLOAD(&lt;span style="color:rgba(255, 0, 0, 1);"&gt;0&lt;/span&gt;,&amp;nbsp;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;24&lt;/span&gt;,&amp;nbsp;&lt;span style="color:rgba(0, 128, 128, 1);"&gt;0xAA, 0xBB, 0xCC, 0xDD, 0xEE&lt;/span&gt;);&amp;nbsp; ?&lt;/em&gt;[/quote]
&lt;p&gt;I assume what you are referring to here is the RF address. The new ESB library allows you to use 3, 4 or 5 byte RF address, similar to the old nRF24L01 implementation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just keep in mind that setting the RF address has to be done separately, &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/esb/ptx/src/main.c#L110-L142"&gt;as shown&lt;/a&gt; in the standard ESB samples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, addresses are handled differently between the nRF24L series radios and the nRF5 series radios, as described in more detail &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_esb.html?highlight=esb#pipes-and-addressing"&gt;here&lt;/a&gt;.&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: nRF52840 dongle &amp; nRF24L01 Pipe Config</title><link>https://devzone.nordicsemi.com/thread/373894?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 10:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8813591-733d-4e76-bdf4-5c7f09b761ab</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Salih,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unfortunately, I need to put you off until next week, as our expert in this topic is out of office this week.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We will come back to you as soon as possible. My apologies for the inconvenience!&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>