<?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>How to change tx power in nfr52840 throughput test</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50509/how-to-change-tx-power-in-nfr52840-throughput-test</link><description>Hello, I&amp;#39;m using SDK 15.3.0 throughput test and I want to change TX power to +8dBm. In documents it says change the power from sd_ble_gap_tx_power_set but I couldn&amp;#39;t find where this function is. Can you please help me to find where can I change the tx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Aug 2019 08:11:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50509/how-to-change-tx-power-in-nfr52840-throughput-test" /><item><title>RE: How to change tx power in nfr52840 throughput test</title><link>https://devzone.nordicsemi.com/thread/202048?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 08:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:993573d0-edad-4630-8f12-3fc36dfaf9c7</guid><dc:creator>AP040</dc:creator><description>&lt;p&gt;I need to set different power at advertising and after connected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, when I used after connected and read RSSI value from nrf connect mobile app it is showing the different level at different power value set in&amp;nbsp;sd_ble_gap_tx_power_set() API.&lt;/p&gt;
&lt;p&gt;But same I did for advertising it is not working. I put&amp;nbsp;err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV ,m_adv_handle,-40); in advertising_init() function.&lt;/p&gt;
&lt;p&gt;Is the proper way to do it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change tx power in nfr52840 throughput test</title><link>https://devzone.nordicsemi.com/thread/201880?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 12:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26975e82-b245-4f8e-a737-59d622212073</guid><dc:creator>mercimek</dc:creator><description>&lt;p&gt;Thank you very much this works very well!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change tx power in nfr52840 throughput test</title><link>https://devzone.nordicsemi.com/thread/201805?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 10:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca05e461-c47e-4797-a730-ae0b11be7ae6</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;You can refer to the example.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/jimmywong2003/nrf5-packet-error-rate-measurement-on-ble-connection/blob/master/ble_app_image_transfer/main.c"&gt;https://github.com/jimmywong2003/nrf5-packet-error-rate-measurement-on-ble-connection/blob/master/ble_app_image_transfer/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void ble_evt_handler(ble_evt_t const *p_ble_evt, void *p_context)
{
        ret_code_t err_code;

        switch (p_ble_evt-&amp;gt;header.evt_id)
        {
        case BLE_GAP_EVT_CONNECTED:

                NRF_LOG_INFO(&amp;quot;Connected&amp;quot;);
                bsp_board_led_on(CONNECTED_LED);
                bsp_board_led_off(ADVERTISING_LED);

                m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;
                err_code = nrf_ble_qwr_conn_handle_assign(&amp;amp;m_qwr, m_conn_handle);
                APP_ERROR_CHECK(err_code);
                err_code = app_button_enable();
                APP_ERROR_CHECK(err_code);
                NRF_LOG_INFO(&amp;quot;Actual connection parameter %d&amp;quot;, p_ble_evt-&amp;gt;evt.gap_evt.params.connected.conn_params.max_conn_interval);

                tx_power_set();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Function for changing the tx power.
 */
static void tx_power_set(void)
{

        // ret_code_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, m_conn_handle, TX_POWER_LEVEL);
        ret_code_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, m_conn_handle, m_application_state.tx_power * 4);
        APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>