Closed my-reminiscence closed 7 months ago
Using SIM800L and ESP8266
#define TINY_GSM_MODEM_SIM800 #include <SoftwareSerial.h> #include <TinyGsmClient.h> #include <Arduino.h> // Pin assignments for NodeMCU const int RX_PIN = D5; const int TX_PIN = D6; SoftwareSerial SerialAT(RX_PIN, TX_PIN); // RX, TX // Network details const char apn[] = "airtelgprs.com"; const char user[] = ""; const char pass[] = ""; TinyGsm modem(SerialAT); TinyGsmClient client(modem); unsigned long previousMillis = 0; const long interval = 5000; // Interval in milliseconds (5 seconds) void setup() { Serial.begin(9600); SerialAT.begin(9600); delay(2000); Serial.println("System start."); modem.restart(); Serial.println("Modem: " + modem.getModemInfo()); Serial.println("Searching for telco provider."); if(!modem.waitForNetwork()) { Serial.println("fail"); while(true); } Serial.println("Connected to telco."); Serial.println("Signal Quality: " + String(modem.getSignalQuality())); }
01:21:11.577 -> ��,System start. 01:21:19.928 -> Modem: SIM800 R14.18 01:21:19.928 -> Searching for telco provider. 01:22:21.145 -> fail 01:22:23.674 -> 01:22:23.674 -> --------------- CUT HERE FOR EXCEPTION DECODER --------------- 01:22:23.738 -> 01:22:23.738 -> Soft WDT reset 01:22:23.738 -> 01:22:23.738 -> >>>stack>>> 01:22:23.769 -> 01:22:23.769 -> ctx: cont 01:22:23.769 -> sp: 3ffffdb0 end: 3fffffd0 offset: 01a0 01:22:23.835 -> 3fffff50: 00000000 00000004 3ffee9ac 40204078 01:22:23.900 -> 3fffff60: 00000000 3ffee9ac 3ffee8e4 40202198 01:22:23.934 -> 3fffff70: 00000000 00000000 feefeffe feefeffe 01:22:23.999 -> 3fffff80: 00000000 0014004f 00000000 feefeffe 01:22:24.033 -> 3fffff90: 00000000 0014004f 00000000 feefeffe 01:22:24.098 -> 3fffffa0: feefeffe feefeffe feefeffe 3ffeea40 01:22:24.164 -> 3fffffb0: 3fffdad0 00000000 3ffeea14 40205324 01:22:24.196 -> 3fffffc0: feefeffe feefeffe 3fffdab0 40101401 01:22:24.260 -> <<<stack<<< 01:22:24.260 -> 01:22:24.260 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
It was SIM Card issue.
Using SIM800L and ESP8266