Esp32 + gsm sim800l EVB

Good day guys.

When using sim800l , is there any settings that should be configured on our sim800l for it to connect to network ?

And how can i use using UART2 , any idea about the connections and the code , anyone help, i tried alot of codes but still not working

can you use AT commands, e.g.

// // SIM800L EVB ESP32 test using Serial2 (pins 16 Rx  and 17 Tx)

// connect so
// SIM800 5V to ESP32 5V
// SIM800 GND to ESP32 GND
// SIM800 VDD to ESP32 3.3v
// SIM80 TXD to ESP32 pin 16 Rx
// SIM800 TXD to ESP32 pin 17 tx

// AT+CGMI  returns the manufacturer's name
// AT+CGMM returns the MODEM model number
// AT+CGMR returns details of the software and model revision level
// AT+CGSN returns the MODEM's serial number

#include <Arduino.h>

// ESP32 example using HardwareSerial library to access Serial port 2 (pins 16 and 17)
// from https://programming.vip/docs/esp32-use-of-hardwareserial-library.html

#define SERIAL_BAUD 9600//115200

int distance = 0;

void setup() {
  //Initialize serial port 0
  Serial.begin(115200);
  //Initialize serial port 2
  Serial2.begin(SERIAL_BAUD, SERIAL_8N1);
  Serial.println("\nSIM800 EVB to ESP32 Serial port 2 test");
}

void loop() {
  while (Serial2.available() > 0) {
    uint8_t byteFromSerial = Serial2.read();
    Serial.write(byteFromSerial);
  }
  while (Serial.available() > 0) {
    uint8_t byteFromSerial1 = Serial.read();
    Serial2.write(byteFromSerial1);
  }
}

SIM800 EVB to ESP32 Serial port 2 test serial monitor output

at
OK
at+cgmi
SIMCOM_Ltd
OK
at+cgmm
SIMCOM_SIM800L
OK
at+cgmr
Revision:1418B05SIM800L24
OK

photo
image

Its not responding to any commands
I am using a buck to buck convertor for powering the gsm, then the connections and mentioned in the codee

give details of your wiring
initially try powering it from the ESP32 which should give sufficient power for AT tests
when that works add the external power supply required for data transmission

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.