我写了一个简单的tcp连接流程,试了很多次,只有一次连接成功,不知道问题在哪。ip地址可以ping通,tcp用电脑软件也可以连接,但是用4G模块就一直报错
log如下,请帮忙看看
Send:AT
Recv:
OK
OK
Send:AT+CPIN?
Recv:
+CPIN: READY
OK
Send:AT+CSQ
Recv:
+CSQ: 28,99
OK
Send:AT+CREG?
Recv:
+CREG: 0,1
OK
Send:AT+CGREG?
Recv:
+CGREG: 0,1
OK
Send:AT+QICSGP=1,1,“UNINET”,"","",1
Recv:
OK
Send:AT+QIDEACT=1
Recv:
OK
Send:AT+QIACT=1
Recv:
OK
Send:AT+QPING=1,“xxx”
Recv:
OK
+QPING: 0
Send:AT+QNTP=1,“202.112.10.36”,123
Recv:
OK
+QNTP: 0,“2024/08/09,08:09:38+00”
Send:AT+CCLK?
Recv:
+CCLK: “24/08/09,08:09:38+00”
OK
Send:AT+QIOPEN=1,0,“TCP”,“xxx”,8080,0,2
Recv:
ERROR
xuchen Fun:RecvCmdHand; Line: 659
Send:AT+QICLOSE=0
Recv:
OK