Command: CMD_GET_NODE_NAMES
Destination: SD_LIN
Destination Channel: 0
Description
Clients use this command to retrieve the names of the nodes defined in the LDF (LIN Description File) that has been parsed.
Command Data Format
none
Response Data Format
Number Master First Slave . . . last slave padding 2 bytes variable variable . . . variable 0-3 bytes
Number
The number of node names to follow. This equals the number of slaves plus one. (network byte order)
Master
The name of the master node as a null terminated string.
First Slave
The name of the first slave node as a null terminated string.
last slave
The name of the last slave node as a null terminated string.
note:
The node 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.