A
A
AlexSer2019-11-09 11:11:07
Qt
AlexSer, 2019-11-09 11:11:07

How to receive data from the device?

Wrote code to receive data via Com.
I have a question:
1. How to correctly read the data. so that there are no errors when receiving.
Here is the log in Hex
The device sends the following data:
Link to the log
This is only 1 send. The question is how to process this data.
Link to the data exchange protocol of the device
Protocol

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-11-09
@dimonchik2013

start here
https://stackoverflow.com/questions/1450393/how-do...
data via stdin / socket must have boundaries (stop frames / linefeed / EOF, etc.)
accept, divide by boundaries, process
well and separately any integrity checks, retransmissions, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question