Main Content

J1939 CAN Transport Layer

Transport J1939 messages via CAN

  • J1939 CAN Transport Layer block

Libraries:
Vehicle Network Toolbox / J1939 Communication

Description

The J1939 CAN Transport Layer block allows J1939 communication via a CAN bus. This block associates a user-defined J1939 network configuration with a connected CAN device. Use one block for each J1939 Network Configuration block in your model.

Other Supported Features

The J1939 communication blocks support the use of Simulink® accelerator and rapid accelerator modes. Using this feature, you can speed up the execution of Simulink models. For more information on this feature, see Acceleration (Simulink).

The J1939 communication blocks also support code generation with limited deployment capabilities. Code generation requires the Microsoft® C++ compiler.

Examples

Parameters

expand all

The name of the J1939 Network Configuration block to associate this transport layer block with.

The CAN device, chosen from all connected CAN devices.

Speed of the CAN bus in bits per second, specified as one of the two rates supported by the J1939 protocol, 250000 or 500000. The default is 250000.

Simulation refresh rate, specified as the sampling time of the block during simulation. This value defines the frequency at which the J1939 CAN Transport Layer block runs during simulation. For information about simulation sample timing, see Timing in Hardware Interface Models. If the block is inside a triggered subsystem or inherits a sample time, specify a value of -1. You can also specify a MATLAB® variable for sample time. The default value is 0.01 simulation seconds.

Version History

Introduced in R2015b