<?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>Using nrf5340dk with the nrf21540 EK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110536/using-nrf5340dk-with-the-nrf21540-ek</link><description>Hey I have a question regarding the setup described in the title. I have an application built upon the &amp;quot;Throughput Sample&amp;quot; of Nordic Semiconductor. To get a farther Distance, the Receiver gets an nrf21540 EK, connected via the Arduino Headers and a SMA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Apr 2024 11:46:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110536/using-nrf5340dk-with-the-nrf21540-ek" /><item><title>RE: Using nrf5340dk with the nrf21540 EK</title><link>https://devzone.nordicsemi.com/thread/480668?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 11:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22e3b51a-3102-45d0-a5ad-612955481433</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I agree that it can be confusing what configuration settings to use with the FEM. I don&amp;#39;t think you need to change the factory calibration, I just wanted to mention it is an option.&amp;nbsp;&lt;/p&gt;
[quote userid="132876" url="~/f/nordic-q-a/110536/using-nrf5340dk-with-the-nrf21540-ek/480646"]Sorry, it still isn&amp;#39;t quite clear to me how to calibrate it as it does not make sense to me how to apply it. I want to have the FEM provide a 13dbm output power for Bluetooth LE. Can I just set the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/f50ad41dd6ea61d36bece05171768e12f5ceb5a3/subsys/bluetooth/controller/Kconfig#L408"&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/a&gt;&amp;nbsp;to 13, and the&amp;nbsp;&lt;span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB to 20 as default? Will that ensure me the desired output?&lt;/span&gt;[/quote]
&lt;p&gt;Yes, the RADIO.TXPOWER register will then be set to -7 to acheive the desired output. Note that +10 dBm is the max. output power permitted for BLE in Europe.&lt;/p&gt;
[quote userid="132876" url="~/f/nordic-q-a/110536/using-nrf5340dk-with-the-nrf21540-ek/480646"]Regarding the antenna diversity: As i Understand, this is only for&amp;nbsp;802.15.4? This won&amp;#39;t work for Bluetooth LE right?[/quote]
&lt;p&gt;Correct. Antenna diversity isn&amp;#39;t that useful for BLE due to channel hopping and short preamble. I haven&amp;#39;t seen anyone using it with BLE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf5340dk with the nrf21540 EK</title><link>https://devzone.nordicsemi.com/thread/480646?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 10:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8320f8a9-9d80-4128-af2d-e8b067d40a34</guid><dc:creator>zeuhor</dc:creator><description>&lt;p&gt;Sorry, it still isn&amp;#39;t quite clear to me how to calibrate it as it does not make sense to me how to apply it. I want to have the FEM provide a 13dbm output power for Bluetooth LE. Can I just set the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/f50ad41dd6ea61d36bece05171768e12f5ceb5a3/subsys/bluetooth/controller/Kconfig#L408"&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/a&gt;&amp;nbsp;to 13, and the&amp;nbsp;&lt;span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB to 20 as default? Will that ensure me the desired output? All these different Config variables seem conflicting to me, I apologise that i have to ask again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I don&amp;#39;t need to change the output power dynamically, I only want to set it once statically.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regarding the antenna diversity: As i Understand, this is only for&amp;nbsp;802.15.4? This won&amp;#39;t work for Bluetooth LE right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks and again sorry for the many questions&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf5340dk with the nrf21540 EK</title><link>https://devzone.nordicsemi.com/thread/480638?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 10:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9309936c-1edf-4576-a391-b372e5ed4d30</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can calibrate the FEM in production for other fixed output values. The&amp;nbsp;&lt;a class="toc-backref" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_fem.html#id16"&gt;FEM power model&lt;/a&gt;&amp;nbsp;can also be used to get the desired output power. The model will adjust the gain from the nRF RADIO to accomplish this.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The maximum output power depends on which RF protocol you are using, please refer to the &amp;#39;Maximum regulatory TX output power&amp;#39; table at this page:&amp;nbsp;&lt;/span&gt;&lt;a id="" style="font-family:inherit;" href="https://www.nordicsemi.com/Products/Wireless/Range-extenders"&gt;https://www.nordicsemi.com/Products/Wireless/Range-extenders&lt;/a&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1714039736376v1.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="132876" url="~/f/nordic-q-a/110536/using-nrf5340dk-with-the-nrf21540-ek/480596"]If you don&amp;#39;t support antenna diversity, what is the reason to have 2 antenna ports on the 21540?&amp;nbsp;[/quote]
&lt;p&gt;Sorry, I found now that&amp;nbsp;antenna diversity support is available for 15.4:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_802154/doc/antenna_diversity.html#ant-diversity-algorithm"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_802154/doc/antenna_diversity.html#ant-diversity-algorithm&lt;/a&gt;. Antenna diversity is primarily useful if you have two stationary devices communicating on a single frequency; if you are moving or frequency-hopping, you might as well retransmit as change antennas.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf5340dk with the nrf21540 EK</title><link>https://devzone.nordicsemi.com/thread/480596?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 07:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6122929c-cf42-40e2-9fd3-6764895b38a6</guid><dc:creator>zeuhor</dc:creator><description>&lt;p&gt;I see, so is it only possible to choose these 2 values?&lt;/p&gt;
&lt;p&gt;Because in my country there is the regulation that the maximum E.I.R.P is 100mW, so 20dbm. As my antenna has a dbi of 7, i want to set the gain value to 13 (so that the total strength is 20). Is this possible? Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t support antenna diversity, what is the reason to have 2 antenna ports on the 21540?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf5340dk with the nrf21540 EK</title><link>https://devzone.nordicsemi.com/thread/480583?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 07:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73877f00-f726-4113-9195-1109c91ce0c1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;The default values for &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/658f9986f2a60201d41bc077591efc29aebe99e6/subsys/mpsl/fem/Kconfig#L103"&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA&lt;/a&gt;&amp;nbsp;and&amp;nbsp;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTB represents the&amp;nbsp;factory-precalibrated gain values for the nRF21540 PA.&amp;nbsp;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB is used to select which one of these pre-calibrated values you want to use (i.e. +10 dBM or +20 dBm).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/f50ad41dd6ea61d36bece05171768e12f5ceb5a3/subsys/bluetooth/controller/Kconfig#L408"&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/a&gt; should be set equal to&amp;nbsp;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB if you want to +10 or +20 dBm on the antenna.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We currently don&amp;#39;t have any protocol stacks that use antenna diversity.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf5340dk with the nrf21540 EK</title><link>https://devzone.nordicsemi.com/thread/480521?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 16:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38dd031c-21f5-4012-85ac-f2f0c3302ef9</guid><dc:creator>zeuhor</dc:creator><description>&lt;p&gt;I see, I&amp;#39;ll try that, that does help a lot thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regarding the next steps, I have two general questions, only if you have time to answer:&lt;/p&gt;
&lt;p&gt;1. ) &amp;nbsp;I don&amp;#39;t get the difference between&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA or&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTB respectively, what do they represent? Why are there 3? And more important, how does it relate to the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA? Do these values add up?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;2.) How do I select which antenna i want? Is the switching between the antennas automatic (regarding antenna diversity)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using nrf5340dk with the nrf21540 EK</title><link>https://devzone.nordicsemi.com/thread/480423?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 11:10:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e10eeccb-9540-4bf8-b871-155c5649ff63</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You need to select the nrf21540ek_fwd shield for your parent image running on the application core.&lt;/p&gt;
&lt;p&gt;From the SDK documentation:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713956136845v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_fem.html#programming"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_fem.html#programming&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Build configuration to select relevant FEM shield for app and netcore&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713955938491v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Checking default MPSL FEM settings in generated .config output for BT controller on netcore&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713956283550v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DT overlay applied to netcore from selected shield&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713956527809v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DT overlay applied to appcore for pin forwarding from selected shield&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713956752450v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>