User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
16File System
Page 177 of 308
16.6.2Syntax
Type Syntax Response Example
Set AT+UDELFILE=<filename>[,<tag>] OK AT+UDELFILE="filename","USER"
OK
16.6.3Defined values
Parameter Type Description
<filename> String File name. For file system file name and data size limits see File system limits.
<tag> String The optional parameter <tag> specifies a different application file type. FILE TAGS
table lists the allowed <tag> strings.
16.7Partial download file +UDWNBLOCK
+UDWNBLOCK
SARA-R410M-02B SARA-R410M-52B SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - +CME Error
16.7.1Description
Stores (writes) a file to the file system.
The stream of bytes can be entered after the '>' prompt has been provided to the user. The file transfer is
terminated exactly when <size> bytes have been sent entered and either "OK" final result code or an error
result code is returned. The feed process cannot be interrupted i.e. the command mode is re-entered once
the user has provided the declared the number of bytes.
If the file already exists, the data will be appended to the file already stored in the file system.
If the data transfer stops, after 20 s the command is stopped and the "+CME ERROR: FFS TIMEOUT" error
result code (if +CMEE=2) is returned.
If the module shuts down during the file storing, all bytes of the file will be deleted.
If an error occurs during the file writing, the transfer is aborted and it is up to the user to delete the file.
Differently from +UDWNFILE command, this command allows the user to write only a portion of the file,
indicating the offset and amount of bytes.
16.7.2Syntax
Type Syntax Response Example
Set AT+UDWNBLOCK=<filename>,
<offset>,<size>,<filesize>[,<tag>]
>
<text>
OK AT+UDWNBLOCK="filename",0,36,
500,"USER"
>
The 36 downloaded bytes of the file!
OK
16.7.3Defined values
Parameter Type Description
<filename> String File name. For file system file name and data size limits see File system limits.
<offset> Number Offset in bytes from the beginning of the file.
<size> Number Number of bytes to be written starting from the <offset>.
<filesize> Number The size of the file to be written
<tag> String The optional parameter <tag> specifies a different application file type. FILE TAGS
table lists the allowed <tag> strings.
16.7.4Notes
The <tag> parameter is supported only for "USER".