Command Hardware Control – Control Enable Type Print on TX_UART0
Tip : This control command woks on UART configure mode , Main Action mode and WEB configure mode via UART0.
HOST send Control Enable Type Print on TX_UART0
<Header> + <Payload_length> | <Payload> | ||||||
PL0 | PL1 | PL2 | PL3 | PL4 | PL5 | … | |
$ESP_OK|xx| | ‘T’ | ‘P’ | ID Control | Infor 1 | Infor 2 | Infor 3 | ... |
Payload Index
| Type value | Min Value | Max Value | Min Length | Max Length | Describe | Unit | |
PL2 | ‘0’ |
| ID Control : Enable Type Print on TX_UART0 |
| ||||
| PL3 | BIT | - | - | 12 | 12 | BIT Enable Type Print on TX_UART0 |
|
PL0 | PL1 | PL2 | PL3 | Enable print message types on TX_UART0 port | Unit |
‘T’ | ‘P’ | ‘0’ | BIT1 |
| |
|
|
| BIT2 |
| |
|
|
| BIT3 |
| |
|
|
| BIT4 |
| |
|
|
| BIT5 |
| |
|
|
| BIT6 |
| |
|
|
| BIT7 |
| |
|
|
| BIT8 |
| |
|
|
| BIT9 |
| |
|
|
| BIT10 |
| |
|
|
| BIT11 |
| |
|
|
| BIT12 |
|
ESPrtk Respond
Payload Index
| Type value | Min Value | Max Value | Min Length | Max Length | Describe | Unit | ||
PL2 | ‘0’ |
| ID Control : Enable Type Print on TX_UART0 |
| |||||
| PL3 | INTEGER | -1 | 1 | - | - | Status Control |
| |
-1 | NACK: BIT enable PRINT invalid | ||||||||
0 | - | ||||||||
1 | OK | ||||||||
| PL4 | BIT | - | - | 12 | 12 | BIT Enable Type Print on TX_UART0 |
|
Example
Message : | |
HOST Send | $ESP_OK|19|T|P|0|111111111111|*2157 |
ACK Respond | $ESP_OK|21|T|P|0|1|111111111111|*676E |
NACK Respond | $ESP_ER|40|T|P|0|-1|NACK: BIT enable PRINT invalid|*1D14 |
Other NACK | $ESP_ER|… or $ESS_ER|… or $AES_ER|… |