← index #4438Issue #1981
Related · high · value 2.057
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

stm32: flow= parameter in pyb.UART().init()

closedby rolandvsopened 2016-04-13updated 2018-12-04
enhancementport-stm32

When initializing an UART with u3 = pyb.UART(3, 57600) the default settings are set to no flow control (flow=0). It would be 'better' when None would be used instead of 0. Furthermore when using u3 at REPL the current initialization is shown, but flow is omitted if 0.

I would like to see flow=None or flow=RTS in all cases. Furthermore any value can be entered setting "stray" bits so it would be 'better' to mask off all bits except for RTS and CTS.

I have changed these in stmhal\uart.c and added to my fork, but it seems to me these could be integrated in the mpy code base.

If I only knew how to git that....

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