This project contains the PoC for Ultra-Wideband ranging using a single, broadcast message for simultaneous rangings to all other devices.
Setup Zephyr and West as usual. As the Decawave Driver does not allow precise timings, we added some overrides which need to be manually applied (see override directory). As an alternative, you can checkout the related Zephyr feature branch. Tested based on commit 6d56b829423056819c4baaafd6c66957752e22f8, while commit eeb4434d2eb5f2c978c59a439688c1f3f46e8bf8 has been reverted due to scheduling exceptions (already included in the overrides).
Build the project for the Decawave DWM1001 module:
west build -b decawave_dwm1001_dev --pristine auto
You can then flash the boards one by one:
west flash
You can also use the included Dockerfile / docker compose file configuration to build (warning this might take a bit of time):
docker compose up -d --build
docker compose exec -it /bin/bash build
cp -Rf /app/override/* /zephyr/zephyr/
west build -b decawave_dwm1001_dev --pristine always
Use the monitor Python script to display JSON outputs of also multiple devices.
pip3 install pyserial
python3 monitor.py </dev/tty.dev1> </dev/tty.dev2>