From 91027e8f976ef7c31bc223bf4cfcac35580b0b07 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Fri, 25 Sep 2026 15:51:33 +0200 Subject: [PATCH 1/2] PATCH: c-inno demo variation --- run-standalone-denm.sh | 6 ++++++ run-standalone-glosa+denm.sh | 6 ++++++ src/screen.rs | 15 +++++++++++++++ 3 files changed, 27 insertions(+) create mode 100755 run-standalone-denm.sh create mode 100755 run-standalone-glosa+denm.sh diff --git a/run-standalone-denm.sh b/run-standalone-denm.sh new file mode 100755 index 0000000..70a0905 --- /dev/null +++ b/run-standalone-denm.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +## Builds common config for standalone device +## -> enable DENM with GNSS and a screen (no GLOSA) + +cargo run --release --no-default-features -F esp,screen,gnss_ubx,denm,ble diff --git a/run-standalone-glosa+denm.sh b/run-standalone-glosa+denm.sh new file mode 100755 index 0000000..1fb830b --- /dev/null +++ b/run-standalone-glosa+denm.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +## Builds common config for standalone device +## -> enable SPAT/ GLOSA and DENM icons with GNSS and a screen and BLE + +cargo run --release -F denm,cam_tx diff --git a/src/screen.rs b/src/screen.rs index 22d0645..4f9d01d 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -561,6 +561,14 @@ where // clear whole display and draw text self.clear()?; + text::Text::with_alignment( + "consider\ninnovation", + geometry::Point::new(i32::from(self.size.width) / 2, 40 + self.size.offset_top), + Self::MID_TEXT_STYLE, + text::Alignment::Center, + ) + .draw(&mut self.target)?; + text::Text::with_alignment( "Waiting\nfor DENM...", geometry::Point::new(i32::from(self.size.width) / 2, 130 + self.size.offset_top), @@ -684,6 +692,13 @@ where ) .draw(&mut self.target)?; } else { + text::Text::with_alignment( + "consider\ninnovation", + geometry::Point::new(centerline, 40 + self.size.offset_top), + Self::MID_TEXT_STYLE, + text::Alignment::Center, + ) + .draw(&mut self.target)?; text::Text::with_alignment( "C-ITS Companion", geometry::Point::new(centerline, 130 + self.size.offset_top), From 6580809609401ec5252338201dc6873930b1a0fe Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Mon, 12 Oct 2026 16:28:59 +0200 Subject: [PATCH 2/2] PATCH: Ignore RW DENM --- src/main.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8860627..01afcbf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -603,9 +603,14 @@ async fn main(spawner: Spawner) -> ! { match applogic::denm::handle_denm(etsi) { #[cfg(feature = "screen")] Some(cc) => { - let _ = screen - .update(screen::ScreenState::DenmWarning(cc)) - .inspect_err(log_screen_error); + match cc.to_u8_tuple() { + (3, _) => {} // ignore CC 3 + _ => { + let _ = screen + .update(screen::ScreenState::DenmWarning(cc)) + .inspect_err(log_screen_error); + } + } } _ => {} }