LilyGO-T-SIM7000G icon indicating copy to clipboard operation
LilyGO-T-SIM7000G copied to clipboard

Micro python modem connection help

Open emigbur opened this issue 11 months ago • 0 comments

Hi I did a small script to comunicate whit modem using micropython but im not able to get response. If some one can share a script example to use?

Thanks

This is my simple try

`from machine import Pin, PWM from time import sleep from machine import UART from Modem import Modem import time

pin1 = Pin(4, Pin.OUT) pin2 = Pin(12, Pin.OUT)

modem = Modem(pin1, pin2)

modem.on()

time.sleep(1) uart = UART(1, rx=27, tx=26, baudrate=115200) uart.init(115200,bits=8,parity=None,stop=1) uart.write('AT\r\n') print(uart.read()) print(uart.read()) print(uart.read()) print(uart.read())

modem.off()`

emigbur avatar Mar 18 '24 21:03 emigbur