Skip to content

onyx-m2/onyx-m2-qt

Repository files navigation

This is part of the Onyx M2 Project, which enables read-only real-time access to the Tesla Model 3/Y CAN bus data, including the ability to run apps on the car's main screen through its built in web browser.

This project is a little different as it requires a direct connection to the canbus. The intent is to run this as an electronic instrument cluster (EIC) on a Raspberry Pi with some sort of CAN HAT that gives access to the car's data.

In my own implementation, I use the diagnostics connector behind the passenger kick panel, and have the hard wired to the Pi mounted behind the steering wheel.

NOTE: Proper documentation is forthcoming (you know, "soon")

Build & Install

To build on Windows (for development), I just use Qt Creator, and this should work out of the box(ish).

To build on a Raspberry Pi, I suggest using a buildroot cross-compilation environment. I'll publish my own here "soon", but in the meantime, this should work to build if you have a buildroot toolchain setup:

git clone --recurse-submodules https://github.com/onyx-m2/onyx-m2-qt

mkdir -p build/rpi/dbcppp
cd build/rpi/dbcppp
~/buildroot/output/host/bin/cmake -DCMAKE_BUILD_TYPE=Release ../../../dbcppp
make

cd ..
~/buildroot/output/host/bin/qmake ../../onyx-m2-qt.pro
make

To install, you'll need to copy the newly built binary, the eic directory, and the dbc file to the Raspberry Pi (I just have it in /root), and you should be able to run the EIC. The UI is designed around using a screen that is natively 1920x1080, but where only the top half is used.

Random Notes

  • The DBC in this repo is the same as Onyx M2 DBC but without the VAL_ entries because the library I'm using take ages to parse that stuff and this app doesn't use any of that data.

  • To build the C++ part, you'll need to setup a cross-compiler. This sucks. But, it I did setup a custom Buildroot OS for this and now I get super fast boot times, and can easily build for this target.

About

A Qt (QML) version of the EIC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published