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

Method and system for querying control blocks of software platform based on Python

A technology of software platform and control block, which is applied in the direction of program control device, creation/generation of source code, programming language/example, etc. It can solve the problems of signaling timeout, low work efficiency, and affecting the quality of query control block work, so as to improve The effect of working precision and improving work efficiency

Active Publication Date: 2017-07-07
FENGHUO COMM SCI & TECH CO LTD
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) The workload of manually writing the display functions of each control block is large, not only the work efficiency is low, but also a large number of errors may occur during the writing process, and the work accuracy is seriously insufficient
[0006] (2) When querying the control block in the terminal, it will consult some data of the corresponding control block according to the display function of each control block. When it is necessary to query the complete data of the specified control block due to abnormal reasons (such as errors in the query process, etc.), you need to set Breakpoints are used to query; for protocol modules, there is usually protocol message interaction, so if the breakpoint is set for too long, it may cause other problems caused by signaling timeout and protocol disconnection, which will seriously affect the query Work quality of the control block

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 querying control blocks of software platform based on Python
  • Method and system for querying control blocks of software platform based on Python
  • Method and system for querying control blocks of software platform based on Python

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0023] see figure 1 As shown, the method of querying the software platform control block based on Python in the embodiment of the present invention includes the following steps:

[0024] S1: specify the header file of the module to be parsed, and go to S2.

[0025] In S1, take the structure control block RLDF_ILM_LDP_LSP_CB in the internal header file rldf.h of the RLDF module as an example. The format information of the control block includes the following fields:

[0026] typedef struct rldf_ilm_ldp_lsp_cb

[0027] {

[0028] RLDF_ILM_CB ilm;

[0029] AVLL_NODE ilm_ldp_lsp_tree_node;

[0030] RLDF_LDP_FEC_KEY fec_id;

[0031]}

[0032] RLDF_ILM_LDP_LSP_CB;

[0033] S2: Use a Python program to parse all control blocks in the header file, generate a callback function corresponding to each control block, and transfer to S3.

[0034] The...

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 querying control blocks of a software platform based on Python, and relates to the field of software control block query. The method comprises the steps of S1, specifying a header file of a to-be-analyzed module; S2, analyzing all control blocks in the header file by using a Python program, and generating a callback function corresponding to each control block; S3, creating a query command of each control block, and associating the query commands of all the control blocks to a control block output command line; and S4, after the control block output command line is associated with the callback functions of all the control blocks, generating a control block query file. According to the method and the system, all data of the control blocks can be viewed by using one command, so that the working efficiency, the working precision and the working quality are all relatively high; and therefore, the method and the system are very suitable for popularization.

Description

technical field [0001] The invention relates to the field of software control block query, in particular to a method and system for querying software platform control blocks based on Python. Background technique [0002] Python is an object-oriented interpreted computer programming language. When running a Python program, it is not necessary to go through intermediate steps such as compiling and linking like other languages ​​(such as C language or C++ language), and execute the Python program directly. Therefore, the Python program has the ability to quickly adjust in different situations, and the results of the program modification can often be seen immediately after the code is modified, which is very convenient for debugging and modification. [0003] The control block (Control Block) refers to a data structure inside each module, which is used to save the data inside the recording module. Generally, there are a large number of control blocks inside a module. When othe...

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): G06F9/44
CPCG06F8/31
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