You're using the wrong serial mode numbers for SERIN2/SEROUT2.

Drop the include modedefs.bas and use something like N2400 CON 16780.