Originally Posted By: WyrTwister
As far as octane rating , here is a guess .
The computer does not know what the octane of your gas is . Most engines , I think , have a knock sensor . I further guess the computer runs the max timing advance & maybe cam timing , up to the point where it starts sensing a knock ( fuel mixture may be adjusted too ? ) .
The computer probably also uses information from the TPS , Mass Air Flow , coolant temp , outside air temp and probably other sensors that do not come to mind .
At that point , the computer starts tapering some or all of the variables back , until the knock goes away . I am sure the computer stores those parameters for future use .
Now you fill up with lower octane gas . I suspect the computer goes through this learning and adjustment process again .
I do not know how long this takes and / or how often the computer " tests " the current conditions .
All of this assumes the engine has warmed up to the point where the oxygen sensors are functioning properly & the system is in closed loop .
As far as the rest of your question , I have no answers .
Yup. The BMW tests the fuel every time it sees the fuel level rise, and then assumes it does not change. Can be problematic at times, like when you store your car for the winter and use Seafoam as a fuel stabiliser. Doh. Learned that one the hard way. Ran like a bag of [censored] until I got some fresh fuel in there.
It will take advantage of much higher octane race fuel, but takes several WOT runs before the computer adapts.