26
WR6CE User Manual
NOTE
•
Verify is the exclusive OR of Length, Command code, ID and Data.
•
All data are hexadecimal values.
•
For all commands received by the device, the protocol header needs to be changed to AB AB
and the protocol tail needs to be changed to CD CD when returning to the PC.
•
Precautions for control terminal programming: For the power-on command, AB AB 01 04
A1 00 00 00 CD CD are returned after the power-on action is executed; if the command is
not received, the power-on command needs to be sent again. After Android is turned on, the
PC will receive AB AB 01 04 A1 00 00 00 CD CD again, and then the PC can send a control
command to the device. If the correct command is not returned after any command is sent, the
command should be sent again at least after 500ms.
•
In Android standby state, the device only supports startup commands.
Protocol
header
ID Length Command code Protocol tail
Switch
on/off
On
PC to
device
DD FF 01 04 A1 00 00 00 BB CC
On
Device to
PC
AB AB 01 04 A1 00 00 00 CD CD
Off
PC to
device
DD FF 01 04 A1 01 00 00 BB CC
Off
Device to
PC
AB AB 01 04 A1 01 00 00 CD CD
Volume
Control
PC to
device
DD FF 01 04 A1 07 00 XX BB CC
Device to
PC
AB AB 01 04 A1 07 00 XX CD CD
Remark XX is the volume value.
Bright-
ness
Control
PC to
device
DD FF 01 04 A1 08 00 XX BB CC
Device to
PC
AB AB 01 04 A1 08 00 XX CD CD
Remark XX is the brightness value.
Serial Protocol