Weird ESP32 uart data behavior

glmnet
Posts: 3
Joined: Fri Mar 10, 2023 1:32 pm

Weird ESP32 uart data behavior

Postby glmnet » Tue Mar 14, 2023 1:23 pm

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

ESP_Sprite
Posts: 9746
Joined: Thu Nov 26, 2015 4:08 am

Re: Weird ESP32 uart data behavior

Postby ESP_Sprite » Wed Mar 15, 2023 12:12 am

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.

glmnet
Posts: 3
Joined: Fri Mar 10, 2023 1:32 pm

Re: Weird ESP32 uart data behavior

Postby glmnet » Thu Mar 16, 2023 1:39 pm

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.

Who is online

Users browsing this forum: Google [Bot], ignisuti, Majestic-12 [Bot], MicroController and 100 guests