SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 90
8.17 File 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 File Name/Path.
n+1 .- 0x00 (hex), NULL ascii.
n+2 to m.- New File 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 File
with the received names, rename and move
operations can be achieved at the same
command call.
If the file to rename/move doesn’t exist, the
command will fail with NO FILE(0x04).
Examples (sent and
received commands)
Example 1: Rename Only File.
Sent data:
-46,4D,61,62,63,2E,74,78,74,00,31,32,33,2E,64
6F,63,00- Rename the named “abc.txt” file
to “123.doc” file name.
Received data:
-00,4F- OK, OK.