Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Python • Re: Pi 5 uart1 (ttyAMA1) doesn't receive in python but is fine with minicom/screen

$
0
0
I have never understood why I get "Port is already open". It happens even after a reboot and I always have to close the port before I open it.
Edit:
Found this:
I've solved my issue. Apparently newer version of pySerial opens port in constructor, and I was calling "open" method after constructor
So I have just tested it and the ports are indeed already open so the ser.open() is unneccessary.

Statistics: Posted by jimseng — Sun Feb 23, 2025 12:59 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles