<?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>Issues using nrf_esb_set_rf_channel() to change frequency on nRF52 ESB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33264/issues-using-nrf_esb_set_rf_channel-to-change-frequency-on-nrf52-esb</link><description>I&amp;#39;m using an nRF52 (PRX) to communicate with with an nRF24L01+ (PTX) using ESB. As part of a pairing routine they need to switch channel and addresses. I&amp;#39;ve confirmed that the nRF52 is receiving the correct frequency and address, but it still fails to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 May 2018 00:23:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33264/issues-using-nrf_esb_set_rf_channel-to-change-frequency-on-nrf52-esb" /><item><title>RE: Issues using nrf_esb_set_rf_channel() to change frequency on nRF52 ESB</title><link>https://devzone.nordicsemi.com/thread/130692?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 00:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f8b37a3-6687-4bf3-9d38-0ccf456de0f8</guid><dc:creator>igd</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    write_register_nrf24(0x00, 0b01001110); //all interrupts enabled except RX_DR, 2 byte CRC, power up, PTX
    write_register_nrf24(0x01, 0b00000001); //auto-ack enabled on data pipe 0
    write_register_nrf24(0x02, 0b00000001); //enable RX data pipe 0
    write_register_nrf24(0x03, 0b00000011); //5 byte addressing
    write_register_nrf24(0x04, 0b01010001); // enable retransmit 5 times, ARD=500us - ARD must be &amp;gt;= 500 when transmitting at 2 Mbps

    write_register_nrf24(0x05, STANDARD_PAIRING_CHANNEL); //Use +125MHz for pairing

    write_register_nrf24(0x06, 0b00001110); // 2 Mbps, max power
    write_register_nrf24(0x07, 0b00110000); // clear all interrupts

    outgoing_data_nrf24[0] = 0x20 | 0x0A; // pipe 0 RX address register
    outgoing_data_nrf24[1] = pairing_mode_address[0];
    outgoing_data_nrf24[2] = pairing_mode_address[1];
    outgoing_data_nrf24[3] = pairing_mode_address[2];
    outgoing_data_nrf24[4] = pairing_mode_address[3];
    outgoing_data_nrf24[5] = pairing_mode_address[4];
    write_byte_to_nrf24(6); // set Pipe 0 reciving address

    outgoing_data_nrf24[0] = 0x20 | 0x10; // pipe 0 TX address register
    outgoing_data_nrf24[1] = pairing_mode_address[0];
    outgoing_data_nrf24[2] = pairing_mode_address[1];
    outgoing_data_nrf24[3] = pairing_mode_address[2];
    outgoing_data_nrf24[4] = pairing_mode_address[3];
    outgoing_data_nrf24[5] = pairing_mode_address[4];
    write_byte_to_nrf24(6); // set Pipe 0 reciving address

    write_register_nrf24(0x11, 7); //7 byte packet for pairing mode
    write_register_nrf24(0x1C, 0b00000001); //enable dynamic payload length data pipe 0
    write_register_nrf24(0x1D, 0b00000110); //enable dynamic payload length, payload w/ ACK

    outgoing_data_nrf24[0] = 0b11100001; //flush TX
    write_byte_to_nrf24(1);
    outgoing_data_nrf24[0] = 0b11100010; //flush RX
    write_byte_to_nrf24(1);

    CE_SPI1 = 0; //disable the chip (CE stands for Chip enable) - for PTX mode&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hi Hakon, yes still experiencing the problem. Here is my configuration code for the nRF24L side.&lt;br /&gt;&lt;br /&gt;To add some more detail about the system I have two modules that communicate over ESB, one PRX and one PTX. In the past both sides were nRF24 and worked reliably. I&amp;#39;m now trying to replace the PRX side with a nRF52. At startup they load the last used frequency and address from flash memory and start communicating. I have this much working with the nRF52. It starts up, receives a frequency and address from the main MCU over SPI, and starts communicating.&lt;/p&gt;
&lt;p&gt;The problem arises when I want to change the frequency and address. PTX picks frequency, PRX, picks address, they exchange info on a designated channel then resume normal operation. WIth two nRF24s this works fine but the nRF52 does not seem to switch either frequency or address successfully.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues using nrf_esb_set_rf_channel() to change frequency on nRF52 ESB</title><link>https://devzone.nordicsemi.com/thread/130564?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8d0f6ef-a881-4051-9c7c-ac94035d9eb2</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;I am very sorry for the late reply.&lt;/p&gt;
&lt;p&gt;Are you still seeing this issue? If so, could you share the nRF24L-side configuration?&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></channel></rss>