CANbus DUE sending data under wrong CAN ID

I'm using the 2x CANbus channels on an arduino DUE. I'm using the following libraries:

Due_can.h by collin80

I have run into the issue when sending tx frames on "can0" that my message will take on data from a different CAN ID. For example, I have 2 CAN ID'S that are transmitting with the following data:

0x1881BBAB 00 11 22 33 44 55 66 77

0x0CEFEF0C 12 34 56 78 90 12 34 56

But When I go to read with my canalyzer I see

0x1881BBAB 00 11 22 33 44 55 66 77

0x0CEFEF0C 00 11 22 33 44 55 66 10

We are receiving and transmitting on can0 @ 250kbs and the bus is very busy.

Has anyone encountered a similar problem or have a fix?


Welcome klutchbuckets! Since you do not give us any information on the hardware or links to technical information to the devices I can only take a SWAG. Most if not all CAN controllers have built in filters. You can set those so it will only accept messages with a specified ID or a range if IDs. You need to check the documentation and set the acceptance filters.