Device Under Test (DUT)

This sample demonstrates how to use Sidewalk Device Under Test for the testing and evaluation purposes.

Configuration options

Before building the Device under test application variant of the Sidewalk end device, ensure you have enabled the OVERLAY_CONFIG="overlay-dut.conf" configuration.

  • CONFIG_SIDEWALK – Enables support for the Sidewalk protocol and its dependencies.

  • CONFIG_SIDEWALK_SUBGHZ_SUPPORT – Enables using Sidewalk libraries with Bluetooth LE, LoRa and FSK support. Disabling this option results in using Sidewalk libraries with only Bluetooth LE support. While this results in a smaller memory footprint for the application, it also limits its functionality, as connectivity over LoRa or FSK is not available.

  • CONFIG_SIDEWALK_DFU – Enables the nRF Connect SDK bootloader and DFU service over Bluetooth LE.

  • CONFIG_SID_END_DEVICE – Switches between the application variants.

    • CONFIG_SID_END_DEVICE_HELLO – Enables the Hello Sidewalk application. This is the default option. For more details, see the Hello Sidewalk page.

    • CONFIG_SID_END_DEVICE_SENSOR_MONITORING – Enables the Sidewalk Sensor monitoring application. For more details, see the Sensor monitoring page.

    • CONFIG_SID_END_DEVICE_DUT – Enables the Sidewalk device under test application. For more details, see the Device Under Test (DUT) page.

  • CONFIG_SID_END_DEVICE_CLI – Enables Sidewalk CLI. To see the list of available commands, flash the sample and type sid help.

  • CONFIG_SIDEWALK_ON_DEV_CERT – Enables the on-device certification Shell.

  • CONFIG_SID_END_DEVICE_AUTO_START – Enables an automatic Sidewalk initialization and start.

  • CONFIG_SID_END_DEVICE_AUTO_CONN_REQ – Enables an automatic connection request before sending a message. If needed, the Bluetooth LE connection request is sent automatically.

  • SID_END_DEVICE_PERSISTENT_LINK_MASK - Enables persistent link mask.

Building and running

This sample can be found under samples/sid_end_device.

Note

Before you flash your Sidewalk sample, make sure you have completed the following:

This step needs to be completed only once. You do not have to repeat it for every sample rebuild.

To build the sample, follow the steps in the Building and programming an application documentation.

Testing

  1. After successfully building and flashing the sample is ready to use. You should see the following command-line prompt:

    uart$
    
  2. To start testing the application, use the Sidewalk CLI (DUT). Type sid help and press enter to get the list of supported commands.