Example:
at+cgdcont=3,"IPV4V6","broadband"
.
NOTE: If the command runs successfully, the message
OK
appears.
d.
Configure the Network Control Mode with the
at#ncm
command.
Example:
at#ncm=1,3
.
e.
Activate the Packet Data Protocol with the
at+cgact
command.
Example:
at+cgact=1,3
.
f.
To view the PDP Context Read Dynamic Parameters, that is,
bearer_id
,
apn
,
ip_addr
,
subnet_mask
,
gw_addr
,
DNS_prim_addr
,
DNS_sec_addr
,
P-CSCF_prim_addr
, and
P-CSCF_sec_addr
parameters, run the
at+cgcontrdp
command.
Example:
at+cgcontrdp=3
+CGCONTRDP: 3,7,"broadband.mnc480.mcc311.gprs","100.106.47.7.255.0.0.0","100.1
06.47.8","198.224.157.135","0.0.0.0","0.0.0.0","0.0.00"
g.
Exit the Minicom module.
h.
In the Linux terminal configure the connection with the following commands
root@WR-IntelligentDevice:~# ifconfig wwan0
ip_addr
netmask
subnet_mask
up
root@WR-IntelligentDevice:~# route add default gw
gw_addr
wwan0
root@WR-IntelligentDevice:~# echo nameserver
DNS_prim_addr
>>/etc/resolv.conf
Example:
root@WR-IntelligentDevice:~# ifconfig wwan0 100.106.47.7 netmask 255.0.0.0 up
root@WR-IntelligentDevice:~# route add default gw 100.106.47.8 wwan0
root@WR-IntelligentDevice:~# echo nameserver 198.224.157.135 >>/etc/resolv.conf
i.
Log in to the Minicom module using the
minicom -D /dev/ttyACM0
command.
j.
Connect to the mobile network using the
at+cgdata
command.
Example:
at+cgdata="M-RAW_IP",3
To disconnect from the mobile network
a.
Open the Minicom terminal.
b.
Enter the
at+cgdata="M-RAW_IP",3
command.
c.
Close the Minicom terminal.
d.
Enter the
root@WR-IntelligentDevice:~# ifconfig wwan0 down
command.
Replacing the micro-SIM card
CAUTION: Removing the micro-SIM card while it is in use may cause data loss or result in application errors.
1.
Using a paper clip or SIM eject tool, eject the micro-SIM card tray.
2.
Remove the micro-SIM card from the micro-SIM card tray.
3.
Replace the micro-SIM card tray into the Gateway.
29