<?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 PROXY sdk2.1.1 TX power of nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38292/mesh-proxy-sdk2-1-1-tx-power-of-nrf52832</link><description>Hi, 
 I want to set the TX power in a mesh proxy configuration. I have read mesh sdk2.1.1 TX power of nrf52832 , which works good for not proxy situation (e.g for light_switch_client) but has no effect on light_switch_proxy_client. 
 I measure the advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Sep 2018 08:18:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38292/mesh-proxy-sdk2-1-1-tx-power-of-nrf52832" /><item><title>RE: mesh PROXY sdk2.1.1 TX power of nrf52832</title><link>https://devzone.nordicsemi.com/thread/148542?ContentTypeID=1</link><pubDate>Thu, 13 Sep 2018 08:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4c675ca-1fbb-4034-8007-7d72d860aac9</guid><dc:creator>PopradiArpad</dc:creator><description>&lt;p&gt;Sorry it&amp;#39;s not PB-ADV but advertising bearer, and not PB-GATT but GATT bearer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh PROXY sdk2.1.1 TX power of nrf52832</title><link>https://devzone.nordicsemi.com/thread/148423?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 13:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e92b7ad-697b-49bb-ace2-5200925c0aca</guid><dc:creator>PopradiArpad</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;thank you for your answer!&lt;/p&gt;
&lt;p&gt;You are right, the &lt;strong&gt;tx_power settings&lt;/strong&gt; in &lt;strong&gt;set_default_broadcast_configuration&lt;/strong&gt; and&lt;br /&gt;in &lt;strong&gt;scanner_init&lt;/strong&gt; functions &lt;strong&gt;sets only for PB-ADV&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For PB-GATT these settings work&lt;/strong&gt;:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;void mesh_adv_start(void)
{
#if NRF_SD_BLE_API_VERSION == 6
    //TEST-START
    APP_ERROR_CHECK(sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle, -40));
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;mesh_adv_start: changed TX power\n&amp;quot;);
    //TEST-END

    APP_ERROR_CHECK(sd_ble_gap_adv_start(m_adv_handle,  MESH_SOFTDEVICE_CONN_CFG_TAG));
#else
    APP_ERROR_CHECK(sd_ble_gap_adv_start(&amp;amp;m_adv_params,  MESH_SOFTDEVICE_CONN_CFG_TAG));
#endif
    /* We restart the mesh timeslot to yield time for the softdevice advertiser to start. */
    timeslot_restart();
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void mesh_gatt_event_handler(const mesh_gatt_evt_t * p_evt, void * p_context)
{
..
        case MESH_GATT_EVT_TYPE_CONNECTED:
            evt.conn_index = p_evt-&amp;gt;conn_index;
            fsm_event_post(&amp;amp;p_bearer_gatt-&amp;gt;fsm, E_CONNECTED, &amp;amp;evt);
            //TEST-START
            NRF_MESH_ASSERT(sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, evt.conn_index, -40) == NRF_SUCCESS);
            __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;mesh_gatt_event_handler: changed TX power\n&amp;quot;);
            //TEST-END
..
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It would be very nice if it was not needed to hack SDK functions to set tx_power :(&lt;br /&gt;&lt;strong&gt;scanner_init&lt;/strong&gt;, &lt;strong&gt;set_default_broadcast_configuration&lt;/strong&gt; and &lt;strong&gt;mesh_gatt_event_handler&lt;/strong&gt; are SDK functions&lt;br /&gt;&lt;strong&gt;mesh_adv_start&lt;/strong&gt; in &lt;strong&gt;mesh_adv.c&lt;/strong&gt; is only a sample implementation and &lt;strong&gt;mesh_adv.c is&lt;/strong&gt; encouraged to be application specific.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;&amp;Aacute;rp&amp;aacute;d&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh PROXY sdk2.1.1 TX power of nrf52832</title><link>https://devzone.nordicsemi.com/thread/148222?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 13:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b443327-e922-4f26-a77a-f826e57633d9</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The suggestion in the thread you linked to is probably working. It is setting the TX power of the ADV bearer to whatever value you are using (as long as the value is supported).&lt;/p&gt;
&lt;p&gt;But from what I understand, you want to change the TX power of the proxy bearer. &lt;br /&gt;The proxy bearer uses the softdevice advertisement. To change the TX power of that advertisment packet, you have to use the softdevice API to change the TX power (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gad10e80ba20ddab42d1753fd1be2d8c26"&gt;sd_ble_gap_tx_power_set()&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;If you have any further questions, please let me know. &lt;br /&gt;Best regards, &lt;br /&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>