cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Communication

Kamil_16
Associate II

I am implementing a CAN communication structure with one master and two slaves. Both slave devices perform exactly the same function, meaning their hardware and firmware are essentially identical. The master’s intention is to send commands only to a specific slave at a given time and receive data only from that targeted device. However, the issue I am facing is that any CAN frame transmitted by the master is being accepted by both slaves. Because both devices share the same ID filtering configuration, each slave interprets the incoming message as if it were intended for itself. As a result, the system behaves like a broadcast communication instead of the desired unicast structure, which leads to unintended and incorrect operation. Is there a solution

2 REPLIES 2
mƎALLEm
ST Employee

Hello,

So why are you using the same ID for all slaves?

+ What MCU part numbers are you using? 

How to write your question to maximize your chances to find a solution

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

The slaves have different IDs but the same functions. ( STM32F4 DISC)