<?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 runtime PA Gain on nRF21540 (Dynamic Gain)  Fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99641/setting-runtime-pa-gain-on-nrf21540-dynamic-gain-fails</link><description>I&amp;#39;m evaluating the nRF21540 on the PCA10112 Devkit. 
 I&amp;#39;m using nRF Connect v2.3.0 and using the openthread cli example (samples\openthread\cli), configured with nrf21540dk_nrf52840.overlay 
 
 I would like to be able to dynamically set PA gain for the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 May 2023 07:57:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99641/setting-runtime-pa-gain-on-nrf21540-dynamic-gain-fails" /><item><title>RE: Setting runtime PA Gain on nRF21540 (Dynamic Gain)  Fails</title><link>https://devzone.nordicsemi.com/thread/426454?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 07:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acbfd087-f1cf-4cd7-bd28-f5db9841578b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I think you are lookng for &lt;a href="https://openthread.io/reference/group/radio-config#otplatradiosettransmitpower"&gt;otPlatRadioSetTransmitPower()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Did you test that?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting runtime PA Gain on nRF21540 (Dynamic Gain)  Fails</title><link>https://devzone.nordicsemi.com/thread/425647?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 13:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c28cd53f-168f-4e8b-b3d4-2d3a10dcf307</guid><dc:creator>qwerty100</dc:creator><description>&lt;p&gt;Yes - its the implementation of the&amp;nbsp;mpsl_fem_pa_gain_set() that is the problem. As you note I&amp;#39;m &lt;em&gt;incorrectly&lt;/em&gt; using the OpenThread LNA function simply as hook to get/set the PA gain.&lt;/p&gt;
&lt;p&gt;Thread (surprisingly) does not provide an&amp;nbsp;otPlatRadioSetFemPaGain() function&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting runtime PA Gain on nRF21540 (Dynamic Gain)  Fails</title><link>https://devzone.nordicsemi.com/thread/425630?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 12:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3896147-2ae5-402a-b4ff-c01abf974570</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I see that you are trying to set the&amp;nbsp;&lt;strong&gt;lna&lt;/strong&gt; gain. Is that your purpose? Perhaps you want to set the PA gain, which is the TX power. The LNA gain is the receiver&amp;#39;s amplifier, which it doesn&amp;#39;t really make any sense to adjust during runtime.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting runtime PA Gain on nRF21540 (Dynamic Gain)  Fails</title><link>https://devzone.nordicsemi.com/thread/425340?ContentTypeID=1</link><pubDate>Fri, 12 May 2023 12:44:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5523eff3-fa71-4481-a486-8cc83019179a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry I can&amp;#39;t give a better answer right now due to limited time, but search this forum for &amp;quot;setting the TX power in openthread&amp;quot;. There are a few posts on it. I don&amp;#39;t remember if the ot cli command is using the correct API for this (for the nRF52/nrf53 series).&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will get back to you next week with a follow up.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>