Skip to main content

J1939ECUGoOnline

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword J1939ECUGoOnline( dword ecuHandle, dword newAddress );

Description

After this function has been called, the logical ECU logs on onto the CAN bus. It must be called separately for each logical ECU. If it is not possible to log on the first time with Address Claiming, or if the node is “rejected” with a higher priority Address Claiming by the bus at a later point in time, the corresponding error message must be evaluated in J1939AppErrorIndication(). If you want to make a network assignment over the network, the PG “CommandedAddress” can be sent to an ECU. Use the Null Address (0xFE) to switch the ECU to offline mode. In that explicit case a “Cannot Claim” message (“Address Claim” PG from source address 0xFE) is sent once. Note: It is not possible to claim the broadcast address 0xFF.

Parameters

  • ecuHandle: ECU handle
  • newAddress: address to be claimed or Null Address (0xFE) to go offline

Return Values

0 on success or error code

Example

J1939ECUGoOnline(ecuHdl, 0x06);