4.2 2G Registration AT script
example
The module is turned on and attached, APN on context 1 is required by MNO for data traffic
AT+CREG?
+CREG: 0,1
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+CGDCONT=1,"IP","internet.wind.biz"
OK
There’s no need to trigger new registration since the APN will be used in the next step: the
PDP context activation request
AT#SGACT=1,1
#SGACT: 10.34.234.204
OK
The PDP context is active, IP address has been assigned (10.34.234.204) and IP stack is
enabled; now it is possible to perform a socket connection
AT+CGCONTRDP
+CGCONTRDP: 1,5,"internet.wind.biz","10.34.234.204",,"193.70.152.25","212.52.97.25"
OK
AT#SD=1,0,80,"www.telit.com"
CONNECT
+++ escape sequence sent here to move on Command Mode
OK
AT#SS
#SS: 1,3,10.34.234.204,35911,35.202.235.194,80
…
OK
In all scenarios (2G, CAT-M1, NB-IoT) the command AT+CGDCONT stores APN in NVM, so
the APN setting is needed only once.