RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 11:08 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 73 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Fri Feb 23, 2018 3:20 pm 
Offline
RomRaider Donator

Joined: Tue May 16, 2017 2:08 pm
Posts: 6
Pulled out the log. These part draw my attention:
-------------------------
9476 WARN [main] - Timeout while waiting for serial port refresher - continuing anyway...
9495 INFO [Thread-2] - Linux Openport 2.0 library not found in: /usr/local/lib/j2534.so, trying serial connection...
9505 INFO [Thread-2] - Error sending init: Parameter portName must not be null or empty
-------------------------
Full log is attached

I am guessing the line 9495 is normal as there is no driver for openport 2.0 on linux? No idea about portName stuff....

Thanks


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


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Fri Feb 23, 2018 7:54 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
These are the important parts:
Code:
    java.class.path=/home/pi/RomRaider/RomRaider.jar
10280 ERROR [main] - Error loading external datasource: com.romraider.logger.external.phidget.interfacekit.plugin.IntfKitDataSource, specified in: /home/pi/RomRaider/./plugins/phidget_ik.plugin
java.lang.ExceptionInInitializerError: /home/pi/RomRaider/lib/linux/libphidget21.so: /home/pi/RomRaider/lib/linux/libphidget21.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
Could not locate the Phidget C library (libphidget21.so).
Make sure it is installed, and add it's path to LD_LIBRARY_PATH.

How are you starting RomRaider?
You must use the ./run.sh script provided.
Edit the script if you only want to start the Logger and not the Editor first.
This sets up the operational environment for Java and RR.


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Tue Jun 25, 2019 9:29 pm 
Offline
RomRaider Donator

Joined: Fri Oct 07, 2016 12:36 am
Posts: 77
Back from the dead, but still relevant. I am at the same point.

I got RomRaider running on the raspberry pi. Logger screen came up no problem. I installed the drivers for the VAG-COM cable as outlined in earlier post. Logger screen still came up. As soon as I plugged the cable into the PI, the logger will not open up and I am getting the same error as above.

Quote:
520764 ERROR [main] - Error loading external datasource: com.romraider.logger.external.phidget.interfacekit.plugin.IntfKitDataSource, specified in: /home/pi/RomRaider/./plugins/phidget_ik.plugin
java.lang.ExceptionInInitializerError: /home/pi/RomRaider/lib/linux/libphidget21.so: /home/pi/RomRaider/lib/linux/libphidget21.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
Could not locate the Phidget C library (libphidget21.so).
Make sure it is installed, and add it's path to LD_LIBRARY_PATH.



Not sure if this is important or not..

Quote:
520850 INFO [main] - Plugin loaded: ECOTRONS Accurate Lambda Meter v0.01
Java HotSpot(TM) Client VM warning: You have loaded library /home/pi/RomRaider/lib/linux/librxtxSerial.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
java.lang.UnsatisfiedLinkError: /home/pi/RomRaider/lib/linux/librxtxSerial.so: /home/pi/RomRaider/lib/linux/librxtxSerial.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform) thrown while loading gnu.io.RXTXCommDriver
Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: /home/pi/RomRaider/lib/linux/librxtxSerial.so: /home/pi/RomRaider/lib/linux/librxtxSerial.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at com.romraider.io.serial.port.SerialPortDiscovererImpl.listPorts(SerialPortDiscovererImpl.java:33)
at com.romraider.io.serial.port.SerialPortRefresher.listSerialPorts(SerialPortRefresher.java:78)
at com.romraider.io.serial.port.SerialPortRefresher.refreshPortList(SerialPortRefresher.java:71)
at com.romraider.io.serial.port.SerialPortRefresher.run(SerialPortRefresher.java:48)
at java.lang.Thread.run(Thread.java:745)
525913 WARN [main] - Timeout while waiting for serial port refresher - continuing anyway...
525938 INFO [Thread-2] - Linux Openport 2.0 library not found in: /usr/local/lib/j2534.so, trying serial connection...
525956 ERROR [Thread-2] - Error occurred
java.lang.NullPointerException



Did I do something wrong when shuffling those drivers around to get the VAG-COM working?


Thanks.


EDIT: Also, I am not sure how to start it with the script you mentioned above.

I tried this found earlier in this thread

Quote:
java -Djava.library.path=lib/linux -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Dsun.java2d.d3d=false -XX:-UseParallelGC -XX:CompileThreshold=10000 -jar RomRaider.jar -logger



What am I missing?


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Thu Jun 27, 2019 9:53 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
It looks like for both the Phidget and the RXTXCOMM libraries, you need to replace them with PI (ARM) version rather than use the provided Intel versions.
All the .so libraries in: /home/pi/RomRaider/lib/linux/ need to be of the ARM version to be functional on the PI. Most if them are used by the RR Editor, but the libphidget21.so and librxtxSerial.so are needed by the Logger.

If you don't need the Phidget functionality you can delete the plugins/phidget_ik.plugin file.


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Thu Jun 27, 2019 7:15 pm 
Offline
RomRaider Donator

Joined: Fri Oct 07, 2016 12:36 am
Posts: 77
Where can I find the librxtxSerial.so? I tried the ones earlier in this thread and it did not help. What is Phidget?

P.S. Does it matter if my VAG com cable is a CH341 and not the FT232RL?


P.S.S. I tried it again. This time I deleted the old file and then moved the new one in and it is popping up.. I am going to hook the cable up to the car to see if it actually reads something.

dschultz wrote:
It looks like for both the Phidget and the RXTXCOMM libraries, you need to replace them with PI (ARM) version rather than use the provided Intel versions.
All the .so libraries in: /home/pi/RomRaider/lib/linux/ need to be of the ARM version to be functional on the PI. Most if them are used by the RR Editor, but the libphidget21.so and librxtxSerial.so are needed by the Logger.

If you don't need the Phidget functionality you can delete the plugins/phidget_ik.plugin file.


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Wed Jan 26, 2022 4:35 pm 
Offline
Newbie

Joined: Wed Jan 26, 2022 3:58 pm
Posts: 3
Hate to revive an old thread but I am trying to get RomRaider running on an RPi 3 b. I have it installed and logger opens ok but struggling with the OBD2 cable and drivers. I have an ebay Ross-Tech HEX-USB that I purchased years ago to use with VCDS, not sure what FTDI chip but I see vendor 0403 and product fa24 when plugging it in

I tried copying the the files listed earlier in the thread but still don't see any selectable com port in the logger and looking at dmesg output and USB devices I don't see the cable as a USBtty.

Any help appreciated!

Cheers.


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Wed Jan 26, 2022 8:04 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
What's the relevant dmesg section when the device is detected?


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Sun Jan 01, 2023 12:33 pm 
Offline
Newbie

Joined: Wed Jan 26, 2022 3:58 pm
Posts: 3
dschultz wrote:
What's the relevant dmesg section when the device is detected?


Sorry, life got in the way, a year later I am having a look again :D


[ 69.064622] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[ 69.578568] usb 1-1.2: New USB device found, idVendor=0403, idProduct=fa24, bcdDevice= 6.00
[ 69.578592] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 69.578606] usb 1-1.2: Product: Ross-Tech HEX-USB
[ 69.578619] usb 1-1.2: Manufacturer: Ross-Tech
[ 69.578632] usb 1-1.2: SerialNumber: RT000001

Edit:

Done some more Googling and testing and tried plugging the cable into Pi running Ubuntu and get same thing, it connects but is does not come up as a USBtty. Does this mean the OS is not detecting it properly and loading the drivers and making it available for use? The cable is marked VAG12.12 perhaps I need a different one?

Thanks.


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Wed Jan 04, 2023 10:48 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
You might have to fiddle with the /etc/udev/rules.d/ rules. You need to figure out if a builtin driver is taking over the device. If so, set the rules to stop that. You need the cable to show up as a serial device so you can connect with it.


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Sat Jan 07, 2023 5:02 pm 
Offline
Newbie

Joined: Wed Jan 26, 2022 3:58 pm
Posts: 3
dschultz wrote:
You might have to fiddle with the /etc/udev/rules.d/ rules. You need to figure out if a builtin driver is taking over the device. If so, set the rules to stop that. You need the cable to show up as a serial device so you can connect with it.


Thanks for getting back to me. I ended up buying a different OBD cable that was advertised as having proper FTDI RS232 chip and managed to connect it today and got it working with the car and logging so looks like cable I had before was rubbish, probably a cheapo chip inside.


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Sat Jan 07, 2023 5:51 pm 
Offline
Experienced

Joined: Tue Jun 06, 2017 2:11 pm
Posts: 206
As in your log shows, it appears to be Ross-Tech cable with FTDI chip inside, to use with VCDS. So it might not show as ttyUSB device without modifying some settings or FTDI chip eeprom...


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Fri Jan 10, 2025 9:50 am 
Offline
Newbie

Joined: Mon Dec 30, 2024 2:41 pm
Posts: 1
Anyone running on raspberry pi 4?

Trying to run it, the logger opens up but the following error is listed:

10:43:08,617 ERROR [Serial Port Refresher] - Could not load jSerialComm library!

In consequence, no COM ports listed in gui then I can't connect to ECU.


Top
 Profile  
 
 Post subject: Re: Romraider on Raspberry PI
PostPosted: Sun Apr 20, 2025 4:11 am 
Offline
Newbie

Joined: Mon Oct 23, 2023 5:54 am
Posts: 24
The version of jSerialComm that RR uses has an issue with the Pi 4. RomRaider just needs to be recompiled with jSerialComm v2.11 and it'll work. Also, consider switching from wayland to x11, via raspi-config, if you have any window resizing issues. If you have a tactrix cable, dschultzca also has a driver: https://github.com/dschultzca/j2534, and its libusb-1.0.0-dev not libusb-1.0-devel


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 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