
File system API frames
Local File System Request - 0x3B
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
292
Request
Offset
Size
Frame
Field
Description
5
8-bit
File System
Command
File Read - 0x03
6
16-bit
File Handle
Value returned from
response.
8
32-bit
Read
Offset
File position for read, or 0xFFFFFFFF to use the current position.
12
16-bit
Bytes To
Read
Number of bytes to read from file, or 0xFFFF to read as many as
possible (limited by file size or maximum response frame size).
Success Response
Offset
Size
Frame Field
Description
5
8-bit
File System Command
File Read - 0x03
6
8-bit
Status
Success - 0x00
7
16-bit
File Handle
Value sent in request.
9
32-bit
Data Offset
Actual offset of data read from file.
13-n
variable
Data
Data read from the file.
File Write - 0x04
Description
Write to the file.
Request
Offset
Size
Frame Field
Description
5
8-bit
File System
Command
File Write - 0x04
6
16-bit
File Handle
Value returned from
response.
8
32-bit
Write Offset
File position for write, or 0xFFFFFFFF to use the current
position.
12-n
variable
Data
Data to write to file. If empty, frame just refreshes the
File
Handle
timeout to keep the file open.