← index #8794Issue #8646
Duplicate · high · value 2.041
QUERY · ISSUE

UART sendbreak bug

openby AeroSynthopened 2022-06-21updated 2022-06-28

There is a bug with the uart.sendbreak() method with V1.17 (haven't checked the latest)

The manual states the break signal lasts 13 bits. It actually is 11.
This has caused errors with external sensors that utilize the SDI-12 protocol. .The line needs to go for at least 12ms. Now, it is 9.167 ms. Even 13 bits is not long enough.
A good solution is to add a property where you can specify how many bits you can use.
SDI-12 is popular in agriculture and other industrial applications. (www.sdi-12.org)

CANDIDATE · 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!

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