ESP32 SIM800L can't connect to new platform

Hi, I am trying to connect ESP32 SIM800L to new blynk platform. I am using the sletch from the examples:


#define BLYNK_PRINT Serial

/* Fill-in your Template ID (only if using Blynk.Cloud) */
#define BLYNK_TEMPLATE_ID "TMPL23T-oMFk"
#define BLYNK_DEVICE_NAME "Entra Energy"


// Select your modem:
#define TINY_GSM_MODEM_SIM800
//#define TINY_GSM_MODEM_SIM900
//#define TINY_GSM_MODEM_M590
//#define TINY_GSM_MODEM_A6
//#define TINY_GSM_MODEM_A7
//#define TINY_GSM_MODEM_BG96
//#define TINY_GSM_MODEM_XBEE

// 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 <BlynkSimpleTinyGSM.h>

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

// Your GPRS credentials
// Leave empty, if missing user or pass
char apn[]  = "internet.vivacom.bg";
char user[] = "";
char pass[] = "";

long currentMillisSend = 0;
long previousMillisSend = 0;
long intervalSend = 5000;
int counter = 0;

// 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()
{
  // Debug console
  Serial.begin(9600);

  delay(10);

  // Set GSM module baud rate
  SerialAT.begin(115200);
  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()
{
  unsigned long currentMillisSend = millis();  
  
  if(currentMillisSend - previousMillisSend > intervalSend)
  {
    counter = counter + 1;
    Blynk.virtualWrite(V1, counter);
  }
  previousMillisSend = currentMillisSend;
  Blynk.run();
}

The sketch is uploaded to the device, but the serial monitor shows errors:

ts Jun  8 2016 00:22:57

rst:0xc (SW_CPU_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:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4

Also the device wont to connect to the platform

Thank you very much for your help!

What board type did you select in the IDE ?

Pete.

TTGO T1. It working properly and connects to cellular if i dont use blynk

Hello, were you able to solve it?

@Misinino I’d suggest that you start a new “need help with my project” topic, and provide as much details as possible.

1 Like

Hi, I decided to use mqtt and Node-Red as a “bridge” to communicate with the blynk platform.

2 Likes