BMW E39-RPi Homebrew Navigation System
Architecture
The e39-rpi project is made of several components.
It is a Rasberry Pi embedded Linux device running a Jetpack Compose for Desktop GUI on an X-server. The RPi is attached via GPIO, Power, and USB to a HAT that I designed.
It is designed to be wired into the e39 and make use of the existing displays and buttons
Car Hardware
The diagram below shows how the e39-rpi board and some of its components work together.
Overview Pictures
Software Architecture
High level
The Raspberry Pi runs an embedded linux distro that runs my HMI.
The Pi Pico runs a bare-metal firmware that I wrote called “Linster OS for Automotive”
Linster OS For Automotive (Pi Pico firmware)
The raspberry pi pico firmware acts as a hardware controller for the raspberry pi in the car.
«Navigation(“Pi Pico Firmware”, “pico”, true)»
Pico-Pi Private Message Protocol
The Pi and Pico send each other special messages over the same IBUS link, allowing the Pi to control the PICO hardware directly and set configured behaviour. The Pico can send messages to the Pi as well, to respond to configuration queries, warn the Pi of impending shutdowns, and send log messages.
Raspbian Firmware (RPi)
This is a prototype setup that needs some initial setup work to setup the HMI environment.
Yocto Firmware (RPi)
Tbd, this is a reworking of the prototype Raspbian firmware using Yocto and BitBake to get a more predictable production environment.
Hardware Design
I designed a custom-board (e39-rpi-mainboard) that incorporates a series of building blocks that I all tested separately.
My hardware prototyping setup consists of:
- Development Laptop
- Development Laptop attached to car
- Test bench
- Development Laptop attached to test bench
- Test “sled”
- Test “sled” attached to my car
- e39-rpi-mainboard boards attached to the test bench
- e39-rpi-mainboard board attached to my car (production environment)
The software protoyping setup works by writing code on a PopOS laptop, which has a similar BlueZ/DBUS environment, allowing rapid local development. The
Overview
Development Laptop (& attached to car)
This is where I started the project in September 2020.
Test bench
This is where I started building the hardware for the project. It consists of an IKE instrument cluster, steering wheel buttons, BMBT screen, and wiring via terminal blocks for easy prototyping. I built this so that I didn’t have to sit in the car for extended periods of time writing code.
Test sled
I started building the sled after I realized I needed to miniaturize the design. I needed a way for the RPi power to be turned off and on with the car, and I wanted to reduce the dependency on the European TV Tuner Module.
ToC
«GlobalTOC()»