Users Guide

d. 使用 at#ncm 命令配置网络控制模式。
示例:at#ncm=1,3
e. 使用 at+cgact 命令激活分组数据协议。
示例:at+cgact=1,3
f. 要查看 PDP 内容读取动态参数,即 bearer_idapnip_addrsubnet_maskgw_addrDNS_prim_addr
DNS_sec_addrP-CSCF_prim_addr P-CSCF_sec_addr 参数,运行 at+cgcontrdp 命令。
示例: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. 推出 Minicom 模块。
h. Linux 终端使用以下命令配置连接
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
示例:
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. 使用 minicom -D /dev/ttyACM0 命令登录到 Minicom
j. 使用 at+cgdata 命令连接到移动网络。
示例:at+cgdata="M-RAW_IP",3
要从移动网络断开
a. 打开 Minicom 终端。
b. 输入 at+cgdata="M-RAW_IP",3 命令。
c. 关闭 Minicom 终端。
d. 输入 root@WR-IntelligentDevice:~# ifconfig wwan0 down 命令。
装回 micro-SIM
小心: 卸下使用中的 micro-SIM 卡可能会导致数据丢失或应用程序错误。
1. 使用曲别针或 SIM 弹出工具,弹出 micro-SIM 卡托盘。
2. micro-SIM 卡托盘中取出 micro-SIM 卡。
3. Micro-SIM 卡托盘装回 Edge Gateway
28