Jump to content

Sending custom CAN messages on OEM can bus - problem?


turbogrill

Recommended Posts

Hi,

 

Can I send custom CAN messages on the OEM Mazda CANBUS without confusing the ECU? 

 

I currently have 2 CAN buses, the OEM Mazda Bus and the race capture pro canbus. I would like to only have 1 but then the Mazda ECU would see messages it doesn't recognize.

 

Could that be a problem? Would a OEM ECU freakout if there was unknown messages being sent? 

Link to comment
Share on other sites

I doubt it.  Most control modules on the bus have built in filters that disregard unneeded messages.  Otherwise the inbox would quickly fill with a bunch of (for want of a better word) spam.  I know for a fact that it does not matter to VW ECMs, or to the AEM replacement I use now.  Just make sure that the message IDs don't match any IDs that are currently being used, and more importantly, were being used in a stock car.  Also, stay out of the 0x7XX range since that tends to be diagnostic messages to and from a tester, and make sure that the priority of your new messages isn't so high that crowds out the ECM.  In general, lower message IDs have a higher priority.

  • Like 1
Link to comment
Share on other sites

38 minutes ago, Robmink said:

I doubt it.  Most control modules on the bus have built in filters that disregard unneeded messages.  Otherwise the inbox would quickly fill with a bunch of (for want of a better word) spam.  I know for a fact that it does not matter to VW ECMs, or to the AEM replacement I use now.  Just make sure that the message IDs don't match any IDs that are currently being used, and more importantly, were being used in a stock car.  Also, stay out of the 0x7XX range since that tends to be diagnostic messages to and from a tester, and make sure that the priority of your new messages isn't so high that crowds out the ECM.  In general, lower message IDs have a higher priority.

 

thanks!

Link to comment
Share on other sites

No problem all; I've done this quite a bit. Try to use unique ids and change them if something is acting weird. Also remember that lower id messages get priority over higher id ones.

 

We do use two separate CAN buses though. This is how OEMs do it, so a failure of a non-essential bus doesn't brick the car.

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

On 2/7/2022 at 4:46 AM, Grant said:

 

We do use two separate CAN buses though. This is how OEMs do it, so a failure of a non-essential bus doesn't brick the car.

 

We also use separate buses because there is only so much headroom on any bus and some messages must get through, like the ones between the trans and the engine, and the engine and the ABS.  Since those tend to run at a high rate, they crowd up the bus pretty quickly.

Link to comment
Share on other sites

I will keep two buses, should be easy enough.

 

My original plan was to connect a CAN based microcontroller for various stuff but that only had 1 channel.

 

The NC Miata baud rate is 500kbs I believe, the ECU transmits various CAN packets for the instrument cluster and supposedly the ABS module sends out wheel speed sensor data quite often. (I think this is for the instrument cluster to get speed).

 

Not sure if the ECU or ABS needs any CAN packets. The ABS module has it's own brake sensor.

Edited by turbogrill
Link to comment
Share on other sites

21 hours ago, turbogrill said:

I will keep two buses, should be easy enough.

 

My original plan was to connect a CAN based microcontroller for various stuff but that only had 1 channel.

 

The NC Miata baud rate is 500kbs I believe, the ECU transmits various CAN packets for the instrument cluster and supposedly the ABS module sends out wheel speed sensor data quite often. (I think this is for the instrument cluster to get speed).

 

Not sure if the ECU or ABS needs any CAN packets. The ABS module has it's own brake sensor.

 

Some of the Microchip dsPICs have 2 channels, as does the ARM STM32F3 & 4.  I use the STM32F4 as my dash display unit and to act as a kinda gateway between the VW based bus stuff and the AEM/AIM hardware.  The VW ABS transmits both individual wheel speeds and a combined speed that is used by both the ECM and the dash.  I doubt the Mazda ECM needs anything from the other modules in order to run, but saying that, I know some VW ECMs do not like it if the ABS is offline (it's a safety thing).  Usually, just sending blank messages with the correct address is enough to satisfy the module, you'll just get a bunch of faults for missing data.  I'm a bit of a CAN bus nerd.

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...