Skip to main content
Open topic with navigation CAPL Functions » J1939 » J1939 IL » J1939ILOnCA

J1939ILOnCA (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long J1939ILOnCA(long newAddress)

Description

This callback function is called from the J1939 IL when a Command Address message is received. The assignment of the new address can be suppressed.

Parameters

  • newAddress
    • 0 – 253: new address that ECU can accept
    • 254: ECU has to go offline

Return Values

  • 1: accept the new address
  • 0: don’t accept the new address

Example

long J1939ILOnCA(long address)
{
  if(address == 2)
    return 0; // don’t accept the address ‘2’
  else
    return 1;
}