RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Mon May 20, 2013 12:58 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Mon Jan 09, 2012 10:58 am 
Offline
Newbie

Joined: Tue Dec 13, 2011 7:50 pm
Posts: 13
Location: Germany
Sorry, I haven't had an opportunity to test drive.

But to better understand what happens I did some basic tests.
I simulated short periods of vibration/shock by moving the laptop.
Status of hdd protection was observed with the protection process gui.
It shows the orientation of the laptop and the measures taken
(hdd running, paused, protection suspended; see "RR freeze on vibration - display.JPG").

My findings so far, with fast polling used (12 parameters @ ~17.5 samples/s):
CPU load with my test set of parameters and no graph output: variable ~5-20%.
CPU load with maximum graph output: ~60%.

There are three problems:

a) frozen program for short periods of time

In trace mode RR freezes completely as long as the HDD is offline (due to shock protection).
No data sampling, display, systemlog or data file writes occur.
This is true for logging data to HDD or USB.
So it seems (paused) writes to the sytem logfile (still on HDD) do block the whole process!
In the log files big time gaps can be seen.

If RR then resumes it processes buffered messages from the interface as fast as possible.
In that situation some samples get the same time (like problem b).
Looks like some messages are processed within a msec or the granularity of time is not good enough.
(see "RR freeze and resume - data.JPG")

b) more than one data sample per timestamp

Occurs independend of system logging (info level used).
In the data log I see that data samples with the same timestamp occur in periods of jitter.
I suspect that RR wasn't able to process the data in time (blocked, CPU load etc.).
May be related with graph output CPU load.
If RR resumes it processes buffered messages from the interface as fast as possible.
Same as with problem a) but depending on sampling intervall and delay for just 2 or 3 data samples.
It's is getting worse if the sampling intervall gets shorter (fast polling, fewer parameters, better interface)
or the computer being slower (running on battery power wo high speed setting).

c) big leap back in time (and frozen graph output for long periods of time)
Still don't have an idea for that.
There are no anomalies before or after the leap.
Maybe a bug in the timing code?



Solution for a)
Point the rr_system and data logging dir to USB (how to do for rr_system.log?).
Use a SSD.
Don't trace while logging.
Don't drive while tracing ;-)

Solution for b)
No other processes that load the laptop (graphics, cpu, disk etc.).
Use slow polling.
Don't graph too much (window size and count of parameters matters) - to be confirmed.
Use high speed energy scheme even while on battery power.
Buy a faster laptop.

Will give the data logging to USB (@INFO level) a try when my car runs again after the injectors have been swaped.
I'm curious if continued vibration adds to problems b and c.

Cheers
- matze -


You do not have the required permissions to view the files attached to this post.


Last edited by matze on Mon Jan 09, 2012 4:49 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Mon Jan 09, 2012 2:24 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
If you wish to move the rr_system.log to the USB change the parameter:
Code:
log4j.appender.file.File=${user.home}/.RomRaider/rr_system.log
in the log4j.properties file in the RR install directory.

Of course this will not help with any other OS process that is using the HDD. If the HDD is suspended then the OS can't do any of it's read/writes too and may still block the other applications.


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Thu Jan 26, 2012 9:36 pm 
Offline
Newbie

Joined: Wed Aug 22, 2007 3:05 am
Posts: 34
dschultz wrote:
mdedwar wrote:
All looks good except my innovate lc1 stops working after a few minutes and I have to restart RR to get it working again.

How long before it stops?
No changes were made to the LC-1 plugin. Does all logging stop or just the LC-1?
If you submit a trace log that may help.
Set the debugging level to Trace in the Logger Help menu, wait for the problem to happen, then submit the rr_system.log (found in the log directory opened from the help menu Debug item).


I seen this happen twice today where the LC-1 output just freezes while the SSM logging continues business as usual. I had to resort to rebooting. 0.5.3 rc9 doesn't do this.

LC-1 is on latest firmware 1.20.

I'll submit a trace like you say next time I see it happen.


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Sat Mar 10, 2012 12:35 pm 
Offline
Newbie

Joined: Sat Jun 20, 2009 2:26 pm
Posts: 20
i cannot get romraider to work. it wont complete the installation process. help!


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Sat Mar 10, 2012 5:12 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
Probably the wrong Java version.


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Sat Mar 10, 2012 11:22 pm 
Offline
Newbie

Joined: Sat Jun 20, 2009 2:26 pm
Posts: 20
cool, i'll look for a new java update and try that. thanks!


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Fri Apr 20, 2012 8:49 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 374
dschultz wrote:
Data logging is performed using the Java class BufferedOutputStream while the system logging is handled by the log4j class (written by Apache and claimed to be extremely efficient).

In the past that was considered true. The original author of log4j, Ceki Gülcü, wrote a new one called logback to fix the issues with log4j. You might want to check out these two links, it's likely pretty easy to migrate, especially if you're already using slf4j now.

http://logback.qos.ch/reasonsToSwitch.html
http://www.slf4j.org/

I doubt it'd help with any of the above mentioned issues. But I thought I'd point it out anyway :-)

Fred.

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Thu Apr 26, 2012 4:11 pm 
Offline
Experienced

Joined: Fri Feb 10, 2006 7:04 pm
Posts: 947
Location: Pittsburgh, PA
How does RR parse the ECU definitions file?

Does it look for the ECU ID, then copy/paste the table addresses defined into a temporary text file, then find what it inherits from, then copy/paste 16BITbase or 32BITbase etc. into the temp text file, and once it has isolated all the relevant stuff out of the definitions file, THEN populate the tables?

Or is there a better way?


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Thu Apr 26, 2012 7:08 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
All the parsing is done memory. It creates a tree based on the inherits found the BASE up, then creates the tables with info from your ROM and removes any table without an address entry.


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Thu Apr 26, 2012 7:19 pm 
Offline
Newbie

Joined: Sat Mar 18, 2006 2:14 pm
Posts: 84
Location: Auckland
I personally would love it if RR treated XML the same way ECUFlash does, seperate files for each ECU to save the hassle of working with an 8MB XML file...

Compatibility with ECUFlash's definitions, or some variety of convertor would also be much appreciated.

Just a couple of suggestions maybe for future builds.


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Thu Apr 26, 2012 11:13 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
That's on the road map... eventually.


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Sat May 19, 2012 7:30 pm 
Offline
Experienced

Joined: Wed Jul 16, 2008 7:32 pm
Posts: 274
I tried searching for this a little but didn't find anything...
Are you guys seeing the CPU useage on your laptop at 100% when logging? I don't remember seeing this on old versions of Romraider, so maybe it's the fast poll...
Either way, it's killing my battery life, and making the laptop VERY hot.
Java is the program using the most resources when it's maxed out, so it's definitely Romraider.

-Mark


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Tue Jul 24, 2012 3:33 am 
Offline
Experienced

Joined: Sun Jun 03, 2007 12:08 pm
Posts: 201
Location: Gig Harbor, WA
I have been trying to use my LM2 for ages. I finally had a car left for me to tune when I got around to it. This gave me a chance to get the LM2 working. I uninstalled the innovate software and re installed the new stuff. It worked finally!

I have tuned a few cars with this and the connection sucks. If you stop the logger at any point without unchecking the lm2 from the logger it will not re connect.

You must do these exactly in this order to get it to reconnect.

uncheck lm2 in logger

start logger

select mts logger/ mts port

select lm2 in logger AFR

If you miss this order you must do the following:

exit logger

open logworks and get it reading

close logworks

open RR select mts logger/ mts port "sometime this all starts on its own".

This is awesome as I can finally use the wideband

Thanks again for the help!!

Josh


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Tue Jul 24, 2012 9:41 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
There's been a number of changes since this RR release. If you care to try them out grab this version of RR Logger.
https://www.assembla.com/spaces/romraid ... GJacwqjQXA
You should uninstall RR using the force delete option and then install this version.

The major change to the LM-2 portion was to move from event driven updates to polled as it was found that the event driven changes were not always up-to-date.

If only I had an LM-2 to test with I could get it sorted out fairly well... :(


Josh Long wrote:
open RR select mts logger/ mts port "sometime this all starts on its own".

This happens if you have any of the MTS items selected and saved in a logging profile. Then you need to have the LM-2 plugged in and ready to read prior to starting the RR Logger. This is because the RR Logger reads the sensor information dynamically and only at startup of the Logger. It can not do it after the Logger is started.


Top
 Profile  
 
 Post subject: Re: RomRaider 0.5.4b RC1
PostPosted: Sat Jul 28, 2012 5:30 pm 
Offline
Newbie

Joined: Sat May 12, 2007 10:27 pm
Posts: 4
Location: Greenwich NY
blackburn_2003_wrx wrote:
i cannot get romraider to work. it wont complete the installation process. help!


I'm having the same problem.

I have a desktop x64 and a x64 laptop. I installed JREx64 on just the laptop for a different program long ago. I downloaded and installed JRE i586 1.70 on both computers. Rom raider installed on my desktop, but will NOT on my laptop...

Do i need to uninstall the x64 version of JRE in order for this to work on the laptop??


EDIT*** -- I uninstalled the x64 version of java and romraider installed fine. and my other program still works with the i586 version ;)

_________________
'06 FXT 4eat - Sti Scoop


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl