The invention discloses a message data
serialization packaging and analyzing method supporting
interface protocol verification, which comprises the following steps of: 1) acquiring a message
data structure, and realizing
digital conversion of a message protocol; (2) controlling sub-field splicing of a word
bit field; calling a packaging function, judging whether
protocol verification is executed or not, and performing
bit field splicing; (3) carrying out serialized packaging on the full message field; calling a packaging function, judging whether
protocol verification is executed or not, and performing
serialization processing; 4) deserialization unpacking of the
byte stream: calling a packaging function, judging whether to execute
protocol verification, and performing deserialization analysis of the
byte stream; 5, the fields of the control words are split and analyzed into
bit field sub-fields, a packaging function is called, whether protocol
verification is executed or not is judged, and control word bit field split is carried out. According to the method, data
serialization and deserialization are packaged into a
standard function library, and a set of standard message
data processing method is provided.