background image

                                                                                                                                             

LTE Module Series 

                                                                                                            BG96  FILE  AT  Commands  Manual

 

 

BG96_FILE_AT_Commands_Manual                                                                                                        20 / 22 

 
 

 

4

 

Summary  of  ERROR  Codes 

 

The error code <err> indicates an error related to mobile equipment or network. The details about <err> 

are  described  in  the  following  table,  and  these  error  codes  are  only  related  to  file  operation  of  BG96 

module.   

 

Table 1: Summary of Error Codes 

<err> 

Meaning 

400 

Invalid input value 

401 

Larger than the size of the file 

402 

Read zero byte 

403 

Drive full 

405 

File not found 

406 

Invalid file name 

407 

File already existed 

409 

Fail to write the file 

410 

Fail to open the file 

411 

Fail to read the file 

413  

Reach the max number of file allowed to be opened 

414 

The file read-only 

416 

Invalid file descriptor 

417 

Fail to list the file 

418 

Fail to delete the file 

419 

Fail to get disk info   

Summary of Contents for BG96

Page 1: ...BG96 FILE AT Commands Manual LTE Module Series Rev BG96_FILE_AT_Commands_Manual_V1 0 Date 2018 01 24 Status Released www quectel com...

Page 2: ...ON PROVIDED IS BASED UPON CUSTOMERS REQUIREMENTS QUECTEL MAKES EVERY EFFORT TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE QUECTEL DOES NOT MAKE ANY WARRANTY AS TO THE INFORMATION CONTAIN...

Page 3: ...LTE Module Series BG96 FILE AT Commands Manual BG96_FILE_AT_Commands_Manual 2 22 About the Document History Revision Date Author Description 1 0 2018 01 24 Matt YE Kennen WU Initial...

Page 4: ...oad a File 9 2 5 AT QFDWL Download a File 11 2 6 AT QFOPEN Open a File 12 2 7 AT QFREAD Read a File 13 2 8 AT QFWRITE Write a File 13 2 9 AT QFSEEK Set File Pointer to a Position 14 2 10 AT QFPOSITION...

Page 5: ...LTE Module Series BG96 FILE AT Commands Manual BG96_FILE_AT_Commands_Manual 4 22 Table Index TABLE 1 SUMMARY OF ERROR CODES 20 TABLE 2 TERMS AND ABBREVIATIONS 22...

Page 6: ...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 fil...

Page 7: ...ent the from being misinterpreted as data the following sequence should be followed 1 Do not input any character within 1s or longer before inputting 2 Input within 1s and no other characters can be i...

Page 8: ...Response QFLDS freesize total_size OK If there is any error CME ERROR err Execution Command AT QFLDS Response Return the UFS information QFLDS UFS_file_size UFS_file_number OK If there is any error CM...

Page 9: ...mmand AT QFLST name_pattern Response QFLST filename file_size QFLST filename file_size OK If there is any error CME ERROR err Execution Command AT QFLST Response Return the information of the UFS file...

Page 10: ...filename is 80 bytes Delete all the files in UFS not delete the directory filename Delete a specified file filename in UFS err An error code relating to ME or network Please refer to Chapter 4 for de...

Page 11: ...of file can be inputted When the total size of the inputted data reaches file_size unit byte TA will return to command mode and reply the following codes QFUPL upload_size checksum OK If there is any...

Page 12: ...case hardware flow control does not work The ACK mode works as follows 1 Run AT QFUPL filename file_size timeout 1 command to enable the ACK mode 2 BG96 outputs CONNECT 3 MCU sends 1K bytes data and...

Page 13: ...te checksum The checksum of the downloaded data err An error code relating to ME or network Please refer to Chapter 4 for details AT QFOPEN Open a File Test Command AT QFOPEN Response QFOPEN filename...

Page 14: ...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 an error err An error code relating to ME or network Please refer to Chapter 4 for de...

Page 15: ...r the time reaches timeout TA will return to command mode and reply the following codes QFWRITE written_length total_length OK If there is any error CME ERROR err filehandle The handle of the file to...

Page 16: ...from the beginning of the file Write Command AT QFSEEK filehandle offset position Response OK If there is any error CME ERROR err filehandle The handle of the file to be operated offset The number of...

Page 17: ...AT QFOPEN filehandle The handle of the file to be operated offset The offset from the beginning of the file err An error code relating to ME or network Please refer to Chapter 4 for details AT QFTUCA...

Page 18: ...T Commands Manual BG96_FILE_AT_Commands_Manual 17 22 Parameter If there is any error CME ERROR err filehandle The handle of the file to be operated err An error code relating to ME or network Please r...

Page 19: ...nsmission more reliable When transmitting a large file without hardware flow control the ACK mode is recommended to be used to prevent the data from being lost For more details about ACK mode please r...

Page 20: ...hecksum 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 QFWR...

Page 21: ...peration of BG96 module Table 1 Summary of Error Codes err Meaning 400 Invalid input value 401 Larger than the size of the file 402 Read zero byte 403 Drive full 405 File not found 406 Invalid file na...

Page 22: ...LTE Module Series BG96 FILE AT Commands Manual BG96_FILE_AT_Commands_Manual 21 22 420 No space 421 Time out 423 File too large 425 Invalid parameter 426 File already opened...

Page 23: ...al 22 22 5 Appendix A Reference Table 2 Terms and Abbreviations Abbreviation Description COM Communication Port DOS Disk Operating System ME Mobile Equipment TA Terminal Adapter UART Universal Asynchr...

Reviews: