> source /path/to/zephyr/zephyr-env.sh
> west build -b nrf5340dk_nrf5340_cpuapp -p
> west flash
Flash one device as described above and flash a target device with the ping
example.
In the serial console of the transmitter, use the command send <mac> <packetsize>
to send a test packet. For example: send e609b2 10
to send a 10 byte message to a receiver with mac e609b2
.
In the serial console of the transmitter, the two-way latency will be printed on the format: rtt: <latency in microseconds>
, for example: rtt: 976
if the latency was 976μs.
See measure_rtt.py