
File system API frames
Local File System Request - 0x3B
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
291
Offset
Size
Frame Field
Description
8
8-bit
Options
Bitfield with the following values:
n
0x01 CREATE: Create if file doesn't exist.
n
0x02 EXCLUSIVE: Error out if file exists.
n
0x04 READ: Open file for reading.
n
0x08 WRITE: Open file for writing.
n
0x10 TRUNCATE: Truncate file to 0 bytes.
n
0x20 APPEND: Append to end of file.
n
0x40 UNUSED: Unused, set to 0.
n
0x80 SECURE: Create a secure write-only
file.
9-n
variable
File Name
Pathname relative to Path ID.
Success Response
Offset
Size
Frame Field
Description
5
8-bit
File System
Command
File open - 0x01
6
8-bit
Status
Success - 0x00
7
16-bit
File Handle
Value used to reference file in later
requests. Expires and becomes invalid if not
referenced for over 2 minutes.
9
32-bit
File Size
File's size or
0xFFFFFFFF
if unknown.
File Close - 0x02
Description
Close an open file and release its File Handle.
Request
Offset
Size
Frame Field
Description
5
8-bit
File System Command
File Close - 0x02
6
16-bit
File Handle
Value returned from
response.
File Read - 0x03
Description
Read the file.