<?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>Increase TX beacon power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71332/increase-tx-beacon-power</link><description>How can I increase the TX power on nRF5_SDK_15.3.0?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Feb 2021 15:35:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71332/increase-tx-beacon-power" /><item><title>RE: Increase TX beacon power</title><link>https://devzone.nordicsemi.com/thread/293828?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 15:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58caacdc-4fa0-445f-a105-e68c1f0dd2d1</guid><dc:creator>Haroldo</dc:creator><description>&lt;p&gt;Very good, Jared!&lt;/p&gt;
&lt;p&gt;Many thanks to spend your time to help me!&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase TX beacon power</title><link>https://devzone.nordicsemi.com/thread/293703?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 09:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d31e2565-4f9f-4aee-a8f5-8f2ee4d921f3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;It should be alright.&amp;nbsp;&lt;/span&gt;It&amp;#39;s effectively the same, ble_advertising_start() calls&amp;nbsp;sd_ble_gap_adv_start(), see the definition of the function.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase TX beacon power</title><link>https://devzone.nordicsemi.com/thread/293645?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 22:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc0c602f-d40d-480c-b828-d7087ddc3696</guid><dc:creator>Haroldo</dc:creator><description>&lt;p&gt;I tryed&amp;nbsp;&lt;span&gt;declared the m_advertising struct without success...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I compared the&amp;nbsp;&lt;strong&gt;advertising_start()&lt;/strong&gt; function of&amp;nbsp;&lt;strong&gt;ble_app_beacon&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;ble_app_proximity&amp;nbsp;&lt;/strong&gt;examples...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ble_app_proximity&amp;nbsp;&lt;/strong&gt;example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Function for starting advertising.
 */
static void advertising_start(bool erase_bonds)
{
    if (erase_bonds == true){
        delete_bonds();
        // Advertising is started by PM_EVT_PEERS_DELETE_SUCEEDED event.
    }
    else
    {
        uint32_t err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);

        APP_ERROR_CHECK(err_code);
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The parameter used in&amp;nbsp;&lt;strong&gt;ble_advertising_start&amp;nbsp;&lt;/strong&gt;is&amp;nbsp;&lt;strong&gt;m_advertising&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ble_app_beacon&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Function for starting advertising.
 */
static void advertising_start(void)
{
    ret_code_t err_code;

    err_code = sd_ble_gap_adv_start(m_adv_handle, APP_BLE_CONN_CFG_TAG);
    APP_ERROR_CHECK(err_code);

    err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);
    APP_ERROR_CHECK(err_code);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The parameter used in &lt;strong&gt;sd_ble_gap_adv_start&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;span&gt;is &lt;strong&gt;m_adv_handle&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So i changed the handle parameter of&amp;nbsp;&lt;span&gt;&lt;strong&gt;sd_ble_gap_tx_power_set&lt;/strong&gt; function to&lt;/span&gt;&amp;nbsp;&lt;strong&gt;m_adv_handle&amp;nbsp;&lt;/strong&gt;and works good!&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle, 4); &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if what i did is correct but i can measure the difference on power TX...&lt;/p&gt;
&lt;p&gt;Can i keep this modification?&lt;/p&gt;
&lt;p&gt;What is the difference of&amp;nbsp;&lt;strong&gt;ble_advertising_start &lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;sd_ble_gap_adv_start&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PTS.: I also find&amp;nbsp;in&amp;nbsp;&lt;strong&gt;main() &lt;/strong&gt;of&amp;nbsp;&lt;strong&gt;ble_app_beacon&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;example:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static uint8_t      m_adv_handle = BLE_GAP_ADV_SET_HANDLE_NOT_SET;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase TX beacon power</title><link>https://devzone.nordicsemi.com/thread/293470?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 07:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65409fd1-dad3-4066-a702-3d1f5f5101a2</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Well, the error message sums it up:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Haroldo"]&amp;#39;m_advertising&amp;#39; undeclared (first use in this function)[/quote]
&lt;p&gt;Before you call sd_ble_gap_tx_power_set you need to have declared the m_advertising struct that you are passing as a parameter to the function.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase TX beacon power</title><link>https://devzone.nordicsemi.com/thread/293454?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 04:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:849057d0-eed5-4aec-85bd-9c1ccf0f370a</guid><dc:creator>Haroldo</dc:creator><description>&lt;p&gt;Good, i find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;sd_ble_gap_tx_power_set() function in&amp;nbsp;ble_app_proximity&amp;nbsp;&lt;span&gt;example and was very clarify to understand how this function is used.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But, when i add:&lt;br /&gt;uint32_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, 4);&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I got this error:&lt;br /&gt;&amp;#39;m_advertising&amp;#39; undeclared (first use in this function)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What i&amp;#39;m doing wrong?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase TX beacon power</title><link>https://devzone.nordicsemi.com/thread/293239?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 07:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75f0236f-5069-4b6e-8b86-6a9a4bcad7bd</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s included in the ble_gap.h file. You should be able to call it in the beacon example without adding anything. Are you getting build errors?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase TX beacon power</title><link>https://devzone.nordicsemi.com/thread/293192?ContentTypeID=1</link><pubDate>Sat, 06 Feb 2021 05:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62bd7f1c-f6fc-456b-a6e1-c5894c4667d5</guid><dc:creator>Haroldo</dc:creator><description>&lt;p&gt;I am using&amp;nbsp;s132 ble_app_beacon example but i don&amp;acute;t find&amp;nbsp;&lt;span&gt;sd_ble_gap_tx_power_set function. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Where are located this function?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increase TX beacon power</title><link>https://devzone.nordicsemi.com/thread/293153?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2021 15:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca717989-f78b-413f-bb75-01eb29f6c975</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_3_1_2_1_3_41#gad10e80ba20ddab42d1753fd1be2d8c26"&gt;sd_ble_gap_tx_power_set&lt;/a&gt;() to increase the TX power if you&amp;#39;re using the softdevice.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>