J1939 Receive Message

J1939 Receive Message


Simulink® Real-Time™ Library for J1939


The J1939 Receive Message block receives a J1939 message. The J1939 database file defines the message type. You specify the J1939 database with the J1939 Database (CANdb) Setup block.

Block Outputs

Signal Output(s)

Depending on the J1939 message defined in the J1939 database file, the block can have multiple output signal ports. If the bit length of a signal exceeds 32, the output is a byte array; otherwise, the block output data type is double.

New Message Received (Optional)

Outputs 1 when a new message is received from the CAN bus; otherwise, outputs 0.

Block Parameters


From the list, select the parameter group number. The contents of this list vary depending on the messages that the J1939 database file specifies.


Specify the ID of the controller application that this block maps to. The ID must match the CA ID value of the corresponding J1939 Controller Application block.

Source Address Filter (255:all)

Specify the source node address from which the block is to expect messages. Type 255 to receive messages from any node.

Destination Address Filter

From the list, select the node destination of the expected message:

  • global and specific

    Receive all messages for all types of destination nodes.

  • global only

    Receive only broadcast messages.

  • CA specific only

    Receive only messages sent to this node.

Show 'New Message Received' output port

Select this check box to create a New Message Received output port.

Was this topic helpful?