Command: CMD_GET_FRAME_INFO
Destination: SD_LIN
Destination Channel: 0
Description
Clients use this command to retrieve basic information about one frame defined in the LDF (LIN Description File) that has been parsed.
Command Data Format
Frame Name Frame ID padding variable 1 byte 0-3 bytes
Frame Name
The name of the frame from which the information will be returned. A special value of an empty string (a single null character) will cause the command to use the optional Frame ID value instead. If the Frame Name, a null terminated string, is not empty, the Frame ID is ignored.
Frame ID
The Frame ID from which the information will be returned. This value is ignored unless the Frame Name is an empty string (a single null character).
Data Bytes Publisher Number of Signals Signal . . . padding 1 byte variable 1 byte variable . . . 0-3 bytes
Data Bytes
The number of data bytes the slave task in the Publisher node sends on the LIN bus in response to the Frame ID.
Publisher
The name of the node that publishes this frame.
Number of Signals
The number of signal names to follow.
Signal
The signal name as a null terminated string. This field is repeated for each signal present in the frame.
notes:
The node whose slave task responds to a Frame ID by sending data bytes on the LIN bus is considered the publisher of the data.
Signal names are returned as null terminated strings which are repeated as necessary until all of the signals for a frame are listed.
The signal 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 or the frame is not defined in the LDF. 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.