What the title says, could I use an OBD2 code to control gear shifts in an automatic car? For example send an OBD2 code via a microcomputer like the Raspberry Pi. The car in question is a 2008 BMW e60 530xD.
I know there is something like Service 08 in OBD2, unfortunately it is hard to find specifics and codes for it online. I guess it depends on each car.
I'm asking because I discovered you could use a Raspberry Pi to read OBD2 data from a car like engine load, rpm, pressures etc. All the avaible data could theoretically be used to make shifts in an automatic transmission more optimal. For example when I accelerate from a red light to 50 (kph) in my car it tends to stay in a too low gear for too long, technically increasing fuel consumption and wear. Then on the other hand one could argue that if you accelerated rapidly from 0 to 50 (kph) then you quite possibly might want to continue accelerating in a moment. But since you can read all the data and analyse it then you could take into account how quick the acceleration was. So if it was quick then stay in low gear, else shift up.