Some new thoughts:
Can you just log Engine Speed and 020-1,2,3,4. Just want to see a run under load from 2500 to near redline. Just spreadsheet, no graph.
The CFs are relatively low.
But so far we know that boost is good and fueling is good. So this leads me to think something is wrong with ignition (or some sensors are telling the ECU to adjust the timing like this).
Is this ignition timing normal for a K04 meeting specified boost?
I went back to basics again tonight and noted that:
1) Ignition is commanded sooner BTDC when engine runs at higher RPMs. This is because the air-fuel mixture takes longer to burn at higher engine speeds.
2) A lean air-fuel mixture requires a longer burn time in the cylinder. Because of this, the cylinder pressure achieved occurs too late (after top dead center) and creates a loss of power.
3) Ignition timing is determined by input from the crank shaft position sensor, cam position sensor, and MAP sensor, primarily speaking. The IAT sensor, knock sensors, throttle position sensor, and engine coolant temp. sensors should also play a role.
Since the air flow into the engine is dependent on the throttle body opening (99% in these plots) and engine speed, the air flow amount is not being influenced by the ECU. On the other hand, the fueling amount (injector duty cycle) can be controlled by the ECU.
Basically, since the rail pressure is meeting target- unless all 4 injectors are broken or all identically clogged, then the engine should be getting the right air-fuel mixture for the most part.
Now comes ignition -
My spark plugs and coil packs are new, so there shouldn't be an issue with producing a proper spark to ignite the fuel. However, if the spark is weak (maybe wiring harness issue or ground issue again), then the weak spark cannot burn the air-fuel mixture properly -> leading to a long burn time, and maybe that explains the very high BTDC ignition timing angles.
Meanwhile, if the spark is so weak that it is unable to burn the optimal air-fuel mixture within these specifications, then perhaps the ECU might adjust the injector opening time to reduce fuel into each cylinder to match the weak spark (My speculation)? - leading to further reduced power
On the other hand, it's still possible that the crank position sensor, cam position sensor, and/or MAP sensor are faulty. Strangely enough, I have zero fault codes, which means those sensors might be ok or still within spec. somehow.
With this, I am curious if my fuel injector timing looks correct for a K04 under these RPM and boost conditions.
Also curious if there is some way to test the actual power output of these ignition coils as-installed on the vehicle.
And spreadsheet attached-
Actually, looking at the 0.8 Lambda values, the air-fuel mixture seems correct. I still believe that it is not being burned properly though.