Datalogging fails with missing CAN device

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
jamies
Master MS/Extra'er
Posts: 525
Joined: Tue Apr 07, 2009 12:22 am

Datalogging fails with missing CAN device

Post by jamies »

Phil,

I came across a possible issue, I have a vehicle with MS2 Extra and also a GPIO running megashift for the trans.
Before i added the megashift, everything was fine, I could datalog fine etc.
I installed the GPIO, enabled CAN commands and could access it through the MS2, configure it and datalog fine.

Then due to a firmware bug in megashift, I removed the GPIO from the vehicle.
TS would show me an error that the CAN device is not present and has been disabled/offline in order to continue talking with the MS2.
I could talk to the MS2, make changes etc no probs but when datalogging without the CAN unit present, datalogs would fail, and i would only get a 1-2kb log file.

When i removed the CAN device from project properties, I could then datalog the MS2 fine, so looks like datalogging is halting/failing when a missing/offline CAN device is enabled??
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Datalogging fails with missing CAN device

Post by LT401Vette »

Quite likely. It does go into the limp mode to talk to it when the CAN device isn't there, but as the config is still loaded, the logger is probably still waiting for the read from the CAN device to write the record.
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
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Datalogging fails with missing CAN device

Post by racingmini_mtl »

But why would you keep a CAN device in the project if it's no longer connected? The least you could do is disable the runtime data. And I don't see that as a TS failure but rather as a misuse of the features.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
jamies
Master MS/Extra'er
Posts: 525
Joined: Tue Apr 07, 2009 12:22 am

Re: Datalogging fails with missing CAN device

Post by jamies »

racingmini_mtl wrote:But why would you keep a CAN device in the project if it's no longer connected? The least you could do is disable the runtime data. And I don't see that as a TS failure but rather as a misuse of the features.

Jean
Thats a fair comment,

the GPIO was only removed temporarily while we work with Lance on an issue in the firmware.
I have now disabled the can device until i reinstall it, however this also would raise the question, what would happen to datalogs if the GPIO device failed / lost comms during use?
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Datalogging fails with missing CAN device

Post by racingmini_mtl »

jamies wrote:
racingmini_mtl wrote:But why would you keep a CAN device in the project if it's no longer connected? The least you could do is disable the runtime data. And I don't see that as a TS failure but rather as a misuse of the features.

Jean
Thats a fair comment,

the GPIO was only removed temporarily while we work with Lance on an issue in the firmware.
I have now disabled the can device until i reinstall it, however this also would raise the question, what would happen to datalogs if the GPIO device failed / lost comms during use?
That's a valid point. However, if you lose comm with a CAN device or if the device fails it usually means you are losing some functionality in your setup and the fact you no longer have a datalog may not be your main issue. If the CAN device is used only for monitoring non-critical data then losing the datalog on the ECU would be annoying.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
jamies
Master MS/Extra'er
Posts: 525
Joined: Tue Apr 07, 2009 12:22 am

Re: Datalogging fails with missing CAN device

Post by jamies »

just back to this topic,
seems tunerstudio still fails to datalog even when the can device is present and online.

attached is the logfile that is generated as you can see, theres no logged contents
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Datalogging fails with missing CAN device

Post by LT401Vette »

If the devices is online and present, there is something else going on. That is working fine.

I probably need to see your TunerStudioAppDebug.txt and perhaps your project.
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
jamies
Master MS/Extra'er
Posts: 525
Joined: Tue Apr 07, 2009 12:22 am

Re: Datalogging fails with missing CAN device

Post by jamies »

Ok no prob. Ill have the car back in a few weeks will post up that info then
mickeymarrows
Master MS/Extra'er
Posts: 415
Joined: Fri Sep 23, 2005 6:35 am
Location: Ropley, Hampshire, UK

Re: Datalogging fails with missing CAN device

Post by mickeymarrows »

I raised this same problem a month ago:

http://www.msextra.com/forums/viewtopic ... 22&t=54635

My TunerStudioAppDebug is in there..
'82 Golf GTI ABF 16v MS2 Extra sequential COP
'77 Scirocco G60 MS2 Extra sequential
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Datalogging fails with missing CAN device

Post by LT401Vette »

mickey, I'm sorry I never saw the end of that. It seems I didn't get notified of the updates after the split and it fell to the way side.

Was yours not logging when the mshift was online or just when it was not?
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
mickeymarrows
Master MS/Extra'er
Posts: 415
Joined: Fri Sep 23, 2005 6:35 am
Location: Ropley, Hampshire, UK

Re: Datalogging fails with missing CAN device

Post by mickeymarrows »

:mrgreen:
LT401Vette wrote:mickey, I'm sorry I never saw the end of that. It seems I didn't get notified of the updates after the split and it fell to the way side.

Was yours not logging when the mshift was online or just when it was not?
Don't worry Phil I found a solution, I think. I removed the CAN device completely in Project Properties and then logging worked fine. At the time my msgpio kept getting corrupted so Tunerstudio threw up the errors like the OP mentioned.
I'll be honest, I've haven't tried logging megasquirt since I fixed the msgpio though..
'82 Golf GTI ABF 16v MS2 Extra sequential COP
'77 Scirocco G60 MS2 Extra sequential
Post Reply