Back to LIN Commands
CMD_SEND_ID_DATA

Command: CMD_SEND_ID_DATA
Destination: SD_LIN
Destination Channel: Channel Number

Description

Clients use this command to store data bytes for a frame that is published by a node being emulated by the and to send a Frame ID on the LIN bus via the emulated master node.


Command Data Format

Frame Name Frame ID Data padding
variable 1 byte 2-8 bytes 0-3 bytes

Frame Name
The name of the frame for which the information will be stored. 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 for which the information will be stored. This value is ignored unless the Frame Name is an empty string (a single null character).

Data
All of the data bytes for the frame being stored.



notes:

The data supplied with this command is saved by the slave task on the LIN card. The master task is then directed to send the frame ID and the card responds with this data.

There is a check to insure that the master node is being emulated by the card. If the master node is not being emulated, a response of RESP_INVAL_PARAM is returned.


Response Data Format

none


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 Name does not exist 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.

|Top|