Ubuntu 0.975 - Hangs at Initializing Serial Drivers

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
suberimakuri
Master MS/Extra'er
Posts: 632
Joined: Sun May 02, 2004 2:16 pm
Location: Auckland, NZ
Contact:

Ubuntu 0.975 - Hangs at Initializing Serial Drivers

Post by suberimakuri »

Hi there,

TS looks great and although I had no trouble getting it to work on Windows.. seem to be stuck with my Linux laptop....
Its a newish Core 2 Duo Dell 1420, and so I'm using a USB->Serial adaptor.

As per another post I just apt-get installed "librxtx-java". Alas, no luck.
Also tried running straight from the JAR file. Alas no luck.

doing a cat of the TunerStudioLogFile.txt shows:

Code: Select all

TunerStudio 0.975 started on Mon Sep 15 12:26:34 JST 2008
JRE 1.6.0_07, Linux 2.6.27-3-generic, amd64
java.library.path=lib
TunerStudioMS.jar
Look:Metal, ClassName:'javax.swing.plaf.metal.MetalLookAndFeel'
Look:CDE/Motif, ClassName:'com.sun.java.swing.plaf.motif.MotifLookAndFeel'
Look:GTK+, ClassName:'com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
The splash screen hangs at "Initializing Serial Drivers".
Doesn't seem to make any difference if I run as root or normal user. Log is the same too.

lsusb:

Code: Select all

Bus 004 Device 003: ID 056e:5004 Elecom Co., Ltd UC-SGT
dmesg:

Code: Select all

[14896.580083] usb 4-2: new full speed USB device using uhci_hcd and address 3
[14896.736070] usb 4-2: configuration #1 chosen from 1 choice
[14896.739402] pl2303 4-2:1.0: pl2303 converter detected
[14896.755352] usb 4-2: pl2303 converter now attached to ttyUSB0
If there is anything else that would help, please let me know!

Cheers,
Karl
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 0.975 - Hangs at Initializing Serial Drivers

Post by LT401Vette »

The way I have it packaged, you should need to install anything else on linux, it is fully self contained other than the JRE.

There are 2 possible problems.
1st try this: Under the TunerStudio install dir, there is a lib dir. That is where the serial driver is.
The Linux Dirver is: librxtxSerial.so
There is also a subdir to lib called "x86_64-unknown-linux-gnu"
Try copying the librxtxSerial.so to the lib dir.
Start TunerStudio again.

If that doesn't do it, put the old lib back.

Another possibility, I have shut off port scanning on Windows, but not on linux. Maybe? this is causing a problem there too?
If so, you can disable port scans by editing the sh script to use this startup command:
java -cp .:./plugins/:lib:./lib/*.jar -Djava.library.path=lib -Dgnu.io.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1 -jar TunerStudioMS.jar


Just make sure the port you want to use is in the list:
-Dgnu.io.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1

I will get all this cleaned up for Linux!
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
suberimakuri
Master MS/Extra'er
Posts: 632
Joined: Sun May 02, 2004 2:16 pm
Location: Auckland, NZ
Contact:

Re: Ubuntu 0.975 - Hangs at Initializing Serial Drivers

Post by suberimakuri »

cool, ok changing the module did the trick!

Thanks for the quick reply... doing up a configuration now. cheers!
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 0.975 - Hangs at Initializing Serial Drivers

Post by LT401Vette »

Thanks for the confirmation! I will make the app swap it out by itself.

I didn't think it was the port scan hang problem, I haven't seen that happen on non-windows.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Post Reply