SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 110
9.10 Close File - 0x46, 0x43hex - ‘F, ‘C’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x43 (hex), C (ascii). *Close File.
3.- Workspace 0x00 to 0x0D (hex) 0-13 (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
The Close File command, sync/save
changes first, and then closes the file
allocated on the received workspace#. If a
modified file is not closed, the file data can
be collapsed.
Once this command is acknowledged, the
file is unmounted/deallocated from the
workspace#, this become free and no more
workspace# FAT related commands can be
performed.
A file must be already opened/allocated in
the selected workspace for this command to
work.
Examples (sent and
received commands)
Example 1:
Sent data:
-46,43,02- Save and close file allocated in
workspace# 2.
Received data:
-00,4F- OK, OK. File in workspace# 2 is now
closed and the workspace is free.
*All data is in hex.