Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for automatically generating MIB function codes of software platform

A function code and software platform technology, applied in the field of automatic generation of software platform MIB function code, can solve the problems of increasing the risk of introducing coding errors, large amount of code, and high error rate of manual coding, so as to reduce the amount of manual coding and meet the needs of users. demand, workload reduction effect

Active Publication Date: 2018-09-07
FENGHUO COMM SCI & TECH CO LTD
View PDF9 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in practical applications, the MIB function code requires that the data structure of the MIB table written by the R&D personnel must be able to meet RFC (Request For Comments, which is a series of files arranged by number. The files collect information related to the Internet and software from UNIX and Internet communities. The syntax requirements stipulated in the file) agreement, so the requirements for manual coding development are strict
At the same time, the callback functions for adding, deleting, checking, and modifying MIB tables have a high degree of similarity in the functions of the callback functions of each table, and at the same time, the amount of code is large, resulting in a high error rate in manual coding.
[0004] It can be seen that strict MIB syntax requirements and a large number of MIB callback function codes increase the difficulty of development and coding workload of R&D personnel, and also increase the risk of introducing coding errors, which is not conducive to the rapid development of products.

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
  • Method and system for automatically generating MIB function codes of software platform
  • Method and system for automatically generating MIB function codes of software platform
  • Method and system for automatically generating MIB function codes of software platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] see figure 1 , figure 2 As shown, the present embodiment provides a method for automatically generating software platform MIB function codes, the method comprising the following steps:

[0043] A. Set the MIB generation rule: set the MIB generation rule of the control block in the configuration XML file, and the generation rule includes the designated software platform data structure header file. In this embodiment, the file name of the configuration XML file is named cfg.xml; in the actual implementation process, the file name of the configuration XML file can be set by the developer as required, and this embodiment does not make specific limitations.

[0044] B, generate data XML file: Utilize Python script to analyze the specified software platform data structure header file in the configuration XML file, and generate the data XML file of MIB table according to the MIB generation rule of setting, and described data XML file is the MIB table of XML format D...

Embodiment 2

[0047] A kind of method that present embodiment provides automatically generating software platform MIB function code, its basic steps are identical with embodiment one, and difference is: in step A, the configuration XML file that is provided with MIB generation rule includes the following content:

[0048] The attribution module name of the control block, the module product table ID, the header file where the control block data structure is located (that is, the specified software platform data structure header file), the output file generated by the MIB function code (the output file includes the MIB table header file and the MIB table Callback function source file), control block name, MIB table name, and the tree to which the associated control block is attached during MIB table query (by obtaining the control block positioned on the tree, the data in the control block is returned to the MIB in the data format of the MIB table query interface), the node of the control ...

Embodiment 3

[0057] A kind of method for automatically generating software platform MIB function code provided by this embodiment, its basic steps are identical with embodiment two, and difference is: step A of this method specifically comprises the following operations:

[0058] Step A1, use the tag attribute in the configuration XML file to define the belonging module of the control block (such as "rldf"); use The label attribute defines the module product table ID (such as "LOCAL.lsr_index");

[0059] Step A2, use in the configuration XML file The header file where the label defines the data structure of the control block, (for example, the structure of the rldf_ftn_pw_data_cb control block is defined in the rldf.h file, so The path content of the label is ".. / rldf.h"); use The label defines the output file generated by the MIB function code. When there are multiple files, use a semicolon to separate them (for example, in the example of Embodiment 2, label outputs multiple fil...

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 discloses a method and a system for automatically generating MIB function codes of a software platform, and relates to the technical field of software development. The method comprises the following steps of setting an MIB generation rule of a control block in a configuration XML file; analyzing a specified software platform data structure header file in the configuration XML file byutilizing a Python script, and according to the set MIB generation rule, generating a data XML file of an MIB table; and analyzing the data XML file by utilizing the Python script, and by convertingan MIB table data structure in the data XML file, generating the MIB function codes of the software platform. The system comprises an MIB generation rule setting unit, a data XML file generation unitand an MIB function code generation unit. Therefore, the MIB grammar requirements of an RFC protocol can be met; the workload of manual coding is greatly reduced; and the coding error introduction risk is lowered.

Description

technical field [0001] The invention relates to the technical field of software development, and specifically relates to a method and system for automatically generating function codes of a software platform MIB (Management Information Base, Management Information Base). Background technique [0002] In recent years, the competition in the communication industry market has become increasingly fierce, and major equipment manufacturers have all accelerated the pace of new product research and development to seize favorable markets. In the development of the data communication main control system software platform, developers can customize and expand the MIB table according to their needs, and implement the corresponding callback functions (add, delete, check, and modify) of the MIB table. The above expanded codes are collectively referred to in the platform as MIB function code. The MIB function code plays a connecting role in the function development of the software platform...

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): G06F8/30
CPCG06F8/316
Inventor 吴涛蒋幸蒋玉玲方涛韵湘
Owner FENGHUO COMM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products