SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
16 File System
Page 176 of 307
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
<tag>
String
The optional parameter <tag> specifies a different application file type.
table lists the allowed <tag> strings.
16.7 Partial download file +UDWNBLOCK
+UDWNBLOCK
SARA-R410M-02B SARA-R410M-52B SARA-R412M
Modules
SARA-N4
Syntax
PIN required
Settings saved Can be aborted
Response time Error reference
Attributes
full
No
No
No
-
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
) 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
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
<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.
table lists the allowed <tag> strings.
16.7.4 Notes
• The <tag> parameter is supported only for "USER".