<?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>Advertising packets power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15548/advertising-packets-power</link><description>I am interested in setting the tx power level the advertising packets in a nRF52832 are transmitted with. I saw there is the TXPOWER register in the RADIO section (address 0x40001000 + 0x50C) that sets the &amp;quot;Output power&amp;quot;. My questions are: 
 
 
 Is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Aug 2016 06:58:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15548/advertising-packets-power" /><item><title>RE: Advertising packets power</title><link>https://devzone.nordicsemi.com/thread/59352?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2016 06:58:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fa9375e-c77d-4765-a1e5-4b19d37045f7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Chapter 8.1 in the SoftDevice Specification states which peripherals are blocked, restricted, or open:
&lt;a href="http://infocenter.nordicsemi.com/pdf/S132_SDS_v3.0.pdf"&gt;infocenter.nordicsemi.com/.../S132_SDS_v3.0.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;POFCON is in the NRF_POWER, which is restricted, meaning that you will have to use the sd_power* API to use this functionality.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising packets power</title><link>https://devzone.nordicsemi.com/thread/59351?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 13:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21e6b7b2-3076-4988-b43e-5c4978ca58ee</guid><dc:creator>genis</dc:creator><description>&lt;p&gt;How can I know what registers are blocked from the application? For example, can I set the POFCON from the app or do I need to access it through the SD?&lt;/p&gt;
&lt;p&gt;Also, I noticed that some functionalities are duplicated in the SDK and the SoftDevice (like start advertising) with almost identical functions in both API. When do I need to use the SoftDevice and when do I need to use the SDK instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising packets power</title><link>https://devzone.nordicsemi.com/thread/59350?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 12:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf15dd66-4a89-4b9f-a5df-5773e5c6c5c0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since you&amp;#39;re enabling and using the SoftDevice, the RADIO peripheral is blocked seen from the application point-of-view. You can change the output power by calling this softdevice GAP function:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga0f1931af876bef39520c58de5ac060ca"&gt;err_code =
sd_ble_gap_tx_power_set(tx_power);&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;To ensure that a connection has a given TX_POWER you can do something like this in the main ble-event handler:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void on_ble_evt(ble_evt_t * p_ble_evt)
{
    uint32_t                         err_code;
    
    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
        case BLE_GAP_EVT_CONNECTED:
            ....
            err_code = sd_ble_gap_tx_power_set(connection_tx_power);
            break;
        case BLE_GAP_EVT_DISCONNECTED:
            ....
            err_code = sd_ble_gap_tx_power_set(adv_tx_power);
            break;
    /* Rest of events and handling */
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>