Tunerstudio won't connect to port

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
johntramp
Helpful MS/Extra'er
Posts: 111
Joined: Tue Feb 13, 2007 11:11 pm

Tunerstudio won't connect to port

Post by johntramp »

I am having troubles connecting to MS in Tunerstudio (under Linux). It will fail to connect to /dev/tts/USB0 even though I have the correct permissions.
I am able to connect fine in Megatunix and I have tried Tunerstudio on someone else's laptop and it connected to the same USB adapter with no problems.
I have tried removing all TunerStudio related files and starting from scratch, only to get the same problem.
Currently I am using TunerStudio_v0.987.5.tar.gz

Any ideas what I could be doing wrong?

Thanks
-John
AE86 + 4age + MS2
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Tunerstudio won't connect to port

Post by LT401Vette »

Check the TunerStudioLogFile.txt in the app install dir.

My first guess would be lock file errors. Not all linux serial apps use lock files, but TunerStudio currently does, so you need to be in what ever group allows access. In most debian distros like ubuntu that is uucp, but some others like Fedora have other lock file groups, I believe it is the group lock
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
johntramp
Helpful MS/Extra'er
Posts: 111
Joined: Tue Feb 13, 2007 11:11 pm

Re: Tunerstudio won't connect to port

Post by johntramp »

Hi. Thanks for the response.
I had added myself to the uucp group and the permissions of /dev/tts/USB0 are correct.
Here is the latest entry in the log file. Nothing stands out to me as to why it's not connecting there.

Cheers.

Code: Select all

TunerStudio 0.987.5 started on Tue Mar 10 12:55:31 NZDT 2009
JRE 1.6.0_0, Linux 2.6.28-ARCH, i386
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'
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
3/10/09 12:55:32 PM :Info: Initialized comm driver: 37ms.
3/10/09 12:55:33 PM :Warning: Unable toset Main cluster for title:
No check, last update check=Tue Mar 10 12:52:20 NZDT 2009
3/10/09 12:55:53 PM :Debug: Opening project: /home/john/TunerStudioProjects/20v4age
3/10/09 12:55:54 PM :Debug: MS/Extra format hr_10 **********
3/10/09 12:55:54 PM :Info: (Unimportant) Missing page for:
        BarroCor,     "&Barometric Correction", { baroCorr1 }
3/10/09 12:55:54 PM :Debug: Loaded Config in : 298ms.
3/10/09 12:55:54 PM :Info: Error going online, perhaps we are not attached to a controller.
3/10/09 12:55:54 PM :Debug: Adding Configuration: 20v4age
3/10/09 12:55:54 PM :Debug: !!! Loaded config in 804
3/10/09 12:55:54 PM :Debug: !!! Activated Project 1011
3/10/09 12:55:55 PM :Debug: !!! Opened Dash 1963
3/10/09 12:56:02 PM :Debug: 201ms. - Reset Port
3/10/09 12:56:02 PM :Debug: Could not open port
3/10/09 12:56:59 PM :Debug: 200ms. - Reset Port
3/10/09 12:56:59 PM :Debug: Could not open port
3/10/09 12:57:09 PM :Debug: 200ms. - Reset Port
3/10/09 12:57:09 PM :Debug: Could not open port
3/10/09 12:57:12 PM :Debug: 200ms. - Reset Port
3/10/09 12:57:12 PM :Debug: Could not open port
3/10/09 12:57:13 PM :Debug: 200ms. - Reset Port
3/10/09 12:57:13 PM :Debug: Could not open port
3/10/09 12:57:14 PM :Debug: 200ms. - Reset Port
3/10/09 12:57:14 PM :Debug: Could not open port
3/10/09 12:57:17 PM :Debug: 201ms. - Reset Port
3/10/09 12:57:17 PM :Debug: Could not open port
3/10/09 12:57:20 PM :Debug: 201ms. - Reset Port
3/10/09 12:57:20 PM :Debug: Could not open port
3/10/09 12:57:23 PM :Debug: 201ms. - Reset Port
3/10/09 12:57:23 PM :Debug: Could not open port
3/10/09 12:57:34 PM :Debug: Time to paint:0ms.
3/10/09 12:57:34 PM :Debug: Time to paint:0ms.
3/10/09 12:57:43 PM :Debug: Time to paint:0ms.
3/10/09 12:57:44 PM :Debug: 200ms. - Reset Port
3/10/09 12:57:44 PM :Debug: Could not open port
TunerStudio shutdown: Tue Mar 10 13:16:02 NZDT 2009
##############################################################
AE86 + 4age + MS2
dave
Helpful MS/Extra'er
Posts: 88
Joined: Mon Aug 11, 2008 7:53 pm
Location: Cleveland, OH

Re: Tunerstudio won't connect to port

Post by dave »

On a similar note, also w/ USB adaptor on a laptop, if i load TS before the car is plugged in, then uncheck "offline", it constantly beeps and logs resets. If I restart the car w/ it connected then it logs perfectly after that.
I have 2 logs like this if you want to see them.
This problem seems new, back in fall before I put the car away for winter it didn't do this. I think that was 2 versions ago?
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Tunerstudio won't connect to port

Post by LT401Vette »

The latest version has new comm optimizations that have been causing more issues, especially on Vista. I am about to put a new release out in the next few days that should fix that. I think that will fix Dave's troubles.

I'm still not sure on john... There are no error's in the log. It just looks like it can not open the port.
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
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Tunerstudio won't connect to port

Post by LT401Vette »

What distro are you running?
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
johntramp
Helpful MS/Extra'er
Posts: 111
Joined: Tue Feb 13, 2007 11:11 pm

Re: Tunerstudio won't connect to port

Post by johntramp »

Archlinux with all packages up to date.

Code: Select all

$ uname -a
Linux 2.6.28-ARCH #1 SMP PREEMPT Sun Mar 8 10:18:28 UTC 2009 i686 Intel(R) Celeron(R) M processor 1.30GHz GenuineIntel GNU/Linux
AE86 + 4age + MS2
johntramp
Helpful MS/Extra'er
Posts: 111
Joined: Tue Feb 13, 2007 11:11 pm

Re: Tunerstudio won't connect to port

Post by johntramp »

I have it gong now. I think it was fixed by changing the permissions of the /var/lock/ directory.
AE86 + 4age + MS2
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Tunerstudio won't connect to port

Post by LT401Vette »

Good.
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