ViewSonic CD4220 User Guide - Page 51

Get-Function Listing, If the Command is valid, Command Type =r

Page 51 highlights

5.3 Get-Function Listing The PC can interrogate the LCD Monitor for specific information. The Get-Function packet format consists of 5 bytes which is similar to the Set-Function packet structure. Note that the "Value" byte is always = 00. Get-Function description: Length: Total Byte of Message excluding "CR" TV ID Identification for each of TV Command Type Identify command type, "g" (0x67h) : Get Command Command: Function command code: One byte ASCII code Value[1~3]: Three bytes ASCII that defines the value CR 0x0D Get-Function format Send: (Command Type="g") Name Length ID Command Type Command Byte Count 1 Byte 2 Byte 1 Byte 1 Byte Bytes 1 2~3 4 5 order Reply: (Command Type="r" or "-") If the Command is valid, Command Type ="r" Name Length ID Command Type Command Byte Count 1 Byte 2 Byte 1 Byte 1 Byte Bytes 1 2~3 4 5 order If the Command is Not valid, Command Type="-" Name Length ID Command Type CR Byte Count 1 Byte 2 Byte 1 Byte 1 Byte Bytes 1 2~3 4 5 order Value1 1 Byte 6 Value1 1 Byte 6 Value2 1 Byte 7 Value2 1 Byte 7 Value3 1 Byte 8 CR 1 Byte 9 Value3 1 Byte 8 CR 1 Byte 9 Example1: Get Brightness from TV-05 and this command is valid. The Brightness value is 67. Send (Hex Format) Name Length ID Command Type Command Value1 Value2 Hex 0x38 0x30 0x35 0x67 0x62 0x30 0x30 Reply(Hex Format) Name Length ID Command Type Command Value1 Value2 Hex 0x38 0x30 0x35 0x72 0x62 0x30 0x36 Value3 0x30 Value3 0x37 CR 0x0D CR 0x0D Example2: Get Brightness from TV-05 , but the Brightness command ID is error and it is NOT in the command table. Send (Hex Format) Name Length ID Command Type Command Value1 Value2 Value3 Hex 0x38 0x30 0x35 0x67 0XD3 0x30 0x30 0x30 Reply (Hex Format) Name Length ID Command Type CR Hex 0x34 0x30 0x35 0x2D 0x0D CR 0x0D ViewSonic CD4220 49

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58

5.3
Get-Function Listing
The PC can interrogate the LCD Monitor for specific information. The Get-Function packet format
consists of 5 bytes which is similar to the Set-Function packet structure. Note that the “Value” byte is
always = 00.
Get-Function description:
Length:
Total Byte of Message excluding “CR”
TV ID
Identification for each of TV
Command Type
Identify command type,
“g” (0x67h) : Get Command
Command:
Function command code: One byte ASCII code
Value[1~3]:
Three bytes ASCII that defines the value
CR
0x0D
Get-Function format
Send: (Command Type=”g”)
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=”r” or “-”)
If the Command is valid, Command Type =”r”
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
If the Command is Not valid, Command Type=”-“
Name
Length
ID
Command Type
CR
Byte
Count
1 Byte
2 Byte
1 Byte
1 Byte
Bytes
order
1
2~3
4
5
Example1: Get Brightness from TV-05 and this command is valid.
The Brightness value is 67.
Send (Hex Format)
Name
Length
ID
Command Type
Command
Value1
Value2
Value3
CR
Hex
0x38
0x30
0x35
0x67
0x62
0x30
0x30
0x30
0x0D
Reply(Hex Format)
Name
Length
ID
Command Type
Command
Value1
Value2
Value3
CR
Hex
0x38
0x30
0x35
0x72
0x62
0x30
0x36
0x37
0x0D
Example2: Get Brightness from TV-05 , but the Brightness command ID is error
and it is NOT in the command table.
Send (Hex Format)
Name
Length
ID
Command Type
Command
Value1
Value2
Value3
CR
Hex
0x38
0x30
0x35
0x67
0XD3
0x30
0x30
0x30
0x0D
Reply (Hex Format)
Name
Length
ID
Command Type
CR
Hex
0x34
0x30
0x35
0x2D
0x0D
ViewSonic
CD4220
49