Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
J1939SetChecksumAndCounter
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
This function calculates and sets the checksum of the given parameter group as well as the given counter. The available calculation algorithms are described in J1939 Functional Safety – Messages With Integrated Checksum and Counter.Parameters
- msg: The parameter group to calculate and set the checksum for.
- calculationMethod: Two letters in the form [A-E][a-f] (e.g. “Bc”) that define the calculation rule and position of the checksum and message counter.
- counter: Current message counter to be set in the given parameter group.
Return Values
- 0: Checksum successfully filled.
- -1: Error: calculation method is invalid.