UMTS/HSPA Module Series
WCDMA UGxx FTP AT Commands Manual
WCDMA_UGxx_FTP_AT_Commands_Manual Confidential / Released 33 / 44
3
Example
3.1. Login to FTP Server
// Step 1: Configure and activate the PDP context.
AT+QICSGP=1,1,
“UNINET”,“”,“”,1
/
/Configure PDP
context 1, APN is “UNINET” for
China Unicom.
OK
AT+QIACT=1
//Activate PDP context 1.
OK
//Activate successfully.
AT+QIACT?
//Query the state of PDP context.
+QIACT: 1,1,1,“10.7.157.1”
OK
AT+QFTPCFG=“contextid”,1
//Set the PDP context ID as 1. The PDP context ID
must be activated before.
OK
//Step 2: Configure user account and transfer settings.
AT+QFTPCFG=“account”,“test”,“test”
//Set user name and password.
OK
AT+QFTPCFG=“filetype”,1
//Set file type as Binary.
OK
AT+QFTPCFG=“transmode”,1
//Set transfer mode as Passive mode.
OK
AT+
QFTPCFG=“rsptimeout”,90
//Set response timeout value.
OK
//Step 3: Login to FTP server.
AT+QFTPOPEN=
“quectel.3322.org”,21
OK
+QFTPOPEN: 0,0
Quectel
Confidential