ESP32 serial support for new API
Using a serial protocol that exchange very few bytes per second does not work in ESP32 due the rxfifo_full_thresh parameter set to 120.
Testing in C and reducing this value to 1 makes the ancient protocol possible to be handled.
Can this API be included in the serial driver as well?
uart_intr_config_t uart_intr = {
.intr_enable_mask = UART_INTR_CONFIG_FLAG,
.rxfifo_full_thresh = UART_FULL_THRESH_DEFAULT,
.rx_timeout_thresh = UART_TOUT_THRESH_DEFAULT,
.txfifo_empty_intr_thresh = UART_EMPTY_THRESH_DEFAULT,
};
uart_intr_config(SSU_PORT, &uart_intr);
Feature request: UART RTS/CTS hardware flow control on ESP32
As the underlying esp-idf API supports RTS/CTS for serial communication, it would be good to be able to use it also from Micropython. Currently it's not implemented.
I have found #4438, but that seems to be for a more generic software approach.
As hardware flow controls is implemented in the Development Framework, it should be rather easy to add.
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/uart.html#_CPPv421uart_hw_flowcontrol_t
Thanks!