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

TinyGps restarts constantly #671

Open Therry472 opened 1 year ago

Therry472 commented 1 year ago

[ ] 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 [ ] Bug or issue with library functionality (ie, sending data over TCP/IP) [ ] Question or request for help

What are you working with?

Modem: SIM7070G Main processor board: LilyGo TTGO T-PCIE TinyGSM version: 0.11.5 Code: #define TINY_GSM_MODEM_SIM7000SSL

define SerialMon Serial

define SerialAT Serial1

include

//SoftwareSerial SerialAT(26, 27);

define TINY_GSM_DEBUG SerialMon

include

uint32_t rate = 0;

void setup() { SerialMon.begin(115200);

delay(6000); }

void loop() { if(!rate){ rate = TinyGsmAutoBaud(SerialAT); }

if(!rate){ SerialMon.println(F("")); SerialMon.println(F(" Module does not respond!")); SerialMon.println(F(" Check your Serial wiring")); SerialMon.println(F(" Check the module is correctly powered and turned on")); SerialMon.println(F("")); delay(30000L); return; }

SerialAT.begin(rate);

SerialMon.println(F("")); SerialMon.println(F(" You can now send AT commands")); SerialMon.println(F(" Enter \"AT\" (without quotes), and you should see \"OK\"")); SerialMon.println(F(" If it doesn't work, select \"Both NL & CR\" in Serial Monitor")); SerialMon.println(F(""));

while(true){ if(SerialAT.available()){ SerialMon.write(SerialAT.read()); } if(SerialMon.available()){ SerialAT.write(SerialMon.read()); } delay(0); } }

Scenario, steps to reproduce

Expected result

Actual result

On the serial monitor it says: "Trying 115200, rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1344 load:0x40078000,len:13864 load:0x40080400,len:3608 entry 0x400805f0" . after that it repeats:"Trying 115200"......etc. If i try using software serial it tries 115200 first and then goes to the next baudrate.

Debug and AT command log