BMW F-series canbus

I would like to share what I have so far and if anyone would like to add to the file for anything you have found. This is 100% a work in progress.

BMW F22.xml (1.5 KB)

Thank you for sharing! Have you tested the values in the XML, so this can be published with next release?

I have been testing and adding more every day as I get time to get to test a new setting.
One other question I have added some examples below on trying to add a mpg but Do not know how to write this since they use bits out of order.

I have added a github page so it will be easier to track changes.

Can-ID Length DATA Packet HEX DATA Packet DECIMAL Register Desctiprion
362 7 A2 71 1E FF FF FF EA 162 113 030 255 255 255 234 Average MPH & Average MPG

Can ID 0x362 contains the average MPG and MPH values.

Average MPG:

(Byte 2 + Byte 1 (Upper 4 bits) ) / 10 = Average Miles per Gallon (UK gallon)
1E7 = 487d / 10 = 48.7 MPG

Average MPH:

(Byte 1 (lower 4 bits) + Byte 0 ) / 10 = Average Miles per hour
1A2 = 418d / 10 = 41.8 MPH

This should be something like:

offset="1" length="2" conversion="(B1+(B0 & 0xF0 >> 4)) * 0.1"

And this one:

offset="0" length="2" conversion="((B1 & 0x0F) + B0) * 0.1"