CAN questions (was: MS3 pre-1.4 alpha 8 released)

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: MS3 pre-1.4 alpha 8 released

Post by Alfagta »

jsmcortina wrote:Did the PDF document not explain it clearly enough?

James
It's a Little bit confusing because the structure of the Megasquirt Can Protocol is not Standard.
But i'm working on it to implement the Handshake....
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
jsmcortina
Site Admin
Posts: 39618
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 pre-1.4 alpha 8 released

Post by jsmcortina »

Alfagta wrote:
jsmcortina wrote:Did the PDF document not explain it clearly enough?

James
It's a Little bit confusing because the structure of the Megasquirt Can Protocol is not Standard.
Well, yes, that was the reason for writing the PDF.

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".
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: MS3 pre-1.4 alpha 8 released

Post by Alfagta »

jsmcortina wrote:
Alfagta wrote:
jsmcortina wrote:Did the PDF document not explain it clearly enough?

James
It's a Little bit confusing because the structure of the Megasquirt Can Protocol is not Standard.
Well, yes, that was the reason for writing the PDF.

James
It woul'd be helpful ift there were a few Examples of Communication packages...
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: MS3 pre-1.4 alpha 8 released

Post by Alfagta »

Hello James,

today i've tried CAN VSS.
How does megasquirt expect the CAN VSS data?
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
jsmcortina
Site Admin
Posts: 39618
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 pre-1.4 alpha 8 released

Post by jsmcortina »

Alfagta wrote:Hello James,

today i've tried CAN VSS.
How does megasquirt expect the CAN VSS data?
In what way? Units? Address?

Internally units of ms^-1 * 10 are used.
i.e. 23 units = 2.3 ms^-1

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".
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: CAN questions (was: MS3 pre-1.4 alpha 8 released)

Post by Alfagta »

I mein what Format the MS expect.

And is there a case where the MS pool all VSS data with 1 Frame?
Or will the MS only pool one VSS Data at a time?
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
jsmcortina
Site Admin
Posts: 39618
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN questions (was: MS3 pre-1.4 alpha 8 released)

Post by jsmcortina »

Presently there is one request message per VSS channel. I do have some future ideas to make this more efficient.

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".
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: CAN questions (was: MS3 pre-1.4 alpha 8 released)

Post by Alfagta »

Okay,

yes that would be easier.
The MS can poll all 4 with one request.
And when e.g. VSS3 and 4 or what ever isn't active the MS can override these data...
And with 16Bit it would be possible with 1 request.
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: MS3 pre-1.4 alpha 8 released

Post by Alfagta »

jsmcortina wrote:
Alfagta wrote:Hello James,

today i've tried CAN VSS.
How does megasquirt expect the CAN VSS data?
In what way? Units? Address?

Internally units of ms^-1 * 10 are used.
i.e. 23 units = 2.3 ms^-1

James
Are you sure James?
When i send 0x17 to the MS i read 83 KPH at the gauge.

And do you have any future idea for a timeout for CAN Poll?
Or any other surveillance for all the CAN receivings?
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
jsmcortina
Site Admin
Posts: 39618
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN questions (was: MS3 pre-1.4 alpha 8 released)

Post by jsmcortina »

Ah, you also need to set the scaling factor on the VSS 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".
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: CAN questions (was: MS3 pre-1.4 alpha 8 released)

Post by Alfagta »

jsmcortina wrote:Ah, you also need to set the scaling factor on the VSS page.

James
Okay, now with 100% scaling it Looks good.
1 Digit ^ 0.36 KPH...
Thanks again James
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
jsmcortina
Site Admin
Posts: 39618
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN questions (was: MS3 pre-1.4 alpha 8 released)

Post by jsmcortina »

I added a couple of CAN transmission examples to the protocol PDF.

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".
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: CAN questions (was: MS3 pre-1.4 alpha 8 released)

Post by Alfagta »

jsmcortina wrote:I added a couple of CAN transmission examples to the protocol PDF.

James
Hello James,

thanks for that this would new users help to learn more about the can communication.

I think there is a small fault in Point 4.2 outbound request my varblk = 6 is in the doc but i think it should be my varblk = 7...

Best Regards
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
Post Reply