CONFIGURING AND COMMUNICATING WITH YOUR DEVICE
MultiConnect
®
Cell MTC-MNA1 User Guide
25
AT#SCFG=1,3,300,240,600,50
4.
Activate context one
Enter:
AT#SGACT=1,1
5.
Create UDP connection to Server port
Enter:
AT#SD=1,1,####,"###.##.###.##"
where #### is the server port and ###.##.###.## is the IP number.
The device responds with OK, which indicates a successful connection for sending and receiving data through the
socket connection.
Exit Data Mode and Close Connection
To exit data mode and close the socket:
1.
Enter the escape sequence:
+++
2.
To close Socket 1, enter:
AT#SH=1
3.
To close the data connection, enter:
AT#SGACT=1,0
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.
Verify device is registered on the cellular network.
Enter:
AT+CEREG?
Should return:
+CEREG: 0,1 or +CEREG: 0,5
OK
3.
Activate context one
Enter:
AT#SGACT=1,1
4.
Set FTP operations timeout to 10 seconds
Enter:
AT#FTPTO=1000
5.
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.