<?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>BLE Test Tx sweep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54062/ble-test-tx-sweep</link><description>Hi, 
 
 As a part of FCC testing, I am trying use the following radio_tx_sweep_start(txpower,uiMode,channel_start,channel_end,delayms) with below parameters. 
 uint8_t txpower = RADIO_TXPOWER_TXPOWER_Pos4dBm; uint8_t uiMode = RADIO_MODE_MODE_Ble_1Mbit;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Nov 2019 07:11:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54062/ble-test-tx-sweep" /><item><title>RE: BLE Test Tx sweep</title><link>https://devzone.nordicsemi.com/thread/218957?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 07:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d11612d-9694-4348-9e0c-3032d2136570</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Test Tx sweep</title><link>https://devzone.nordicsemi.com/thread/218918?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 20:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e682daf-26e3-46bd-b147-99042c08c1cb</guid><dc:creator>Ramesh</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the info.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ramesh javadi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Test Tx sweep</title><link>https://devzone.nordicsemi.com/thread/218774?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 10:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b05fe5d-be2a-43c7-a7b2-f8c63f90ce40</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;HI Ramesh,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the naming in the radio test example is a bit misleading as the channel is infact the offset from 2400MHz, i.e.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Frequency = 2400MHz + channel &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hence,&amp;nbsp;&lt;/span&gt;&lt;span&gt;with&amp;nbsp;&lt;/span&gt;&lt;span&gt;channel_start = 02&amp;nbsp;&lt;/span&gt;&lt;span&gt;and channel_end = 80&amp;nbsp;&lt;/span&gt;&lt;span&gt;the Radio Test example will sweep the frequency between 2400MHz to 2480MHz.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want the sweep to do 2MHz increments instead of 1MHz increments in the frequency, then you can modify the&amp;nbsp;m_channel++ line to m_channel = m_channel +2 in&amp;nbsp;TIMER0_IRQHandler in radio_test.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void TIMER0_IRQHandler(void)
{
    uint8_t channel_end   = m_channel_end;
    uint8_t channel_start = m_channel_start;
    uint8_t mode          = m_mode;
    uint8_t txpower       = m_txpower;

    // COMPARE[0] handles channel sweep
    if (NRF_TIMER0-&amp;gt;EVENTS_COMPARE[0])
    {
        NRF_TIMER0-&amp;gt;EVENTS_COMPARE[0] = 0;
        if (m_sweep_tx)
        {
            radio_unmodulated_tx_carrier(txpower, mode, m_channel);
        }
        else if (m_sweep_rx)
        {
            radio_rx(mode, m_channel);
        }
        else
        {
           //Do nothing
        }

        m_channel = m_channel +2;
        if (m_channel &amp;gt; channel_end)
        {
            m_channel = channel_start;
        }
    }
    // Timer sequence for function
    // radio_modulated_tx_carrier_with_delay(...)
    if (NRF_TIMER0-&amp;gt;EVENTS_COMPARE[1])
    {
        NRF_TIMER0-&amp;gt;EVENTS_COMPARE[1] = 0;
        if (!m_sweep_tx || !m_sweep_rx)
            NRF_RADIO-&amp;gt;TASKS_TXEN = 1;
    }
}
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>