AT commands
File system commands
Digi XBee® 3 802.15.4 RF Module User Guide
177
Note
The exact content of error messages may change in the future. All errors start with a upper case
E
, followed by one or more uppercase letters and digits, a space, and an description of the error. If
writing your own AT command parsing code, you can determine if an
FS
command response is an error
by checking if the first letter of the response is upper case
E
.
FS (File System)
When sent without any parameters,
FS
prints a list of supported commands.
FS PWD
Prints the current working directory, which always starts with
/
and defaults to
/flash
at startup.
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