SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 67
8.3 List Files - 0x46, 0x4Chex - ‘F, ‘L’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x4C (hex), L (ascii). *List/Enumerate.
3.- 0x46 (hex), F (ascii). *Files.
Responses (device)
byte(s)
1.- Number of Files - High Byte.
2.- Number of Files - Low Byte.
3.- 0xXX - FAT ACK/NAK List Byte Reply
4.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
The List Files command enumerates the files
inside the current selected/working directory
path.
This command is useful to be called each
time that the current directory path is
modified (“Open Directory” command), in
order to know the available files inside the
new path.
Examples (sent and
received commands)
Example 1:
Sent data:
-46,4C,46- Retrieve count of files inside the
current directory path.
Received data:
-00,7E,00,4F- Found 126 files in the current
directory path, OK, OK.
*All data is in hex.