Sleep, Wakeup, and Status Retrieval
# Sleep, Wakeup, and Status Retrieval
Wake Up Device
Request format: <STX><FLAG><Command><ET><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “101” Wake up device |
Control PC sends:
<STX><FLAG><31H><30H><31H><ETX><LRC>
Device responds:
<ACK>
Example of command sent: 02 11 31 30 31 03 32
Put Device to Sleep
Request format: <STX><FLAG><Command><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “102” |
Control PC sends:
<STX><FLAG><31H><30H><32H><ETX><LRC>
Device responds:
<ACK>
Example of command sent: 02 11 31 30 32 03 32
Switch between Sleep and Wakeup
Request format: <STX><FLAG><Command><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “103” |
Description: Switch between sleep and wakeup
Control PC sends:
<STX><FLAG><31H><30H><33H><ETX><LRC>
Device responds:
<ACK>
Example of command sent: 02 11 31 30 33 03 32
Retrieve Device Status
Request format: <STX><FLAG><Command><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “199” |
Response format: <STX><FLAG><Command><Status><ETX><LRC>
| Field | Format | Length | Description |
|---|---|---|---|
| Command | AN | 3 | “199” |
| Status | AN | 3 | “000“or“001“ |
Status:
“000”-Sleep
“001”-Awake
Example: Retrieve the current status of the device
Control PC sends:
<STX><FLAG><31H><39H><39H><ETX><LRC>
Device responds:
<ACK>
<STX><FLAG><31H><39H><39H>><30H><30H><31H><ETX><LRC>
Example of command sent: 02 11 31 39 39 03 32
Example of device response:
02 11 06 03 14
02 11 31 39 39 30 30 31 03 13