BMW OBD Service 0x22 Extended PIDs

Discussion and research on OBDII integration, especially on OEM specific PIDs from Ford, GM, Chevrolet, BMW, Porsche, Audi, Toyota, Volkswagen, Mazda, Honda, Subaru, Mitsubishi and others.
Post Reply
TYRFRYR
Posts: 5
Joined: Fri Oct 01, 2021 1:17 am
Contact:

BMW OBD Service 0x22 Extended PIDs

Post by TYRFRYR »

For all the BMW owners, you may or may not have discovered that your vehicle does not respond to OBD Service 0x22 queries when using a RaceCapture device. Upon a review of the RaceCapture firmware for version 2.19.0 (available on github) it was determined that the firmware, in its’s current implementation, isn’t capable of accommodating BMW OBD Service 0x22 queries. A write up on the specifics of BMW OBD Service 0x22 messaging can be found here https://thesecretingredient.neocities.org/bmw.

Without having native firmware support, a Lua script was developed to perform BMW OBD Service 0x22 queries for data from the various ECU modules throughout the vehicle. The script implements the same “Bubble Up” PID scheduling method as in the firmware so similar PID performance can be expected. Unfortunately, the Central Gateway Module will not respond to Service 0x22 queries from the script while also being queried for standard PIDs that may be configured on the OBDII Mapping Tab of the RaceCapture app. For this reason, OBDII Mapping should be turned off while using the script.

The script, in its native form, is rather large and requires “minification” to be loaded in the RaceCapture Device (tested on Track Mk2 and Track Mk3). A minified version of the script is available as a public script preset through the RaceCapture app. The full script (with comments and documentation) along with processing/building tools is available as a public github repository. A guide for using the script with links to the repository are located here https://thesecretingredient.neocities.org/bmw/lua.

I’d like to give a thank you to EarlyApex for helping to test and improve the script!

Enjoy!!

The SECRET Ingredient!

brentp
Site Admin
Posts: 6275
Joined: Wed Jan 24, 2007 6:36 am

Re: BMW OBD Service 0x22 Extended PIDs

Post by brentp »

This is great, hopefully we can cleanly roll the equivalent capability into the main system.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Post Reply