CONFIGURING AND COMMUNICATING WITH YOUR DEVICE
26
MultiConnect
®
Cell MTC-G3 User Guide
Example
A example response to AT+CSQ:
+CSQ: 15,1
Checking Network Registration
Before establishing a packet data connection, verify the is device registered on the network. To do this enter the
network registration report read command:
AT+CREG?
If the device returns:
+CREG: 0,1
or
+CREG: 0,5
The device is registered.
If the device returns:
+CREG: 0,2
The device is in a network searching state.
Sending and Receiving Data
Connecting Device to TCP Server as TCP Client
To send data through a connect socket:
1.
Define PDP Content (APN for SIM)
Enter
AT+CGDCONT=1,"IP","XXX.APN.com"
where XXX.APN.com is the APN your cellular provider assigned to your SIM card.
The device responds with OK
2.
Bring up Data Connection Using Internal IP stack
Enter:
AT#SGACT=1,1
The device responds with the IP Address the cellular provider assigned to the device on connection,
followed by OK. For example:
#SGACT: 25.194.185.116
OK
Closing the Socket and the Connection
To close the socket:
Enter the escape sequence:
+++