Hands-on IoT connectivity guides

Waveshare ESP32-S3 SIM7670G: 4G LTE Setup with Arduino

The Waveshare ESP32-S3 SIM7670G puts an ESP32-S3 and a SIMCom SIM7670G LTE Cat-1 modem on one board, so a sketch can go online without Wi-Fi. Waveshare documents the camera, SD card and battery in Arduino, but not the part most people buy it for: getting on 4G. This guide takes the board from the box to its first LTE connection with Arduino and TinyGSM, then makes plain HTTP and HTTPS requests.

Waveshare ESP32-S3 SIM7670G 4G LTE board held outdoors

Test Environment & Requirements

The exact parts and versions used in this test.

Kit contents: ESP32-S3 SIM7670G board, SIM card, LTE antenna, GNSS antenna and USB-C cable
The parts used in this guide: Waveshare ESP32-S3 SIM7670G board, SIM card, USB-C cable, LTE antenna and GNSS antenna.

Hardware

Main deviceWaveshare ESP32-S3 SIM7670G 4G
Programming computerRaspberry Pi 4 Model B, over SSH (any computer that runs the Arduino tools works)
SIMSixfab SIM, nano SIM size
LTE antennaFlexible LTE antenna (included)
GNSS antennaCeramic GNSS antenna, IPEX (included)
CableUSB-C data cable (not charge-only)
Battery (optional)18650 Li-ion cell, 3.7 V

Software

Arduino toolsarduino-cli 1.5.1 (Arduino IDE 2 works the same way)
Board packageesp32 by Espressif Systems 3.3.12, board ESP32S3 Dev Module
LibraryTinyGSM 0.12.0
Modem firmwareSIM7670G-MNGV, V1.9.05
Serial terminalminicom (any serial monitor at 115200 baud works)

Test information

Test date2026-11-06
LocationUnited States
NetworkLTE Cat-1

Before you start

  • The SIM card must be activated with its provider before you start. A SIM card that is inserted but not activated is detected by the modem but never registers on a network, which looks identical to a hardware problem. We hit this in our test; see Problems & Troubleshooting.
  • Both antennas must be connected before powering on the board. Running the modem without an antenna can damage the RF front-end.
  • The USB-C cable must carry data. Many short cables are charge-only, and the board then never shows up as a serial port.
  • You need a computer to compile the sketches and upload them over USB. The ESP32-S3 runs the sketch on its own; the computer is only used for uploading and for watching the serial output. This test used a Raspberry Pi 4 over SSH because the board sat on a remote test bench. Any Raspberry Pi with a 64-bit OS uses exactly the same commands, and a Windows, macOS or Linux PC works too; see Install the Arduino Tools.

Hardware & Software Setup

Get to Know the Board

Two chips share this board: the ESP32-S3 runs your sketch, and the SIM7670G modem handles 4G and GNSS. They talk over a UART: the ESP32-S3 sends on GPIO18 and receives on GPIO17. The sketch only ever sends text commands (AT commands) to the modem over these two pins.

Front of the board: SIM7670G modem on the left, ESP32-S3 on the right
Front: SIM7670G modem on the left, ESP32-S3 on the right.
Back of the board with the battery holder and the DIP switches
Back: 18650 battery holder and the DIP switches.

The DIP switches on the back decide most first-day problems:

  • 4G module power: must be on, or the modem never answers.
  • USB routing (USB): the single USB-C port goes either to the ESP32-S3 (for uploading sketches and the serial monitor) or straight to the 4G modem. For this guide it must go to the ESP32-S3; on our board that was the off position.
  • Camera power: not needed here; leave it off.
  • USB hub (HUB): leave it on. On our board the USB-to-serial chip that the ESP32-S3 uses sits behind this hub.
LEDMeaning
BluePower
RedNetwork: blinks every 200 ms once the modem is registered
GreenSolar charging
YellowBattery inserted the wrong way round

Note. Positions in our test: CAM off, HUB on, 4G on, USB off. Check the switch labels against Waveshare’s table for your board revision.

Important. Connect both antennas before powering the board.

Insert the SIM Card

Slide the nano SIM card into the slot in the orientation shown below, and push until it is fully seated.

Empty nano SIM slot next to the SIM7670G modem
The SIM slot, empty.
Nano SIM card inserted into the slot
The SIM card inserted and fully seated.

Connect the Antennas

Connect the LTE antenna to the main antenna connector and the GNSS antenna to the GNSS IPEX connector. Press IPEX connectors straight down until they click. Keep the GNSS antenna near a window or outdoors.

MAIN and GNSS antenna connectors next to the SIM7670G modem
MAIN is the LTE antenna, GNSS is the GPS antenna.
LTE antenna on MAIN and ceramic GNSS antenna on GNSS
Both antennas connected.

Set the DIP Switches

Set CAM off, HUB on, 4G on and USB off, as described in the board tour.

DIP switches as shipped: CAM, HUB, 4G and USB all on
As the board arrived.
DIP switches set for this guide: HUB and 4G on, CAM and USB off
Set for this guide: CAM off, HUB on, 4G on, USB off.

Connect USB-C

Connect the board to your computer. The blue power LED turns on, and a new serial port appears:

Board on USB-C power with both antennas attached and the power LED on
Powered over USB-C, blue power LED on.

bash

pi@pi:~ $ ls /dev/ttyACM*

output

/dev/ttyACM0

The rest of the guide calls this port PORT. On other computers it has a different name:

ComputerPort nameWhere to find it
Raspberry Pi / Linux/dev/ttyACM0ls /dev/ttyACM*
macOS/dev/cu.usbmodem…ls /dev/cu.usbmodem*
WindowsCOM3 or similarDevice Manager → Ports (COM & LPT)

In Arduino IDE 2 the port appears under Tools → Port on every system.

Install the Arduino Tools

You need three things on the programming computer: the Arduino tools, the ESP32 board package and the TinyGSM library. Pick the path that matches your computer.

Raspberry Pi or Linux, command line (used in this test): install arduino-cli, add Espressif’s board package URL, then install the ESP32 core and TinyGSM. These commands are the same on every Raspberry Pi with a 64-bit OS.

bash

pi@pi:~ $ sudo apt update && sudo apt install -y minicom
pi@pi:~ $ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=$HOME/.local/bin sh
pi@pi:~ $ export PATH="$HOME/.local/bin:$PATH"
pi@pi:~ $ arduino-cli config init
pi@pi:~ $ arduino-cli config add board_manager.additional_urls https://espressif.github.io/arduino-esp32/package_esp32_index.json
pi@pi:~ $ arduino-cli core update-index
pi@pi:~ $ arduino-cli core install esp32:esp32@3.3.12
pi@pi:~ $ arduino-cli lib install TinyGSM@0.12.0

The export line makes arduino-cli available in the current terminal; after the next login it is found automatically. The version numbers are the ones used in this test.

Windows or macOS? Nothing in this guide depends on the Raspberry Pi. On a Windows or macOS computer, use Arduino IDE 2 instead of the commands above:

  • Install Arduino IDE 2 from arduino.cc/en/software.
  • In File → Preferences (on macOS: Arduino IDE → Settings), add this to Additional boards manager URLs: https://espressif.github.io/arduino-esp32/package_esp32_index.json
  • In Boards Manager, install esp32 by Espressif Systems (3.3.12 in this test); in Library Manager, install TinyGSM (0.12.0).
  • Under Tools → Board, select ESP32S3 Dev Module, the same board as the FQBN esp32:esp32:esp32s3 used below, and pick the board’s port: a COM port on Windows, /dev/cu.usbmodem… on macOS. If Windows shows an unknown device instead of a COM port, install WCH’s CH343 driver.

For the AT commands, use the IDE’s Serial Monitor instead of minicom: set it to 115200 baud and Both NL & CR, then type each command and press Enter.

Cellular Configuration

First check the modem, SIM card and antenna by hand with AT commands, then run the full TinyGSM sketch.

Upload the AT Passthrough Sketch

Before the full example, talk to the modem by hand. This short sketch forwards everything you type to the modem and prints its answers:

at_passthrough.ino

// Waveshare ESP32-S3 SIM7670G 4G — AT passthrough
//
// Whatever you type in the serial monitor goes to the SIM7670G modem, and the modem's
// answers come back. Use it for the first checks (AT, SIM, signal, network) before
// running the full example.
//
// Wiring on this board: ESP32-S3 GPIO17 (RX) <- modem TX, GPIO18 (TX) -> modem RX.
// Serial monitor: 115200 baud, line ending "Both NL & CR" (or CR).

#include <Arduino.h>

static const int MODEM_RX_PIN = 17;   // ESP32-S3 receives on this pin
static const int MODEM_TX_PIN = 18;   // ESP32-S3 sends on this pin
static const uint32_t MODEM_BAUD = 115200;

void setup() {
  Serial.begin(115200);
  Serial1.begin(MODEM_BAUD, SERIAL_8N1, MODEM_RX_PIN, MODEM_TX_PIN);
  delay(1000);
  Serial.println();
  Serial.println("AT passthrough ready. Type AT and press Enter.");
}

void loop() {
  while (Serial.available()) {
    Serial1.write(Serial.read());
  }
  while (Serial1.available()) {
    Serial.write(Serial1.read());
  }
}

bash

pi@pi:~ $ mkdir -p ~/sim7670g/at_passthrough && cd ~/sim7670g
pi@pi:~/sim7670g $ nano at_passthrough/at_passthrough.ino
pi@pi:~/sim7670g $ arduino-cli compile --fqbn esp32:esp32:esp32s3 at_passthrough
pi@pi:~/sim7670g $ arduino-cli upload -p PORT --fqbn esp32:esp32:esp32s3 at_passthrough
pi@pi:~/sim7670g $ minicom -D PORT -b 115200

arduino-cli expects each sketch in a folder with the same name. In nano, paste the code above, save with Ctrl+O and Enter, and exit with Ctrl+X. Replace PORT with your port name.

Exit minicom with Ctrl+A then X. In Arduino IDE 2, upload with the Upload button and open Tools → Serial Monitor at 115200 baud, with the line ending set to Both NL & CR.

Check the Modem, SIM and Network

Send these commands one by one:

CommandExpected answerMeaning
ATOKThe modem answers; the UART pins are right
ATIModel and firmwareConfirms it is a SIM7670G
AT+CPIN?+CPIN: READYThe SIM is detected
AT+CSQ+CSQ: 10 to 31Signal quality (99 means no signal)
AT+CEREG?+CEREG: 0,1 or 0,5Registered on LTE (5 = roaming)
AT+COPS?Operator nameThe network you joined
AT+CPSI?LTE,Online,...Network type, band and signal details

Example output from our test (IMEI and cell identifiers masked):

output

AT
OK
ATI
Manufacturer: SIMCOM INCORPORATED
Model: SIM7670G-MNGV
Revision: V1.9.05
IMEI: xxxxxxxxxxxxxxx

OK
AT+CPIN?
+CPIN: READY

OK
AT+CSQ
+CSQ: 25,99

OK
AT+CEREG?
+CEREG: 0,5

OK
AT+COPS?
+COPS: 0,2,"310410",7

OK
AT+CPSI?
+CPSI: LTE,Online,310-410,0xXXXX,XXXXXXXXX,XXX,EUTRAN-BAND5,2549,3,3,-11,-88,-76,12

OK

+CEREG: 0,5 means registered while roaming, which is normal for a Sixfab SIM card in the US. 310410 is AT&T; in another run the modem joined Verizon (311480) on Band 66. In +CPSI, the last four numbers are RSRQ (dB), RSRP (dBm), RSSI (dBm) and SINR (dB).

Set Your APN

Open first_lte.ino and set the APN provided by your SIM card’s provider. The SIM card used in this test uses super and needs no username or password. Set it on this line:

first_lte.ino

static const char APN[]       = "super";   // Sixfab SIM. Use your SIM provider's APN.

The sketch tells TinyGSM which modem it talks to with #define TINY_GSM_MODEM_A7672X. The SIM7670G belongs to the same SIMCom family as the A7670 series, and TinyGSM 0.12.0 supports it under that name. TinyGSM starts the modem, joins the network and opens the data connection; the HTTP and HTTPS requests use the modem’s own HTTP service (more on that below).

Full sketch: first_lte.ino

first_lte.ino

// Waveshare ESP32-S3 SIM7670G 4G — first LTE connection
//
// 1. Starts the SIM7670G modem and checks the SIM
// 2. Waits for the LTE network and prints operator, signal and network details
// 3. Opens a data connection with the APN
// 4. Plain HTTP request with the modem's own HTTP commands
// 5. HTTPS request with the same commands (SNI turned on)
// 6. Turns on GNSS and prints the first position fix
//
// Libraries: TinyGSM (Library Manager). Board: ESP32S3 Dev Module (esp32:esp32:esp32s3).
// Serial monitor: 115200 baud.

// The SIM7670G belongs to the same family as SIMCom's A7670 series. TinyGSM 0.12 and
// newer support it as A7672X. If your TinyGSM version does not know this name,
// try TINY_GSM_MODEM_SIM7600 instead.
#define TINY_GSM_MODEM_A7672X
#define TINY_GSM_RX_BUFFER 1024

#include <Arduino.h>
#include <TinyGsmClient.h>

// ---------- settings ----------
static const char APN[]       = "super";   // Sixfab SIM. Use your SIM provider's APN.
static const char APN_USER[]  = "";
static const char APN_PASS[]  = "";
static const char HTTP_URL[]  = "http://example.com/";
static const char HTTPS_URL[] = "https://api.ipify.org/?format=json";

static const int MODEM_RX_PIN = 17;          // ESP32-S3 receives on this pin
static const int MODEM_TX_PIN = 18;          // ESP32-S3 sends on this pin
static const uint32_t MODEM_BAUD = 115200;
// -------------------------------

#define SerialAT Serial1
TinyGsm modem(SerialAT);

// Sends an AT command and prints every line the modem answers until OK/ERROR or timeout.
String atQuery(const char *cmd, uint32_t timeoutMs = 3000) {
  while (SerialAT.available()) SerialAT.read();
  SerialAT.print("AT");
  SerialAT.print(cmd);
  SerialAT.print("\r\n");
  String all;
  uint32_t start = millis();
  while (millis() - start < timeoutMs) {
    if (!SerialAT.available()) { delay(5); continue; }
    String line = SerialAT.readStringUntil('\n');
    line.trim();
    if (line.length() == 0) continue;
    all += line + "\r\n";
    if (line == "OK" || line.startsWith("ERROR") || line.startsWith("+CME ERROR")) break;
  }
  Serial.print("> AT");
  Serial.println(cmd);
  Serial.print(all);
  return all;
}

// Waits for an unsolicited line that starts with `prefix` (for example "+HTTPACTION:").
String waitFor(const char *prefix, uint32_t timeoutMs) {
  uint32_t start = millis();
  while (millis() - start < timeoutMs) {
    if (!SerialAT.available()) { delay(5); continue; }
    String line = SerialAT.readStringUntil('\n');
    line.trim();
    if (line.startsWith(prefix)) return line;
  }
  return "";
}

bool startModem() {
  Serial.println("\n[1] Starting modem...");
  SerialAT.begin(MODEM_BAUD, SERIAL_8N1, MODEM_RX_PIN, MODEM_TX_PIN);
  for (int i = 0; i < 20; i++) {          // the modem needs a few seconds after power-up
    if (modem.testAT(1000)) break;
    Serial.print(".");
  }
  if (!modem.init()) {
    Serial.println("Modem did not answer. Check the DIP switch (4G power) and pins 17/18.");
    return false;
  }
  Serial.print("Modem: ");
  Serial.println(modem.getModemInfo());
  int sim = modem.getSimStatus();
  Serial.print("SIM status: ");
  Serial.println(sim == 1 ? "READY" : String(sim));
  return sim == 1;
}

bool joinNetwork() {
  Serial.println("\n[2] Waiting for the LTE network...");
  uint32_t t0 = millis();
  if (!modem.waitForNetwork(180000L)) {
    Serial.println("No network after 3 minutes. Check the LTE antenna and AT+CPSI? output.");
    atQuery("+CPSI?");
    return false;
  }
  Serial.printf("Registered in %lu s\r\n", (unsigned long)((millis() - t0) / 1000));
  Serial.print("Operator: ");
  Serial.println(modem.getOperator());
  Serial.print("Signal quality (0-31): ");
  Serial.println(modem.getSignalQuality());
  atQuery("+CPSI?");                      // network mode, band, RSRP/RSRQ
  return true;
}

bool openData() {
  Serial.println("\n[3] Opening data connection (APN: " + String(APN) + ")...");
  uint32_t t0 = millis();
  if (!modem.gprsConnect(APN, APN_USER, APN_PASS)) {
    Serial.println("Data connection failed. Check the APN.");
    return false;
  }
  Serial.printf("Connected in %lu ms, IP: ", (unsigned long)(millis() - t0));
  Serial.println(modem.localIP());
  return true;
}

// GET request with the modem's own HTTP(S) service (AT+HTTP...).
// useSsl = true adds the SSL settings HTTPS needs on this modem.
void httpGet(const char *step, const char *url, bool useSsl) {
  Serial.println(String("\n") + step + " GET " + url + " (modem HTTP service)");
  uint32_t t0 = millis();
  atQuery("+HTTPTERM");                    // closes a session left open by an earlier run;
                                           // ERROR here only means none was open
  if (useSsl) {
    // Without SNI the modem does not send the site name during the TLS handshake,
    // and most HTTPS servers refuse it: +HTTPACTION then ends with status 715.
    atQuery("+CSSLCFG=\"enableSNI\",0,1");
  }
  atQuery("+HTTPINIT");
  atQuery((String("+HTTPPARA=\"URL\",\"") + url + "\"").c_str());
  if (useSsl) atQuery("+HTTPPARA=\"SSLCFG\",0");   // use SSL context 0 configured above
  SerialAT.print("AT+HTTPACTION=0\r\n");  // 0 = GET
  String action = waitFor("+HTTPACTION:", 60000);
  Serial.println(action.length() ? action : "No +HTTPACTION answer within 60 s");
  // +HTTPACTION: <method>,<status>,<length>
  int len = action.substring(action.lastIndexOf(',') + 1).toInt();
  if (len > 0) {
    // The modem answers OK first, then "+HTTPREAD: <n>", the body, and "+HTTPREAD: 0" at the end.
    if (len > 512) len = 512;              // print only the start of a long page
    SerialAT.print(String("AT+HTTPREAD=0,") + len + "\r\n");
    uint32_t start = millis();
    while (millis() - start < 10000) {
      if (!SerialAT.available()) { delay(5); continue; }
      String line = SerialAT.readStringUntil('\n');
      line.trim();
      if (line.length() == 0 || line == "OK") continue;
      if (line == "+HTTPREAD: 0") break;
      if (!line.startsWith("+HTTPREAD:")) Serial.println("Body: " + line);
    }
  }
  atQuery("+HTTPTERM");
  Serial.printf("Took %lu ms\r\n", (unsigned long)(millis() - t0));
}

void gnssFix() {
  Serial.println("\n[6] GNSS: waiting for the first fix (needs the GNSS antenna and open sky)...");
  atQuery("+CGNSSPWR=1", 5000);
  uint32_t t0 = millis();
  while (millis() - t0 < 120000) {        // up to 2 minutes
    String info = atQuery("+CGNSSINFO");
    // Without a fix the modem answers "+CGNSSINFO: ,,,,,,,," (empty fields)
    int p = info.indexOf("+CGNSSINFO:");
    String fields = p >= 0 ? info.substring(p + 11, info.indexOf('\n', p)) : "";
    fields.trim();
    if (fields.length() > 0 && !fields.startsWith(",")) {
      Serial.printf("First fix after %lu s\r\n", (unsigned long)((millis() - t0) / 1000));
      return;
    }
    delay(10000);
  }
  Serial.println("No fix in 2 minutes. Move the GNSS antenna to a window or outdoors.");
}

void setup() {
  Serial.begin(115200);
  delay(1500);
  Serial.println("\nWaveshare ESP32-S3 SIM7670G - first LTE connection");
  if (!startModem()) return;
  if (!joinNetwork()) return;
  if (!openData()) return;
  httpGet("[4] HTTP", HTTP_URL, false);
  httpGet("[5] HTTPS", HTTPS_URL, true);
  gnssFix();
  Serial.println("\nDone.");
}

void loop() {
  // Type AT commands in the serial monitor to talk to the modem after the run.
  while (Serial.available()) SerialAT.write(Serial.read());
  while (SerialAT.available()) Serial.write(SerialAT.read());
}

Upload and Watch the Output

Close minicom first (Ctrl+A then X): the upload cannot use the port while minicom has it open. Then create the sketch the same way as before and paste the full code from the previous step.

bash

pi@pi:~ $ mkdir -p ~/sim7670g/first_lte && cd ~/sim7670g
pi@pi:~/sim7670g $ nano first_lte/first_lte.ino
pi@pi:~/sim7670g $ arduino-cli compile --fqbn esp32:esp32:esp32s3 first_lte
pi@pi:~/sim7670g $ arduino-cli upload -p PORT --fqbn esp32:esp32:esp32s3 first_lte
pi@pi:~/sim7670g $ minicom -D PORT -b 115200

In Arduino IDE 2: open first_lte.ino, press Upload, then open the Serial Monitor at 115200 baud.

The sketch goes through its steps and prints how long each one takes. Our run, up to the HTTPS request (IMEI, IP addresses and cell identifiers masked):

output

Waveshare ESP32-S3 SIM7670G - first LTE connection

[1] Starting modem...
Modem: Manufacturer: SIMCOM INCORPORATED Model: SIM7670G-MNGV Revision: V1.9.05 IMEI: xxxxxxxxxxxxxxx
SIM status: READY

[2] Waiting for the LTE network...
Registered in 0 s
Operator: 310410
Signal quality (0-31): 26
> AT+CPSI?
+CPSI: LTE,Online,310-410,0xXXXX,XXXXXXXXX,XXX,EUTRAN-BAND5,2549,3,3,-12,-89,-76,11
OK

[3] Opening data connection (APN: super)...
Connected in 76 ms, IP: 10.x.x.x

[4] HTTP GET http://example.com/ (modem HTTP service)
> AT+HTTPTERM
ERROR
> AT+HTTPINIT
OK
> AT+HTTPPARA="URL","http://example.com/"
OK
+HTTPACTION: 0,200,577
Body: <!doctype html><html lang=en><head><meta charset=utf-8>...
> AT+HTTPTERM
OK
Took 987 ms

[5] HTTPS GET https://api.ipify.org/?format=json (modem HTTP service)
> AT+HTTPTERM
ERROR
> AT+CSSLCFG="enableSNI",0,1
OK
> AT+HTTPINIT
OK
> AT+HTTPPARA="URL","https://api.ipify.org/?format=json"
OK
> AT+HTTPPARA="SSLCFG",0
OK
+HTTPACTION: 0,200,21
Body: {"ip":"x.x.x.x"}
> AT+HTTPTERM
OK
Took 2711 ms
  • Registered in 0 s: the modem was still registered from the AT check. From a cold start, registration takes longer.
  • ERROR after the first AT+HTTPTERM: expected. The sketch closes any HTTP session left open by an earlier run, and there was none.
  • +HTTPACTION: 0,200,…: a GET request (0) answered with HTTP status 200; the last number is the size of the answer in bytes.

Why the requests use the modem’s own commands. In our test, TinyGSM’s TCP client (client.connect) could not open a connection on this modem, while the SIM7670G’s built-in HTTP(S) service (AT+HTTPINIT, AT+HTTPPARA, AT+HTTPACTION, AT+HTTPREAD) worked for both HTTP and HTTPS. The modem also does the TLS work, so the ESP32-S3 only reads the answer. For HTTPS, the sketch turns on SNI with AT+CSSLCFG="enableSNI",0,1; without it the request failed with +HTTPACTION: 0,715,0.

GPS / GNSS Configuration

Read the Position

The last step of the sketch turns on the GNSS receiver with AT+CGNSSPWR=1 and asks for a position with AT+CGNSSINFO every 10 seconds, for up to two minutes. Until there is a fix, the answer is +CGNSSINFO: ,,,,,,,,; once the receiver has a fix, the fields fill in with latitude, longitude, date and time. Place the GNSS antenna at a window or outdoors, with a view of the sky.

Connection Verification & Test Results

Measured during our test in the US, from the serial output above:

MetricResult
Operator / networkAT&T (310410), LTE Band 5, roaming; Verizon (311480) Band 66 in another run
SignalCSQ 25–26, RSRP −88 to −90 dBm, RSRQ −11 to −12 dB, SINR 9–12 dB
Data connection76–160 ms
HTTP request987 ms (status 200, 577 bytes)
HTTPS request2711 ms (status 200)

Problems & Troubleshooting

Click a problem to expand its solution.

Upload Fails with Failed to connect

Problem: arduino-cli upload or the IDE’s Upload button stops with Failed to connect to ESP32-S3.

Solution: Hold BOOT, press and release RST, then release BOOT and upload again. This puts the ESP32-S3 into download mode.

No Serial Port Appears

Problem: No new port shows up after the board is connected.

Possible causes and solutions:

  1. Charge-only cable: try a USB-C cable that carries data.
  2. DIP switches: HUB must be on and USB must route to the ESP32-S3 (off on our board).
  3. Windows only: if Device Manager shows an unknown device instead of a COM port, install the CH343 USB-to-serial driver from WCH, the chip maker.
Modem Does Not Answer AT

Problem: AT gets no OK back, or the sketch prints Modem did not answer.

Possible causes and solutions:

  1. 4G power off: check the 4G module power DIP switch.
  2. Modem still starting: wait 10 to 20 seconds after power-up and try again.
  3. UART pins swapped: swap the values of MODEM_RX_PIN and MODEM_TX_PIN in the sketch.
SIM Card Not Detected (+CPIN: SIM not inserted)

Problem: AT+CPIN? does not answer READY.

Solution: Power off the board, remove the SIM card and insert it again in the orientation shown in Insert the SIM Card, until it is fully seated.

Stuck Searching for a Network (+CEREG: 0,2)

Problem: AT+CEREG? keeps answering 0,2: the modem is searching.

Check: Make sure the LTE antenna is on MAIN and fully clicked in, wait a few minutes and look at AT+CPSI?. Check that AT+CGDCONT? lists your APN; if it is empty, set it with AT+CGDCONT=1,"IP","super". If it never registers, check that the SIM card is active and that your network uses a band the SIM7670G supports.

Registration Denied (+CEREG: 0,3)

Problem: AT+CEREG? answers 0,3: the network refused the registration.

Solution: Ask the modem why with AT+CEER. In our test it answered EMM_CAUSE_EPS_SERVICES_NOT_ALLOWED: the SIM card had not been activated yet. After activating it (for Sixfab SIM, in Sixfab Connect), restart the radio so the modem tries again:

AT

AT+CFUN=0
AT+CFUN=1
AT+CEREG?

Within a minute AT+CEREG? should answer 0,1 or 0,5.

Registered but No Data Connection (Data connection failed)

Problem: AT+CEREG? answers 0,1 or 0,5, but step 3 of the sketch prints Data connection failed. Check the APN.

Solution: Check the APN stored in the modem. In our test the modem arrived with none: AT+CGDCONT? answered only OK. Set your SIM provider’s APN (super for Sixfab SIM) and check it again:

AT

AT+CGDCONT=1,"IP","super"
AT+CGDCONT?

The answer should be +CGDCONT: 1,"IP","super". Also make sure the APN line in first_lte.ino has the same value, then upload the sketch again.

HTTPS Request Fails (+HTTPACTION: 0,715,0)

Problem: Plain HTTP works, but the HTTPS request ends with status 715 and no data.

Solution: Codes in the 700s come from the modem’s HTTP service. We got 715 on HTTPS until SNI was turned on. The sketch does this with AT+CSSLCFG="enableSNI",0,1 and AT+HTTPPARA="SSLCFG",0; if you write your own requests, add both before AT+HTTPACTION.

GPS Fix Not Acquired

Problem: AT+CGNSSINFO keeps returning empty fields (+CGNSSINFO: ,,,,,,,,).

Solution: Check that the GNSS antenna is on the GNSS connector, not MAIN. Move the GNSS antenna to a window or outdoors. Indoors, the first fix may take much longer or never come.

Conclusion

The Waveshare ESP32-S3 SIM7670G joins an LTE Cat-1 network with an Arduino sketch, TinyGSM and a few AT commands. Once the SIM card was active, it registered while roaming in the US, opened a data connection in under 200 ms and completed HTTP and HTTPS requests through the modem’s own HTTP service.

Strengths

  • Registered on LTE and completed HTTP and HTTPS requests on the first run once the SIM card was active.
  • ESP32-S3, LTE Cat-1 modem, GNSS, battery holder and solar input on one board.

Limitations

  • TinyGSM’s TCP client did not connect in our test, so HTTP and HTTPS go through the modem’s own AT commands.
  • The ESP32-S3 talks to the modem over a 115200-baud UART, so data moving through the sketch is limited to about 11 KB/s, well below what LTE Cat-1 can carry (up to 10 Mbps down, 5 Mbps up).
  • Waveshare’s Arduino examples do not cover 4G data; you build on TinyGSM or AT commands yourself.
  • LTE Cat-1 is fine for telemetry and small uploads, not for video streaming.

Best suited for: Battery or solar powered sensors and trackers that must report from places without Wi-Fi, and prototypes that need both a capable microcontroller and a 4G link on one board.

Need lower power rather than more speed? See our LILYGO T-SIM7000G LTE-M setup guide, which uses the same Arduino tools. For a Raspberry Pi 5 running Linux, see the Waveshare SIM7600G-H LTE Cat-4 and GPS setup.

References & Article Information

References

  1. Waveshare ESP32-S3-SIM7670G-4G, Official Documentation: docs.waveshare.com/ESP32-S3-SIM7670G-4G
  2. Waveshare ESP-IDF examples (GNSS, TCP, HTTP): docs.waveshare.com/ESP32-S3-SIM7670G-4G/ESP-IDF
  3. TinyGSM library: github.com/vshymanskyy/TinyGSM
  4. Arduino core for ESP32, Official Documentation: docs.espressif.com/projects/arduino-esp32
  5. Sixfab SIM documentation: docs.sixfab.com/docs/sixfab-iot-sim
  6. Sixfab Connect (SIM activation): connect.sixfab.com

Article information

Content type

How-to

Target audience

Beginner / Intermediate

Test date

2026-11-06

Last updated

2026-12-02

Was this guide helpful?

Stuck? Ask here

Tell us the device model, OS version, the step where you got stuck and the exact error message. Please do not share passwords, API keys, ICCID, IMSI or other sensitive details.