<?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>802.15.4 Stack with FEM Control</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53449/802-15-4-stack-with-fem-control</link><description>We have an application for using the 802.15.4 protocol with a nRf52840 and a Front End Module. We are looking for an approach to take for integrating the FEM control into the firmware. 
 First I wanted to ask: Could you recommend an approach on how we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2019 07:21:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53449/802-15-4-stack-with-fem-control" /><item><title>RE: 802.15.4 Stack with FEM Control</title><link>https://devzone.nordicsemi.com/thread/216286?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 07:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:591a0f1e-8a39-4041-9dc4-4b117476b1a4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Eboris,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I sincerly apologize for the late reply. I have been out of office.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1) Use the SDK&amp;nbsp;15.3 with the S140 soft device. Use the API sd_ble_opt_set() with a configured configuration structure and the soft device should take control of the FEM. Would the soft device then automatically control the FEM?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Our SoftDevices only support Bluetooth Low Energy, so configuring the SD to use a FEM using&amp;nbsp;sd_ble_opt_set() will only affect BLE. When running BLE concurrently with a 802.15.4-based protocol, then the 802.15.4 stack will be running in a SoftDevice Timeslot, i.e. a timeslot inbetween the BLE events. The RADIO peripheral is then reconfigured by the 802.15.4 stack and then when the timeslot ends the SoftDevice configures it back to the settings it uses.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2)&amp;nbsp;Use the SDK&amp;nbsp;15.3 with the S140 soft device.&amp;nbsp;Then use a PPI event from when radio turns ON to Tx to initiate an action on a GPIO pin that would turn the PA of the FEM. Likewise an Rx event would create a PPI event to initiate and action on another GPIO pin that would turn the LNA ON.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, this might be a doable solution, you could for instance use the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html?cp=3_0_0_5_19_13#register.EVENTS_TXREADY"&gt;EVENTS_TXREADY&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html?cp=3_0_0_5_19_13#register.EVENTS_RXREADY"&gt;EVENTS_RXREADY&lt;/a&gt;&amp;nbsp;events to turn on the PA/LNA of the FEM,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) Use the 802.15.4 stack in Zephyr. Modify the Zephyr stack to add the FEM control.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess this also might be a viable solution, but I have not worked with the&amp;nbsp;802.15.4 stack in Zephyr so I do not know how much effort this will be.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>