Set and Retrieve Brightness
# Set and Retrieve Brightness
Decrease Brightness
Request format: <STX><FLAG><Command><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “301” |
Example: Decrease device brightness
Control PC sends: <STX><FLAG><33H><30H><31H><ETX><LRC>
Device responds: <ACK>
Example of command sent: 02 11 33 30 31 03 32
Increase Brightness
Request format: <STX><FLAG><Command><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “302” |
Example: Increase device brightness
Control PC sends: <STX><FLAG><31H><30H><31H><ETX><LRC>
Device responds: <ACK>
Example of command sent: 02 11 33 30 32 03 32
Set Absolute Brightness
Request format: <STX><FLAG><Command><Brightness Level><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “303” |
| Brightness Level | AN | 3 | “000” … “255” |
Control PC sends:
<STX><FLAG><33H><30H><33H><32H><35H><34H><ETX><LRC>
Device responds:
<ACK>
Example of command sent:
02 11 33 30 33 31 30 30 03 32 (Set brightness to 100)
02 11 33 30 33 32 35 30 03 32 (Set brightness to 250) (Brightness range: 0 - 255)
Retrieve Brightness
Request format: <STX><FLAG><Command><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “399” |
Response format: <STX><FLAG><Command><Brightness Level><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “399” |
| Brightness Level | AN | 3 | “000” … “255” |
Example: Retrieve the current brightness of the device (current brightness: 7)
Control PC sends:
<STX><FLAG><33H><39H><39H><ETX><LRC>
Device responds:
<ACK>
<STX><FLAG><33H><39H><39H>><30H><30H><37H><ETX><LRC>
Example of command sent: 02 11 33 39 39 03 32
Example of device response:
02 11 06 03 14
02 11 33 39 39 31 33 36 03 14