I have three nodes and using CAN protocol in basic mode for communication, so as to keep my code same for all the three nodes i can set the identifier bits and send it via mailbox but how the designated receiver will come to know it has to receive the message with that identifier bit?? since it knows nothing about that identifier bits.
The receiving node should be configured to work on certain identifiers. On a CAN bus all the nodes are synchronized and they always listen the CAN_BUS, even the transmitting node listens to the CAN_BUS. When a message with an identifier that the receiver is configured for, is broadcast on the bus, the receiver will know and act upon it.