Announcement

Collapse
No announcement yet.

Vanos open loop tables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Vanos open loop tables

    How is the vanos controlled on engine cold start?

    Are there separate tables for this?

    #2
    KATH table, duration of KATH (cat heating) is set based on temperature of coolant at engine start.
    E46 ///M3 • 12/2002 • phönix-gelb • 6MT
    E39 ///M5 • 12/1998 • avus-blau • 6MT
    E60 ///M5 • 11/2006 • saphir-schwarz • 6MT

    Comment


      #3
      FWIW this is the relevant code snippet for the AVAN (exhaust) calculation:

      Click image for larger version  Name:	Screenshot 2025-01-05 at 2.12.34 PM.png Views:	0 Size:	204.5 KB ID:	289396

      Essentially it gets the relevant AVAN_SOLL (target) value based on a few conditions (interestingly there's a separate table for US-spec SMG cars under certain conditions which I haven't completely figured out). It the checks whether AVAN1_SOLL_FAKTOR (a factor looked up from TMOT, etc.) is zero (car is warmed up) and if it isn't (car still warming up) then it looks up the AVAN1_SOLL_KATH value, subtracts the "SOLL" (target) value from it (to get the difference) then multiples that by the AVAN1_SOLL_FAKTOR to get the level of adjustment that needs to be made to the "SOLL" value.

      Essentially it blends between the "SOLL" and "SOLL_KATH" tables based on how warm the car is (simplifying the explanation here but that's the gist of it).

      Note that there are some other various conditions where other values are used, but once the engine is running and warming up as usual the above is how it works.
      2005 ///M3 SMG Coupe Silbergrau Metallic/CSL bucket seats
      Build Thread:
      https://nam3forum.com/forums/forum/m...e46-m3-journal

      Comment


        #4
        Originally posted by bmwfnatic View Post
        KATH table, duration of KATH (cat heating) is set based on temperature of coolant at engine start.
        Thank you. So only TMOT and nothing to do with the temp sensor in the hose form the radiator?

        Comment


          #5
          Originally posted by karter16 View Post
          FWIW this is the relevant code snippet for the AVAN (exhaust) calculation:

          Click image for larger version Name:	Screenshot 2025-01-05 at 2.12.34 PM.png Views:	0 Size:	204.5 KB ID:	289396

          Essentially it gets the relevant AVAN_SOLL (target) value based on a few conditions (interestingly there's a separate table for US-spec SMG cars under certain conditions which I haven't completely figured out). It the checks whether AVAN1_SOLL_FAKTOR (a factor looked up from TMOT, etc.) is zero (car is warmed up) and if it isn't (car still warming up) then it looks up the AVAN1_SOLL_KATH value, subtracts the "SOLL" (target) value from it (to get the difference) then multiples that by the AVAN1_SOLL_FAKTOR to get the level of adjustment that needs to be made to the "SOLL" value.

          Essentially it blends between the "SOLL" and "SOLL_KATH" tables based on how warm the car is (simplifying the explanation here but that's the gist of it).

          Note that there are some other various conditions where other values are used, but once the engine is running and warming up as usual the above is how it works.
          Thanks Karter16. Which tool do you use to disassemble the code?

          Comment


            #6
            I believe he is using Ghidra (Java, requires version 21). Ghidra projects use a gpr file, which is in the "gar" file here so just extract that to a directory using something like 7 zip and go from there.

            Edit: Just noticed the gpr file within the gar file is 0 bytes in length, so that is not going to open lol.
            3.91 | CMP Subframe & RTAB Bushings | SMG (Relocated & Rebuilt) | ESS Gen 3 Supercharger | Redish | Beisan | GC Coilovers & ARCAs | Imola Interior | RE Rasp | RE Diablo | Storm Motorwerks Paddles | Will ZCPM3 Shift Knob | Apex ARC-8 19x9, 19x9.5 | Sony XAV-AX5000 | BAVSOUND | CSL & 255 SMG Upgrades | Tiag | Vert w/Hardtop

            Comment


              #7
              Originally posted by oceansize View Post
              I believe he is using Ghidra (Java, requires version 21). Ghidra projects use a gpr file, which is in the "gar" file here so just extract that to a directory using something like 7 zip and go from there.

              Edit: Just noticed the gpr file within the gar file is 0 bytes in length, so that is not going to open lol.
              Just tested restoring the gar file and it works fine. I believe Ghidra constructs a gpr file specific to your machine/account when you restore it.

              That said, bmwfnatic and I are currently working on a much more comprehensive disassembly and we'll start making information available as soon as we have it in a coherent state.
              2005 ///M3 SMG Coupe Silbergrau Metallic/CSL bucket seats
              Build Thread:
              https://nam3forum.com/forums/forum/m...e46-m3-journal

              Comment


                #8
                Originally posted by karter16 View Post

                Just tested restoring the gar file and it works fine. I believe Ghidra constructs a gpr file specific to your machine/account when you restore it.

                That said, bmwfnatic and I are currently working on a much more comprehensive disassembly and we'll start making information available as soon as we have it in a coherent state.
                Thanks karter, skipped right over that option in the menu.
                3.91 | CMP Subframe & RTAB Bushings | SMG (Relocated & Rebuilt) | ESS Gen 3 Supercharger | Redish | Beisan | GC Coilovers & ARCAs | Imola Interior | RE Rasp | RE Diablo | Storm Motorwerks Paddles | Will ZCPM3 Shift Knob | Apex ARC-8 19x9, 19x9.5 | Sony XAV-AX5000 | BAVSOUND | CSL & 255 SMG Upgrades | Tiag | Vert w/Hardtop

                Comment


                  #9
                  Originally posted by karter16 View Post

                  Just tested restoring the gar file and it works fine. I believe Ghidra constructs a gpr file specific to your machine/account when you restore it.

                  That said, bmwfnatic and I are currently working on a much more comprehensive disassembly and we'll start making information available as soon as we have it in a coherent state.
                  Thanks for sharing this! Would love to see the final result.

                  Comment


                    #10
                    Originally posted by ac427 View Post

                    Thank you. So only TMOT and nothing to do with the temp sensor in the hose form the radiator?
                    Temp sensor in the hose is used for the electric fan duty cycle map.


                    Sent from my iPhone using Tapatalk

                    Comment


                      #11
                      Originally posted by SliM3 View Post

                      Temp sensor in the hose is used for the electric fan duty cycle map.


                      Sent from my iPhone using Tapatalk
                      Thanks Brian, So it is the oil/coolant sensor on the engine that is solely responsible for the vanos timing in open loop?

                      Do any air temperature sensors come into play?
                      Last edited by ac427; 01-07-2025, 05:02 AM.

                      Comment


                        #12
                        Originally posted by ac427 View Post

                        Thanks Brian, So it is the oil/coolant sensor on the engine that is solely responsible for the vanos timing in open loop?

                        Do any air temperature sensors come into play?
                        The one on the engine in the pipe off the cylinder head is your TMOT (engine temp) sensor.

                        In this instance oil temp is used to enable VANOS adaptation @ 70*C (158*F) and manage VANOS PID output control, i.e higher oil temp = lower proportional and integral gain.


                        Sent from my iPhone using Tapatalk

                        Comment


                          #13
                          Originally posted by SliM3 View Post

                          The one on the engine in the pipe off the cylinder head is your TMOT (engine temp) sensor.

                          In this instance oil temp is used to enable VANOS adaptation @ 70*C (158*F) and manage VANOS PID output control, i.e higher oil temp = lower proportional and integral gain.


                          Sent from my iPhone using Tapatalk
                          Thank you. Does exhaust temp have any bearing on open loop cold starting?

                          Comment


                            #14
                            Originally posted by ac427 View Post

                            Thank you. Does exhaust temp have any bearing on open loop cold starting?
                            If I remember correctly, EGT is geared more toward Cat protection.

                            Comment

                            Working...
                            X