<?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>OpenThread set txpower, defaults</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76873/openthread-set-txpower-defaults</link><description>Hi, 
 I successful developed a application using nrf / zephyr SDK and install the applications on the nrf52840dk and dongle. Now I want to adjust the power using 
 CONFIG_BT_CTLR_TX_PWR_PLUS_3=y 
 But when I check the power setting in the netshell / shell</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Jul 2021 07:06:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76873/openthread-set-txpower-defaults" /><item><title>RE: OpenThread set txpower, defaults</title><link>https://devzone.nordicsemi.com/thread/318100?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 07:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27f38608-1999-4e37-8ace-74d3a89d4dd4</guid><dc:creator>ChrisRu</dc:creator><description>&lt;p&gt;Hi Marjeris&lt;/p&gt;
&lt;p&gt;Thanks for the hint.&lt;/p&gt;
&lt;p&gt;I implement it in the callback registered for otThreadStateChanged where I have the context pointer and&lt;br /&gt;can retrieve the instance.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void update_txpower(struct openthread_context *context)
{
  int8_t power;
  if (otPlatRadioGetTransmitPower(context-&amp;gt;instance,&amp;amp;power)==OT_ERROR_NONE)
  {
      if (power!=3) {
          power=3;
          if (otPlatRadioSetTransmitPower(context-&amp;gt;instance,power)!=OT_ERROR_NONE)
              LOG_ERR(&amp;quot;Radio SetTransmitPower failed&amp;quot;);
      }
  }
  else {
    LOG_ERR(&amp;quot;Radio GetTransmitPower failed&amp;quot;);
  }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread set txpower, defaults</title><link>https://devzone.nordicsemi.com/thread/317919?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 09:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dd06d16-0ece-4efe-bcbf-fca34716d9f1</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For thread you should call function &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fgroup__radio-config.html&amp;amp;cp=8_3_5_0_1_8_1_12&amp;amp;anchor=gab310e61a0ab319236d71acb02804ba02"&gt;otPlatRadioSetTransmitPower&lt;/a&gt;() in the code if you want to set the output power.&lt;/p&gt;
&lt;p&gt;The CONFIG_BT_CTRL_TX_PWR_PLUS_3 is only for Bluetooth and applies for the Zephyr BLE controller.&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/bluetooth/hci_pwr_ctrl"&gt; This sample application&lt;/a&gt; demonstrate how to set dynamic TX power for BT and how to go about this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>