Executive Technical Brief · Closed-Loop RTOS Safety (ISO 26262-4 · ISO 21448 · UN R79 ACSF B1)
Closed-Loop L2 ADAS on QNX Neutrino RTOS 8.0 (aarch64le) ⇄ CARLA UE5
Reproducible Software-in-the-Loop (SiL) reference stack for an ACSF Category B1 lateral &
longitudinal assist function (UN R79 §5.6.2): an OpenSCENARIO urban run in
CARLA 0.10 (UE5 · Town10HD) drives seven custom C++17 SWE.3 units on real
QNX Neutrino RTOS 8.0 in a synchronous 50 ms (20 Hz) loop.
Live Closed-Loop Recording (35 s · 1280×720) — Left: CARLA 0.10 UE5 Town10HD; top-right: raw
QNX 8.0.0 VirtIO-GPU framebuffer (
/dev/shmem/virtio_fb); bottom-right: torque & authority envelope.
Scope & Limits (n = 1)
R&D architecture demonstrator (single urban OpenSCENARIO run, ground-truth perception seam, QEMU/HVF on
Apple Silicon rather than target SoC) — not a production safety case; 70 open series evidence
items are inventoried explicitly in the VIPROVE Safety Seal.
ACSF B1 & 3 000 ms FTTI
Classified as ACSF Category B1 (UN R79 §5.6.2). Upon SOTIF ODD exit
(
marking_insufficient = 1), degradation_mgr.cpp clamps torque to ±1.5 Nm
and enforces a conservative 3 000 ms engineering transition budget
(kTakeoverTimeoutMs = 3000, tighter than the UN R79 Annex 8 §3.2.4.2 hands-off cascade of
15 s / 30 s) before latching DegradeState::Inhibit (0.0 Nm, steer_valid=0).
01
Raw QNX 8.0.0 VirtIO-GPU Captures: Nominal Assist vs. SOTIF ODD Limit
02
Component Ownership: Custom C/C++17 RTOS Stack vs. Baselines
| Component | Origin / Baseline | Built by Arnd Hekermans |
|---|---|---|
| lka_ctrl, acc_ctrl & lane_estimator | 100% custom C++17 compiled with QNX SDP 8.0 (qcc aarch64le) | 50 ms ACSF B1 lateral controller, headway control (-3.0..+1.5 m/s²) & lane-quality ODD monitor |
| degradation_mgr & torque_limiter | 100% custom C++17 on QNX Neutrino RTOS 8.0 | Monotonic safety FSM (Normal ±3.0 Nm → Limit ±1.5 Nm → latched Inhibit 0.0 Nm after 3 000 ms) |
| com_e2e & ara-lite runtime | 100% custom C++17 (explicitly marked homemade-stubs-not-capi) | Cycle-counter & plausibility guard (e2e_ok) + lightweight execution/logging layer without SOME/IP bloat |
| virtio_fb_server & viprove_cluster | 100% custom C on QNX 8.0 (/dev/shmem/virtio_fb, 1024×768) | POSIX shared-memory VirtIO-GPU framebuffer server & 10 Hz digital instrument cluster renderer |
| CARLA Bridge & OpenSCENARIO | Custom closed-loop harness on CARLA 0.10 (UE5 Town10HD) & QEMU | Synchronous 20 Hz TCP :4567 bridge (viprove_l2_control.py), lead-vehicle scenario &SOTIF ODD exit |
| VIPROVE Safety Seal (demo-l2-adas) | 100% custom in viprove (PROVE + kgcore) | Deterministic traceability & gap audit (Snapshot 868ac61b5a25: 17/22 SYS.2, 70 explicit gaps) |
03 Latched Safe State (
Latched Safe State (Degrade::Inhibit) & Measured QNX Telemetry
cycle=700) — Exactly 58 ticks
(~2.9–3.0 s) after ODD exit without driver takeover, l2_adas_app latches
Inhibit: torque drops to 0.00 Nm (steer_valid=0) while CARLA decelerates.
| QNX State | Trigger Condition | Measured QNX 8.0 Telemetry (50 ms Cycle) |
|---|---|---|
| Normal (0) · LKA ACTIVE | quality = 0.95 ≥ 0.35 · marking_insufficient = 0 · gap.valid = 1 · e2e_ok = 1 | cycle=413 · gap=18.7 m · τ=+0.546 Nm (±3.0 Nm envelope) · steer_valid=1 |
| Limit (2) · ADAS LIMITED | SOTIF ODD exit: degraded lane markings (marking_insufficient = 1, quality = 0.48) | cycle=642 · gap=17.98 m · τ=+0.405 Nm (capped ≤1.5 Nm) · warn=1 · 3 000 ms timer |
| Inhibit (3) · TAKE OVER | Transition budget g_warn_ms ≥ 3 000 ms (~58–60 ticks @ 50 ms) OR immediate E2eFault | cycle=700 · gap=18.33 m · τ=0.000 Nm · steer_valid=0 · latched Safe State |
04
Architectural Honesty & Deterministic Gap Inventory (Mapping ≠ Verdict)
Perception Seam (GT Stub)
perception_gt.py extracts lane offset, heading, curvature and lead gap deterministically from CARLA — creating the clean interface later used to plug in NVIDIA Alpamayo 2 Edge without touching the QNX degrade core.
QEMU/HVF vs. Target Silicon
QNX 8.0.0 runs as a real aarch64le RTOS guest under Apple Hypervisor.framework; hardware interrupt latency and WCET proofs per ISO 26262-5/6 remain open until execution on target SoC (e.g., DRIVE Orin/Thor, S32G).
Seal 868ac61b5a25 (70 Gaps)
Mapping ≠ Verdict: rather than claiming green compliance, the VIPROVE Safety Seal exposes 17/22 SYS.2, 14/22 SWE.1→SYS.2 links, 3/22 SWE.1 tested, 4 open timing budgets, and 70 explicit evidence gaps.
868ac61b5a25) — Deterministic audit of
demo-l2-adas exposing 70 open evidence gaps instead of greenwashed slides (click to zoom 1:1).