CONFIGURING AND COMMUNICATING WITH YOUR DEVICE
The device responds with OK.
Transferring FTP File to FTP Server
To connect to FTP server and upload files:
1. Check signal strength.
Enter:
AT+CSQ
2. If using a SIM card, configure the APN.
Enter:
AT+CGDCONT=1,IP,"XXX.APN.com" where XXX.APN.com is the APN your cellular provider assigned to
your SIM card.
3. Verify device is registered on the cellular network.
Enter:
AT+CREG?
4. Activate context one
Enter:
AT#SGACT=1,1
5. Set FTP operations timeout to 10 seconds
Enter:
AT#FTPTO=1000
6. Configure FTP server IP address with username and password.
Enter:
AT#FTPOPEN="###.##.###.#","username","password",0 where ###.##.###.# is the IP address and the
username and password for the FTP server.
7. Configure file transfer type.
Enter:
AT#FTPTYPE=# where # is 0 for binary or 1 for ASCII.
8. Enter the file name to be sent to the FTP server and initiate connection.
Enter:
AT#FTPPUT="file.txt"
The device responds with:
CONNECT
9. Send the file through the device.
Closing the FTP Data Connection
When you finish sending the file:
1. Enter the escape sequence.
Enter:
+++
The device responds with:
NO CARRIER
2. Close the FTP connection.
QuickCarrier™ USB-E MT100UCC-C2 Developer Guide 31
Commentaires sur ces manuels