Command: CMD_CNVT_GET_MSG_NAMES
Destination: SD_CNVT
Destination Channel: 0
Description
Clients use this command to retrieve the names of the messages defined in the XML file that has been parsed.
Command Data Format
none
Response Data Format
Number First Frame ID Length First Frame ID First Msg Name . . . Last Frame ID Length Last Frame ID Last Msg Name padding 2 bytes 1 byte variable variable . . . 1 byte variable variable 0-3 bytes
Number
The number of message IDs and names to follow. (network byte order)
Frame ID Length
The length of the message ID in bytes.
Frame ID
The ID code of the message
Msg Name
The name of the message as a null terminated string.
note:
The message names are variable lengths. Each name is terminated with a null character, making it a standard C string. This enables the use of strcpy() and length() when working with the names.
Response Return Codes
RESP_OK Execution of the command was successful. RESP_INVAL_PARAM No LDF (LIN Description File) has been parsed. RESP_UNSUPPORTED This command is not supported on the specified channel. RESP_UNREG The specified source channel is not registered with the server. RESP_UNKNOWN_ERR An unknown error occurred.