RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 4:01 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Innovate LM2 not working - com4j.ExecutionException: com4j.C
PostPosted: Fri Apr 22, 2011 7:16 am 
Offline
Newbie

Joined: Wed Feb 11, 2009 6:46 pm
Posts: 64
Hello,

I am trying to get Romraider working with the LM2.

I am using .5.3 RC7 and cannot get it to read.
Windows XP SP3


The LM2 works with the logworks software, it is showing up in device manager all fine but no go with Romraider.

In the log i am getting the following error. I have tried with it set to port 0 and to port 1 but it does the same thing.

This is way over my head, im good with IT, just not with code.

I have pasted below the errors in the log file.
Any help would be greatly appreciated. I want to start tuning my car and i cant until i get some AFR's logged :)

Thanks.

Btw, this is what i have tried,
Completely uninstall and reinstall LM2 drivers and logworks software (including deleting driver files from system32 folder) also uninstalled romraider completely and deleted folder.
Reinstalled logworks, reinstalled LM2, Reinstalled Romraider, and have the error below.


66245 ERROR [Thread-13] - Innovate LM-2 [mts]: connect error
com4j.ExecutionException: com4j.ComException: 80040154 CoCreateInstance failed : Class not registered : .\com4j.cpp:135
at com4j.ComThread.execute(ComThread.java:189)
at com4j.Task.execute(Task.java:23)
at com4j.COM4J.createInstance(COM4J.java:95)
at com4j.COM4J.createInstance(COM4J.java:73)
at com.romraider.logger.external.innovate.generic.mts.io.MTSFactory.createMTS(Unknown Source)
at com.romraider.logger.external.innovate.generic.mts.io.MTSRunner.mts(Unknown Source)
at com.romraider.logger.external.innovate.generic.mts.io.MTSRunner.<init>(Unknown Source)
at com.romraider.logger.external.innovate.lm2.mts.plugin.Lm2MtsDataSource.connect(Unknown Source)
at com.romraider.logger.external.core.GenericDataSourceConnector.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com4j.ComException: 80040154 CoCreateInstance failed : Class not registered : .\com4j.cpp:135
at com4j.Native.createInstance(Native Method)
at com4j.COM4J$CreateInstanceTask.call(COM4J.java:111)
at com4j.COM4J$CreateInstanceTask.call(COM4J.java:98)
at com4j.Task.invoke(Task.java:44)
at com4j.ComThread.run0(ComThread.java:149)
at com4j.ComThread.run(ComThread.java:125)


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Fri Apr 22, 2011 9:21 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
To me that is looking like an installation error of some sort.
com4j is the link between RR Logger and the MTS dll supplied by Innovate.
The error from com4j seems to indicate that it can't initialize the comms with the MTS dll.

Do you have any other software running at the same time? Logworks should be shutdown when using RR Logger.


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Fri Apr 22, 2011 9:24 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Also try deleting the settings.xml in the RR directory. When opening the dialog to set the port for MTS, if you do not get a dialog box then RR is not finding the MTS dll and the log will most likely have the same error. Port 0 should be the one to use.


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Fri Apr 22, 2011 9:43 am 
Offline
Newbie

Joined: Wed Feb 11, 2009 6:46 pm
Posts: 64
Just going to give it a reboot now.
I was *not* getting a dialog when trying to select an MTS port, i changed it in settings. I did not have logworks open (unless it was a hung process, so restarting just to be sure)

I will set it to 0 and see what happens now.

Thanks for the quick response. i appreciate it


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Fri Apr 22, 2011 9:47 am 
Offline
Newbie

Joined: Wed Feb 11, 2009 6:46 pm
Posts: 64
Nope still no popup screen to select the channel. (Before i removed them both and reinstalled i was getting that, but not now.

EDIT: Reinstalled logworks and tried again (no popup) THen reinstalled romraider and tried again. still no popup :(
Disabled antivirus just in case, still no popup.

Any suggestions?


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Fri Apr 22, 2011 10:59 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Which version on Logworks are you using?
If not ver 3 try installing that.
Do you still get the same error in the log file after installing ver 3?


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Fri Apr 22, 2011 11:12 am 
Offline
Newbie

Joined: Wed Feb 11, 2009 6:46 pm
Posts: 64
dschultz wrote:
Which version on Logworks are you using?
If not ver 3 try installing that.
Do you still get the same error in the log file after installing ver 3?



Im using the newest one. which is 3.07


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Fri Apr 22, 2011 12:46 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
I'm use the same version.
Search your registry for the key {74087A4E-4AF1-4F8C-BACB-3959C212AAD2} it should reference the mtssdk.ocx in the LogWorks directory.
If the key is missing, or points to the wrong directory or the mtssdk.ocx/mts.dll file is missing or corrupt or not there you will get the error you posted.

If anything is missing then install the SDK http://www.innovatemotorsports.com/supp ... KSetup.zip


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Fri Apr 22, 2011 7:41 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 6:46 pm
Posts: 64
Cannot find that key anywhere in the registry. Searched on the first set of numbers/letters

Installed the SDK and still am unable to find anything in the registry.
Tried searching the registry for mtssdk.ocx and also found nothing.

Restarted and now the key has appeared. Opened romraider and it is showing the mts selection box popup thing. Gives me 0 and 1 to choose from.

Tried both of them but still no go :(

The log had showed connected to the mts but got nothing!


Any other ideas? wish this thing would just work...

I did at 1 stage get 1 number readout and then nothing. thats the closest i have been to having anything with that so far :S :(

I noticed in my logs it goes "MTS: found 2 ports
MTS: Current port [0] : COM11 (which is the std windows com port in device manager)
then it says connected.
:S

its kinda like its trying to go through the com port :S? could that be why its not getting any data?

i attached a few log files.

The last few tries i was trying it without the open port cable plugged in.


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


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Sat Apr 23, 2011 12:18 am 
Offline
Newbie

Joined: Wed Feb 11, 2009 6:46 pm
Posts: 64
I HAVE WORKED IT OUT!!!! YAY


Ok so why this is happening you might be able to fill me in with, but this is what is happening.

I have 3 com ports on my computer.

com1 which is the std built in 1, com2 which is assigned to my open port 2.0 and com3 which is the built in dialup modem.

When using romraider and it tries to connect to the LM2 it seems to choose a com port over the USB connection. So when it would connect it would choose com1.

I disabled com1 to test and then it connected to com3. (took me a little while to work out what com3 was then realised it was the built in modem) So i disabled that too and then tried it and....

It didnt work cause it went to com2... So i unticked lm2 in the logger and ticked it again and this time...

It connected to Innovate USB device and i have AFR readings! :) WOOHOO.

Thanks for your help, Im guessing that the issue above is going to be something with the coding? Hopefully its something you can sort out easily so it doesnt happen like that, but im happy as i have it working now.

Thanks.


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Sat Apr 23, 2011 11:01 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
If you wouldn't mind doing a test for me, it may help sort this out.
I've attached a newer version of RR (RC8). Rename your existing RomRaider.jar file and unzip and put this in its place in the install directory.

In the file named log4j.properties set the first line to:
log4j.rootLogger=trace, stdout, file

Delete the file called romraider.log

Re-enable those COM ports.

Set up to connect to the car and get the Logger querying normally.
Check the LM2 port settings. And select the first one.
Try to log the LM2.
If that fails deselect the LM2 and change the port to the next one listed.
Try to log the LM2 again.
Deselect the LM2 and shutdown the Logger.
Post up the romraider.log file so I can see what's up.

Reset the logging mode in log4j.properties, set the first line to:
log4j.rootLogger=info, stdout, file


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


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Sat Apr 23, 2011 1:28 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 6:46 pm
Posts: 64
Hey Mate,

Copied the romraider.jar across, changed the log file, re enabled the com ports.

Started the logging, connected to the ecu then selected port 0 of the mts and nothing, selected port 1 of the mts and then got a signal :)

Hope the log helps you, (strange that it is on a different port now?)


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


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Sat Apr 23, 2011 5:09 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Glad it works now.
These are the lines of interest.
Code:
90140 TRACE [AWT-EventQueue-0] - Connect count [Innovate LM-2 [mts]]: 1
90140 DEBUG [AWT-EventQueue-0] - Adding logger:   [X_Innovate_LM-2_[mts]] Innovate LM-2 [mts]
90150 INFO  [Thread-7933] - Innovate LM-2 [mts]: connecting...
91852 INFO  [Thread-7933] - MTS: found 1 ports.
91852 INFO  [Thread-7933] - MTS: current port [0]: COM1
91852 INFO  [Thread-7933] - Innovate LM-2 [mts]: connected.
96950 INFO  [Thread-8150] - MTS: found 0 inputs.
96950 ERROR [Thread-8150] - MTS: Error - no input channels found to log from!
117319 INFO  [AWT-EventQueue-0] - Innovate LM-2 [mts]: disconnecting
117319 INFO  [AWT-EventQueue-0] - Innovate LM-2 [mts]: disconnected.
117319 TRACE [AWT-EventQueue-0] - Connect count [Innovate LM-2 [mts]]: 0
117319 DEBUG [AWT-EventQueue-0] - Removing logger: [X_Innovate_LM-2_[mts]] Innovate LM-2 [mts]
In this section port 0 is the COM1 port as noted and it reports back no inputs to log from.

Code:
117830 TRACE [AWT-EventQueue-0] - Connect count [Innovate LM-2 [mts]]: 1
117830 DEBUG [AWT-EventQueue-0] - Adding logger:   [X_Innovate_LM-2_[mts]] Innovate LM-2 [mts]
117830 INFO  [Thread-9824] - Innovate LM-2 [mts]: connecting...
119572 INFO  [Thread-9824] - MTS: found 2 ports.
119572 INFO  [Thread-9824] - MTS: current port [1]: Innovate USB Device
119572 INFO  [Thread-9824] - Innovate LM-2 [mts]: connected.
120003 INFO  [Thread-10041] - MTS: found 3 inputs.
120003 INFO  [Thread-10041] - MTS: InputNo:0, InputName:LM_2_O2, InputType:1, DeviceName:LM-2, DeviceType:5, DeviceChannel:0
120003 INFO  [Thread-10041] - MTS: InputNo:1, InputName:LM_2_RPM, InputType:2, DeviceName:LM-2, DeviceType:5, DeviceChannel:2
120003 INFO  [Thread-10041] - MTS: InputNo:2, InputName:LM_2_OBD1, InputType:2, DeviceName:LM-2, DeviceType:5, DeviceChannel:7
121004 TRACE [Thread-10041] - MTS: type = 1, function = 1, sample = 209
121104 TRACE [Thread-10041] - MTS: type = 1, function = 1, sample = 209
This looks better as you can see on port 1 is the USB device that has three inputs to choose from. The logger is set to always select input #0 as that is what the WB02 is on. The sample is the AFR, divide by 10 to get the real value 20.9


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Sat Apr 23, 2011 7:35 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 6:46 pm
Posts: 64
Awesome.

Thanks for you help, So ill just keep using this version until the next RC Comes out?

Cheers


Top
 Profile  
 
 Post subject: Re: Innovate LM2 not working - com4j.ExecutionException: com
PostPosted: Sat Apr 23, 2011 11:44 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Yes, you got it before anyone else... don't tell :wink:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  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