Commands: CMD_FLIGHT_GET_CONFIG Destination: SD_FLIGHT Destination Channel: 0
Description
Clients use this command to get information about the configuration file being used by the flight recorder.
Command Data Format
noneResponse Data Format
The first 32 bytes of the response form a header.The rest of the response contains a variable number of records formatted as follows.
Configuration Filename Number of Channels 30 bytes (NULL padded) 2 bytes
Channel Number Index Number Offset Data Type Label 1 byte 1 byte 1 byte 9 bytes (NULL padded) 8 bytes (NULL padded)
Configuration Filename The name of the configuration file Number of Channels The number of data channels that have been defined for the configuration. This also specifies the number of channel records that are present. The following three fields define one channel record. Channel Number The I/O channel number, 1 through n. Index Number The index number, 1 through n for similar I/O. if not used, it is zero. Offset The offset of the data in the data message. Valid only for non-serial data. This is the offset in bytes from the beginning of the data portion of the message. Data Type The type of data. Will be one of the following: can, j1850, kwp, digital, analog, freq, or temp. Label The channel's label. The list of channels is returned in the following order based on Data Type. CAN channels, J1850, KWP, the analog channels, the digital channels, the frequency channels and the temperature channels. If no channels of a given type are present, no channel record for that Data Type is returned.
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_UNAVAILABLE The active configuration file is not present. RESP_UNKNOWN_ERR An unknown error occurred.