Main Content

J1939 CAN Transport Layer

Generate and consume J1939 messages that are transported by CAN hardware

Since R2020b

  • J1939 CAN Transport Layer block

Libraries:
Simulink Real-Time / J1939

Description

The J1939 CAN Transport Layer block handles CAN messages that your model transmits or receives by using Simulink® Real-Time™ CAN library blocks.

Connect the input side of the block to a block that receives CAN messages. Connect the output side of the block to a block that transmits the J1939 messages over CAN. Set up the transmitting block so that a CAN message is sent only when an J1939 message is available. Otherwise, the block sends 0 byte data when J1939 messages are not available, causing undefined behavior.

Examples

Ports

Input

expand all

Vector of CAN MESSAGE structures being consumed.

Number of messages in the vector.

Output

expand all

Vector of CAN MESSAGE structures being generated.

Number of messages in the vector.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2020b