SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 81
8.11 Erase File - 0x46, 0x45hex - ‘F, ‘E’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x45 (hex), E (ascii). *Erase File.
3.- 0x4F (hex), O (ascii). *Un-Lock Byte.
4 to n .- File Name.
n+1 .- 0x00 (hex), NULL ascii.
Responses (device)
byte(s)
1.- 0xXX - FAT ACK/NAK List Byte Reply
2.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
This command Erases an existing file inside
the current directory path. The received file
name must always include the. xxx extension
of the file. The security Un-Lock byte is a
simple double security byte that avoids
unwanted delete operations.
When deleting a File, it must be closed and
not allocated / mounted under any
workspace# to avoid data corruption.
If the file to erase doesn’t exist, the
command will fail with INVALID NAME(0x06).
Examples (sent and
received commands)
Example 1:
Sent data:
-46,45,4F,31,32,33,2E,74,78,74,00- Erase the
file named “123.txt inside current directory
path.
Received data:
-00,4F- OK, OK.
*All data is in hex.