Command Write Configure - SD_CARD

<Header> +

<Payload_length>

<Payload>

PL0

PL1

PL2

PL3

PL4

PL5

$ESP_OK|xx|

‘W’

‘o’

Infor 1

Infor 2

Infor 3

Infor 4

...

 

Name CFG : SD_CARD

Number of field values : 7

 

Payload

Index

Type value

Min

Value

Max

Value

Default

Value

Min Length

Max Length

Describe

Unit

PL2

STRING

-

-

my_record

3

20

File's Name

 

PL3

INTEGER

0

9

0

-

-

Format File

 

PL4

INTEGER

0

1

0

-

-

Type write

 

PL5

INTEGER

10

4000000

500

-

-

MAX_SIZE_FILE (K Byte)

K Byte

PL6

INTEGER

0

100000000

1

-

-

RTK-Rover NMEA Record Cycle

second

PL7

INTEGER

1

65000

2

-

-

RTK-Rover Max NMEA save each Update Cycle

 

PL8

BIT

-

-

11000000000000000000000000000000

32

32

RTK-Rover Enable type NMEA record

 

 

 

 

 

PL0

PL1

PL3

Format File

Unit

‘W’

‘o’

0

.log

 

 

 

1

.txt

 

 

 

2

.nmea

 

 

 

3

.nme

 

 

 

4

.gps

 

 

 

5

.ubx

 

 

 

6

data

 

 

 

7

.dat

 

 

 

8

.bin

 

 

 

9

(No type): User type format at the end file’s name like (my_record.txt)

 

 

 

PL0

PL1

PL4

Type write

Unit

‘W’

‘o’

0

Append to old file

 

 

 

1

Create and write on new file

 

 

PL0

PL1

PL8

RTK-Rover Enable type NMEA record

PL0

PL1

PL

RTK-Rover Enable type NMEA record

‘W’

‘o’

BIT1

NMEA - GGA

‘W’

‘’

BIT16

NMEA - BWC

 

 

BIT2

NMEA - RMC

 

 

BIT17

NMEA - MSK

 

 

BIT3

NMEA - GSA

 

 

BIT18

NMEA - MSS

 

 

BIT4

NMEA - GSV

 

 

BIT19

NMEA - RMA

 

 

BIT4

NMEA - VTG

 

 

BIT20

NMEA - RMB

 

 

BIT5

NMEA - GLL

 

 

BIT21

NMEA - RTE

 

 

BIT6

NMEA - ZDA

 

 

BIT22

NMEA - TRF

 

 

BIT7

NMEA - GNS

 

 

BIT23

NMEA - STN

 

 

BIT8

NMEA - GST

 

 

BIT24

NMEA - VBW

 

 

BIT9

NMEA - DTM

 

 

BIT25

NMEA - WCV

 

 

BIT10

NMEA - GBS

 

 

BIT26

NMEA - WPL

 

 

BIT11

NMEA - GRS

 

 

BIT27

NMEA - XTC

 

 

BIT12

NMEA - AAM

 

 

BIT28

NMEA - XTE

 

 

BIT13

NMEA - ALM

 

 

BIT29

NMEA - ZTG

 

 

BIT14

NMEA - APA

 

 

BIT30

Other Type such as RTCM ,RAW ,UBX , STI ..

 

 

BIT15

NMEA - APB

 

 

BIT31

Reserve – default set to 0

 

 

BIT16

NMEA - BOD

 

 

BIT32

Reserve – default set to 0

 

ESPrtk Respond

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘o’

STRING

-

-

1

1

ID Configure : SD_CARD

 

 

PL3

INTEGER

0

1

-

-

Status Configure

 

0

Error: Failed to save , please try again

1

OK : Saved configure success

 

PL4

STRING

-

-

-

-

Describe Status Configure in text string format

 

 

Example

Message :

HOST Send

$ESP_OK|59|W|o|my_record|0|0|500|1|2|11000000000000000000000000000000|*2500

ACK Respond

$ESP_OK|41|W|o|1|( ID : SD_CARD ) : Saved Success .|*6917

NACK Respond

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

 

Command Read configure - SD_CARD

ESPrtk Respond

The index / range of values / data types is similar to the index / range of values / data types of payloads when configured.

Example

Message :

HOST Send

$ESP_OK|5|R|o||*6933

ACK Respond

$ESP_OK|59|R|o|my_record|0|0|500|1|2|11000000000000000000000000000000|*2005

NACK Respond

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