<?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 set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72442/how-to-set-tx_power-using-sd_ble_gap_tx_power_set-on-nrf52832</link><description>Hi everyone, 
 I want to set TX_POWER using sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV,m_adv_handle,RADIO_TXPOWER_TXPOWER_Pos4dBm); 
 m_adv_handle = BLE_GAP_ADV_SET_HANDLE_NOT_SET; 
 m_adv_handle parameter is wrong passed to the function. 
 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Mar 2021 11:16:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72442/how-to-set-tx_power-using-sd_ble_gap_tx_power_set-on-nrf52832" /><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/301871?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 11:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7a4db2-9c4d-46e0-af18-80177acf5e16</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;As mentioned earlier, the TX_POWER register will always be read as &amp;#39;0&amp;#39; regardless of the power setting. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/301867?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 11:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff0466b-cf31-4fcf-98ad-390d697a0453</guid><dc:creator>ande_dewal</dc:creator><description>&lt;p&gt;thanks for reply,&lt;/p&gt;
&lt;p&gt;I did that way also, I tested debugging mode on segger embedded studio . but in Radio TX_power register is is always 0dbm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/301857?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 10:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000011e8-6db8-4bfa-84b9-2c7abf97d6a9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;A scanner does not have any way of knowing the exact TX output power used by the broadcaster, unless the broadcaster is including this TX power setting value in its advertising data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would need dedicated test equipment such as spectrum analyzer if you were to measure the actual output power. &lt;/p&gt;
[quote userid="102319" url="~/f/nordic-q-a/72442/how-to-set-tx_power-using-sd_ble_gap_tx_power_set-on-nrf52832/301836#301836"]please tell me exact way to set that properly.[/quote]
&lt;p&gt;It will be set correctly if you use the code you posted earlier .&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;advertising_init();&lt;br /&gt; err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle,RADIO_TXPOWER_TXPOWER_Pos4dBm);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; advertising_start();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/301836?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 09:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d7501b-7ce9-47d0-859f-a74d188ece27</guid><dc:creator>ande_dewal</dc:creator><description>&lt;p&gt;thanks for reply,&lt;/p&gt;
&lt;p&gt;I tried to get tx_power&amp;nbsp; at scanner code, it always gives 0dbm.&lt;/p&gt;
&lt;p&gt;I thought i am passing wrong parameter to this function. please tell me exact way to set that properly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/301798?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 07:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d753b5ad-13ca-4ca1-b39e-edfa7483d36f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The NRF_RADIO-&amp;gt;TX_POWER register is set by the Softdevice at the beginning of the advertising event, and cleared at the end. This is the reason why it always reads as &amp;#39;0&amp;#39;. It does not mean that the setting did not get applied.&lt;/p&gt;
&lt;p&gt;You can use the RSSI view in our nRF connect app to see what effect the different output power settings have on the RSSI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/301793?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 05:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ca67b18-280e-4f07-bb73-1981dbe52b93</guid><dc:creator>ande_dewal</dc:creator><description>&lt;p&gt;thanks for reply,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;advertising_init();&lt;br /&gt; err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle,RADIO_TXPOWER_TXPOWER_Pos4dBm);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; advertising_start();&lt;/p&gt;
&lt;p&gt;after that i read&amp;nbsp; NRF_RADIO-&amp;gt;TX_POWER register , it gives always 0dbm.&lt;/p&gt;
&lt;p&gt;please help me for change the tx_power in ibecaon code .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/301691?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 13:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:688a919a-4e20-434e-b9e9-62fe3dd848cc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;How do you determine that it&amp;#39;s not set? Does sd_ble_gap_tx_power_set() return with an error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/301688?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 13:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0ced69e-25a6-4b92-aced-5fba2c31729d</guid><dc:creator>ande_dewal</dc:creator><description>&lt;p&gt;thanks for reply,&lt;/p&gt;
&lt;p&gt;I tried as per your response. Tx power is not set it gives always default value.&lt;/p&gt;
&lt;p&gt;please help me for solve this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set tx_power using sd_ble_gap_tx_power_set() on nrf52832?</title><link>https://devzone.nordicsemi.com/thread/298358?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 12:30:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8205647e-1acb-45ad-911c-a385b8be0fe3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This function must be called after advertising_init() and before advertising start. The reason for this is that the advertisment set is not added prior to that. Also, the handle value will always be &amp;#39;0&amp;#39; as multiple advertisment sets are not supported by the Softdevice.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>