Need help on very strange MS3 output port bug

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Need help on very strange MS3 output port bug

Post by sd1nl »

Hi,

I have been tracing down a really strange bug the last few days, but I cannot get my head around what is happening. I think it is firmware related.

I use LOOP 1 programmable output for airconditioning idle up, and LOOP 2 for spark table switching. Both LOOP 1 and LOOP 2 should be active when coolant is above 70 celsius, and when engine status is " 5" . So far so good.

Problem is that it doesn't work. Sometimes my airco idle up is stuck and won't go away, and sometimes it doesn't get triggered when it is supposed to.

Check out the short log. The engine is started, coolant is above 70 and engine status is " 5" : but no airco idle up. Also the spark table isn't switched back when engine status goes back to "1"

Could you guys have a quick look into this, because something is amiss here.
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
jsmcortina
Site Admin
Posts: 39620
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Need help on very strange MS3 output port bug

Post by jsmcortina »

I'll email you an updated ini file that includes "loop" in the datalog set.

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".
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Re: Need help on very strange MS3 output port bug

Post by sd1nl »

Update: turns out the output ports, loops1,2,3 en airco up are all fine.

The problem is in the fact that the output ports don't seem to handle the "engine status" parameter very well. As soon as I changed this parameter to "Gammaenrich>107" everything works fine.

Another question: why is it not possible to trigger an output port on %ASE?
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: Need help on very strange MS3 output port bug

Post by Alfagta »

I think the problem is the "Engine Status" condition.
Try the "And" operator instead of the "=" Operator.

Best regards
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Re: Need help on very strange MS3 output port bug

Post by sd1nl »

I thought there was a choice of <, >, or =

The AND is only between two separate conditions as I recall?
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
jsmcortina
Site Admin
Posts: 39620
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Need help on very strange MS3 output port bug

Post by jsmcortina »

Bitwise AND is available too. See the manual: http://www.msextra.com/doc/pdf/html/Meg ... 3-243.html

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".
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Re: Need help on very strange MS3 output port bug

Post by sd1nl »

Update: "AND" and "egine status" also doesn't work. Looks like enginen status just won't work in the output ports.
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
jsmcortina
Site Admin
Posts: 39620
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Need help on very strange MS3 output port bug

Post by jsmcortina »

sd1nl wrote:Update: "AND" and "egine status" also doesn't work. Looks like enginen status just won't work in the output ports.
:msq:
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".
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Re: Need help on very strange MS3 output port bug

Post by sd1nl »

Don't have a log, sorry. But trust me on this one.

Tge msq is basically the same as the one attached in the first post, just the = has been replaced by AND
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Need help on very strange MS3 output port bug

Post by racingmini_mtl »

sd1nl wrote:Tge msq is basically the same as the one attached in the first post, just the = has been replaced by AND
That won't work. See this: http://www.msextra.com/forums/viewtopic ... 20#p444122

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Re: Need help on very strange MS3 output port bug

Post by sd1nl »

Read it. So am I correct in saying that I should enter the engine status in the treshold box aswell as in the hysteresis box?
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Need help on very strange MS3 output port bug

Post by racingmini_mtl »

Yes if you want the condition to be when the masked bits are all '1' (on). Since this is likely the case, just put the same value in both boxes.

I'm sure that this is quite confusing for people who are not used to working with bit fields and masks. I hope the new 1.4 documentation will have some details on this because that is not something I would expect the average (or even experienced) user to know and understand. Even the information I linked to is probably not sufficient for the majority of users.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Re: Need help on very strange MS3 output port bug

Post by sd1nl »

Would it be possible to trigger the output port on only one of the eight binary bits, in my case bit nr3 (ASE)
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
jsmcortina
Site Admin
Posts: 39620
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Need help on very strange MS3 output port bug

Post by jsmcortina »

Yes, that's the purpose of bitwise AND.

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".
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Re: Need help on very strange MS3 output port bug

Post by sd1nl »

jsmcortina wrote:Yes, that's the purpose of bitwise AND.

James
Confusion all over here.

You mean I have to enter the engine status in binary form instead of decimal? Otherwise it is not possible to distinguish the ASE bit only.

Could you show me what I have to enter into the two fields to be able to trgger on the ASE on/off only?
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
jsmcortina
Site Admin
Posts: 39620
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Need help on very strange MS3 output port bug

Post by jsmcortina »

I added an example to the Setting Up manual. See:
http://www.msextra.com/doc/pdf/html/Meg ... 4-123.html

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".
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Need help on very strange MS3 output port bug

Post by racingmini_mtl »

jsmcortina wrote:I added an example to the Setting Up manual. See:
http://www.msextra.com/doc/pdf/html/Meg ... 4-123.html

James
Thank you for taking my suggestion to add more information on this to the manual (even if it wasn't what prompted you to add it). I think this should make it much clearer.

I don't know if this is an artifact from my browser but the 'ASE active' text straddles 2 cells in the table (I tried this in another browser and I see it in Firefox and Chrome on Win7).

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
sd1nl
Master MS/Extra'er
Posts: 470
Joined: Wed Apr 11, 2012 3:21 am
Location: Netherlands

Re: Need help on very strange MS3 output port bug

Post by sd1nl »

jsmcortina wrote:I added an example to the Setting Up manual. See:
http://www.msextra.com/doc/pdf/html/Meg ... 4-123.html

James
Ok, this makes things clear to me. Thanks.
Rover Vitesse 3.5
MS3 full-sequential
36-1 triggerwheel
Direct coil control
Innovate LC1 wideband lambda sensor
jsmcortina
Site Admin
Posts: 39620
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Need help on very strange MS3 output port bug

Post by jsmcortina »

racingmini_mtl wrote:Thank you for taking my suggestion to add more information on this to the manual
It was a good suggestion.
I don't know if this is an artifact from my browser but the 'ASE active' text straddles 2 cells in the table
I see that too. I've been testing an alternative method of generating HTML-ised version of the manuals, but it's not ready yet.

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".
Post Reply