Documentation

J1939 Controller Application

J1939 Controller Application

Library

Simulink® Real-Time™ Library for J1939

Description

The J1939 Controller Application block supports address claiming. It enables the dynamic exchange of address information with other nodes in the J1939 bus, resolving conflicts. Once conflicts are resolved, the blocks on the CAN network each have unique addresses and IDs.

Use this block to register your J1939 device on the CAN bus. Associate this block with the J1939 Transmit Message and J1939 Receive Message blocks.

The block has two tab groups, General and NAME. The General tab contains general block information. The NAME tab has ten parameters that, when combined, create a unique identification address (NAME) for this J1939 device. Refer to the SAE J1939-81 and base SAE J1939 specifications for details.

Block Outputs

This block has the following output port:

Status output (Optional)

Outputs a status signal.

Current node address output (Optional)

Outputs current node address.

Block Parameters

General tab:

CA ID

Enter the controller application ID.

Protocol Stack ID

Enter the protocol stack ID.

Node address

From a range of 0 to 253, specify the node address of the node for which J1939 communication is to occur. This value is the source address for the J1939 communication. Set this address to the same as that in the J1939 Transmit Message block.

Show status output

Select this check box to enable an output status signal.

Show current node address as output

Select this check box to enable an output current node address signal.

NAME tab:

Identity Number

Enter the identity number for the controller application. Use the identify number provided by the ECU manufacturer.

Manufacturer Code

Enter the code of the electronic control unit (ECU) manufacturer.

ECU Instance

Enter a number to identify the particular ECU associated with Function.

If this number identifies the first or only instance, enter 0.

Function Instance

Enter a number to identify an instance of the function for the Vehicle System in the CAN network.

Function

Enter an 8-bit value for the function for this controller application. See Appendix B of the base SAE J1939 specification for a list of allowed function values.

If you enter a value between 0 and 127, the block independently evaluates the function value.

If you enter a value greater than 127, the block takes into account the value of the Vehicle System parameter when evaluating the function value.

Reserved

Reserved. Leave set to 0.

Vehicle System

Enter a 7-bit value for the vehicle system for this controller application. See Appendix B of the base SAE J1939 specification for a list of allowed vehicle system values.

Vehicle System Instance

Enter a number to identify an instance of the vehicle system in the CAN network.

If this number identifies the first or only instance, enter 0.

Industry Group

Enter a 3-bit value for the industry group for this controller application. See Appendix B of the base SAE J1939 specification for a list of allowed industry group values.

Arbitrary Address Capable

Select this check box to allow the controller application to resolve address claim conflicts with arbitrary source addresses.

External Websites

Was this topic helpful?