SerialException: device reports readiness to read but returned no data

I am very close to establishing communication between rpi3 and flight controller but need help on this thing I am stuck. when I try:

  • mavproxy.py --master=/dev/ttyS0 --baudrate 57600 --aircraft MyCopter

I end up getting:

  • SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

I thought it was an issue with baud rate. So I checked with different baud rates. None of them works, except for 57600, for which I am getting above exception. Any help please? Thanks.