over frame error in UART
Hi all
Well Iam working on UART kernel version 2.6.21 and Iam facing error called over frame error I have my normal system(desktop) & pxa300 board communicating serially between them at baud rate 1200 ,with no h/w flow control,8bit data rate . Sending 128 bytes of data continoulsy after every 200 ms from destkop Pxa board is reciever (always) & desktop is sender(always). If I have open receiver thread (i.e normal serial application)from pxa board first & then transmit data from desktop there is NO overframe error its working fine. But if desktop is already transmitting data & then I open receiver thread from pxa board I am getting continuous over fram error . One more interesting thing is I checked with baud 115200 in that case everything seems to be fine. There is no overfram error Checked with 4800, 9600 baud rate overframe error exist. In kernel level hardware buffer in Code:
receive_chars(struct uart_8250_port *up, unsigned int *status) Any other question kindly let me know |
Are you sure you've got the right terminology? In serial communications, there are framing errors, and there are overrun errors. What do you think is meant by 'overframe'? I've been around RS-232 for at least a couple of decades, programmed my share of UARTs, and bit-bashed serial IO more than once, and I've never heard that term. Can you post an exact copy of whatever error messages you are referring to? If it is coming from your own code, please post a copy of the relevant part(s).
--- rod. |
Are you sure you've got the right terminology? In serial communications, there are framing errors, and there are overrun errors. What do you think is meant by 'overframe'
Code:
Ok its framing error only ,Its in the piece of kernel code that prints over fram error.That i have pasted it below . Code:
static void - I tried using different cable. - Suspect uartclk also so I used same pxa board for tranmsit side also but same framing error . - Application level also i tried different things like enable Hw flow control (CTS/RTS) but same error. |
Okay, a quick bit of arithmetic:
Code:
1200 bps X 11 bits/word (8N1 + 1 intercharacter space) = 9.17 ms per word. --- rod. |
Hi I have found this patch for rectifying this frame error when I paste this code in serial_handle_port() function
Code:
if (UART_BUG_FSLBK & up->port.bugs && up->lsr_last & http://comments.gmane.org/gmane.linux.serial/6615 |
All times are GMT -5. The time now is 05:19 AM. |