Home > Net >  A serial port data parsing
A serial port data parsing

Time:11-16

Everybody, from the device, through the serial port 25 needle for a string of data, how to parse a string? Resolved should be a set of numeric data or form,

Data:
E6 FE 7E 18 E0 9E 7E F8 66 F8 7E FE 7E FE 86 9E 18 1E 78 66 F8 1E 66 E0 7E FE E6 E0 F8 F8 66 86 66 78 E6 80 78 FE 1E 7E F8 7E 66 1E FE 1E 00 9E 7E 00 06 66 7E 60 1E FE 1E E0 18 78 7E 98 7E E6 1E 7E 18 98 1E 1E E6 98 7E 86 98 78 E6 7E 7E 66 78 FE 1E E6 FE 7E 86 98 78 FE FE FE 86 98 1E F8 7E 7E 86 98 78 F8 7E 7E 7E 18 98 1E E6 7E 7E 66 78 7E 98 FE E6 E6 7E 18 98 E6 FE 7E 7E 9E 66 66 66 66 66 66 66 7E F8 E0 18 06 66 7E 60 06 1E FE 1E E0 E0 80 78 66 78 7E E0 66 E6 E6 78 78 78 E6 7E 7E 7E 86 18 86 FE 1E E6 98 7E 66 98 7E 7E 00 86 18 98 06 1E 66 80 7E

Data 2:
80, 78, 1 e FE FE FE FE E6

CodePudding user response:

Looking for a manufacturer to document, what is their data, this group who all don't know how to parse the data

CodePudding user response:

This is a convenient hexadecimal data parsing, we read our serial data is read byte [] a decimal data;
1: use the cat cat first serial debugging assistant serial connection device can get data, receive data, the format is right now, format is not correct also can have the wrong line,
2: according to the agreement document, in turn, control access to data parsing

CodePudding user response:

Each serial port communication are corresponding communication protocol, data transmission format, it has the practical significance of the corresponding parameters and data of serial port,
Light you have data to ask everyone, who all don't know, unless it is equipment manufacturer personnel (knowledge workers),
If you don't have a deal, want to pass the data to parse, or to guess protocol, it needs a lot of actual data, to guess what is a byte said, but if check parts, can be simple, complex is not so easy,

CodePudding user response:

Since the data, as long as according to the manufacturers documentation encoding specification decoding can obtain data before encryption

CodePudding user response:

This, for the moment, cannot solve, need to manufacturer agreement documentation,

CodePudding user response:

Look a bit familiar

CodePudding user response:

Need to get the agreement content. Your current post is the hexadecimal serial data format string, their specific represent what meaning, I don't understand processing without agreement.

CodePudding user response:

No can only guess the agreement document, such as you send a 123456, and then a serial port to intercept data packets, and then analysis, it belongs to decipher the password
  •  Tags:  
  • C#
  • Related