<?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>Issues with +8DB TX power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90758/issues-with-8db-tx-power</link><description>Are there any known issues when using a nRF52840 and S140 6.0.0 soft device and trying to transmit at +8 dB? From our measurements is appears that +4dB does indeed increase the signal strength but when using +8 dB, it measures the same as 0dB. Is there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Aug 2022 18:48:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90758/issues-with-8db-tx-power" /><item><title>RE: Issues with +8DB TX power</title><link>https://devzone.nordicsemi.com/thread/383132?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 18:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad959fcd-e523-4290-88dd-7a7b06d47221</guid><dc:creator>lCannon</dc:creator><description>&lt;p&gt;Thank you for your help.&amp;nbsp; With your input, and retesting, it appears the +8dB is working.&amp;nbsp; The testing conditions were changed to be better controlled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with +8DB TX power</title><link>https://devzone.nordicsemi.com/thread/380621?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 12:53:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e2ef053-4843-453c-a7b2-0093bf233304</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is a bit strange, all version of the s140 variant should support +8 dBm. Please try to run the code below enclosed by the &amp;#39;#if MONITOR_TXPOWER_SETTING&amp;#39; to verify if the&amp;nbsp;&lt;span&gt;&lt;a title="TXPOWER" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html?cp=4_0_0_5_19_13_46#register.TXPOWER"&gt;TXPOWER&lt;/a&gt;&lt;/span&gt; register actually matches your power setting.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define MONITOR_TXPOWER_SETTING 1

#if MONITOR_TXPOWER_SETTING

void SWI3_IRQHandler(void)
{
    /* Clear event register */
    NRF_EGU3-&amp;gt;EVENTS_TRIGGERED[0] = 0;
    NRF_LOG_INFO(&amp;quot;TX power: %d dBm&amp;quot;, NRF_RADIO-&amp;gt;TXPOWER);
}

void monitor_tx_power_register(void)
{
    /* 6 is the default int. priority used in SDK drivers */
    NVIC_SetPriority(SWI3_IRQn, 6);
    NVIC_EnableIRQ(SWI3_IRQn);

    NRF_EGU3-&amp;gt;INTENSET = EGU_INTEN_TRIGGERED0_Msk;

    NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t) &amp;amp;NRF_RADIO-&amp;gt;EVENTS_TXREADY;
    NRF_PPI-&amp;gt;CH[0].TEP = (uint32_t) &amp;amp;NRF_EGU3-&amp;gt;TASKS_TRIGGER[0];

    NRF_PPI-&amp;gt;CHENSET = PPI_CHENSET_CH0_Msk;
}
#endif

/**@brief Function for application main entry.
 */
int main(void)
{
    bool erase_bonds;

    // Initialize.
    log_init();
    timers_init();
    buttons_leds_init(&amp;amp;erase_bonds);
    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    advertising_init();
#if MONITOR_TXPOWER_SETTING
    monitor_tx_power_register();
    uint32_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, 0, 8);
    APP_ERROR_CHECK(err_code);
#endif //MONITOR_TXPOWER_SETTING
    ...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Expected log output:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7838.pastedimage1659963178970v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit: &lt;/strong&gt;In case you are wondering why I had to read the register right after the EVENTS_TXREADY event: the Softdevice will reset the RADIO peripheral after every BLE event, so the register will have to be read while the Softdevice is using the radio. The register will be read as 0 otherwise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>