SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 91
2.9 FAT Data Management/Data Logger Commands
The new Smart GPU 2 includes full Data management functions, create files/dirs,
open files/dirs, read files, write files, etc.
Those full Data Logger functions enable full possibilities with the Smart GPU 2,
as it is now more complete than ever. User can create easy and advanced Data Logger
+ graphic applications.
The SmartGPU 2 also support nested folders management and up to 4
simultaneous open files for read-write operations, those open files can be allocated
to Workspace Blocks, the SmartGPU 2 contains workspace block 0 to workspace
block 3, the command “Open File” is used to assign a file to a workspace block#, only
one object/file can be allocated at the same time in the same workspace block, the
command “Close File” frees the workspace block.
Note that all commands of this section always respond 2 types of ACKs, first one
is FAT access execution(File ACK/NAK List) and second one is ACK ‘O’ or NAK ‘F’.
Never remove micro SD card during “write” operations on micro SD card, data
could be corrupted and damaged.
Briefly Summary of Commands in this section:
*All of Those next commands always begin with the byte ‘F’-46hex, as
they are FAT commands, followed by the next parameters/byes.
• List Dirs and Files –4Chex ‘L’
• Get name Item# –47hex ‘G’
• Get Dir Path –48hex ‘H’
• New Dir/File –4Ehex ‘N’
• Open Dir –44hex ‘D’
• Open File –4Fhex ‘O’
• Read File –52hex ‘R’
• Write File –57hex ‘W’
• Set/Get Pointer –50hex ‘P’
• Sync File –53hex ‘S’
• Test Error-EOF –51hex ‘Q’
• Close File –43hex ‘C’
• Truncate File –56hex ‘V’
• Erase Dir/File –45hex ‘E’
• Dir/File Rename/move –4Dhex ‘M’
• Set/Get Time and Date Dir/File –54hex ‘T’
• Get Dir/File Info –49hex ‘I’
• Get Free and Total Space –46hex ‘F’