Command Return Codes; Transaction Examples - InFocus LP690 Control Manual

Infocus lp690: supplementary guide
Hide thumbs Also See for LP690:
Table of Contents

Advertisement

5 COMMAND RETURN CODES

The Serial protocol returns an acknowledgment ("return code") for every packet sent. If
the host sends a packet, then the projector acknowledge the receipt of this packet. The return codes are detailed in the table
below.
Command Return Code Name
ACK
NAK
ERR
VAL
STRING
Table 8

TRANSACTION EXAMPLES

Example 1: Set
Host:
Operation Set Packet =>
<= ACK
Example 2: Get
Operation Get Packet =>
<= VAL
VAL=0x1D 0x00 0x03 means that 0x0300 is returned
Example 3: Hex sequence for Set Brightness to 70% => 0.7*255 = 178 = 0xB2
Host:
0xBE 0xEF 0x80 0x06 0x00 0x2E 0x04 0x01 0x00 0x11 0x00 0xB2 0x00
Magic number
Body size
7byte Message Head
Projector:
0x06
Example 4: Hex sequence for power on (with CRC deactivated)
Return Code Value
0x06
0x15
0x1C 0xXXXX
0x1D 0xXX 0xYY
Strings 0x06
Projector
CRC
Op.type
Packet acknowledged – no errors. Normal
response when receiving
Packet not acknowledged – some error occurred in
receiving this packet. Usually
Indicates a CRC error.
Packet was received OK, but an error occurred
when executing the command contained in the
Packet. The two bytes following the 0x1C
(0xXXXX) are the error code
Packet value returned. This return code will be
sent in response to a Operation packet of type
OPERATION_GET. The first byte after 0x1D
(0xXX), is the least-byte of the returned value. The
0xYY is the most significant-byte of the returned
value.
ASCII Strings and at last ACK
Function
Value
6byte Message Body
Description

Advertisement

Table of Contents
loading

Table of Contents