SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 93
2.9.1 List Dirs and Files 4Chex ‘L’ ascii
Commands (host)
2 bytes
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x4C (hex), L (ascii). (List Dirs and Files)
Responses (device)
Number of Dirs(2 bytes) + Number of
Files(2 bytes) + 1 byte File ACK + 1 byte
Command ACK
1.- Number of Directories (high byte).
2.- Number of Directories (low byte).
3.- Number of Files (high byte).
4.- Number of Files (low byte).
5.- 0xXX (hex) - Refer to “File ACK List”.
6.- 0x4F (hex), O (ascii) success ACK.
0x46 (hex), F (ascii) fail NAK.
Description
The List Dirs/Files command read and count
all directories and files under the current
microSD card directory path and returns the
number of found Items.
Each time the User changes the directory
path is recommended to call this command to
know the items under the new path.
This is one of the simplest yet effective
commands available on the Smart GPU 2 FAT
Data Management functions.
Example (sent and received
commands)
Example 1:
<46,4C> 00,0B,00,20,00,4F List Items, we
got 11(dec) Dirs, and 32(dec) Files, this
means we have those 43 Items files on the
current microSD path.
All data is in hex.