This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Radio test in 802.15.4 -mode

I'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 to work for a little while. If I tell the sender to send 100 packets, I usually get 100 received packets. But for anything longer the reception seems to stop at some point.

For instance if I set the transmitter to send 10000 packets (start_tx_modulated_carrier 10000) and monitor the reception by issuing "print_rx"-commands on the receiver, the packet count initially increments but stops at some point. Usually at a few hundred packets. Now if I issue a new "start_rx"-command the packet count again starts to increment from zero (as expected), but again stops at some lowish value.

I also tried a lower packet rate by setting the transmitter to duty cycle modulation. If I do "start_duty_cycle_modulated_tx 10", ie 10% duty cycle, it is even easier to monitor the received packet count as it increments slower. But again the count stops incrementing fairly soon. And restarting the rx makes the reception work again for a while.

If I redo all of the above using ble_1Mbit -mode it all works. I can send 10000 packets and receive 10000 packets. So it seems to be related to the 802.15.4-mode.

All testing so far has been done at my desk, with the DKs a few centimeters apart.

Any ideas on how to make this work would be appreciated.

  • Hi Markku

    Thanks for the detailed report, I will try to reproduce the issue. 

    Have you tried to read out the content of the PCNF1 register from the two configurations to see how it differs?

    Best regards
    Torbjørn

  • Have you tried to read out the content of the PCNF1 register from the two configurations to see how it differs?

    I checked this now. PCNF1 is set as I expected.

    In SDK 15.3, when using 802.15.4-mode PCNF1 is 0x7F. So only MAXLEN is set.

    In SDK 15.3, using BLE 1Mbit-mode PCNF1 is 0x030400FF. So MAXLEN = FF, BALEN = 4, ENDIAN = 1 and WHITEEN = 1.

    In SDK 17.0.2, 802.15.4-mode gives 0x0304007F. So MAXLEN is correct, but BALEN, ENDIAN and WHITEEN are also set.

    BLE_1Mbit-mode in SDK 17.0.2 is identical to the earlier SDK.

  • Hi Markku

    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. 

    I will have to look into this a bit more and get back to you. 

    Best regards
    Torbjørn

  • 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'm not sure if everything is correct after that, or if there is something else needed also.

    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'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.

  • Hi Markku

    Thanks a lot for the update. I made the same changes myself and verified that this made the example work. 

    I didn'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?

    Did you ever see any packets come in if you don't enable the TX at all?

    Best regards
    Torbjørn

Related