SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 83
8.13 Get FAT Attribute - 0x46, 0x49hex - ‘F, ‘I’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x49 (hex), I (ascii). *Get Info.
3.- 0x46 (hex), F (ascii). *FAT Attribute.
4 to n .- Directory/File Name.
n+1 .- 0x00 (hex), NULL ascii.
Responses (device)
byte(s)
1.- 0xXX - FAT Attribute (see description).
2.- 0xXX - FAT ACK/NAK List Byte Reply
3.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
The Get FAT Attribute Info command request
the FAT information about the received
directory or file name inside the current
directory path.
The possible FAT Attributes can be one or a
logical “OR” combination of the next bytes:
0x01 (hex)- Read Only
0x02 (hex)- Hidden
0x04 (hex)- System
0x08 (hex)- Volume Label
0x10 (hex)- Directory
0x20 (hex)- Archive
Examples (sent and
received commands)
Example 1:
Sent data:
-46,49,46,31,32,33,2E,74,78,74,00- Get FAT
attribute of file named “123.txt”.
Received data:
-23,00,4F- Attribute is 0x23(hex): logical OR of
0x20 (Archive), 0x01 (Read only) and 0x02
(Hidden File), so the file is a Read-only
Hidden Archive, OK, OK. *All data is in hex.