BenQ RP552H RS232 command - Page 5

Format of data for communication via serial port

Page 5 highlights

4. Format of data for communication via serial port Protocol (With ID) 1 Length (1 byte): Total byte of message excluding "CR" Ex: 0x38 for Length=8; 0x39 for Length=9; 0x3A for Length=10. 2 ID (2 byte): Identification for each of the monitor Set command with ID="99" (0x39 0x39) will doe the settings to all monitors, and it will not have reply command. If the communication is between LAN chip and Sacler chip, the ID should be always "01" (0x30 0x31) 3 Command Type (1 byte) 0x73 ('s'): Set command 0x67 ('g'): Get command 0x72 ('r'): Reply command 0x2B ('+'): Valid command reply 0x2D ('-'): Invalid command reply Possible invalid condition (1) Command Code not support (2) Packet length is wrong (3) Value is out of expected range. 4 Command Code (1 byte) 5 Value (at least 3 byte) 6 CR (1 byte): 0x0D Set command Send Command: Length (1 byte) + ID (2 byte) + Cmd Type (1 byte) + Cmd Code(1 byte) + Value(>=3 byte) + CR (1 byte) Ex: Set Brightness as 76 for ID-02 and this command is valid Send packet Byte 0 1 2 3 4 5 Name Hex Return packet Byte Name Hex Length 0x38 0 Length 0x34 ID 0x30 0x32 1 2 ID 0x30 0x32 Cmd Type Cmd Code 0x73 0x24 Byte1 0x30 3 Cmd Type 0x2B 4 CR 0x0D Ex: Set Brightness as 176 for ID-02 and this command is invalid Send packet Byte 0 1 2 Name Length ID Hex Return packet Byte Name Hex 0x38 0 Length 0x34 0x30 0x32 1 2 ID 0x30 0x32 3 4 Cmd Type Cmd Code 0x73 0x24 5 Byte1 0x31 3 Cmd Type 0x2D 4 CR 0x0D Ex: Set Brightness as 76 for all monitors Send packet Byte 0 Name Length Hex 0x38 Return packet: No return packet 1 2 ID 0x39 0x39 3 4 Cmd Type Cmd Code 0x73 0x24 5 Byte1 0x30 6 Value Byte2 0x37 6 Value Byte2 0x37 6 Value Byte2 0x37 7 Byte3 0x36 7 Byte3 0x36 7 Byte3 0x36 8 CR 0x0D 8 CR 0x0D 8 CR 0x0D Get command Send Command: Length (1 byte) + ID (2 byte) + Cmd Type (1 byte) + Cmd Code(1 byte) + Value(>=3 byte) + CR (1 byte) Ex: Get Brightness from ID-05 and this command is valid, and the Brightness value is 67. Send packet Byte 0 1 2 3 4 5 Name Hex Return packet Byte Length 0x38 0 ID 0x30 0x35 1 2 Cmd Type Cmd Code Byte1 0x67 0x62 0x30 3 4 5 Name Hex Length 0x38 ID 0x30 0x35 Cmd Type Cmd Code Byte1 0x72 0x62 0x30 6 Value Byte2 0x30 6 Value Byte2 0x36 7 Byte3 0x30 7 Byte3 0x37 8 CR 0x0D 8 CR 0x0D

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

4. Format of data for communication via serial port
Protocol (With ID)
1
Length (1 byte): Total byte of message excluding "CR"
Ex: 0x38 for Length=8; 0x39 for Length=9; 0x3A for Length=10.
2
ID (2 byte): Identification for each of the monitor
Set command with ID="99" (0x39 0x39) will doe the settings to all monitors, and it will not have reply command.
If the communication is between LAN chip and Sacler chip, the ID should be always "01" (0x30 0x31)
3
Command Type (1 byte)
0x73 ('s'): Set command
0x67 ('g'): Get command
0x72 ('r'): Reply command
0x2B ('+'): Valid command reply
0x2D ('-'): Invalid command reply
Possible invalid condition (1) Command Code not support (2) Packet length is wrong (3) Value is out of expected range.
4
Command Code (1 byte)
5
Value (at least 3 byte)
6
CR (1 byte): 0x0D
Set command
Send Command: Length (1 byte) + ID (2 byte) + Cmd Type (1 byte) + Cmd Code(1 byte) + Value(>=3 byte) + CR (1 byte)
Ex: Set Brightness as 76 for ID-02 and this command is valid
Send packet
Byte
0
1
2
3
4
5
6
7
8
Byte1
Byte2
Byte3
Hex
0x38
0x30
0x32
0x73
0x24
0x30
0x37
0x36
0x0D
Return packet
Byte
0
1
2
3
4
Name
Length
Cmd Type
CR
Hex
0x34
0x30
0x32
0x2B
0x0D
Ex: Set Brightness as 176 for ID-02 and this command is invalid
Send packet
Byte
0
1
2
3
4
5
6
7
8
Byte1
Byte2
Byte3
Hex
0x38
0x30
0x32
0x73
0x24
0x31
0x37
0x36
0x0D
Return packet
Byte
0
1
2
3
4
Name
Length
Cmd Type
CR
Hex
0x34
0x30
0x32
0x2D
0x0D
Ex: Set Brightness as 76 for all monitors
Send packet
Byte
0
1
2
3
4
5
6
7
8
Byte1
Byte2
Byte3
Hex
0x38
0x39
0x39
0x73
0x24
0x30
0x37
0x36
0x0D
Return packet: No return packet
CR
CR
CR
ID
ID
ID
Length
Length
Length
Name
Name
Name
Value
ID
Value
ID
Value
Cmd Code
Cmd Code
Cmd Code
Cmd Type
Cmd Type
Cmd Type
Get command
Send Command: Length (1 byte) + ID (2 byte) + Cmd Type (1 byte) + Cmd Code(1 byte) + Value(>=3 byte) + CR (1 byte)
Ex: Get Brightness from ID-05 and this command is valid, and the Brightness value is 67.
Send packet
Byte
0
1
2
3
4
5
6
7
8
Byte1
Byte2
Byte3
Hex
0x38
0x30
0x35
0x67
0x62
0x30
0x30
0x30
0x0D
Return packet
Byte
0
1
2
3
4
5
6
7
8
Byte1
Byte2
Byte3
Hex
0x38
0x30
0x35
0x72
0x62
0x30
0x36
0x37
0x0D
ID
ID
Value
Value
CR
CR
Cmd Code
Cmd Code
Length
Length
Name
Name
Cmd Type
Cmd Type