<?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>NRF52 ESB RX-TX</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20574/nrf52-esb-rx-tx</link><description>how to change RX and TX operations ?
i wrote next code: 
 #include &amp;quot;nrf_esb.h&amp;quot;
#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;
#include &amp;quot;sdk_common.h&amp;quot;
#include &amp;quot;nrf.h&amp;quot;
#include &amp;quot;nrf_esb_error_codes.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
#include</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Mar 2017 09:47:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20574/nrf52-esb-rx-tx" /><item><title>RE: NRF52 ESB RX-TX</title><link>https://devzone.nordicsemi.com/thread/80197?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2017 09:47:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdd73ea9-00e7-4a7c-a600-183a9c5b351c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@amigo: You have another case &lt;a href="https://devzone.nordicsemi.com/question/121789/how-to-change-rx-to-tx-and-back-on-the-go-on-nrf52-esb/"&gt;here&lt;/a&gt; you mentioned that it worked for you. Could you confirm the issue is fixed ?&lt;/p&gt;
&lt;p&gt;For your setup I would suggest you configure the server as PRX and clients as PTXs. Instead of server initially send to client commands , you can use it the reversed way, the client sends packets to ping the server periodically and if the server has a command to send to the client, the server can send the command as ACK payload.
This way the server always PRX and the client is always PTX. This make it easier to implement and most power efficient as only the server stay in RX mode.&lt;/p&gt;
&lt;p&gt;You can do what you are doing, meaning all will stay mainly in PRX mode, all the time, and this will cause lots of power consumption.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 ESB RX-TX</title><link>https://devzone.nordicsemi.com/thread/80199?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2017 09:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:535063ce-3926-4eaf-8732-ed588365fe3b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Amigo : Please edit your question and add your explanation or code in. What you wrote here is not an answer for  your question. You can either comment or edit question to add information. please remove this answer after you have done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 ESB RX-TX</title><link>https://devzone.nordicsemi.com/thread/80198?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2017 17:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df229fb-13fa-45b5-aafc-690d49f8c79d</guid><dc:creator>Amigo</dc:creator><description>&lt;p&gt;@Hung Bui:&lt;/p&gt;
&lt;p&gt;i&amp;#39;m using NRF24l01 with stm32 as server.  nrf52-dk board with some sensors as a client.
Server send to a client (clients) request packet (any user protocol). Client (nrf52) cheks an itsef&amp;#39;s address, command and execute required functions. Then client sends data  back to master (NRF24L01).
Server uses  ADDRESS_P0[] = {0xE7, 0xE7, 0xE7, 0xE7, 0xE7}; pipe.
Client may use one of other pipes adresses.&lt;/p&gt;
&lt;p&gt;NRF24 configuration: 2Mbps, auto ACK, 2byte CRC&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void Radio_Config(void) 
{
  Radio_Write_Reg(STATUS, NOP);
  Radio_Write_Reg(CONFIG, 0x00);
  
  NRF_CSN_LO();
  SPI_rw(FLUSH_RX);
  NRF_CSN_HI();

  NRF_CSN_LO();
  SPI_rw(FLUSH_TX);
  NRF_CSN_HI();
  
  //RF settings 0 dBm, 2 Mbps, LNA Set up
  Radio_Write_Reg(RF_SETUP, 0x0F);
  //Channel settings - #4 0 to 125  
  Radio_Write_Reg(RF_CH, NRF_CHANNEL);
  //ACK settings - with ACK
  Radio_Write_Reg(EN_AA, 0xFF);
  //1000 us retransmission up to 2 times
  Radio_Write_Reg(SETUP_RETR, 0x50);

 //32 byte fifo
  Radio_Write_Reg(RX_PW_P0, NRF_BUFF_SIZE);
  Radio_Write_Reg(RX_PW_P1, NRF_BUFF_SIZE);
  
  //for RX_MODE
  //enable Pipe0, Pipe1
  Radio_Write_Reg(EN_RXADDR, 0x03);
  
  Radio_WrRXAddr(RX_ADDR_P0, ADDRESS_P0, 5);
  Radio_WrRXAddr(RX_ADDR_P1, ADDRESS_P1, 5);
  Radio_WrRXAddr(RX_ADDR_P2, ADDRESS_P2, 5);
  Radio_WrRXAddr(RX_ADDR_P3, ADDRESS_P3, 5);
  Radio_WrRXAddr(RX_ADDR_P4, ADDRESS_P4, 5);
  Radio_WrRXAddr(RX_ADDR_P5, ADDRESS_P5, 5);
  
//for TX_MODE		
  //Radio_WrTXAddr(ADDRESS_P0, 5);
  Radio_WrTXAddr(ADDRESS_P1, 5);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 ESB RX-TX</title><link>https://devzone.nordicsemi.com/thread/80196?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2017 15:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25a16ed8-58c1-435b-bbca-f4d944ecf5a4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Amigo: Please describe your set-up more clearly.
When you switch nRF52 with RX and TX mode, which device will act as peer device ? How would they sync ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 ESB RX-TX</title><link>https://devzone.nordicsemi.com/thread/80201?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2017 16:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c763a38-7489-4c81-a718-167a82756678</guid><dc:creator>Amigo</dc:creator><description>&lt;p&gt;My 2nd device is nrf24l01 was set up with auto ack with retransmition (1000 us up to 2 times).
It works well with nrf52 only in TX mode or in Rx mode separatly. but i need nrf52 to start to works in rx mode. By request nrf52 has to answer on request, that means nrf52 runs in tx mode. then it turns back in RX mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 ESB RX-TX</title><link>https://devzone.nordicsemi.com/thread/80200?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2017 14:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13825b88-d587-445a-9a15-7771efd5b988</guid><dc:creator>J&amp;#248;rgen Kvalvaag</dc:creator><description>&lt;p&gt;TX error means that the packet was not ACKed by the receiver. If you don&amp;#39;t have a receiver/RX set up you will get TX failed event for every payload you send.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>