| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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:

- a: Enter start channel for sweep/channel for constant carrier.
- b: Enter end channel for sweep.
- c: Start TX carrier.
- d: Enter time on each channel (1 ms - 99 ms).
- e: Cancel sweep/carrier.
- m: Enter data rate.
- o: Start modulated TX carrier.
- p: Enter output power.
- s: Print current delay, channels and so on.
- r: Start RX sweep.
- t: Start TX sweep.
- x: Start RX carrier.

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.