Modify E40 OS Routine - CAN

Disassembly, Reassembly, Tools and devleopment. Going deep with Hardware and Software.
User avatar
Tre-Cool
Posts: 544
Joined: Tue Oct 16, 2012 2:17 am
cars: VY SS UTE, VX Drag Car
Location: Perth

Re: Modify E40 OS Routine - CAN

Post by Tre-Cool »

antus wrote: Wed Nov 12, 2025 12:23 am Well you'd probably have learnt more doing it yourself, and may need to yet, but I couldn't help to write a possible patch in easy68k for you. I ended up with this:
You put a lot of faith in me actually remembering. I'd probably forget how i did it the next day..

1 of the reasons i post stuff on my web page, so i kinda data dump it out of my head. then i refer back to it later on. haha.
User avatar
antus
Site Admin
Posts: 10111
Joined: Sat Feb 28, 2009 10:34 am
cars: TX Gemini 2L Twincam 8psi
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Subaru WRX 2007

Re: Modify E40 OS Routine - CAN

Post by antus »

same for me, here
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
Tre-Cool
Posts: 544
Joined: Tue Oct 16, 2012 2:17 am
cars: VY SS UTE, VX Drag Car
Location: Perth

Re: Modify E40 OS Routine - CAN

Post by Tre-Cool »

So I had the "Assembly Master" Tazzi out this afternoon, I had a quick play/test with things in the morning before he arrived & actually found we needed to send 4 bytes of info (3 if you count from 0)
i.e 00 00 12 34.

Also managed to fix the SVS error on the dash, I had forgot i had 2 coil packs unplugged. lol. hard to tell when the turbo x-over pipe is off & i also fixed the cam sensor wiring that was wrong by someone else's previous repair.

For the code side, what Tazzi & Antus posted already pretty much covers the solution to a point. To keep things simple, we are using existing values stored in ram for logic for each byte, those being Transgearstate & EngineRunning.

First file we loaded in worked straight away, so pretty much left it alone. Ended up having a good chat for a few hours of other possible cool shit we could come up with. :-)

All i have to do is put the turbo x-over back on so i can test it on the road, I tried to test the cruise function but it wouldn't engage while on the hoist. Pretty sure it needs to see all the wheels turning as there is definitely logic in ecu regarding wheel speed differences.
User avatar
antus
Site Admin
Posts: 10111
Joined: Sat Feb 28, 2009 10:34 am
cars: TX Gemini 2L Twincam 8psi
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Subaru WRX 2007

Re: Modify E40 OS Routine - CAN

Post by antus »

excellent! 👍
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
Tazzi
Posts: 3627
Joined: Thu May 17, 2012 10:53 am
cars: VE SS Ute
Location: WA

Re: Modify E40 OS Routine - CAN

Post by Tazzi »

*Begins chanting*.. 10 speed.. 10 speed.. 10 speed.. :lol:
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
MPC001
Posts: 188
Joined: Sat May 05, 2018 11:41 am

Re: Modify E40 OS Routine - CAN

Post by MPC001 »

Awesome 💯😎. Great win.
User avatar
Tre-Cool
Posts: 544
Joined: Tue Oct 16, 2012 2:17 am
cars: VY SS UTE, VX Drag Car
Location: Perth

Re: Modify E40 OS Routine - CAN

Post by Tre-Cool »

Took it for a drive today after getting off the hoist.

First drive up & down the block the shifts were firm/hard, I forgot that i had bumped the base pressures up & turned off all the adapts for the old tcm2600 controller to stop it going soft over time.

Shift speeds were also..shit, again side affect of taping into a 0-2.5 tps signal for the tcm2600. so changed the shift speeds and set the adapts back to stock.

Things i noticed/logged:
Cruise Control works as per normal
Rev Matching on down shifts - Completely surprised by this, doesn't work as good as this on the early E38's
Timing Retard for shifts, Similar to E38/E67- HPT/EFI typically refer to a min spark map for max allowable timing to pull, but this doesn't appear to be mapped in either, Luckily you can adjust how much TQ MGMT u want from the TCM, but I'm going to add these in to efilive.
Since it's no longer running a manual tune file, I can run different idle speeds & adjust load correctly based off in-gear status
Wired in tapshift again, have temporary tap mode working in D position, full manual control in 3, when activated in D the dash displays the gear also.

Now to find a flexplate for ls/10L convertor...
MPC001
Posts: 188
Joined: Sat May 05, 2018 11:41 am

Re: Modify E40 OS Routine - CAN

Post by MPC001 »

Tre-Cool wrote: Fri Nov 14, 2025 1:47 pm
Now to find a flexplate for ls/10L convertor...
👍
Impressive that rev matching works day 1 along with timing based torque reduction on shifts.

Sounds like E40 was almost A6 ready before the E38! Some cubic tenacity & brilliant tweaking to get it done.

Ground breaking world first! Congratulations!

A10 behind E40 next? 😃😎
User avatar
Tazzi
Posts: 3627
Joined: Thu May 17, 2012 10:53 am
cars: VE SS Ute
Location: WA

Re: Modify E40 OS Routine - CAN

Post by Tazzi »

MPC001 wrote: Fri Nov 14, 2025 9:11 pm 👍
Impressive that rev matching works day 1 along with timing based torque reduction on shifts.

Sounds like E40 was almost A6 ready before the E38! Some cubic tenacity & brilliant tweaking to get it done.

Ground breaking world first! Congratulations!

A10 behind E40 next? 😃😎
I think it’s been in all controllers for a long time. It’s all about making sure all the correct data is being transmitted to/from the ECM/TCM, and ensuring it’s obviously enabled too.

I’d guess if some of the data is omitted, then it automatically disables the feature.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tre-Cool
Posts: 544
Joined: Tue Oct 16, 2012 2:17 am
cars: VY SS UTE, VX Drag Car
Location: Perth

Re: Modify E40 OS Routine - CAN

Post by Tre-Cool »

Wont be doing E40/10Spd, as i kinda dont want to have this car back again. haha.

I think 1 of my cars with an E38 would be the better test bed. I'll have to talk my gearbox mate into stripping 1 of my 10l's down to change the output shaft to convert from 4wd to 2wd first.