From 71161d1d991a49c81ecff9b0d0cfeb5034aaac0d Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Fri, 31 Jul 2026 12:13:54 +0200 Subject: [PATCH] Add scripts to run/ flash the supported feature-sets --- Readme.md | 6 +++--- run-smartphone.sh | 6 ++++++ run-standalone-cam.sh | 6 ++++++ run-standalone-no_cam.sh | 6 ++++++ 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100755 run-smartphone.sh create mode 100755 run-standalone-cam.sh create mode 100755 run-standalone-no_cam.sh diff --git a/Readme.md b/Readme.md index 1dda26f..ace338e 100644 --- a/Readme.md +++ b/Readme.md @@ -89,10 +89,10 @@ Additional features are available through feature flags: - `cam_tx`: Enable CAM generation and transmission (needs time and position source) Officially supported feature combinations are: -- `esp,spat,gnss,screen` (default features) -- `esp,spat,gnss,screen,cam_tx` +- `esp,spat,gnss,screen` (default features, "standalone") +- `esp,spat,gnss,screen,cam_tx` ("standalone with CAM") - `esp,spat,gnss,screen,cam_tx,cam,denm` -- `esp,uart,cam,denm` +- `esp,uart,cam,denm` ("smartphone companion") Connect your ESP32-C5 and run: diff --git a/run-smartphone.sh b/run-smartphone.sh new file mode 100755 index 0000000..ee5170d --- /dev/null +++ b/run-smartphone.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +## Builds common config for smartphone connected device +## -> only receive CAM and DENMs via UART (TODO: and BLE) + +cargo run --release --no-default-features -F esp,cam,denm,uart diff --git a/run-standalone-cam.sh b/run-standalone-cam.sh new file mode 100755 index 0000000..9bfafbe --- /dev/null +++ b/run-standalone-cam.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +## Builds common config for standalone device with automatic CAM transmission +## -> enable SPAT/ GLOSA with GNSS and a screen + CAM transmission + +cargo run --release -F cam_tx diff --git a/run-standalone-no_cam.sh b/run-standalone-no_cam.sh new file mode 100755 index 0000000..e61d25c --- /dev/null +++ b/run-standalone-no_cam.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +## Builds common config for standalone device +## -> enable SPAT/ GLOSA with GNSS and a screen + +cargo run --release