SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 70
8.5 Get File 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.- 0x46 (hex), F (ascii). *File.
4.- Item Number - High Byte.
5.- Item Number - Low Byte.
Responses (device)
byte(s)
1 to n .- File 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 File Name of the
received Item Number inside the current
directory path. This command is designed to
work in conjunction with the “List Files
command.
By using the “List Files” command combined
with this “Get File 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 files with the “List
Files command. As an example: when the
“List Filescommand is called, and it returns
10 files, then the Get File Item Name could
only ask for the file name of the items 0 to 9.