This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

connect with other can equipments with the TMS570

Other Parts Discussed in Thread: TMS570LS3137

How can I use the TMS570LS3137 to communicate with other can equipments? the other can equipments have no definition about the messagebox. The ID of the CAN GUI setting in the HCG below means the CAN ID in the can transmit frame using other can equipments?

What's the relationship of the ID and the messagebox in the TMS570?

How can I use the API functions generated by the HCG like CanGetData(), and the CanTransmit(), because they have the parameters messagebox, If the ID in the GUI present the CAN data frame ID to recognize the data source and the destination in the network.How can I modify the transmit and receive functions?

Regards,

yong

  • Hello Yong,

    I have forwarded your question to one of our experts and they will respond soon.

  • Hi Yong,

    Each of the CAN messagebox has an ID and ability to mask bits of the ID for comparison.

    When a message from another node on the network comes in (in your system, you should designate each node an ID and transmit with that ID), the CAN will do ID check for all mailboxes or messageboxes in your definition.  If ID of a messagebox matches with the ID the other node send, then the payload will be stored in that messagebox.

    So, there is no relationship between messageBox and ID except that the system designer should know which node (and corresponding ID) should have what priority so that the message can be stored into correct priority messagebox.

    Hope this help.

  • Hi,Henry:

    If I do not know the other CAN nodes' ID in the network, can I receive the frame sended by them?

    The situation now is that I do not know the other can node ID, and if I know the other nodes' ID, how can I use the CanGetData() function to receive the data frame? Because the CanGetData() function generated by the HCG has a parameter with the "messagebox"  and then query some flags which can identify the new data, while the flags I saw in the program is related with the messagebox value, what the messagebox value means? It's the message CAN X Message number or the ID value of the CAN X Message number?

    Do you have some examples for that?

    Best regards,

    yong

  • Now, I received the data that was sent form the other can nodes, how can I know the ID of the can frame that was sent by the other nods? Which register I should check for the ID?

    I look form the TRM, in which I found the arbitration register, but the value is unchanged if I change the sender ID of the can frame.

    Regards,

    yong