simultaneous use of serial with python script and external AT commands or communication

2 thoughts on “simultaneous use of serial with python script and external AT commands or communication

  1.  i have an application that is using serial1 interface to comunicate another device. As i understand if i use serial interface with script; it isnt available for at commands anymore

    I was using that interface to output of software output so if something goes wrong i could see what it was.

    so my question is is it possible to send a flag to python script engine to release serial port or begin transmit trace output or function call with at command or change  a variable of a class with at command

    i may do this using software with special command (which i will make i up) software takes stops communicating device and begin tracing.

    But i need a better way first of all trace output was 115200 baud but communicating with device is 9600.

    i hope i could have explained it

    Thank you

    1. You can have  AT interface and Python running in the same time, see page 83 of Telit Easy Script in Python.

      To de-import SER module see this thread in forum.

      A third option is to use a software "gate", using SER module as needed, switching modes at a certain signal, GPIO or flag in data stream.