SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 94
2.9.2 Get Name of Item Number# 47hex ‘G’ ascii
Commands (host)
5 bytes
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x47 (hex), G (ascii). (Get Name)
3.- Dir/File Item: 0x44 (hex), D (ascii) Dir Item
or 0x46 (hex), F (ascii) File Item.
4.- Item Number (high byte).
5.- Item Number (low byte).
Responses (device)
Dir/File Name + 1 byte NULL + 1 byte File
ACK + 1 byte Command ACK
1 up to N.- Dir/File Name.
N+1.- 0x00(hex), NULL(ascii).
N+2.- 0xXX (hex) - Refer to “File ACK List”.
N+3.- 0x4F (hex), O (ascii) success ACK.
0x46 (hex), F (ascii) fail NAK.
Description
This command returns the file name of the
received item Number could be a Directory
Item or a File Item; the item Number
parameter must be less than the previously
found Number of Dirs/Files with the List
Files Command.
By using the “List Files” command combined
with this “Get Name Item#” command, the user
can have a detailed list of all the item and
names contained under the current microSD
directory path.
Example (sent commands)
Example 1:
<46,47,46,00,01> Get name of File item
01(dec).
Example 2:
<46,47,44,00,0A> Get name of Dir item
10(dec).
All data is in hex.