Command: CMD_GET_SCHEDULES
Destination: SD_LIN
Destination Channel: 0
Description
Clients use this command to retrieve the names of the schedules defined in the LDF (LIN Description File) that has been parsed.
Command Data Format
none
Response Data Format
Number First Schedule . . . last schedule padding 2 bytes variable . . . variable 0-3 bytes
Number
The number of schedule names to follow. (network byte order)
First Schedule
The name of the first schedule as a null terminated string.
last schedule
The name of the last schedule as a null terminated string.
note:
The schedule 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.