It's not exactly what you're asking, since this is a WiFi OBD topic, but if you subscribe to the online services (or whatever it's called as I type this) then you might want to check out the BimmerConnected project. It's a plugin for HomeAssistant, but the code can be modified and used on its...