Booting...
SMS DONE
PB DONE
AT
OK
AT+CSQ
+CSQ: 21,99
OK
AT+CSQ
+CSQ: 21,99
OK
AT+CREG?
+CREG: 0,1
OK
AT+CREG=2
OK
AT+CREG?
+CREG: 2,1,FFFE,78D4601
OK
AT+COPS?
+COPS: 0,0,"CHINA MOBILE CMCC",7
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+CGREG=2
OK
AT+CGREG?
+CGREG: 2,1,FFFE,78D4601
OK
AT+CGATT?
+CGATT: 1
OK
+CREG: 1,FFFE,789300B
+CGREG: 1,FFFE,789300B
AT+CGACT?
+CGACT: 1,1
OK
+CREG: 1,FFFE,7892F19
+CGREG: 1,FFFE,7892F19
AT+CSQ
+CSQ: 24,99
OK
//这里开始打开网络开关
AT+NETOPEN
OK
+NETOPEN: 0
+CREG: 1,FFFE,78D4601
+CGREG: 1,FFFE,78D4601
//再次查询信号质量
AT+CSQ
+CSQ: 21,99
OK
AT+NETOPEN?
ERROR
//打开网络是否成功查询 1 网路已打开
AT+NETOPEN?
+NETOPEN: 1
OK
//查询信号质量
AT+CSQ
+CSQ: 22,99
OK
//获取本机ID
AT+IPADDR
+IPADDR: 10.95.173.207
OK
//建立TCP服务器,端口号8000
AT+SERVERSTART=8000,1
OK
//下行显示有来着XXXIP连接入服务器
+CLIENT: 0,1,10.76.225.221:35644
//接收到数据“abcd”
RECV FROM:10.76.225.221:35644
+IPD4
abcd
//查询是否有建立TCP连接,返回已建立
AT+CIPOPEN?
+CIPOPEN: 0,"TCP","10.76.225.221",35644,1
+CIPOPEN: 1
+CIPOPEN: 2
+CIPOPEN: 3
+CIPOPEN: 4
+CIPOPEN: 5
+CIPOPEN: 6
+CIPOPEN: 7
+CIPOPEN: 8
+CIPOPEN: 9
OK
//尝试向客户端发送数据,连接号0,数据大小1个字节
AT+CIPSEND=0,1
>
A
OK //发送成功
+CIPSEND: 0,1,1
//关闭连接
AT+CIPCLOSE=0
OK
+CIPCLOSE: 0,0
+CREG: 1,FFFE,789300B
+CGREG: 1,FFFE,789300B
//这里通过主机向外部连接服务器
AT+CIPOPEN=0,"TCP","10.76.225.221",8080
//返回成功
OK
+CIPOPEN: 0,1
+CREG: 1,FFFE,78D4601
+CGREG: 1,FFFE,78D4601
AT+CIPOPEN?
+CIPOPEN: 0
+CIPOPEN: 1
+CIPOPEN: 2
+CIPOPEN: 3
+CIPOPEN: 4
+CIPOPEN: 5
+CIPOPEN: 6
+CIPOPEN: 7
+CIPOPEN: 8
+CIPOPEN: 9
OK
AT+CIPOPEN=0,"TCP","10.76.225.221",8080
OK
+CIPOPEN: 0,0
RECV FROM:10.76.225.221:8080
+IPD2
sD
AT+CIPOPEN?
+CIPOPEN: 0,"TCP","10.76.225.221",8080,-1
+CIPOPEN: 1
+CIPOPEN: 2
+CIPOPEN: 3
+CIPOPEN: 4
+CIPOPEN: 5
+CIPOPEN: 6
+CIPOPEN: 7
+CIPOPEN: 8
+CIPOPEN: 9
OK
AT+CIPOPEN?
+CIPOPEN: 0,"TCP","10.76.225.221",8080,-1
+CIPOPEN: 1
+CIPOPEN: 2
+CIPOPEN: 3
+CIPOPEN: 4
+CIPOPEN: 5
+CIPOPEN: 6
+CIPOPEN: 7
+CIPOPEN: 8
+CIPOPEN: 9
OK
AT+CIPCLOSE=0
OK
+CIPCLOSE: 0,0
AT+SERVERSTOP=0
+SERVERSTOP: 0,4
ERROR
AT+SERVERSTART?
+SERVERSTART: 1,8000
OK
AT+SERVERSTOP=1
+SERVERSTOP: 1,0
OK
AT+NETCLOSE
OK
+NETCLOSE: 0