<?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>mesh sdk2.1.1 TX power of nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37739/mesh-sdk2-1-1-tx-power-of-nrf52832</link><description>Hi Nordic: 
 I want to change TX power of mesh-sdk.2.1.1 light switch, I&amp;#39;ve follow 
 https://devzone.nordicsemi.com/f/nordic-q-a/34491/mesh-range-power-and-mode 
 
 and set NRF_RADIO-&amp;gt;TXPOWER = RADIO_POWER_NRF_POS4DBM or RADIO_POWER_NRF_NEG20DBM 
 of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Sep 2018 08:17:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37739/mesh-sdk2-1-1-tx-power-of-nrf52832" /><item><title>RE: mesh sdk2.1.1 TX power of nrf52832</title><link>https://devzone.nordicsemi.com/thread/149354?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 08:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16dc5f7b-2288-40ba-9c97-24c5e768af4f</guid><dc:creator>jowei</dc:creator><description>&lt;p&gt;Hi Bjorn:&lt;/p&gt;
&lt;p&gt;I following this thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38292/mesh-proxy-sdk2-1-1-tx-power-of-nrf52832"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38292/mesh-proxy-sdk2-1-1-tx-power-of-nrf52832&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And the tx power can be changed, thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sdk2.1.1 TX power of nrf52832</title><link>https://devzone.nordicsemi.com/thread/146321?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 13:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca78e466-76fe-4346-9a01-de22c7afdb4d</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Joseph,&lt;/p&gt;
&lt;p&gt;Very sorry for the delayed response. Just tested this. I replied to a similar &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36531/how-do-you-set-tx-power-for-all-power-roles"&gt;devzone case here&lt;/a&gt;, where I wrote the following:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The old answer is left below (relevant to the Mesh SDK, not nRF 5 SDK):&lt;/strong&gt; There have been quite a few questions &amp;amp; answers regarding this on the devzone, but unfortunately it is not possible to use&amp;nbsp;sd_ble_gap_tx_power_set() to change the TX transmit power of the radio &lt;strong&gt;(for the Mesh SDK!)&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;radio_config_config() function in radio_config.c sets the transmit power of the radio. If you take a look at mesh sdk v2.1.1&amp;nbsp;with the light switch example (take provisioner for example), you can see that the advertiser_instance_init() function in advertiser.c calls&amp;nbsp;set_default_broadcast_configuration(). This function sets the&amp;nbsp;TX radio output power. Then, back in&amp;nbsp;advertiser_instance_init(), the timeout_event callback is called. This function calls schedule_broadcast() if the broadcast context is inactive. Inside schedule_broadcast(), the broadcast_send() function is called, which starts the broadcast_start() callback function. It is broadcast_start() which then finally calls radio_config_config(), which sets the tx power:&lt;/p&gt;
&lt;p&gt;NRF_RADIO-&amp;gt;TXPOWER = p_config-&amp;gt;tx_power;&lt;/p&gt;
&lt;p&gt;To summarize: I believe you will only need to change the radio tx power in set_default_broadcast_configuration().&lt;/p&gt;
&lt;p&gt;I tested by setting the radio tx power to -40 dBm &amp;amp; comparing the results by changing it to plus 4 dBm. I noticed a large difference in RSSI between these two tx powers.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sdk2.1.1 TX power of nrf52832</title><link>https://devzone.nordicsemi.com/thread/145711?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 14:22:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbede7da-3e09-4d18-b718-9ae41f71f34d</guid><dc:creator>jowei</dc:creator><description>&lt;p&gt;Hi nordic:&lt;/p&gt;
&lt;p&gt;Is there any update for this issue?&lt;/p&gt;
&lt;p&gt;Today I just modify 3 places:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;1. set_default_broadcast_configuration() of advertisr.c&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;p_broadcast-&amp;gt;params.radio_config.tx_power =&amp;nbsp;RADIO_POWER_NRF_POS4DBM&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;2. radio_config_config&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;NRF_RADIO-&amp;gt;TXPOWER = RADIO_POWER_NRF_POS4DBM;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;3. scanner_init() of&amp;nbsp;scanner.c&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;m_scanner.config.radio_config.tx_power = RADIO_POWER_NRF_POS4DBM&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And in segger debugger mode, I can see radio TXPower register is changed to 4dbm value, but my instrument still got same measurement value compared to&amp;nbsp;RADIO_POWER_NRF_NEG16DBM setting, could you please guide us how to set tx_power in mesh-sdk-2.1.1?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Joseph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>