vshymanskyy / TinyGSM

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

modem.restart() alwas returns false for SIM7000G #399

Closed Elmi77 closed 4 years ago

Elmi77 commented 4 years ago

[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: LilyGO SIM7000G Main processor board: ESP32 / LilyGO SIM7000G TinyGSM version: latest from ArduinoIDE Code:

Scenario, steps to reproduce

Call modem.restart() to initialise/restart the modem

Expected result

At some point modem.restart() should return with true/1

Actual result

modem.restart() never returns with true. When one ignores the return code and continues with the initialisation, all seems to work, the following steps do not return any follow-up errors. Same can be seen in official example-code from LilyGO vendor: https://github.com/Xinyuan-LilyGO/LilyGO-T-SIM7000G/blob/master/examples/Arduino_TinyGSM/AllFunctions/AllFunctions.ino

The "return" is disabled, the return code of the reset()-function is ignored

Debug and AT command log

[11463] ### Unhandled: f`f [11463] ### TinyGSM Version: 0.10.5 [11463] ### TinyGSM Compiled Module: TinyGsmClientSIM7000 [11663] ### Unhandled: SMS Ready [11789] ### Modem: SIMCOM SIM7000G SIMCOM SIM7000G SIM7000G R1529