Timing Marks

Author
Discussion

deetes

Original Poster:

413 posts

234 months

Sunday 13th July 2008
quotequote all
Cheers Peter,

I'll have to study this and try and get it into my tech free head.

Cheers for all the helpful replys from everyone.

Allan

stevieturbo

17,271 posts

248 months

Sunday 13th July 2008
quotequote all
GreenV8S said:
eliot said:
GreenV8S said:
Basically you edit one of the INI files to make an extra memory table in the ECU visible to MegaTune, the table is one that records the time interval between adjacent teeth in real time. The missing tooth stands out because the gap is much longer than normal. If you get one big gap you know you're OK; two smaller gaps indicates a problem.

I'll have another look later on and see if I can dig out the details for this.
Yes I recall such an option. I seem to recall having to use megatunix, I did try to install it - my my "tuning" laptop is way too slow - so i gave up.
(And yes i did try searching for it lol..)
I definitely did it with the Windows version of MegaTune, and it was very simple to do but pure chance that I found how to do it. I still haven't managed to find the instructions on any of the MS sites (I'm sure they're there somewhere) but from memory and a bit of digging around in the MS configuration I think the process is roughly like this:

Find the .INI file that defines the memory page configuration. In my installation this is defined in C:\Program Files\MegaSquirt\MegaTune2.25\mtCfg\msns-extra.ini and it contains something like this in the [Constants] section at the top of the file:

#unset MEMPAGES ; set to enable all 13 pages for full debugging
#unset LOGPAGES ; set to enable 11 pages for trigger/tooth logging


Change the LOGPAGES line from 'unset' to 'set' i.e.

  1. set LOGPAGES ; set to enable 11 pages for trigger/tooth logging
Comments further down in the file explain how this works:

; Pages 10 & 11 are special read only pages that can be used to view realtime logged data
; of inter-tooth or inter-trigger times. Primarily for code devel or checking your trigger
; wheel is giving normal pulses.
;At present you can only access this data by using the Table Editor and viewing the data directly
;Page 10 contains the time between each tooth in the generic (missing and/or 2nd trig) and Neon
;Page 11 contains the time between "triggers" and will work for all ignition types
;93 big endian 16bit numbers are returned. The 188th byte is the address of the _next_ byte to
;be written. The code logs continuously once the page is selected so you need to start from the
;next byte and wrap around to the beginning to get the data in the right order
;The 189th byte indicates the time units. 0 = microseconds, 1= 0.1ms units
;After you've selected the page, pause a little then hit Fetch, you'll get 93 new samples.
;Then somehow get them into a spreadsheet and plot a graph.
;i.e. if the data is (decimal) 52, 45, ....
; convert those two numbers -> (52*256) + 45
;page 12 = RAM bytes $0000 to $00FF ($0000 to $003f return zeros)
;page 13 = RAM bytes $0100 to $01FF

The Table Editor referred to in the comments is under the 'Tools' menu. I seem to remember being confused about the table numbering initially, I forget whether it starts from 0 or 1 and I assumed the opposite, so check to make sure that the contents are consistent with the description above. When I went through this it was quite obvious with a screen full of similar values and one much bigger value in the middle so you could see almost at a glance whether there was a problem.

Edited by GreenV8S on Sunday 13th July 10:41
Im so glad I dont use Megasquirt lol.

GreenV8S

30,214 posts

285 months

Sunday 13th July 2008
quotequote all
stevieturbo said:
Im so glad I dont use Megasquirt lol.
On the other hand, *everything* is accessible from the basic hardware design right up to the user interface. Completely unlikely the OMEX system I had before it, which while extremely powerful, came with zero documentation and with no information forthcoming from OMEX. You'd think I was trying to steal state secrets rather than get basic information about what the ECU thought it was doing and why.

stevieturbo

17,271 posts

248 months

Sunday 13th July 2008
quotequote all
Just saying. That all that info posted above is gobbledegook to me !!!!


Im glad my DTA works, and I dont need to know, or learn such info smile

My timing is correct, thats all I need to know.


deetes

Original Poster:

413 posts

234 months

Tuesday 15th July 2008
quotequote all
Peter,

Found the page you were speaking about. If I reset the trigger log doobry, where will I get the results?

Allan