移远EC20 Ping指令,用域名获取IP 地址

移远EC20 Ping指令

AT+QPING=<contextID>,<host>
<contextID> 整型。场景ID。范围:1~15<host> 字符串类型。Host 地址格式为域名或IP地址。

//Ping IP地址
AT+QPING=1,"111.61.255.15"

OK
+QPING: 0,"111.61.255.15",32,170,52//+QPING: ,,,
+QPING: 0,"111.61.255.15",32,80,52
+QPING: 0,"111.61.255.15",32,80,52
+QPING: 0,"111.61.255.15",32,80,52
+QPING: 0,4,4,0,80,170,102//+QPING: ,,,,,,

//Ping 域名
AT+QPING=1,"ruining.zicp.fun"

OK
+QPING: 0,"103.46.128.49",32,110,53
+QPING: 0,"103.46.128.49",32,80,53
+QPING: 0,"103.46.128.49",32,80,53
+QPING: 0,"103.46.128.49",32,80,53
+QPING: 0,4,4,0,80,110,87

//Ping 网址
AT+QPING=1,"baidu.com"

OK
+QPING: 0,"110.242.68.66",32,75,50
+QPING: 0,"110.242.68.66",32,80,50
+QPING: 0,"110.242.68.66",32,80,50
+QPING: 0,"110.242.68.66",32,80,50
+QPING: 0,4,4,0,75,80,78

移远EC20 用域名获取IP 地址

AT+QIDNSGIP=<contextID>,<hostname>
<contextID> 整型。PDP 场景ID。范围:1~15<hostname> 字符串类型。域名。

AT+QIDNSGIP=1,"ruining.zicp.fun"

OK
+QIURC: "dnsgip",0,1,10//+QIURC: "dnsgip",,,
+QIURC: "dnsgip","103.46.128.49"//+QIURC: "dnsgip",



AT+QIDNSGIP=1,"baidu.com"

OK
+QIURC: "dnsgip",0,2,10//有两个IP
+QIURC: "dnsgip","39.156.66.10"
+QIURC: "dnsgip","110.242.68.66"

你可能感兴趣的:(4G网络,网络)