UMTS/HSPA Module Series
WCDMA UGxx FILE AT Commands Manual
WCDMA_UGxx_FILE_AT_Commands_Manual Confidential / Released 11 / 19
2.6. AT+QFOPEN Open the File
Get the file handle by
the “AT+QFOPEN” which is used in other commands, such as “AT+QFWRITE”,
“AT+QFREAD”, “AT+QFSEEK”, “AT+QCLOSE”, “AT+QFPOSITION” and “AT+QFTUCAT”.
Parameter
AT+QFOPEN Open the File
Test Command
AT+QFOPEN=?
Response
+QFOPEN: <file_name>[,(0-2)]
OK
Read Command
AT+QFOPEN?
Response
+QFOPEN: <file_name>,<file_handle>,<mode>
[+QFOPEN: <file_name>,<file_handle>,<mode>
[…]]
OK
Write Command
AT+QFOPEN=<file_name>[,<mode>]
Response
+QFOPEN: <file_handle>
OK
or
+CME ERROR: <err>
<file_name>
The file to be operated. The max length is 80 bytes
“RAM: <file_name>” The operated file in the RAM
<file_handle>
The handle of the file. The data type is 4 bytes
<mode>
The open mode of the file. Default is 0
0
If the file does not exist, it will be created; if the file exists, it will be directly
opened. And both of them can be read and written.
1
If the file does not exist, it will be created; If the file exists, the file will be
overwritten and cleared. And both of them can be read and written.
2 If the file exists, open it and it can be read only. When the file does not exist, it
will respond the error.
<err>
The error code from the module (see the
Appendix A)
Quectel
Confidential