SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 78
8.9 New File - 0x46, 0x4Ehex - ‘F, ‘N’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x4E (hex), N (ascii). *New.
3.- 0x46 (hex), F (ascii). *File.
4 to n .- New 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 creates a New File inside the
current directory path based on the
received file name parameter.
After a new file is created, its contents are
empty (0 bytes in size), to append data to
the file, first open the file with the “Open File”
command and then write data with the
“Write File” command.
The file name can be up to 500 characters
including the extension(“.xxx”), only numbers
and letters are recommended to name the
file, some special characters are not allowed
and may not work.
This Command fails with EXIST(0x08) if the file
already exists.
*The “.xxx” extension may be sent within the
file name; if not sent, a valid file but without
extension will be created.