ILNodeDisturbChecksum
Valid for: CANoe DE • CANoe4SW DENote
- This function is not available for all OEM add-ons — depends on the CANoeIL.
- This function can be used in a global node outside the node context of the IL and in test modules.
Function Syntax
Description
This function modifies the checksum. Different fault injections are possible. This function influences a simulation node with an assigned CANoe interaction layer. Use the ILNodeDisturbChecksum64 functions for 64-bit CRC values (e.g., in case of AUTOSAR PROFILE_07).Parameters
- aMessage: Message or PDU that should be modified.
- aMsgName: Name of the message or PDU that should be modified. Supported qualification patterns for form 2: [DBName::][NodeName::]aMessageName
- aSigGroupName: Some systems assign a checksum to a signal group. When specifying the signal group you can apply the disturbance to a dedicated signal group within a message or PDU. Use an empty character array if the checksum of the whole message or PDU should be affected. Supported qualification patterns for form 3: [DBName::][NodeName::][MessageName::]aSignalgroupName
- checksumType: The possible values are described in the corresponding OEM add-on manual.
- disturbanceMode: Identifies the disturbance mode:
- 0: Value - The disturbance uses the value in
disturbanceValueas checksum. - 1: Freeze - The current checksum value is transmitted.
- 2: Random - A random value is transmitted as checksum.
- 3: Offset - The checksum is incremented with the value in
disturbanceValue.
- 0: Value - The disturbance uses the value in
- disturbanceCount:
- -1: Infinite.
- 0: Stops the disturbance, e.g., an infinite disturbance.
- n: Number of disturbances.
- disturbanceValue: This value is used in combination with the
disturbanceMode.
Return Values
- 0: No error
- -10000: Unspecific error
- -10001: Node or module not found
- -10002: No suitable module available
- -10003: Function is not supported by module
- -10004: Module returns illegal value
- other: Error in module