I've got a working script that is using PySerial to communicate with a modem using AT commands. However, this communication is cluttering my formatted output as all AT commands sent and modem responses are echoed to stdout:
serial.write("ATE1\r")
Result on stdout:
ATE1
OK
I've tried to create my own output class which redirects sys.stdout and sys.stderr to my own descriptors, which works well with all output except for modem comm.
What I want to achieve is that all comm. is performed behind the scene so to speak. Perhaps I'm missing a parameter or something when setting up PySerial? Does anyone know how to suppress this output? Any ideas greatly appreciated!
Thanks /C