<?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>Changing the transmission power on ble_app_att_mtu_throughput example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57874/changing-the-transmission-power-on-ble_app_att_mtu_throughput-example</link><description>Hi, 
 I have searched Devzone for changing the transmission power; even though there were similar issues related to mine but at the end, It did not help me. 
 I am evaluating the new PHYs of BLE 5 in an indoor environment at the university. 
 I tried</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Feb 2020 08:13:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57874/changing-the-transmission-power-on-ble_app_att_mtu_throughput-example" /><item><title>RE: Changing the transmission power on ble_app_att_mtu_throughput example</title><link>https://devzone.nordicsemi.com/thread/235874?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 08:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5df21613-f457-4068-a315-6cb66fd03856</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thanks for sharing your solution!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing the transmission power on ble_app_att_mtu_throughput example</title><link>https://devzone.nordicsemi.com/thread/235728?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 13:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7189eac7-00f5-47f4-95bc-84749254ef26</guid><dc:creator>Ben</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I resolved the issue by changing:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_CONNECTED:&lt;br /&gt; err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, BLE_CONN_HANDLE_INVALID, RADIO_TX_POWER);&lt;br /&gt; on_ble_gap_evt_connected(p_gap_evt);&lt;br /&gt; break;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_CONNECTED:&lt;br /&gt; m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;&lt;br /&gt; err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, m_conn_handle, RADIO_TX_POWER);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;on_ble_gap_evt_connected(p_gap_evt);&lt;br /&gt;&lt;br /&gt; break;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;The problem was in&amp;nbsp;passing the correct connection handle to &amp;quot;&lt;span&gt;sd_ble_gap_tx_power_set&amp;quot; function in connection state.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Br,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ben&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing the transmission power on ble_app_att_mtu_throughput example</title><link>https://devzone.nordicsemi.com/thread/234813?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 08:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5fa833d-72aa-4310-bb0e-f2dcf562ae54</guid><dc:creator>Ben</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;Yes, I have seen that answer. It did not help. It is strange. Perhaps I am doing some silly mistake.&lt;/p&gt;
&lt;p&gt;I have compared the throughput example and the long-range example. I can not figure it out why it throws Fatal error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These are the places that I have used &amp;quot;sd_ble_gap_tx_power_set&amp;quot; functtion in the code:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_CONNECTED:&lt;br /&gt; err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, BLE_CONN_HANDLE_INVALID, RADIO_TX_POWER);&lt;/p&gt;
&lt;p&gt;on_ble_gap_evt_connected(p_gap_evt);&lt;br /&gt; sd_ble_gap_rssi_start(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, 1, 1); //added by _OP&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; break;&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;/**@brief Function for starting advertising. */&lt;br /&gt;static void advertising_start(void)&lt;br /&gt;{&lt;br /&gt; NRF_LOG_INFO(&amp;quot;Starting advertising.&amp;quot;);&lt;/p&gt;
&lt;p&gt;ret_code_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle, RADIO_TX_POWER);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;bsp_board_led_on(SCAN_ADV_LED);&lt;br /&gt; err_code = sd_ble_gap_adv_start(m_adv_handle, APP_BLE_CONN_CFG_TAG);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;........&lt;/p&gt;
&lt;p&gt;/**@brief Function for starting the scanning. */&lt;br /&gt;static void scan_start(void)&lt;br /&gt;{&lt;br /&gt; NRF_LOG_INFO(&amp;quot;Starting scanning.&amp;quot;);&lt;br /&gt; ret_code_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_SCAN_INIT, BLE_CONN_HANDLE_INVALID, RADIO_TX_POWER);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; bsp_board_led_on(SCAN_ADV_LED);&lt;/p&gt;
&lt;p&gt;err_code = nrf_ble_scan_start(&amp;amp;m_scan);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;........&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing the transmission power on ble_app_att_mtu_throughput example</title><link>https://devzone.nordicsemi.com/thread/234805?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 08:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:638c4fbe-49d0-438f-9b32-0e2ef9b12fbb</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Ben.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you seen the answer from my colleague Bjørn in this previous ticket:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36531/how-do-you-set-tx-power-for-all-power-roles"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/36531/how-do-you-set-tx-power-for-all-power-roles&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>