Convenient coding method for generating ASN1 (abstract syntax notation one) data files

A data file and coding method technology, applied in the field of file coding, can solve problems such as heavy workload and high risk, and achieve the effects of reducing risk, flexible assembly, and removing business correlation

Active Publication Date: 2013-12-25
北京思特奇信息技术股份有限公司
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The traditional encapsulation method is to define the business format in the program, which leads to the nee

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
  • Convenient coding method for generating ASN1 (abstract syntax notation one) data files
  • Convenient coding method for generating ASN1 (abstract syntax notation one) data files
  • Convenient coding method for generating ASN1 (abstract syntax notation one) data files

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0035] The principles and features of the present invention will be described below with reference to the accompanying drawings. The examples cited are only used to explain the present invention and not used to limit the scope of the present invention.

[0036] Such as figure 1 As shown, a convenient encoding method for generating ASN1 data files includes the following steps:

[0037] Step 1: Write a configuration file composed of several sets of configuration rules, each set of configuration rules has a file header;

[0038] Step 2: Parse the configuration file into memory;

[0039] Step 3: Read a fixed-length file into memory;

[0040] Step 4: Make the longest match between the file name of the fixed-length file and the header files of all configuration rules in the configuration file, search for the corresponding configuration rule, if found, go to step 5, otherwise send a system alarm and end;

[0041] Step 5: Read a fixed-length record from the fixed-length file;

[0042] Step 6: Sav...

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 convenient coding method for generating ASN1 data files. The method comprises writing and analyzing configuration files into a memory; reading fixed-length files; finding the configuration rules corresponding to the fixed-length files; reading a fixed-length record for the fixed-length files; according to the configuration rules, obtaining field value from the fixed-length record to be stored in the corresponding node of an ASN1 structure tree; judging out whether the fixed-length records in the fixed-length files are all processed, if so, encoding the ASN1 structure tree generated through the fixed-length files to generate ASN1 data files, and if not, repeating the steps above until all the fields of all the fixed-length records of the fixed-length files are processed. According to the convenient coding method for generating the ASN1 data files, by means of the configuration files, the formats of the ASN1 data files to be generated can be configured flexibly and accordingly the ASN1 data files can be assembled efficiently and flexibly.

Description

technical field [0001] The invention relates to a file encoding method, in particular to a convenient encoding method for an ASN1 data file, especially used when an ASN1 data file in a pot format needs to be packaged inside a telecommunication system. Background technique [0002] With the continuous development of telecom operators, the business expansion is more and more extensive, and various new services emerge in an endless stream; in the process of transmission of various service bills, the bearer carriers are also different, and a protocol-encoded file needs to carry services in multiple formats bill. [0003] The traditional encapsulation method is to define the business format in the program, which results in the need to modify the program when adding new business or modifying business, which requires heavy workload and high risk. [0004] In order to cope with this kind of business variability and reduce the risk caused by program modification, it is very necessar...

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
IPC IPC(8): G06F9/44
Inventor 杨亚光
Owner 北京思特奇信息技术股份有限公司
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