Users Guide

範例:at+cgdcont=3,"IPV4V6","vzwinternet".
註: 如果命令執行成功,訊息會顯示 OK
c. at#ncm 命令設定網路控制模式。
範例:at#ncm=1,3.
d. at+cgact 命令啟動封包資料通訊協定
範例:at+cgact=1,3.
e. 若要檢視 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,"vzwinternet.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"
f. 結束 Minicom 模組。
g. 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
h. 使用 minicom -D /dev/ttyACM0 命令登入 Minicom 模組。
i. 使用 at+cgdata 命令連線至行動網路。
範例:at+cgdata="M-RAW_IP",3
註: 若要檢視 IMEI ICCID 號碼,請使用 AT+IMEISV 命令。
從行動網路中斷
a. 開啟 Minicom 終端機。
b. 輸入 at+cgdata="M-RAW_IP",3 命令。
c. 關閉 Minicom 終端機。
d. 輸入 root@WR-IntelligentDevice:~# ifconfig wwan0 down 命令。
Edge Gateway
隨附
LTE AT&T (DW5813) WWAN
卡:
a. 開啟 Terminal (終端機) 視窗。
b. 在終端機類型 minicom -D /dev/ttyACM0 以開啟 Minicom 終端機。
Minicom 終端機開啟並顯示下列文字 :
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Dec 17 2015, 16:20:45.
Port /dev/ttyACM0, 21:33:05
Press CTRL-A Z for help on special keys
c. 鍵入 AT+cgdcont 命令 PDP
內容識別碼
、「
封包資料通訊協定類型
」及
存取點名稱
參數,然後按下 Enter 鍵。
27