Implementation method for automatic generation of PDU coding/decoding code based on ASN.1 definition

A technology of automatic generation and implementation method, applied in the field of communication, to achieve the effect of small programming workload, low cost, and avoiding huge workload

Inactive Publication Date: 2007-07-04
ZTE CORP
View PDF0 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0019] The technical problem to be solved by the present invention is to provide an implementation method for automatic generation of PDU encoding and decoding codes defined based on ASN. The problem of occupancy, the programming workload is relatively small, and the cost is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method for automatic generation of PDU coding/decoding code based on ASN.1 definition
  • Implementation method for automatic generation of PDU coding/decoding code based on ASN.1 definition

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] As shown in Figure 2, it is a flowchart of an implementation method for automatically generating PDU encoding and decoding codes defined based on ASN.1 described in the embodiment of the present invention, and its specific steps are:

[0031] Step 201: Generate a custom header file.

[0032] One of the characteristics of the present invention is to allow users to use self-defined header files. The custom header file can not only conform to the programming specification, but also can flexibly define various data types, so as to minimize the memory occupation of various data types.

[0033] In order to achieve a unified analysis of various header files, it is necessary to standardize the structure definition rules in the header files. That is to say, it is necessary to generate a custom header file according to a unified structure definition rule. Therefore, before generating the custom header file, the present invention must first determine the definition rules and lab...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for automatically generating PDU code/decode, based on ASN. 1, wherein said method comprises that: fixing the define rule and mark rule of used data type in self-defined head document; via said rules, generating head document; via said rules, coding head document analyzer, and relative code generator; using said document analyzer to scan the head document to obtain the relation between data structure name and structure defined in head document; then using code generator, via the relation, to automatically generate the PDU code/decode. The invention has low cost.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method for automatically generating codec codes of protocol data units in a communication protocol. Background technique [0002] In the field of modern communication, with the increasingly powerful communication functions, many network protocols have become a very large and complex software system. There are many encoding and decoding processes based on different encoding and decoding rules in this system, such as layer 3 message encoding and decoding and based on ASN.1 (Abstract Sybtax NotationOne) defined PDU codec, etc. These encoding and decoding processes are an important part of the entire protocol software system and play an extremely important role. [0003] When two protocol entities exchange PDUs (protocol data units), each PDU is defined using the ASN.1 abstract syntax, and then the PDUs are encoded using the ASN.1 encoding rules. The definition and encoding...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06
CPCH04L69/06H04L29/06061
Inventor 聂浅李兴华江鸿
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products