14 of 23
Reproduction forbidden without Telit Communications PLC written authorization – All Rights Reserved
6
Full UDP script
Below the full script for UDP communication, including APN setting and using <cid> 1:
AT+CFUN=1
// Full functionality
AT+CGDCONT=1,"IP",”<APN>” // Set <cid>=1 with APN (setting can be done only one time)
AT+CGATT=0
// Network deactivation
AT+CGATT=1
// Network ativation
AT+CEREG? // Check Network Registration
AT+CGPADDR=1 // Check IP address <cid> 1
AT#SCFG=1,1,300,90,600,50 // Socket Configuration (see AT command manual for the
details of the command)
AT#SGACT=1,1
// Internal modem process (expect to receive: ERROR)
AT#SGACT?
// Confirm Context activated
AT#SD=1,1,<Dest. Port>,<"IP address">,0,1234,1 // Open a UDP socket to remote server
AT#SSEND=1
// After that command you will recieve a prompt > and you
// can send the data just typing it and end them with Crtl^Z
//Transmit the data and end the string with Crtl^Z to send it
SRING: 1
// message sent
AT#SH=1
// Close the socket
6.1
UDP script example
AT+CFUN=1
OK
AT+CGPADDR=
+CGPADDR: 1,"10.0.50.204"
OK
AT+CGCONTRDP=
+CGCONTRDP:
1,5,"lte.tim.it.mnc001.mcc222.gprs","10.0.50.204.255.0.0.0","10.0.50.205","213.230.130.222"
,"213.230.130.222","0.0.0.0","0.0.0.0"
OK
Содержание ME910C1 Series
Страница 1: ...02 2018 Mod 0871 ME910C1 Quick Start Guide 80529NT11661A Rev 1 2018 03 01...
Страница 23: ...MM YYYY Mod XXXX...