An open-source automotive computing, software-defined radio, vehicle telemetry, and embedded experimentation platform.
OpenRoadCode is a modular in-vehicle computing platform designed primarily for Raspberry Pi and Linux-based embedded systems. Android/Termux is also used as an active portability and development target.
It combines software-defined radio, offline navigation, positioning, vehicle telemetry, media controls, environmental sensors, physical controls, touchscreen interfaces, and optional native Linux games into one extensible platform.
The project is intended for developers, makers, radio enthusiasts, and embedded Linux engineers who want a vehicle computing system they can inspect, modify, extend, and fully control.
OpenRoadCode does not replace factory safety or vehicle-control systems. It complements them with an independent platform for experimentation, visualization, communications, entertainment, and custom applications.
Explore the project at https://www.openroadcode.org/ or visit the OpenRoadCode repository at https://github.com/markisrt4/OpenRoadCode.
OpenRoadCode is under active development and currently operates as an advanced experimental platform rather than a finished commercial infotainment system.
Current integration work includes POI ordering, automatic online/offline mode, local POI downloads in Termux, the orcUi shell, native offline MapLibre presentation, Valhalla route planning, live Android-backed positioning on Termux, integrated SDRForge RF radio, and a native ORC media hub. Spotify now shares one background state/control service across Home and Media, while experimental PLAYER mode can register ORC itself as a Spotify Connect playback device on supported Linux/Chrome systems.
Some components are functional and actively used in the reference vehicle. Others are experimental, hardware-dependent, or still being integrated. Interfaces, configuration formats, and directory structures may continue to evolve before the first stable release.
OpenRoadCode is designed to:
Current and partially integrated capabilities include:
The Radio entry screen offers RF Radio, Streaming Radio, and Trending. RF Radio opens the native SDRForge receiver. Streaming Radio provides internet station browsing and playback. Trending shows songs and artists observed by MusicForge, with cached artist information and YouTube and Spotify actions. Trending uses the Airplay API and does not require an SDR receiver. See Streaming Radio and Trending setup.
Not every feature is supported on every target. In particular, Android/Termux is a development and portability target and does not provide hardware parity with the Raspberry Pi installation.
The orcUi Media page provides one ORC-owned surface for Spotify, YouTube, and Netflix rather than exposing a collection of unrelated desktop launchers. YouTube and Netflix use retained browser profiles and X11 window hosting where the target browser supports the required service capabilities.
Spotify uses a shared SpotifyStateService for playback state and commands. The Home now-playing card and full Spotify panel therefore observe the same cached state instead of independently polling Spotify. Network operations and playback commands run away from the Tk event thread.
The Spotify screen exposes two playback destination modes:
PLAYER mode currently requires Spotify Premium and a browser environment capable of Spotify Web Playback/EME. The verified Debian/Ubuntu AMD64 path uses Google Chrome stable. Chromium alone is not treated as sufficient because builds without the required media capabilities can fail SDK initialization. Termux therefore remains REMOTE-only for now.
Spotify uses OAuth PKCE and does not require a client secret. Credentials and OAuth tokens must not be committed to the repository.
OpenRoadCode uses libSDRForge for RF acquisition and DSP, with native ORC spectrum, waterfall and receiver controls. Android authorizes USB access and hands the device to Termux; no Debian proot radio engine is required.
| Port | Interface | Responsibility |
|---|---|---|
| 4532 | Rigctl | Compatible tuning and receiver commands |
| 5570 | REST | Receiver control, status and health |
| 5571 | ZeroMQ | Spectrum and receiver telemetry |
Select the sdrforge feature to install the native SDRForge engine. SDR++ is not required. RF service lifecycle is separate from UI presentation. See RF radio contracts for details.
FM opens with the spectrum and waterfall visible. Hide Spectrum switches to a compact dashboard with an FM dial, large tune controls, station and RDS information, presets, and receiver power. Show Spectrum restores the plots within the same receiver session.
The ORC UI includes an optional native-games frontend. config/games.toml is the catalog and describes game commands, categories, icons, and package metadata. The controller layer discovers available installers and keeps the Tk frontend independent of whether a game is supplied by the host Debian system, Termux, or Debian hosted through proot-distro.
The games panel performs inventory work asynchronously, caches resolved package backends, and presents install/play state without blocking the Tk event loop. While a game is active, the category browser is replaced by an ORC-owned EXIT GAME control and the game's X11 window is hosted in the Games content area. Exiting through either ORC or the game itself returns lifecycle state to the browser.
On native Debian/Ubuntu, graphical games use the host graphics stack. On Android/Termux, Debian games can run through the Debian userspace while Termux:X11 remains the display owner. When virglrenderer-android is available, the Debian command runner can use Mesa virpipe through the shared temporary socket to reach the Android GPU without injecting Android/Bionic graphics libraries into the Debian/glibc process.
X11 embedding currently requires xdotool. Some games manage their own window geometry aggressively; the embedder follows the launched process tree, reparents the visible game window, and reasserts host geometry during startup. This is best-effort compatibility with third-party applications rather than a guarantee that every Linux game will behave as an embeddable widget.
Potential future work includes dashcam and backup-camera integration, additional vehicle gauges, CAN/TPMS integration, steering-wheel controls, APRS, AIS, additional digital radio modes, trip recording, richer semantic POI discovery, and custom OpenRoadCode operating-system images. These are areas of interest rather than release commitments.
The current reference system is based primarily on:
| Component | Purpose |
|---|---|
| Raspberry Pi 5 | Primary embedded computer |
| Raspberry Pi 4 | Secondary and development target |
| Raspberry Pi Touch Display 2 | Primary touchscreen |
| RTL-SDR receivers | Radio and ADS-B reception |
| USB GNSS receiver | Position and time data |
| Bluetooth OBD-II adapter | Vehicle telemetry |
| Bluetooth LED controller | Cabin-lighting control |
| Rotary encoders | Physical user input |
| GPIO pushbuttons | Physical controls and shutdown input |
| Environmental / IMU sensors | Environmental and motion data |
| USB audio hardware | Audio input and output |
| Ethernet travel router | Local in-vehicle network |
| Linux workstation or VM | Development environment |
| Android / Termux device | Portability and integration testing |
Hardware compatibility varies by platform, Linux distribution, kernel, device permissions, and available drivers.
OpenRoadCode separates applications, application-facing controllers, domain services, messaging, protocols, and hardware-specific implementations.
Continuously changing public telemetry is distributed through producer services and the ZeroMQ message bus:
Producer services own physical devices or simulation sources, domain processing, and publication lifecycle. Applications consume public telemetry instead of constructing competing GPS, IMU, or OBD-II instances merely to display state.
Map presentation follows the same separation. Navigation owns normalized position and route information, controllers/map_renderer owns reusable camera policy and renderer requests, and MapRendererClient publishes renderer commands through the message bus. In orcUi, CoreComposition owns the MapCameraRuntime and explicitly injects its MapRequestHandlerIf through the shell to HOME and NAVIGATION; there is no process-global map-camera registry. The native MapLibre renderer therefore does not need to know whether a position originated from USB GNSS, Android, browser-based development input, or simulation.
The games feature follows the same boundary rule: toolkit-independent game state and requests live under ui/games, lifecycle and package policy live under controllers/games, Tk rendering lives under frontends/tk/games, and generic X11 window hosting lives under frontends/x11.
Commands requiring acknowledgement or error reporting use request/reply messaging where appropriate. Public telemetry remains SI-normalized on the wire; presentation code performs unit conversion.
orcUi, carUi, carTui, and webUi are application front ends at different stages of development. Browser-backed utilities such as Weather, ADS-B, YouTube, and Google Earth are auxiliary applications managed according to application policy.
Messaging and service documentation is available under messaging/README.md, docs/messaging/message_bus_idd.md, docs/ethernet_idd.md, services/navigation/README.md, services/automotive/README.md, controllers/sdr/README.md, apps/carTui/README.md, development/termux/README.md, and CONTRIBUTING.md.
Weather controls, provider requirements, coverage limits, and component probes are documented in Weather controllers. Radar, model heatmaps, route weather, and city weather have independent visibility controls. The shared UI contracts and enforced dependency rules are described in UI contracts.
Runtime service composition is selected through config/runtime.toml. Producer inputs can select physical, Android-backed, or simulation implementations without changing downstream telemetry consumers.
User-facing auxiliary applications are configured separately:
Application startup policy is explicit:
Browser-backed applications use independent browser app windows and profiles. Presentation targets and exclusive groups control where windows appear and which auxiliary applications may remain visible together. Spotify PLAYER mode is a special case: its Chrome app window is a playback backend and is hidden after the SDK registers the ORC Connect device.
ADS-B also separates presentation from data ownership. The Raspberry Pi/Linux profile uses source = "rtlsdr"; the Termux profile currently uses source = "simulation". With the RTL-SDR source, readsb is started on demand by the ADS-B launcher and stopped when ADS-B releases the receiver.
Do not commit credentials, API keys, OAuth tokens, browser state, or runtime service state such as runit supervise/ directories.
Raspberry Pi OS and Debian/Ubuntu hosts use the target-aware installer. Review it before running it on an existing system because it may install packages, configure services, and create a Python environment.
To launch ORC when the desktop user signs in, enable ORC desktop autostart in the installer TUI or pass --with-orc-autostart to host setup. On a Raspberry Pi configured for desktop auto-login, this launches ORC after boot. Use --no-orc-autostart to remove the launcher.
While online, ORC periodically checks a clean Git checkout on master for updates from origin/master. Choose Update and restart to fast-forward to the offered revision and restart the UI. This updates the checkout. Use the host installer for any new system packages, Python dependencies, or service configuration required by an update.
Features can be selected explicitly. Use --all-features to install all compatible software capabilities, --show-plan to inspect the resolved plan without modifying the machine, and --with-vnc or --with-gpsd-service only when those services should be configured.
The desktop-ui and navigation features use the native Tk/X11 and MapLibre interfaces and do not install a web browser. Select --feature browser explicitly for browser-backed applications.
On Linux and Raspberry Pi, select --feature sdrforge to install native radio support. The installer uses a pinned upstream revision. Developers can set LIBSDRFORGE_SOURCE to use a local checkout.
For the integrated media path on Debian/Ubuntu, run:
setup_media.sh installs the X11 integration utility and, on AMD64, Google Chrome stable for Spotify PLAYER mode. install_secrets.sh configures Spotify's PKCE client ID/redirect URI and other supported media credentials without placing secrets in the repository. If Spotify credentials are already configured, the secrets installer does not need to be rerun merely to update the media runtime.
Concrete devices and credentials remain separate from package installation. Run ./scripts/installers/host_setup.sh --help for current options.
If ./runOrcUi finds no configured or existing Python environment, it creates .venv on Linux or venv-termux on Termux. Dependency installation remains with the host installer. Set VENV_DIR to the created environment's absolute path when running the installer to populate that environment.
Third-party tar1090 source installs use the reviewed revisions in scripts/installers/toolchain.lock. Their setup scripts use isolated, OpenRoadCode-managed checkouts and do not reset unrelated source trees.
Termux is an active development target rather than a complete Raspberry Pi replacement. It is used to exercise native Python services, ZeroMQ, Valhalla, MapLibre, Chromium/Termux:X11 presentation, Android sensor integration, SDRForge integration, and simulated ADS-B presentation.
The current navigation profile consumes geographic position from the localhost Android sensor bridge while retaining simulation fallbacks for platform-dependent sensor inputs. SDRForge runs natively in Termux. Spotify REMOTE mode is supported; PLAYER mode is currently disabled because the tested Termux Chromium environment cannot initialize the Spotify Web Playback SDK. Follow development/termux/README.md for the current native build, runit services, sensor bridge, navigation data, Valhalla, SDRForge, and UI workflow.
From the repository root:
The foreground command reports flushed, dmesg-style cumulative startup times and individual stage durations while Python modules, runtime infrastructure, feature subsystems, and application screens are being composed. The same milestones are recorded as structured app.startup.progress events with duration_ms and elapsed_ms, so a slow launch remains observable both in the terminal and in ORC logs.
The RADIO navigation item opens a source chooser. RF RADIO opens the native receiver panel; STREAMING RADIO currently opens its Coming Soon page.
The MEDIA navigation item opens the integrated Spotify, YouTube, and Netflix hub. On supported Linux systems, Spotify's PLAYER control makes OpenRoadCode the Spotify Connect playback destination; REMOTE leaves playback on external Spotify Connect devices. The local player is application-owned, so it can continue while the user navigates away from the Media page and is stopped during ORC shutdown/restart.
On Linux, embedded X11 applications require the relevant setup scripts and an X11 session. On Termux, start or verify Termux:X11 first and export the appropriate DISPLAY value. The Termux guide contains the current launch sequence and native map/game prerequisites.
The older carUi application remains in the repository while the ORC UI shell is integrated and matured.
Mocks, stubs, simulation producers, and unconfigured implementations allow developers to test application logic, presentation, dependency assembly, and failure handling without the complete vehicle hardware stack.
Component-test CLIs provide direct subsystem verification for navigation inputs, route planning and map presentation, OBD-II, SDR applications, rotary encoders, environmental sensors, Spotify/media, audio, Bluetooth devices, and native game inventory/lifecycle behavior. Component tests may require hardware, permissions, services, or environment variables and supplement rather than replace automated tests.
Use the dedicated quality environment and a single developer-check entry point:
--all runs static checks; --full adds unit and integration tests. Both use the same check list in scripts/quality_gate.py, and the launcher prints the revision and interpreter being checked. Focused --lint, --format, --types, --test, and --docs modes remain available. The project-wide UI boundary task includes Weather's additional provider/renderer access rules; it is not a separate task.
For routine edits, run --all for static checks and --test with the affected test directory, file, or pytest node ID. Pytest flags such as -k are forwarded. Calling --test without a target retains the complete unit-suite behavior; --full is intended for merge readiness and includes unit and integration suites. Focused runs fail when their selection matches no tests.
To apply safe Ruff fixes and formatting before the full checks, add --fix. Add --publish to stage only those fixes, commit them, and push the configured upstream after checks pass:
Publishing requires a clean checkout and a named branch with a remote upstream. Without --publish, fixes remain available for manual review. --format also records its changed files without publishing. The last run's file list and validation/commit/push status are stored at the Git metadata path dev-check-last-run.json (normally .git/dev-check-last-run.json). Failed checks never trigger a commit; rejected pushes retain the new commit and the failure record. With no Ruff changes, no commit or push is performed.
Public methods declared in *_if.py modules must document every argument with @param and every non-None return value with @return or @retval.
Run the interface-contract checker and generate documentation with:
Generated HTML documentation is written to build/doxygen/html/index.html; warnings are written to build/doxygen-warnings.log and are treated as errors by the project Doxyfile. The Doxygen input includes ui and frontends, so the games contracts and frontend/X11 integration are part of the generated API documentation where publicly documented.
Before a pull request, also run the relevant unit/component tests for the changed subsystems. Native integration changes should be exercised on their target platform where practical, because Python can verify a contract but remains stubbornly unable to impersonate an Android graphics stack convincingly.
General project conventions include:
Primary targets are:
Termux support is intentionally partial. Hardware-specific Linux integrations such as GPIO, some audio paths, and direct RTL-SDR ownership may differ or be unavailable. Termux:X11 provides the graphical environment used by the current Android workflow. Debian applications hosted through Termux proot-distro remain Debian userspace applications; OpenRoadCode hides that hosting detail behind its Debian command runner.
OpenRoadCode is an experimental hobbyist and educational platform. It must not be relied upon for steering, braking, throttle, airbags, stability control, or other safety-critical vehicle functions.
Do not interact with the system while driving unless the interaction is legal, safe, and designed to minimize distraction. Games and other entertainment applications are for use while the vehicle is safely parked. Radio operation must comply with applicable laws and regulations. Vehicle wiring, power integration, CAN access, GPIO connections, and external hardware modifications should be performed carefully.
Contributions are welcome, particularly in automated tests, documentation, hardware adapters, configuration validation, installation, accessibility, radio applications, vehicle telemetry, embedded Linux support, failure handling, and platform portability.
Before a major architectural change, describe the problem, proposed design, affected layers, platform dependencies, and testing implications. Changes should preserve the separation between applications, controllers, services, messaging, protocols, and hardware-specific code.
Read CONTRIBUTING.md for development setup, architecture, testing conventions, hardware guidance, and the pull-request checklist.
OpenRoadCode is licensed under the MIT License. See LICENSE.