File System; Overview Of The File System; Directory Structure; Paths - Digi XBee 3 Cellular LTE-M User Manual

Smart modem
Table of Contents

Advertisement

File system

Overview of the file system

XBee Smart Modem firmware versions ending in 0B (for example, 1130B, 100B, 3100B) and later
include support for storing files on an internal 1 MB SPI flash.
CAUTION! You need to
with older firmware. You can use XCTU, AT commands or MicroPython for that initial format
or to erase existing content at any time.
Note
To use XCTU with file system, you need XCTU 6.4.0 or newer.
See
ATFS FORMAT confirm

Directory structure

The SPI flash appears in the file system as /flash, the only entry at the root level of the file system. It
has a lib directory intended for MicroPython modules and a cert directory for files used for TLS
sockets.

Paths

The XBee Smart Modem stores all of its files in the top-level directory /flash. On startup, the ATFS
commands and MicroPython each use that as their current working directory. When specifying the
path to a file or directory, it is interpreted as follows:
Paths starting with a forward slash are "absolute" and must start with /flash to be valid.
n
All other paths are relative to the current working directory.
n
The directory .. refers to the parent directory, so an operation on ../filename.txt that takes
n
place in the directory /flash/test accesses the file /flash/filename.txt.
The directory . refers to the current directory, so the command ATFS ls . lists files in the
n
current directory.
Names are case-insensitive, so FILE.TXT, file.txt and FiLe.TxT all refer to the same file.
n
File and directory names are limited to 64 characters, and can only contain letters, numbers,
n
periods, dashes and underscores. A period at the end of the name is ignored.
The full, absolute path to a file or directory is limited to 255 characters.
n

Secure files

The file system includes support for secure files with the following properties:
Created via the ATFS XPUT command or in MicroPython using a mode of * with the open()
n
method.
Unable to download via the ATFS GET command or MicroPython's open() method.
n
SHA256 hash of file contents available from ATFS HASH command (to compare with a local
n
copy of a file).
Encrypted on the SPI flash.
n
MicroPython can execute code in secure files.
n
Sockets can use secure files when creating TLS connections.
n
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
format the file system
and ensure that the format is complete.
Overview of the file system
if upgrading a device that originally shipped
155

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents