
AT commands
File system commands
Digi XBee3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
198
<DIR> lib/
32 test.txt
1234 secure.bin#
ATFS 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
ATFS XPUT filename
Similar to the
PUT
command, but stores the file securely on the XBee Smart Modem. See
for details on what this means.
If the command is incorrect, the reply will be an error as described in
ATFS HASH
filename
Print a SHA-256 hash of a file to allow for verification against a local copy of the file.
n
On Windows, you can generate a SHA-256 hash of a file with the command
certutil -hashfile
test.txt SHA256
.
n
On Mac and Linux use
shasum -b -a 256 test.txt
.
ATFS 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
ATFS MV
source_path dest_path
Moves or renames the selected file or directory
source_path
to the new name or location
dest_
path
. This command fails with an error if
source_path
does not exist, or
dest_path
already exists.
Note
Unlike a computer's command prompt which moves a file into the
dest_path
if it is an existing
directory, you must specify the full name for
dest_path
.
ATFS 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.
ATFS 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: