Method for recording version information in embedded software

A technology of embedded software and version information, applied in the direction of program control devices, etc., can solve the problems of software version file damage, loss, inflexibility, etc.

Inactive Publication Date: 2007-09-26
ZTE CORP
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. Write the software version hard in a file of the program. This method is very inflexible. Every time a version upgrade is required, the file must be modified, so it is rarely used
[0004] 2. After generating the executable image file, use tools to compress the version and add version information in front of the compress...

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 for recording version information in embedded software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

[0020] Fig. 1 shows the flowchart of recording version information of the present invention, comprises the following steps:

[0021] 101. Define a global variable of version information in the program, such as gchVerInfo[MAX_VER_INFO], initialize it or not.

[0022] 102. Compile and generate ELF format image file vxworks. Different compilers may generate different formats, not limited to ELF format, including other COFF or OUT formats, etc.

[0023] 103. Analyze the symbol table of the ELF file by using a version creation tool, find the storage location of the global variable in the ELF format file, and write the version information into the ELF file. Wherein, the version information may include software version, producer, machine name of the producing PC, IP address, production time and other information. If the variable is not initialized, a...

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

This invention discloses one method to imbed software record edit information, which comprises the following steps: a, defining one edit information whole volume for initiating in software; b, coding the files into executive image file; c, according to file form to analyze the image file to find out the memory position in first step to write the edit information into position; d, converting the corrected file into bin file; e, compressing bin file and compressing the edit file into compression file head; f, decompressing the software edit to get edit information through reading whole volume.

Description

technical field [0001] The invention relates to a method for recording software version information in a computer system, especially in single-board embedded software. Background technique [0002] For embedded software, software version upgrades are frequent, and there are generally two ways to record information: [0003] 1. Hard-write the software version in a certain file of the program. This method is very inflexible. Every time a version upgrade is required, the file must be modified, so it is rarely used. [0004] 2. After generating the executable image file, use tools to compress the version and add version information in front of the compressed file. This method is more common, but this method requires software to obtain version information from the compressed file header. Version rollback, program errors, software version files are damaged or lost, and the software currently running in memory may not be able to accurately obtain the currently running version info...

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 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