Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micro python modem connection help #264

Open
emigbur opened this issue Mar 18, 2024 · 0 comments
Open

Micro python modem connection help #264

emigbur opened this issue Mar 18, 2024 · 0 comments

Comments

@emigbur
Copy link

emigbur commented Mar 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant