2 posts • Page 1 of 1
Is there any way to auto detect baud rate, word length, parity, stop bits of a UART port? My thought is to trigger data on the UART port, then on ESP32 iterate through all combinations until there's no more frame error detected. I'm not sure how to implement this iteration so I thought I'd ask before trying some silly ways that won't work. Thanks.
You want to detect all those things? Suggest you use the RMT peripheral to capture a few bytes, then in code try to see if you can detect the baudrate, then see if the stop bits match up with the word length you selected, then see if any parity works.
Who is online
Users browsing this forum: Google [Bot], JosuGZ and 25 guests