<?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>Setting the TX Power and checking it in the terminal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116128/setting-the-tx-power-and-checking-it-in-the-terminal</link><description>Hello 
 I&amp;#39;m working with the nRF21540 and the nRF Connect SDK 2.6.2. 
 I would like to set my TX Power to 20 dBm and also check this value. Currently my configuration looks like this: 
 
 Unfortunately, I don&amp;#39;t know if that&amp;#39;s correct. I tried to test</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Nov 2024 11:59:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116128/setting-the-tx-power-and-checking-it-in-the-terminal" /><item><title>RE: Setting the TX Power and checking it in the terminal</title><link>https://devzone.nordicsemi.com/thread/509669?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 11:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cde411b-ac0f-4bb1-baae-98a8746e8751</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, my bad. I thought the&amp;nbsp;&lt;strong&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;/strong&gt;would also set the TX power, but it just forwards the FEM status to the MPSL, and &lt;strong&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/strong&gt; should be the right config to set the actual TX output.&lt;/p&gt;
&lt;p&gt;So, then the next mystery is why you get the value of 127. This is the maximum, which points to an invalid value. That could be because the TX power you get from the scanner side isn&amp;#39;t the TX power the kit sends with. I think you can use the following function to get the correct TX power here.&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.4.1/page/nrfxlib/mpsl/doc/api.html#c.mpsl_fem_pa_is_configured"&gt;https://docs.nordicsemi.com/bundle/ncs-2.4.1/page/nrfxlib/mpsl/doc/api.html#c.mpsl_fem_pa_is_configured&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the TX Power and checking it in the terminal</title><link>https://devzone.nordicsemi.com/thread/509401?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 09:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69cc2cb7-42c6-4f2f-a567-7b5fffb13ea1</guid><dc:creator>AlexandraK_04</dc:creator><description>&lt;div class="n4sEPd"&gt;
&lt;div class="QFw9Te BLojaf"&gt;
&lt;div id="ow6"&gt;However, the RSSI value is worse when using&lt;strong&gt; CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA&lt;/strong&gt; (RSSI -40dBm) than when I use &lt;strong&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/strong&gt; (RSSI -20 dBm).&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the TX Power and checking it in the terminal</title><link>https://devzone.nordicsemi.com/thread/509380?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 08:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f099fa9d-ff38-4fa9-893d-204b041cfd13</guid><dc:creator>AlexandraK_04</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/116128/setting-the-tx-power-and-checking-it-in-the-terminal/509368"]What RSSI do you see when you set the TX power lower on your end?[/quote]
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;If I set the Tx Power lower, the RSSI value gets worse (at 10 dBM RSSI: -25 to -30 and at 5 dBm RSSI: -35 to -40).&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;The value also gets worse when I increase the distance and at -80 the connection usually breaks off.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
[quote userid="75734" url="~/f/nordic-q-a/116128/setting-the-tx-power-and-checking-it-in-the-terminal/509368"]Are you using the GPIO to set up the nRF21540 on your end? [/quote]
&lt;p&gt;&lt;span&gt;Yes, and we only want to use GPIO and not SPI.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/116128/setting-the-tx-power-and-checking-it-in-the-terminal/509368"]Please also note that in the EU, 20 dBm is not allowed in commercial products, and a maximum of 10dBm is allowed. Just wanted to let you know that this is regulated. In markets like the US and some Asian countries this is fine though, I just wanted to let you know since you&amp;#39;re located in the EU.[/quote]
&lt;p&gt;Yes, we aware of that.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Alexandra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the TX Power and checking it in the terminal</title><link>https://devzone.nordicsemi.com/thread/509368?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 07:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:836e5df6-9b33-429b-8d6e-d81b55dd75fe</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What RSSI do you see when you set the TX power lower on your end? Does it change at all or stay similar? Are you using the GPIO to set up the nRF21540 on your end? You can use the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA"&gt;&lt;span&gt;CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;to set the TX gain of the nRF21540. This defaults to 20dBm, so it might be set to 20 already in your case. Can you try setting it lower to see if the RSSI is notably lower on your end?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please also note that in the EU, 20 dBm is not allowed in commercial products, and a maximum of 10dBm is allowed. Just wanted to let you know that this is regulated. In markets like the US and some Asian countries this is fine though, I just wanted to let you know since you&amp;#39;re located in the EU.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>