← index #4438Issue #1912
Related · high · value 1.596
QUERY · ISSUE

UART RTS/CTS software flow control

openby TravisJoeopened 2019-01-28updated 2019-02-12
enhancement

This was brought up by somebody I am working with that has several UARTS implemented that have large packets of information and network communication. This causes potential for blocking functionality and has lead to buffer overflows on the UART. Flow control helps but not all UARTs have flow control and I was asked if that flow control could be done low level in Micropython. That sounded like an interesting enough idea to bring up here.

CANDIDATE · ISSUE

stmhal: UART doesn't override RTS when buffer gets full

closedby dhylandsopened 2016-03-20updated 2016-04-13
ports

Currently (stmhal build) when using RTS HW flow control, the low level RTS signal seems to be behaving properly on a character by character basis. However, there is currently no interaction by the driver when the received buffer becomes full.

The uart driver should override RTS when the receive buffer becomes "full" (by whatever definition of full is appropriate - probably at least a few characters before the actual end of buffer). Once space is freed up in the buffer, then the uart driver should stop overriding RTS and let the HW control it again.

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