페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in pages
AT Commands for  File System

 

 

No Command          Description
C1501 AT+CFSINIT Get Flash Data Buffer
C1502 AT+CFSWFILE Write File to the Flash Buffer Allocated by CFSINIT
C1503 AT+CFSRFILE Read File from Flash
C1504 AT+CFSDFILE Delete the File from the Flash
C1505 AT+CFSGFIS Get File Size
C1506 AT+CFSREN Rename a file
C1507 AT+CFSGFRS Get the size of file system
C1508 AT+CFSTERM Free the Flash Buffer Allocated by CFSINIT
C1509 AT+CBAINIT Initialize the ap backup file system
C1510 AT+CBALIST Set the files which want to backup
C1511 AT+CBAPPS Start to backup ap file system allocated by CBAINIT and CBALIST
C1512 AT+CBART Restore the file into ap file system

 

 

 

 

C1501     AT+CFSINIT      Get Flash Data Buffer

 

E) AT+CFSINIT

OK

or

ERROR

or

+CME ERROR: <err>

 

 

 

 

C1502     AT+CFSWFILE      Write File To The Flash Buffer Allocated By CFSINIT

 

T) AT+CFSWFILE=?

+CFSWFILE: (0-3),”fileName”,(0-1),(1-10240),(100-10000)

 

OK

Parameters

See Write Command

W) AT+CFSWFILE=<index>,<file name>,<mode>,<file size>,<input time>

OK

or

ERROR

or

+CME ERROR: <err>

Parameters

<index>

Directory of AP filesystem:

0     “/custapp/”

1     “/fota/”

2     “/datatx/”

3     “/customer/”

<file name>

File name length should less or equal 50 characters

<mode>

0     If the file already existed, write the data at the beginning of the file.

1     If the file already existed, add the data at the end of the file.

<file size>

File size should be less than 10240 bytes.

<input time>   

Millisecond, should send file during this period or you can’t send file when timeout.

The value should be less than 10000 ms.

 

 

 

 

C1503     AT+CFSRFILE      Read File From Flash

 

T) AT+CFSRFILE=?

+CFSRFILE: (0-3),”fileName”,(0-1),(1-10240),(0-filesize)

 

OK

Parameters

See Write Command

W) AT+CFSRFILE=<index>,<file name>,<mode>,<file size>,<position>

OK

or

ERROR

or

+CME ERROR: <err>

Parameters

<index>

Directory of AP filesystem:

0     “/custapp/”

1     “/fota/”

2     “/datatx/”

3     “/customer/”

<file name>

File name length should be less than or equal to 50 characters,

<mode>

0     Read data at the beginning of the file .

1     Read data at the <position> of the file .

<file size>

The size of the file that you want to read should be less than 10240.

<position>    

The starting position that will be read in the file.

When <write mode>=0, <position> is invalid.

Read data from the beginning to the end of the file.

When <write mode>=1, <position> is valid.

Read data from the <position> to the end of the file.

 

 

 

 

C1504     AT+CFSDFILE      Delete The File From The Flash

 

T) AT+CFSDFILE=?

+CFSDFILE: (0-3),”fileName”

 

OK

Parameters

See Write Command

W) AT+CFSDFILE=<index>,<file name>

OK

or

ERROR

or

+CME ERROR: <err>

Parameters

<index>

Directory of AP filesystem:

0     “/custapp/”

1     “/fota/”

2     “/datatx/”

3     “/customer/”

<file name>

File name length should be less than or equal to 50 characters.

 

 

 

 

C1505     AT+CFSGFIS      Get File Size

  

T) AT+CFSGFIS=?

+CFSGFIS: (0-3),”fileName”

 

OK

Parameters

See Write Command

W) AT+CFSGFIS=<index>,<file name>

ERROR

or

+CME ERROR: <err>

or

+CFSGFIS: <n>

OK

Parameters

<file name>

File name length should be less than or equal to 50 characters.

<n> File size

<index>

Directory of AP filesystem:

0     “/custapp/”

1     “/fota/”

2     “/datatx/”

3     “/customer/”

 

 

 

 

C1506     AT+CFSREN      Rename A File

 

T) AT+CFSREN=?

+CFSREN: (0-3),”old_name”,”new_name”

 

OK

Parameters

See Write Command

W) AT+CFSREN=<index>,

<old file name>,<new file name>

OK

or

ERROR

or

+CME ERROR: <err>

Parameters

<index>

Directory of AP filesystem:

0     “/custapp/”

1     “/fota/”

2     “/datatx/”

3     “/customer/”

<old file name>

File name length should be less than or equal to 50 characters.

<new file name>

File name length should be less than or equal to 50 characters.

 

 

 

 

C1507     AT+CFSGFRS      Get The Size Of File System

  

R) AT+CFSGFRS?

ERROR

or

+CME ERROR: <err>

or

+CFSGFRS: <n>

 

OK

Parameters

<n>     the size of file system

 

 

 

 

C1508     AT+CFSTERM      Free The Flash Buffer Allocated By CFSINIT

 

E) AT+CFSTERM

OK

or

ERROR

or

+CME ERROR: <err>

 

 

 

 

C1509     AT+CBAINIT      Initialize The AP Backup File System

  

E) AT+CBAINIT

OK

or

ERROR

or

+CME ERROR: <err>

Max Response Time 3 seconds

 

 

 

 

C1510     AT+CBALIST      Set The Files Which Want To Backup

 

R) AT+CBALIST?

+CBALIST: <index>,<filename>

 

OK

Parameters

See Write Command

W) AT+CBALIST=<index>,<filename>

OK

If error is related to ME functionality:

+CME ERROR: <err>

Parameters

<index>      

0-9     The file index.

10     Disable log

11     Enable log

<file name>     File name length should less than or equal to 80 characters.

Parameter Saving Mode NO_SAVE

 

 

 

 

C1511     AT+CBAPPS      Start To Backup AP File System Allocated By CBAINIT And CBALIST

  

E) AT+CBAPPS

OK

or

ERROR

or

+CME ERROR: <err>

Max Response Time 3 seconds

 

 

 

 

C1512     AT+CBART      Restore The File Into AP File System 

  

E) AT+CBART

OK

or

ERROR

or

+CME ERROR: <err>

Max Response Time 3 seconds
Reference

Note

The files should have been backup into ap file system.

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

 5G/LTE/CAT-M1/NB-IoT

 

www.simcom.com

 

Viewed Page List