Skip to main content

Working with Windows

Hardware Connection

Before using the module, in addition to the Type-C USB cable, GNSS antenna, and LTE antenna, you will also need the following items:

  • One 4G SIM card (active account with 4G/GPRS data service enabled)

Connection Steps

  • With the power off

    • Insert an activated 4G SIM card
    • Connect the USB cable to your computer
  • Use the Type-C USB cable

    • Connect one end to a USB port on your PC
    • Connect the other end to the USB port of the ESP32-S3-A7670E-4G
  • LED status after power-up

    • The PWR LED lights up
    • Wait approximately 3 to 5 seconds for the module to start
    • The NET LED stays on: Module startup is complete
    • The module automatically searches for the network; subsequently, the NET LED starts blinking

Device Recognition

The SIM7670G typically does not require additional driver installation on mainstream Windows systems. After connecting the device via USB, you can see several new COM ports in Device Manager, as shown in the figure below:

ESP32-S3 SIM7670G 4G Connect

Common AT Command Functions for Cat-1 Module

HTTP

AT CommandDescriptionResponse
AT+HTTPINITInitialize HTTP serviceOK
AT+HTTPPARA="URL",https://www.waveshare.cloud/api/sample-test/Connect to remote serverOK
AT+HTTPDATA=5,1000Input dataDOWNLOAD
Type hello
OK
AT+HTTPACTION=0Start HTTP request
0:GET; 1:POST; 2:HEAD; 3:DELETE; 4:PUT
OK
+HTTPACTION: 0,200,54
AT+HTTPTERMTerminate HTTP serviceOK
AT+HTTPPARASet HTTP parametersOK
AT+HTTPHEADRead HTTP response headerOK
AT+HTTPREADRead HTTP response dataOK

ESP32-S3-A-SIM7670X-4G-HAT-details-03

MQTT

AT CommandDescriptionResponse
AT+CMQTTSTARTStart MQTT serviceOK
AT+CMQTTACCQ=0,"Waveshare-7670X",0Request an MQTT clientOK
AT+CMQTTCONNECT=0,"tcp://mqtt.easyiothings.com",20,1Send MQTT connection request, connect to private MQTT server (MQTTS)OK
AT+CMQTTTOPIC=0,8Set the topic for publishing>A7670Pub
OK
AT+CMQTTPAYLOAD=0,9Set the payload for publishingOK
>waveshare
AT+CMQTTPUB=0,0,60Publish messageOK
+CMQTTPUB: 0,0
AT+CMQTTSUB=0,8,1Subscribe to a topic>A7670Sub
OK
+CMQTTSUBTOPIC: 0,0

[10:03:39.665] Received←◆
+CMQTTRXSTART: 0,8,15
+CMQTTRXTOPIC: 0,8
A7670Sub
+CMQTTRXPAYLOAD: 0,15
{"data":"test"}
+CMQTTRXEND: 0
AT+CMQTTSTOPStop MQTT serviceOK
AT+CMQTTRELRelease MQTT clientOK
AT+CMQTTUNSUBTOPICRelease subscribed topicOK
AT+CMQTTUNSUBUnsubscribeOK

ESP32-S3-A-SIM7670X-4G-HAT-details-04

GNSS

AT CommandDescriptionResponse
AT+CGNSSPWR=1Power on GNSS+CGNSSPWR: READY!
AT+CGNSSTST=1Enable GNSS data outputOK
AT+CGNSSPORTSWITCH=1,0Switch NMEA data to USB NMEA outputOK
AT+CGNSSPORTSWITCH=0,1Switch NMEA data to UART outputOK
AT+CGPSINFOGet current GNSS dataPosition information

ESP32-S3-A-SIM7670X-4G-HAT-details-06