Skip to content
Discussion options

You must be logged in to vote

Thanks for the offer but I'm not in a position to take this on as a project, but I will help with the uasyncio and UART code. You'll need to research the AT codes.

The following makes use of the timeout feature which is new to uasyncio V3. I have tested it with a loopback. It solves the UART timeout problem by periodically (40 sec intervals) sending "AT" to the modem. As I understand it, this will cause it to respond and will keep the UART receiver alive. The send_command method waits 4s to gather any response from the modem.

from machine import UART, Pin
import uasyncio as asyncio
from primitives import Delay_ms

class SIM_UART():
    def __init__(self):
        self.uart = UART(0, 115200, 

Replies: 13 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@2dof
Comment options

@peterhinch
Comment options

Comment options

You must be logged in to vote
1 reply
@peterhinch
Comment options

Comment options

You must be logged in to vote
3 replies
@2dof
Comment options

@peterhinch
Comment options

@andypnz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@andypnz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@andypnz
Comment options

@peterhinch
Comment options

@andypnz
Comment options

@andypnz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@peterhinch
Comment options

Answer selected by andypnz
@andypnz
Comment options

@peterhinch
Comment options

@andypnz
Comment options

@peterhinch
Comment options

Comment options

You must be logged in to vote
2 replies
@andypnz
Comment options

@andypnz
Comment options

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