LTE Module Series
BG96 FILE AT Commands Manual
BG96_FILE_AT_Commands_Manual 19 / 22
3.1.2. Download a File
AT+QFDWL="test.txt" //Download the text file “test.txt” from UFS.
CONNECT
<Output Data>
+QFDWL: 10,613e //Get the bytes of the downloaded data and the checksum.
OK
3.2. Write and Read Files
3.2.1. Write and Read a UFS File
AT+QFOPEN="test",0 //Open the file to get the file handle.
+QFOPEN: 0
OK
AT+QFWRITE=0,10 //Write 10 bytes to the file.
CONNECT
<Write Data>
+QFWRITE: 10,10 //The actual bytes written and the size of the file are returned.
OK
AT+QFSEEK=0,0,0 //Set the file pointer to the beginning of the file.
OK
AT+QFREAD=0,10 //Read 10 bytes from the file.
CONNECT 10
<Read Data>
OK
AT+QFCLOSE=0 //Close the file.
OK