+CSQ: 15,1
Sending and Receiving Data
Connecting Device to TCP Server as TCP Client
1.
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
2.
Create Client Connection to TCP Server on Port 500
Enter:
AT#SD=1,0,500,"###.##.###.##"
where ###.##.###.## is the TCP server IP Address.
The device responds with OK. You can now send or receive data without entering additional commands.
Closing the Socket and the Connection
To close the socket:
Enter the escape sequence:
+++
To close Socket 1, enter:
AT#SH=1
The device responds with OK.
To close the data connection:
Enter:
AT#SGACT=1,0
The device responds with OK.
Configuring Device as UDP Listener to Accept UDP Client Connections
To configure the device as a UDP client:
1.
Check signal strength.
Enter:
AT+CSQ
2.
Verify device is registered on the cellular network.
Enter:
AT+CREG?
Should return:
3.
Configure socket parameters
Enter:
QuickCarrier™ USB-E MT100UCC-EV3 Developer Guide
CONFIGURING AND COMMUNICATING WITH YOUR DEVICE
29