vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 709 forks source link

Sim800 - connection issue #648

Closed robertkesek closed 2 years ago

robertkesek commented 2 years ago

Modem: SIMCOM SIM800L Main processor board: ESP8266 TinyGSM version: 0.11.5 Very often modem is stuck in an infinite loop inside: int8_t res = waitResponse(GF(",\"CONNECTED\""), GF(",\"CLOSED\""), GF(",\"CLOSING\""), GF(",\"REMOTE CLOSING\""), GF(",\"INITIAL\""));

20:50:37.918 -> AT+CIPSTATUS=0 20:50:37.952 -> 20:50:37.952 -> +CIPSTATUS: 0,0,"TCP","51.116.145.38","80","CONNECTED" 20:50:38.019 -> 20:50:38.019 -> OK 20:50:39.034 -> AT+CIPRXGET=4,0 20:50:39.034 -> 20:50:39.034 -> +CIPRXGET: 4,0,0 20:50:39.034 -> 20:50:39.034 -> OK

last time it was more than 30 hours...

Any idea how to discover such a situation?

robertkesek commented 2 years ago

Fixed by adding timeout and restarting ESP8266.