Closing port is not working effectively in pyqt app
I run this function on a buttton click. When I try closing the port I do not get any error, but by trying to connect to port one more time, I get this erro “Cannot configure port, something went wrong. Original message: PermissionError(13, ‘A device attached to the system is not functioning.’, None, 31)”.
“RX ring buffer full” error in PySerial despite flushing buffers
I’m working on a project where I use the PySerial module to communicate with a battery management system (BMS) through a serial port. I’m also using ThingsBoard and Streamlit in this project. However, I keep encountering the “RX ring buffer full” error, even though I am flushing the buffers each time. Additionally, the lines I read are different every time I run the code.