MS2/Extra 2.0 RC1 (20080301)

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

turbo355
Master MS/Extra'er
Posts: 826
Joined: Tue Feb 21, 2006 11:32 pm

Post by turbo355 »

muythaibxr wrote:I'll see if I can reproduce that... Was the last msq you posted your latest?

Ken
Yes that was the MSQ i used at the time it did it i changed nothing in the MSQ i came in the house and saved it.
JeroenBosma
Helpful MS/Extra'er
Posts: 136
Joined: Sun Jan 29, 2006 8:07 am
Location: The Netherlands

Post by JeroenBosma »

I have a funny thing: When I set the RPM input trigger to 132 teeth and a second trigger, the firmware become corrupt. I cannot acces the MS2 anymore.

I know it is a weird number but the Porsche 944 uses the 132 teeth on the gearring togehter with a second sensor.
Volvo 242GT Turbo
MSII/Extra
Quad VB921 (True COP)
BiFeul trough switching tables (LPG / Petrol)
TechEdge 2E0 WBO2
6040solder
Experienced MS/Extra'er
Posts: 307
Joined: Mon Oct 22, 2007 7:15 am
Location: Auckland, New Zealand

Post by 6040solder »

The maximum tooth count is 60 IIRC. You have probably overflowed an array or something. That shouldn't allowed to happen, but maybe it is.
JeroenBosma
Helpful MS/Extra'er
Posts: 136
Joined: Sun Jan 29, 2006 8:07 am
Location: The Netherlands

Post by JeroenBosma »

Yup, I was able to reproduce it. Flashed new firmware, choose multiwheel and 132 tooth. MS is dead and needs reinstallation of firmware.
Volvo 242GT Turbo
MSII/Extra
Quad VB921 (True COP)
BiFeul trough switching tables (LPG / Petrol)
TechEdge 2E0 WBO2
jsmcortina
Site Admin
Posts: 39617
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

JeroenBosma wrote:Yup, I was able to reproduce it. Flashed new firmware, choose multiwheel and 132 tooth. MS is dead and needs reinstallation of firmware.
Please define "dead" - what exactly happens.

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".
JeroenBosma
Helpful MS/Extra'er
Posts: 136
Joined: Sun Jan 29, 2006 8:07 am
Location: The Netherlands

Post by JeroenBosma »

Dead as in it won't come up after a reset. The feulpump won't blink and there is no response. It needs a firmware upload before I can get it back online on MT and having it accept signals (inputs).

I guess the software just stalls.

After a firmware upload it is good to go.
Volvo 242GT Turbo
MSII/Extra
Quad VB921 (True COP)
BiFeul trough switching tables (LPG / Petrol)
TechEdge 2E0 WBO2
jsmcortina
Site Admin
Posts: 39617
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

132 teeth doesn't work because it is a strange number of degrees per tooth. 360/132 = 2.727272 deg /tooth. The code doesn't support that.

However, you are correct that the code behaves badly in this situation - I debugged it using BDM and the code is stuck in a loop - this prevents the realtime data from being sent to Megatune and it appears to be broken.

I've modified the code to report this as a config error. It should be in the next Release Candidate (RC) we issue.

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".
turbo355
Master MS/Extra'er
Posts: 826
Joined: Tue Feb 21, 2006 11:32 pm

Post by turbo355 »

I tried the revlimiter again tonight and it seemed to work just fine i dont know what i could have done before to make it not work i didreload the firmware this time and it seems to be just fine sorry for the false alarm.
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Thanks for letting me know. That saves me time looking at it.

Ken
drytoast
Helpful MS/Extra'er
Posts: 46
Joined: Thu Jun 14, 2007 3:24 am
Location: Seattle, WA

Post by drytoast »

msextra_2.0rc1b_20080303/ms2_extra_ign_in.c: line 716:

Code: Select all

if (trig2cnt == 1) {
  tooth_no = 0;
} else if (trig2cnt == 1)
  tooth_no = 4;
} else {
I'm not actually using the 99 miata code at this point but it seems like line 1 or 3 should be "(trig2cnt == 2)".
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

Heh, sounds like a good call. Is this one of the things Arga changed or suggested be changed?
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
drytoast
Helpful MS/Extra'er
Posts: 46
Joined: Thu Jun 14, 2007 3:24 am
Location: Seattle, WA

Post by drytoast »

I'm not sure. I kind of lost track with what was happening. I was just perusing the code and noticed what appears to be a mistype as the second if will never execute.
eliotmansfield
Experienced MS/Extra'er
Posts: 249
Joined: Sat Apr 03, 2004 1:39 am
Location: Milton Keynes - UK
Contact:

Post by eliotmansfield »

JeroenBosma wrote:I have a funny thing: When I set the RPM input trigger to 132 teeth and a second trigger, the firmware become corrupt. I cannot acces the MS2 anymore.

I know it is a weird number but the Porsche 944 uses the 132 teeth on the gearring togehter with a second sensor.
There is a thread somewhere else about doing this. Essentially its a little board that divides the porche/audi ring wheel down to a lower number so you can use MS with it.
Eliot Mansfield
5.7L Twin Turbo Dakar 4x4.
www.mez.co.uk
jsmcortina
Site Admin
Posts: 39617
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

drytoast wrote:msextra_2.0rc1b_20080303/ms2_extra_ign_in.c: line 716:

Code: Select all

if (trig2cnt == 1) {
  tooth_no = 0;
} else if (trig2cnt == 1)
  tooth_no = 4;
} else {
I'm not actually using the 99 miata code at this point but it seems like line 1 or 3 should be "(trig2cnt == 2)".
Yep, I've slipped up there.. now to decide which one is right?!

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".
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

I'm assuming it's this:

1 tooth on the "first" side of the cam tells you the next tooth on the crank is the one near TDC on cyl one.

The tooth doublet on the opposite side of the cam tells you the next tooth on the crank is the one near TDC on cyl 4.

So it seems like the engine is always in bankfire mode right now. Which, as suggested before, is ideal for starting, but wouldn't let anyone run full sequential fuel or spark. I do have COP, but it's set up for batch fire anyway since I'm output limited.

if (trig2cnt == 1) {
tooth_no = 0;
} else if (trig2cnt == 2)
tooth_no = 4;
} else {

I'd do that. 0-3 is degrees 0-360, and 4-7 is degrees 360-720? I'm making that decision arbitratily, really you need to decide where in the code it would decide to fire IGN1 vs IGN4 - which I assume is as I wrote above.

<edit> Is this during starting? Ah, it should start a lot quicker once this change gets made!!! Awesome.

Also, instead of starting a new topic, I would really like to add a request I made before (I'm assuming it's just a flag to set?) could the O2 meter be read/logged when the motor isn't running? I don't care about cranking so much (though it would be interesting), but when not running I would really like to have a real time readout of the O2 meter.
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
drytoast
Helpful MS/Extra'er
Posts: 46
Joined: Thu Jun 14, 2007 3:24 am
Location: Seattle, WA

Post by drytoast »

This is in the wheel specific code responding to the interrupt from the crank wheel. I haven't installed the MS yet but I will try and get a reading from the cam and one of the ignitor lines to see if I can help determine which is which.
jsmcortina
Site Admin
Posts: 39617
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

I'd commited a fix to CVS earlier, the next few lines after that code snippet show that AbeFM figured it out too.

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".
JeroenBosma
Helpful MS/Extra'er
Posts: 136
Joined: Sun Jan 29, 2006 8:07 am
Location: The Netherlands

Post by JeroenBosma »

I can confirm the odd-fire code is working.

I have placed a new sensor on the engine and matched a "odd-fire" triggerwheel to it instead of using the distributor. The oscilloscope is showing the right patern for the coil. The code for odd-fire 90/150 seems to be good ! I had troubles with picking up the signal but now it turned out to be a sensor / triggerwheel mismatch.
Volvo 242GT Turbo
MSII/Extra
Quad VB921 (True COP)
BiFeul trough switching tables (LPG / Petrol)
TechEdge 2E0 WBO2
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Thanks for the update Jeroen! Good to hear it's working!
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

For those 'watching' this topic, RC-2 is out. New thread!
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Post Reply