Configure J1939 node with address and network management attributes
Simulink Real-Time / J1939 Communication
Vehicle Network Toolbox / J1939 Communication
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.
You need a license for both Vehicle Network Toolbox™ and Simulink® software to use this block.
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.
Address— Returns the effective address of the node
This optional output port exists when you check Output current node address in the dialog box.
AC Status— Indicates the success (1) or failure (0) of the node’s address claim
This optional output port exists when you check Output address claim status in the dialog box.
Config name— ID of the J1939 network configuration to associate with this node
ConfigX(default) | character vector
This ID is used to access the corresponding J1939 database.
Node name— name of this J1939 node
NodeX(default) | character vector
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— 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.
AllowACC NodeAddress IndustryGroup VehicleSystem VehicleSystemInstance FunctionID FunctionInstance ECUInstance ManufacturerCode IDNumber
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
For information about simulation sample timing, see What Is Sample Time? (Simulink)
Output current node address— Enable or disable the Address port display
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 display
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.