Timing retard over Canbus

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
Suprazz
Master MS/Extra'er
Posts: 500
Joined: Mon Jan 22, 2007 7:58 pm
Contact:

Timing retard over Canbus

Post by Suprazz »

I'm working on integrating the turbolamik transmission controller for an 8hp and I think it would be a great feature if we could have a settings for doing timing retard with generic canbus receiving.

The trans controller can do it with the ms3 but it uses the Megasquirt 29 bits protocol that nobody else uses.

The other temporary solution is spark table switching but I'll need the table so it would be great to have a feature directly linked to that.
Best looking and most advanced CAN-bus gauge
Toyota Supra 7MGE, 7M-GTE and 1JZ-GTE Plug and play ECUs: http://www.perfecttuning.net
Serial to Bluetooth or Serial to WiFi
DIYAutotune Canadian, EFI Source and ECUMaster reseller!
jsmcortina
Site Admin
Posts: 39622
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Timing retard over Canbus

Post by jsmcortina »

This should work via CAN Receiving - however you'll need to grab the very latest pre-1.6 RC1 as I found a typo in the ini file that was stopping this from working.
"SpkAdj" is the field you want.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Suprazz
Master MS/Extra'er
Posts: 500
Joined: Mon Jan 22, 2007 7:58 pm
Contact:

Re: Timing retard over Canbus

Post by Suprazz »

I just loaded the rc1 and found it. I'll try and report how it goes.
Thanks!
Best looking and most advanced CAN-bus gauge
Toyota Supra 7MGE, 7M-GTE and 1JZ-GTE Plug and play ECUs: http://www.perfecttuning.net
Serial to Bluetooth or Serial to WiFi
DIYAutotune Canadian, EFI Source and ECUMaster reseller!
Suprazz
Master MS/Extra'er
Posts: 500
Joined: Mon Jan 22, 2007 7:58 pm
Contact:

Re: Timing retard over Canbus

Post by Suprazz »

I tried it and I was able to make it work!

Value is in 0.1 degree of advance. So to remove 20 degress for spark retard we need to receive -200.
Best looking and most advanced CAN-bus gauge
Toyota Supra 7MGE, 7M-GTE and 1JZ-GTE Plug and play ECUs: http://www.perfecttuning.net
Serial to Bluetooth or Serial to WiFi
DIYAutotune Canadian, EFI Source and ECUMaster reseller!
jsmcortina
Site Admin
Posts: 39622
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Timing retard over Canbus

Post by jsmcortina »

Glad it worked out.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
dlenk
MS/Extra Newbie
Posts: 3
Joined: Thu Feb 08, 2024 5:49 am

Re: Timing retard over Canbus

Post by dlenk »

Suprazz wrote: Tue Feb 06, 2024 6:01 am I tried it and I was able to make it work!

Value is in 0.1 degree of advance. So to remove 20 degress for spark retard we need to receive -200.
Hey, I'm trying to control my Aisn Aw4 (essentially A341e) with arduino. I want to do the retard timing with the exact method you've used and this is the only place I can see somebody attempt it and not using megashift. Can you share your setup please?
I'm trying to figure it out what message should I sent to make it happen and what is the setup in tunerstudio.
Last edited by dlenk on Thu Feb 08, 2024 3:03 pm, edited 1 time in total.
Suprazz
Master MS/Extra'er
Posts: 500
Joined: Mon Jan 22, 2007 7:58 pm
Contact:

Re: Timing retard over Canbus

Post by Suprazz »

dlenk: Just go in the CAN Receiving menu, get your id and offset and select SpkAdj in the dropdown.


One other request for James!
Is it possible to do a spark cut from canbus?

I tried the spkadj but finally it doesnt remove enough power to shift the transmission so I really need to do a spark cut.
I had the idea to map the value to a generic sensor instead, and then use a loop to be active as soon as the value received from the canbus was bigger than 1 but it's too slow.

So I had to use a real digital output from the Turbolamik and link it to the Sequential shift feature instead.

But it would be great if we could do it over canbus.

Here is a screenshot showing (sensor 07 data which is a value received from the can adc 07, loop condition 8 turning ON immediatly but spark cut happening wayyyy later
TunerStudio MS Ultra v3.1.08 - Felix 2JZ (MS3 pre-1.6   RC 1     20240121 13_10G.jpg
TunerStudio MS Ultra v3.1.08 - Felix 2JZ (MS3 pre-1.6 RC 1 20240121 13_10G.jpg (94.37 KiB) Viewed 400 times
But with physical digital input, it works perfectly.
TunerStudio MS Ultra v3.1.08 - Felix 2JZ (MS3 pre-1.6   RC 1     20240121 13_10G1.jpg
TunerStudio MS Ultra v3.1.08 - Felix 2JZ (MS3 pre-1.6 RC 1 20240121 13_10G1.jpg (96.73 KiB) Viewed 400 times
Best looking and most advanced CAN-bus gauge
Toyota Supra 7MGE, 7M-GTE and 1JZ-GTE Plug and play ECUs: http://www.perfecttuning.net
Serial to Bluetooth or Serial to WiFi
DIYAutotune Canadian, EFI Source and ECUMaster reseller!
dlenk
MS/Extra Newbie
Posts: 3
Joined: Thu Feb 08, 2024 5:49 am

Re: Timing retard over Canbus

Post by dlenk »

Did you give permission to the external controller to remove more then 15° as the is a default limit for max time retard
Post Reply