LTE Module Series
BG96 FILE AT Commands Manual
BG96_FILE_AT_Commands_Manual 5 / 22
1
Introduction
Quectel BG96 module provides AT commands to operate files on UFS (User File Storage directory, a
special directory on the flash file system). This document is a reference guide to these commands.
1.1. The Process of Using File AT Commands
The following illustrates the procedure to create, read and write a file in UFS of BG96:
1. A file can be uploaded to UFS by AT+QFUPL, and can be outputted/downloaded through the serial
interfaces by AT+QFDWL.
2. Open the file by AT+QFOPEN, and then the file can be written or read at any time and any location
until the file is closed by AT+QFCLOSE.
When the file is opened by AT+QFOPEN, it can be set as overwrite mode or read-only mode or
others by the parameter <mode>. (For more information about <mode>, please refer to
Chapter
2.6
). After the file is opened, a <filehandle> is assigned to it. Then the file can be operated via
this <filehandle>.
After the file is opened, it can be written by AT+QFWRITE and can be read by AT+QFREAD from
the current file position.
The file position can be set by AT+QFSEEK and the current position can be queried by
AT+QFPOSITION.
AT+QFTUCAT will truncate the file from the current position to the end of the file.
3. AT+QFCLOSE is used to close the file, after which the <filehandle> becomes meaningless any more.
The following are several commonly used commands to manage files in UFS:
1. AT+QFLDS: Get the storage size
2. AT+QFLST: List the file information in UFS.
3. AT+QFDEL: Delete the file(s)