Subaru Legacy Forum Index Subaru Legacy Forum Index
 
Home - Vendors - Rules - Forums - Reviews - vBGarage - Join this forum! - Get Todays Posts - Wiki - Members - VB FAQ - Search
img img img
 
Go Back   Subaru Legacy Forums > Technical Forums > Tuning
Reload this Page Standalone Logging to MicroSD w/ OPv2.0
User Name
Password

Reply
Page 1 of 6 1 23 > Last »
 
Thread Tools Search this Thread Display Modes
#1: 03-29-2010, 10:21 AM
Standalone Logging to MicroSD w/ OPv2.0
 
 Underdog
Underdog's Avatar
Title: Wrench for Hire
Location: Ayer, MA
Car: The Crimson Dynamo
Posts: 5,765
iTrader: (69)
Send a private message to Underdog Find all posts by Underdog Reply With Quote
I'm starting this post to get some help from the guys who are really into datalogging and the whole open-source thing. With my twinscroll project at the point where it is running pretty smooth, and all the little gremlins taken care of, I can finally focus on getting my datalogging setup to monitor the engine at all times.

My plan is to utilize the MicroSD logging that is now supported on the OPv2.0 and with my 8GB MicroSDHC card that I bought for $20 at Radioshack yesterday, I can get about ~20yrs worth of data before needing to dump it to my computer.

I have a couple basic issues that I need to sort out:

1. What data to log for general health of the engine and for my own curiosity? Here's what I have been monitoring and what I would like to add:
  • A/F Correction #1 (%)
  • A/F Learning #1 (%)
  • A/F Sensor #1 (AFR)
  • CL/OL Fueling* (status)
  • Engine Load (2-byte)** (g/rev)
  • Engine Speed (RPM)
  • Ignition Total Timing (degrees)
  • Knock Sum* (count)
  • Manifold Relative Pressure (PSI)
  • Throttle Opening Angle (%)
Adding:
  • LC1 Output
  • Mass Airflow (g/s) - Unless this can be derived from Engine Load.
  • Closed Loop Fueling Target (2-byte) - @ NSFW's recommendation.
2. I don't know how to parse all this information that I am collecting. I realize this is specific to my goals, so when it comes to plotting how my turbo is working on it's compressor map this is very straight-forward. However for monitoring general health, I don't really know what to do.

3. Finally, I don't know how to setup the logcfg.txt file for standalone logging. It seems like there are a lot of options for setting up parameters, scaling them, and grouping them, and I don't know the most efficient way to do it. I think I would like to log any time the car is 1) running and 2) coolant temperature is >= 160 (or something). Also, I would like to start a new log any time I go WOT.


Any insight would be appreciated... In the meantime I am going to take a stab at the logcfg.txt file and post it up for review.
__________________
10% Off DeatschWerks and Injector Dynamics!
Remove advertisements
Sponsored links
Underdog
View Public Profile
Send a private message to Underdog
Find More Posts by Underdog
iTrader: (69)
#2: 03-29-2010, 01:10 PM
 
 fishbone
fishbone's Avatar
Title: Smooth like Keith Stone
Location: Nebraska
Car: 05 Legacy GT
Posts: 8,627
iTrader: (3)
Send a private message to fishbone Find all posts by fishbone Reply With Quote
Pardon the newbie question but ... what hardware are you using to datalog?
fishbone
View Public Profile
Send a private message to fishbone
Find More Posts by fishbone
iTrader: (3)
#3: 03-29-2010, 01:14 PM
 
 Underdog
Underdog's Avatar
Title: Wrench for Hire
Location: Ayer, MA
Car: The Crimson Dynamo
Posts: 5,765
iTrader: (69)
Send a private message to Underdog Find all posts by Underdog Reply With Quote
Right now I use my laptop with RomRaider connected via Tactrix Open Port v2.0 (OPv2.0).

The OPv2.0 has a built in microSD card slot so you can datalog without hooking up a computer, but you need to specify what parameters to log with a logcfg.txt file in the root directory of the microSD card.

Here is the thread on OpenECU.org: http://forums.openecu.org/viewtopic....icrosd+logging
__________________
10% Off DeatschWerks and Injector Dynamics!
Underdog
View Public Profile
Send a private message to Underdog
Find More Posts by Underdog
iTrader: (69)
#4: 03-29-2010, 01:21 PM
 
 fishbone
fishbone's Avatar
Title: Smooth like Keith Stone
Location: Nebraska
Car: 05 Legacy GT
Posts: 8,627
iTrader: (3)
Send a private message to fishbone Find all posts by fishbone Reply With Quote
Well, apologies for threadjacking with such a noob question, I was not aware of the existence of said OPV2.0. That is indeed a neat thing. I assume the same trigger to start/stop logging (rear defroster)? I have a list of parameters I was told to datalog but I am hesitant because I am a newbie at logging and don't want to potentially post the wrong thing.
fishbone
View Public Profile
Send a private message to fishbone
Find More Posts by fishbone
iTrader: (3)
#5: 03-29-2010, 01:25 PM
 
 fishbone
fishbone's Avatar
Title: Smooth like Keith Stone
Location: Nebraska
Car: 05 Legacy GT
Posts: 8,627
iTrader: (3)
Send a private message to fishbone Find all posts by fishbone Reply With Quote
Ah, the heck with it. Others can correct me if I am wrong
Engine Load (2-byte)** (g/rev)
Engine Speed (rpm)
IAM (4-byte)* (multiplier)
Ignition Total Timing (degrees)
Knock Sum* (count)
Manifold Relative Pressure (4-byte)* (psi relative)
Mass Airflow (g/s)
Mass Airflow Sensor Voltage (V)
Primary Wastegate Duty Cycle Angle (%)
Throttle Opening Angle (%)
fishbone
View Public Profile
Send a private message to fishbone
Find More Posts by fishbone
iTrader: (3)
#6: 03-29-2010, 01:28 PM
 
 Underdog
Underdog's Avatar
Title: Wrench for Hire
Location: Ayer, MA
Car: The Crimson Dynamo
Posts: 5,765
iTrader: (69)
Send a private message to Underdog Find all posts by Underdog Reply With Quote
It's no problem man... I'm a newbie to this stuff too.

There are a wide variety of triggers you can use. From what I have seen you can use any switch in the OBD2 data chain, or you can use logic functions with engine parameters.

For example, you can make it so that it only logs when RPM>0, coolant temp >=160, and the cruise control button is "on". What's more, you can have it start a new log any time there is some additional criteria... like every time you go WOT it starts a new log. Cool huh?
__________________
10% Off DeatschWerks and Injector Dynamics!
Underdog
View Public Profile
Send a private message to Underdog
Find More Posts by Underdog
iTrader: (69)
#7: 03-29-2010, 01:30 PM
 
 Underdog
Underdog's Avatar
Title: Wrench for Hire
Location: Ayer, MA
Car: The Crimson Dynamo
Posts: 5,765
iTrader: (69)
Send a private message to Underdog Find all posts by Underdog Reply With Quote
The problem is the logcfg.txt file needs to be formatted in programming language. The parameter ID, the RPN scaling, the groups, bits, etc... all things I'm not sure what to do with. Also, I don't know which type of ECU I have... CAN or K-line?

For example:

type = ssmcan

paramname = Engine_Speed(rpm)
paramid = 0x00000E
databits = 16
scalingrpn = x,4,/

paramname = Ignition_Total_Timing(degrees)
paramid = 0x000011
databits = 8
scalingrpn = x,128,-,2,/

paramname = Intake_Air_Temperature(C)
paramid = 0x000012
databits = 8
scalingrpn = x,40,-

paramname = Coolant_Temperature(C)
paramid = 0x000008
databits = 8
scalingrpn = x,40,-

paramname = Mass_Airflow(g/s)
paramid = 0x000013
databits = 16
scalingrpn = x,100,/

paramname = Throttle_Opening_Angle(%)
paramid = 0x000015
databits = 8
scalingrpn = x,100,*,255,/

paramname = Mass_Airflow_Sensor_Voltage(V)
paramid = 0x00001D
databits = 8
scalingrpn = x,50,/

paramname = Primary_Wastegate_Duty_Cycle(%)
paramid = 0x000030
databits = 8
scalingrpn = x,100,*,255,/

paramname = Fine_Learning_Knock_Correction(degrees)
paramid = 0x000199
databits = 8
scalingrpn = x,0.25,*,32,-

paramname = A/F_Learning_#1_A_(Stored)*(%)
paramid = 0xFF2C90
isfloat = 1
scalingrpn = x,100,*

paramname = A/F_Learning_#1_B_(Stored)*(%)
paramid = 0xFF2C98
isfloat = 1
scalingrpn = x,100,*

paramname = A/F_Learning_#1_C_(Stored)*(%)
paramid = 0xFF2CA0
isfloat = 1
scalingrpn = x,100,*

paramname = Engine_Load_(1-byte)**(g/rev)
paramid = 0xFF6A5F
databits = 8
scalingrpn = x,.015625,*

paramname = Feedback_Knock_Correction_(1-byte)**(degrees)
paramid = 0xFF6A69
databits = 8
scalingrpn = x,.3515625,*,45,-

paramname = IAM_(1-byte)**(multiplier)
paramid = 0xFF6A6B
databits = 8
scalingrpn = x,.0625,*

paramname = Manifold_Relative_Pressure_(4-byte)*(psi_relative)
paramid = 0xFF643C
isfloat = 1
scalingrpn = x,0.01933677,*

paramname = mylc1.afr
paramid = 0x0102 ; get lambda from first LC-1
scalingrpn = x,14.7,* ; scale to an AFR

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

conditionrpn = defogger_sw,1,==
action = start

conditionrpn = defogger_sw,0,==
action = stop
__________________
10% Off DeatschWerks and Injector Dynamics!

Last edited by Underdog; 03-29-2010 at 01:33 PM..
Remove advertisements
Sponsored links
Underdog
View Public Profile
Send a private message to Underdog
Find More Posts by Underdog
iTrader: (69)
#8: 03-29-2010, 01:54 PM
 
 Ridgeracer
Ridgeracer's Avatar
Title: Burning Monkey
Rank: Donating Member
Location: Crooklyn, NYC and B-Port, CT
Car: LGT w/ now OpenSource Mikeyd & MeTuned
Posts: 2,609
iTrader: (7)
Send a private message to Ridgeracer Find all posts by Ridgeracer Reply With Quote
Quote:
Originally Posted by fishbone View Post
Ah, the heck with it. Others can correct me if I am wrong
Engine Load (2-byte)** (g/rev)
Engine Speed (rpm)
IAM (4-byte)* (multiplier)
Ignition Total Timing (degrees)
Knock Sum* (count)
Manifold Relative Pressure (4-byte)* (psi relative)
Mass Airflow (g/s)
Mass Airflow Sensor Voltage (V)
Primary Wastegate Duty Cycle Angle (%)
Throttle Opening Angle (%)
Log either mass airflow g/s or sensor volts. You don't need both. Also just check the IAM prior to logging. FWIW...seems easier to just log with the laptop.
__________________
"Gimme mines Balboa...Gimme mines".....Clubber Lang - Mr. T
Ridgeracer
View Public Profile
Send a private message to Ridgeracer
Find More Posts by Ridgeracer
iTrader: (7)
#9: 03-29-2010, 01:56 PM
 
 LGTspecB
Title: Senior Contributor
Car: 08 Spec B
Posts: 779
iTrader: (4)
Send a private message to LGTspecB Find all posts by LGTspecB Reply With Quote
Once I get home I can share my logcofg.txt that I use. I have it automatically come on with coolant temperature as well.

You will love microSD datalogging. Its so easy. You get boatloads of data and pretty good sampling rates. I never did get LC-1 working but I did not dive that deep into it either.
LGTspecB
View Public Profile
Send a private message to LGTspecB
Find More Posts by LGTspecB
iTrader: (4)
#10: 03-29-2010, 02:00 PM
 
 LGTspecB
Title: Senior Contributor
Car: 08 Spec B
Posts: 779
iTrader: (4)
Send a private message to LGTspecB Find all posts by LGTspecB Reply With Quote
Quote:
Originally Posted by Ridgeracer View Post
FWIW...seems easier to just log with the laptop.
Debatable. You can also setup to log with one of the car's switches... so if you just keep the Tactrix plugged in all the time, if you are ever in the mood to log, just trigger it. You can log whenever you want w/o the need for a laptop or any setup.
Its great for logging on the fly. Its also great for logging in CL to scale the maf. I logged all my CL driving for weeks and summarized it... you can really fine-tune the maf for daily driving. I just got in the car and drove, it did the logging automatically for me.
LGTspecB
View Public Profile
Send a private message to LGTspecB
Find More Posts by LGTspecB
iTrader: (4)
#11: 03-29-2010, 02:02 PM
 
 Underdog
Underdog's Avatar
Title: Wrench for Hire
Location: Ayer, MA
Car: The Crimson Dynamo
Posts: 5,765
iTrader: (69)
Send a private message to Underdog Find all posts by Underdog Reply With Quote
Quote:
Originally Posted by LGTspecB View Post
Debatable. You can also setup to log with one of the car's switches... so if you just keep the Tactrix plugged in all the time, if you are ever in the mood to log, just trigger it. You can log whenever you want w/o the need for a laptop or any setup.
Its great for logging on the fly. Its also great for logging in CL to scale the maf. I logged all my CL driving for weeks and summarized it... you can really fine-tune the maf for daily driving. I just got in the car and drove, it did the logging automatically for me.
Exactly... I hate having the cable draped over my steering column and I find myself constantly looking at the computer to check the knock sum, and then alter my driving based on it. It's uncomfortable and unsafe.

If I could figure out how to properly set it up for normal CL logging and occasional conditional logging (like if I want to do a WOT run to plot on my compressor map) then it will be perfect.
__________________
10% Off DeatschWerks and Injector Dynamics!
Underdog
View Public Profile
Send a private message to Underdog
Find More Posts by Underdog
iTrader: (69)
#12: 03-29-2010, 02:09 PM
 
 enthusiast
enthusiast's Avatar
Title: Stage IIE
Rank: Donating Member
Car: 05 GT MT
Posts: 1,748
iTrader: (16)
Send a private message to enthusiast Find all posts by enthusiast Reply With Quote
Checkout this post on RomRaider

http://www.romraider.com/forum/post58238.html
__________________
My mod list
enthusiast
View Public Profile
Send a private message to enthusiast
Find More Posts by enthusiast
iTrader: (16)
#13: 03-30-2010, 05:48 AM
 
 Underdog
Underdog's Avatar
Title: Wrench for Hire
Location: Ayer, MA
Car: The Crimson Dynamo
Posts: 5,765
iTrader: (69)
Send a private message to Underdog Find all posts by Underdog Reply With Quote
That is awesome enthusiast. Thanks!

I will play with it at lunch and try to make something to start from.
__________________
10% Off DeatschWerks and Injector Dynamics!
Underdog
View Public Profile
Send a private message to Underdog
Find More Posts by Underdog
iTrader: (69)
#14: 03-30-2010, 11:20 AM
 
 Underdog
Underdog's Avatar
Title: Wrench for Hire
Location: Ayer, MA
Car: The Crimson Dynamo
Posts: 5,765
iTrader: (69)
Send a private message to Underdog Find all posts by Underdog Reply With Quote
So with my '06 (ECUID A2WF200N) do I have the K-line or CAN ECU type?
__________________
10% Off DeatschWerks and Injector Dynamics!
Remove advertisements
Sponsored links
Underdog
View Public Profile
Send a private message to Underdog
Find More Posts by Underdog
iTrader: (69)
#15: 03-30-2010, 11:24 AM
 
 enthusiast
enthusiast's Avatar
Title: Stage IIE
Rank: Donating Member
Car: 05 GT MT
Posts: 1,748
iTrader: (16)
Send a private message to enthusiast Find all posts by enthusiast Reply With Quote
Quote:
Originally Posted by Underdog View Post
So with my '06 (ECUID A2WF200N) do I have the K-line or CAN ECU type?
K-Line
__________________
My mod list
enthusiast
View Public Profile
Send a private message to enthusiast
Find More Posts by enthusiast
iTrader: (16)
Reply
Page 1 of 6 1 23 > Last »

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email this Page Email this Page
Search this Thread:

Advanced Search
Display Modes
Linear Mode Linear Mode
Hybrid Mode Switch to Hybrid Mode
Threaded Mode Switch to Threaded Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Rules
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Logging, A Basic How To rallispec Tuning 871 02-27-2011 01:55 PM
Need helping logging with RR new04specv Tuning 15 04-10-2009 09:23 AM
07+ data logging Bulletproof4age Tuning 5 06-21-2008 05:29 PM
Data logging meet! Habitual Line Stepper Pacific Northwest 6 05-15-2008 06:42 PM
Logging help please sgeorge Tuning 12 02-18-2008 06:11 PM

Remove advertisements

All times are GMT -6. The time now is 03:43 AM.

 
img img img
LegacyGT.com - Archive - Top
Back To The Top   img img Back To The Top
Zoints SEO v2.3.0 by Zoints & Computer-Logic.org

vBulletin Optimisation by vB Optimise.