SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 66
8.2 List Directories - 0x46, 0x4Chex - ‘F, ‘L’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x4C (hex), L (ascii). *List/Enumerate.
3.- 0x44 (hex), D (ascii). *Directories.
Responses (device)
byte(s)
1.- Number of Directories - High Byte.
2.- Number of Directories - 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 Directories command enumerates
the directories 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 directories inside
the new path.
Examples (sent and
received commands)
Example 1:
Sent data:
-46,4C,44- Retrieve count of directories inside
the current directory path.
Received data:
-00,0A,00,4F- Found 10 directories in the
current directory path, OK, OK.
*All data is in hex.