ESP32-WROOM-32UE 建立的socket 为啥自己总是关闭
Posted: Fri Mar 29, 2024 8:29 am
ESP32-WROOM-32UE 建立的socket 为啥自己总是关闭,具体如下:
[14:25:06.506]收←◆
ready
[14:25:45.223]发→◇AT+CWJAP="EX_Staff","EXdalianjinshitan90."
□
[14:25:45.232]收←◆AT+CWJAP="EX_Staff","EXdalianjinshitan90."
[14:25:49.958]收←◆WIFI CONNECTED
[14:25:50.961]收←◆WIFI GOT IP
OK
[14:26:03.607]发→◇AT+CIPMUX=1
□
[14:26:03.614]收←◆AT+CIPMUX=1
OK
[14:26:22.216]发→◇AT+CIPSTART=0,"UDP","192.168.89.44",9527
□
[14:26:22.224]收←◆AT+CIPSTART=0,"UDP","192.168.89.44",9527
[14:26:22.232]收←◆0,CONNECT
OK
[14:26:31.728]发→◇AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
□
[14:26:31.737]收←◆AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
[14:26:31.869]收←◆1,CONNECT
OK
[14:27:02.055]收←◆1,CLOSED
[14:28:24.144]发→◇AT+CIPTCPOPT?
□
[14:28:24.150]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0
[14:28:24.156]收←◆,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:29:29.864]发→◇AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
□
[14:29:29.872]收←◆AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
[14:29:30.224]收←◆1,CONNECT
OK
[14:29:40.016]发→◇AT+CIPTCPOPT?
□
[14:29:40.022]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CI
[14:29:40.030]收←◆PTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:30:00.424]收←◆1,CLOSED
[14:53:38.279]发→◇AT+CIPCLOSE=0
□
[14:53:38.287]收←◆AT+CIPCLOSE=0
0,CLOSED
OK
[14:53:54.782]发→◇AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
□
[14:53:54.791]收←◆AT+CIPSTART=1,"TCP","183.230.40.
[14:53:54.795]收←◆39",6002,0
[14:53:54.881]收←◆1,CONNECT
OK
[14:54:03.712]发→◇AT+CIPTCPOPT?
□
[14:54:03.718]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:54:25.086]收←◆1,CLOSED
[14:55:12.951]发→◇AT+CIPTCPOPT?
□
[14:55:12.957]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3
[14:55:12.970]收←◆,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:55:31.302]发→◇AT+CIPTCPOPT?
□
[14:55:31.307]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0
[14:55:31.312]收←◆,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:55:51.278]发→◇AT+CIPTCPOPT?
□
[14:55:51.284]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3
[14:55:51.297]收←◆,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:56:06.631]发→◇AT+CIPTCPOPT?
□
[14:56:06.637]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:56:35.071]发→◇AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
□
[14:56:35.079]收←◆AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
[14:56:35.412]收←◆1,CONNECT
OK
[14:56:45.136]发→◇AT+CIPTCPOPT?
□
[14:56:45.142]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:57:00.022]发→◇AT+CIPSTART=0,"TCP","183.230.40.39",6002,0
□
[14:57:00.030]收←◆AT+CIPSTART=0,"TCP","183.230.40.39",6002,0
[14:57:00.234]收←◆0,CONNECT
OK
[14:57:30.709]收←◆0,CLOSED
[14:25:06.506]收←◆
ready
[14:25:45.223]发→◇AT+CWJAP="EX_Staff","EXdalianjinshitan90."
□
[14:25:45.232]收←◆AT+CWJAP="EX_Staff","EXdalianjinshitan90."
[14:25:49.958]收←◆WIFI CONNECTED
[14:25:50.961]收←◆WIFI GOT IP
OK
[14:26:03.607]发→◇AT+CIPMUX=1
□
[14:26:03.614]收←◆AT+CIPMUX=1
OK
[14:26:22.216]发→◇AT+CIPSTART=0,"UDP","192.168.89.44",9527
□
[14:26:22.224]收←◆AT+CIPSTART=0,"UDP","192.168.89.44",9527
[14:26:22.232]收←◆0,CONNECT
OK
[14:26:31.728]发→◇AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
□
[14:26:31.737]收←◆AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
[14:26:31.869]收←◆1,CONNECT
OK
[14:27:02.055]收←◆1,CLOSED
[14:28:24.144]发→◇AT+CIPTCPOPT?
□
[14:28:24.150]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0
[14:28:24.156]收←◆,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:29:29.864]发→◇AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
□
[14:29:29.872]收←◆AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
[14:29:30.224]收←◆1,CONNECT
OK
[14:29:40.016]发→◇AT+CIPTCPOPT?
□
[14:29:40.022]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CI
[14:29:40.030]收←◆PTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:30:00.424]收←◆1,CLOSED
[14:53:38.279]发→◇AT+CIPCLOSE=0
□
[14:53:38.287]收←◆AT+CIPCLOSE=0
0,CLOSED
OK
[14:53:54.782]发→◇AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
□
[14:53:54.791]收←◆AT+CIPSTART=1,"TCP","183.230.40.
[14:53:54.795]收←◆39",6002,0
[14:53:54.881]收←◆1,CONNECT
OK
[14:54:03.712]发→◇AT+CIPTCPOPT?
□
[14:54:03.718]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:54:25.086]收←◆1,CLOSED
[14:55:12.951]发→◇AT+CIPTCPOPT?
□
[14:55:12.957]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3
[14:55:12.970]收←◆,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:55:31.302]发→◇AT+CIPTCPOPT?
□
[14:55:31.307]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0
[14:55:31.312]收←◆,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:55:51.278]发→◇AT+CIPTCPOPT?
□
[14:55:51.284]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3
[14:55:51.297]收←◆,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:56:06.631]发→◇AT+CIPTCPOPT?
□
[14:56:06.637]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:56:35.071]发→◇AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
□
[14:56:35.079]收←◆AT+CIPSTART=1,"TCP","183.230.40.39",6002,0
[14:56:35.412]收←◆1,CONNECT
OK
[14:56:45.136]发→◇AT+CIPTCPOPT?
□
[14:56:45.142]收←◆AT+CIPTCPOPT?
+CIPTCPOPT:0,-1,0,0,0
+CIPTCPOPT:1,-1,0,0,0
+CIPTCPOPT:2,-1,0,0,0
+CIPTCPOPT:3,-1,0,0,0
+CIPTCPOPT:4,-1,0,0,0
OK
[14:57:00.022]发→◇AT+CIPSTART=0,"TCP","183.230.40.39",6002,0
□
[14:57:00.030]收←◆AT+CIPSTART=0,"TCP","183.230.40.39",6002,0
[14:57:00.234]收←◆0,CONNECT
OK
[14:57:30.709]收←◆0,CLOSED