Configuring Device As Udp Client To Connect To Udp Server - Multitech MultiConnect Cell MTC-G3 User Manual

Table of Contents

Advertisement

CONFIGURING AND COMMUNICATING WITH YOUR DEVICE
CONNECT
You can send and receive data.
Exit Data Mode and Close Connection
To exit data mode and 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 Client to Connect to UDP Server

Configure and Connect the Device
To configure the device as a UDP client:
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?
Should return:
4.
Configure socket parameters
Enter:
AT#SCFG=1,1,300,240,600,50
5.
Activate context one
Enter:
AT#SGACT=1,1
6.
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. You can send and receive data through the
socket connection.
28
®
MultiConnect
Cell MTC-G3 User Guide

Advertisement

Table of Contents
loading

Table of Contents