← index #7833Issue #7023
Related · high · value 0.225
QUERY · ISSUE

ESP32 serial support for new API

openby Tangerinoopened 2021-09-21updated 2022-06-23
port-esp32

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);
CANDIDATE · ISSUE

Feature request: UART RTS/CTS hardware flow control on ESP32

closedby Sebbbopened 2021-03-12updated 2021-08-04
port-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!

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied