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

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: 2009-02-18
ZTE CORP
View PDF6 Cites 2 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 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 information

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

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

[0026] figure 1 Shown is the flowchart of recording version information of the present invention, including the following steps:

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

[0028] 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.

[0029] 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 information such as the version of the software, the producer, the machine name of the producing PC, the IP address, and the producing time. If ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 成四海
Owner ZTE CORP
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