Known unused sections of calibration files...

Bosch Motronic etc ECUs and PCMs
Post Reply
ironduke
Posts: 579
Joined: Thu Feb 13, 2020 11:32 pm
cars: Mainly GM trucks, a Cruze and an Equinox for dailys..

Known unused sections of calibration files...

Post by ironduke »

Kind of an oddball question, lol.. Someone was starting a discussion on another post and I believe the gist was they wanted to be able to choose the CVN of each segment and have it pass checks.. The Checksum isn't so important as that's not given with scan tool requests, it's the CVN that is checked.. I did a quick search but I didn't see it being discussed.. Kind of got me curious so I poked around a little.

With 2 bytes somewhere in the segment it appears I am able to make the CVN pretty much whatever I want it to be.. Problem is I don't know for sure the 2 bytes I chose are unused.. Yeah, at the end of each segment there's usually a lot of ff's that can probably be used, except for the last segment of the bin because that has 8 bytes that are used.

Any way to know for sure? This started with an E67 ecu but I could see this being attempted on E38's E92's, etc... The header of each segment has a bunch of info in it, but does anyone know for sure if there's 2 bytes not used for anything there? or am I pretty much guaranteed that if I go to the end of the segment and count back 8 bytes and use those 2?
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Known unused sections of calibration files...

Post by Tazzi »

Maybe give a bit more leeway just incase, and count back like 12? Maybe? But best to compare with multiple vehicles with that OS to ensure that section of a cal is safe to use.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
ironduke
Posts: 579
Joined: Thu Feb 13, 2020 11:32 pm
cars: Mainly GM trucks, a Cruze and an Equinox for dailys..

Re: Known unused sections of calibration files...

Post by ironduke »

Tazzi wrote:Maybe give a bit more leeway just incase, and count back like 12? Maybe? But best to compare with multiple vehicles with that OS to ensure that section of a cal is safe to use.

Thanks, I actually pulled 20 out of my head and used that, seemed to work ok for 2 test files..

I'm thinking of checking before any writing is done there to sheck for a string of ff's there, should be a somewhat decent way to make sure it's unused and I'm not stepping on something.. make sense?
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Known unused sections of calibration files...

Post by Tazzi »

Yeah it does make sense. Generally speaking though, if doing custom edits, best option is to hard code which operating systems are support for such custom edit, as you will know that it will use the exact same layout for that OS.

This is effectively what they do for custom OS upgrades (2-3bar ect)
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
Post Reply