microcontrollercan-bus

What is Message Object in CAN Protocol?


CAN Protocol- Message Object (MObs)

As per my Knowledge these are the Buffers that will contain most recent message.

A very less information is available on Internet.

Please can anyone explain me in detail what exactly are Message Objects? How these can be used in Programs?

Thanking in anticipation


Solution

  • Message objects are structured dependant on the processor type. So what you have to do is get the datasheet of your processor and see how is stores it's can messages and message box configuration.

    This means the following: Each message object is a structure composed of the message's current data and the message configuration. The configuration refers to the message id filters.

    Depending on the type of message you want to store in that message object you configure the filter for a range of ids and the processor will store them for you when they are received from the wire. In case you use for transmit the filters are not used.

    Of course the structure might also contain flags to confirm that a message was sent, or that you want to cancel the message transmission, of if a message object is configured for transmission or reception.

    If you have the datasheet we can find out more on what do you have in that Message Object.