This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

uart rx idle

Is exist any way to detect IDLE RX line on UART?

I try to use RXTO but this is seted each time when 1 byte comes.

everytime, it changed size of data which will be readed.

Parents Reply
  • I am using library serial and there is too timeout. Which is good practice to use uart when I will read more then one byte?

    I used serial uarte, I used DMA, I try used timer. When data start comes timer started and in response handler reed out data. but in this case I often reed out timeout.

    It is better read every byte in one period of cycle and add it to buffer and wait for timeout? 

    Thank you 

Children
Related