SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 88
8.16 Dir Rename/Move - 0x46, 0x4Dhex - ‘F, ‘M ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x4D (hex), M (ascii). *Rename/Move.
3 to n .- Old Directory Name/Path.
n+1 .- 0x00 (hex), NULL ascii.
n+2 to m.- New Directory Name/Path.
m+1.- 0x00 (hex), NULL ascii.
Responses (device)
byte(s)
1.- 0xXX - FAT ACK/NAK List Byte Reply
2.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
This command can rename or move a
Directory with the received names, rename
and move operations can be achieved at
the same command call.
If the directory to rename/move doesn’t
exist, the command will fail with NO
FILE(0x04).
Examples (sent and
received commands)
Example 1: Rename Only Directory.
Sent data:
-46,4D,53,6F,6E,67,73,00,4D,75,73,69,63,00-
Rename the named “Songs” directory to
“Music” directory name.
Received data:
-00,4F- OK, OK.