Openport standalone Config tool Beta

Re: Openport standalone Config tool Beta

Postby enthusiast » Sun Nov 01, 2009 11:22 pm

If you look at your log towards the bottom it says that:

Code: Select all
58: paramname = Manifold_Relative_Pressure_(Direct)*(psi_relative)
  : name[paramname,16] value[Manifold_Relative_Pressure_(Direct)*(psi_relative),0,0.000000]
log parameter name too long at line 58
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


I would try there first.
Last edited by enthusiast on Sun Nov 01, 2009 11:23 pm, edited 1 time in total.
enthusiast
 
Posts: 22
Joined: Fri May 05, 2006 6:30 pm

Re: Openport standalone Config tool Beta

Postby ptharris » Sun Nov 01, 2009 11:23 pm

forgot to mention it works fine with the following

Code: Select all
; 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 SSM protocol over the K-line, which works
; for both CAN-based and older Subarus

;----------------ssm----------------
; log channel settings

; we are logging SSM via the K-line
type=ssmk            

; each parameter gets a name you chose
paramname = RPM            

; the paramid is used in the SSM request
paramid = 0x0E            

; how many bits in the returned value (defaults to 8, so you usually don't need to specify this)
databits = 16            

; how to scale the results using a RPN (http://en.wikipedia.org/wiki/Reverse_Polish_notation) notation, with data and operators seperated by commas
; the operators are as following:
;       + : add
;       - : subtract
;       * : multiply
;       / : divide
;
;       x : represents the raw (unscaled) parameter
; 123.456 : example of a constant
;
; if no scaling is specified, the raw value will be used
;
; the OP2 has no FPU - it must do floating point calculations in software which can
; create performance issues, so be efficient in your RPN expressions by doing the following:
;
; * minimize the number of operations; e.g. ((x * 2) + 1) * 2 => x * 4 + 2
; * don't divide by a constant when you can multiply instead; e.g. x / 4 => x * 0.25
; * don't make constant expressions that can instead be pre-calculated; e.g. x * 3 / 4 => x * 0.75

scalingrpn = x,0.25,*   

; continue specifying other parameters
paramname = load
paramid = 0x07
scalingrpn = x,0.3921569,*

; commented out here is an example for reading a direct RAM parameter, a 32-bit float in this case
;paramname = load
;paramid = 0xFF6578
;isfloat = 1 ; the raw data is a 32-bit floating point number (no need to set databits = 32)

;paramname = Load_g/rev
;paramid = 0xFF63B4
;isfloat = 1

;paramname = FBKC_4byte
;paramid = 0xFF7D00
;isfloat = 1

paramname = Requested_Torque
paramid = 0xFF7D00
isfloat = 1

paramname = speed_kph
paramid = 0x10
scalingrpn = x
priority = 2

paramname = IAT_C
paramid = 0x12
scalingrpn = x,40,-
priority = 2

paramname = coolant_temp_C
paramid = 0x08
scalingrpn = x,40,-
priority = 2

;paramname = battery_volts
;paramid = 0x1C
;scalingrpn = x,0.08,*
;priority = 2

paramname = mrp_psig
paramid = 0x24
scalingrpn = x,128,-,0.145098,*

paramname = MAF_g/s
paramid = 0x13
databits = 16            
scalingrpn = x,0.01,*

paramname = MAF_V
paramid = 0x1D            
scalingrpn = x,0.02,*

paramname = AF_sensor1
paramid = 0x46
databits = 8            
scalingrpn = x,0.11484375,*

paramname = throttle
paramid = 0x15
scalingrpn = x,0.3921569,*
priority = 2

paramname = timing
paramid = 0x11
scalingrpn = x,128,-,0.5,*

paramname = WGDC
paramid = 0x30
scalingrpn = x,0.3921569,*

paramname = IPW  injector #1 pulse width
paramid = 0x11
scalingrpn = x,0.256,*
priority = 2

paramname = IAM
paramid = 0xF9
scalingrpn = x,0.0625,*
priority = 2

; some samples of logging "bitfield" values that are not whole bytes
; if you want to log more that one of these efficently, group them by
; paramid and the OP2 will only issue a single request to get all of
; the bits within each paramid

;paramname = ignition_sw
;paramid = 0x62
;databits = 1
;offsetbits = 3

; to still acquire a parameter (perhaps for triggering or a calculation)
; but not record it in the log, set isvisible equal to zero (it is 1 by default)
isvisible = 0

;paramname = AC_sw
;paramid = 0x62
;databits = 1
;offsetbits = 1
;isvisible = 0

paramname = defogger_sw
paramid = 0x64
databits = 1
offsetbits = 5
isvisible = 0

;paramname = blower_sw
;paramid = 0x64
;databits = 1
;offsetbits = 4
;isvisible = 0

;paramname = clutch_sw
;paramid = 0x121
;databits = 1
;offsetbits = 7

;paramname = brake_sw
;paramid = 0x121
;databits = 1
;offsetbits = 3

;-------------calculated parameter---------------
;
; you can derive calculated parameters from other parameters
; using RPN expressions
;
type = calc            

paramname = IDC
scalingrpn = RPM,IPW,*,0.0008333333,*

;-------------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 a condition (a RPN expression using comparison operators)
; and an action. the RPN comparison operators match those in the C language:
;
; > < >= <= == != && ||
;
; if the condition evaluates to a non-zero value, that action is taken

;conditionrpn = RPM,0,>   
;action = start

;conditionrpn = RPM,0,==
;action = stop

; here is a second triggering example using the rear defogger switch
; uncomment it and comment out the sample above to use it

conditionrpn = defogger_sw,1,==
action = start

conditionrpn = defogger_sw,0,==
action = stop

ptharris
 
Posts: 55
Joined: Fri Mar 06, 2009 7:34 pm

Re: Openport standalone Config tool Beta

Postby ptharris » Sun Nov 01, 2009 11:28 pm

just tried renaming to MRP and still no go

got this
Code: Select all
01: type=ssmk
  : name[type,8] value[ssmk,0,0.000000]
02: paramname = Engine_Speed(rpm)
  : name[paramname,16] value[Engine_Speed(rpm),0,0.000000]
03: paramid = 0x00000E
  : name[paramid,17] value[0x00000E,14,0.000000]
04: databits = 16
  : name[databits,22] value[16,16,16.000000]
05: scalingrpn = x,4,/
  : name[scalingrpn,18] value[x,4,/,0,0.000000]
06: paramname = Ignition_Total_Timing(degrees)
  : name[paramname,16] value[Ignition_Total_Timing(degrees),0,0.000000]
07: paramid = 0x000011
  : name[paramid,17] value[0x000011,17,0.000000]
08: databits = 8
  : name[databits,22] value[8,8,8.000000]
09: scalingrpn = x,128,-,2,/
  : name[scalingrpn,18] value[x,128,-,2,/,0,0.000000]
10: paramname = Throttle_Opening_Angle(%)
  : name[paramname,16] value[Throttle_Opening_Angle(%),0,0.000000]
11: paramid = 0x000015
  : name[paramid,17] value[0x000015,21,0.000000]
12: databits = 8
  : name[databits,22] value[8,8,8.000000]
13: scalingrpn = x,100,*,255,/
  : name[scalingrpn,18] value[x,100,*,255,/,0,0.000000]
14: paramname = Mass_Airflow_Sensor_Voltage(V)
  : name[paramname,16] value[Mass_Airflow_Sensor_Voltage(V),0,0.000000]
15: paramid = 0x00001D
  : name[paramid,17] value[0x00001D,29,0.000000]
16: databits = 8
  : name[databits,22] value[8,8,8.000000]
17: scalingrpn = x,50,/
  : name[scalingrpn,18] value[x,50,/,0,0.000000]
18: paramname = Learned_Ignition_Timing(degrees)
  : name[paramname,16] value[Learned_Ignition_Timing(degrees),0,0.000000]
19: paramid = 0x000028
  : name[paramid,17] value[0x000028,40,0.000000]
20: databits = 8
  : name[databits,22] value[8,8,8.000000]
21: scalingrpn = x,128,-,2,/
  : name[scalingrpn,18] value[x,128,-,2,/,0,0.000000]
22: paramname = Primary_Wastegate_Duty_Cycle(%)
  : name[paramname,16] value[Primary_Wastegate_Duty_Cycle(%),0,0.000000]
23: paramid = 0x000030
  : name[paramid,17] value[0x000030,48,0.000000]
24: databits = 8
  : name[databits,22] value[8,8,8.000000]
25: scalingrpn = x,100,*,255,/
  : name[scalingrpn,18] value[x,100,*,255,/,0,0.000000]
26: paramname = A/F_Sensor_#1(AFR)
  : name[paramname,16] value[A/F_Sensor_#1(AFR),0,0.000000]
27: paramid = 0x000046
  : name[paramid,17] value[0x000046,70,0.000000]
28: databits = 8
  : name[databits,22] value[8,8,8.000000]
29: scalingrpn = x,128,/,14.7,*
  : name[scalingrpn,18] value[x,128,/,14.7,*,0,0.000000]
30: paramname = Fine_Learning_Knock_Correction(degrees)
  : name[paramname,16] value[Fine_Learning_Knock_Correction(degrees),0,0.000000]
31: paramid = 0x000199
  : name[paramid,17] value[0x000199,409,0.000000]
32: databits = 8
  : name[databits,22] value[8,8,8.000000]
33: scalingrpn = x,0.25,*,32,-
  : name[scalingrpn,18] value[x,0.25,*,32,-,0,0.000000]
34: paramname = IAM*(raw_ecu_value)
  : name[paramname,16] value[IAM*(raw_ecu_value),0,0.000000]
35: paramid = 0x20118
  : name[paramid,17] value[0x20118,131352,0.000000]
36: databits = 8
  : name[databits,22] value[8,8,8.000000]
37: scalingrpn = x
  : name[scalingrpn,18] value[x,0,0.000000]
38: paramname = Engine_Load*(g/rev)
  : name[paramname,16] value[Engine_Load*(g/rev),0,0.000000]
39: paramid = 0x21847
  : name[paramid,17] value[0x21847,137287,0.000000]
40: databits = 16
  : name[databits,22] value[16,16,16.000000]
41: scalingrpn = x,.00006103515625,*
  : name[scalingrpn,18] value[x,.00006103515625,*,0,0.000000]
42: paramname = CL/OL_Fueling*(status)
  : name[paramname,16] value[CL/OL_Fueling*(status),0,0.000000]
43: paramid = 0x20F22
  : name[paramid,17] value[0x20F22,134946,0.000000]
44: databits = 8
  : name[databits,22] value[8,8,8.000000]
45: scalingrpn = x,6,+
  : name[scalingrpn,18] value[x,6,+,0,0.000000]
46: paramname = Feedback_Knock_Correction*(degrees)
  : name[paramname,16] value[Feedback_Knock_Correction*(degrees),0,0.000000]
47: paramid = 0x20B80
  : name[paramid,17] value[0x20B80,134016,0.000000]
48: databits = 8
  : name[databits,22] value[8,8,8.000000]
49: scalingrpn = x,.3515625,*,45,-
  : name[scalingrpn,18] value[x,.3515625,*,45,-,0,0.000000]
50: paramname = Fine_Learning_Knock_Correction*(degrees)
  : name[paramname,16] value[Fine_Learning_Knock_Correction*(degrees),0,0.000000]
51: paramid = 0x20B85
  : name[paramid,17] value[0x20B85,134021,0.000000]
52: databits = 8
  : name[databits,22] value[8,8,8.000000]
53: scalingrpn = x,.3515625,*,45,-
  : name[scalingrpn,18] value[x,.3515625,*,45,-,0,0.000000]
54: paramname = Fine_Learning_Table_Offset*(index_position)
  : name[paramname,16] value[Fine_Learning_Table_Offset*(index_position),0,0.000000]
55: paramid = 0x20B86
  : name[paramid,17] value[0x20B86,134022,0.000000]
56: databits = 8
  : name[databits,22] value[8,8,8.000000]
57: scalingrpn = x,1,+
  : name[scalingrpn,18] value[x,1,+,0,0.000000]
58: paramname = MRP
  : name[paramname,16] value[MRP,0,0.000000]
59: paramid = 0x2186C
  : name[paramid,17] value[0x2186C,137324,0.000000]
60: databits = 16
  : name[databits,22] value[16,16,16.000000]
61: scalingrpn = x,32768,-,0.01933677,*
  : name[scalingrpn,18] value[x,32768,-,0.01933677,*,0,0.000000]
62: paramname = defogger_sw
  : name[paramname,16] value[defogger_sw,0,0.000000]
log parameter name too long at line 62


now saying line 62 name to long?
ptharris
 
Posts: 55
Joined: Fri Mar 06, 2009 7:34 pm

Re: Openport standalone Config tool Beta

Postby enthusiast » Sun Nov 01, 2009 11:41 pm

Try renaming all of your other long named parameters as well. If this does not work you should post in the other thread Openport Standalone Logging Beta.
enthusiast
 
Posts: 22
Joined: Fri May 05, 2006 6:30 pm

Re: Openport standalone Config tool Beta

Postby ptharris » Mon Nov 02, 2009 12:56 am

it doesnt matter what I name them, it still doesnt log (ie the lights glow slowly and not rapid red/green)

I think this post is the best to reply in as I have it working fine when i manually make a log file up, it only relates to problems with this new application

Phil
ptharris
 
Posts: 55
Joined: Fri Mar 06, 2009 7:34 pm

Re: Openport standalone Config tool Beta

Postby freakin » Mon Nov 02, 2009 1:10 am

CasopoliS wrote:freakin - the coolant temp feature does not put the number in the log file. i.e. it says 76 but puts a 0 in the file.



should now be fixed
Last edited by freakin on Tue Nov 17, 2009 12:17 pm, edited 1 time in total.
freakin
 
Posts: 44
Joined: Sat Oct 31, 2009 5:20 pm

Re: Openport standalone Config tool Beta

Postby sql_dev » Mon Nov 02, 2009 7:18 am

The app worked for me with no problems, will test the output file soon.
+1 on reading the existing logcfg.txt on init. ;-)
sql_dev
 
Posts: 20
Joined: Thu Oct 26, 2006 7:36 am

Re: Openport standalone Config tool Beta

Postby ptharris » Mon Nov 02, 2009 10:11 pm

new program works fine now :D
ptharris
 
Posts: 55
Joined: Fri Mar 06, 2009 7:34 pm

Re: Openport standalone Config tool Beta

Postby legaulois » Mon Nov 02, 2009 11:33 pm

for me, all addresses this type 0x0000 works well :wink:
legaulois
 
Posts: 37
Joined: Mon Sep 15, 2008 8:13 am
Location: Nice - France

Re: Openport standalone Config tool Beta

Postby freakin » Tue Nov 03, 2009 1:11 am

you boys and girls are so lucky



its only had one run as I am on my way out of the door. Let me know if you have any problems


sql_dev wrote:The app worked for me with no problems, will test the output file soon.
+1 on reading the existing logcfg.txt on init. ;-)
Last edited by freakin on Tue Nov 17, 2009 12:18 pm, edited 1 time in total.
freakin
 
Posts: 44
Joined: Sat Oct 31, 2009 5:20 pm

Re: Openport standalone Config tool Beta

Postby CasopoliS » Tue Nov 03, 2009 6:07 pm

When using the coolant temp as a trigger, it uses "RPM" in the start condition line which does not match up with the parameter called out above "Engine_speed(rpm)".

I have not tested using the || and && in the start/stop as you can see in my quote above.

It seems to read the existing file just fine.
CasopoliS
 
Posts: 25
Joined: Sun Aug 13, 2006 2:08 pm

Re: Openport standalone Config tool Beta

Postby enthusiast » Tue Nov 03, 2009 7:13 pm

To all that want to run this under Windows 7. (I re-imaged my XP laptop to Windows 7)

With this VB6 application the mscomctl.ocx (the runtime file the configurator is dependent on) falls under "Supported Runtime Files – Extended Files to Distribute with your application".
You will need to download Microsoft Visual Basic 6.0 Common Controls from Microsoft. Steps I used to get it to work
1. Download VisualBasic6-KB896559-v1-ENU.exe from here.
2. Extract the exe do not run it it will not run under Windows 7.
3. Go to the directory where you extracted the VisualBasic6-KB896559-v1-ENU.exe to.
4. Open a command prompt and change to the directory in step 3.
5. run: regsvr32 mscomctl.ocx
6. You should see a window pop up telling you that it was successful.
7. Run the Config tool.

HTH
enthusiast
 
Posts: 22
Joined: Fri May 05, 2006 6:30 pm

Re: Openport standalone Config tool Beta

Postby freakin » Wed Nov 04, 2009 8:29 am

CasopoliS wrote:When using the coolant temp as a trigger, it uses "RPM" in the start condition line which does not match up with the parameter called out above "Engine_speed(rpm)".

I have not tested using the || and && in the start/stop as you can see in my quote above.

It seems to read the existing file just fine.
Last edited by freakin on Tue Nov 17, 2009 12:18 pm, edited 1 time in total.
freakin
 
Posts: 44
Joined: Sat Oct 31, 2009 5:20 pm

Re: Openport standalone Config tool Beta

Postby freakin » Wed Nov 04, 2009 2:30 pm

someone asked if i would take a donation for my work, after thinking about it for a while i have decided that if any one else wants to donate then it can go towards the keep the wife happy fund for me spending hours at the computer.

I am not asking for anyone to donate and my application is free for all to use so enjoy and donate if your feeling a bit flush and want to keep the wife happy :).

Image
freakin
 
Posts: 44
Joined: Sat Oct 31, 2009 5:20 pm

Re: Openport standalone Config tool Beta

Postby blkscooby » Wed Nov 04, 2009 8:31 pm

I tried it and got an error that said "fatal error. logcfg Mainform loadDefs ERROR:53(10170) File not found."

I have the latest logger and ECU defs for Romraider. Ideas?
blkscooby
 
Posts: 6
Joined: Thu Nov 30, 2006 5:35 am

PreviousNext

Return to Openport Stand-Alone Logging Beta

Who is online

Users browsing this forum: No registered users and 3 guests