User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
16File System
Page 174 of 308
Type Syntax Response Example
Set AT+UDWNFILE=<filename>,<size>,
"AUDIO_EXT"
OK AT+UDWNFILE="audioconfig",4873,
"AUDIO_EXT"
OK
16.2.3Defined values
Parameter Type Description
<filename> String File name. For file system file name and data size limits see File system limits.
<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