espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.71k stars 7.3k forks source link

Add function to just send a UART Break (IDFGH-9645) #10990

Open mikisama opened 1 year ago

mikisama commented 1 year ago

Is your feature request related to a problem?

I want to send a break signal only, but currently, the SDK only has uart_write_bytes_with_break.

Describe the solution you'd like.

Add a function to just send a UART Break

int uart_send_break(uart_port_t uart_num, int brk_len);

Describe alternatives you've considered.

No response

Additional context.

No response

FloHomi commented 1 year ago

I would highly appreaciate that too. I am waiting for two years on that, to get LIN-Bus running reliably. LIN needs break at the beginning.

phatpaul commented 12 months ago

Same issue here. See my hacky workaround: https://esp32.com/viewtopic.php?f=13&t=8181&start=10#p98546

Would be nice to see it officially supported in the sdk.