beautypg.com

Protocol 1 : with id – VIEWSONIC CD4220 User Manual

Page 48

background image

5.

Protocol 1 : with ID

5.1 Command

Description

Length:

Total Byte of Message excluding “CR”

TV ID

Identification for each of TV

Command Type

Identify command type,
“s” (0x73h) : Set Command
“g” (0x67h) : Get Command
“r” (0x72h) : Reply Command
“p” (0x70h) : RCU Pass-through
“+” (0x2Bh) : Valid command Reply
“-“ (0x2Dh) : Invalid command Reply

Command:

Function command code: One byte ASCII code

Value[1~3]:

Three bytes ASCII that defines the value

CR

0x0D

5.2 Set-Function

Listing

The PC can control the LCD Monitor for specific actions. The Set-Function command allows you to
control the LCD monitor behavior in a remote sit through the RS232 port. The Set-Function packet
format consists of 11 bytes.

Set-Function description:

Length:

Total Byte of Message excluding “CR”

TV ID

Identification for each of TV
If we want to set all TV settings, TV ID can use “99” to achieve, and it will not
have Reply command on this function.

Command Type

Identify command type,
“s” (0x73h) : Set Command

Command:

Function command code: One byte ASCII code

Value[1~3]:

Three bytes ASCII that defines the value

CR

0x0D


Set-Function format
Send: (Command Type=”s”)

Name

Length

ID

Command Type

Command

Value1

Value2

Value3

CR

Byte

Count

1 Byte

2 Byte

1 Byte

1 Byte

1 Byte

1 Byte

1 Byte

1 Byte

Bytes

order

1 2~3

4

5

6 7 8 9

Reply: (Command Type=”+” or “-”)

Name

Length ID Command

Type

CR

Byte

Count

1 Byte

2 Byte

1 Byte

1 Byte

Bytes

order

1 2~3

4

5

Example1: Set Brightness as 76 for TV-02 and this command is valid
Send (Hex Format)

Name

Length

ID

Command Type

Command

Value1

Value2

Value3

CR

Hex

0x38 0x30

0x32

0x73 0x24 0x30 0x37 0x36 0x0D

Reply (Hex Format)

Name

Length ID Command

Type

CR

Hex

0x34 0x30

0x32

0x2B 0x0D


Example2: Set Brightness as 176 for TV-02 and this command is NOT valid
Send (Hex Format)

Name

Length

ID

Command Type

Command

Value1

Value2

Value3

CR

ViewSonic

CD4220

46