Skip to content

About

Mobile app for the Open Car Controller project.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

58 Commits

Folders and files

Repository files navigation

Open Car App

Warning

This project is under active construction. Do not use it on a real vehicle. It is experimental, largely untested on real cars, and may behave unpredictably. The app talks to a controller that can interfere with a vehicle's CAN bus, which can cause malfunctions, disable safety systems, void warranties, or put people at risk. There is no warranty (see LICENSE); you use this entirely at your own risk.

This is an independent project. It is not affiliated with, endorsed by, or sponsored by any vehicle manufacturer. Brand and model names are used only to describe compatibility.

Flutter mobile app for interacting with an ESP32-based car controller over BLE (local) and MQTT (remote). Supports the Kia/Hyundai E-GMP platform and a virtual car for UI testing without hardware.

Getting started

  1. Open the repo in the provided dev container (Flutter, Android SDK, protoc and protoc-gen-dart are pre-installed). For a native Windows setup, see Development setup.

  2. Fetch the shared contracts submodule: git submodule update --init.

  3. Create your local config: cp config.toml.example config.toml and fill in the MQTT broker settings (gitignored). For a broker on the internet, use TLS with a certificate for this phone: see MQTT over TLS.

  4. Connect a phone over wireless debugging (steps in Development setup) and run:

    flutter pub get
    flutter run

Code generation

Dart code is generated from the contracts/ submodule and config.toml. Generated files are gitignored, so run it after cloning and again when the contracts or config change:

dart run build_runner build

See Code generation for what gets generated.

Checks

flutter analyze --fatal-infos
flutter test

Architecture

The app and the controller share a protobuf envelope (AppToDevice / DeviceToApp) carrying vehicle-specific bytes, decoded by platform_id; the same wire format runs over BLE and MQTT. Each supported vehicle is a VehicleDefinition under lib/cars/<vehicle>/.

Project structure

.
├── contracts/        # git submodule: protobuf + TOML metadata shared with the firmware
├── lib/
│   ├── cars/         # one folder per supported vehicle
│   ├── config/       # app + generated MQTT config, device identity
│   ├── generated/    # generated protobuf classes (gitignored)
│   ├── models/       # VehicleDefinition
│   ├── providers/    # Riverpod providers
│   ├── screens/      # pairing wizard
│   └── transport/    # BLE, MQTT, HTTP (debug) transports
├── tool/builders/    # build_runner codegen package
├── assets_src/       # source 3D models (compressed into assets/ by tool/compress_model.sh)
├── docs/             # project documentation
└── AGENTS.md         # rules for AI agents (CLAUDE.md imports it)

Contributing

Contributions are welcome; please read CONTRIBUTING.md first and open an issue before starting anything large. Report security problems privately as described in SECURITY.md.

License

This project is licensed under the terms of the LICENSE file.

About

Mobile app for the Open Car Controller project.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages