RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 10:52 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: RomRaider Logger - LoggerPort is null
PostPosted: Thu Sep 09, 2021 11:31 pm 
Offline
Experienced

Joined: Sun Jun 28, 2020 2:25 am
Posts: 237
Alright, so i've been modifying RomRaider Logger for a while now in order to work with a few custom external plugins. I've made an Plugin Hub with an Arduino Nano which works great to convert 5V analog inputs to RomRaider, that way I can log fuel pressure, wb02, oil pressure.. all the goodies that the stock ECU doesn't have from the factory.


Now for the issue. After installing RomRaider 0.7.2, it works randomly the first hour. Then it doesn't connect to the ECU at all, it doesn't even try.

If I close/open it a few times, it may work again. But it gets to a point where it doesn't connect anymore. The logger doesn't even try to connect to the ECU, ECUINIT doesn't happen.
So while I had Eclipse open, I added a few Debug outputs to the log file, in order to see where it's stopping...

after digging a little bit, right below the init method, I found out that the Settings.getLoggerPort() returns a NULL, and it prevents the EcuInit, since it's a null.

In QueryManagerImpl class:
Code:
if(target == null || settings.getLoggerPort() == null ) {
                   notifyStopped();
                   if (settings.getLoggerPort() == null ) {
                      LOGGER.debug("QueryManager logger port is null.");
                      messageListener.reportMessage(rb.getString("LOGGERPORT_IS_NULL"));
                   }
...


Right below it there's another null check:

Code:
if (!settings.isLogExternalsOnly() &&  (target != null && settings.getLoggerPort() != null && doEcuInit(target))) {


I tried removing the null check just for diagnostics but it would return another null pointer in the doEcuInit method, so no go.

Well so I almost gave up, until I decided to rollback to 0.7.0, and boom, it works, flawlessly. So I downloaded the 0.7.0 source and modified it, and it works great.

The problem seems to happen in 0.7.2 only.

_________________
2011 Forester S Edition 5EAT~ Flex Fuel
2011 WRX 6MT ~ Flex Fuel


Top
 Profile  
 
 Post subject: Re: RomRaider Logger - LoggerPort is null
PostPosted: Wed Sep 15, 2021 9:31 am 
Offline
Newbie

Joined: Sat May 16, 2020 12:50 pm
Posts: 10
Great idea with the Arduino. It would be interesting to know the details.


Top
 Profile  
 
 Post subject: Re: RomRaider Logger - LoggerPort is null
PostPosted: Sat Sep 25, 2021 9:20 am 
Offline
RomRaider Developer

Joined: Sun May 07, 2017 3:20 pm
Posts: 48
Location: Germany
I noticed some wierdness with the RXTX serial library sometimes. The logger port should not randomly get NULL, I added those null checks to avoid errors awhile back. I tried to use a bluetooth dongle once and it was only working randomly aswell and stopped out of nowhere. Using another serial library might be the best solution for this.

Regarding the Arduino logging, I think it would be pretty useful. I thought about this for a while some time ago and I think think the smoothest integration is to adopt the PLX format: https://download.tpl.one/PLX/PLXApp.pdf. This format is already integrated into RR and very easy to implement in an Arduino, I have the code for it somewhere. It is integrated as a plugin, which should be more suited for this. Back then I emulated the PLX format to log Wideband and MAP from an Arduino. For custom channels it should be possible to use an optional definition file where you can define additional channels outside of the standard spec for your own Arduino stuff.


Top
 Profile  
 
 Post subject: Re: RomRaider Logger - LoggerPort is null
PostPosted: Thu Oct 21, 2021 10:03 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Is Settings > Enable COM port Auto Refresh selected when this happens?

Usually on start-up there's a delay in detecting the COM ports available on the system. When this option is disabled the Logger will start without a COM port selection. For people using a J2534 interface cable the serial port selection is not required and can be skipped. But for USB to Serial adapters a COM port selection is required to proceed with logging, and for Externals that rely on a COM port.

I haven't tested a COM port in a while, but with a J2534 cable I've logged for over 48 hours continuously with no issues.


Top
 Profile  
 
 Post subject: Re: RomRaider Logger - LoggerPort is null
PostPosted: Tue Dec 14, 2021 11:12 pm 
Offline
Experienced

Joined: Sun Jun 28, 2020 2:25 am
Posts: 237
dschultz wrote:
Is Settings > Enable COM port Auto Refresh selected when this happens?

Usually on start-up there's a delay in detecting the COM ports available on the system. When this option is disabled the Logger will start without a COM port selection. For people using a J2534 interface cable the serial port selection is not required and can be skipped. But for USB to Serial adapters a COM port selection is required to proceed with logging, and for Externals that rely on a COM port.

I haven't tested a COM port in a while, but with a J2534 cable I've logged for over 48 hours continuously with no issues.


Sorry for the late reply.

We've tried enabled and disabled. Same results.

Also, my friend just bought a Tactrix cable to log his car, he downloaded the newest RR build, 0.8.0, and his logger didn't work. Didn't even try to connect. I sent him my copy of 0.7.0 and it worked fine.

_________________
2011 Forester S Edition 5EAT~ Flex Fuel
2011 WRX 6MT ~ Flex Fuel


Top
 Profile  
 
 Post subject: Re: RomRaider Logger - LoggerPort is null
PostPosted: Wed Dec 15, 2021 8:54 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
0.8.0 is not the latest, try upgrading.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

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