AT commands
FS CD directory
Changes the current working directory to directory. Prints the current working directory or an error if
unable to change to directory.
FS MD directory
Creates the directory directory. Prints OK if successful or an error if unable to create the requested
directory.
FS LS [directory]
Lists files and directories in the specified directory. The directory parameter is optional and defaults
to a period (.), which represents the current directory. The list ends with a blank line.
Entries start with zero or more spaces, followed by file size or the string <DIR> for directories, then a
single space character and the name of the entry. Directory names end with a forward slash (/) to
differentiate them from files.
<DIR> ./
<DIR> ../
<DIR> lib/
32 test.txt
FS PUT filename
Starts a YMODEM receive on the XBee Smart Modem, storing the received file to filename and
ignoring the filename that appears in block 0 of the YMODEM transfer. The XBee Smart Modem sends
a prompt (Receiving file with YMODEM...) when it is ready to receive, at which point you should
initiate a YMODEM send in your terminal emulator.
If the command is incorrect, the reply will be an error as described in
FS HASH filename
Print a SHA-256 hash of a file to allow for verification against a local copy of the file. On Windows, you
can generate a SHA-256 hash of a file with the command certutil -hashfile test.txt SHA256. On Mac
and Linux use shasum -b -a 256 test.txt.
FS GET filename
Starts a YMODEM send of filename on the XBee device. When it is ready to send, the XBee Smart
Modem sends a prompt: (Sending file with YMODEM...). When the prompt is sent, you should initiate
a YMODEM receive in your terminal emulator.
If the command is incorrect, the reply will be an error as described in
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:
Digi XBee® 3 Zigbee® RF Module
File system commands
Error
responses.
Error
responses.
208
Need help?
Do you have a question about the XBee 3 ZigBee and is the answer not in the manual?