SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09

16File System
Page 174 of 307
Parameter Type Description
• 1: gets the free space for the specific <tag> file type
• 2: gets the file size expressed in bytes, belonging to <tag> type (if specified)
<tag> String Specifies the application file type. FILE TAGS table lists the allowed <tag> strings.
<filename1>,..,
<filenameN>
String File name. For file system file name and data size limits see File system limits.
<free_fs_space> Number Available free space on FS in bytes.
<file_size> Number Size of the file specified with the <filename> parameter.
<param1> Number /
String
Type and supported content depend on related <op_code> (details are given above).
<param2> Number /
String
Type and supported content depend on related <op_code> (details are given above).
16.4î™–î™–î™–î™–Read file +URDFILE
+URDFILE
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.4.1î™–î™–î™–î™–Description
Retrieves a file from the file system.
SARA-R4 / SARA-N4
If the HW flow control is disabled (AT+IFC), a data loss could be experienced. So the HW flow control usage
is strongly recommended. If HW flow control is not supported, the use of +URDBLOCK is recommended.
16.4.2î™–î™–î™–î™–Syntax
Type Syntax Response Example
Set AT+URDFILE=<filename>[,<tag>] +URDFILE: <filename>,<size>,
<data>
OK
AT+URDFILE="filename"
+URDFILE: "filename",36,"these
bytes are the data of the file"
OK
16.4.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.
<size> Number File size, in bytes.
<data> String File content.
16.4.4î™–î™–î™–î™–Notes
• The returned file data is displayed as an ASCII string of <size> characters in the range [0x00,0xFF]. At
the end of the string, <CR><LF> are provided for user convenience and visualization purposes.