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

zephyr uart_rx_enable() timeout problem

Sorry, my English is very bad.

I think I can only express my problem in Chinese.

在使用异步串口时,使用uart_rx_enable()设置的超时时间和真实发生UART_RX_RDY事件的时间相差巨大

using async serial port.

The timeout set with uart_rx_enable() is not equal to the time when UART_RX_RDY event occur because of the timeout.

Part of the code:

Parents
  • I see.

     "uart_rx_enable(uart_dev, buf, len, 500)" 

    The last bytes received wait for 500 milliseconds, if no other bytes are received, it will get UART_RX_RDY event.

Reply
  • I see.

     "uart_rx_enable(uart_dev, buf, len, 500)" 

    The last bytes received wait for 500 milliseconds, if no other bytes are received, it will get UART_RX_RDY event.

Children
No Data