MS3 CAN Broadcast

General support questions and announcements for MS3. See also MS3 manuals.

Moderators: jsmcortina, muythaibxr

Post Reply
xgrapher
Helpful MS/Extra'er
Posts: 105
Joined: Sun May 16, 2010 5:43 am

MS3 CAN Broadcast

Post by xgrapher »

This is my first experience with MS3 Pro.

I unboxed it, put it on my bench desk, connected one connector that has Power and Ground wires, powered it up using an AC/DC, connected the Serial and successfully uploaded my project. No problems so far.

Now that I connected my Arduino with MCP2515 and wired the CANH and CANL and enabled the CAN Realtime Data Broadcasting to run the example sketch on Arduino, I didn't receive any data from MS3. I have wired everything up as per instructions and rechecked them many times. Is there anything else that I need to turn on before MS3 starts broadcasting CAN? I placed an LED on CANH and CANL and it remained solid ON regardless of the frequencies that I selected.

I left the other connector disconnected because it only has power grounds that I'm assuming are for injectors and solenoids. Besides I have a steady connection with Tunerstudio and battery reads around 11.5V
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 CAN Broadcast

Post by jsmcortina »

:msq:
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".
xgrapher
Helpful MS/Extra'er
Posts: 105
Joined: Sun May 16, 2010 5:43 am

Re: MS3 CAN Broadcast

Post by xgrapher »

Sorry... here it is
xgrapher
Helpful MS/Extra'er
Posts: 105
Joined: Sun May 16, 2010 5:43 am

Re: MS3 CAN Broadcast

Post by xgrapher »

I used 2 Arduinos with 2 CAN bus devices and was successful in having them cross-talk. So now I'm sure that the communication from the Arduino side is working perfect. My code right now is waiting to listen for any data coming in regardless of the ID just to make sure that I'm receiving something from the MS3. I've been struggling with this since yesterday and I'm quite positive that it is the MS3 that is not outputting any CAN data.

Like I mentioned earlier, I've powered the MS3 using an AC/DC and it's reading 11.5V with solid connection. There are only 4 wires from the MS3 that are currently in use 12V on white connector, Ground on white connector, CANH and CANL. I used almost everything other option on the CAN section but no success. Does MS3 have to see an RPM before it starts transmitting CAN data? I even tried a common ground between the Arduino and MS3. Is there anything else that needs to be enabled on the MS3 in order to send CAN data? Is there anyway to see in TunerStudio if MS3 is actually transmitting CAN data or not?

Please help, this is driving me nuts!
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 CAN Broadcast

Post by jsmcortina »

Is your Arduino set to the matching baud rate? I seem to recall some users finding that the crystal on the boards doesn't match up with the libraries or something like that, so the baud rate was half or double the expected?

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".
xgrapher
Helpful MS/Extra'er
Posts: 105
Joined: Sun May 16, 2010 5:43 am

Re: MS3 CAN Broadcast

Post by xgrapher »

Yes it's set at 500kbps
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 CAN Broadcast

Post by jsmcortina »

xgrapher wrote:Yes it's set at 500kbps
Yes, but is it actually 500kbps ??

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".
xgrapher
Helpful MS/Extra'er
Posts: 105
Joined: Sun May 16, 2010 5:43 am

Re: MS3 CAN Broadcast

Post by xgrapher »

I had 1 one adruino as a sender and another as a reciever and both were set at 500kbps and didn't have a problem having them talk to each other.

MS3 CAN is 500kbps right?
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 CAN Broadcast

Post by jsmcortina »

Please read my earlier reply! Two wrongs don't make a right.

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".
grom_e30
Super MS/Extra'er
Posts: 4461
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: MS3 CAN Broadcast

Post by grom_e30 »

oh i found this one i brought a china special mcp2515 it had a 8mhz crystal installed and the arduino library was coded for a 16mhz crystal. have a look and if it is 8mhz either swap the crystal out or set the arduino bus speed to 1000kbps
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????
xgrapher
Helpful MS/Extra'er
Posts: 105
Joined: Sun May 16, 2010 5:43 am

Re: MS3 CAN Broadcast

Post by xgrapher »

grom_e30 wrote:oh i found this one i brought a china special mcp2515 it had a 8mhz crystal installed and the arduino library was coded for a 16mhz crystal. have a look and if it is 8mhz either swap the crystal out or set the arduino bus speed to 1000kbps
I love you man!

I changed the baud to 1000kbps and it's working now!

I'll order a 16MHz MCP2515 altogether.

Sorry jsmcortina, you had pointed it out but i didn't understand it ealier. Only now when I reread it I could comprehend.

Thank you guys - Megasquirt is the best. Your support is unbeatable - I mean it! I've been indulged with AEM, Haltech, Link, Motec but their support is not even close
xgrapher
Helpful MS/Extra'er
Posts: 105
Joined: Sun May 16, 2010 5:43 am

Re: MS3 CAN Broadcast

Post by xgrapher »

For the records, I replaced the 8MHz crystal with a16MHz one and reverted back to 500kbs and it's working perfect.
Post Reply