CN106095462A - A kind of embedded distribution system program configuration version management method - Google Patents

A kind of embedded distribution system program configuration version management method Download PDF

Info

Publication number
CN106095462A
CN106095462A CN201610458027.4A CN201610458027A CN106095462A CN 106095462 A CN106095462 A CN 106095462A CN 201610458027 A CN201610458027 A CN 201610458027A CN 106095462 A CN106095462 A CN 106095462A
Authority
CN
China
Prior art keywords
file
version
configuration
program
check code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201610458027.4A
Other languages
Chinese (zh)
Inventor
周强
冯亚东
文继锋
陈宏君
徐东方
赵天恩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201610458027.4A priority Critical patent/CN106095462A/en
Publication of CN106095462A publication Critical patent/CN106095462A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The open a kind of embedded distribution system program configuration version management method of the present invention, step is: increase version information in each program file and configuration file;Off-line extracts each program file and the offline versions information of configuration file, calculates integrity checking code;The each program file of online collection and the online version information of configuration file, be calculated a check code and compare with integrity checking code, if it is inconsistent, record and report to the police;Check that integrity checking code i.e. can determine whether whether the version information of current whole system meets desired value.Extract by off-line, compare online, the method can check multiple program file, the concordance of configuration file version, ensure that the safety in operation of system, the integrity checking code that can represent multiple program file and configuration file uniqueness being additionally formed so that the version checking of whole embedded distribution system, management are very simple, reliable.

Description

A kind of embedded distribution system program configuration version management method
Technical field
The invention belongs to embedded distribution system field, particularly to a kind of distributed program file and configuration file Method for edition management.
Background technology
The software of embedded distribution system is often made up of one or more program, in order to safeguards system is reliable Property, it is necessary to these programs are carried out version management, it will usually adding liquid crystal menu shows, it is simple to verification.In order to realize a set of journey Sequence adapts to plurality of application scenes, also can increase various configuration file, the operation to system of these configuration files in embedded system Have a direct impact.Therefore configuration file version management to be included in as program file, it is ensured that program and the concordance of configuration, Prevent because of misoperation, illegally distort and cause system run-time error.Manage numerous program files and configuration literary composition the most easily Part version is a new problem.Common practice is that each program file and configuration file version information are all shown or beaten Printing off, by manually checking one by one, this method for edition management is comparatively laborious, especially the most aobvious time-consuming file is more when Arduously.
Summary of the invention
The purpose of the present invention, is to provide a kind of embedded distribution system program configuration version management method, Ke Yicong Ensure all program files and the concordance of configuration file in mechanism, it is to avoid misoperation, illegally distort the risk brought, improve The reliability of operation for embedded system, additionally provides the integrity checking code of, it is possible to the program file of identification whole system and The concordance of configuration file, quickly and easily.
In order to reach above-mentioned purpose, the solution of the present invention is:
A kind of embedded distribution system program configuration version management method, comprises the steps:
(1) in each program file and configuration file, version information is increased;
(2) off-line extracts each program file and the offline versions information of configuration file, calculates integrity checking code;
(3) online collect each program file and the online version information of configuration file, be calculated a check code and with Integrity checking code compares, if it is inconsistent, record and report to the police;
(4) check that integrity checking code i.e. can determine whether whether the version information of current whole system meets desired value.
In above-mentioned steps (1), increasing version information in program file and configuration file, wherein version information includes version Number, formed time, check code.Wherein check code is to produce program, configuration file according to certain computational methods and be saved in literary composition In part, check code can guarantee that the integrity of file, revises the file with check code, will cause verifying not passing through.Verification yardage Calculation method include but be not limited to cumulative and, CRC.
In above-mentioned steps (2), off-line obtains version information from each program file and configuration file, first according to check code Judge each file integrality, after All Files verification is all passed through, then be calculated an integrity checking code by certain rule, this Individual integrity checking code is each program file and the check code result of calculation of configuration file in system, can represent embedded system program File and configuration file uniqueness.
In above-mentioned steps (3), when system is run, version management module obtains each program file, configuration literary composition the most online The version information of part, is calculated a check code by same rule, and the integrity checking code obtained with calculated off line contrasts, If inconsistent, record and report to the police.
Version management module obtains the version information of each program file and configuration file online, if version management module with Program file or configuration file belong to different subsystems, and version management module can not directly read version information, then version Management module needs to be obtained each file version information of other subsystems by communication interface.Communication interface is by concrete embedding Formula system hardware defines.
In above-mentioned steps (4), people passes through man machine interface or communication interface, obtains the integrity checking of current embedded system Code, compares with desired value, is judged as all of program file of whole system, whether profile information meets the requirements, Without comparing single program file and configuration file one by one.
After taking this programme, the program file of embedded distribution system, configuration file are managed collectively supervision, all journeys Preface part, configuration file, system version file have reliable check code to ensure integrity, and system version file stores institute Some program files, configuration file version information, either program file, configuration file or system version file are replaced, Will be found by version management module and report to the police.The most this off-line extracts, the scheme of on-line testing, ensure that embedding from mechanism Enter the version management safety of formula distributed system.It addition, the integrity checking code formed, multiple program file and configuration can be represented The uniqueness of file, checks that an integrity checking code i.e. can determine whether all program files of current whole system, the version of configuration file Whether this information meets desired value so that whole system version checking, management are simpler, convenient.
Accompanying drawing explanation
Fig. 1 is embedded distribution system program configuration version management schematic diagram proposed by the invention;
Fig. 2 is the schematic diagram that off-line extracts version information;
Fig. 3 is the flow chart of On line inspection version information.
Detailed description of the invention
Below with reference to accompanying drawing, technical scheme is described in detail.
As it is shown in figure 1, the present invention provides a kind of embedded distribution system program configuration version management method, including as follows Step:
(1) in each program file and configuration file, version information is increased.
Described version information includes version number, formation time, check code.Wherein:
Version number is numerical value or character string, has multiple method to add program file or configuration file.For program, can To solidify with code form, for configuration file, can describe by character string;Can also be by a single conversion instrument, certainly Move increase version number in program file or configuration file.
The formation time is made up of year, month, day, hour, min, second information, has multiple method to add program file or configuration literary composition Part.Such as one independent file translations instrument of exploitation, increases formation time letter automatically in program file or configuration file Breath.
Check code is to produce and be saved in program file to program file or configuration file according to certain computational methods or join Putting in file, the computational methods used need to ensure that check code is unrelated with the formation time, and check code can guarantee that the integrity of file, Can be anti-tamper, revise the file with check code, will cause verifying unsuccessfully.Check code computational methods include but are not limited to add up With, CRC.
(2) off-line extracts each program file and the version information of configuration file, calculates integrity checking code.
As in figure 2 it is shown, the version extracting tool traversal all of program file of reading system and configuration file, first according to agreement Rule obtains version information from each program file and configuration file, judges each file integrality according to check code, works as institute After having file verification all to pass through, finally each program file and the title of configuration file, corresponding version information are saved in one In system version file.
This system version file includes a version information, Ji Zong version number, always forms time, integrity checking code;Total version Number can set in version extracting tool, total time desirable version that formed extracts current time, and integrity checking code can be to multiple Program file, the check code of configuration file carry out certain calculated result.
(3) online collect each program file and the version information of configuration file, be calculated a check code and with total school Test code to compare, if it is inconsistent, record and report to the police.
As it is shown on figure 3, in system initialisation phase, version management module first reads system version file, obtain all journeys Preface part and the filename of configuration file, more online each program or the version information of configuration file of obtaining one by one, and with system version The version information contrast of presents record, and according to rule as calculated off line integrity checking code, it is calculated one online Check code, and the integrity checking code of this check code with calculated off line is compared, if inconsistent, record and report to the police.
Version management module obtains the version information of each program file and configuration file online, if program file or configuration File belongs to different subsystems from version management module, causes version management module can not directly read version information, then Version management module needs to be obtained each file version information of other subsystems by communication interface.Communication interface is by concrete Embedded system hardware defines, and includes, but are not limited to dual port RAM, RS-485 bus, CAN, industry ethernet etc..
As found, version is inconsistent, can be shown by a LED, liquid crystal interface, the mode such as character terminal printing is reported Alert, facilitate Wrong localization position.
(4) check that integrity checking code i.e. can determine whether whether the version information of current whole system meets desired value.
The integrity checking code formed, it is possible to represent the uniqueness of multiple program file and configuration file.People passes through man-machine boundary Face or communication interface, obtain the integrity checking code of current embedded system, compare with desired value, be judged as whole system Whether all of program file, profile information meet the requirements, it is not necessary to compare single program file and configuration file one by one
Above example is only the technological thought that the present invention is described, it is impossible to limit protection scope of the present invention with this, every The technological thought proposed according to the present invention, any change done on the basis of technical scheme, each fall within scope Within.

Claims (7)

1. an embedded distribution system program configuration version management method, it is characterised in that comprise the steps:
(1) in each program file and configuration file, version information is increased;
(2) off-line extracts each program file and the offline versions information of configuration file, calculates integrity checking code;
(3) online collect each program file and the online version information of configuration file, be calculated a check code and with total school Test code to compare, if it is inconsistent, record and report to the police;
(4) check integrity checking code and then judge whether the version information of current whole system meets desired value.
2. a kind of embedded distribution system program configuration version management method as claimed in claim 1, it is characterised in that: step Suddenly, in (1), described version information includes version number, formation time, check code, and wherein check code is according to program file or configuration File produces after calculating, and is saved in program file or configuration file.
3. a kind of embedded distribution system program configuration version management method as claimed in claim 1, it is characterised in that: institute State in step (2) and specifically include, first judge each file integrality according to check code, after All Files verification is all passed through, then Through calculating an integrity checking code that can represent embedded system program and configuration uniqueness.
4. a kind of embedded distribution system program configuration version management method as claimed in claim 1, it is characterised in that: institute Stating in step (3), when system is run, version management module obtains the version letter of each program file, configuration file the most online Breath, calculates a check code, and the integrity checking code obtained with calculated off line contrasts, if inconsistent, record is also Report to the police.
5. a kind of embedded distribution system program configuration version management method as claimed in claim 2, it is characterised in that: institute Stating check code unrelated with the formation time, check code is in order to ensure the integrity of file;When amendment is with the file of check code, will lead Cause verification not pass through.
6. a kind of embedded distribution system program configuration version management method as claimed in claim 4, it is characterised in that: step Suddenly (2) are with step (3), according to offline versions information and online version information, use identical check code computational methods to draw Check code.
7. a kind of embedded distribution system program configuration version management method as claimed in claim 4, it is characterised in that: when When version management module can not directly read version information, version management module obtains other subsystems by communication interface Each file version information.
CN201610458027.4A 2016-06-22 2016-06-22 A kind of embedded distribution system program configuration version management method Withdrawn CN106095462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610458027.4A CN106095462A (en) 2016-06-22 2016-06-22 A kind of embedded distribution system program configuration version management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610458027.4A CN106095462A (en) 2016-06-22 2016-06-22 A kind of embedded distribution system program configuration version management method

Publications (1)

Publication Number Publication Date
CN106095462A true CN106095462A (en) 2016-11-09

Family

ID=57238926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610458027.4A Withdrawn CN106095462A (en) 2016-06-22 2016-06-22 A kind of embedded distribution system program configuration version management method

Country Status (1)

Country Link
CN (1) CN106095462A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391127A (en) * 2017-07-06 2017-11-24 上海斐讯数据通信技术有限公司 Software version information store method and system
CN108108260A (en) * 2016-11-25 2018-06-01 沈阳美行科技有限公司 The method of calibration and device of a kind of resource file
CN108182150A (en) * 2017-12-29 2018-06-19 五八有限公司 Test method, device, readable storage medium storing program for executing and the equipment that version number compares
CN109189371A (en) * 2018-08-06 2019-01-11 广东小天才科技有限公司 A kind of the software package dissemination method and device isolated based on configuration
CN109766235A (en) * 2018-12-13 2019-05-17 深圳壹账通智能科技有限公司 Configuration file detection method, system, equipment and medium based on software supervision
CN110471782A (en) * 2018-05-09 2019-11-19 杭州海康汽车技术有限公司 A kind of accordant configuration information processing method, device and electronic equipment
CN113342852A (en) * 2021-06-09 2021-09-03 上海万物新生环保科技集团有限公司 Method and equipment for realizing distributed configuration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648857A (en) * 2004-01-28 2005-08-03 三星电子株式会社 Auto version managing system and method for use in software
CN103699484A (en) * 2013-12-20 2014-04-02 中国北方车辆研究所 Version management method of embedded software component
CN104376098A (en) * 2014-11-25 2015-02-25 浪潮电子信息产业股份有限公司 File batch validation method based on python
CN105260654A (en) * 2015-11-13 2016-01-20 浪潮电子信息产业股份有限公司 Verification method for own integrity of software system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648857A (en) * 2004-01-28 2005-08-03 三星电子株式会社 Auto version managing system and method for use in software
CN103699484A (en) * 2013-12-20 2014-04-02 中国北方车辆研究所 Version management method of embedded software component
CN104376098A (en) * 2014-11-25 2015-02-25 浪潮电子信息产业股份有限公司 File batch validation method based on python
CN105260654A (en) * 2015-11-13 2016-01-20 浪潮电子信息产业股份有限公司 Verification method for own integrity of software system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108260A (en) * 2016-11-25 2018-06-01 沈阳美行科技有限公司 The method of calibration and device of a kind of resource file
CN108108260B (en) * 2016-11-25 2022-05-31 沈阳美行科技股份有限公司 Resource file verification method and device
CN107391127A (en) * 2017-07-06 2017-11-24 上海斐讯数据通信技术有限公司 Software version information store method and system
CN108182150A (en) * 2017-12-29 2018-06-19 五八有限公司 Test method, device, readable storage medium storing program for executing and the equipment that version number compares
CN110471782A (en) * 2018-05-09 2019-11-19 杭州海康汽车技术有限公司 A kind of accordant configuration information processing method, device and electronic equipment
CN110471782B (en) * 2018-05-09 2023-04-07 杭州海康汽车技术有限公司 Configuration information consistency processing method and device and electronic equipment
CN109189371A (en) * 2018-08-06 2019-01-11 广东小天才科技有限公司 A kind of the software package dissemination method and device isolated based on configuration
CN109189371B (en) * 2018-08-06 2022-03-01 广东小天才科技有限公司 Software package issuing method and device based on configuration separation
CN109766235A (en) * 2018-12-13 2019-05-17 深圳壹账通智能科技有限公司 Configuration file detection method, system, equipment and medium based on software supervision
CN113342852A (en) * 2021-06-09 2021-09-03 上海万物新生环保科技集团有限公司 Method and equipment for realizing distributed configuration

Similar Documents

Publication Publication Date Title
CN106095462A (en) A kind of embedded distribution system program configuration version management method
CN104375870A (en) Self-service terminal software remote upgrading method and system and upgrading package creation method
US8892493B2 (en) Compatibility testing using traces, linear temporal rules, and behavioral models
CN109934268B (en) Abnormal transaction detection method and system
CN103227734A (en) Method for detecting abnormity of OpenStack cloud platform
KR102418859B1 (en) System and method for managing dangerous factors in AEO certification process
CN106681854B (en) Information verification method, device and system
CN111339151B (en) Online examination method, device, equipment and computer storage medium
CN109815697B (en) Method and device for processing false alarm behavior
CN114493255A (en) Enterprise abnormity monitoring method based on knowledge graph and related equipment thereof
CN102546296A (en) Automatic detecting method and device for electric power industry information system networking safety evaluation
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN109064211B (en) Marketing business data analysis method and device and server
CN103440460A (en) Application system change validation method and system
CN112637888B (en) Coverage hole area identification method, device, equipment and readable storage medium
CN107145417A (en) A kind of outer plug-in card installation site method of calibration and device
CN112256532A (en) Test interface generation method and device, computer equipment and readable storage medium
CN105373473B (en) CDR accuracys method of testing and test system based on original signaling decoding
CN108416569B (en) Verification method and system for surveying and mapping achievement
CN114168949B (en) Application software anomaly detection method and system applied to artificial intelligence
CN116415851A (en) Intelligent identification and evaluation method for facility operation and maintenance performance indexes based on deep learning
KR101415528B1 (en) Apparatus and Method for processing data error for distributed system
CN113032744B (en) Digital watermarking integrated machine system
CN104123469A (en) Detection scheduling system and method for context consistency in pervasive computing environment
CN117150233B (en) Power grid abnormal data management method, system, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20161109

WW01 Invention patent application withdrawn after publication