CN105045146A - System with reset function and restart control method thereof - Google Patents

System with reset function and restart control method thereof Download PDF

Info

Publication number
CN105045146A
CN105045146A CN201510383335.0A CN201510383335A CN105045146A CN 105045146 A CN105045146 A CN 105045146A CN 201510383335 A CN201510383335 A CN 201510383335A CN 105045146 A CN105045146 A CN 105045146A
Authority
CN
China
Prior art keywords
test value
proof test
software program
storer
storage
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.)
Granted
Application number
CN201510383335.0A
Other languages
Chinese (zh)
Other versions
CN105045146B (en
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.)
Shenzhen Prunus Medical Co Ltd
Original Assignee
SHENZHEN POOPLE SCIENCE AND 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 SHENZHEN POOPLE SCIENCE AND TECHNOLOGY Co Ltd filed Critical SHENZHEN POOPLE SCIENCE AND TECHNOLOGY Co Ltd
Priority to CN201510383335.0A priority Critical patent/CN105045146B/en
Publication of CN105045146A publication Critical patent/CN105045146A/en
Application granted granted Critical
Publication of CN105045146B publication Critical patent/CN105045146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Stored Programmes (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention can be applied to the field of system software processing, and provides a restart control method for a system with a reset function. The method comprises steps: A, whether a system software program is started is detected; B, when starting of system software is detected, data stored in a memory are calibrated and a calibration value is acquired; C, the calibration value and a stored calibration value in the memory are compared; D, if the calibration value is consistent with the stored calibration value, the stored data are imported to the system software program, and the system software program operates according to the imported stored data; and E, if the calibration value and the stored calibration value are not consistent, the system software program starts according to a normal order. Through the method provided by the invention, the system can perform calibration according to the stored data in the memory in the case of start, whether reset restart or power-off restart happens to the system can be accurately judged, data before reset can be quickly recovered when reset restart happens to the system, and safety of the user can be ensured.

Description

A kind of have the system of reset function and restart control method
Technical field
The invention belongs to system software process, particularly relate to and a kind ofly there is the system of reset function and restart control method.
Background technology
The function of Anesthesia machine, lung ventilator be carry out anaesthetizing to patient by doctor's setup parameter, air feed etc., when unpredictable resets occurs the software of machine, system needs self-inspection step when skipping normal startup, state before quickly recovering to reset.After System recover, the parameter that machine is still preset by doctor is run.If after machine reset, system can not return to reset before state, this will cause serious injury to patient.
Prior art adopts external memory storage to carry out the on-site parameters of storing software operation, and the operating speed of external memory storage is slow, if when storing software operational factor, meet accident reset, then correctly can not recover the operation of software.
Be switching on and shutting down at above-mentioned Anesthesia machine, lung ventilator by people, machine will start to default setting; And machine unexpected reset, state before returning to reset, this just needs to preserve Software thread information, and the key variables and the setup parameter that have influence on running software all need to preserve in memory.The unexpected reset of system is unpredictable, and the number of times of the change of running software shape variable is hard-core, this memory device operating speed will seeking survival these information of storage wants fast, it is unlimited for reading while write number of times, and some CPU can not judge that system is that power-off starts very well now, or unexpected reset (system does not have power-off) starts.
Summary of the invention
Technical matters to be solved by this invention is that providing a kind of has the system of reset function and restart control method, is intended to solve prior art and can not judges that system is the problem that power-off restarting or unexpected reset are restarted.
The present invention be achieved in that a kind of there is the system of reset function restart control method, described quick recovery method comprises the following steps:
Whether steps A, detect and have system software program to start;
Step B, when having detected that system software starts, having carried out verification to the storage data in storer and having obtained proof test value;
Step C, compares the storage proof test value in described proof test value and described storer;
Step D, if described proof test value is consistent with described storage proof test value, by system software program described in described storage data importing, described system software program is according to the described storage data run imported;
Step e, if described proof test value and described storage proof test value inconsistent, described system software program starts according to normal sequence.
Further, described storer for described in there is the RAM storer of the CPU inside of the system of reset function.
Further, described storage data comprise operation variable, setup parameter and proof test value; Described storage proof test value obtains according to described operational factor and the verification of described setup parameter.
Further, described quick recovery method also comprises:
Step F, runs variable by the change in described system software program operational process and change parameter is updated to described storer;
Carry out verification according to described change operation variable and change parameter and generate change storage proof test value, and be updated in described storer.
Further, step B adopts CRC-32 standard to verify.
Present invention also offers a kind of system of concrete reset function, comprising:
Whether detecting unit, have software program to start for detecting;
Verification unit, for when software startup having been detected, having carried out verification to the storage data in storer and having obtained proof test value;
Comparing unit, for comparing the storage proof test value in described proof test value and described storer;
First restarts performance element, and for when judging that described proof test value is consistent with described storage proof test value, by software program described in described storage data importing, described software program is according to the described storage data run imported;
Second restarts performance element, and for when judging described proof test value and described storage proof test value is inconsistent, described software program starts according to normal sequence.
Further, described storer is RAM storer.
Further, described storage data comprise operation variable, setup parameter and proof test value; Described storage proof test value obtains according to described operational factor and the verification of described setup parameter.
Further, described quick recovery system also comprises:
Updating block, for being updated to described storer by the change operation variable in described software program operational process and change parameter;
Carry out verification according to described change operation variable and change parameter and generate change storage proof test value, and be updated in described storer.
Further, described verification unit adopts CRC-32 standard to verify.
The present invention compared with prior art, beneficial effect is: utilize CPU internal RAM power-off boiling characteristics (during power-off, RAM stores content and automatically disappears, machine unexpected reset can not power-off, RAM stores content and remains unchanged), system can verify according to the certificate of CPU internal RAM storage number when starting, thus accurately judgement system resets to restart or power-off restarting, thus the data before system can be made to quickly recover to reset when reset occurring and restarting, thus ensure that the safety of user.
Accompanying drawing explanation
Fig. 1 is a kind of process flow diagram of restarting control method with the system of reset function that the embodiment of the present invention provides.
Fig. 2 is a kind of structural representation with the system of reset function that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
All can there be RAM the CPU inside of Anesthesia machine and lung ventilator embedded system, the present invention utilizes the power-off volatility of RAM (storing content automatically to eliminate), and when during cpu reset, the constant characteristic of internal RAM information realizes system unexpected reset, the data that system can store according to RAM carry out fast quick-recovery.The power-off volatility of RAM, solves system cut-off easily and starts or unexpected reset startup.And the read or write speed of CPU internal RAM is CPU internal bus speed, can fast speed storing software operational factor much of that.
In CPU, RAM retains operation variable and the setup parameter of one piece of region backup software, and operation variable and the parameter of each change software all need to backup to this region; CPU powers on start, and the RAM content that this block retains is unpredictable, all needs to verify the content in this region when software brings into operation, thus, during the data of each renewal backup area, also need the School Affairs calculating this part data, School Affairs is also stored in reserved area.Method of calibration uses standard C RC-32 to enter verification, and after CRC check is correct, then carry out legal inspection to the parameters of backup, energy 100% judges that system is unexpected recovery like this, and still power on start.
Inspection CPU inside retains RAM, and confirmation system is unexpected reset, and software can then bypass system self-inspection and some other action consuming time, directly recovers running software parameter from RAM reserve area; The data of reserve area not by verification, then illustrate it is that system electrification opens, and running software then starts by normal dynamic order.
According to above-mentioned understanding, to the invention provides as shown in Figure 1 a kind of there is the system of reset function restart control method, comprise the following steps:
S1, detection system software program starts to start.In this step, no matter power on start or reset start, and Anesthesia machine, lung ventilator all start to start its built-in system software program.
S2, verification RAM reserved area data.In this step, in Anesthesia machine or lung ventilator, in embedded system the RAM of CPU inside reserved area in data verify, method of calibration herein adopts standard C RC-32 to verify.
S3, judges that whether check results is correct.In this step, the storage proof test value that the proof test value obtain verification and reserved area store compares, and judges that this time startup is whether whether consistent with storage proof test value to the proof test value of reserved area data, is unanimously then judged as correct, inconsistent, is judged as mistake.
S4, recovers data from RAM reserved area.In this step, if the check results of step S3 is correct, then judge this time to start and start as resetting, the embedded system of Anesthesia machine, lung ventilator recovers data from RAM reserved area, system software program starts normal operation according to the data recovered, and described data comprise runs variable and setup parameter etc.
S5, System self-test.In this step, if the check results mistake of step S3, then electrifying startup when judging this time to start, the embedded system of Anesthesia machine, lung ventilator carries out System self-test, and carries out startup optimization according to normal boot sequence.
S6, monitoring system is in normal operation, and whether running software parameter changes, if operational factor does not change, then system continues normal operation.In this step, because therefore Anesthesia machine, lung ventilator because corresponding change occurs the situation of patient, can need Real-Time Monitoring operational factor.
S7, changes if monitor running software parameter in step S6, then the operational factor of change is updated in internal RAM reserved area.
S8, carries out CRC check to the operational factor after upgrading, and is updated in internal RAM reserved area.
Pass through said method, when system software program starts to start, first CRC check is carried out to the data of the reserved area of RAM in CPU, when this time starting judgement according to check results, electrifying startup still resets startup, reset if be judged as and start, data resuming operation fast can be read fast from reserved area, thus avoid the accident generation of the medical treatment caused because Anesthesia machine in software fault or other situations, lung ventilator reset.
As described in Figure 2, be a kind of system with reset function that the embodiment of the present invention provides, comprise:
Detecting unit 1, starts for inspection software program;
Verification unit 2, obtains proof test value for carrying out verification to the storage data in storer;
Comparing unit 3, for comparing the storage proof test value in described proof test value and described storer;
First restarts performance element 4, and for when judging that described proof test value is consistent with described storage proof test value, by software program described in described storage data importing, described software program is according to the described storage data run imported;
Second restarts performance element 5, and for when judging described proof test value and described storage proof test value is inconsistent, described software program starts according to normal sequence;
Updating block 6, for being updated to described storer by the change operation variable in described software program operational process and change parameter;
Carry out verification according to described change operation variable and change parameter and generate change storage proof test value, and be updated in described storer.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. what have the system of reset function restarts a control method, it is characterized in that, described quick recovery method comprises the following steps:
Whether steps A, detect and have system software program to start;
Step B, when having detected that system software starts, having carried out verification to the storage data in storer and having obtained proof test value;
Step C, compares the storage proof test value in described proof test value and described storer;
Step D, if described proof test value is consistent with described storage proof test value, by system software program described in described storage data importing, described system software program is according to the described storage data run imported;
Step e, if described proof test value and described storage proof test value inconsistent, described system software program starts according to normal sequence.
2. restart control method as claimed in claim 1, it is characterized in that, described storer for described in there is the RAM storer of the CPU inside of the system of reset function.
3. restart control method as claimed in claim 2, it is characterized in that, described storage data comprise runs variable, setup parameter and proof test value; Described storage proof test value obtains according to described operational factor and the verification of described setup parameter.
4. restart control method as claimed in claim 3, it is characterized in that, described quick recovery method also comprises:
Step F, runs variable by the change in described system software program operational process and change parameter is updated to described storer;
Carry out verification according to described change operation variable and change parameter and generate change storage proof test value, and be updated in described storer.
5. as described in above-mentioned arbitrary claim, restart control method, it is characterized in that, step B adopts CRC-32 standard to verify.
6. a system for concrete reset function, is characterized in that, comprising:
Whether detecting unit, have software program to start for detecting;
Verification unit, for when software startup having been detected, having carried out verification to the storage data in storer and having obtained proof test value;
Comparing unit, for comparing the storage proof test value in described proof test value and described storer;
First restarts performance element, and for when judging that described proof test value is consistent with described storage proof test value, by software program described in described storage data importing, described software program is according to the described storage data run imported;
Second restarts performance element, and for when judging described proof test value and described storage proof test value is inconsistent, described software program starts according to normal sequence.
7. system as claimed in claim 6, it is characterized in that, described storer is RAM storer.
8. system as claimed in claim 7, is characterized in that, described storage data comprise runs variable, setup parameter and proof test value; Described storage proof test value obtains according to described operational factor and the verification of described setup parameter.
9. system as claimed in claim 8, it is characterized in that, described quick recovery system also comprises:
Updating block, for being updated to described storer by the change operation variable in described software program operational process and change parameter;
Carry out verification according to described change operation variable and change parameter and generate change storage proof test value, and be updated in described storer.
10. the system as described in any one of claim 6-10, is characterized in that, described verification unit adopts CRC-32 standard to verify.
CN201510383335.0A 2015-07-03 2015-07-03 A kind of system with reset function and its restart control method Active CN105045146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510383335.0A CN105045146B (en) 2015-07-03 2015-07-03 A kind of system with reset function and its restart control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510383335.0A CN105045146B (en) 2015-07-03 2015-07-03 A kind of system with reset function and its restart control method

Publications (2)

Publication Number Publication Date
CN105045146A true CN105045146A (en) 2015-11-11
CN105045146B CN105045146B (en) 2018-06-26

Family

ID=54451765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510383335.0A Active CN105045146B (en) 2015-07-03 2015-07-03 A kind of system with reset function and its restart control method

Country Status (1)

Country Link
CN (1) CN105045146B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808296A (en) * 2016-03-08 2016-07-27 江苏万帮德和新能源科技有限公司 Client side software startup method used for charging pile to safely upgrade own program
CN107193555A (en) * 2017-05-04 2017-09-22 广州视源电子科技股份有限公司 Restarting method and device for electrical equipment
CN110433047A (en) * 2019-07-25 2019-11-12 江苏慧明智能科技有限公司 Intelligence cleaning device for nursing beds and intelligent cleaning method
CN111427327A (en) * 2019-12-27 2020-07-17 湖北航天飞行器研究所 Protection method for abnormal restart of aircraft control software
CN111611015A (en) * 2020-05-18 2020-09-01 歌尔科技有限公司 Embedded firmware, starting method and storage equipment
CN112417433A (en) * 2019-08-21 2021-02-26 纬湃科技投资(中国)有限公司 Method for checking an application of an electronic control unit
CN113553086A (en) * 2021-07-27 2021-10-26 歌尔科技有限公司 Configuration information access method, device and computer readable storage medium
CN114488895A (en) * 2022-01-24 2022-05-13 郑州大学第三附属医院(河南省妇幼保健院) Portable pelvic cavity treatment equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042652A (en) * 2006-03-20 2007-09-26 中兴通讯股份有限公司 Method for protecting software startup parameter zone
CN101135974A (en) * 2006-08-28 2008-03-05 中兴通讯股份有限公司 Device and method capable of improving starting speed of chip
CN101221508A (en) * 2008-01-31 2008-07-16 杭州华三通信技术有限公司 Equipment starting method and device
CN101329631A (en) * 2007-06-21 2008-12-24 大唐移动通信设备有限公司 Method and apparatus for automatically detecting and recovering start-up of embedded system
CN103793032A (en) * 2012-11-02 2014-05-14 华为技术有限公司 Method and device for determining power-on reset

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042652A (en) * 2006-03-20 2007-09-26 中兴通讯股份有限公司 Method for protecting software startup parameter zone
CN101135974A (en) * 2006-08-28 2008-03-05 中兴通讯股份有限公司 Device and method capable of improving starting speed of chip
CN101329631A (en) * 2007-06-21 2008-12-24 大唐移动通信设备有限公司 Method and apparatus for automatically detecting and recovering start-up of embedded system
CN101221508A (en) * 2008-01-31 2008-07-16 杭州华三通信技术有限公司 Equipment starting method and device
CN103793032A (en) * 2012-11-02 2014-05-14 华为技术有限公司 Method and device for determining power-on reset

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808296A (en) * 2016-03-08 2016-07-27 江苏万帮德和新能源科技有限公司 Client side software startup method used for charging pile to safely upgrade own program
CN105808296B (en) * 2016-03-08 2019-06-25 江苏万帮德和新能源科技股份有限公司 A kind of client software starting method for itself program of charging pile safety upgrade
CN107193555A (en) * 2017-05-04 2017-09-22 广州视源电子科技股份有限公司 Restarting method and device for electrical equipment
CN110433047A (en) * 2019-07-25 2019-11-12 江苏慧明智能科技有限公司 Intelligence cleaning device for nursing beds and intelligent cleaning method
CN112417433A (en) * 2019-08-21 2021-02-26 纬湃科技投资(中国)有限公司 Method for checking an application of an electronic control unit
CN111427327A (en) * 2019-12-27 2020-07-17 湖北航天飞行器研究所 Protection method for abnormal restart of aircraft control software
CN111611015A (en) * 2020-05-18 2020-09-01 歌尔科技有限公司 Embedded firmware, starting method and storage equipment
CN111611015B (en) * 2020-05-18 2023-07-14 歌尔科技有限公司 Embedded firmware, starting method and storage device
CN113553086A (en) * 2021-07-27 2021-10-26 歌尔科技有限公司 Configuration information access method, device and computer readable storage medium
CN114488895A (en) * 2022-01-24 2022-05-13 郑州大学第三附属医院(河南省妇幼保健院) Portable pelvic cavity treatment equipment and system
CN114488895B (en) * 2022-01-24 2024-03-29 郑州大学第三附属医院(河南省妇幼保健院) Portable pelvic cavity treatment equipment and system

Also Published As

Publication number Publication date
CN105045146B (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN105045146A (en) System with reset function and restart control method thereof
TWI627527B (en) Method for recovering a baseboard management controller and baseboard management controller
CN105550579A (en) Method for realizing BMC integrity measurement based on TPCM
CN111523112B (en) Method, device, equipment and medium for safely starting server
BR112016022329B1 (en) defect processing method, related apparatus, and computer
CN104216800A (en) Automatic system fault recovering method and device based on data redundancy
WO2015081864A1 (en) Method and device for monitoring emmc
US20140372737A1 (en) Electronic device and method for automatically waking up operating system of electronic device
CN107797642B (en) power backup method and device
CN104881283A (en) Method and system for obtaining root privilege of terminal device based on android
CN106873990A (en) Multi partition bootstrap technique under embedded system RAM defective patterns
CN107193708A (en) A kind of condition detection method and system
CN110457907A (en) A kind of firmware program detecting method and device
TW201510767A (en) Electronic apparatus with security-approved bios, security-approved booting method and computer-accessible storage
CN101882087A (en) Multimedia terminal equipment and maintaining method thereof
CN115934447A (en) Display information acquisition method and device, electronic equipment and storage medium
CN108196484A (en) Display panel control method, device and system, display panel and equipment unit
TW201716999A (en) Method for startup inspection and computer system using the same
US20140215266A1 (en) Data recovery system and storage medium with recovery function and data recovery method
CN111124760B (en) Uboot-based embedded equipment starting method and apparatus
CN106843022A (en) A kind of method for improving embedded control system output reliability
CN109086162B (en) Memory diagnosis method and device
CN111143181A (en) Server maintenance method, system, equipment and computer readable storage medium
TW201428470A (en) Automatic booting system and method
CN107179911B (en) Method and equipment for restarting management engine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: System with reset function and restart control method thereof

Effective date of registration: 20191212

Granted publication date: 20180626

Pledgee: Agricultural Bank of China Limited Qianhai branch

Pledgor: Shenzhen Poople Science and Technology Co., Ltd.

Registration number: Y2019440020035

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20210107

Granted publication date: 20180626

Pledgee: Agricultural Bank of China Limited Qianhai branch

Pledgor: SHENZHEN PROBE SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2019440020035

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518000 area a, 4th floor, 6th floor, 9th floor, building C, 71-3 Xintian Avenue, Fuyong street, Bao'an District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Pubo Medical Technology Co.,Ltd.

Address before: 518000 area a, 4th floor, 6th floor, 9th floor, building C, 71-3 Xintian Avenue, Fuyong street, Bao'an District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN PROBE SCIENCE & TECHNOLOGY Co.,Ltd.