A
A
Andrey Kovalchuk2016-06-05 08:12:31
Arduino
Andrey Kovalchuk, 2016-06-05 08:12:31

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

1 answer(s)
V
Vitaly Pukhov, 2016-06-05
@Neuroware

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 question

Ask a Question

731 491 924 answers to any question