microsquirt v3 serial connection drops every 12seconds

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

electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

microsquirt v3 serial connection drops every 12seconds

Post by electronic »

The older version of TS that I had been running for the past few months was great, but I decided to upgrade firmware on microsquirt from 3.3.1 to 3.3.2 and low and behold the older version of TS wouldn't work, so I updated to the latest version of TS and it freezes up ever so slightly and goes off line once in a while, what's the deal with that? Nothing was changed except firmware was updated and newer version of TS uploaded.
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: Updated TS to 2.6 and now it's acting funny

Post by electronic »

Tried logging and it's freezing up as well, when I replay the data, it stops every few seconds.
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Updated TS to 2.6 and now it's acting funny

Post by LT401Vette »

The newer firmware uses the new protocol. Some Prolific based cables do not work well with MS2 on the new protocol due to a bug in the Prolific chipset. It wasn't noticable with the old protocol, but does potentially risk causing corruption as the old protocol doesn't have CRC checking and error prevention.
If you switch to the JSSC driver there is a work around in place to work with these cables, but it is still advised to get an FTDI based cable or Prolific based on the HX Rev D chipset. The bug seems to be corrected in the HX Rev D chipset.
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
jsmcortina
Site Admin
Posts: 39617
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Updated TS to 2.6 and now it's acting funny

Post by jsmcortina »

The OP mentioned upgrading from 3.3.1 though - that already uses the newserial protocol?

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Updated TS to 2.6 and now it's acting funny

Post by LT401Vette »

The Prolific bug is tripped by specific block sizes. So it can appear with just a change in the outpc read size.
The work around in the JSSC driver deals with this.
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
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: Updated TS to 2.6 and now it's acting funny

Post by electronic »

So is there a difference between 3.3.1 and 3.3.2 firmware?
jsmcortina
Site Admin
Posts: 39617
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Updated TS to 2.6 and now it's acting funny

Post by jsmcortina »

electronic wrote:So is there a difference between 3.3.1 and 3.3.2 firmware?
There was one small serial communications change, but it shouldn't cause any issue.
Other changes yes, plenty, see the ChangeLog.

Perhaps it would be worth reverting to the previous firmware and existing tune as a test. Keep the same new TunerStudio. That way you can isolate whether it is a firmware or TunerStudio change that is causing the changed behaviour.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: Updated TS to 2.6 and now it's acting funny

Post by electronic »

I will try that and see what happens, I do like ability to switch to a different ignition and fuel map with a flex fuel output, but datalogging and getting a good connection is a lot more important to me at this moment.
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: Updated TS to 2.6 and now it's acting funny

Post by electronic »

Went back to 3.3.1 firmware and it's still doing the same thing............everything is fine for 12 seconds then everything freezes up and it goes off line for a second, then comes back and does the same thing every 12 seconds. Didn't have problems uploading the firmware, and that takes longer than 12 seconds.
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Updated TS to 2.6 and now it's acting funny

Post by LT401Vette »

Have you tried the JSSC driver yet?
I don't know this is your problem for sure yet, but sounds very much like it. So that seems like the easy thing to try before making you try different firmwares, TS versions, capturing Comm Debug logs ect. I'm trying to take the simple path to the solution for you.
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
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: Updated TS to 2.6 and now it's acting funny

Post by electronic »

I haven't tried anything else yet, but it seems that the problem lies in the serial communication area. I don't think it's firmware related, I think it's hardware related.
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

microsquirt v3 serial connection drops every 12seconds

Post by electronic »

not sure what's going on, but everytime I connect ecu to the computer via cable it connects for 12 seconds and then disconnects for 2-3 seconds and then goes back online and does the same thing over and over again. Can't datalog anymore because of it. But i didn't have a problem uploading 3.3.2 firmware and then uploading back to 3.3.1 firmware, because I thought that's why it was doing it. Any help?

Thanks.
grom_e30
Super MS/Extra'er
Posts: 4460
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: microsquirt v3 serial connection drops every 12seconds

Post by grom_e30 »

how are you connecting it to the computer with a real serial port of with a usb to serial adapter?
1990 bmw 320i daily driver with m20b25 ms3 sequential fuel, 380cc injectors, d585 coil near plug, home made cam sync, launch control, fan control, vss, homebrew egt logging what's next????
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: microsquirt v3 serial connection drops every 12seconds

Post by 24c »

Hi,
Is the computer/laptop hooked up to the mains or on battery (grounding)?
Have you got a long USB cable going near the engine (interference)?
Have you got 12V maintained during this time? Bad connection? Nothing getting warm?
There was an issue with Prolific USB Serial drivers, and I think it was TunerStudio update doing the right things and a bug in the Prolific driver, but that was sometime ago.

Mike
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: microsquirt v3 serial connection drops every 12seconds

Post by electronic »

connecting ecu to the computer with a usb/serial adapter that I have been using for the past year, never had a problem till now. Don't have problems uploading new firmware with the same usb to serial adapter, but when I try to modify a tune I have to be quick about it, or it won't make any changes since it disconnects itself. BTW ecu works fine, no problems.
grom_e30
Super MS/Extra'er
Posts: 4460
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: microsquirt v3 serial connection drops every 12seconds

Post by grom_e30 »

i had the same problem using one of the prolific based cables worked for a yeah happily then started using it again and was next to useless wondering if your cable uses the same chip, you should be able to find out what chip its using by looking at the drivers. Ftdi chip devices are the ones to go for same brand of chip that's used on the ms3 card for usb.
1990 bmw 320i daily driver with m20b25 ms3 sequential fuel, 380cc injectors, d585 coil near plug, home made cam sync, launch control, fan control, vss, homebrew egt logging what's next????
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: microsquirt v3 serial connection drops every 12seconds

Post by electronic »

Cable is fine, I just tried another one that I had laying around, and it does exact same thing.
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: microsquirt v3 serial connection drops every 12seconds

Post by electronic »

I can start the engine and connect it the computer and it does the same thing, the engine runs normal, but the tuner studio keeps going off line every 12 seconds or so for few seconds and then comes back and goes off line in 12 seconds again, and so on and so forth.
electronic
Experienced MS/Extra'er
Posts: 173
Joined: Sun Sep 01, 2013 7:43 pm

Re: Updated TS to 2.6 and now it's acting funny

Post by electronic »

What's a JSSC driver?
grom_e30
Super MS/Extra'er
Posts: 4460
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: microsquirt v3 serial connection drops every 12seconds

Post by grom_e30 »

are they both prolific chip based cables?
1990 bmw 320i daily driver with m20b25 ms3 sequential fuel, 380cc injectors, d585 coil near plug, home made cam sync, launch control, fan control, vss, homebrew egt logging what's next????
Post Reply