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) | |
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 |
| |
|
| 1 |
| |
|
| 2 |
| |
|
| 3 |
| |
|
| 4 |
| |
|
| 5 |
| |
|
| 6 |
| |
|
| 7 |
| |
|
| 8 |
| |
|
| 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 |
| |
|
| 1 |
|
PL0 | PL1 | PL8 | RTK-Rover Enable type NMEA record | PL0 | PL1 | PL | RTK-Rover Enable type NMEA record |
‘W’ | ‘o’ | BIT1 | ‘W’ | ‘’ | BIT16 | ||
|
| BIT2 |
|
| BIT17 | ||
|
| BIT3 |
|
| BIT18 | ||
|
| BIT4 |
|
| BIT19 | ||
|
| BIT4 |
|
| BIT20 | ||
|
| BIT5 |
|
| BIT21 | ||
|
| BIT6 |
|
| BIT22 | ||
|
| BIT7 |
|
| BIT23 | ||
|
| BIT8 |
|
| BIT24 | ||
|
| BIT9 |
|
| BIT25 | ||
|
| BIT10 |
|
| BIT26 | ||
|
| BIT11 |
|
| BIT27 | ||
|
| BIT12 |
|
| BIT28 | ||
|
| BIT13 |
|
| BIT29 | ||
|
| BIT14 |
|
| BIT30 | ||
|
| BIT15 |
|
| BIT31 | Reserve – default set to 0 | |
|
| BIT16 |
|
| 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|… |