nRF5 SDK v13.0.0
Radio Test Example

The Radio Test Example shows how to configure the radio as a constant RX/TX carrier, modulated TX carrier, and RX/TX sweep. The tests are controlled with simple one-letter commands via the serial port. At any time during the tests, you can set the radio parameters output power, bit rate, and channel. You can also set the time on each channel in sweep mode, in steps of 1 millisecond from 1 millisecond to 99 milliseconds.

The application starts with enabling the 16 MHz crystal oscillator and configuring the UART and interrupts. The main loop waits until it receives a command through the UART. Then it initiates the requested command.

The following one-letter commands are available:

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\radio_test

Testing

Test the Radio Test Example application by performing the following steps:

  1. Compile and program the application.
  2. Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
    • Baud rate: 115.200
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: RTS/CTS
  3. The text "RF Test" should appear at the top of the terminal.
  4. Type any of the letters described above. An output text should be displayed in the PUTTY window, or a sweep or signal should be started.
  5. Use a spectrum analyzer to confirm the behavior of the radio module.

Documentation feedback | Developer Zone | Subscribe | Updated