← index #8646Issue #5263
Related · high · value 1.384
QUERY · ISSUE

Pyboard UART.sendbreak

openby skylin008opened 2022-05-10updated 2022-06-22
port-stm32

I used the UART1 on pyboard,the baudrate is 19200bps, when used the UART.sendbreak() function, the 13 bit delay is 677uS, but actual is 520uS in oscillograph.How to solve this issue.Thanks!

CANDIDATE · ISSUE

ESP32 Uart TX-error using UART.sendbreak()

closedby ImoogDiopened 2019-10-27updated 2019-10-28
port-esp32

I'm using the UART-class to send messages over serial line.
Any message is terminated with the 'BREAK'-signal.
It works so far sending more then 1 char's.
But in that special case sending only 1 char terminated with the UART.sendbreak() call,
the leading char will be overwritten or destructed.
Also the call UART.wait_tx_done(100) before sending the BREAK-signal doesn't help.
Only the call: time.sleep(0.002) before UART.sendbreak() will help a bit.
Used code:
...
uart1 = UART(1, baudrate=9600)
while True:
uart1.write('A')
while uart1.wait_tx_done(100) == False:
pass
# !! sleep required for 1Char- and break-send !!
time.sleep(0.002)
uart1.sendbreak()
time.sleep(1)

Used environment:
ESP32 on Wipy3.0
See attached plots for the resulting streams.
Can you fix this problem in further releases?
uart_tx_failed
uart_tx_OK_withsleep

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