A METHOD FOR AUTOMATICALLY PRODUCING PDU CODING-DECODING CODE BASED ON ASN.1 DEFINITION
摘要
<p>A method for automatically producing PDU coding-decoding code based on ASN.1 definition is disclosed. The definition rule and notation rule of data type used in the custom header document is determined, and the header document is produced according to the definition rule and the notation rule. A header document analyzer and the corresponding code producer are also produced according to the definition rule and the notation rule. Each of the header documents is scanned by the header document analyzer; therefore data structure name and the relationship between structures defined in the header documents are analyzed. Then coding-decoding code of PDU structure is automatically produced by using a code producer based on the analyzed data structure name and the relationship between structures in the header document. The invention resolves the problem of compatibility between codes of different coding rules, and reduces the code quantity and cost.</p>