6 serial communications, 1 rs-232 connection and port configuration, 2 serial command/response messages – Vidikron VP-5000 User Manual
Page 55: Example, Serial communications, Rs-232 connection and port configuration, Serial command/response messages, To section 6, serial communications, or contact, Pre l iminar y

Vidikron PlasmaView Owner’s Operating Manual
45
PRE
L
IMINAR
Y
6.1
RS-232 Connection and
Port Configuration
To interface the PlasmaView with a home theater automation/control system or a PC running
terminal emulation software, connect it to your control system or PC as shown in Figure 3-4.
Configure the RS-232 controller or PC serial port as follows: odd parity, 8 data bits, 1 stop bit
and no flow control. Set the baud rate 9600, to match that of the PlasmaView RS-232 port.
6.2
Serial Command/Response
Messages
Serial command messages to – and response messages from – the PlasmaView are in
hexadecimal format. A command/response message consists of the following:
1.
The first command or response byte. In responses from the PlasmaView, the second
character (lower-order four bits) of this byte is F to indicate a valid command (as in the
example below); when the PlasmaView receives an invalid command, the second
character is B.
2.
Two bytes that identify the sender and receiver respectively of the message. 60 is the
PlasmaView; 80 is the personal computer or control system.
3.
The second command byte.
4.
The amount of command data, in bytes (0 for commands that do not take arguments,
such as Power On/Power Off; otherwise, 1 to 7 bytes).
5.
The command data.
6.
A checksum, calculated by adding all of the bytes in the message. The lower-order (least
significant) eight bits – that is, the last two digits – of the result are sent as the checksum.
Example
This is the command for selecting the DVD/HD1 input and the response from the
PlasmaView:
6
Serial Communications
Command
(Byte 1)
Unit ID
(Sender)
Unit ID
(Receiver)
Command
(Byte 2)
Command
Data
Length
(Bytes)
Data
Checksum
DF
80
60
47
01
05
0C
(sum = 2
0C
hex)
Response
(Byte 1)
Unit ID
(Sender)
Unit ID
(Receiver)
Response
(Byte 2)
Response
Data
Length
(Bytes)
Data
Checksum
3F
60
80
47
00
-
66
(sum = 1
66
hex)
-