<?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>Double direction communication problem in ESB protocol (PTX --&amp;gt; PRX --&amp;gt; PTX)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16062/double-direction-communication-problem-in-esb-protocol-ptx----prx----ptx</link><description>Hey, 
 I have two nrf52 development board. One is PRX, one is PTX. I try to realize the scenario that:
PTX transmits a number like &amp;quot;100&amp;quot;, PRX receives this data &amp;quot;100&amp;quot; and plus &amp;quot;1&amp;quot;. Now data is &amp;quot;101&amp;quot; at the PRX side. And PRX transmits &amp;quot;101&amp;quot; to PTX as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Aug 2016 07:28:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16062/double-direction-communication-problem-in-esb-protocol-ptx----prx----ptx" /><item><title>RE: Double direction communication problem in ESB protocol (PTX --&gt; PRX --&gt; PTX)</title><link>https://devzone.nordicsemi.com/thread/61251?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 07:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b35db16-565a-4b27-bb2b-cbcccefd8db8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The initial case you describe seems OK to me (unless I got something wrong):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;PTX sends a number (100) to the PRX&lt;/li&gt;
&lt;li&gt;PRX adds 1 to the received number and sends that number (101) in the ACK &lt;em&gt;with payload&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To implement this the PRX should use selective ack and use &lt;code&gt;nrf_esb_write_payload()&lt;/code&gt; to write the data that goes in the ack package.&lt;/p&gt;
&lt;p&gt;Regarding the updated part of your question. Why do you have to switch mode, if you only need to send a ack with payload? Can you be more specific about what you do in this case, and what happens before the chip is reset? It could be due to an APP_ERROR_CHECK that fails, and if so, it can easily be debugged (described in &lt;a href="https://devzone.nordicsemi.com/blogs/821"&gt;An introduction to error handling in nRF5 projects&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>