AT commands
File system commands
Digi XBee® 3 802.15.4 RF Module User Guide
178
FS RM
file_or_directory
Removes the file or empty directory specified by
file_or_directory
. This command fails with an error if
file_or_directory
does not exist, is not empty, refers to the current working directory or one of its
parents.
Note
Removing a file only reclaims space if the file removed is placed last in the file system. Deleted
data that is contiguous with the last deleted file is also reclaimed. Directories are only reclaimed if all
directories in that particular block of memory are deleted and found at the end of the file system. Use
the
ATFS INFO FULL
command to see where in the file system files and directories are placed.
FS INFO
Report on the size of the filesystem, showing bytes in use, available, marked bad and total. The report
ends with a blank line, as with most multi-line AT command output. Example output:
204800 used
695296 free
0 bad
900096 total
FS INFO FULL
Reports every file and directory in the order they are placed in the file system along with the amount
of space they take up individually. Also reports deleted space as well as unused directory slots.
Example output:
128 /flash./
128 /flash/lib./
128 /flash/directory./
1664 [unused dir slot(s)]
2048 /flash/file1.txt.
2048 [deleted space]
2048 /flash/directory/file2.txt
FS FORMAT confirm
Formats the file system, leaving it with a default directory structure. Pass the word
confirm
as the
first parameter to confirm the format. The XBee Smart Modem responds with
Formatting...
when the
format starts, and will print
OK
followed by a carriage return when it finishes.
FK (File System Public Key)
Configures the device's File System Public Key.
The 65-byte public key is required to verify that the file system that is downloaded over-the-air is a
valid XBee 3 file system compatible with the 802.15.4 firmware.
For further information, refer to
Set the public key on the XBee 3 device
.
Parameter range
A valid 65-byte ECDSA public key.
Other accepted parameters:
0 = Clear the public key
1 = Returns the upper 48 bytes of the public key
2 = Returns the lower 17 bytes of the public key