SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 97
2.9.5 Open Directory/Folder 44hex ‘D’ ascii
Commands (host)
2 bytes + Dir name + 1byte(NULL).
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x44 (hex), D (ascii). (Open Dir)
3 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 Opens a Directory/Folder under current
directory path on microSD card.
After Open Dir command is executed and succeeds
(ACK), the current directory path name will add the new
open directory name.
To go inside a Directory, just call this command and give
the “directory name” as Dir name parameter.
To go outside a Directory or to parent folder(1 level), just
call this command and give the “..” as Dir name parameter.
SmartGPU 2 can also go directly inside or outside a
nested Directory by giving the full path name
“0:/Folder1/Folder2/directory name” as Dir name
parameter.
Once the user has changed the directory path by going
inside or outside folders, is recommended to call the
command “Get Dir Path” to the exactly current directory
path.
Example (sent commands)
Example 1:
*Current directory path is “0:/” root path.
<46,44,30,31,32,33,00> Open a Directory called “0123”,
under the current directory path.
*After command succeeds Current directory path is now
“0:/0123 “.
Example 2:
*Current directory path is “0:/ABC.
<46,44,30,31,32,33,00> Open a Directory called “0123”
under the current directory path.
*After command succeeds Current directory path is now
“0:/ABC/0123.