CAN EGO: Add bits to define lamda state.

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
Reverant
Super MS/Extra'er
Posts: 1234
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

CAN EGO: Add bits to define lamda state.

Post by Reverant »

The CAN EGO uses 10 of the 16 bits of the 2-byte CAN message. This means we have 6 spare bits that can be used to indicate the wideband's state.

May I propose:

1) Bit 10 = Warmup
2) Bit 11 = Normal operation
3) Bit 12 = Error
4) Bits 13,14,15 = Error number (Innovate goes up to error 8)

By parsin the bits above, the MS3 can then inhibit closed loop operation in warmup, and enter closed loop immediately when the sensor has warmed up, and if there's an error, stop closed loop operation and enter limp mode if configured.

Thoughts?
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: CAN EGO: Add bits to define lamda state.

Post by racingmini_mtl »

The issue I see is backwards compatibility. If the CAN device sends those bits to an older MS3 firmware, that's going to create issues and it may not be obvious to diagnose. And that also means a way to turn this on and off on the CAN device for the same compatibility reason.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
Reverant
Super MS/Extra'er
Posts: 1234
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: CAN EGO: Add bits to define lamda state.

Post by Reverant »

Doesn't the MS3 firmware ignore any bits above 1023 on the CAN inputs, including the CAN ADCs?
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: CAN EGO: Add bits to define lamda state.

Post by racingmini_mtl »

I'm not sure if it ignores the bits or simply uses 1023 if the value is above it. I'd need to check the code so I'll wait to see if James can answer.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
jsmcortina
Site Admin
Posts: 39619
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN EGO: Add bits to define lamda state.

Post by jsmcortina »

The handling is slightly different for each CAN wideband supported, but in the case of receiving Innovate data over CAN from an IOx the upper bits are not masked (currently), so anything there would be handled by:

Code: Select all

                        if (tmpadc > 1023) {
                            tmpadc = 1023;
                        }
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".
Reverant
Super MS/Extra'er
Posts: 1234
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: CAN EGO: Add bits to define lamda state.

Post by Reverant »

Ok, that seems a rather minor issue to me. Adding a configuration setting to the CAN device to send or not to send the bits is trivial. So can we add the extra bits?
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
krisr
Master MS/Extra'er
Posts: 799
Joined: Wed Aug 17, 2005 1:17 am
Location: Sydney, Australia

Re: CAN EGO: Add bits to define lamda state.

Post by krisr »

What CAN based wideband are you using out of curiosity?
Sydney, Australia
1971 Holden Monaro HQ
MS3X Sequentially fuelled 400 Pontiac
Reverant
Super MS/Extra'er
Posts: 1234
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: CAN EGO: Add bits to define lamda state.

Post by Reverant »

krisr wrote:What CAN based wideband are you using out of curiosity?
My own. :)
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
Post Reply