<?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>nRF21540-DK how to get good results?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119725/nrf21540-dk-how-to-get-good-results</link><description>I just received the nRF21540-DK and am trying to see the range enhancements. 
 I simply created a new application by copying the &amp;quot;Bluetooth Peripheral&amp;quot; sample in Visual Studio Code with nRF Connect SDK v2.9.0, added &amp;quot; CONFIG_BT_CTLR_PHY_2M =n&amp;quot; to prj</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Mar 2025 13:19:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119725/nrf21540-dk-how-to-get-good-results" /><item><title>RE: nRF21540-DK how to get good results?</title><link>https://devzone.nordicsemi.com/thread/527384?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 13:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc494e1-fb46-45d2-8e5a-76c001aca7eb</guid><dc:creator>Emil Lenngren</dc:creator><description>&lt;p&gt;Thanks! That makes it more clear now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540-DK how to get good results?</title><link>https://devzone.nordicsemi.com/thread/527382?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 13:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19fee19-98d9-43aa-985f-c4d1b96748a9</guid><dc:creator>Bendik Heiskel</dc:creator><description>[quote user="Emil Lenngren"]I was assuming the higher tx power of 10 dBm was automatically set because this document&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/fem_nRF21540_optional_properties.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/fem_nRF21540_optional_properties.html &lt;/a&gt;says &amp;quot;&lt;span&gt;nRF21540 implementations have the gain set to&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;10&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;by default&amp;quot;. Therefore I&amp;#39;m wondering, how does the&amp;nbsp;&lt;/span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB setting relate to&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_ANTENNA? Will the SDK set gain to 10 on the FEM and then set the radio peripheral&amp;#39;s TX power to&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA minus 10 so that the desired tx power is achieved? Or how does it work?&lt;/span&gt;[/quote]
&lt;p&gt;The CONFIG_BT_CTLR_TX_PWR_ANTENNA sets the final output power on the antenna, output power from the SoC + the gain from the FEM. So by default when CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB is set to 10dB the output power of the SoC is turned down to -10dBm, to achieve 0dBm.&lt;/p&gt;
&lt;p&gt;Due to the radio having only a set number of TX powers it can transmit at, not all output powers requested using CONFIG_BT_CTRLR_TX_PWR_ANTENNA is possible, in this situation the MPSL front end module driver will make sure that the actual output power on the antenna is equal or lower to what is being requested.&lt;/p&gt;
&lt;p&gt;If 11dBm is requested at the antenna, and the nRF21540 is used in GPIO only mode(only 10 or 20dB gain) the closes possible combination without exceeding the requested output power is 10dBm since the radio can&amp;#39;t transmit 1dBm. &lt;/p&gt;
[quote user="Emil Lenngren"]&lt;span&gt;I&amp;#39;m also wondering, is the LNA always activated in the SDK by default, or do I have to do something there as well to also get better receive sensitivity?&lt;/span&gt;[/quote]
&lt;p&gt;The LNA is always active when the FEM is in RX mode, this is controlled by the MPSL FEM driver, so you don&amp;#39;t need to do anything extra to enable the gain.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Bendik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540-DK how to get good results?</title><link>https://devzone.nordicsemi.com/thread/526874?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 09:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9330fcd3-b50f-44e7-b6bf-90d50a194524</guid><dc:creator>Emil Lenngren</dc:creator><description>&lt;p&gt;Thanks! I think that made the trick.&lt;/p&gt;
&lt;p&gt;I was assuming the higher tx power of 10 dBm was automatically set because this document&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/fem_nRF21540_optional_properties.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/fem_nRF21540_optional_properties.html &lt;/a&gt;says &amp;quot;&lt;span&gt;nRF21540 implementations have the gain set to&amp;nbsp;&lt;/span&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;10&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;by default&amp;quot;. Therefore I&amp;#39;m wondering, how does the&amp;nbsp;&lt;/span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB setting relate to&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_ANTENNA? Will the SDK set gain to 10 on the FEM and then set the radio peripheral&amp;#39;s TX power to&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA minus 10 so that the desired tx power is achieved? Or how does it work?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In any case, I would suggest you to write in the quick start or getting started documentation of nRF21540-DK that the&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_ANTENNA setting must be modified to actually get any amplification, because I was under the impression that the amplification was done automatically when FEM was activated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m also wondering, is the LNA always activated in the SDK by default, or do I have to do something there as well to also get better receive sensitivity?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF21540-DK how to get good results?</title><link>https://devzone.nordicsemi.com/thread/526861?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 09:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04444ab5-62c1-4573-a8ae-ecf2d0e5fc2d</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;By default the output power for all BLE samples is 0dBm, even when building for the nRF21540DK.&lt;/p&gt;
&lt;p&gt;To increase the output power you can change&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_CTLR_TX_PWR_ANTENNA"&gt;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/span&gt;&lt;/a&gt; to statically set the output power.&lt;/p&gt;
&lt;p&gt;To dynamically change the output power you can use the hci_pwr_ctrl sample:&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/bluetooth/hci_pwr_ctrl"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/bluetooth/hci_pwr_ctrl&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By default this sample uses 4dBm max, so you need to modify the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ff01b5fcc22333ff6f7bafebe79464d4d85c01fd/samples/bluetooth/hci_pwr_ctrl/src/main.c#L47C1-L48C30"&gt;tx_power array&lt;/a&gt; to use higher TX powers.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Bendik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>