<?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>Setting Tx Power nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25566/setting-tx-power-nrf52832</link><description>I have a custom beacon with:
nRF5_SDK_12.3.0_d7731ad
I am using:
\examples\ble_peripheral\ble_app_beacon
With:
\pca10040\s132 
 When I change the value:
int8_t tx_power = 4; OR int8_t tx_power = -40; 
 I get no change in the range or the RSSI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Apr 2018 14:13:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25566/setting-tx-power-nrf52832" /><item><title>RE: Setting Tx Power nRF52832</title><link>https://devzone.nordicsemi.com/thread/128843?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 14:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b18bd07a-9d85-4c78-a72d-8829505bdb06</guid><dc:creator>Kantha</dc:creator><description>&lt;p&gt;for changing the tx power level you have to call the function &amp;quot;sd_ble_gap_tx_power_set(4)&amp;quot; for 4dbm,tx_power Radio transmit power in dBm (accepted values are -40, -20, -16, -12, -8, -4, 0, 3, and 4 dBm).&lt;/p&gt;
&lt;p&gt;the code which you are referring will include the power level as a part of advertisement packet or scan response packet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting Tx Power nRF52832</title><link>https://devzone.nordicsemi.com/thread/100790?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 20:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e6d471b-fb14-4914-8605-94799fa15795</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Yes indeed value 0x0A is 10 and that&amp;#39;s invalid (= &lt;code&gt;sd_ble_gap_tx_power_set&lt;/code&gt; function should return some error status not &lt;code&gt;NRF_SUCCESS&lt;/code&gt;). Parameter must be &lt;code&gt;int8_t&lt;/code&gt; meaning signed int.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting Tx Power nRF52832</title><link>https://devzone.nordicsemi.com/thread/100789?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 20:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70e91a6e-225f-4e82-a3e2-b60191b6072e</guid><dc:creator>Declan</dc:creator><description>&lt;p&gt;Thanks, I will try this in the morning.
What should I set &amp;quot;m_tx_pwr = ...;&amp;quot; to to get the best possible range (tx power)?&lt;/p&gt;
&lt;p&gt;In ble_gap.h there is:
#define BLE_GAP_AD_TYPE_TX_POWER_LEVEL                      0x0A /**&amp;lt; Transmit power level. (accepted values are -40, -30, -20, -16, -12, -8, -4, 0, 3, and 4 dBm)*/
Should this not be set?
It is 0x0A HEX which is decimal 10 - but 10 is not an accepted value??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting Tx Power nRF52832</title><link>https://devzone.nordicsemi.com/thread/100788?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 20:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8255d2c5-9fd8-4b60-b502-eb96cfa9c0e7</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Still pasting the screenshot from nRF Control Panel for Android when you are in constant distance from the beacon should show significant difference between +4dBm and -40/30 dBm. Still beacon will be visible, the typical sensitivity of good devices is &amp;lt;-86dBm, sometimes they can go as low as -100dBm...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting Tx Power nRF52832</title><link>https://devzone.nordicsemi.com/thread/100787?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 19:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:368b4127-87ca-451f-b432-91595165bbc5</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Try this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	    // Accepted values are -40, -20, -16, -12, -8, -4, 0, 4 (dbm)
			m_tx_pwr = ...;
			err_code = sd_ble_gap_tx_power_set(m_tx_pwr);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting Tx Power nRF52832</title><link>https://devzone.nordicsemi.com/thread/100786?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 19:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b972fe0a-37a2-4908-be10-d342072b97ce</guid><dc:creator>Declan</dc:creator><description>&lt;p&gt;I do not have a BLE sniffer - I am just using the nRF Connect app on my phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting Tx Power nRF52832</title><link>https://devzone.nordicsemi.com/thread/100785?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 19:21:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deba0e80-02f2-4bb1-a7c4-1650ffd2042c</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Can you use a BLE sniffer to capture the before/after RSSI values in your test?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>