Using the console#
Choose this option if you want to perform simple non-automated measurements without invoking any ranging algorithm.
If you want to run hosted algorithms or automated series of measurements, the host application is a better choice. See the following chapters for more detail.
Configuring the ranging service client#
Connect to the board that acts as the ranging service client (the board that initiates the measurement request) using a serial console (see Firmware setup).
Run the following command:
communication role {central | peripheral}
Parent topic:Using the console
Triggering one CS measurement#
First, ensure that you have configured the ranging service server and ranging service client boards as described above.
To trigger a measurement, run the following command:
range
Both devices synchronize to each other and perform a CS test procedure using default settings.
The expected output is a JSON-like structure similar to the following:
items:[{mciq:{cfg:{n_ap:1,n_stp:79},result:{vf:79,cde:8.76,cqi:1.000},},tof:{cfg:{n_stp:13},result:{ad:7.8,sr:100},},},]
CRC32:cf49a670
marker:[DONE]
If verbosity is increased, the output may contain numerous additional information. It may contain all CS results output as well as debug information.
See section Command response for how to interpret these results.
Parent topic:Using the console
Changing CS configuration#
The console configures numerous CS parameters.
See Embedded firmware command reference for the exhaustive firmware configuration commands that can be passed through the command line interface (CLI).
Parent topic:Using the console
Parent topic:Running wireless ranging demo application