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

J1939ILOnAddressViolation (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long J1939ILOnAddressViolation( pg * txPG );

Description

This callback function is called from the IL if address violation detection is enabled (J1939ILEnableAddressViolationDetection) and if the J1939 IL receives the parameter group with the source address of the simulated node that was not sent by the simulated node itself. If the callback returns 1 then the default behavior is performed: the simulated node sends an Address Claimed message and starts the cyclic sending of message DM1 with SPN=2000+nodeAddress, FMI=31 and OC=1. If the callback returns 0 then the simulated node ignores the address violation.

Parameters

  • rxPG: Message which has caused the address violation.

Return Values

  • 0: simulated node ignores the address violation.
  • 1: simulated node performs the default behavior.

Example