<?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 event handler not called in PTX mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15504/esb-event-handler-not-called-in-ptx-mode</link><description>Hi, 
 I wrote a program that uses ESB communication between two nodes. On both sides I use the same ESB configuration and the same ESB init function, the difference is only what the nrf_esb_mode is being set to ( NRF_ESB_MODE_PTX or NRF_ESB_MODE_PRX</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Aug 2016 17:32:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15504/esb-event-handler-not-called-in-ptx-mode" /><item><title>RE: ESB event handler not called in PTX mode</title><link>https://devzone.nordicsemi.com/thread/59213?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 17:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f63a4dc-43b3-445b-a8b8-a345d6ecb8c0</guid><dc:creator>NewtoM</dc:creator><description>&lt;p&gt;OK, it was a long journey, but I seem to have the answer.&lt;/p&gt;
&lt;p&gt;To properly change role from PRX to PTX it is not enough to change &lt;code&gt;nrf_esb_mode&lt;/code&gt; and call &lt;code&gt;nrf_esb_init()&lt;/code&gt; with the changed configuration. It is also necessary to call &lt;code&gt;nrf_esb_stop_rx()&lt;/code&gt; prior to that. Then, events will occur and can be handled in PTX mode as expected.&lt;/p&gt;
&lt;p&gt;Vice versa, when changing from PTX to PRX, aftger the &lt;code&gt;nrf_esb_init()&lt;/code&gt; also &lt;code&gt;nrf_esb_start_rx()&lt;/code&gt; needs to be called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>