Runco CP-52HD, CP-42HD Serial Communications, 6.1 RS-232 Connection and Port Configuration 6.2

Models: CP-52HD CP-42HD

1 55
Download 55 pages 29.98 Kb
Page 47
Image 47
6.Serial Communications

6.Serial Communications

To Interface the Climate Portfolio Series LCD with a home theater automation/control system or a PC running terminal emulation software (such as TeraTerm Open Source project at http://ttssh2.sourceforge.jp/), connect it to your control system or PC as shown in Figure 3-6. Use a straight-through cable.

Configure the RS-232 controller or PC serial port as follows: no parity, 8 data bits, 1 stop but and no flow control. Set the baud rate to 38400

Commands are in four-byte raw HEX format in the form of Command + Data 1 + ID + Data 2. The Command byte is always 0x69, Data byte 1 defines which command is to be executed, ID byte is always 0x00; Data byte 2 is always 0x00, except in the case of the discrete volume command, in which case it is a value between 0x00 and 0x64.

To send a command from a PC running terminal emulation software, create either a separate script file for each command or a single script file containing all the commands along with logic to determine which command is to be sent. You cannot type commands in by hand because the Climate Portfolio Series LCD expects the bytes to be sent faster than a human can type, and also many of the HEX values for Data byte 1 are outside the range one can enter using the keys on a keyboard.

When you send a valid command, the Climate Portfolio Series LCD executes it and acknowledges it with OK(0x4F followed by 0x4B). Depending upon the command, it may also return additional strings having to do with execution of that command.

When you send an invalid or unrecognized command the Climate Portfolio Series LCD ignores it and returns NG(0x4E followed by 0x47).

Table 6-1 lists the RS-232 command set.

Table 6-1. Serial Commands

6.1

RS-232 Connection and Port Configuration

6.2

Serial Command Syntax

COMMAND

DATA 1

 

ID

DATA 2

 

 

 

 

 

 

0X69

0X90

: SOURCE

 

0x00

0X00

 

 

 

 

 

 

 

0X91

: SLEEP

 

0x00

0X00

 

 

 

 

 

 

 

0X92

: 1

 

0x00

0X00

 

 

 

 

 

 

 

0X93

: 4

 

0x00

0X00

 

 

 

 

 

 

 

0X94

: 7

 

0x00

0X00

 

 

 

 

 

 

 

0X95

: 0

 

0x00

0X00

 

 

 

 

 

 

 

0X96

: ENTER

 

0x00

0X00

 

 

 

 

 

Runco CP-42HD/CP-52HD Owners Operating Manual

33

 

 

Page 47
Image 47
Runco CP-52HD, CP-42HD manual Serial Communications, 6.1 RS-232 Connection and Port Configuration 6.2, Serial Command Syntax