Answer the question
In order to leave comments, you need to log in
How to properly parse a TCP packet?
Good afternoon!
Please tell me, I'm trying to write a packet parser from a satellite monitoring terminal, and I ran into such a problem, I don't understand how to extract IMEI from a packet, without extraneous characters.
There are no problems with receiving packets, I do it via msdn.
Here is the description of the protocol from the manufacturer:
After converting the first packet from the terminal
data = System.Text.Encoding.ASCII.GetString(bytes, 0, i);
B863000000113045 z
Answer the question
In order to leave comments, you need to log in
I advise you to run wireshark, it will probably be more clear how to parse
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question