AT commands File system commands
Digi XBee3 Cellular LTE-M Global Smart Modem User Guide
135
ATFS MDdirectory
Creates the directorydirectory. PrintsOKif successful or an error if unable to create the requested
directory.
ATFS LS [directory]
Lists files and directories in the specified directory. Thedirectoryparameter 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 filesize 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. Secure files end with a hash mark (#) and you cannot download them.
<DIR> ./
<DIR> ../
<DIR> cert/
<DIR> lib/
32 test.txt
1234 secure.bin#
ATFS PUTfilename
Starts a YMODEM receive on the XBee Smart Modem, storing the received file tofilenameand ignoring
the filename that appears in block 0 of the YMODEM transfer. The XBee Smart Modem sends a
prompt (Receivingfile 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 Error responses.
ATFS XPUTfilename
Similar to thePUTcommand, but stores the file securely on the XBee Smart Modem. See Secure files
for details on what this means.
If the command is incorrect, the reply will be an error as described in Error responses.
ATFS HASHfilename
Print a sha256 hash of a secure file uploaded via the XPUTcommand to allow for verification against a
local copy of the file. On Windows, you can generate a SHA256 hash of a file with the
commandcertutil -hashfile test.txt SHA256.On Mac and Linux useshasum -b -a 256 test.txt.
ATFS GETfilename
Starts a YMODEM send offilenameon the XBee device.When it is ready to send, the XBee Smart
Modem sends a prompt:Sendingfile 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 Error responses.
ATFS MVsource_pathdest_path
Moves or renames the selected file or directorysource_pathto the new name or locationdest_
path.This commandfails with an error ifsource_pathdoes not exist, ordest_pathalready exists.