I'm writing code to send data to and from a raspberry pi (pi zero running raspbian lite) via serial port, using 1 python script on either side.
I've set everything up so that I can use
port='/dev/ttyGS0' from the pi and
port='COM17' on my windows pc.
It seems to work at first, though after a while the connection on the side of the pi gets interrupted with the following error
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Meanwhile on the windows side I'm receiving data that implies the login shell is coming trough the serial port:
\r\nRaspian GNU/Linux 10 rasperrypi ttyGS0\r\n\r\nrasperrypi login: \r\r\npassword:
I'm guessing I have to turn off the login shell over serial, though I can't seem to find anything relevant to this problem online. I can post the python scripts if needed, though I doubt I'm doing anything wrong on that side.
I was also experiencing problems with write/read permissions to
ttyGS0, though this problem could be fixed by adding my user to the dialout group:
sudo usermod -a -G dialout pi this did NOT solve the main issue though
I also tried disable the console trough
raspi-config this did not change anything.