; uncomment the line below to minimize the information written to logcfg.out
; this will greatly decrease the startup time to begin logging if you already
; have a working logcfg.txt without any problems
;
 debug=noout

; sample logging configuration file for openport 2.0
; must be named logcfg.txt and be placed in the root directory of the
; microSD card inserted in the openport in order to work

; this sample logs using the KWP2000 ReadMemoryAddress command over the ISO15765, which works
; for CAN based mitsubishis that have had their ROMs modified to allow the use of this command.
; this command is also known as "mode23" on some forums. since this command reads directly from 
; ECU memory, the paramid addresses used are different for different ROM versions. the following 
; example is for the USDM EVO X ROMs in the 526800xx series.

;----------------mrmacan evox----------------
; log channel settings
type=mrmacan

;-------------parameters-------------

paramname=RPM		
paramid=0x808747
databits=16
scalingrpn=x,31.25,*

;paramname=LoadFuel		
;paramid=0x80876E
;databits=16
;scalingrpn=x,.3125,*

;For MIVEC + timing if IAT > 75F
;paramname=LoadMIVEC
;paramid=0x808774
;databits=16
;scalingrpn=x,.3125,*

;For timing if IAT < 75F
;paramname=LoadTiming	
;paramid=0x808f70
;databits=16
;scalingrpn=x,.3125,*

paramname=TimingAdv		
paramid=0x8089FF
scalingrpn=x,20,-

paramname=PSIG				
paramid=0x808712
databits=16				
scalingrpn=x,0.0483675,*,14.5,-

paramname=KnockSum			
paramid=0x808a43

paramname=MassAirFlow
paramid=0x8087d8
scalingrpn=x,2,*,100,/

;paramname=IPW		
;paramid=0x80a944
;databits=16
;scalingrpn=x,0.001,*

paramname=TPS				
paramid=0x8086f1
scalingrpn=x,0.392157,*
sampgroup=3

;paramname=APP				
;paramid=0x809505
;scalingrpn=x,32,-,0.505882,*
;sampgroup=5

;paramname=MAF_Airflow_gs	
;paramid=0x8087e0
;databits=16
;scalingrpn=x,0.02,*
;sampgroup=2

paramname=Speed	
paramid=0x8087DF
scalingrpn=x,2,*
sampgroup=5

;paramname=AFRMAP				
;paramid=0x8088F5
;scalingrpn=1881.6,x,/

;paramname=InVVTtarget				
;paramid=0x80942e
;scalingrpn=x,4096,-,-0.01953125,*

;paramname=ExVVTtarget				
;paramid=0x80943a
;scalingrpn=x,4096,-,-0.01953125,*

;paramname=InVVTactual				
;paramid=0x809466
;scalingrpn=x,4096,-,-0.01953125,*

;paramname=ExVVTactual				
;paramid=0x809472
;scalingrpn=x,4096,-,-0.01953125,*

paramname=ActiveWGDC				
paramid=0x808b4b
scalingrpn=x,2,/

;paramname=ActiveWGDCC				
;paramid=0x808b51
;scalingrpn=x,0.5,*,64,-

;paramname=PassiveWGDC				
;paramid=0x80a53f
;scalingrpn=x,0.5,*

;paramname=MATS				
;paramid=0x80865f
;scalingrpn=x,1.8,*,40,-

paramname=coolant_temp	
paramid=0x808637
scalingrpn=x,40,-
sampgroup=2

;paramname=LTFT_Idle		
;paramid=0x804573
;scalingrpn=x,0.1953125,*,25,-
;sampgroup=50

;paramname=LTFT_Cruise			
;paramid=0x804575
;scalingrpn=x,0.1953125,*,25,-
;sampgroup=50

;paramname=UEGORearO2AFR				
;paramid=0x80934e
;scalingrpn=x,0.009768817,*,9.6225,+
;databits=16
;scalingrpn=x,0.039137255,*,9.866,+  ;extra scaling
;scalingrpn=x,0.009768817,*,10,+    ;original scaling


;----------------aem----------------
; the "ascii" channel type can listen on any protocol for incoming numeric text
; the default protocolid is 9, which corresponds to the 3/32" jack receive-only serial port
; the default baud rate and setting are 9600,N,8,1. all of these can be changed for other scenarios

; the ascii channel considers anything other than the characters {'0'-'9','+','-','.','E','e'} to be a 
; delimiter between different numbers. furthermore, the carriage return and line feed characters are 
; considered to mark the beginning of a new row of data. you can sample data from a particular column of
; numbers by choosing a paramid starting at 1 which indicates the column number

; in the case of the AEM UEGO, there is simply one column of data, and it is already scaled appropriately

;type=ascii
;paramname = AFR
;paramid = 1





;----------------inno----------------
;type=inno
; log from an innovate bus via the 3/32" jack
; currently the LC-1 is the only supported device
; in the "inno" case the parameters are already pre-defined, you just
; need to reference them by name so that they are included in the log
; output. note that these parameters won't become valid until the LC-1
; has been calibrated and the sensor is warmed up.

;paramname = inno.afr
;paramname = inno.lambda




;-------------triggers---------------
;
; note that parameters must be previously defined
; before defining triggers using them
;
; triggers allow you to control when logging starts and stops
; this example sets up triggers such that logging only occurs
; when the engine is running (RPM > 0)
;
; triggers consist of some evaluation of the form [trigparam] [condition] [value]
; and a resulting action which is done if the evaluation is true

paramname=CruiseLight
paramid=0x8045C5
databits=1
offsetbits=5
isvisible=0
sampgroup=3

conditionrpn = CruiseLight,1,==
action = start

conditionrpn = CruiseLight,0,==
action = stop

; only log when the engine is running
; conditionrpn = RPM,0,>	
; action = start
;
; conditionrpn = RPM,0,==
; action = stop

; start logging to a new file when the throttle goes from previously below 80 to above 80
; #throttle refers to the previous throttle sample
;conditionrpn = TPS,80,>,#TPS,80,<=,&&
;action = newfile
