CN102567144A - Automatic verification and automatic repair method of control software of numerical control system - Google Patents

Automatic verification and automatic repair method of control software of numerical control system Download PDF

Info

Publication number
CN102567144A
CN102567144A CN2011104392978A CN201110439297A CN102567144A CN 102567144 A CN102567144 A CN 102567144A CN 2011104392978 A CN2011104392978 A CN 2011104392978A CN 201110439297 A CN201110439297 A CN 201110439297A CN 102567144 A CN102567144 A CN 102567144A
Authority
CN
China
Prior art keywords
control system
time
digital control
checking
automatically
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.)
Pending
Application number
CN2011104392978A
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.)
HUNAN NICEWAY CNC TECHNOLOGY CO LTD
Original Assignee
HUNAN NICEWAY CNC TECHNOLOGY 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 HUNAN NICEWAY CNC TECHNOLOGY CO LTD filed Critical HUNAN NICEWAY CNC TECHNOLOGY CO LTD
Priority to CN2011104392978A priority Critical patent/CN102567144A/en
Publication of CN102567144A publication Critical patent/CN102567144A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an automatic verification and automatic repair method of control software of a numerical control system. The automatic verification and automatic repair method sequentially comprises the following steps: step 1: performing legitimacy verification on operation version by the numerical control system, and finishing the verification when the first verification result is yes; step 2: sequentially performing first automatic repair and second verification on the operation version by the numerical control system when the first verification result is no, and finishing the verification when the second verification result is yes; and step 3: performing second automatic repair and third verification on the operation version by the numerical control system when the second verification result is no, finishing the verification when the third verification result is yes and prompting a user to notice the appearance of hardware failure when the third verification result is no. According to the automatic verification and automatic repair method disclosed by the invention, the number of maintenance times of the numerical control system can be greatly reduced, and economic loss of both a manufacturer of the numerical control system and the user of the numerical control system is further reduced.

Description

The automatic checking of the Control Software of digital control system and the method for repairing automatically
Technical field
The present invention relates to numerical control field, especially, relate to a kind of automatic checking and automatic method of repairing of Control Software of digital control system.
Background technology
Present digital control system generally adopts embedded system, and its system architecture generally adopts the pattern of hardware+embedded OS+Control Software.When the Control Software of digital control system causes the Control Software of digital control system normally to start or to work owing to reasons such as suffering malicious attack or software upgrading failure; Existing digital control system can not judge automatically whether Control Software can normally be moved, and the user can only be with the digital control system depot repair or by special attendant's on-site maintenance.And the maintenance repeatedly of digital control system all causes economic loss in various degree for digital control system producer and digital control system user.
In addition, when Control Software occurs when unusual, existing digital control system can not be repaired Control Software automatically, and must artificially repair troublesome poeration.
Summary of the invention
The object of the invention is to provide a kind of automatic checking and method of repairing automatically of Control Software of digital control system; Can not judge automatically to solve existing digital control system whether Control Software can normally be moved; When Control Software occurs when unusual, existing digital control system can not be repaired the technical matters of Control Software automatically.
For realizing above-mentioned purpose; According to an aspect of the present invention; A kind of automatic checking and automatic method of repairing of Control Software of digital control system are provided; In turn include the following steps: the first step: digital control system is carried out legitimate verification to the operation version of the Control Software of system partitioning, when the result of checking for the first time is " being ", finishes checking and the normal digital control system of moving; Second step: when the result of checking for the first time was " denying ", digital control system was carried out the first time to the operation version and is repaired automatically; After automatic reparation for the first time, repeat the first step again and carry out the checking second time, when the result of checking for the second time is " being ", end checking and the normal digital control system of moving; The 3rd step: when the result of checking for the second time was " denying ", digital control system was carried out the second time to the operation version and is repaired automatically; After repairing automatically for the second time; Repeat the first step again and verify for the third time, when the result of checking for the third time is " being ", finish checking and the normal digital control system of moving; When the result of checking for the third time was " denying ", hardware fault appearred in digital control system prompting user digital control system.
Further, the legitimate verification in the first step in turn includes the following steps: step S011 starts digital control system; Step S012, digital control system is carried out the MD5 checking to the operation version of Control Software, passes through when the MD5 checking, then carries out following steps S013; Step S013, digital control system is carried out the checking of file structure and form to the operation version, passes through when file structure and form checking, then carries out following steps S014; Step S014 starts the operation version through digital control system; Step S015, in the process that the operation version starts, digital control system is carried out password authentification to the process of operation version.
Further; Carrying out reaching in the process of checking for the third time for the first time, for the second time respectively; When the process password authentification of the file structure of the MD5 of step S012 checking, step S013 and form checking and step S015 all through the time, for the first time, for the second time and the result of the correspondence of verifying for the third time be " being ".
Further; Carrying out reaching in the process of checking for the third time for the first time, for the second time respectively; When the process password authentification of the file structure of the MD5 of step S012 checking, step S013 and form checking and step S015 had any one authentication failed, the result of the correspondence of checking was " denying " for the first time, for the second time and for the third time.
Further, the detailed process of repairing automatically for the first time is following: the system partitioning of digital control system obtains backup version from the backup subregion of digital control system, thereby makes that the operation version of system partitioning is repaired for the first time.
Further; In second step: the operation version is after repairing for the first time automatically, and digital control system is carried out legitimate verification through step S011, step S012, step S013, step S014 and step S015 to the operation version that carries out repairing automatically for the first time once more successively.
Further, the detailed process of repairing automatically for the second time is following: the system partitioning of digital control system obtains the version that dispatches from the factory from the raw partition of digital control system, thereby makes that the operation version of system partitioning is repaired for the second time.
Further; In the 3rd step: the operation version is after repairing for the second time automatically, and digital control system is carried out legitimate verification through step S011, step S012, step S013, step S014 and step S015 to the operation version that carries out repairing automatically for the second time once more successively.
The present invention has following beneficial effect:
The automatic checking of the Control Software of digital control system of the present invention and the method for repairing automatically can realize the automatic checking of Control Software and repair automatically; The maintenance frequency of digital control system be can significantly reduce, and then digital control system producer and digital control system economic loss of user reduced.
Except top described purpose, feature and advantage, the present invention also has other purpose, feature and advantage.To do further detailed explanation to the present invention with reference to figure below.
Description of drawings
The accompanying drawing that constitutes the application's a part is used to provide further understanding of the present invention, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is automatic checking and the schematic flow sheet of the method for automatically repairing of Control Software of the digital control system of the preferred embodiment of the present invention; And
Fig. 2 is the schematic flow sheet of legitimate verification in automatic checking and the method for automatically repairing of Control Software of digital control system of the preferred embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing embodiments of the invention are elaborated, but the multitude of different ways that the present invention can be defined by the claims and cover is implemented.
The employed hardware store medium of the automatic checking of digital control system of the present invention and self-repairing method comprises three subregions, is respectively raw partition, backup subregion and system partitioning.Raw partition, backup subregion and system partitioning are respectively applied for the version that dispatches from the factory, the backup version of Control Software and the operation version of Control Software of storage Control Software.
Wherein, The version that dispatches from the factory of the control system that raw partition is stored is a read-only file; The file of this version that dispatches from the factory adopts specific process to write in the raw partition when digital control system is dispatched from the factory; Can not be modified or destroy even have the file of this version that dispatches from the factory of the highest authority yet, be damaged only if store the hardware store medium of this version that dispatches from the factory.Backup subregion and system partitioning institute files stored can write or revise, and the operation version that is stored in system partitioning is used to control the operation of numerically-controlled machine.
Digital control system is under the original state of dispatching from the factory, and the file content of the version that dispatches from the factory that raw partition, backup subregion and system partitioning are stored respectively, backup version and operation version is on all four.
Because the file that the operation version in the system partitioning is comprised can write arbitrarily or revise; After digital control system is used a period of time; When the user need upgrade perhaps other operation to Control Software; If misoperation will damage the Control Software of system partitioning, thereby cause operation version in the system partitioning normally not move and influence the operation of numerically-controlled machine.Thereby for preventing to make digital control system normally not move because of the operation version is illegally modified, therefore, when starting digital control system, digital control system needs earlier the operation version of being stored in the system partitioning to be carried out legitimate verification at every turn.
See also Fig. 1, the automatic checking and the restorative procedure of digital control system of the present invention comprise the steps:
The first step: digital control system is carried out legitimate verification to the operation version of the Control Software of system partitioning.
When the result of checking for the first time is " being ", finish normal this digital control system of moving of checking and beginning.
Second step: when the result of first step checking was "No", digital control system was carried out the first time of reparation automatically to the operation version of system partitioning; After repairing automatically for the first time, repeat the first step again and carry out the checking second time.When the result of checking for the second time is " being ", finish checking, can begin normally to move this digital control system.
The 3rd step: when the result of checking for the second time was " denying ", digital control system was carried out the second time of reparation automatically to the operation version of system partitioning; After repairing automatically for the second time, repeat the first step again and verify for the third time.When the result of checking for the third time is " being ", finish checking, can begin normally to move this digital control system; When the result of checking for the third time was " denying ", fault had appearred in the hardware of this digital control system of digital control system prompting user, need keep in repair.
By on can know; The automatic checking of the Control Software of digital control system of the present invention and the method for repairing automatically can realize the automatic checking of Control Software and repair automatically; The maintenance frequency of digital control system be can significantly reduce, and then digital control system producer and digital control system economic loss of user reduced.
Please combine with reference to Fig. 2, the detailed process of the above-mentioned first step is following:
Step S011 starts digital control system;
Step S012; Digital control system is carried out the MD5 checking to the operation version of the Control Software in the system partitioning that is stored in digital control system; Be specially: the MD5 value of calculating the file of operation version; When the original MD5 value of MD5 value that calculates and operation version was consistent, the MD5 checking was passed through, and carries out following steps S013;
Step S013 carries out file structure and form checking to the operation version, when checking is passed through, carries out following steps S014;
Step S014 is through the operation version of digital control system start-up control software;
Step S015, in the process that the operation version starts, digital control system is carried out password authentification to each process of operation version, is replaced by malice in start-up course with each process that prevents Control Software.When the password authentification of each process was also passed through, promptly the operation version of Control Software was legal, and checking finishes, and can normally start digital control system.
When the file structure of the MD5 of the above-mentioned steps S012 of first step checking, above-mentioned steps S013 and the process password authentification of form checking and above-mentioned steps S015 have any one authentication failed; Some file that the operation version is described is destroyed; Digital control system can't normally be moved; The checking first time in the first step finishes, then gets into for second step.
In second step; Digital control system is earlier carried out first time to the operation version of system partitioning and is repaired automatically, digital control system is carried out for the first time automatically that the operation version of reparation carries out the legitimate verification second time according to the step S011 in the above-mentioned first step to step S015 successively once more after repairing automatically for the first time.
Before the operation version of system partitioning carried out repairing the first time, digital control system can also be fed back abnormal information, and particularly, digital control system is through display screen output abnormality information, the report user be which file be damaged or which process initiation unusual.
The detailed process that digital control system carries out repairing automatically for the first time is: the system partitioning of digital control system obtains backup version from the backup subregion, thereby makes that the operation version of system partitioning is repaired for the first time.Preferably, system partitioning can obtain the file of full backup version from the backup subregion, make backup version replace operation version original in the system partitioning fully, thereby make backup version become the new operation version of system partitioning; System partitioning also can obtain partial document from the backup version of backup subregion, with the file that has damaged in this file that obtains replacement operation version, thereby realize repairing the first time of operation version.
When the process password authentification of the file structure of the MD5 checking of the above-mentioned steps S012 in second step, above-mentioned steps S013 and form checking and above-mentioned steps S015 is all passed through; The operation version that Control Software is described is legal after repairing for the first time; Checking for the second time finishes, and can normally start digital control system.
When MD5 checking, the file structure of above-mentioned steps S013 and the process password authentification of form checking and above-mentioned steps S015 of the above-mentioned steps S012 in second step has any one authentication failed; Explain that some file that carries out the automatic operation version of the repairing first time is destroyed; Digital control system can't normally be moved; The checking second time in second step finishes, then gets into for the 3rd step.
In the 3rd step; Digital control system is earlier carried out second time to the operation version that carries out repairing automatically for the first time of system partitioning and is repaired automatically, digital control system is carried out for the second time automatically that the operation version of reparation carries out legitimate verification for the third time according to the step S011 in the above-mentioned first step to step S015 successively once more after repairing automatically for the second time.
Before the operation version of system partitioning carried out repairing the second time, digital control system also can be fed back abnormal information, that is, inform the user be which file be damaged or which process initiation unusual.
The detailed process that digital control system carries out repairing automatically for the second time is: the system partitioning of digital control system obtains the version that dispatches from the factory from raw partition, thereby makes that the operation version of system partitioning is repaired for the second time.Preferably, system partitioning can obtain the file of the version that all dispatches from the factory from raw partition, and the feasible version that dispatches from the factory is replaced the operation version of repairing for the first time in the system partitioning fully, thereby the feasible version that dispatches from the factory becomes the new operation version of system partitioning; System partitioning also can obtain partial document from the version that dispatches from the factory of raw partition, with the file that has damaged in this file that obtains replacement operation version, thereby realize repairing the second time of operation version.
When MD5 checking, the file structure of above-mentioned steps S013 and the process password authentification of form checking and above-mentioned steps S015 of the above-mentioned steps S012 in the 3rd step has any one authentication failed; Explain that then CNC system hardware breaks down, need depot repair or by special attendant's on-site maintenance.When all checkings through the time, digital control system is carried out the second time to the operation version of system partitioning and is repaired successfully automatically, digital control system still can normally be moved.
After the operation version was successfully repaired for the second time, digital control system can be pointed out the user: the operation version had been reduced to the version that dispatches from the factory, asks customer upgrade to latest edition.
The reason that the operation version is carried out repairing for the second time is: after the backup version in the backup subregion is by malicious sabotage, even the operation version has been carried out repairing for the first time, can not make that digital control system normally starts.Like this, just need from raw partition, to obtain the version that dispatches from the factory, repair so that the operation version is carried out the second time.Because the version that dispatches from the factory that is stored in the raw partition can't be by malicious sabotage, so, can be to repairing the second time of operation version so that digital control system normal startup under the control of the version that dispatches from the factory.
To sum up; The automatic checking of the Control Software of digital control system of the present invention and the method for repairing automatically can realize the automatic checking of Control Software and repair automatically; The maintenance frequency of digital control system be can significantly reduce, and then digital control system producer and digital control system economic loss of user reduced.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the automatic checking of the Control Software of a digital control system and the method for reparation automatically is characterized in that, in turn include the following steps:
The first step: said digital control system is carried out legitimate verification to the operation version of the Control Software of system partitioning,
When the result who verifies for the first time is " being ", finishes checking and normally move said digital control system;
Second step: when the result of the said checking first time was " denying ", said digital control system was carried out the first time to said operation version and is repaired automatically; After the process said first time of automatic the reparation, repeat the said first step again and carry out the checking second time, when the result who verifies when the said second time was " being ", the end checking also normally moved said digital control system;
The 3rd step: when the result of the said checking second time was "No", said digital control system was carried out the second time to said operation version and is repaired automatically; After repairing automatically the said second time; Repeating the said first step again verifies for the third time; When the result of said checking for the third time is " being "; End checking and the said digital control system of normal operation, when the said result who verifies for the third time was "No", hardware fault appearred in the said digital control system of said digital control system prompting user.
2. the automatic checking of the Control Software of digital control system according to claim 1 and the method for reparation automatically is characterized in that the said legitimate verification in the said first step in turn includes the following steps:
Step S011 starts said digital control system;
Step S012, said digital control system is carried out the MD5 checking to the operation version of said Control Software, passes through when said MD5 checking, then carries out following steps S013;
Step S013, said digital control system is carried out the checking of file structure and form to said operation version, passes through when said file structure and form checking, then carries out following steps S014;
Step S014 starts said operation version through said digital control system;
Step S015, in the process that said operation version starts, said digital control system is carried out password authentification to the process of said operation version.
3. the automatic checking of the Control Software of digital control system according to claim 2 and the method for reparation automatically; It is characterized in that; Carrying out the said first time respectively, reaching in the process of checking for the third time for the second time; When the process password authentification of the file structure of the MD5 of said step S012 checking, said step S013 and form checking and said step S015 all through the time, the said first time, for the second time and the result of the correspondence of verifying for the third time be " being ".
4. the automatic checking of the Control Software of digital control system according to claim 2 and the method for reparation automatically; It is characterized in that; Carrying out the said first time respectively, reaching in the process of checking for the third time for the second time; When the process password authentification of the file structure of the MD5 of said step S012 checking, said step S013 and form checking and said step S015 had any one authentication failed, the said first time, for the second time and for the third time the result of the correspondence of checking was " denying ".
5. the automatic checking of the Control Software of digital control system according to claim 4 and the method for reparation automatically; It is characterized in that; Automatically the detailed process that repair the said first time is following: the said system partitioning of said digital control system obtains backup version from the backup subregion of said digital control system, thereby makes that the said operation version of said system partitioning is repaired for the first time.
6. the automatic checking of the Control Software of digital control system according to claim 5 and the method for reparation automatically; It is characterized in that; In said second step: said operation version is after repairing the said first time automatically, and said digital control system is carried out legitimate verification through said step S011, said step S012, said step S013, said step S014 and said step S015 to the said operation version that carries out repairing automatically for the first time once more successively.
7. the automatic checking of the Control Software of the digital control system of stating according to claim 4 and the method for repairing automatically; It is characterized in that; Automatically the detailed process that repair the said second time is following: the said system partitioning of said digital control system obtains the version that dispatches from the factory from the raw partition of said digital control system, thereby makes that the said operation version of said system partitioning is repaired for the second time.
8. the automatic checking of the Control Software of the digital control system of stating according to claim 7 and the method for repairing automatically; It is characterized in that; In said the 3rd step: said operation version is after repairing the said second time automatically, and said digital control system is carried out legitimate verification through said step S011, said step S012, said step S013, said step S014 and said step S015 to the said operation version that carries out repairing automatically for the second time once more successively.
CN2011104392978A 2011-12-23 2011-12-23 Automatic verification and automatic repair method of control software of numerical control system Pending CN102567144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104392978A CN102567144A (en) 2011-12-23 2011-12-23 Automatic verification and automatic repair method of control software of numerical control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104392978A CN102567144A (en) 2011-12-23 2011-12-23 Automatic verification and automatic repair method of control software of numerical control system

Publications (1)

Publication Number Publication Date
CN102567144A true CN102567144A (en) 2012-07-11

Family

ID=46412622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104392978A Pending CN102567144A (en) 2011-12-23 2011-12-23 Automatic verification and automatic repair method of control software of numerical control system

Country Status (1)

Country Link
CN (1) CN102567144A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294088A (en) * 2015-06-12 2017-01-04 联想(北京)有限公司 A kind of information processing method and electronic equipment
WO2017113316A1 (en) * 2015-12-31 2017-07-06 深圳配天智能技术研究院有限公司 System processing method and numerical control system
CN107291044A (en) * 2017-06-23 2017-10-24 深圳市盛路物联通讯技术有限公司 The intelligent control method and system of a kind of lathe running status

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529239A (en) * 2003-09-28 2004-09-15 中兴通讯股份有限公司 Fault-tolerant processing method for embedding device file system
US20060212792A1 (en) * 2005-03-18 2006-09-21 Microsoft Corporation Synchronously publishing a web page and corresponding web page resources
CN101384063A (en) * 2008-09-24 2009-03-11 中兴通讯股份有限公司 Method and system for terminal equipment repairing and updating, system manufacturing method
CN102143183A (en) * 2011-03-24 2011-08-03 镇江星浪科技产品有限公司 Document versioning method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529239A (en) * 2003-09-28 2004-09-15 中兴通讯股份有限公司 Fault-tolerant processing method for embedding device file system
US20060212792A1 (en) * 2005-03-18 2006-09-21 Microsoft Corporation Synchronously publishing a web page and corresponding web page resources
CN101384063A (en) * 2008-09-24 2009-03-11 中兴通讯股份有限公司 Method and system for terminal equipment repairing and updating, system manufacturing method
CN102143183A (en) * 2011-03-24 2011-08-03 镇江星浪科技产品有限公司 Document versioning method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294088A (en) * 2015-06-12 2017-01-04 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN106294088B (en) * 2015-06-12 2019-04-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
WO2017113316A1 (en) * 2015-12-31 2017-07-06 深圳配天智能技术研究院有限公司 System processing method and numerical control system
CN107850883A (en) * 2015-12-31 2018-03-27 深圳配天智能技术研究院有限公司 A kind of system processing method and digital control system
CN107850883B (en) * 2015-12-31 2020-07-28 深圳配天智能技术研究院有限公司 System processing method and numerical control system
CN107291044A (en) * 2017-06-23 2017-10-24 深圳市盛路物联通讯技术有限公司 The intelligent control method and system of a kind of lathe running status

Similar Documents

Publication Publication Date Title
TWI570324B (en) Method for configuring a wind energy installation, and wind energy installation
CN103678032B (en) The restorative procedure and device of system file
CN101526984A (en) Method for patching bugs and device thereof
CN102567144A (en) Automatic verification and automatic repair method of control software of numerical control system
CN102244659A (en) Execution method and apparatus of security policy script and security policy system
CN105931042A (en) Application authority management method and intelligent POS terminal
CN108804257A (en) SOT state of termination detection method, device, terminal and storage medium
CN110780904A (en) Application updating method and device
CN112955889A (en) Safe starting device and method
CN107958150A (en) A kind of method for detecting Android hot patch security
CN106250262A (en) A kind of based on double-mirror prevent SD from using during the method surprisingly distorted of flash
CN107733675A (en) A kind of method and system of license authentications
CN101615237A (en) Can verify embedded system and verification method thereof
JPWO2011099146A1 (en) Programmable controller
CN111275289B (en) Consistency checking method and device for main scheduling system and standby scheduling system
CN117270928A (en) Online upgrading method, system, equipment and medium for trusted DCS (distributed control system) upper computer software
CN102426592B (en) Method for initializing database based on dynamic password
CN103684745A (en) Set top box anti-copying method, set top box system and set top box
CN108810002B (en) Multi-CA application system and method of security chip
CN106228091A (en) A kind of safe firmware validation update method
CN111898165B (en) Technical parameter change tracing method and system in PDM system
CN105303116A (en) ERP (enterprise resource planning) product security protection apparatus and method
CN113971851A (en) Method and device for unlocking bank note box
CN114546420A (en) Software remote installation protection uninstalling method
CN111143818B (en) Component anti-counterfeiting method and device, anti-counterfeiting system and storage 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120711