<?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>Quick switch between TX and RX in nrf51822 proprietary</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35243/quick-switch-between-tx-and-rx-in-nrf51822-proprietary</link><description>Hi, 
 As well know, the nrf51822 can only work either TX or RX mode at the same time. 
 Normally, the nrf51822 device is working in RX mode (by using function &amp;quot;nrf_esb_start_rx()&amp;quot; for receive packet. 
 If I want to send packet, then this device need change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jun 2018 08:57:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35243/quick-switch-between-tx-and-rx-in-nrf51822-proprietary" /><item><title>RE: Quick switch between TX and RX in nrf51822 proprietary</title><link>https://devzone.nordicsemi.com/thread/136302?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 08:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6069248a-4bde-4e98-b68c-91126b6c6c8e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Chianglin&lt;/p&gt;
&lt;p&gt;In that case I agree using ACK payloads is probably a bit impractical.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately the only safe way to change between PTX and PRX mode is to disable and re-init ESB.&amp;nbsp;&lt;br /&gt;Most applications don&amp;#39;t have to change between the two, and we haven&amp;#39;t tested&amp;nbsp;what would happen if you were to start the RX mode after initializing ESB in PTX mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should be possible to improve ESB to support a more dynamic switching between PTX and PRX modes, and I have requested this internally, but I don&amp;#39;t know when we will be able to implement it unfortunately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the time being you would have to stick to the slow method.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am a bit surprised the init takes such a long time. Have you measured this?&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: Quick switch between TX and RX in nrf51822 proprietary</title><link>https://devzone.nordicsemi.com/thread/136218?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 15:26:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ce1930-4f77-46c0-891f-6cafaab16693</guid><dc:creator>chianglin</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;Thank you four your answer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I had study the ESB&amp;nbsp;manual, but the PRX can only embed data in ACK and send to PTX site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For example, if PRX had receive one packet and the packet need forward to other node, then I need change current PRX node to PTX mode. After send packet to other node, the current node need change back to PRX mode, so it can listen packet.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the&amp;nbsp;fastest way to change between PTX and PRX?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chianglin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Quick switch between TX and RX in nrf51822 proprietary</title><link>https://devzone.nordicsemi.com/thread/136098?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 09:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c56b56-ac5e-4d52-b467-364228cef60b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Chianglin&lt;/p&gt;
&lt;p&gt;The idea behind the ESB protocol is to use the built in ACK feature to send data from the PRX to the PTX, rather than having to manually switch modes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By default the PRX will send an ACK packet after each packet received from the PTX, and you can embed data in this ACK if you want.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you looked into using this method to achieve bidirectional communication, or is there some reason this method is not suited for your application?&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></channel></rss>