Command Hardware Control – Deep Sleep

 

<Header> +

<Payload_length>

<Payload>

PL0

PL1

PL2

PL3

PL4

PL5

$ESP_OK|xx|

‘T’

‘V’

ID Control

Infor 1

Infor 2

Infor 3

...

 

‘T’

‘V’

PL2

Control Deep Sleep

2

 

‘0’

V_Enter_Deep_Sleep_mode

 

‘1’

V_Exit_Deep_Sleep_mode_and_WakeUp

 

 

 

 

HOST send V_Enter_Deep_Sleep_mode

 

<Header> +

<Payload_length>

<Payload>

PL0

PL1

PL2

PL3

PL4

PL5

$ESP_OK|xx|

‘T’

‘V’

‘0’

Infor 1

Infor 2

Infor 3

...

 

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘1’

STRING

-

-

1

1

ID Control : V_Enter_Deep_Sleep_mode

 

PL3

 

STRING

0

1

1

1

0

Only ESPrtk (ESP32) enter Deep Sleep mode .

 

1

ESPrtk (ESP32) and all other modules connect to ESPrtk will enter Deep Sleep mode .

 

ESPrtk Respond

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘1’

 

ID Control : V_Enter_Deep_Sleep_mode

 

 

PL3

INTEGER

-1

1

-

-

Status Control

 

-1

NACK: Invalid input /wrong format / out of range …?

0

Error:

1

OK: Enter Deep Sleep mode success

 

PL4

STRING

-

-

-

-

Describe status respond control as text

 

 

Example

Message :

HOST Send

$ESP_OK|8|T|V|0|1|*265A

ACK Respond

$ESP_OK|38|T|V|0|1|Enter Deep Sleep mode success|*3A40

NACK Respond

 

Other NACK

$ESP_ER|… or $ESS_ER|… or $AES_ER|…

 

 

 

 

 

HOST send V_Exit_Deep_Sleep_mode_and_WakeUp

 

<Header> +

<Payload_length>

<Payload>

PL0

PL1

PL2

PL3

PL4

PL5

$ESP_OK|xx|

‘T’

‘V’

‘1’

Infor 1

Infor 2

Infor 3

...

 

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘1’

STRING

-

-

1

1

ID Control : V_Exit_Deep_Sleep_mode_and_WakeUp

 

 

ESPrtk Respond

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘1’

 

ID Control : V_Exit_Deep_Sleep_mode_and_WakeUp

 

 

PL3

INTEGER

-1

1

-

-

Status Control

 

-1

NACK: Invalid input /wrong format / out of range …?

0

- Timeout : Not see confirm message from HOST

1

OK: Exit Deep Sleep mode and WakeUp success

 

PL4

STRING

-

-

-

-

Describe status respond control as text

 

 

Example

Message :

#1 HOST Send

$ESP_OK|6|T|V|1|*6426

#1 ACK Respond

Please send $ESP_OK|6|T|V|1|*6426 again to confirm wake up !

#2 HOST Send again to confirm wake up

$ESP_OK|6|T|V|1|*6426

#2 ACK Respond

$ESP_OK|49|T|V|0|1|Exit Deep Sleep mode and wake up success|*026C

NACK Respond

 

Other NACK

$ESP_ER|… or $ESS_ER|… or $AES_ER|…

 

 


80s toys - Atari. I still have