CN101546281A - Method and device for improving reliability of embedded system - Google Patents

Method and device for improving reliability of embedded system Download PDF

Info

Publication number
CN101546281A
CN101546281A CN200810084196A CN200810084196A CN101546281A CN 101546281 A CN101546281 A CN 101546281A CN 200810084196 A CN200810084196 A CN 200810084196A CN 200810084196 A CN200810084196 A CN 200810084196A CN 101546281 A CN101546281 A CN 101546281A
Authority
CN
China
Prior art keywords
applications
upper layer
layer software
software
embedded system
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
CN200810084196A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200810084196A priority Critical patent/CN101546281A/en
Publication of CN101546281A publication Critical patent/CN101546281A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses a method and a device for improving the reliability of an embedded system, which relate to the filed of communication and are designed for solving the problem that the embedded system in the prior art has long starting time after reset. The method for improving the reliability of the embedded system comprises the following steps: backing up a starting initial value of upper-layer software in a memory after the embedded system loads the upper-layer software; refreshing the memory automatically when a reset signal is detected; resetting and restarting the embedded system; executing bottom-layer software; restoring the starting initial value of the upper-layer software; and executing the upper-layer software. The starting time after the reset can be greatly shortened by adopting the method and the device.

Description

Improve the method and apparatus of embedded system reliability
Technical field
The present invention relates to the communications field, particularly improve the method and apparatus of embedded system reliability.
Background technology
Along with the fast development of microelectronics and software and hardware technology, all obtained in fields such as communication, control, traffic, medical treatment, consumption using widely based on the embedded system of microprocessor technology.In the communications field, the reliability of embedded system is an important index, and it uses MTBF (Mean Time BetweenFailure mean time between failures) and MTTR (Mean Time To Repair mean time to repair) to characterize usually.MTBF is the mean time between failures, represents the interval time of adjacent twice fault; MTTR is a mean time to repair, and indication equipment is repaired the required time.The reliability of an equipment can be calculated by MTBF and MTTR, that is:
Reliability=MTBF/ (MTBF+MTTR)
In order to improve reliability, can realize by raising MTBF, reduction MTTR.Be one of measure that reduces MTTR the start-up time of shortening equipment.
Device start comprises two processes: 1, carry out bottom software, finish the initialization to hardware chip; 2, the upper layer software (applications) with the server stores on flash memory, hard disk or backstage is loaded in the internal memory, finishes the miscellaneous service processing capacity.So comprise the start-up time of equipment: carry out the time of bottom software and the time of loading upper layer software (applications).
The process that the upper layer software (applications) of the server stores on flash memory, hard disk or backstage is loaded into internal memory comprises: at first, the upper layer software (applications) that is stored in the server on flash memory, hard disk or backstage is loaded into preassigned memory address; If file is a compressed file, then should carry out decompression operation; Then, jump to preassigned memory address and carry out upper layer software (applications).The upper layer software (applications) file size usually all more than tens of megabyte, so will be stored in upper layer software (applications) in the server on flash memory, hard disk or backstage be loaded into preassigned memory address required time can be very long.If this upper layer software (applications) is a compressed file, also need this software that decompresses.Cause the start-up time of equipment long like this, mean time to repair is also long, and equipment dependability is poor.
Above mentioned bottom software is similar to BIOS (the Basic Input OutputSystem of computing machine, Basic Input or Output System (BIOS)), just begin to carry out at Board Power up or after resetting, be responsible for finishing initialization, the device drives of devices such as CPU, bridge sheet, with concrete independent of service, and for upper layer software (applications) provides each seed routine and calling interface, CPU (Central Processing Unit after the bottom software operation is finished, CPU (central processing unit)) jumps to upper layer software (applications), begin to carry out and professional relevant various functions.Described upper layer software (applications) is also referred to as business software, is similar to the computer application program.After bottom software is finished, generally can start the operating system and begin to carry out upper layer software (applications), realize and the relevant function of various concrete business, for example functions such as call treatment, signaling process, charging.Upper layer software (applications) does not relate to the details of bottom hardware, only is concerned about how variety of protocol is realized, and different upper layer software (applications)s can shared same bottom software.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art: when equipment resets startup, all the upper layer software (applications) that is stored in the server on flash memory, hard disk or backstage will be reloaded.Because upper layer software (applications) is all bigger usually, and is compressed file, so the loading and this software that decompresses need the time longer, the so just feasible start-up time that at every turn resets is very long, and then causes the MTTR of equipment very long, influences the reliability of equipment.
Summary of the invention
In order to solve long problem start-up time that resets of equipment in the prior art, embodiments of the invention provide a kind of method and device that improves embedded system reliability.
A kind of method that improves embedded system reliability comprises:
After described embedded system loaded upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels;
When detecting reset signal, internal memory carries out self-refresh;
Described embedded system resets and restarts;
Carry out bottom software;
Recover the startup initial value of upper layer software (applications);
Carry out upper layer software (applications).
A kind of device that improves embedded system reliability comprises:
Backup units: after described embedded system loaded upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels;
The self-refresh unit: when detecting reset signal, internal memory carries out self-refresh;
Reset and restart the unit: be used for described embedded system and reset and restart;
Bottom software performance element: be used to carry out bottom software;
Recovery unit: the startup initial value that is used to recover upper layer software (applications);
Upper layer software (applications) performance element: be used to carry out upper layer software (applications).
The method and the device of the raising embedded system reliability that the embodiment of the invention provides, by starting the self-refresh mode of internal memory, make system when resetting startup, upper layer software (applications) in the internal memory can not lost, thereby the system that makes is resetting when restarting, and can save the process that loads upper layer software (applications) and decompression, has shortened the time that resets and start greatly, shorten the MTTR time, thereby improved the reliability of system.Because the startup initial value of upper layer software (applications) was carried out in the upper layer software (applications) and can be changed in last time, so when resetting startup, directly carry out before the upper layer software (applications), must recover the startup initial value of upper layer software (applications) by the startup initial value of backup upper layer software (applications), thereby make upper layer software (applications) to move normally.
Description of drawings
The method flow diagram of the raising embedded system reliability that Fig. 1 provides for embodiments of the invention;
Fig. 2 is for after embodiment of the invention embedded system loads upper layer software (applications), and archive memory is the flow chart of steps of the startup initial value of software at the middle and upper levels;
Fig. 3 ought detect reset signal for the embodiment of the invention, and internal memory carries out the flow chart of steps of self-refresh;
A kind of apparatus structure synoptic diagram that improves embedded system reliability that Fig. 4 embodiment of the invention provides;
Fig. 5 is self-refresh cellular construction synoptic diagram in the device of embodiment of the invention raising embedded system reliability;
The process flow diagram that Fig. 6 finishes by programmed instruction for the method for embodiment of the invention raising embedded system reliability.
Embodiment
Long start-up time that resets in order to solve prior art, the problem of the poor reliability of embedded system elaborates to the present invention below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, the method flow diagram of the raising embedded system reliability that provides for embodiments of the invention; Embodiments of the invention provide a kind of method that improves embedded system reliability, comprising:
S101: after embedded system loaded upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels;
S102: when detecting reset signal, internal memory carries out self-refresh;
S103: described embedded system resets and restarts;
S104: carry out bottom software;
S105: utilize the upper layer software (applications) of backup to start initial value, recover the startup initial value of upper layer software (applications);
S106: carry out upper layer software (applications).
Below above-mentioned steps is elaborated.
S101: after described embedded system loaded upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels; This step can be divided into two kinds of situations: a kind of is when system's electrifying startup, and behind the loading upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels; Another kind is after system need be loaded into internal memory with the upper layer software (applications) after the upgrading in the background server, the startup initial value of upgrading back upper layer software (applications) in the archive memory.
Below above-mentioned two kinds of situations are elaborated:
A kind of is when system's electrifying startup, and behind the loading upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels; Promptly system power on load upper layer software (applications) after, the startup initial value of upper layer software (applications) is copied in the nonvolatile memory.Startup initial value described herein is meant the data in the upper layer software (applications) data segment.Described data segment data are that upper layer software (applications) is through initialized global variable.Since the global variable of upper layer software (applications) after operational process in can be changed, so after loading upper layer software (applications), need immediately with its initial value preservation.Concrete preservation position can be the zone that can not lose change in NVRAM (Non Volatile Random Access Memory nonvolatile memory) or the internal memory.
Another kind of situation is behind the embedded system loading upgrading behind the upper layer software (applications), the startup initial value of upgrading back upper layer software (applications) in the archive memory; As shown in Figure 2, concrete steps are as follows;
S201: zone bit is set, and before the upper layer software (applications) upgrading in the described internal memory, zone bit is zero; Zone bit herein can be provided with by the keeper, when perhaps powering in system with the zone bit zero clearing.System reset restart before, upper layer software (applications) upgrades on background server, this moment, the keeper will be as required, zone bit is set to 0, allows upper layer software (applications) in the system update internal memory.
S202: described embedded system resets and restarts;
S203: carry out bottom software; In this step, system needing to determine whether the loading upgrading upper layer software (applications) by the judgement symbol position; If zone bit is 1, then system is with the process of skip load upper layer software (applications) and decompression, and after recovering upper layer software (applications) startup initial value, the start address that directly jumps to upper layer software (applications) begins to carry out; If zone bit is 0, then will carry out the upper layer software (applications) behind the loading upgrading.
S204: the upper layer software (applications) behind the loading upgrading;
S205: the upper layer software (applications) after the backup upgrading starts initial value;
S206: zone bit is revised as 1;
S207: carry out upgrading back upper layer software (applications).
The embodiment of the invention is when resetting startup, by judging that flag determines whether loading upper layer software (applications), if upper layer software (applications) has upgraded upgrading on background server, upper layer software (applications) in the Installed System Memory need be upgraded upgrading, the keeper just can be set to 0 by zone bit, when system reset starts, upper layer software (applications) will reload in system, then the startup initial value after the backup upgrading and be set to 1 by the bottom software zone bit; Carry out the upper layer software (applications) after upgrading at last.Like this, when system reset started, the startup initial value that system will back up upper layer software (applications) copied back upper layer software (applications), directly carries out upper layer software (applications); Thereby make and adopt the present invention, not only can shorten the MTTR time, improve system reliability, the while is the upgrade-system upper layer software (applications) easily.
As shown in Figure 3, S102: when detecting reset signal, internal memory carries out self-refresh; It is as follows that it carries out flow process:
S301: detect reset signal;
S302: reset signal is delayed time;
S303: send look-at-me to CPU;
S304:CPU sends to internal memory and starts the self-refresh mode instruction;
S305: internal memory carries out self-refresh.CPU is a self-refresh mode with memory setting, makes system when resetting startup, and internal memory can carry out self-refresh, and the upper layer software (applications) in the internal memory is preserved.
Below to step S105: recover the startup initial value of upper layer software (applications), be elaborated:
Because the initial value of the global variable of upper layer software (applications) is changed in the operational process that resets before restarting; Of the present inventionly reset restarting process compared with prior art, skipped the step that loads upper layer software (applications); So carry out after the bottom software step, the initial value of the global variable of upper layer software (applications) must be recovered, just recover the startup initial value of the upper layer software (applications) of backup in advance.
The embodiment of the invention makes system when resetting startup by starting the self-refresh mode of internal memory, saves the process that loads upper layer software (applications), has shortened the time that resets and start greatly, has shortened the MTTR time, thereby has improved the reliability of system.Because the global variable in the upper layer software (applications) data segment is when carrying out last time, may be changed, so when resetting startup, directly carry out before the upper layer software (applications), startup initial value by the backup upper layer software (applications) recovers the startup initial value of upper layer software (applications), thereby makes upper layer software (applications) to move normally.
As shown in Figure 4, a kind of apparatus structure synoptic diagram that improves embedded system reliability that the embodiment of the invention provides comprises:
Backup units 401: after described embedded system loaded upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels;
Self-refresh unit 402: when detecting reset signal, internal memory carries out self-refresh;
Reset and restart unit 403: be used for described embedded system and reset and restart;
Bottom software performance element 404: be used to carry out bottom software;
Recovery unit 405: the startup initial value that is used to recover upper layer software (applications);
Upper layer software (applications) performance element 406: be used to carry out upper layer software (applications).
As shown in Figure 5, be self-refresh cellular construction synoptic diagram in the device of embodiment of the invention raising embedded system reliability, described self-refresh unit comprises:
Detecting unit 501: be used to detect reset signal;
Delay unit 502: be used for reset signal is delayed time;
Interrupt location 503: be used for sending look-at-me to CPU;
Start unit 504: be used for CPU and send the instruction of startup self-refresh mode to internal memory;
Refresh unit 505: be used for internal memory and carry out self-refresh.
The embodiment of the invention detects reset signal in real time by detecting unit, if the reset signal of detecting is then delayed time reset signal by delay unit, and sends a look-at-me by interrupt location to CPU; Between the reset signal time delay, the self-refresh mode of the IE internal memory that start unit can send according to CPU, thus make that system can preserve the information in the internal memory get off resetting when restarting; Like this reset restart in, just can save the time that repeats to load upper layer software (applications) and decompression, thereby shorten the MTTR time of system, improved the reliability of system; On this basis, can also in the bottom software performance element, increase a zone bit recognition unit, be used for judging whether system needs the loading upgrading upper layer software (applications); If zone bit is 0, then need the upper layer software (applications) of upgrading, after the bottom software performance element executed bottom software, with the upper layer software (applications) behind the loading upgrading, the data segment data of the upper layer software (applications) after the backup upgrading were last then, carry out upper layer software (applications); If zone bit is 1, then the bottom software performance element is carried out bottom software, will recover upper layer software (applications) data segment data, and then, directly upper layer software (applications) is carried out in redirect.Judgement by zone bit is selected, and makes system when resetting startup, according to the situation needs of reality, saves the process that loads upper layer software (applications), has shortened the time that resets and start greatly, has shortened the MTTR time, thereby has improved the reliability of system.Simultaneously, also made things convenient for system's upper layer software (applications) upgrading.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to finish by the programmed instruction related hardware, described program can be stored in the medium of an embodied on computer readable storage, this program is when carrying out, as shown in Figure 6, comprise the steps:
S601: after embedded system loaded upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels;
S602: when detecting reset signal, internal memory carries out self-refresh;
S603: carry out bottom software;
S604: read zone bit, judge whether to need to load upper layer software (applications); If do not need to load described upper layer software (applications) redirect execution in step S605; Load described upper layer software (applications) redirect if desired and carry out S606;
S605: utilize the upper layer software (applications) of backup to start initial value, recover the startup initial value of upper layer software (applications);
S606: load described upper layer software (applications), the startup initial value of backup upper layer software (applications);
S607: carry out upper layer software (applications).
Wherein, described storage medium, as: ROM (Read Only Memory, ROM (read-only memory))/RAM (Random Access Memory, random access memory), magnetic disc, CD etc.
The above; it only is the embodiment of the embodiment of the invention; but the protection domain of the embodiment of the invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, the protection domain of the embodiment of the invention should be as the criterion with the protection domain of claim.

Claims (9)

1, a kind of method that improves embedded system reliability is characterized in that, comprising:
After embedded system loaded upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels;
When detecting reset signal, internal memory carries out self-refresh;
Described embedded system resets and restarts;
Carry out bottom software;
Recover the startup initial value of upper layer software (applications);
Carry out upper layer software (applications).
2, the method for raising embedded system reliability according to claim 1 is characterized in that, described when detecting reset signal, the step that internal memory carries out self-refresh comprises:
Detect reset signal;
Reset signal is delayed time;
Send look-at-me to CPU;
CPU sends to internal memory and starts the self-refresh mode instruction;
Internal memory carries out self-refresh.
3, the method for raising embedded system reliability according to claim 1 is characterized in that, after described embedded system loaded upper layer software (applications), the archive memory step of the startup initial value of software at the middle and upper levels comprised:
Zone bit is set, and before the upper layer software (applications) upgrading in the described internal memory, zone bit is zero;
Described embedded system resets and restarts;
Carry out bottom software;
Upper layer software (applications) behind the loading upgrading;
Upper layer software (applications) after the backup upgrading starts initial value;
Zone bit is revised as 1;
Carry out upgrading back upper layer software (applications).
4, the method for raising embedded system reliability according to claim 1 is characterized in that: the startup initial value of described upper layer software (applications) is the data in the upper layer software (applications) data segment.
5, the method for raising embedded system reliability according to claim 1 is characterized in that: the startup initial value backup of described upper layer software (applications) is at nonvolatile memory or the difficult region of memory of revising.
6, a kind of device that improves embedded system reliability is characterized in that, comprising:
Backup units: be used for after embedded system loads upper layer software (applications), archive memory is the startup initial value of software at the middle and upper levels;
The self-refresh unit: be used for when detecting reset signal, internal memory carries out self-refresh;
Reset and restart the unit: be used for described embedded system and reset and restart;
Bottom software performance element: be used to carry out bottom software;
Recovery unit: the startup initial value that is used to recover upper layer software (applications);
Upper layer software (applications) performance element: be used to carry out upper layer software (applications).
7, the device of raising embedded system reliability according to claim 6 is characterized in that, described self-refresh unit comprises:
Detecting unit: be used to detect reset signal;
Delay unit: be used for reset signal is delayed time;
Interrupt location: be used for sending look-at-me to CPU;
Start unit: be used for CPU and send the instruction of startup self-refresh mode to internal memory;
Refresh unit: be used for internal memory and carry out self-refresh.
8, the device of raising embedded system reliability according to claim 6 is characterized in that: the startup initial value of described upper layer software (applications) is the data in the upper layer software (applications) data segment.
9, the device of raising embedded system reliability according to claim 6 is characterized in that: the startup initial value backup of described upper layer software (applications) is at nonvolatile memory or the difficult region of memory of revising.
CN200810084196A 2008-03-28 2008-03-28 Method and device for improving reliability of embedded system Pending CN101546281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810084196A CN101546281A (en) 2008-03-28 2008-03-28 Method and device for improving reliability of embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810084196A CN101546281A (en) 2008-03-28 2008-03-28 Method and device for improving reliability of embedded system

Publications (1)

Publication Number Publication Date
CN101546281A true CN101546281A (en) 2009-09-30

Family

ID=41193428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810084196A Pending CN101546281A (en) 2008-03-28 2008-03-28 Method and device for improving reliability of embedded system

Country Status (1)

Country Link
CN (1) CN101546281A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473081A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Operant method after system updating of terminal and terminal
CN104572198A (en) * 2014-12-31 2015-04-29 华为技术有限公司 Service restoration method and device
CN106933632A (en) * 2017-03-13 2017-07-07 山东网聪信息科技有限公司 FPGA function online upgrading methods based on Ethernet
CN109614126A (en) * 2018-10-23 2019-04-12 北京全路通信信号研究设计院集团有限公司 A kind of online programme upgrade method of embedded system and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473081A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Operant method after system updating of terminal and terminal
CN103473081B (en) * 2012-06-08 2016-10-12 腾讯科技(深圳)有限公司 Method that terminal comes into force after carrying out system upgrade and this terminal
CN104572198A (en) * 2014-12-31 2015-04-29 华为技术有限公司 Service restoration method and device
CN104572198B (en) * 2014-12-31 2018-04-10 华为技术有限公司 A kind of service restoration method and device
CN106933632A (en) * 2017-03-13 2017-07-07 山东网聪信息科技有限公司 FPGA function online upgrading methods based on Ethernet
CN109614126A (en) * 2018-10-23 2019-04-12 北京全路通信信号研究设计院集团有限公司 A kind of online programme upgrade method of embedded system and device
CN109614126B (en) * 2018-10-23 2022-07-01 北京全路通信信号研究设计院集团有限公司 Embedded system online program upgrading method and device

Similar Documents

Publication Publication Date Title
US8468389B2 (en) Firmware recovery system and method of baseboard management controller of computing device
JP4205560B2 (en) Reliability improvement using non-volatile memory cache in diskless network bootable computers
CN101281469B (en) Embedded type system and start-up load application method
CN102023908B (en) Method and device for backing up boot program
CN103116532B (en) Damage in fault from the storehouse embedded software system and recover
CN108304282B (en) Control method of double BIOS and related device
US7512777B2 (en) Method and system for maintaining system management BIOS
US10579300B2 (en) Information handling system firmware persistent memory runtime reclaim
KR101696490B1 (en) Partial rebooting recovery apparatus and method
TW201222554A (en) Handling errors during device bootup from a non-volatile memory
CN104503788A (en) Setting method capable of shortening starting time of Android operating system
CN102184111B (en) The equipment of operating system online upgrading method and tape operation system
US7818622B2 (en) Method for recovering data processing system failures
CN111506454A (en) Method and system for recovering and updating basic input/output system
JP2010198252A (en) Non-volatile memory device, write-in method for nonvolatile memory, and nonvolatile memory write-in program
CN106708960B (en) Repair method of NAS device file system and NAS device
CN104572354A (en) Backup and restoration method for operating system based on restoration service and equipment thereof
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN101546281A (en) Method and device for improving reliability of embedded system
JP2014115928A (en) Bios restoration control device and bios restoration control method, information processor and computer program
US20090192780A1 (en) Hardware emulation using on-the-fly virtualization
KR101576370B1 (en) System and method for remote restoration of computer system, and computer-readable recording medium with program therefor
TW202131170A (en) Firmware corruption recovery
KR100605031B1 (en) A method for upgrading and restoring embeded systems by using usb memory device
CN112035171B (en) Factory setting restoration method and system based on UEFI firmware

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20090930

RJ01 Rejection of invention patent application after publication