Page 1 of 1

Weird ESP32 uart data behavior

Posted: Tue Mar 14, 2023 1:23 pm
by glmnet
I'm having an ESP32 logging via uart at 115200 for a while, then while working normally I got what is seen on the image.

Could this be related to a bad hardware unit or may be a bad electrical design of the board? Anybody seen this before?

I'm using ESP-IDF 5 an ESP-PROG board monitoring the default uart port, the device is connected to a Raspberry PI

https://imgur.com/a/SbUcO4d

Re: Weird ESP32 uart data behavior

Posted: Wed Mar 15, 2023 12:12 am
by ESP_Sprite
Looks like the USB-serial chip you're using browns out or otherwise is getting confused. It's possible the issue is in software as well, if some rude program decides to also attach to the serial port and change the baud rate you could probably get this.

Re: Weird ESP32 uart data behavior

Posted: Thu Mar 16, 2023 1:39 pm
by glmnet
Thanks for the reply you are right.

I realized the `pio monitor` tool did not remember the "hot" setting of the baud rate after it "reconnected" the serial port (I wonder what reconnecting a serial port actually means)

This is data coming at 115200 while the tool reconfigured the port at 9600, I didn't realize it at first time because I wasn't watching live.