Dear all!
I have a problem with connecting a SIM900 Modul via GSM and GPRS. I tried Arduino Uno and ESP8266. It’s always the same situation. First it looks good, the connection works and gets READY (ping: 844ms) but after a view seconds the connection gets lost and the SIM900 Module never gets online again. While connection is okay also the device in blynk cloud is online.
I also tried with SIM800 modul. It’s always the same situation.
Power supply is a 18650 Samsung SDI batterie, so the supply is definitly not the problem.
Has anyone an idea what I can do to solve this problem?
Thanks in advance, Hans-Peter
11:58:39.763 -> Initializing modem...
11:58:47.495 -> [10720]
11:58:47.496 -> ___ __ __
11:58:47.593 -> / _ )/ /_ _____ / /__
11:58:47.593 -> / _ / / // / _ \/ '_/
11:58:47.594 -> /____/_/\_, /_//_/_/\_\
11:58:47.598 -> /___/ v1.3.2 on Arduino Uno
11:58:47.626 ->
11:58:47.626 -> #StandWithUkraine https://bit.ly/swua
11:58:47.690 ->
11:58:47.690 ->
11:58:47.690 -> [10862] Modem init...
11:58:48.734 -> [11955] Connecting to network...
11:58:54.910 -> [18153] Network: HoT
11:58:54.942 -> [18153] Connecting to internet.t-mobile.at ...
11:58:58.723 -> [21954] Connected to GPRS
11:58:58.989 -> [22235] Connecting to blynk.cloud:80
11:59:01.770 -> [25013] Ready (ping: 839ms).
11:59:08.959 -> [32167] Connecting to blynk.cloud:80
12:00:25.074 -> [108226] Connecting to blynk.cloud:8080
12:01:43.197 -> [186320] Connecting to blynk.cloud:80
#define BLYNK_TEMPLATE_ID "XXXXXXXXXXXXX"
#define BLYNK_TEMPLATE_NAME "XXXXXXXX"
#define BLYNK_AUTH_TOKEN "XXXXXXXXXX"
#define BLYNK_PRINT Serial
#define TINY_GSM_MODEM_SIM900
#include <TinyGsmClient.h>
#include <BlynkSimpleTinyGSM.h>
char apn[] = "internet.t-mobile.at";
char user[] = "";
char pass[] = "";
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
TinyGsm modem(SerialAT);
void setup()
{
// Debug console
Serial.begin(9600);
delay(10);
// Set GSM module baud rate
SerialAT.begin(9600);
delay(3000);
Serial.println("Initializing modem...");
modem.restart();
Blynk.begin(BLYNK_AUTH_TOKEN, modem, apn, user, pass);
}
void loop()
{
Blynk.run();
}