User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
17File System
Page 199 of 401
17.2.4Notes
Issue the AT+ULSTFILE=1 command to retrieve the available user space in the file system.
Two files with different types can have the same name, i.e. AT+UDWNFILE="testfile",20,"USER" and AT
+UDWNFILE="testfile",43,"AUDIO".
SARA-R4 / SARA-N4
The <tag> parameter is mandatory for firmware package transfer. The tag must be given as "FOAT" for
FW download, and "PROFILE" for carrier profile. For more details, see FILE TAGS.
17.3List files information +ULSTFILE
+ULSTFILE
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - +CME Error
17.3.1Description
Retrieves some information about the FS. Depending on the specified <op_code>, it can print:
List of files stored into the FS
Remaining free FS space expressed in bytes
Size of the specified file expressed in bytes
The available free space on FS in bytes reported by the command AT+ULSTFILE=1 is the theoretical free
space including the space occupied by the hidden and temporary files which are not displayed by the AT
+ULSTFILE=0.
17.3.2SARA-R4 syntax
Type Syntax Response Example
Generic syntax
Set AT+ULSTFILE=[<op_code>[,
<param1>[,<param2>]]]
+ULSTFILE: [<param3>,...[,
<paramN>]]
OK
List of files stored into the FS
Set AT+ULSTFILE=[0[,<tag>]] +ULSTFILE: [<filename1>[,
<filename2>[,...[,<filenameN>]]]]
OK
See notes below
AT+ULSTFILE=
+ULSTFILE: "filename1","filename2"
OK
See notes below
Remaining free FS space expressed in bytes
Set AT+ULSTFILE=1[,<tag>] +ULSTFILE: <free_fs_space>
OK
AT+ULSTFILE=1
+ULSTFILE: 236800
OK
Size of the specified file
Set AT+ULSTFILE=2,<filename>[,
<tag>]
+ULSTFILE: <file_size>
OK
AT+ULSTFILE=2,"filename"
+ULSTFILE: 784
OK
17.3.3Defined values
Parameter Type Description
<op_code> Number Allowed values are:
0 (default value): lists the files belonging to <tag> file type
1: gets the free space for the specific <tag> file type
2: gets the file size expressed in bytes, belonging to <tag> type (if specified)
<tag> String Specifies the application file type. FILE TAGS table lists the allowed <tag> strings.