vshymanskyy / TinyGSM

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

SIM7080g gprsConnect fails every 30 minutes... #722

Open wlueger opened 1 year ago

wlueger commented 1 year ago

Hello!

Thanks for the great library first of all!

[x] I have read the Troubleshooting section of the ReadMe

What type of issues is this?

[ ] Request to support a new module

[ ] Bug or problem compiling the library [x] Bug or issue with library functionality (ie, sending data over TCP/IP) [ ] Question or request for help

What are you working with?

Modem: SIM7080g Main processor board: ESP32 C3, devboard TinyGSM version: 0.11.5

Scenario, steps to reproduce

I am transfering measurements over mqtt to our server. To reduce power-consumption, i need a mode where i turn of connection: gprsDisconnect, between sendings. This works, but e.g. when i send every minute (reconnect every minute), it is that every 30 minutes (aprox.) gprsConnect fails. Then i restart the modem (which takes time) and it works again for 30 min. It seems that something is "stacking" until it fails. It would be great if i could "clear" this "stack" manually, because so it takes too long, with the reset of the modem!

Expected result

No failing of connection (gprsConnect) every 30 min.

Debug and AT command log

there is nothing abnormal from the Tiny-Log at all!

Thanks in advance, Cheers, W.

droidblastnz commented 10 months ago

Does it work if you dont gprsDisconnect? Have you tried to initalize the modem again if not connecting after a gprsDisconnect?

// Restart takes quite some time, to skip it, call init() instead of restart()
  DBG("Initializing modem...");
  if (!modem.init()) {
    DBG("Failed to restart modem, delaying 10's and retrying");
  }