Hi, Ashrumochan,
Q1) During this another node has also number of messages , will the messages be remain in RAM until first node completes its job or they will be lost. How this will work?
>>>>>>>Based on CAN protocol, as you know that a CAN node includes CAN_TD/CAN_RD, when a node wants to send message, first of all, the CAN_RD pin of the node will poll the CAN bus state, when the CAN bus is idle(no node drives the CAN bus), the CAN bus is in recessive state. When the CAN node detects that the CAN bus is in idle with CAN_RD pin, the CAN_TD of the node will drive the CAN bus with the CAN ID bits, then DLC, then data... When the CAN node detects that the CAN bus is NOT in idle with CAN_RD pin, the CAN_TD of the node will wait until the CAN bus is in idle and try to transmit.
If TWO CAN nodes detect that the CAN bus is in idle, then both of then try to drive the CAN bus with their own transmitted ID, in the case, because the CAN node also receives the ID when the same CAN node transmits it's ID, in the case, the node with small ID will own the CAN bus, the node with big ID will drop out of transmission, this is called arbitration.
Q2)another doubt is can we assign multiple messages object numbers to multiple can IDS, then how it will identify the messages?
>>>>>>For the CAN receiver, the accepted ID is defined in the CAN_IFx_ARB1 register, only when the ID matches between the ID defined CAN_IFx_ARB1 register and the ID the CAN bus transmitted via CAN BUS can the CAN receiver receives the CAN packet.
Hope it can help you
BR
XiangJun Rong