<?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>TX power with OpenThread.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61265/tx-power-with-openthread</link><description>Hi, I tested &amp;quot;Simple_coap_client&amp;quot; and &amp;quot;simple_coap_server&amp;quot; on NRF52840 using Threading SDK. 
 I want to change the transmit power, so I used &amp;quot;otPlatRadioSetTransmitPower ()&amp;quot;. 
 Although the transmit power range is -20 to 8dBm, I can set an abnormal value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 May 2020 12:18:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61265/tx-power-with-openthread" /><item><title>RE: TX power with OpenThread.</title><link>https://devzone.nordicsemi.com/thread/251254?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 12:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d28e93c6-f747-49ae-a78a-dc78eaea51af</guid><dc:creator>inari</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was able to solve the problem.&lt;br /&gt;When I output the log in nrf_802154_tx_power_set (), it seems that the transmission power is periodically returned to 0.&lt;br /&gt;Therefore, I set the transmission power without using nrf_802154_tx_power_set ().&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really thankful to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power with OpenThread.</title><link>https://devzone.nordicsemi.com/thread/250166?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 11:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d09e8539-6371-4fce-8bb9-648e7d500926</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What TX powers do you try to use? And what RSSI do you see? Are you trying +4 and +8? Because you will not see much difference. Perhaps you can try -40dBm and +8dBm?&lt;/p&gt;
&lt;p&gt;This should work. You can double check by reading out the RADIO TX power register after you have changed the output. You can check it either by breaking and monitoring the register directly, or you can use:&lt;/p&gt;
&lt;p&gt;int8_t tx_power = NRF_RADIO-&amp;gt;TXPOWER;&lt;/p&gt;
&lt;p&gt;Remember to add a short delay after you set the power before you read it out. Use a timer to set and read the TX power.&lt;/p&gt;
&lt;p&gt;Alternatively, try with -40 and +8 dBm and check the nrf_802154_rssi_last_get(). What values do you get?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power with OpenThread.</title><link>https://devzone.nordicsemi.com/thread/249804?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 17:27:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb3512f6-60a1-431d-bdc5-6509259b6d7b</guid><dc:creator>inari</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not nRF Sniffer for 802154, but I got the RSSI using nrf_802154_rssi_last_get (). I changed the tx power while keeping the devices at the same distance, but the RSSI did not change.&lt;br /&gt;This seems to indicate that tx power is unchanged.&lt;br /&gt;Is there a problem with how to change tx power?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m sorry in poor English.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power with OpenThread.</title><link>https://devzone.nordicsemi.com/thread/249740?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 13:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9164481-ee97-41de-a0af-a70a6e362253</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you try to use the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/nrf802154_sniffer.html" rel="noopener noreferrer" target="_blank"&gt;nRF Sniffer for 802154&lt;/a&gt; to measure the Received Signal Strength (RSS) on the device? Does it change if you keep the devices at the same distance, but increase the output power?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-eca1e9f8ebd843078856bc669881b39a/pastedimage1589375184510v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power with OpenThread.</title><link>https://devzone.nordicsemi.com/thread/249562?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 17:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b166341a-4e27-4914-bbc2-d2b631e0bd09</guid><dc:creator>inari</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have confirmed that tx power can be set to -40 to 8 using nrf_802154_tx_power_set () and nrf_802154_tx_power_get ().&lt;/p&gt;
&lt;p&gt;But, there was no change in the communication range.&lt;/p&gt;
&lt;p&gt;I conducted an experiment in a place with good visibility, but there was no change in the communication range.&lt;/p&gt;
&lt;p&gt;Is there a clear difference in communication distance between tx power of -40 and 8?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It was my code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m sorry in poor English.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(int argc, char * argv[])
{
    nrf_802154_init();
    
    
    log_init();
    scheduler_init();
    timer_init();

    thread_instance_init();
    thread_coap_init();
    thread_bsp_init();


    
    nrf_802154_tx_power_set(8);
    NRF_LOG_INFO(&amp;quot;%d&amp;quot;, nrf_802154_tx_power_get());
    

    while (true)
    {
        thread_process();
        app_sched_execute();

        if (NRF_LOG_PROCESS() == false)
        {
            thread_sleep();
        }
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power with OpenThread.</title><link>https://devzone.nordicsemi.com/thread/249493?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 13:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a678e95-5373-4486-87b0-76ffe973101b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is the transmit power range -20 to 8 dBm? Or is there a mistake in the transmit power setting method?[/quote]
&lt;p&gt;&amp;nbsp;This otCall is not implemented in the nRF version of openthread. That is, it will work, but the return values are not correct.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;otPlatRadioSetTransmitPower() will call&amp;nbsp;nrf_802154_tx_power_set(), but it will always return OT_ERROR_NONE, whether the power is within the valid output power range or not. The same way,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can check their implementation here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/openthread/openthread/blob/master/examples/platforms/nrf528xx/src/radio.c#L594"&gt;https://github.com/openthread/openthread/blob/master/examples/platforms/nrf528xx/src/radio.c#L594&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try to use&amp;nbsp;nrf_802154_tx_power_set() and nrf_802154_tx_power_get() directly, and see if it makes more sense.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>