Test Feature Set: Symbolic definition of MOST messages
Valid for: CANoe DE In many send and wait commands for MOST, MOST messages can be specified symbolically. Here the relevant MOST message, which under some circumstances can also contain wildcards and parameters, is defined by a character string. The MOST message is resolved by the incorporated XML function catalog. Symbolic Definition of MOST Messages The symbolic definition of the message essentially follows the syntax that is used in the MOST specification. All variants are derived from the following basic form:FBlock.Instance.Function.OpType(Parameter,Parameter,Parameter)
In some commands, parts of this can be omitted; these are then regarded as “arbitrary”. However, not all conceivable forms are permitted, as this would prevent the specifications being distinguished uniquely from one another. For information about which forms are permitted, see the description of the relevant commands.
Essentially it is possible to set raw data for the user data. Accordingly, the parameter bytes have to be set as hexadecimal values in curly brackets. This facilitates, for example, the sending of messages which do not comply with the definition in the function catalog.
Example
Diagnosis.1.KeywordRec.Set({AABB11223344})
or pure numerical:
0x06.1.0x050.0x0({AABB11223344})
Specification of Names for FBlock, Function and OpType
The following special separators are used:- Commas (to separate parameters in the parameter list)
- Dots (to separate the FBlockID, FunctionID etc.)
- Round brackets (to identify the parameter list)
Expanded Wait Functions
An expanded wait condition arises only for the wait instructions for which the message definition contains a parameter list. Here, as well as a message that fits the specified signature of FBlock, Instance, Function, and OpType being expected, in addition, the specified parameters must correspond with the parameters of the message received. As with all wait instructions, all received messages that fit only a part of the specified signature are ignored. This means that the reception of such messages does not cause the wait condition to be abandoned.Error Handling
In the event of an error during parsing and resolution of the message string, all functions show a return value. In this case the function returns immediately without waiting. The error is displayed in the Write Window and recorded in the report, but the measurement is not aborted. This behavior can be changed with the TestSetParseErrorConstraint command for all subsequent test commands with symbolic message definition so that these set the verdict of the test case to “fail”. The command must not be used in the context of a test case; however, it can be used at test module level (that is, in main test). However, if the command is used in the context of a test case, at the end of the test case the mode reverts to what it was at the beginning of the test case. This ensures the locality of the test case. The execution of a test case does not affect test cases that may be executed subsequently. The InstanceID can be specified in each case as a parameter or as a part of the symbolic message definition. If both specifications are present, a warning will be output at runtime and the parameter value used. The value in the string is ignored (no measurement abort). If no InstanceID is specified explicitly, then this is regarded as “arbitrary”. Example<Ctrl>+<M> or select Message input with MOST function catalog… from the shortcut menu to open an input assistant which displays a data entry field in the current program line listing a selection of all MOST messages described in the function catalog. The selection takes in all function catalogs assigned to the CAPL node.
In this context, the input assistant permits the description of messages up to parameter values and adds the resulting description to the program text in quotation marks.
In the event of an error during parsing and resolution of the message string, all functions show a return value. In this case the function returns immediately without waiting. The error is displayed in the Write Window and recorded in the report.