Answer the question
In order to leave comments, you need to log in
How to get rid of garbage in UART?
Good day.
I communicate with Arduino via USB\Serial interface. In response, it gives: XXXX:1450:1:2\r\nXXXXX
X - garbage. How to get rid of garbage? Usually these are characters of an unknown encoding. I don’t really understand what kind of information this is, maybe something official.
I can remove everything at the Server level, which works with Arduino, but I would like to understand where this mess comes from.
It turned out badly, I got confused myself in my "system", until I freshen up, the question is closed. I'm sorry I wasted your time.
Answer the question
In order to leave comments, you need to log in
Judging by the tag, MODBUS is meant, this is not the same as just data transfer, this protocol has a header and other technical information that looks like garbage through serial.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question