I connected my setup and used Serial communication with AT commands to try and send data to a remote server through Wi-Fi
However, no matter what i do, I cannot get the TCP protocol to initiate reliably, it sometimes fails and gives an error message, and these happen to be completely random, i could not figure out a cause whatsoever.
05:10:24.242 -> AT
05:10:24.242 ->
05:10:24.242 -> OK
05:10:32.677 -> AT+CWMODE=3
05:10:32.677 ->
05:10:32.677 -> OK
05:10:40.028 -> AT+CWLAP
05:10:41.683 -> +CWLAP:(3,"FiBiM-MMB",-56,"a8:bf:3c:1f:d9:7c",1,32767,0,4,4,7,0)
05:10:41.729 -> +CWLAP:(4,"SUPERONLINE_WiFi_5354",-65,"64:6d:6c:a5:f8:af",5,13,0,5,3,7,1)
05:10:41.775 -> +CWLAP:(4,"FIBIM-GPON",-84,"e8:65:d4:01:8b:c9",1,10,0,4,4,7,0)
05:10:41.868 -> +CWLAP:(4,"KARAKARTAL",-72,"f8:d1:11:9a:77:d0",6,1,0,5,3,7,1)
05:10:41.915 -> +CWLAP:(3,"TP-LINK_2EB4",-85,"f4:f2:6d:55:2e:b4",10,21,0,4,4,7,1)
05:10:42.010 ->
05:10:42.010 -> OK
05:11:03.487 -> AT+CWJAP="FiBiM-MMB","mmb123000"
05:11:03.533 -> WIFI DISCONNECT
05:11:05.702 -> WIFI CONNECTED
05:11:07.254 -> WIFI GOT IP
05:11:07.487 ->
05:11:07.487 -> OK
05:11:23.029 -> AT+CWDHCP=1,1
05:11:23.029 ->
05:11:23.029 -> OK
05:11:46.638 -> AT+CIPSTART="TCP","www.google.com",80
05:11:49.799 ->
05:11:49.799 -> ERROR
05:11:49.799 -> CLOSED
05:11:52.469 -> AT+CIPSTART="TCP","www.google.com",80
05:11:52.516 -> CONNECT
05:11:52.516 ->
05:11:52.516 -> OK
05:12:03.060 -> AT+CIPCLOSE
05:12:03.060 -> CLOSED
05:12:03.060 ->
05:12:03.060 -> OK
05:12:06.141 -> AT+CIPSTART="TCP","www.google.com",80
05:12:06.188 -> CONNECT
05:12:06.188 ->
05:12:06.188 -> OK
05:12:08.719 -> AT+CIPCLOSE
05:12:08.719 -> CLOSED
05:12:08.719 ->
05:12:08.719 -> OK
05:12:10.261 -> AT+CIPSTART="TCP","www.google.com",80
05:12:13.497 ->
05:12:13.497 -> ERROR
05:12:13.497 -> CLOSED
05:12:14.722 -> AT+CIPSTART="TCP","www.google.com",80
05:12:14.769 -> CONNECT
05:12:14.769 ->
05:12:14.769 -> OK
05:12:16.276 -> AT+CIPCLOSE
05:12:16.276 -> CLOSED
05:12:16.276 ->
05:12:16.276 -> OK
AT version:1.7.4.0(May 11 2020 19:13:04)
SDK version:3.0.4(9532ceb)
compile time:May 27 2020 10:12:17
Bin version(Wroom 02):1.7.4
I need this to work, as my entire project depends on it functioning properly, I hope you can help me. thank you.Statistics: Posted by mhh.2000 — Sat Dec 17, 2022 10:18 am
]]>