nRF51 SDK - S210 SoftDevice
 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 38400 baud. 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.

The name of the example is radio_test_pca10028. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\Nordic\nrf51\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 COM listener like PUTTY and connect to the used COM port with the following UART settings:
    • Baud rate: 38.400
    • 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.