CAN broadcasting for dash loggers

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

CAN broadcasting for dash loggers

Post by jsmcortina »

After some very handy pointers and discussion with Peter Florance, I believe I now understand what is needed to make Megasquirt send out standard CAN data that many high-end dash loggers can be made to understand (with the correct template.)

I have developed the needed sub-system to transmit this data and written a document on how to use the channels.
Screenshot-CAN Realtime Data Broadcasting-1.png
The next step is for some users with suitable dash/loggers to try it out. If you want to try, please PM me an email address - we aren't ready to post the code just yet.

Looking forwards, it is hoped that this code will be included in 1.3.1 - as the release of 1.3.0 is imminent, it would be disruptive to apply it there. Pending successful testing, I believe that the feature can be added to MS2 also.

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".
Reverant
Super MS/Extra'er
Posts: 1234
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: CAN broadcasting for dash loggers

Post by Reverant »

Emailed.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
bcrx7
Helpful MS/Extra'er
Posts: 110
Joined: Sun May 02, 2004 5:37 pm
Location: Vancouver, BC

Re: CAN broadcasting for dash loggers

Post by bcrx7 »

PM Sent!
1984 Mazda RX-7 GTM Class (BP Engine + BW-EFR 8374 Turbo Full COP/Sequential on MS3+MS3x)
1986 Toyota 4Runner (22RE running on MS2-Extra 3.2.1)
ashford
Super MS/Extra'er
Posts: 1605
Joined: Sun Apr 27, 2008 4:29 pm

Re: CAN broadcasting for dash loggers

Post by ashford »

would this be suitable for oem dashes? i was just researching on how to make a stock ford dash work
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN broadcasting for dash loggers

Post by jsmcortina »

ashford wrote:would this be suitable for oem dashes? i was just researching on how to make a stock ford dash work
No, for stock dashes you will need to find out exactly what identifier they are listening out for and what the data format looks like, then we need to add that to the code - see the existing "CAN broadcasting" page.

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".
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: CAN broadcasting for dash loggers

Post by Peter Florance »

We did some chatting and testing today (I have cheap CANBus analyzer) and this feature appears to work well within the brief testing we did.

There seems to be a bug leftover from Can Broadcasting (that drives gauges) that sends a 0 length packet with ID 0x00. I'm guessing we never sniffed the packets again after that feature started working in late 2012. We've been driving a BMW cluster with it since then.

This is really exciting for us as it opens up a wide range of logger and dash loggers for MegaSquirt use.
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
prof315
Super MS/Extra'er
Posts: 3788
Joined: Sun Jan 18, 2009 3:13 am
Location: Melbourne, FL

Re: CAN broadcasting for dash loggers

Post by prof315 »

pm'd
Linfert Performance/321 Motorsports
SCCA 2019 SM National Champion Crew Chief
SCCA 2023 FP National Champion Tuner/electrical engineer
100s of MS systems built installed and tuned
Support the developers!
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN broadcasting for dash loggers

Post by jsmcortina »

From the other thread it seems that AiM dashes _presently_ use a hardcoded format that only collects a sub-set of Megasquirt information. They have implemented the non-standard "Megasquirt-CAN" protocol to fetch the data. This new system adds a standard-CAN method (like everyone else uses) so ought to make it easier for any dash/logger company to add support.

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".
Matt Cramer
Super MS/Extra'er
Posts: 17507
Joined: Thu Apr 16, 2009 8:08 pm

Re: CAN broadcasting for dash loggers

Post by Matt Cramer »

Very interesting!
Matt Cramer -1966 Dodge Dart slant six running on MS3X
JoseMiguel
Master MS/Extra'er
Posts: 652
Joined: Thu Dec 09, 2010 3:48 pm

Re: CAN broadcasting for dash loggers

Post by JoseMiguel »

Very interesting, looking forward to this
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN broadcasting for dash loggers

Post by jsmcortina »

Planned protocol sheet attached for info.
EDIT: Removed - updated version posted later.

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".
nuvolarossa
Experienced MS/Extra'er
Posts: 301
Joined: Tue Jul 27, 2010 6:15 am

Re: CAN broadcasting for dash loggers

Post by nuvolarossa »

these CAN news weren't expected and are VERY interesting, both broadcasting and receiving.
Robert
MS3x 1.4.1 | TS 3.0.28
prof315
Super MS/Extra'er
Posts: 3788
Joined: Sun Jan 18, 2009 3:13 am
Location: Melbourne, FL

Re: CAN broadcasting for dash loggers

Post by prof315 »

jsmcortina wrote:From the other thread it seems that AiM dashes _presently_ use a hardcoded format that only collects a sub-set of Megasquirt information. They have implemented the non-standard "Megasquirt-CAN" protocol to fetch the data. This new system adds a standard-CAN method (like everyone else uses) so ought to make it easier for any dash/logger company to add support.

James
The AiM dash/loggers are indeed currently limited to collecting a hardcoded data sub-set :( but on the bright side they are extremely simple to set up. Other than the physical wiring connection all of the set up is done with AiM's race studio2 software and takes about 5 minutes to load and test. Also with this new broadcast protocol it may be possible to trick it simply by selecting a different ECU that has a different data set
Linfert Performance/321 Motorsports
SCCA 2019 SM National Champion Crew Chief
SCCA 2023 FP National Champion Tuner/electrical engineer
100s of MS systems built installed and tuned
Support the developers!
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: CAN broadcasting for dash loggers

Post by Peter Florance »

prof315 wrote:
jsmcortina wrote:From the other thread it seems that AiM dashes _presently_ use a hardcoded format that only collects a sub-set of Megasquirt information. They have implemented the non-standard "Megasquirt-CAN" protocol to fetch the data. This new system adds a standard-CAN method (like everyone else uses) so ought to make it easier for any dash/logger company to add support.

James
The AiM dash/loggers are indeed currently limited to collecting a hardcoded data sub-set :( but on the bright side they are extremely simple to set up. Other than the physical wiring connection all of the set up is done with AiM's race studio2 software and takes about 5 minutes to load and test. Also with this new broadcast protocol it may be possible to trick it simply by selecting a different ECU that has a different data set
I have complicated relationship (70% love/30% hate) with MoTeC products, but when it comes to CAN support, I have to say they have the right idea. Especially in Dash/Loggers.

I love that I can capture anything on the CANBus in the MoTeC dash, do some math if I want, and resend it. I'm not sure anyone else's dash will work quite like that. But it would be nice if they would...
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
bcrx7
Helpful MS/Extra'er
Posts: 110
Joined: Sun May 02, 2004 5:37 pm
Location: Vancouver, BC

Re: CAN broadcasting for dash loggers

Post by bcrx7 »

Waiting on a generic Racepak CAN adapter to show up in mail so I can test the code James sent on my IQ3! Excited!
1984 Mazda RX-7 GTM Class (BP Engine + BW-EFR 8374 Turbo Full COP/Sequential on MS3+MS3x)
1986 Toyota 4Runner (22RE running on MS2-Extra 3.2.1)
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: CAN broadcasting for dash loggers

Post by Peter Florance »

bcrx7 wrote:Waiting on a generic Racepak CAN adapter to show up in mail so I can test the code James sent on my IQ3! Excited!
How is the Racepak logger?
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
krisr
Master MS/Extra'er
Posts: 799
Joined: Wed Aug 17, 2005 1:17 am
Location: Sydney, Australia

Re: CAN broadcasting for dash loggers

Post by krisr »

bcrx7 wrote:Waiting on a generic Racepak CAN adapter to show up in mail so I can test the code James sent on my IQ3! Excited!
Waiting on the results of this due to the lack of flexibility of the AIM MXL.
Sydney, Australia
1971 Holden Monaro HQ
MS3X Sequentially fuelled 400 Pontiac
bcrx7
Helpful MS/Extra'er
Posts: 110
Joined: Sun May 02, 2004 5:37 pm
Location: Vancouver, BC

Re: CAN broadcasting for dash loggers

Post by bcrx7 »

Well so far, so good. It hasn't left the shop but I have played around with it with the car running and it does a pretty decent job. The dash itself is really capable. The software is alright, I wish it was a bit more user friendly. The fact that you can just have quite a few universal modules with all kind of sensors definitely is a plus. And it has built in GPS (they all do these day, right?)
1984 Mazda RX-7 GTM Class (BP Engine + BW-EFR 8374 Turbo Full COP/Sequential on MS3+MS3x)
1986 Toyota 4Runner (22RE running on MS2-Extra 3.2.1)
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: CAN broadcasting for dash loggers

Post by Peter Florance »

bcrx7 wrote:Well so far, so good. It hasn't left the shop but I have played around with it with the car running and it does a pretty decent job. The dash itself is really capable. The software is alright, I wish it was a bit more user friendly. The fact that you can just have quite a few universal modules with all kind of sensors definitely is a plus. And it has built in GPS (they all do these day, right?)
Thanks. I'll be curious how the analysis software is.
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN broadcasting for dash loggers

Post by jsmcortina »

krisr wrote:
bcrx7 wrote:Waiting on a generic Racepak CAN adapter to show up in mail so I can test the code James sent on my IQ3! Excited!
Waiting on the results of this due to the lack of flexibility of the AIM MXL.
One forum user has been in touch with AiM and it sounded hopeful that they would be able to use this new broadcasting once it is finalised.

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".
Post Reply