SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 93
9- Workspace# FAT/FAT32 Data Management Functions, Data
Logger -Serial Commands:
SmartWAV 2 uses the 14 audio channels also as workspaces# for those
next workspace# FAT commands, that means that up to 14
workspaces (0 to 13) could be used at the same time for file
management (the physical 14 spaces inside SmartWAV 2 could be
used as workspace or audio channels but not both at the same time).
As an example: the command “Open File” is used to assign a file to a
workspace#, only one file/object can be allocated at the same time
in the same workspace, the command “Close File” frees the
workspace.
This section is for Workspace# FAT Data Management Functions, all of
this section commands always require a file allocated/mounted on a
workspace# to work.
Note that all commands of this section always respond 2 types of
ACKs, first one is FAT access execution (ACK/NAK of the FAT ACK/NAK
List) and second one is general ACK ‘O’ or NAK ‘F’.
*Never remove micro SD card during any FAT operation as data could
be corrupted and damaged.
Briefly summary of Functions/Commands in this section:
- Open File - 0x46, 0x4F hex ‘F’, ‘O’ ascii
- Read File - 0x46, 0x52 hex ‘F’, ‘R’ ascii
- Write File - 0x46, 0x57 hex ‘F’, ‘W’ ascii
- Get File Pointer - 0x46, 0x50 hex ‘F’, ‘P’ ascii
- Set File Pointer - 0x46, 0x50 hex ‘F’, ‘P’ ascii
- Save File - 0x46, 0x53 hex ‘F’, ‘S’ ascii
- Truncate File - 0x46, 0x56 hex ‘F’, ‘V’ ascii
- Test Error in File - 0x46, 0x51 hex ‘F’, ‘Q’ ascii
- Test End of File - 0x46, 0x51 hex ‘F’, ‘Q’ ascii
- Close File -0x46, 0x43 hex ‘F’, ‘C’ ascii