print problem esp32 wroom 32u

saeidesp
Posts: 1
Joined: Tue Mar 03, 2026 10:51 am

print problem esp32 wroom 32u

Postby saeidesp » Tue Mar 03, 2026 1:13 pm

high !
i have sometimes too many problem with print!!!
for ex: i wait for a response like : ttyUSB0: [50, 66, 49, 49, 49, 13] IN;MSG: 2B111
but which i recieve : ttyUSB0: [-17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, -17, -65, -67, 66, 49, 51, 49, 13] IN;MSG: ??????????????????????????????????????????????????????????????????????????????????????????????B131

it seems there is too many garbages in serial buffer !!
can you help me please?!!!!

mikemoy
Posts: 687
Joined: Fri Jan 12, 2018 9:10 pm

Re: print problem esp32 wroom 32u

Postby mikemoy » Sun Mar 08, 2026 3:50 am

You would need to post that section of your code. Odd are your not terminating your buffer after you have read the data properly is my guess. Or you have not cleared it before to receive the data.

Who is online

Users browsing this forum: MicroController and 13 guests