RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 9:16 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Linux J2534 Support
PostPosted: Thu Nov 02, 2017 9:39 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
To be honest I don't recall where I left this. The Logger will try to use the OP2 if the library is detected in "/usr/local/lib/". Best to grab my code from the repo, compile and test for yourself and post the results or questions here.
You may have to write your own VDEV rules to ensure the kernel doesn't load the generic ftdi driver when the OP2 is plugged in and set permissions for you to use the device.


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Fri Nov 03, 2017 12:14 pm 
Offline
Newbie

Joined: Sat Oct 31, 2015 2:21 pm
Posts: 5
OK this is how far I got: cloned repo, compiled ok. now trying to patch, but get the already mentioned error:
Code:
patch -p0 src/main/java/com/romraider/io/connection/ConnectionManagerFactory.java < RomRaider-j2534-linux.patch
patching file src/main/java/com/romraider/io/connection/ConnectionManagerFactory.java
Hunk #2 FAILED at 72.
1 out of 2 hunks FAILED -- saving rejects to file src/main/java/com/romraider/io/connection/ConnectionManagerFactory.java.rej


output of dmesg looks ok to me:
Code:
usb 4-1: USB disconnect, device number 2
[ 1379.044064] usb 4-1: new full-speed USB device number 3 using uhci_hcd
[ 1379.212098] usb 4-1: New USB device found, idVendor=0403, idProduct=cc4d
[ 1379.212105] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1379.212108] usb 4-1: Product: OpenPort 2.0
[ 1379.212112] usb 4-1: Manufacturer: Tactrix
[ 1379.212115] usb 4-1: SerialNumber: TA66LlaL
[ 1379.217229] cdc_acm 4-1:1.0: ttyACM0: USB ACM device


romraider says:
Code:
43108 INFO  [Thread-2] - Connected to: /dev/ttyS41
43108 INFO  [Thread-2] - Serial connection initialised: SerialConnectionProperties[baudRate=4800, dataBits=8, stopBits=1, parity=0, connectTimeout=2000, sendTimeout=55]
43109 DEBUG [Thread-2] - ECU Init Request  ---> 8010F001BF40
45141 INFO  [Thread-2] - Connection closed.
45143 DEBUG [Thread-2] - Error sending init
java.lang.IllegalArgumentException: Parameter response must not be null or empty
   at com.romraider.util.ParamChecker.checkNotNullOrEmpty(ParamChecker.java:74)
   at com.romraider.io.protocol.ssm.iso9141.SSMResponseProcessor.filterRequestFromResponse(SSMResponseProcessor.java:48)
   at com.romraider.io.protocol.ssm.iso9141.SSMLoggerProtocol.preprocessResponse(SSMLoggerProtocol.java:81)
   at com.romraider.logger.ecu.comms.io.connection.SSMLoggerConnection.ecuInit(SSMLoggerConnection.java:76)
   at com.romraider.logger.ecu.comms.manager.QueryManagerImpl.doEcuInit(QueryManagerImpl.java:178)
   at com.romraider.logger.ecu.comms.manager.QueryManagerImpl.run(QueryManagerImpl.java:149)
   at java.lang.Thread.run(Thread.java:748)
46145 INFO  [Thread-2] - J2534 initialization: Unable to load library '/usr/local/lib/j2534.so': /usr/local/lib/j2534.so: falsche ELF-Klasse: ELFCLASS64, trying serial connection...
46155 INFO  [Thread-2] - Connected to: /dev/ttyS41
46156 INFO  [Thread-2] - Serial connection initialised: SerialConnectionProperties[baudRate=4800, dataBits=8, stopBits=1, parity=0, connectTimeout=2000, sendTimeout=55]
46156 DEBUG [Thread-2] - ECU Init Request  ---> 8010F001BF40
48181 INFO  [Thread-2] - Connection closed.
48181 DEBUG [Thread-2] - Error sending init
java.lang.IllegalArgumentException: Parameter response must not be null or empty
   at com.romraider.util.ParamChecker.checkNotNullOrEmpty(ParamChecker.java:74)
   at com.romraider.io.protocol.ssm.iso9141.SSMResponseProcessor.filterRequestFromResponse(SSMResponseProcessor.java:48)
   at com.romraider.io.protocol.ssm.iso9141.SSMLoggerProtocol.preprocessResponse(SSMLoggerProtocol.java:81)
   at com.romraider.logger.ecu.comms.io.connection.SSMLoggerConnection.ecuInit(SSMLoggerConnection.java:76)
   at com.romraider.logger.ecu.comms.manager.QueryManagerImpl.doEcuInit(QueryManagerImpl.java:178)
   at com.romraider.logger.ecu.comms.manager.QueryManagerImpl.run(QueryManagerImpl.java:149)
   at java.lang.Thread.run(Thread.java:748)


and my udev rule is this:
Code:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="cc4d", ATTRS{serial}=="TA66LlaL", GROUP="dialout", OWNER="simon", MODE="0777", SYMLINK+="ttyS41"



any help is greatly appreciated!
thanks
IF


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Tue Nov 07, 2017 6:56 am 
Offline
Newbie

Joined: Sat Oct 31, 2015 2:21 pm
Posts: 5
any ideas?


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Fri Nov 10, 2017 8:07 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
I'll have to dig through some backups to find where I left off. There's no need to patch the Java files in RomRaider as the support is already there.

Why is j2534.so initialization failing, do you have permissions to load the library?

From my notes back a page I used a simpler UDEV string.
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTR{idProduct}=="cc4d",GROUP="dialout",MODE="0666"


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Sat Nov 11, 2017 5:28 pm 
Offline
Newbie

Joined: Sat Oct 31, 2015 2:21 pm
Posts: 5
yes, I gave it 777 but it still does not want to load...

J2534 initialization: Unable to load library '/usr/local/lib/j2534.so': /usr/local/lib/j2534.so: falsche ELF-Klasse: ELFCLASS64

I'm not sure what "wrong ELF-class" means...


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Sun Nov 12, 2017 8:31 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Did you compile on a 64bit system? It needs to be 32bit to work with RomRaider and Java 32bit.


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Mon Nov 13, 2017 2:52 pm 
Offline
Newbie

Joined: Sat Oct 31, 2015 2:21 pm
Posts: 5
*is installing 32bit now* :D


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Sat Mar 19, 2022 8:09 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Major update to the code base. https://github.com/dschultzca/j2534
Added:
  • more error checking
  • receive is buffered so hopefully won't drop packets
  • more debug logging info
  • works on Windows and Linux, both 32 & 64 bit
  • more stable


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Wed Oct 12, 2022 12:27 am 
Offline
Newbie
User avatar

Joined: Wed Aug 24, 2022 1:22 pm
Posts: 15
Location: Denver, CO
Hey dschultzca thanks a ton for this project! i found a small bug, and was hoping you'd be so kinda as to check outt my PR.

https://github.com/dschultzca/j2534/pull/4

_________________
Renesis Swapped NC Miata Build Thread
RX8 Discord Server


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Thu Oct 13, 2022 8:47 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Thanks, I'll have a look when I get a chance.


Top
 Profile  
 
 Post subject: Re: Linux J2534 Support
PostPosted: Sun May 11, 2025 10:43 am 
Offline
Newbie

Joined: Thu Aug 10, 2023 3:08 pm
Posts: 3
Im noticing some incorrect behaviour with the J2534 drive on Linux (I haven’t tried it on Windows)

When reading a large response the CAN ID of the ECU is being added to the message data multiple times

My application is written is .NET Core so is cross compilable with Windows (Using the official Tactrix driver) and Linux

On Windows I get the following
Read Memory Request, no format byte. Address 0x00000000. Return data size: 0x400

TX: 23 00 00 00 00 04 00

RX: Datasize 1029: 63 00 continues

1029 bytes of Data would be correct. 4 bytes for the Can Id, a single 63 (Postive response service 23) followed by 400 bytes of data

On Linux using this driver I receive a response with a data size of 1085 bytes. After much head scratching I can see that perio


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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