SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09

16File System
Page 173 of 307
Parameter Type Description
<size> Number File size expressed in bytes. For file system file name and data size limits see File
system limits.
<tag> String Optional parameter that specifies the application file type. FILE TAGS table lists the
allowed <tag> strings.
<text> String Stream of bytes.
16.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".
16.3î™–î™–î™–î™–List files information +ULSTFILE
+ULSTFILE
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - +CME Error
16.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.
16.3.2î™–î™–î™–î™–Syntax
Type Syntax Response Example
Generic syntax
Set AT+ULSTFILE[=<op_code>[,
<param1>[,<param2>]]]
+ULSTFILE: [<param3>,...[,
<paramN>]]
OK
AT+ULSTFILE=1
+ULSTFILE: 236800
OK
List of files stored into the FS
Set AT+ULSTFILE[=0[,<tag>]] +ULSTFILE: [<filename1>[,
<filename2>[,...[,<filenameN>]]]]
OK
AT+ULSTFILE=
+ULSTFILE: "filename"
OK
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
16.3.3î™–î™–î™–î™–Defined values
Parameter Type Description
<op_code> Number Allowed values are:
• 0 (default value): lists the files belonging to <tag> file type