I am using UART to send commands and receive data from the ESP32. I followed the uart_events example project to setup a UART task with a pattern detection event. This worked fine when I was debugging and manually typing in commands. However when sending commands from an application the character is received but not detected unless I include a delay between the data and pattern detection byte/s.
I saw that there was an UART rx timeout interrupt which seems to be exactly what I am looking for. Receive an unknown amount of bytes and trigger whenever data stops being sent. I have been struggling to find any examples or documentation on how these interrupts actually work. Has anyone had any success?
I can call
Code: Select all
uart_set_rx_timeout(uart_port_t uart_num, const uint8_t tout_thresh);
uart_enable_rx_intr(EX_UART_NUM);
Thanks,
Liam