Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

J1939 Node Configuration

Configure J1939 node with address and network management attributes

Library

Vehicle Network Toolbox: J1939 Communication

Description

The J1939 Node Configuration block is where you define a node and associate it with a specific network configuration. Its Message information is read from the database for that configuration, unless you are creating and configuring a custom node.

Note

You need a license for both Vehicle Network Toolbox™ and Simulink® software to use this block.

Other Supported Features

The J1939 communication blocks support the use of Simulink Accelerator™ and Rapid Accelerator mode. Using this feature, you can speed up the execution of Simulink models. For more information on this feature, see the Simulink documentation.

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

Block Outputs

Address (optional)

This output port exists when you check Output current node address in the dialog box. It returns the effective address of the node.

AC Status (optional)

This output port exists when you check Output address claim status in the dialog box. It indicates the success (1) or failure (0) of the node’s address claim.

Parameters

Config name

The ID of the J1939 network configuration to associate this node with. This is used to access the corresponding J1939 database.

Node name

The name of this J1939 node. The available list shows none if no J1939 network configuration is found or no node is defined in the associated database. If you are creating a custom node, the node name must be unique within its J1939 network configuration.

Message

These are the nine network attributes as defined by the database file consistent with the J1939 protocol. These parameters are read-only unless you are defining a custom node.

  • Allow arbitrary address — Allow/disallow the node to switch to an arbitrary address if the station address is not available. If this option is off and the node loses its address claim, the node goes silent.

    Node Address — Station address, decimal, 8-bit.

  • Industry Group — Decimal, 3-bit.

  • Vehicle System — Decimal, 7-bit.

  • Vehicle System Instance — Identifies one particular occurrence of a given vehicle system in a given network. If only one instance of a certain vehicle system exists in a network, then this field must be set to 0 to define it as the first instance. Decimal, 4-bit.

  • Function ID — Decimal, 8-bit.

  • Function Instance — Identifies the particular occurrence of a given function in a vehicle system and given network. If only one instance of a certain function exists in a network, then this field must be set to 0 to define it as the first instance. Decimal, 5-bit.

  • ECU Instance — This 3-bit field is used when multiple electronic control units (ECU) are involved in performing a single function. If only one ECU is used for a particular controller application (CA), then this field must be set to 0 to define it as the first instance.

  • Manufacturer Code — Decimal, 11-bit.

  • Identity Number — Decimal, 21-bit.

Sample time

Simulation refresh rate. Specify the sampling time of the block during simulation. This value defines the frequency at which the J1939 Node Configuration updates its optional output ports. 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 seconds. For information about simulation sample timing, see What Is Sample Time? (Simulink)

Output current node address

Enable or disable the Address output port to show the effective address. The effective address is different from the predefined station address if Allow arbitrary address is selected, a name conflict occurs, and the current node has lower priority. The output signal is a double value from 0 to 253. This port is disabled by default.

Output address claim status

Enable or disable the address claim AC Status output port to show the success of an address claim. The output value is binary, 1 for success or 0 for failure. This port is disabled by default.

Introduced in R2015b

Was this topic helpful?