SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 75
8.7 Get Current Path - 0x46, 0x48hex - ‘F, ‘H’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x48 (hex), H (ascii). *Get Current Path.
Responses (device)
byte(s)
1 to n .- Directory Path 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 returns the current directory
path name.
The path name is returned in the following
convention: starting with “/” and ending with
the last character of the current
directory/folder name plus the 0x00(hex)
NULL character:
“/(NULL)” -for root path
“/dir1/dir2/dir3(NULL)” -for nested path
It is recommended to call this command
after each “Open Directory” command, to
verify/obtain the new current directory path.
Examples (sent and
received commands)
Example 1:
Sent data:
-46,48- Get current directory path name.
Received data:
-2F,41,42,43,00,00,4F- Current directory path
name is “/ABC”, OK, OK.
*All data is in hex.