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

_SYSTEM_ (ESPrtk System)

 

 

 

 

BIT2

_ERROR_ (Error status)

 

 

 

 

BIT3

_INFO_ (Text , Log, Information...)

 

 

 

 

BIT4

_GOIN_ (Go to function status)

 

 

 

 

BIT5

_WFSCAN_ (Wifi Scan Result)

 

 

 

 

BIT6

_BROKER_ (Broker MQTT Status)|

 

 

 

 

BIT7

_RVNMEA_ (print NMEA from Rover)|

 

 

 

 

BIT8

_CONFIG_ (Configure information detail)

 

 

 

 

BIT9

$__GGA (Rover print GGA message)

 

 

 

 

BIT10

$_NMEA_ (Rover print NMEA message)

 

 

 

 

BIT11

$ESPIM1 (IMU MPU9250 Data type 1)

 

 

 

 

BIT12

$ESPIM2 (IMU MPU9250 Data type 2)

 

 

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|…

 

 


Snack's 1967