I'm having trouble getting a response from A7670 GSM module.

Thread Starter

yashas.hp

Joined Jan 25, 2026
6
Hello,

I have been having some issues with an A7670E GSM module. This is my first time using any GSM module and I just wanted to check if it was working fine. I'm using ESP32 with micropython.
This is the code I've been trying to use:
from machine import UART, Pin
import time

pwr_key = Pin(5, Pin.OUT)
pwr_key.value(0)
time.sleep(1)
pwr_key.value(1)
time.sleep(15)
print("rebooted")

# Test common baud rates
baud_rates = [9600, 19200, 38400, 57600, 115200]

for baud in baud_rates:
print(f"Testing baud rate: {baud}")
uart = UART(2, baudrate=baud, tx=17, rx=16, timeout=1000)
time.sleep_ms(500)
uart.write(b'AT\r\n')
time.sleep_ms(2000)
response = b''
while uart.any():
response += uart.read()
print(f"Response: {response}")
uart.deinit()
time.sleep(1)

and this is the output I'm getting (apparently garbage response):

rebooted
Testing baud rate: 9600
Response: b'\x00'
Testing baud rate: 19200
Response: b'\x00'
Testing baud rate: 38400
Response: b'\x00'
Testing baud rate: 57600
Response: b'\x80'
Testing baud rate: 115200
Response: b'\x00'
 
Top