Skip to content

PECHAM TPMS (BLE) - OpenAuto for RPI integration

Notifications You must be signed in to change notification settings

KreAch3R/tpms-oap

Repository files navigation

TPMS-OAP

TPMS BLE sensors - OpenAuto for RPI integration!

Currently:

  • PECHAM TPMS External sensors
  • SYSGRATION/EKETOOL TPMS Internal sensors

Connect your TPMS BLE Sensors (currently internal and external models) to your raspberry pi running OpenAuto and use the OBD2 injection service to display the tire pressure and tire temperature in the Dashboards section:

SYTPMS TPMSII TPMS-Advanced

Acknowledgement

Requirements

  1. Github/TPMS
  2. OpenAuto
  3. PECHAM TPMS external sensors
  4. SYSGRATION/EKETOOL internal sensors

Installation Requirements

My "NaviPi USB Update" solution is supposed to be used, this is how this repository is structured. I have also included the necessary dependencies in the tpms-oap_update.sh file.

But you can always do it manually, install the files, enable the services, etc.

IMPORTANT:

  1. Add your TPMS sensors' Bluetooth device MAC addresses in the tpms_mqtt.py. You can find it using any Bluetooth scanner such as: Bluetooth Finder, Scanner Pair
  2. The services are expecting a log folder location at ~/Logs. If you don't want that, change it.

Confirming the install

After running both services, the expected output for tpms_mqtt service is:

[2023-07-16 19:09:31] Connected
{'FL': None, 'FR': None, 'RL': None, 'RR': None}

And for openauto_tpms_obdinject:

Starting injection...
press
waiting for api connection
(10, 14)
getPidValue(10)
FL
{'FL': None, 'FR': None, 'RL': None, 'RR': [3.0, 28, 19.61]}
FL
sent to OAP!

These are examples. More data should start streaming in, and for all tires.

Testing: There is also a dummy MQTT service included, to produce random tire sensor readings, for testing: tpms_mqtt_dummy.py. There is also a generic tpms_grabber which tries to grab output from all BLE devices in the close proximity, and a tpms_output_parse which can help you start reverse engineering the data byte output.

The End Result:

The sensors measure tire pressure, temperature and battery of the sensor itself. The wake up during rapid pressure changes and after a 5 minute drive. There is also an OAP Notification for low tire readings.

Future To-Do!

  • Convince OAP developers that a lowerLimit key needs to be added into Dashboards Gauges, so that there is a safe lower limit for the tire pressure.
  • Save the data / keep a log for future reference.

About

PECHAM TPMS (BLE) - OpenAuto for RPI integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published