Reputation: 97
I am coding a uart application in Linux written in C, in my case, Linux need to send bytes stream to device which is connnected with UART (UART is in hardware flow control with DTSCTS, baudrate is 115200, no parity, no odd/even bits).
The question is, part of data lost in device side while the bytes stream contain some bytes. Those bytes that may be lost include but not limited to 0x00, 0x02, 0x18 (those are tested with byte stream).
Is there any mechanism in which special bytes will be filtered or dropped? I'm not sure if this is related to the UART driver or hardware stability (if so, it should not loss 0x18 all the time).
Upvotes: 0
Views: 278
Reputation: 97
root cause is found!!
Device side enter into a wrong state, in which some pre-defined bytes will be filtered and dropped, during uart communication procedure. Now i will check why device fall into that state. uart seems ok.
Upvotes: 0