Directory Close - 0X12 - Digi XBee 3 Cellular LTE-M User Manual

Smart modem
Table of Contents

Advertisement

File system API frames
Offset
Size
7
16-bit
9
32-bit
13-n
variable
If there is enough room in the frame, there may be additional entries after the first.
n+1
8-bit
n+2
32-bit
n+6
variable
Process the entries in a Directory Open Response or
Split the File Size and Flags field into separate File Size and Flags.
n
Look for a null terminator after the File Size and Flags field.
n
Extract Entry Name as bytes after File Size and Flags and before either the null terminator or
n
the end of the frame.
Repeat this sequence if Entry Name had a null terminator and the packet contains
n
unprocessed entries.
If the final entry of the frame does not have ENTRY_IS_LAST set, send another
n
Request
to get additional entries.

Directory Close - 0x12

Description
The host can send this frame to indicate that it is done reading the directory and no longer needs the
Directory Handle. Note that the Directory Handle is automatically closed and no longer valid after
receiving a Response with the ENTRY_IS_LAST flag set.
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
Frame Field
Description
Directory
Value returned in initial Directory Open Response.
Handle
File Size/Entry
File's size in lower 24 bits, combined with the
Flags
following flags:
0x80000000 (ENTRY_IS_DIR): Entry is a
n
directory.
0x40000000 (ENTRY_IS_SECURE): File is
n
secure (write-only).
0x01000000 (ENTRY_IS_LAST): This is the last
n
entry.
Other flags in the top 8 bits (0x3E) are
n
currently reserved and set to zero.
Entry Name
File or directory name.
Null
0x00 byte to separate entries
Terminator
File Size and
Refer to description above.
Flags
Entry Name
Refer to description above.
Directory Read Response
Local File System Request - 0x3B
as follows:
Directory Read
295

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents