<?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>Strobe BLE tx power level</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43850/strobe-ble-tx-power-level</link><description>Hi all, 
 I&amp;#39;m trying to write code for a BLE Ibeacon that changes its transmit power level after every completed advertising interval. I would like to strobe between three power levels, -4, -12, and -20dB. I&amp;#39;ve been looking around for a while on how to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Feb 2019 08:31:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43850/strobe-ble-tx-power-level" /><item><title>RE: Strobe BLE tx power level</title><link>https://devzone.nordicsemi.com/thread/171813?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 08:31:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89bfbd26-92a4-4601-b80e-64e31cf02327</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Which SDK are you using?&lt;/p&gt;
&lt;p&gt;If you look at for example SDK 15.2, you can set the &lt;strong&gt;TX &lt;/strong&gt;power by calling &lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-0/group_ble_gap_functions#gad10e80ba20ddab42d1753fd1be2d8c26"&gt;sd_ble_gap_tx_power_set(). &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;f you are advertising, you can take a look at the &lt;strong&gt;examples\ble_peripheral\ble_app_proximity&lt;/strong&gt; example.&lt;/p&gt;
&lt;p&gt;Here, you can see how the API is used:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, TX_POWER_LEVEL);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The first input is &lt;strong&gt;BLE_GAP_TX_POWER_ROLE_ADV&lt;/strong&gt;, which is one of three options from &lt;strong&gt;BLE_GAP_TX_POWER_ROLES&lt;/strong&gt;, as you can read here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief GAP TX Power roles.
 */
enum BLE_GAP_TX_POWER_ROLES
{
  BLE_GAP_TX_POWER_ROLE_ADV       = 1,           /**&amp;lt; Advertiser role. */
  BLE_GAP_TX_POWER_ROLE_SCAN_INIT = 2,           /**&amp;lt; Scanner and initiator role. */
  BLE_GAP_TX_POWER_ROLE_CONN      = 3,           /**&amp;lt; Connection role. */
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The second input is the advertising handle, &amp;nbsp;&lt;strong&gt;m_advertising.adv_handle.&lt;/strong&gt; If you are scanning you should give &lt;strong&gt;NULL&lt;/strong&gt; as input, and if you are connected, you should give the &lt;strong&gt;connection handle&lt;/strong&gt; as input.&lt;/p&gt;
&lt;p&gt;The third input is the actual TX power value, and the supported values are -40dBm, -20dBm, -16dBm, -12dBm, -8dBm, -4dBm, 0dBm, +3dBm and +4dBm.&lt;/p&gt;
[quote user=""]Where should I be looking to know when a full BLE signal has been transmitted?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Can you please explain more what you mean?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>