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

Control method for reducing program upgrade amount of metering equipment

A technology of metering equipment and control methods, applied in the directions of calculation, software engineering design, creation/generation of source code, etc., can solve the problems of large scattered loading description files, difficulty in file maintenance, management, affecting the layout of other areas, etc., to avoid duplication. Upgrade, save data, and ensure the effect of normal operation

Active Publication Date: 2022-06-24
GOLDCARD HIGH TECH
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the number of functions called by other areas is large, for metering devices with limited storage space, it is not negligible to reserve a certain amount of storage space for these functions, and even affect the layout of other areas
Due to the large number of functions called by other areas, the scatter-loading description file becomes huge, which will bring certain difficulties to the maintenance and management of the file

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
  • Control method for reducing program upgrade amount of metering equipment
  • Control method for reducing program upgrade amount of metering equipment
  • Control method for reducing program upgrade amount of metering equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] The control method for reducing the program upgrade amount of the metering device proposed in this embodiment, such as figure 1 As shown, the control method includes:

[0033] 11. According to the function of the meter, the program area of ​​the metering device is divided into metering-related sub-regions and non-metering-related sub-regions, and the starting position of each sub-region after division is filled with a function pointer table initialization function;

[0034] 12. Establish a function pointer table for each sub-region, and the function pointer table includes the function address, base address and pre-agreed storage location of the function address called by other sub-regions outside the sub-region;

[0035] 13. Map the content code of each sub-region into the scatter-loading description file, and link the scatter-loading description file with the help of a linker to obtain an executable file corresponding to each sub-region;

[0036] 14. Execute each exec...

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 embodiment of the present invention proposes a control method for reducing the program upgrade amount of the metering device, which includes dividing the program area of ​​the metering device into metering-related sub-areas and non-metering-related sub-areas, and each divided sub-area is filled with a function pointer table Initialize function; establish a function pointer table for each sub-area; execute each executable file one by one, initialize the contents of the function pointer table according to the function pointer table initialization function in each sub-area, and use the initialized function pointer table The storage location of the function address is used to update the content of the function call. Since it is only necessary to ensure that the function pointer table is normal during the upgrade process, except for the "function pointer table initialization" function in each sub-area, all functions called by other areas do not need to perform address fixing operations, avoiding The address is fixed and a certain amount of storage space must be reserved for these functions, resulting in wasted space.

Description

technical field [0001] The invention belongs to the field of program upgrade, and in particular relates to a control method for reducing the program upgrade amount of a metering device. Background technique [0002] At present, the existing technologies used to reduce the amount of program upgrades are mainly realized by means of the positioning mechanism of the linker tool. That is, the user's application program is divided into multiple areas by scatter-loading the description file, and they are allocated to different addresses for storage and operation. When the program is divided into multiple areas, there will be some functions called by other areas in each area. In order to ensure that after the program of a certain area is changed, the addresses of the functions called by other areas will not change ( That is, it can be called normally by programs in other areas), and the addresses of these functions called by other areas need to be fixed in the scatter-loading descr...

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 Patents(China)
IPC IPC(8): G06F8/658G06F8/30
Inventor 张维史林志蒙胡中卫王浩赵继高
Owner GOLDCARD HIGH TECH
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