SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
20 FTP
Page 213 of 307
Parameter
Type
Description
<FTP_server_port>
Number
Remote FTP server listening port; it must be a valid TCP port value. The range goes
from 1 to 65535; the default value is 21.
<FTP_secure>
Number
Enables / disables the Secure option (explicit mode) of FTP client service. FTP Secure
option in explicit mode (SSL encryption of FTP control channel; FTP data channel is
not encrypted):
•
0 (default value): no SSL encryption
•
1: enable SSL encryption of FTP control connection
<USECMNG_profile> Number
USECMNG profile (number). Defines the USECMNG profile which specifies the SSL/
TLS properties to be used for the SSL/TLS connection. The range goes from 0 to 4. If
no profile is set a default USECMNG profile is used (see
<param1>
Number /
String
Type and supported content depend on related <op_code> (details are given above).
If <param1> is not specified the value of the corresponding parameter <op_code> is
reset to default value.
<param2>
Number /
String
Type and supported content depend on related <op_code> (details are given above).
If <param2> is not specified the value of the corresponding parameter <op_code> is
reset to default value.
20.1.4 Notes
• The information text response to the read command does not display the password.
• The FTP server IP address and the FTP server name are mutually exclusive. If value for <op_code>=0 is
specified by user, then value for <op_code>=1 is reset or vice versa.
• Some network operators do not allow incoming connections. Due to these limitations introduced by
network operators it is possible to encounter problems using FTP active mode. If the FTP active mode
fails to exchange files, try the passive mode to solve the problem.
• Some network operators do not allow FTPS. In this case the
command (FTP login) will return
a failure response via
URC after an SSL timeout of 30 s.
SARA-R404M / SARA-R410M-01B
• <op_code>=8 is not supported.
SARA-R4 / SARA-N4
• During connection to FTP remote server (via FTP login command) the FTP profile parameters cannot be
changed or reset to factory-programmed values until disconnection takes place (FTP logout). Only <op_
code>=5 (inactivity timeout), and <op_code>=6 (FTP mode), can be updated while the FTP connection is
on the go.
20.2 FTP cUFTPC
+UFTPC
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412M
Modules
SARA-N4
Syntax
PIN required
Settings saved Can be aborted
Response time Error reference
Attributes
partial
No
No
No
-
20.2.1 Description
Triggers the FTP actions corresponding to the <op_code> parameter. The final result code indicates if sending
the command request to the FTP process was successful or not. The +UUFTPCR (FTP command result) URC
returns to the user the final result of the FTP command previously sent with
. As well, the +UUFTPCD
FTP unsolicited data URC provides the data requested by the user (e.g. file or directory lists) and received from
the FTP server.
20.2.2 Syntax
Type
Syntax
Response
Example
General syntax
Set
AT+UFTPC=<op_code>[,<param1>[,
<param2>[,<param3>]]]
OK
AT+UFTPC=4,"data.zip","data.zip"
OK
FTP logout