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
  • Hi

    Which UART library are you using?

    If you use the nrf_libuarte_async.c library then you can define a timeout period in microseconds, and once there is no UART activity for this period you will get an interrupt. 

    Still, keep in mind that UART is asynchronous, so depending on the UART device you are communicating with there might still be some more data coming. 

    Best regards
    Torbjørn

Children
Related