zektor serialoption Manual Do Utilizador

Página de 24
22
The DVS5.1 Response Strings
The section list the strings returned from the DVS5.1.
All DVS5.1 strings are terminated with the characters <CR><LF>.
Strings will start with only one of three characters:
‘+’
 
- Acknowledgement of a valid command.
‘!’ 
- Command caused an error (followed by the error code).
‘=’
- Start of a status string (followed by the status string).
Acknowledgement String
+<CR><LF>
Acknowledge an error free command.
Acknowledge an error free command was received by the DVS5.1. All commands are acknowledged with either this 
string or the Error Code String if an error occurred processing the command.
Error Code String
!<error><CR><LF>
Indicate an error in the previous command.
The response to a command that caused an error.
<error>
= A single digit ASCII value that indicates the error.
1
 - Unknown command.
2
 - Error in command’s parameters (out of range, or invalid).
5
 - Bad number of parameters in command line.
Power Status String
=P<power><CR><LF>
Return the current power state
<power>
 = A one digit ASCII value that indicates the power state of the DVS5.1
0
 - DVS5.1 is OFF.
1
 - DVS5.1 in ON.
Channel Status String
=C<VideoChan><space><AudioChan><CR><LF>
Return channel selection
<VideoChan>
 = A one digit ASCII value that indicates the current video selection.
Video Channel return values range between 1 and 5.
<AudioChan>
 = A one digit ASCII value that indicates the current audio selection.
Audio Channel return values range between 1 and 5.