<?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>Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25374/bluetooth-mesh-tx-power-on-nrf52</link><description>I&amp;#39;m playing around with the light and switch examples with the Bluetooth mesh SDK on nRF52832 devices. I&amp;#39;m trying to find out what the maximum distance would be given changes in TX output power. However, every time I make a call to the sd_ble_gap_tx_power_set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Feb 2019 11:44:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25374/bluetooth-mesh-tx-power-on-nrf52" /><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/172492?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 11:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96ceac6f-91f4-40e8-86c0-b398cac24dea</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;I&amp;#39;d like to not modify SDK source files.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve try to use the network_opt_set after mesh_stack_init, but this lead to a mesh assert.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/140992?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 13:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:667f0f6d-608a-46e4-bb5c-65886086b5d0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Please do. I could not find any API that allows you to modify the default TX power at run-time in the Mesh SDK API reference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/140957?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 11:04:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb9c5b58-72cd-4cc1-974b-c609795fc3de</guid><dc:creator>luciom</dc:creator><description>&lt;p&gt;Hi Bjiorn,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m developing a BLE Mesh application and I&amp;#39;m working with Mesh SDK 2.1.1.&lt;/p&gt;
&lt;p&gt;I also need to high the Mesh TX power and I will try the way you suggested (&lt;code&gt;set_default_broadcast_configuration&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;I wonder if there was a way to do the same from the user code without modifying the SDK sources.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Lucio&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/126311?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 11:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0925278-5951-4629-b37f-8c4a6f0322f5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/mariemgm"&gt;Arij&lt;/a&gt;: No, this question only covers how to set the default TX output power of the mesh devices, see &lt;a href="https://devzone.nordicsemi.com/members/thomas.stenersen"&gt;Thomas Stenersen&lt;/a&gt;&amp;#39;s answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/126304?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 10:57:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25e723e1-6bdd-4a2e-b6ce-567fd00bb496</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;bjorn-spockeli: Does this help me to enable relaying in light switch example ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/124066?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 07:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7778f453-46e9-4ea1-93b7-673675f5f8ae</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Piotr B: You should be able to set the default&amp;nbsp; TX output power with the &lt;code&gt;set_default_broadcast_configuration()&lt;/code&gt;function&amp;nbsp; in &lt;code&gt;advertiser.c.&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/123984?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 15:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6158ab86-6ece-47a6-85b3-ba4342989cc9</guid><dc:creator>PB</dc:creator><description>&lt;p&gt;I&amp;#39;ve lloked into `radio_config_config()` but it seems that whatever is set by it is&amp;nbsp;overwritten frequently by radio switching between scanning and advertising in Mesh SDK 1.0.0. How did you approach changing TX power for mesh messages?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/100005?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 13:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84646753-2669-463d-841a-c08dde0e85bc</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Updated my answer with information for v0.10.0+ :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/100006?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 12:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6e4d957-4343-4bd7-b418-2c7d6dbca4ce</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;overheat (aaronxu): I think that you should be able to use &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v0.10.0/group__RADIO__CONFIG.html#ga956159023465b6fb3be32ae6e4d4ecf9"&gt;radio_config_config()&lt;/a&gt; to set the tx power by passing it a &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v0.10.0/structradio__config__t.html"&gt;radio_config_t&lt;/a&gt; struct&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/100002?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 03:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac86ea63-f4a0-4f3f-b6e2-fd41dd3d085f</guid><dc:creator>aaronxu</dc:creator><description>&lt;p&gt;Hi, looks it&amp;#39;s changed in v0.10 version. I cannot find &amp;quot;radio_tx_power_set&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/100000?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 15:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6883783-f559-4bfc-868c-d3812143acc7</guid><dc:creator>jpreston</dc:creator><description>&lt;p&gt;I believe you are correct.  I was using &lt;code&gt;4&lt;/code&gt; as my value.  See the answer below for the solution to the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/99999?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 20:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:302f3eb7-da4f-4c1a-b0a5-c1446f08db6e</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;I believe the accepted argument values for sd_ble_gap_tx_power_set() are -40, -20, -16, -12, -8, -4, 0, 4 (dbm). Please verify with the softdevice documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/100003?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 18:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:842b22d5-4503-4078-9180-1cb68161211c</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to hear that!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/100004?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 18:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c93f78-d290-4cad-bc72-2088f7bf001b</guid><dc:creator>jpreston</dc:creator><description>&lt;p&gt;Thanks, Thomas!  That helps me a lot after getting a lot of search results for the function I was trying to use instead...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh TX power on nRF52</title><link>https://devzone.nordicsemi.com/thread/100001?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 17:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5f8d38d-5ce2-4eb1-b5cb-f554904e5171</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Hi jpreston,&lt;/p&gt;
&lt;p&gt;The mesh stack operates within a SoftDevice timeslot and implements its own advertiser and scanner. To modify the TX output power of the device, I believe you only have to call the &lt;code&gt;void radio_tx_power_set(radio_tx_power_t tx_power)&lt;/code&gt; function in &lt;code&gt;mesh/include/core/radio.h&lt;/code&gt;. You could also set the default at compile time in &lt;code&gt;mesh/src/core/radio.c&lt;/code&gt; in &lt;code&gt;radio_init()&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Edit for v0.10.0+&lt;/h3&gt;
&lt;p&gt;In the v0.10.0 a new bearer layer appeared and changed this around a bit. There is a concept of an &amp;quot;advertiser instance&amp;quot;: &lt;code&gt;advertiser_t&lt;/code&gt; in &lt;code&gt;mesh/bearer/include/advertiser.h&lt;/code&gt;. This means that the stack can instantiate and use any number of advertisers concurrently. Each advertiser owns a &lt;code&gt;broadcast_t&lt;/code&gt; structure, which owns the lower level radio configurations like which access address, what advertising channels and what &lt;code&gt;radio_config_t&lt;/code&gt; to use.&lt;/p&gt;
&lt;p&gt;To answer your question directly. To change the TX power of the mesh itself, you would really have to change the values used in the individual &lt;code&gt;advertiser_t&lt;/code&gt; instances. However, all advertisers used in the mesh are set up with default parameters by the &lt;code&gt;set_default_broadcast_configuration()&lt;/code&gt; in &lt;code&gt;advertiser.c:268&lt;/code&gt;. In that function you can change the default TX power among other things.&lt;/p&gt;
&lt;p&gt;Best,&lt;br /&gt;
Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>