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.

[CAN - LAM] id of received message when using Acceptance Mask

Other Parts Discussed in Thread: TMS320F28335

Hello,

I'm using a network of TMS320F28335 connected by CAN bus. How can I get the ID of received message when the Local Acceptance Mask is enabled.

For example:

I have MessageBox1 initialized as receive mail box and id is 0x0000aaaa;

I set the LAM for MailBox1 to 0x00001111;

Then I send message with id 0x000000aa from another module and it's correctly received by my MessageBox1, but I don't have information about the actual id of received message which is 0x000000aa not 0x0000aaaa (this is information taken from: ECanaMboxes.MBOX1.MSGID)

I couldn't find any registers that might carry this information.

Please help.

Regards

Maciek

----EDIT----

Sorry for disturbing,

I had incorrect mask used with ECanaMboxes.MBOX1.MSGID.all and i had wrong id. Ofcourse correct received message id is sroted in this register.

Regards Maciek

  • mlaski,

    if you use the LAM feature, the message ID of the incoming message will be copied into the corresponding mailbox MID-register.

    Example:  You prepare mailbox 1 as receiver with identifier 0x200. You also set LAM1  = 5. This will allow the mailbox to receive identifiers 0x200, 0x201, 0x204 and 0x205. If one of these messages has been received, the full identifier will be available in register MID, e.g. 0x200, 0x201, 0x204 or 0x205.  There is no need for an extra register.

    Hope this helps.