SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 80
8.10 Erase Directory - 0x46, 0x45hex - ‘F, ‘E’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x45 (hex), E (ascii). *Erase Directory.
3.- 0x4F (hex), O (ascii). *Un-Lock Byte.
4 to n .- Directory 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 directory
inside the current directory path. The
security Un-Lock byte is a simple double
security byte that avoids unwanted delete
operations.
When deleting a directory, it must be empty
or this command will fail.
If the directory 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,72,6F,63,6B,00- Erase the empty
directory named “rock” inside current
directory path.
Received data:
-00,4F- OK, OK.
*All data is in hex.