nRF51 SDK - S110 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. The following radio parameters can be set at any time during the tests: output power, bit rate, and channel. The time on each channel in sweep mode can also be set in steps of 1 ms from 1 ms to 99 ms.

The application starts with enabling the 16MHz crystal oscillator and configuring the UART and interrupts. The main loop waits and initiates the requested command when it's received through the UART.

Setup

Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).

The available one-letter commands are:

  • 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 (1ms-99ms).
  • 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.

Testing

The Radio Test Example Application can be tested as follows:

  1. Compile and program the application.
  2. Start a COM listener like PUTTY and connect to the used COM port at 38400 baud rate.
  3. The text "RF Test" should appear at the top of the terminal.
  4. Typing any of the letters described in the setup section should give an output text on the PUTTY window or start a sweep or signal.
  5. Use a spectrum analyzer to confirm the behavior of the Radio module.