SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 76
8.8 New Directory - 0x46, 0x4Ehex - ‘F, ‘N’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x4E (hex), N (ascii). *New.
3.- 0x44 (hex), D (ascii). *Directory.
4 to n .- New 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 creates a New Directory
inside the current directory path based on
the received directory name parameter.
After a new directory is created, its contents
are empty, to add files, first open the
directory with the “Open Directory
command and then create files with the
“New File” command.
The directory name can be up to 500
characters, only numbers and letters are
recommended to name the directory, some
special characters are not allowed and may
not work.
This Command fails with EXIST(0x08) if the
directory already exists.