Python Forum

Full Version: Serial port monitor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi, I would like to create a small software that can monitor data from ant to serial port.
In practice I have a hardware device that communicates with its software through the serial port, I would like to create a small tool to log (bidirectional) this communication.
I tried with pySerial, but if I try to open a serial port that is already in use by another software it gives me an error.
Can anyone help me?

Thanks in advance.
Post your code in python tags.
You can handle the error using try/except block