Thank you! I’m beginning to understand it now. When there is more than one node on the CAN bus, the sender broadcasts the message to all nodes. It is up to the receiver to decide whether to accept or ignore a message. The receiver can use masks and filters to accept only the messages it needs.
I tested this by sending two different messages from the sender. On the receiver side, I applied a mask and filter to accept only one of them and it worked perfectly!
By the way, I’m more interested in experimenting with J1939. Do you know which library would be good to start with?