<?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>Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66277/radio-test-in-802-15-4--mode</link><description>I&amp;#39;m running the SDK 17 radio test example on two nRF52840 DKs. My goal is to do a PER measurement in 802.15.4 -mode. 
 I configure the boards to use ieee802154_250Kbit mode, the same channel and same payload pattern for both boards. 
 I can get the reception</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jul 2021 10:54:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66277/radio-test-in-802-15-4--mode" /><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/318605?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 10:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5848be4c-4f69-4b61-94f2-aabb59e4b917</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please open a new ticket for these kind of requests, rather than add a new question to an old case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your case it seems you are not writing to the START task of the RNG?&lt;br /&gt;If you don&amp;#39;t do this no random number generation will be started.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/318081?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 04:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:028e1cf8-faba-4702-925c-be8056e8df24</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**
 * @brief Function for generating an 8-bit random number with the internal random generator.
 */
static uint32_t _rnd8(void)
{
    NRF_RNG-&amp;gt;EVENTS_VALRDY = 0;

    while (NRF_RNG-&amp;gt;EVENTS_VALRDY == 0)
    {
        // Do nothing.
    }
    return NRF_RNG-&amp;gt;VALUE;
}


/**
 * @brief Function for generating a 32-bit random number with the internal random generator.
 */
static uint32_t _rnd32(void)
{
    uint8_t  i;
    uint32_t val = 0;

    for (i = 0; i &amp;lt; 4; i++)
    {
        val &amp;lt;&amp;lt;= 8;
        val  |= rnd8();
    }
    return val;
}


/**@brief Function for configuring the radio in every possible mode.
 *
 * @param[in] mode    Radio mode.
 * @param[in] pattern Radio transmission pattern.
 */
static void radio_config(nrf_radio_mode_t mode, transmit_pattern_t pattern)
{
    // Reset Radio ramp-up time.
    NRF_RADIO-&amp;gt;MODECNF0 &amp;amp;= (~RADIO_MODECNF0_RU_Msk);

    // Packet configuration:
    // Bit 25: 1 Whitening enabled
    // Bit 24: 1 Big endian,
    // 4-byte base address length (5-byte full address length),
    // 0-byte static length, max 255-byte payload .
    NRF_RADIO-&amp;gt;PCNF1 = (RADIO_PCNF1_WHITEEN_Enabled &amp;lt;&amp;lt; RADIO_PCNF1_WHITEEN_Pos) |
                       (RADIO_PCNF1_ENDIAN_Big &amp;lt;&amp;lt; RADIO_PCNF1_ENDIAN_Pos) |
                       (4UL &amp;lt;&amp;lt; RADIO_PCNF1_BALEN_Pos) |
                       (0UL &amp;lt;&amp;lt; RADIO_PCNF1_STATLEN_Pos) |
                       ((sizeof(m_tx_packet) - 1) &amp;lt;&amp;lt; RADIO_PCNF1_MAXLEN_Pos);
    NRF_RADIO-&amp;gt;CRCCNF = (RADIO_CRCCNF_LEN_Disabled &amp;lt;&amp;lt; RADIO_CRCCNF_LEN_Pos);

    NRF_RADIO-&amp;gt;TXADDRESS   = 0x00UL; // Set the device address 0 to use when transmitting
    NRF_RADIO-&amp;gt;RXADDRESSES = 0x01UL; // Enable the device address 0 to use to select which addresses to receive

    // Set the address according to the transmission pattern.
    switch (pattern)
    {
        case TRANSMIT_PATTERN_RANDOM:
            NRF_RADIO-&amp;gt;PREFIX0 = _rnd8();
            NRF_RADIO-&amp;gt;BASE0   = _rnd32();
            break;

        case TRANSMIT_PATTERN_11001100:
            NRF_RADIO-&amp;gt;PREFIX0 = 0xCC;
            NRF_RADIO-&amp;gt;BASE0   = 0xCCCCCCCC;
            break;

        case TRANSMIT_PATTERN_11110000:
            NRF_RADIO-&amp;gt;PREFIX0 = 0xF0;
            NRF_RADIO-&amp;gt;BASE0   = 0xF0F0F0F0;
            break;

        default:
            return;
    }


    switch (mode)
    {
     #ifdef NRF52840_XXAA
        case RADIO_MODE_MODE_Ieee802154_250Kbit:
        {
            // Packet configuration:
            // S1 size = 0 bits, S0 size = 0 bytes, payload length size = 8 bits, 32-bit preamble.
            NRF_RADIO-&amp;gt;PCNF0 = (RADIO_LENGTH_LENGTH_FIELD &amp;lt;&amp;lt; RADIO_PCNF0_LFLEN_Pos) |
                               (RADIO_PCNF0_PLEN_32bitZero &amp;lt;&amp;lt; RADIO_PCNF0_PLEN_Pos) |
                               (RADIO_PCNF0_CRCINC_Exclude &amp;lt;&amp;lt; RADIO_PCNF0_CRCINC_Pos);
            NRF_RADIO-&amp;gt;PCNF1 = (IEEE_MAX_PAYLOAD_LEN &amp;lt;&amp;lt; RADIO_PCNF1_MAXLEN_Pos);

            NRF_RADIO-&amp;gt;MODECNF0    |= (RADIO_MODECNF0_RU_Fast &amp;lt;&amp;lt; RADIO_MODECNF0_RU_Pos);
        } break;

        case RADIO_MODE_MODE_Ble_LR500Kbit:
        case RADIO_MODE_MODE_Ble_LR125Kbit:
        {
            // Packet configuration:
            // S1 size = 0 bits, S0 size = 0 bytes, payload length size = 8 bits, 10-bit preamble.
            NRF_RADIO-&amp;gt;PCNF0 = (0UL &amp;lt;&amp;lt; RADIO_PCNF0_S1LEN_Pos) |
                               (0UL &amp;lt;&amp;lt; RADIO_PCNF0_S0LEN_Pos) |
                               (RADIO_PCNF0_PLEN_LongRange &amp;lt;&amp;lt; RADIO_PCNF0_PLEN_Pos) |
                               (2UL &amp;lt;&amp;lt; RADIO_PCNF0_CILEN_Pos) |
                               (3UL &amp;lt;&amp;lt; RADIO_PCNF0_TERMLEN_Pos) |
                               (RADIO_PCNF0_CRCINC_Exclude &amp;lt;&amp;lt; RADIO_PCNF0_CRCINC_Pos) |
                               (RADIO_LENGTH_LENGTH_FIELD &amp;lt;&amp;lt; RADIO_PCNF0_LFLEN_Pos);
            NRF_RADIO-&amp;gt;PCNF1 = (RADIO_PCNF1_WHITEEN_Enabled &amp;lt;&amp;lt; RADIO_PCNF1_WHITEEN_Pos) |
                               (RADIO_PCNF1_ENDIAN_Little &amp;lt;&amp;lt; RADIO_PCNF1_ENDIAN_Pos) |
                               (3UL &amp;lt;&amp;lt; RADIO_PCNF1_BALEN_Pos) |
                               (0UL &amp;lt;&amp;lt; RADIO_PCNF1_STATLEN_Pos) |
                               ((sizeof(m_tx_packet) - 1) &amp;lt;&amp;lt; RADIO_PCNF1_MAXLEN_Pos);

            // Set fast ramp-up time.
            NRF_RADIO-&amp;gt;MODECNF0 |= (RADIO_MODECNF0_RU_Fast &amp;lt;&amp;lt; RADIO_MODECNF0_RU_Pos);

            // Set CRC length; CRC calculation does not include the address field.
            NRF_RADIO-&amp;gt;CRCCNF = (RADIO_CRCCNF_LEN_Three &amp;lt;&amp;lt; RADIO_CRCCNF_LEN_Pos) |
                                (RADIO_CRCCNF_SKIPADDR_Skip &amp;lt;&amp;lt; RADIO_CRCCNF_SKIPADDR_Pos);
        } break;
     #endif // NRF52840_XXAA

        case RADIO_MODE_MODE_Ble_2Mbit:
        {
            // Packet configuration:
            // S1 size = 0 bits, S0 size = 0 bytes, payload length size = 8 bits, 16-bit preamble.
            NRF_RADIO-&amp;gt;PCNF0 = (0UL &amp;lt;&amp;lt; RADIO_PCNF0_S1LEN_Pos) |
                               (0UL &amp;lt;&amp;lt; RADIO_PCNF0_S0LEN_Pos) |
                               (RADIO_PCNF0_PLEN_16bit &amp;lt;&amp;lt; RADIO_PCNF0_PLEN_Pos) |
                               (RADIO_LENGTH_LENGTH_FIELD &amp;lt;&amp;lt; RADIO_PCNF0_LFLEN_Pos);
        } break;

        default:
        {
            // Packet configuration:
            // S1 size = 0 bits, S0 size = 0 bytes, payload length size = 8 bits, 8 -bit preamble.
            NRF_RADIO-&amp;gt;PCNF0 = (0UL &amp;lt;&amp;lt; RADIO_PCNF0_S1LEN_Pos) |
                               (0UL &amp;lt;&amp;lt; RADIO_PCNF0_S0LEN_Pos) |
                               (RADIO_PCNF0_PLEN_8bit &amp;lt;&amp;lt; RADIO_PCNF0_PLEN_Pos) |
                               (RADIO_LENGTH_LENGTH_FIELD &amp;lt;&amp;lt; RADIO_PCNF0_LFLEN_Pos);
        } break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It should be worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/273961?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 09:06:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06a8f9a-61ed-45a8-b82c-73d300852fe0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Correct, the radio_test example is very simple, and doesn&amp;#39;t use any protocol per se.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For basic RF testing this is not really required.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/273719?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 11:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5664bb1d-4f9d-4ca1-8216-15491eda399d</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;Reality is sinking in slowly... All this time I&amp;#39;ve had it on my mind that we&amp;#39;re dealing with MAC level packets. With addresses and crcs and all that. But the radio test has none of that. I&amp;#39;ve looked at the code quite a while, even traced some of the register values, but it wasn&amp;#39;t until I started adding some filtering that it dawned on me that we&amp;#39;re dealing with bare PHY packets.&lt;/p&gt;
&lt;p&gt;So all we have is the synchronization header, a length byte (PHR), and a payload full of fixed values. No addresses, not even a crc. I guess it might be possible to add the crc calculation even if there is no actual MPDU, but I&amp;#39;m not sure.&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m going to do is simply check that the payload matches the expected fixed pattern, that&amp;#39;ll be good enough in my case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/273661?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 08:33:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fb6cdb7-4ccb-46e3-85f1-250a571f034e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a lot of experience with 802.15.4-based protocols, but based on the product specification it seems you are correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any packet matching the synchronization header field (consisting of 4 bytes of preamble and 1 byte SHR) will be accepted by the radio, assuming the CRC is OK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then the destination address will have to be decoded from the packet by the software.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/273421?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 09:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddef6f9c-64ac-43fc-ba18-f6fc746347bc</guid><dc:creator>mrono</dc:creator><description>[quote userid="2116" url="~/f/nordic-q-a/66277/radio-test-in-802-15-4--mode/273419#273419"]Did you ever see any packets come in if you don&amp;#39;t enable the TX at all?[/quote]
&lt;p&gt;I think I did. I&amp;#39;ll need to recheck.&lt;/p&gt;
&lt;p&gt;We have things here in the office that use a proprietary 802.15.4-based protocol to communicate, so that seemed the most plausible explanation.&lt;/p&gt;
&lt;p&gt;Now that I think about it.. The address matching is done in software, right? I recall struggling with it when we first implemented support for our protocol for the nRF52840. The radio driver needed to do quite a bit of work filtering packets intended for other recipients.&lt;/p&gt;
&lt;p&gt;And since the radio test code is very simple, there is no software address matching. So this is probably the cause.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/273419?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 09:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd6e18e-51aa-4620-aa30-b5885e9b119a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Markku&lt;/p&gt;
&lt;p&gt;Thanks a lot for the update. I made the same changes myself and verified that this made the example work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t notice the counter issues you experienced though, I get the right number of packets on the RX side depending on how many packets I send from the TX. How often do you see this occur?&lt;/p&gt;
&lt;p&gt;Did you ever see any packets come in if you don&amp;#39;t enable the TX at all?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/273207?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 11:50:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d21cbba-6aac-49ea-85dd-a116e11ba035</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;If you set the other PCNF1 fields (balen, endian, whiteen) to zero in 802.15.4-mode, the reception works again. That makes PCNF1 equal to the way it was in SDK 15.3. I&amp;#39;m not sure if everything is correct after that, or if there is something else needed also.&lt;/p&gt;
&lt;p&gt;I did also notice that the received packets counter occasionally ends up higher than the number of packets I sent. The rx counter increments every time a CRCOK event occurs. So I&amp;#39;m guessing that in 802.15.4-mode the receiver counts every valid packet, even those sent to other devices? I have not checked this further though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/273197?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 11:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8e26450-75fd-42c0-9747-f9d0c51f7a83</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Markku&lt;/p&gt;
&lt;p&gt;I did some testing on my own, and it seems I am experiencing the same issue. In 802.15.4 mode I am not able to receive any packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will have to look into this a bit more and get back to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/272886?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 08:06:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fe71b7b-802e-4161-81f1-0d9b129383ea</guid><dc:creator>mrono</dc:creator><description>[quote userid="2116" url="~/f/nordic-q-a/66277/radio-test-in-802-15-4--mode/272564#272564"]Have you tried to read out the content of the PCNF1 register from the two configurations to see how it differs?[/quote]
&lt;p&gt;I checked this now. PCNF1 is set as I expected.&lt;/p&gt;
&lt;p&gt;In SDK 15.3, when using 802.15.4-mode PCNF1 is 0x7F. So only MAXLEN is set.&lt;/p&gt;
&lt;p&gt;In SDK 15.3, using BLE 1Mbit-mode PCNF1 is 0x030400FF. So MAXLEN = FF, BALEN = 4, ENDIAN = 1 and WHITEEN = 1.&lt;/p&gt;
&lt;p&gt;In SDK 17.0.2, 802.15.4-mode gives 0x0304007F. So MAXLEN is correct, but BALEN, ENDIAN and WHITEEN are also set.&lt;/p&gt;
&lt;p&gt;BLE_1Mbit-mode in SDK 17.0.2 is identical to the earlier SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/272564?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 13:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f38e59-8131-4059-bbff-42c653c6f266</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Markku&lt;/p&gt;
&lt;p&gt;Thanks for the detailed report, I will try to reproduce the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to read out the content of the PCNF1 register from the two configurations to see how it differs?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/272347?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 13:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf3169f-a8c0-4d6d-a366-4218a1d5e5d0</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried to compare the radio test examples from SDKs 15.3 and 17.0.2. A lot has changed, but I found something interesting among the changes.&lt;/p&gt;
&lt;p&gt;In SDK 15.3 the function &lt;em&gt;radio_config&lt;/em&gt; writes directly to the radio registers.&lt;/p&gt;
&lt;p&gt;First it unconditionally writes this to the PCNF1 register:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;// Packet configuration:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; // Bit 25: 1 Whitening enabled&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; // Bit 24: 1 Big endian,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; // 4-byte base address length (5-byte full address length),&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; // 0-byte static length, max 255-byte payload .&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; NRF_RADIO-&amp;gt;PCNF1 = (RADIO_PCNF1_WHITEEN_Enabled &amp;lt;&amp;lt; RADIO_PCNF1_WHITEEN_Pos) |&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; (RADIO_PCNF1_ENDIAN_Big &amp;lt;&amp;lt; RADIO_PCNF1_ENDIAN_Pos) |&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; (4UL &amp;lt;&amp;lt; RADIO_PCNF1_BALEN_Pos) |&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; (0UL &amp;lt;&amp;lt; RADIO_PCNF1_STATLEN_Pos) |&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; ((sizeof(m_tx_packet) - 1) &amp;lt;&amp;lt; RADIO_PCNF1_MAXLEN_Pos);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A few lines later it checks if we wanted 802.15.4 -mode, and does this:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NRF_RADIO-&amp;gt;PCNF1 = (IEEE_MAX_PAYLOAD_LEN &amp;lt;&amp;lt; RADIO_PCNF1_MAXLEN_Pos);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So it overwrites the previously set PCNF1 configuration.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;SDK 17 does almost the same thing, but uses a configuration struct:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;/* Packet configuration:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; * payload length size = 8 bits,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; * 0-byte static length, max 255-byte payload,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; * 4-byte base address length (5-byte full address length),&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; * Bit 24: 1 Big endian,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; * Bit 25: 1 Whitening enabled.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; memset(&amp;amp;packet_conf, 0, sizeof(packet_conf));&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; packet_conf.lflen = RADIO_LENGTH_LENGTH_FIELD;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; packet_conf.maxlen = (sizeof(m_tx_packet) - 1);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; packet_conf.statlen = 0;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; packet_conf.balen = 4;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; packet_conf.big_endian = true;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; packet_conf.whiteen = true;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And again a few lines later, if 802.15.4 was requested:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;packet_conf.maxlen = IEEE_MAX_PAYLOAD_LEN;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;But done this way, the previous contents of packet_conf are not overwritten. And PCNF1 ends up different than in SDK 15.3.&lt;/p&gt;
&lt;p&gt;If I add code to reset the other PCNF1 fields (balen, big_endian, whiteen) to zero, I can receive 802.15.4 packets again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So this looks like a mistake made during refactoring. Although the original way was in my opinion a nasty surprise to leave for the future maintainer.&lt;/p&gt;
&lt;p&gt;Could someone at Nordic check if I&amp;#39;m on the right track here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/272263?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 11:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf703908-84e7-416f-b30a-c257afcb8cf7</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;Ok, if I take the radio test code from SDK 15.3 I can receive using the same procedure.&lt;/p&gt;
&lt;p&gt;The 15.3 radio test doesn&amp;#39;t have a rx packet counter, but by varying the tx payload an printing the received payload I can see that it does receive the correct packet at least once.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/272253?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 11:07:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15898419-02e8-4c36-83a0-c456c9746d79</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;Some further things I tried:&lt;/p&gt;
&lt;p&gt;Tried the other payload pattern (11110000)&lt;/p&gt;
&lt;p&gt;Explicitly set the tx power, even though the default was fine for my tests&lt;/p&gt;
&lt;p&gt;Verified that the code catches the mistake if I try to set a channel not between 11-26&lt;/p&gt;
&lt;p&gt;To rule out the Keil tools I flashed the precompiled radio_test_pca10056.hex to the DKs using nRF Connect Programmer&lt;/p&gt;
&lt;p&gt;None of this changed a thing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/272234?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 10:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a00313a8-a8fa-4424-a66b-864088941b8c</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;I feel like I must have a simple mistake somewhere, as this is just not working at all. So here is again what I&amp;#39;m doing:&lt;/p&gt;
&lt;p&gt;Two nRF52840DKs, both new, both version 2.0.1&lt;/p&gt;
&lt;p&gt;I program both with the radio test example from SDK 17.0.2. I use Keil for compiling and programming in case that matters.&lt;/p&gt;
&lt;p&gt;Open two terminals to send commands. I used putty.&lt;/p&gt;
&lt;p&gt;Issue the following commands for both DKs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;data_rate ieee802154_250Kbit&lt;/li&gt;
&lt;li&gt;transmit_pattern pattern_11001100&lt;/li&gt;
&lt;li&gt;start_channel 16&lt;/li&gt;
&lt;li&gt;end_channel 16&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All commands were successful, and the DKs responded accordingly.&lt;/p&gt;
&lt;p&gt;Now on one DK start reception: (start_rx)&lt;/p&gt;
&lt;p&gt;And on the other start transmitting 500 packets: (start_tx_modulated_carrier 500)&lt;/p&gt;
&lt;p&gt;Once the transmitter prints that it is finished, print the receive status on the receiver: (print_rx)&lt;/p&gt;
&lt;p&gt;The result I&amp;#39;m seeing is that nothing was received.&lt;/p&gt;
&lt;p&gt;Now I change the mode to BLE (data_rate ble_1Mbit) on both units. Restart rx, resend the 500 packets.&lt;/p&gt;
&lt;p&gt;Printing results shows that all 500 packets were received.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/272164?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 05:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8deda210-65b9-4439-8ca6-85fee69edf12</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;I tried 11 and 26. The radio test even prints a message if you try to use an invalid channel, so I don&amp;#39;t think this was an issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/271952?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 07:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb47ec3-df8a-4e6b-b6ce-c1f96161bf08</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Markku&lt;/p&gt;
&lt;p&gt;Which RF channel are you using?&lt;/p&gt;
&lt;p&gt;As mentioned in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf_radio_test_example.html?cp=7_1_4_6_31"&gt;example documentation&lt;/a&gt; the start and end channel must be in the 11 to 26 range when using the IEEE 802.15.4 mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/271723?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 09:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d9e3e0f-4fb8-408b-881a-b3bf256ed935</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;I got new DKs now. PCA10056 v2.0.1&lt;/p&gt;
&lt;p&gt;Now I get no reception whatsoever in&amp;nbsp;&lt;span&gt;ieee802154_250Kbit mode. Doing as described in the first post, the packet counter stays at zero all the time. Changing mode (data_rate) to ble_1Mbit makes the reception successful.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To clarify, I&amp;#39;m using the radio test example from SDK 17.0.2 as is, not modified in any way. And two new nRF52840 DKs.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/271135?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 14:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a693944b-f574-4208-add6-15bdbdaad55a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Markku&lt;/p&gt;
&lt;p&gt;Thanks for the update. Please test again when you got the new DK&amp;#39;s, and let us know if you&amp;#39;re still experiencing issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/271091?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 12:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb044b3e-e588-420d-b55c-8692bfb09eb5</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;Based on the date code I probably have an Engineering A version.... I didn&amp;#39;t even remember I had a DK this early.&lt;/p&gt;
&lt;p&gt;And the Errata 110 would explain what I&amp;#39;m seeing:&lt;/p&gt;
&lt;h2 class="title sectiontitle"&gt;Consequences&lt;/h2&gt;
&lt;p class="p"&gt;Might lose packets in BLE LR or 802.15.4 mode. Might lose some sensitivity in BLE and proprietary mode.&lt;/p&gt;
&lt;h2 class="title sectiontitle"&gt;Workaround&lt;/h2&gt;
&lt;p class="p"&gt;Always disable the radio after having received a packet (using TASK_DISABLE).&lt;/p&gt;
&lt;p class="p"&gt;&lt;/p&gt;
&lt;p class="p"&gt;&lt;/p&gt;
&lt;p class="p"&gt;Ugh. I have ordered a few more DKs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test in 802.15.4 -mode</title><link>https://devzone.nordicsemi.com/thread/271078?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 12:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eb5ca41-1efb-47a8-a560-6a59c6c782bd</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;Ok, I think I may have a hardware revision issue. One of my DKs is actually a Preview DK. PCA10056 v0.9.2&lt;/p&gt;
&lt;p&gt;I used this PDK as the receiver in the tests I did earlier. Now I tried to reverse the roles, and this unit hangs when trying to start transmitting.&lt;/p&gt;
&lt;p&gt;Is this expected? I need to check the HW revisions but was there an issue like this on some earlier revision?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a third DK at the moment to test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>