User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
17File System
Page 201 of 401
Differently from +URDFILE command, this command allows the user to read only a portion of the file,
indicating the offset and amount of bytes.
17.5.2Syntax
Type Syntax Response Example
Set AT+URDBLOCK=<filename>,
<offset>,<size>[,<tag>]
+URDBLOCK: <filename>,<size>,
<data>
OK
AT+URDBLOCK="filename",0,20
+URDBLOCK: "filename",20,"these
bytes are the "
OK
17.5.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 read starting from the <offset>.
<data> String Content of the file read.
<tag> String The optional parameter <tag> specifies a different application file type. FILE TAGS
table lists the allowed <tag> strings.
17.5.4Notes
The returned file data is displayed as an ASCII string of <length> characters in the range [0x00,0xFF]. At
the end of the string, <CR><LF> are provided for user convenience and visualization purposes.
In case a size larger than the whole file size is required the command returns the file size only, indicating
the amount of bytes read.
In case an offset larger than the whole file size is required, the "+CME ERROR: FFS file range" error result
code is triggered.
SARA-R4 / SARA-N4
The <tag> parameter is not supported.
17.6Delete file +UDELFILE
+UDELFILE
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - +CME Error
17.6.1Description
Deletes a stored file from the file system.
If <filename> file is not stored in the file system the following error result code will be provided: "+CME
ERROR: FILE NOT FOUND".
17.6.2Syntax
Type Syntax Response Example
Set AT+UDELFILE=<filename>[,<tag>] OK AT+UDELFILE="filename","USER"
OK
17.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.