I'm using the ESP IDF UART driver. I receive an event with event.size=9 bytes (for example). Then I try to uart_read_bytes for 9 bytes and the code still takes 1000ms sometimes. Is this expected? I would assume that once the event is there and has the number of bytes, those by...
在使用int uart_read_bytes(uart_port_tuart_num, uint8_t *buf, uint32_t length, TickType_t ticks_to_wait)这个函数时遇到些问题,请问,参数里面ticks_to_wait是表示串口等待这么长时间读一次?如果将这个参数改成portMaxDelay,是不是就一直是被挂起状态?参数里面length是给定的值,还是ticks_to_wait时间内...
I'm actually facing the same problem. Before entering deepsleep, I flush UART & delete driver using API functions. After esp32 wakes up and I initialize same UART driver and flush rx buffer using uart_flush. However even the driver is deleted and buffer is (soft) flushed, rx buffer is ...
I'm currently working on a DMX512 library for the ESP32 https://github.com/luksal/ESP32-DMX-RX . DMX512 is a protocol based on RS485 where after a break signal 512 bytes are transmitted. The main concept is running an infinite loop and c...
在使用int uart_read_bytes(uart_port_tuart_num, uint8_t *buf, uint32_t length, TickType_t ticks_to_wait)这个函数时遇到些问题,请问,参数里面ticks_to_wait是表示串口等待这么长时间读一次?如果将这个参数改成portMaxDelay,是不是就一直是被挂起状态?参数里面length是给定的值,还是ticks_to_wait时间内...