Command: CMD_CARD_TX Destination: SD_CARD Destination Channel: Channel ID
Description
Clients use this command to transmit a message over the specified channel.
Command data format
The message to be transmitted is arranged as follows:
Message Frame Format
|
Frame Type = FT_CMD |
(n bytes) | |
| data header | Network data + padding | |
data header
Header Length 1 byte
unsigned charNumber used to represent the
message header.Header Bits 1 byte
unsigned charNumber of bits that make up the
header. (These are the least
significant bits of the header bytes.)Data Length 2 bytes
unsigned shortThe number of extra data bytes associated
with this message.Extra Length 1 byte
unsigned charAdditional information (e.g. TX, RX,
etc.) about the message; see
Appendix B.Mode 1 byte Message mode (tx, rx, etc) Priority 1 byte
Unsigned charNot currently used. Error Status 1 byte
unsigned charReports of error conditions Time Stamp 4 bytes
unsigned longMessage timestamp, in 10uS units Context 1 byte User-specified unique value that is
guaranteed to remain unchanged
during the life of the message.Reserved Char 1 byte Reserved. Reserved Short 2 bytes Reserved.
Response data format
Response return codes
RESP_OK Execution of the command was successful RESP_INVAL_CHAN The specified channel is invalid. RESP_UNSUPPORTED This command is not supported on the specified
channel.RESP_INVAL_MSG The specified message is not a legal message for
this protocol.RESP_INVAL_LEN The specified data size is not legal. RESP_TX_FAIL A transmit attempt failed. RESP_UNREG The specified source channel is not registered with
the server.RESP_UNKNOWN_ERR An unknown error has occurred. RESP_BUF_FULL The transmit buffer is full.