v2.883 release

Forum for discussing how to install MicroSquirt(TM), choose and troubleshoot sensors, wiring, and communications for MicroSquirt (TM) and MicroSquirt Module(TM).
Forum rules
Read the manual to see if your question is answered there before posting. If you have questions about MS1/Extra or MS2/Extra or other non-B&G code configuration or tuning, please post them at http://www.msextra.com The full forum rules are here: Forum Rules, be sure to read them all regularly.
Post Reply
grippo
MegaSquirt Guru
Posts: 921
Joined: Mon Feb 16, 2004 6:55 pm

v2.883 release

Post by grippo »

This release is primarily of interest to people using dual spark mode with a toothed wheel. The main upgrade was that wasted/COP Dual Spark ignition was changed into a tooth(angle) based system to improve accuracy of spark timimng. The basic logic is that the spark tooth is calculated from the advance angle as a tooth + fractional part of a tooth. Then, at each tooth after tach the dwell is converted to a tooth by dividing dwell time by the last tooth delta_t. The code then checks if it has reached a buffer tooth that is a few teeth before the dwell tooth - to allow for missed teeth. If so then it sets the output timer for the time remaining to dwell and this is automatically taken care of by the processor timer. It then continues to wait until it gets close to the spark tooth, sets the timer to the time remaining to spark, and the timer auomatically fires the spark. The time remaining to dwell or spark is based on the (tooth + fraction of tooth remaining) x last tooth delta_t. This produces a highly accurate spark and dwell timing that barely moves half the width of a line on the scope despite way more than normal acceleration on the wheel signal. This is the mode that is being used in the sequencer code, so it has not really been delaying that - which is almost ready for bench testing - probably next week.

In addition, I updated the logic for the alternating count during cranking so it will keep the two injector banks in synch when the engine comes out of cranking. What I mean by this is that you start with bank1 firing on the missing tooth, then alternating banks on each subsequent tach pulse - except the old cranking logic messed this up by firing both banks simultaneously. Then when it came out of cranking it was random as to which would be the first bank to fire. The new code keeps track of the banks during cranking, but still fires simultaneously. This is not so important now, because the injector timing isn't really sequential. But again it will be for the sequencer.

Finally, the tach output used in the previous codes was really just the injector led, which might or might not represent tach, depending on no squirts and other settings. It should now represent true tach. Again this will be critical for the sequencer, which will be clocked by these tach pulses.

There are no changes to inputs or ini file, so if you are running 2.881 or 2.882 this should work right out of the box. If people test this code it will expedite testing for the sequencer. I don't expect to see any major changes in performance except possibly from improved timing during acceleration/ deceleration.
Attachments
main_v2.883.zip
(75.61 KiB) Downloaded 106 times
Monitor_v2.883.abs.zip
(36.27 KiB) Downloaded 89 times
JustinL
Helpful Squirter
Posts: 43
Joined: Tue Nov 22, 2005 6:03 pm
Location: Edmonton

Post by JustinL »

It might just be me, but I can't seem to turn x-tau off with 2.883. The gauge shows corrections, no matter what the setting.
88 944 Turbo S- MS-II code 2.6 (fuel only)
87 944- MicroSquirt code 2.883j
hybrid
Helpful Squirter
Posts: 59
Joined: Thu Apr 07, 2005 10:23 pm
Location: Sydney, Australia
Contact:

Post by hybrid »

I can't get this version to work on my box.
The downloader gives a read timeout error during validation.

Anyone else having this problem?
I'm using 2.881 at the moment.
- Microsquirt Powered 347ci 66 Mustang
- MS1 V3 Powered Ford 351CI V8
- MS2 SMD Powered 307CI Holden V8
Martin Wagner
Helpful Squirter
Posts: 43
Joined: Sun May 02, 2004 8:24 am
Location: Tulsa, OK

Post by Martin Wagner »

hybrid wrote:I can't get this version to work on my box.
The downloader gives a read timeout error during validation.

Anyone else having this problem?
I'm using 2.881 at the moment.
I have installed 2.883 on my microsquirt without any new problems. My USB to serial adapter cable doesn't work with the downloader unless I set verbosity to 4 or 5. I haven't had time to test 2.883 yet. I was running 2.882.
hybrid
Helpful Squirter
Posts: 59
Joined: Thu Apr 07, 2005 10:23 pm
Location: Sydney, Australia
Contact:

Post by hybrid »

I have a normal serial port.
Uploading 2.881 works fine, but not this new version for some reason.
- Microsquirt Powered 347ci 66 Mustang
- MS1 V3 Powered Ford 351CI V8
- MS2 SMD Powered 307CI Holden V8
hybrid
Helpful Squirter
Posts: 59
Joined: Thu Apr 07, 2005 10:23 pm
Location: Sydney, Australia
Contact:

Re: v2.883 release

Post by hybrid »

I still can't get anything newer than 2.881 loaded onto my unit, and even that fails every now and then.

I will try changing verbosity to 4 or 5 and see if that makes any difference.
I wonder if it is an issue with my laptop serial port.
- Microsquirt Powered 347ci 66 Mustang
- MS1 V3 Powered Ford 351CI V8
- MS2 SMD Powered 307CI Holden V8
Bernard Fife
Super Squirter
Posts: 1009
Joined: Mon Feb 16, 2004 3:15 pm

Re: v2.883 release

Post by Bernard Fife »

hybrid,

Yes, this is almost certainly a serial port issue. It comes up more frequently for later code because the later code is larger, takes more time to upload, and thus gives more time for errors to occur. Do you have access to another computer you could try, just to rule out that serial port?

Also, check the tips here: http://www.megamanual.com/connect.htm#ms2 and be especially careful that you don't have fax/modem software or the IrDA trying to use the serial port.

Lance.
hybrid
Helpful Squirter
Posts: 59
Joined: Thu Apr 07, 2005 10:23 pm
Location: Sydney, Australia
Contact:

Re: v2.883 release

Post by hybrid »

I have another computer (not a laptop), but the microsquirt is now wired in, so I will have to try and borrow another laptop to test.
Do people have better success with older machines, or is it just a case by case basis?

I think mine is a Dell Latitude D600
- Microsquirt Powered 347ci 66 Mustang
- MS1 V3 Powered Ford 351CI V8
- MS2 SMD Powered 307CI Holden V8
Post Reply