SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 82
8.12 Get File Size - 0x46, 0x49hex - ‘F, ‘I’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x49 (hex), I (ascii). *Get Info.
3.- 0x53 (hex), S (ascii). *File Size.
4 to n .- File Name.
n+1 .- 0x00 (hex), NULL ascii.
Responses (device)
byte(s)
1.- File Size - High Byte.
2.- File Size - Medium High Byte.
3.- File Size - Medium Low Byte.
4.- File Size - Low Byte.
5.- 0xXX - FAT ACK/NAK List Byte Reply
6.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
The Get File Size command simply asks for
the file size in bytes of the received file name
inside the current directory path.
Examples (sent and
received commands)
Example 1:
Sent data:
-46,49,53,31,32,33,2E,74,78,74,00- Get file size
of “123.txt”.
Received data:
-00,00,15,DA,00,4F- Size is 5594 bytes, OK, OK.
*All data is in hex.