A
A
AlexSer2020-06-26 08:25:27
Microcontrollers
AlexSer, 2020-06-26 08:25:27

How to convert data from binary format?

I connect to the device through the terminal 1.9b program, with the specified manufacturer's settings.
The terminal program catches incorrect data. The instructions say


The instrument sends a data packet in binary format at the end of each measurement.

Tell me how to get the data in a normal format

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HemulGM, 2020-06-26
@AlexSer

Binary data is normal data. You just need to read them correctly. Only the instructions will help you read them correctly. Or try to guess the data structure manually.
To do this, you need to read part of the data into byte, int, int64, float and other variables of various sizes.

R
Roman Mirilaczvili, 2020-06-26
@2ord

Describe the data structure in Protobuf according to the instructions and generate code in Ce++.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question