SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 96
2.9.4 New Dir/File 4Ehex - ‘N’ ascii
Commands (host)
3 bytes + Dir or File name with “.ext” +
1byte(NULL).
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x4E (hex), N (ascii). (New Dir/File)
3.- Dir/File Item: 0x44 (hex), D (ascii) Dir Item
or 0x46 (hex), F (ascii) File Item.
4 up to N (file name including extension).
N+1.- 0x00 (hex) NULL ascii.
Responses (device)
1 byte File ACK + 1 byte Command ACK
1.- 0xXX (hex) - Refer to “File ACK List”.
2.- 0x4F (hex), O (ascii) success ACK.
0x46 (hex), F (ascii) fail NAK.
Description
This Command creates a new Directory or File
based on the received Dir/File Item parameter,
command fails with EXIST(0x08) if the Directory or
File already exists.
After Directory is created, its contents are
empty, to open the new created directory, use the
“Open Dir” command.
After file is created, contents of the new file will
be 0 bytes.
The Dir/file name must be up to 250
characters. Only numbers and letters are
recommended to name the file, some special
characters are not allowed and may not work.
Always a NULL character (0x00)hex must follow
the last character of the Dir/File name, in order to
indicate to SMART GPU the end of this name, In
case of new File Item, the name to receive
must include the .xxx desired extension.
Example (sent commands)
Example 1:
<46,4E,46,30,31,32,33,2E,74,78,74,00> Creates
new file named “0123.txt”, that doesn’t exist.
Example 2:
<46,4E,44,41,42,43,00> Create a new directory
named “ABC”, that doesn’t exist.
All data is in hex.