SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 68
8.4 Get Dir Item Name - 0x46, 0x47hex - ‘F, ‘G’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x47 (hex), G (ascii). *Get Name.
3.- 0x44 (hex), D (ascii). *Directory.
4.- Item Number - High Byte.
5.- Item Number - Low Byte.
Responses (device)
byte(s)
1 to n .- Directory Item Number Name.
n+1 .- 0x00 (hex), NULL ascii.
n+2 .- 0xXX - FAT ACK/NAK List Byte Reply
n+3 .- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
This command retrieves the Directory Name
of the received Item Number inside the
current directory path. This command is
designed to work in conjunction with the “List
Directories” command.
By using the “List Directories” command
combined with this “Get Dir Item Name”
command, the user can have a detailed list
with names of all the directories inside the
current selected/working directory path.
*The Item Number parameter in this
command must always be less than the
previously found number of directories with
the “List Directories” command. As an
example: when the “List Directories”
command is called, and it returns 5
directories, then the “Get Dir Item Name”
could only ask for the directory name of the
items 0 to 4.