[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: serial port parity problem



Hi,

Yes, your problems are most likely caused by the missing break 
handling in the 2.4 driver. Seial port parity/framing/break
errors may trigger this problem. We are currently in the 
progress of adding the break handling in the 2.4 serial driver.

Regards
/Mikael

-----Original Message-----
From: owner-dev-etrax@xxxxxxx.com]On">mailto:owner-dev-etrax@xxxxxxx.com]On
Behalf Of Lindberg, Magnus
Sent: Tuesday, October 09, 2001 11:31 AM
To: dev-etrax
Subject: serial port parity problem


Hi,

I have written a program where I enable parity checking (c_cflag = PARENB |
PARODD), set the flag for ignoring characters with parity errors (c_iflag =
IGNPAR) and then read from the serial port using read(). This works as long
as there is no characters with parity error. However, I got an old piece of
equipment connected to one of the serial ports on Etrax100LX. This equipment
now and then sends a character with wrong parity (this is OK according to
its protocol - donīt ask me why). This is accepted by a PC, which
successfully reads all the characters with correct parity. However, running
exactly the same code on the Etrax does not work. The same problematic
behaviour occurs when I send characters from the PC to the Etrax mixing
characters with correct and wrong parity.

Perhaps this is a somewhat similar problem as the one Szabo got
(http://mhonarc.axis.se/dev-etrax/msg01093.html). Is this also due to the
fact that "driver in 2.4 does not yet handle "breaks" and errors very well"?

/magnus