Announcement

Collapse
No announcement yet.

CSL '0401' Program Binary Disassembly Notes

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

  • karter16
    replied
    Originally posted by ac427 View Post

    Is the C decompiler part of the disassembly tool?
    Yep - the screenshots I've shared of C code are generated by the decompiler. The variable names and stuff need to be done by hand, but not having to manually convert all the ASM to C equivalent saves a lot of time. The decompiler isn't perfect so you need validate its output sometimes, but overall an awesome tool.


    Sent from my iPhone using Tapatalk

    Leave a comment:


  • ac427
    replied
    Originally posted by karter16 View Post

    Absolutely - things like the C decompiler (although not infallible) are a game changer for quickly understanding what's going on, I can understand ASM but no where near as easily as C.


    Sent from my iPhone using Tapatalk
    Is the C decompiler part of the disassembly tool?

    Leave a comment:


  • karter16
    replied
    Originally posted by Bry5on View Post

    It is satisfyingly fun to dig into all this 15-20 years later with the benefits of modern technology, I must say.
    Absolutely - things like the C decompiler (although not infallible) are a game changer for quickly understanding what's going on, I can understand ASM but no where near as easily as C.


    Sent from my iPhone using Tapatalk

    Leave a comment:


  • Bry5on
    replied
    Originally posted by karter16 View Post

    You're most welcome - ask as many questions as you like. It's for the community's shared knowledge and interest that I'm doing this work. I certainly don't know all the answer and am just figuring it out as I go (I also can't guarantee I won't end up having to correct my own answers in the future!!!) but the whole point is to help us understand more.
    Same, and we’re of course always subject to being wrong! In which case the community learning applies even better. It is satisfyingly fun to dig into all this 15-20 years later with the benefits of modern technology, I must say.

    Leave a comment:


  • karter16
    replied
    Originally posted by ac427 View Post
    Thank you both for you help. It's really good to gain an understanding of not only how it works but the thinking behind it.​
    You're most welcome - ask as many questions as you like. It's for the community's shared knowledge and interest that I'm doing this work. I certainly don't know all the answer and am just figuring it out as I go (I also can't guarantee I won't end up having to correct my own answers in the future!!!) but the whole point is to help us understand more.

    Leave a comment:


  • ac427
    replied
    Originally posted by Bry5on View Post
    My data logs show that if you actually duct the lower snorkel to the bumper, you will have low IATs above 40mph. My theory is that the open top half of the flap actually allows air exchange, functioning as an exhaust when the lower half is supply. Just a guess based on my data logs with flap open/closed.

    Also, it’s not just the IAT that’s right behind the radiator, but also the thermally conductive airbox itself (carbon should be a lot more conductive than plastic). Hot airbox could mean hot air at low speeds and loads, so it’s my opinion that the IAT is conservatively placed to prevent damage to the engine. If you’re concerned about the IAT readings, you’re WAY better off just ducting from the bumper to the airbox and actually having low IATs vs trying to spoof lower temps. I’ll get off the soap box now.
    All good mate and thank you for the explanation.


    Originally posted by karter16 View Post
    yeah echoing this. I've had a look through 0401 and 1801. TAN is calculated exactly the same in both (e.g. there's no adjustment to the calculation of TAN itself in 0401), the KLs and KFs that take TAN as an input are also the same between both. The only difference is 0401 has additional code to utilize TAN in the calculation of RF based on MAP sensor and TAN. However as MpowerE36 has shown, the code implementation of the maths doesn't include any sort of "adjustment factor". Which further supports Bry5on's comment above. I think we can conclude doing it the way BMW did is a conservative approach. I would think as soon as you get some reasonable airflow through the box the IAT will be fairly accurate, and when you are sitting still (which isn't really the point of a CSL in BMW's eyes remember) the heat soak resultas in a conservative reading.

    Thank you both for you help. It's really good to gain an understanding of not only how it works but the thinking behind it.​

    Leave a comment:


  • karter16
    replied
    Originally posted by Bry5on View Post

    My data logs show that if you actually duct the lower snorkel to the bumper, you will have low IATs above 40mph. My theory is that the open top half of the flap actually allows air exchange, functioning as an exhaust when the lower half is supply. Just a guess based on my data logs with flap open/closed.

    Also, it’s not just the IAT that’s right behind the radiator, but also the thermally conductive airbox itself (carbon should be a lot more conductive than plastic). Hot airbox could mean hot air at low speeds and loads, so it’s my opinion that the IAT is conservatively placed to prevent damage to the engine. If you’re concerned about the IAT readings, you’re WAY better off just ducting from the bumper to the airbox and actually having low IATs vs trying to spoof lower temps. I’ll get off the soap box now.
    yeah echoing this. I've had a look through 0401 and 1801. TAN is calculated exactly the same in both (e.g. there's no adjustment to the calculation of TAN itself in 0401), the KLs and KFs that take TAN as an input are also the same between both. The only difference is 0401 has additional code to utilize TAN in the calculation of RF based on MAP sensor and TAN. However as MpowerE36 has shown, the code implementation of the maths doesn't include any sort of "adjustment factor". Which further supports Bry5on's comment above. I think we can conclude doing it the way BMW did is a conservative approach. I would think (edit: actually as Bryson has proven) as soon as you get some reasonable airflow through the box the IAT will be fairly accurate, and when you are sitting still (which isn't really the point of a CSL in BMW's eyes remember) the heat soak resultas in a conservative reading.
    Last edited by karter16; 03-06-2025, 03:22 PM.

    Leave a comment:


  • Bry5on
    replied
    Originally posted by ac427 View Post

    No worries. It would certainly be an interesting experiment.

    Speaking of calibration, it would be interesting to know how the CSL IAT is coded for the heat soak issue. I mean, BMW could have placed it anywhere but they put it in a place where its output is bound to be skewed by the heat from the engine. Obviously they accounted for this in coding but i wonder if there is a point the output from the IAT just becomes useless?
    My data logs show that if you actually duct the lower snorkel to the bumper, you will have low IATs above 40mph. My theory is that the open top half of the flap actually allows air exchange, functioning as an exhaust when the lower half is supply. Just a guess based on my data logs with flap open/closed.

    Also, it’s not just the IAT that’s right behind the radiator, but also the thermally conductive airbox itself (carbon should be a lot more conductive than plastic). Hot airbox could mean hot air at low speeds and loads, so it’s my opinion that the IAT is conservatively placed to prevent damage to the engine. If you’re concerned about the IAT readings, you’re WAY better off just ducting from the bumper to the airbox and actually having low IATs vs trying to spoof lower temps. I’ll get off the soap box now.

    Leave a comment:


  • Slideways
    replied
    Originally posted by ac427 View Post

    No worries. It would certainly be an interesting experiment.

    Speaking of calibration, it would be interesting to know how the CSL IAT is coded for the heat soak issue. I mean, BMW could have placed it anywhere but they put it in a place where its output is bound to be skewed by the heat from the engine. Obviously they accounted for this in coding but i wonder if there is a point the output from the IAT just becomes useless?
    Both the MAF and the CSL IAT need to be behind the filter to prevent damage to the sensor. The MAF even needs a mesh screen in front of it, my guess is to improve airflow over the sensor.

    BMW used that IAT for a reason; otherwise, they could have used the other style sensor from their older models.

    Leave a comment:


  • ac427
    replied
    Originally posted by Bry5on View Post

    Not a lot of losses at part throttle, which is where this would be most useful I think. Then tune WOT without the HFM by AFR and open the flap, redo AFR for the flap open case. All the acronyms, sorry!
    No worries. It would certainly be an interesting experiment.

    Speaking of calibration, it would be interesting to know how the CSL IAT is coded for the heat soak issue. I mean, BMW could have placed it anywhere but they put it in a place where its output is bound to be skewed by the heat from the engine. Obviously they accounted for this in coding but i wonder if there is a point the output from the IAT just becomes useless?

    Leave a comment:


  • karter16
    replied
    Originally posted by ac427 View Post
    What year did the E46 M3 GTR come out?

    It was a V8. I'm not sure which ECU it used though.

    Also, which DME did the E39 M5 have, probably a previous generation MSS5x ECU.
    GTR was 2001 I think, so before the CSL. The DME in the race version was entirely separate, not sure what they did in the strassenversion but suspect it would have been a derivative of that.

    The E39 M5 was the MSS52.


    Sent from my iPhone using Tapatalk

    Leave a comment:


  • Bry5on
    replied
    Originally posted by ac427 View Post

    True, I guess you could mount a MAF anywhere near the actual air intake path and then calibrate for loses?
    Not a lot of losses at part throttle, which is where this would be most useful I think. Then tune WOT without the HFM by AFR and open the flap, redo AFR for the flap open case. All the acronyms, sorry!

    Leave a comment:


  • ac427
    replied
    Originally posted by Bry5on View Post

    Easy enough to make an adapter for the non-CSL MAF to the lower snorkel, then just leave the flap closed.
    True, I guess you could mount a MAF anywhere near the actual air intake path and then calibrate for loses?

    Leave a comment:


  • Bry5on
    replied
    Originally posted by ac427 View Post
    Are MAF's available in the CSL snorkel diameter?

    It would interesting to implement an MAF for part throttle quality research.

    Apologies, i could have put these these as one post but i was using the phone on the train home.
    Easy enough to make an adapter for the non-CSL MAF to the lower snorkel, then just leave the flap closed.

    Leave a comment:


  • ac427
    replied
    Are MAF's available in the CSL snorkel diameter?

    It would interesting to implement an MAF for part throttle quality research.

    Apologies, i could have put these these as one post but i was using the phone on the train home.
    Last edited by ac427; 03-06-2025, 10:41 AM.

    Leave a comment:

Working...
X