TS on Mac OSX unstable - how to reinstall?

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

TheMonkey
Experienced MS/Extra'er
Posts: 199
Joined: Wed Mar 26, 2008 5:48 pm

TS on Mac OSX unstable - how to reinstall?

Post by TheMonkey »

OSX El Capitan on 2015 Macbook Pro ; very recent computer and OS

I just got a car back from a few years ago so I needed to reinstall TS with my old license.

TS 3.0.05 installed ; most recent version ?

Program opened right up on computer and prompted a new project which I agreed to search ports for my MS. It found my MS3 release 1.2.0 (dated 20121228)

I labeled my new and only project in TS. It worked fine for a day and then suddenly it wasn't recognizing when I power on the MS when plugged into USB. TS will take several minutes to shut down with that swirling rainbow thing (OSX equivalent of hourglass?).

I tried deleting TS by just the app icon from desktop to the trash. I reinstalled, but it automatically found my project files and license as if it was not even deleted.

A couple times when restart TS app, and turn on MS, it will open the project and show me dashboard, but it is slooow to open. At least I can make a change to the tune. But if I recycle the key, no dice... no connection. And TS will take several minutes to close.

I have searched, don't see any leads... Any suggestions?

Thx, Scott.
__________________________
MSIIIx V3.0 Big Poncho - Sequential fuel and ignition
Sequencer running an '80 635csi Euro M90 - Sequential fuel and ignition
LT401Vette
Super MS/Extra'er
Posts: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

All the settings and registration are contained in either the project or
[UserHome]/.efiAnalytics/

If some setting is causing an issue, what you really need to do to bring it back to a clean install is delete the file:
[UserHome]/.efiAnalytics/tsUser.properties

The registration info is saved to:
[UserHome]/.efiAnalytics/tsMS.reg

But I would appreciate a copy of it to maybe help see what might be up. What sort of unstable is it?
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
TheMonkey
Experienced MS/Extra'er
Posts: 199
Joined: Wed Mar 26, 2008 5:48 pm

Re: TS on Mac OSX unstable - how to reinstall?

Post by TheMonkey »

Hi Phil -

Thanks for looking out...

The unstable is that the program either will 1.5 to 2 minutes to see a connection after MS is powered on or else it won't connect at all. after shutting down TS and re-opening TS it will for sure connect to MS, but will be a long delay before it connects.

When shutting down TS, it can take up to 3 or 4 mins while the apple rainbow circle spins.

TS has not crashed. Just super slow to shut down, and slow to connect or won't connect at all. Re-open TS guarantees the next connection will work but will be slow.

I try a fresh install and save the properties in a archive folder. What would you like to see?

Thanks, Scott.
__________________________
MSIIIx V3.0 Big Poncho - Sequential fuel and ignition
Sequencer running an '80 635csi Euro M90 - Sequential fuel and ignition
LT401Vette
Super MS/Extra'er
Posts: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

[UserHome]/.efiAnalytics/tsUser.properties

and the TunerStudioAppDebug.txt
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
TheMonkey
Experienced MS/Extra'er
Posts: 199
Joined: Wed Mar 26, 2008 5:48 pm

Re: TS on Mac OSX unstable - how to reinstall?

Post by TheMonkey »

Phil, I sent your requested files to your Yahoo email that I had from several years ago. Let me know if you don't receive those. debug file was too big to post here, and the .properties file was not allowed to post.

I'm still using the app the way it is... just need to reboot TS when MS stops loading (slowly). Usually after 1-3 times opening MS. As I mentioned TS shuts down requires over 3 mins. Let me know if I can diagnose anything for you while the problem is repeatable. I might reinstall in the next couple days. I'm waiting to reinstall TS only because my brain works issues in series, not parallel lol. One thing at a time. TS problem is unstable, but I'm getting along right now and I really need TS to solve my now issues. Thx for help and support!
__________________________
MSIIIx V3.0 Big Poncho - Sequential fuel and ignition
Sequencer running an '80 635csi Euro M90 - Sequential fuel and ignition
LT401Vette
Super MS/Extra'er
Posts: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

I got your logs, from what I see in the logs it looks like there is a Thread lock on close.
I think I have reproduced that if I try to exit from the apple toolbar:
TunerStudio MS --> Quit TunerStudio MS

If I exit from the red circle on the frame title, or File --> Exit, then it seems to exit fine.
Is this true for you as well?

The Comms issue, I haven't been able to reproduce. I put the VCP drivers back in to use instead of D2XX and they seem be working fine and connecting after each power cycle.
Have you tried it under D2XX?
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
TheMonkey
Experienced MS/Extra'er
Posts: 199
Joined: Wed Mar 26, 2008 5:48 pm

Re: TS on Mac OSX unstable - how to reinstall?

Post by TheMonkey »

Thanks Phil. I'll take a look at the exit issue and see if red dot works better than drop down. Yes, I always use drop down (not sure why). I'm happy to use red dot if that works better.

I don't understand the question about D2XX... Would you be more clear and suggest what I can try ?

Thx for the support Phil.
__________________________
MSIIIx V3.0 Big Poncho - Sequential fuel and ignition
Sequencer running an '80 635csi Euro M90 - Sequential fuel and ignition
LT401Vette
Super MS/Extra'er
Posts: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

From your log it appeared you are using an FTDI USB to serial or talking to the MS3 port.
There are 2 ways that can work:
- Install FTDI Virtual Comm Port (VCP) drivers on the PC
- Use the D2XX drivers built into TunerStudio

On Windows you can use either, but on OS X, if you have the VCP drivers installed, they lock on to the port when you boot, so D2XX cannot be used.

I typically use D2XX, so to try reproducing your comms issue I installed the VCP drivers to see if the trouble was related to that. No dice..

I really need to get a new Mac Book. My current one is from 2009 and with the latest OS upgrades has gotten terribly slow.

BTW I should have that main menu close down corrected for the next release.
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
TheMonkey
Experienced MS/Extra'er
Posts: 199
Joined: Wed Mar 26, 2008 5:48 pm

Re: TS on Mac OSX unstable - how to reinstall?

Post by TheMonkey »

I'm not sure what drivers are being used. I just plugged in the cable from the MS3x into USB port on Macbook. Is there a way for me to know if i'm using VCP or D2xx? Maybe I can try switching them? How would I do that?
__________________________
MSIIIx V3.0 Big Poncho - Sequential fuel and ignition
Sequencer running an '80 635csi Euro M90 - Sequential fuel and ignition
LT401Vette
Super MS/Extra'er
Posts: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

It would be in communications settings under Connection Type.

The beta I put up on Friday addressed a couple OS X issues.
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
puff
MS/Extra Newbie
Posts: 5
Joined: Tue Sep 20, 2016 8:57 am

Re: TS on Mac OSX unstable - how to reinstall?

Post by puff »

Phil, could you please be more specific about those osx related issues?
I do recall that when closing through the 'exit' menu something goes wrong.
But I am trying to figure out the comms issue on another java application. Unfortunatelly, I do not remember when exactly I started to have issues with that one. Probably after upgrading to El Capitan. The thing is tuner studio works just fine with the same ecu, while that app gets disconnecting all the time. Other users on other platforms don't report any issues with that app. I ran out of any ideas.
puff
MS/Extra Newbie
Posts: 5
Joined: Tue Sep 20, 2016 8:57 am

Re: TS on Mac OSX unstable - how to reinstall?

Post by puff »

Will it work with Sierra?
LT401Vette
Super MS/Extra'er
Posts: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

puff wrote:Will it work with Sierra?
Users have reported it does, but full screen dashboards are blank.
I have my Mac updating right now to try to reproduce.
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: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

Confirmed... I tried a full screen dash on my MacBook with 10.11 and it worked fine.
Then I let it upgrade to 10.12, now full screen dashboards are black. Other than fullscreen TS seems to work fine on Sierra.
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
puff
MS/Extra Newbie
Posts: 5
Joined: Tue Sep 20, 2016 8:57 am

Re: TS on Mac OSX unstable - how to reinstall?

Post by puff »

That's probably good news - it might be worth updating the OS then... :)

Sorry for offtopic, but do you have any ideas why does the application written in java work well with the ECU in Yosemite and terminates communications in El Capitan? The same ECU works okay both in Yosemite and El Capitan with TS though.
Here's the log, which probably implies that the application receives some data from the port

Code: Select all

Sending [0, 5, 69, 108, 115, 32, 47, 79, 35, -89, 109]
Waiting for 2 byte(s): execute header
Waiting for 5 byte(s): execute body
Sending [0, 1, 79, 52, 97, -77, -116]
Waiting for 2 byte(s): output channels header
Waiting for 281 byte(s): output channels body
Sending [0, 1, 71, 58, -70, 59, -66]
Waiting for 2 byte(s): text header
Waiting for 5708 byte(s): text body
ConnectionWatchdog.reconnectTimer restarting
postMessage SerialManager: Restarting serial IO
postMessage SerialManager: Opening port: /dev/tty.usbmodem261
Opening /dev/tty.usbmodem261 @ 115200
PortHolder: Sleeping a bit
jssc.SerialPortException: Port name - /dev/tty.usbmodem261; Method name - readBytes(); Exception type - Port not opened.
	at jssc.SerialPort.checkPortOpened(SerialPort.java:878)
	at jssc.SerialPort.readBytes(SerialPort.java:694)
	at com.rusefi.io.serial.SerialPortReader.progressiveSleepRead(SerialPortReader.java:50)
	at com.rusefi.io.serial.SerialPortReader.access$000(SerialPortReader.java:15)
	at com.rusefi.io.serial.SerialPortReader$1.run(SerialPortReader.java:28)
	at java.lang.Thread.run(Thread.java:745)
0 bytes in input buffer
Is it somethin jssc-specific, or libusb, or what?
LT401Vette
Super MS/Extra'er
Posts: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

I don't know. I do not treat the comms any differently on El Capitan vs Yosemite
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
nolig2278
MS/Extra Newbie
Posts: 3
Joined: Fri Oct 07, 2016 11:08 pm

Re: TS on Mac OSX unstable - how to reinstall?

Post by nolig2278 »

How do I know what com port to type in for my Mac to see my microsquirt? DB9 to usb cable and all I see in com is bluetooth option.

Any advice is welcome as I am very anxious to get started on this project. All I see is bluetooth options but I have the usb serial cable.

Thanks
nolig2278
MS/Extra Newbie
Posts: 3
Joined: Fri Oct 07, 2016 11:08 pm

Re: TS on Mac OSX unstable - how to reinstall?

Post by nolig2278 »

I bought a better cable from best buy and now my mac and microsquirt communicate without any messing with drivers.
puff
MS/Extra Newbie
Posts: 5
Joined: Tue Sep 20, 2016 8:57 am

Re: TS on Mac OSX unstable - how to reinstall?

Post by puff »

Phil, please, one more question: you have jssc.jar and RXTXcomm.jar for comms. Which exactly library do you rely on? Is it jssc or RXTXcomm? Or, may be you use both? The first one - for windows, the second - for mac?
LT401Vette
Super MS/Extra'er
Posts: 12684
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TS on Mac OSX unstable - how to reinstall?

Post by LT401Vette »

TS originally used RXTX, in 2.6 RXTX was default, but it also had a JSSC option. In 3.0, the RXTX is turned off and the default is JSSC.
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