Testing and development of Megasquirt 3
Moderators: jsmcortina , muythaibxr
Alfagta
Experienced MS/Extra'er
Posts: 239 Joined: Wed Aug 21, 2013 2:54 am
Post
by Alfagta » Wed Dec 10, 2014 5:11 am
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:
Post
by jsmcortina » Wed Dec 10, 2014 5:26 am
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
Alfagta
Experienced MS/Extra'er
Posts: 239 Joined: Wed Aug 21, 2013 2:54 am
Post
by Alfagta » Wed Dec 10, 2014 5:31 am
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
Post
by Alfagta » Sun Dec 14, 2014 6:20 am
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:
Post
by jsmcortina » Sun Dec 14, 2014 8:22 am
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
Alfagta
Experienced MS/Extra'er
Posts: 239 Joined: Wed Aug 21, 2013 2:54 am
Post
by Alfagta » Sun Dec 14, 2014 8:30 am
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:
Post
by jsmcortina » Sun Dec 14, 2014 8:44 am
Presently there is one request message per VSS channel. I do have some future ideas to make this more efficient.
James
Alfagta
Experienced MS/Extra'er
Posts: 239 Joined: Wed Aug 21, 2013 2:54 am
Post
by Alfagta » Sun Dec 14, 2014 8:56 am
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
Post
by Alfagta » Sun Dec 14, 2014 9:57 am
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:
Post
by jsmcortina » Sun Dec 14, 2014 10:05 am
Ah, you also need to set the scaling factor on the VSS page.
James
Alfagta
Experienced MS/Extra'er
Posts: 239 Joined: Wed Aug 21, 2013 2:54 am
Post
by Alfagta » Sun Dec 14, 2014 12:11 pm
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:
Post
by jsmcortina » Tue Dec 30, 2014 6:29 am
I added a couple of CAN transmission examples to the protocol PDF.
James
Alfagta
Experienced MS/Extra'er
Posts: 239 Joined: Wed Aug 21, 2013 2:54 am
Post
by Alfagta » Wed Dec 31, 2014 2:20 am
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