Xinyuan-LilyGO / LilyGO-T-SIM7000G

LilyGO T-SIM7000G
https://pt.aliexpress.com/item/4000542688096.html
283 stars 123 forks source link

Micro python modem connection help #264

Open emigbur opened 3 months ago

emigbur commented 3 months ago

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()`