Ayre Acoustics RS-232 Automobile Parts User Manual


 
Response Structure:
Upon receiving a command, the player shall try to execute the command and send back a
response. Two response formats are supported: the short response and the verbose response.
The short response is used by default. If the verbose mode (See command reference for SVM)
is set, the verbose response will be used instead.
The response starts with an “@” sign (ASCII 0x23), (followed by the original command code and
a space (ASCII 0x20) if the verbose response is in use), and a result code, either “OK” or “ER”.
If there are any parameters or additional messages, these are given in text format, separated by
a space (ASCII 0x20) from the result code. The @ character (ASCII 0x40) must never appear in
the parameters or message. A carriage return (ASCII 0x0D) indicates the end of response. Each
response must not exceed 25 bytes, including the start of response and the end of response
bytes.
The illustration of the response structure is as the followings:
<Short Response> = <Start of Response><Result Code>[<sp><Parameters>]
<End of Response>
<Verbose Response> = <Start of Response><Command Code><sp><Result Code>
[<sp><Parameters>]<End of Response>
where:
<Start of Response> = @ (ASCII 0x40)
<Command Code> = <byte><byte><byte> (three ASCII characters)
<Result Code> = OK / ER (OK / Error)
<sp> = space (ASCII 0x20)
<Parameters> = command-specific (ASCII characters)
<End of Response> = CR (ASCII 0x0D)
Status Update Messages Structure:
If the verbose mode is set to “2“ or “3“, the player will send status update messages
automatically. These messages are not a response to any particular command. Any status
change caused by commands from RS-232, front panel buttons, IR remote control, or playback
progress may trigger status update messages.
The status update messages have the following structure:
<Update> = <Start of Update><Status Code>[<sp><Parameters>]<End of Update>
where:
<Start of Update> = @ (ASCII 0x40)
<Status Code> = <byte><byte><byte> (three ASCII characters)
<sp> = space (ASCII 0x20)
<Parameters> = status-specific (ASCII characters)
<End of Response> = CR (ASCII 0x0D)
2