Users Guide

範例:at+cgdcont=3,"IPV4V6","broadband".
註: 如果命令執行成功,訊息會顯示 OK
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