.. _radio_test: Radio test ######################## .. contents:: :local: :depth: 2 The Radio test sample demonstrates how to configure the 2.4 GHz short-range radio (Bluetooth® LE, IEEE 802.15.4 and proprietary) in a specific mode and then test its performance. The sample provides a set of predefined commands that allow you to configure the radio in three modes: * Constant RX or TX carrier * Modulated TX carrier * RX or TX sweep Requirements ************ The sample supports the following development kits: .. tabs:: .. group-tab:: Simple board variants The following board variants do **not** have DFU capabilities: .. include:: /includes/supported_boards_all_non-mcuboot_variants_s115.txt .. include:: /includes/supported_boards_all_non-mcuboot_variants_s145.txt .. group-tab:: MCUboot board variants The following board variants have DFU capabilities: .. include:: /includes/supported_boards_all_mcuboot_variants_s115.txt .. include:: /includes/supported_boards_all_mcuboot_variants_s145.txt The sample also requires one of the following testing devices: * Another development kit with the same sample. * Another development kit connected to a PC with the `RSSI Viewer app`_ (available in the `nRF Connect for Desktop`_). .. note:: You can perform the radio test also using a spectrum analyzer. This method of testing is not covered by this documentation. Overview ******** To run the tests, connect to the development kit through the serial port and send shell commands. The shell subsystem is used to handle the commands. At any time during the tests, you can dynamically set the radio parameters, such as output power, bit rate, and channel. In sweep mode, you can set the time for which the radio scans each channel from one millisecond to 99 milliseconds, in steps of one millisecond. The sample also allows you to send a data pattern to another development kit. The sample first enables the high frequency crystal oscillator and configures the shell. You can then start running commands to set up and control the radio. See :ref:`radio_test_ui` for a list of available commands. .. note:: For the IEEE 802.15.4 mode, the start channel and the end channel must be within the channel range of 11 to 26. Use the ``start_channel`` and ``end_channel`` commands to control this setting. .. _radio_test_ui: User interface ************** .. list-table:: Main shell commands (in alphabetical order) :header-rows: 1 * - Command - Argument - Description * - cancel - - Cancel the sweep or the carrier. * - data_rate - - Set the data rate. * - end_channel - - End channel for the sweep (in MHz, as difference from 2400 MHz). * - output_power - - Output power set. * - parameters_print - - Print current delay, channel, and other parameters. * - print_rx - - Print the received RX payload. * - start_channel - - Start channel for the sweep or the channel for the constant carrier (in MHz, as difference from 2400 MHz). * - start_duty_cycle_modulated_tx - - Duty cycle as a percentage (two decimal digits, ranging from 01 to 90). * - start_rx - - Start RX (continuous RX mode is used if no argument is provided). * - start_rx_sweep - - Start the RX sweep. * - start_tx_carrier - - Start the TX carrier. * - start_tx_modulated_carrier - - Start the modulated TX carrier (continuous TX mode is used if no argument is provided). * - start_tx_sweep - - Start the TX sweep. * - time_on_channel -