SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 92
8.18 Get Free & Total Space - 0x46, 0x46hex - ‘F, ‘F’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x46 (hex), F (ascii). *Get Free & Total.
Responses (device)
byte(s)
1.- Free Space - High Byte.
2.- Free Space - Medium High Byte.
3.- Free Space - Medium Low Byte.
4.- Free Space - Low Byte.
5.- Total Space - High Byte.
6.- Total Space - Medium High Byte.
7.- Total Space - Medium Low Byte.
8.- Total Space - Low Byte.
9.- 0xXX - FAT ACK/NAK List Byte Reply.
10.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
This command requests the available Free
Space and Total Space of the mounted
microSD card flash memory, the sizes are
returned in Kbytes units.
To calculate the Used Space, the following
formula can be applied:
Used Space = Total Space – Free Space
Examples (sent and
received commands)
Example 1:
Sent data:
-46,46- Get free and total space.
Received data:
-00,17,47,90,00,3A,F0,00,00,4F- Current free
space is 1,525,648(dec) and TOTAL Space:
3,862,528Kb(dec), OK, OK.
*All data is in hex.