[SOLVED] Arduino Nano, SIM800L - Cannot init Modem

Рад приветствовать всех. Blynk.

Добрый день. Помогите. Что делать? SIM800L Cannot init
Сам модуль проверил. Скорость знаю. СМС и звонки идут легко.


Glad to welcome everyone. Blynk.

Good afternoon. Help. What to do? SIM800L Can not init
The module itself checked. I know the speed. SMS and calls are easy.


`/*************************************************************

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial

// Select your modem:
#define TINY_GSM_MODEM_SIM800
//#define TINY_GSM_MODEM_SIM900
//#define TINY_GSM_MODEM_M590
//#define TINY_GSM_MODEM_A6

// Default heartbeat interval for GSM is 60
// If you want override this value, uncomment and set this option:
//#define BLYNK_HEARTBEAT 30

#include <TinyGsmClient.h>
#include <BlynkSimpleSIM800.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "XXXXXXXXXXXXXXXXXXX";

// Your GPRS credentials
// Leave empty, if missing user or pass

char apn[]  = "internet";
char user[] = "";
char pass[] = "";
//const char apn[]  = "internet";
//const char user[] = "mts";
//const char pass[] = "mts";

// Hardware Serial on Mega, Leonardo, Micro
#define SerialAT Serial1

// or Software Serial on Uno, Nano
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX

TinyGsm modem(SerialAT);

void setup()
{
  delay(3000);
  // Debug console
  Serial.begin(9600);

  delay(10);

  // Set GSM module baud rate
  SerialAT.begin(9600);
  delay(3000);

  // Restart takes quite some time
  // To skip it, call init() instead of restart()
  Serial.println("Initializing modem...");
  modem.restart();

  // Unlock your SIM card with a PIN
  //modem.simUnlock("1234");

  Blynk.begin(auth, modem, apn, user, pass);
}

void loop()
{
  Blynk.run();
}

Even though it was identical, I have moved you to your own topic and formatted your code for viewing.

This is also a predominantly English speaking forum, so I edited your post to include English translation via Google Translate

I am unsure if this affects your sketch operation?.. but you need to comment out this line as you are using a different Arduino type.

e.g. // #define SerialAT Serial1 // Unneeded with Nano

Добрый день. Комментировал и не раз. С Neoway M590 работает, но нестабильно. С SIM800 не заработало вообще. Сейчас подключил SIM900 полет нормальный сразу же.
Good afternoon. Commented more than once. With Neoway M590 works, but unstable. With the SIM800 is not working at all. Now connected the SIM900 normal flight immediately.

Best suggestion I have (aside from waiting to see if anyone else has ideas) is to search this forum for SIM800 and read those topics.

https://community.blynk.cc/search?q=SIM800

You need to comment out this line and it works right.
//modem.restart();
:Грин:
Helped himself.

:slight_smile: Many of my first posts ended the same way… RE-SEAR-CH rules!!

Thanks for showing the solution, it will likely help the next person :+1: