CN111858183A - Restarting method and apparatus for electronic device - Google Patents

Restarting method and apparatus for electronic device Download PDF

Info

Publication number
CN111858183A
CN111858183A CN202010760409.9A CN202010760409A CN111858183A CN 111858183 A CN111858183 A CN 111858183A CN 202010760409 A CN202010760409 A CN 202010760409A CN 111858183 A CN111858183 A CN 111858183A
Authority
CN
China
Prior art keywords
target
electronic device
electronic equipment
target field
restarting
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
CN202010760409.9A
Other languages
Chinese (zh)
Other versions
CN111858183B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010760409.9A priority Critical patent/CN111858183B/en
Publication of CN111858183A publication Critical patent/CN111858183A/en
Application granted granted Critical
Publication of CN111858183B publication Critical patent/CN111858183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present disclosure provides a method and an apparatus for restarting an electronic device, the method including: selectively entering an automatic repair mode in response to the electronic device being powered on; under an automatic repair mode, detecting whether a target position has a target field filled by a first system or not at intervals of target time length; in case the number of consecutive undetected target fields exceeds a first threshold, the electronic device is restarted. The electronic equipment can enter an automatic repair mode after being powered on, whether the electronic equipment has faults or is in an on-hook state is judged by detecting whether a target field filled by a first system exists in a target position, if the frequency of continuously not detecting the target field exceeds a first threshold value, the electronic equipment is determined to be in the faults or in the on-hook state currently, and the electronic equipment is restarted at the moment, so that the electronic equipment can realize self repair of certain faults through restarting, the frequency of field maintenance of operation and maintenance personnel is reduced, the maintenance cost of the electronic equipment is reduced, and human resources and material resources are saved.

Description

Restarting method and apparatus for electronic device
Technical Field
The present disclosure relates to the field of vertical control of electronic devices, and in particular, to a method and an apparatus for restarting an electronic device.
Background
In the Vertical field of electronic equipment, such as scenes of unmanned retail stores, oil fields and the like, a large number of computers or servers do not need to be watched on duty continuously by workers during operation, and the computers or servers are generally operated automatically. In this case, the electronic device may be abnormal due to poor network communication, excessive data processing amount, excessive temperature of the machine room, and the like, and once the electronic device is abnormal in the working process, the data processing or the network communication may be affected, the device can be restarted or maintained only by operating maintenance personnel on site, so that additional service cost is generated, and manpower and material resources are wasted.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method and an apparatus for restarting an electronic device, where the embodiments of the present disclosure adopt the following technical solutions: a method of rebooting an electronic device, comprising: selectively entering an automatic repair mode in response to the electronic device being powered on; under the automatic repair mode, detecting whether a target position has a target field filled by a first system or not at intervals of target duration; restarting the electronic device if the number of times that the target field is not detected continuously exceeds a first threshold; the electronic equipment further comprises a second system, wherein the first system is operated in a first operation stage of the electronic equipment, and the second system is operated in a second operation stage after the first operation stage.
Further, after the electronic device enters the second operation phase, the method further includes: detecting whether an intelligent sleep signal triggered by the second system is received; and switching out the automatic repair mode under the condition of receiving the intelligent sleep signal.
Further, the restarting the electronic device in case that the number of times that the target field is not detected continuously exceeds a first threshold value includes: responding to the first system operated after the electronic equipment is powered on and entering the first operation stage, and carrying out first detection on the target field; responding to the second operation stage after the electronic equipment operates the second system and enters the first operation stage, and performing second detection on the target field; determining a first statistic of a first detection and/or a second statistic of a second detection based on a detection result of the target field; and restarting the electronic equipment when the sum of the first statistical value and the second statistical value exceeds a first threshold value or when the second statistical value exceeds the first threshold value.
Further, after the electronic device enters the second operation stage, before the detecting whether the target location has the target field filled by the first system every target duration, the method further includes: sending a control instruction to the first system, wherein the control instruction is used for instructing the first system to fill the target field to the target position within the target duration.
Further, the restarting the electronic device includes: and adjusting the level of the power supply control signal to be low level.
Further, the target field includes at least: a timestamp of the current time.
Further, still include: recording the number of times of restarting the electronic equipment; and executing an alarm program under the condition that the number of times of restarting the electronic equipment exceeds a second threshold value.
The embodiment of the present disclosure further discloses a restart apparatus for an electronic device, including: the embedded controller, the central processing unit and the read-only memory with firmware; the embedded controller can respond to the power-on of the electronic equipment and selectively enter an automatic repair mode; detecting whether a target position has a target field filled by a read-only memory with firmware every target time length in the automatic repair mode; restarting the electronic device if the number of times that the target field is not detected continuously exceeds a first threshold; the electronic equipment further comprises a second system, the first system is operated on the basis of the read-only memory with the firmware in a first operation stage of the electronic equipment, and the central processor operates the second system in a second operation stage after the first operation stage.
Further, the embedded controller is further configured to: detecting whether an intelligent sleep signal triggered by the central processing unit is received; and switching out the automatic repair mode under the condition of receiving the intelligent sleep signal.
Further, after the electronic device enters the second operation stage, the embedded controller is further configured to: sending a control instruction to the read only memory with firmware, wherein the control instruction is used for instructing the read only memory with firmware to fill the target field to the target position within the target duration.
The beneficial effects of this disclosed embodiment lie in: the electronic equipment can enter an automatic repair mode after being powered on, under the automatic repair mode, whether the electronic equipment has faults or is in an on-hook state is judged by detecting whether a target field filled by a first system exists in a target position, if the number of times that the target field is not detected continuously exceeds a first threshold value, the electronic equipment is determined to be in the faults or in the on-hook state currently, and at the moment, the electronic equipment is restarted, so that self repair of certain faults is realized by restarting, the number of times that operation and maintenance personnel carry out field maintenance is reduced, the maintenance cost of the electronic equipment is reduced, and human resources and material resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 shows a flowchart of a restart method of an electronic device in a first embodiment of the present disclosure;
fig. 2 shows a flowchart of a restart method of an electronic device in a second embodiment of the present disclosure;
fig. 3 shows a flowchart of a restart method of an electronic device in a third embodiment of the present disclosure;
fig. 4 shows a flowchart of a restart method of an electronic device in a fourth embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of a restart apparatus of an electronic device in a fifth embodiment of the present disclosure.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
In the Vertical field of electronic equipment, such as an unmanned retail store, an automatic teller machine in an oil field or a bank, and the like, a large number of computers or servers do not need to be watched continuously by workers in the operation process, and generally, the computers or servers automatically operate. In this case, the electronic device may be abnormal due to poor network communication, excessive data processing amount, excessive temperature of the machine room, and the like, and once the electronic device is abnormal in the working process, the data processing or the network communication may be affected, the device can be restarted or maintained only by operating maintenance personnel on site, so that additional service cost is generated, and manpower and material resources are wasted.
In order to solve the above problem, as shown in fig. 1, a first embodiment of the present disclosure provides a method for restarting an electronic device, where the method is mainly applied to a commonly used electronic device in the Vertical field, and is usually implemented by an Embedded Controller (EC) in the electronic device, and the method mainly includes steps S101 to S103:
and S101, responding to the power-on of the electronic equipment, and optionally entering an automatic repair mode.
After the power supply is switched on and the electronic equipment is started, the electronic equipment is powered on and enters a first operation stage, the electronic equipment enters a normal working mode and executes startup related operations by operating a first system, after the startup operations are executed, the electronic equipment enters a second operation stage from the first operation stage, and the electronic equipment operates a second system to realize corresponding functions. In general, the first System of the electronic device may be a Basic Input Output System (BIOS) or UEFI, and may be started before booting the operating System; the second System is an Operating System (OS) of the electronic device, and according to the type and function of the electronic device, the second System may use a Windows System, a Linux System, or an Operating System developed based on the function of the electronic device.
In response to the power-on of the electronic device, the electronic device may selectively enter an automatic repair mode, and in the automatic repair mode, the EC may determine whether the electronic device is in a fault or an on-hook state according to a working condition of the first system, and further determine whether a restart operation of the electronic device is required. In practical use, the electronic device can automatically enter the automatic repair mode at the moment of starting up so as to perform corresponding monitoring or statistics from the first operation stage to the second operation stage, improve the monitoring accuracy, and certainly enter the automatic repair mode under the condition of receiving a corresponding instruction, and the specific time and mode for entering the automatic repair mode can be flexibly set according to the actual condition.
S102, in the automatic repair mode, whether a target field filled by a first system exists in a target position is detected every target time length.
In the automatic repair mode, if the first system is in a normal working state and does not have a fault or hang-up condition in the running process of the electronic equipment, the first system fills a target field to a target position every target time length, and the EC detects whether the target position has the target field filled by the first system at the same target time length; if the EC detects the target field at the target position, it indicates that the current first system is in a normal working state, and if the EC does not detect the target field at the target position, the EC may know that the current first system may have a fault or hang up, and may need to be restarted to repair the fault or remove the hang up state.
Specifically, the target location may be a location provided in advance, which may be any location in the electronic device where data can be stored, and is preferably set in the EC, so that detection and statistics are convenient; the target duration can be a preset duration which can be adjusted according to the specific function and the actual requirement of the electronic equipment; the target field is usually time stamp of the current time when the field is filled by the first system, namely uniqueness exists and updating with time change, so that the filling condition of the target field is convenient for EC statistics.
In addition, the first system can write related programs in the writing process so as to actively fill target fields into the target positions at target time intervals in the running process, however, in general, after the electronic device enters the second operation stage, the first system enters a sleep state, it will not leave the current state without external command control, and therefore, in order to guarantee the accurate execution of the automatic repair mode, in this embodiment, particularly after entering the second operation stage, the EC may instruct the first system to perform field filling operation by sending a control instruction to the first system, where the control instruction at least includes a target position, a target duration, and a filling principle of the target field, and after receiving the control instruction, the first system fills the target field in the target position within the target duration according to a requirement of the control instruction.
In order to save storage space and prevent the situation that the occupied space is large due to the fact that the number of times of filling the target field in the target position is too large, when the target field is filled in the target position, the first system can fill the time stamp at the current moment as the target field, when the target field is filled again after the interval target time length, the last time-filled time stamp can be covered by the current time stamp, and the requirement for the storage space is reduced through continuous updating change of the time stamp filled in the target position.
S103, restarting the electronic equipment under the condition that the number of times that the target field is not detected continuously exceeds a first threshold value.
In the normal operation process of the electronic equipment, the first system can fill target fields into target positions at intervals according to the requirements of the EC, and the EC can detect the target fields at the target positions during periodic detection, so that the current electronic equipment can be determined to be in a normal working state without faults; if the EC does not detect the target field when detecting the target position or the target field filled in the current target position is the target field detected last time, it may be determined that the current electronic device has a fault or is in an on-hook state, and a normal function cannot be implemented, and may need to be recovered by restarting.
In order to prevent the temporary card machine state caused by excessive operation load or other situations from being mistaken for the electronic device being in a fault, in the embodiment, the EC does not perform the operation of restarting the electronic device until the number of times that the target field is not detected continuously exceeds the first threshold value. Specifically, the first threshold may be set according to the length of the target duration and the actual demand, taking the target duration as 1 minute and the first threshold as 60 times, for example, the first system fills a timestamp to the target location every 1 minute, the EC also detects whether an accurate target field exists at the target location every 1 minute, when the EC does not detect the target field for the first time, statistics is started, if the target field is not detected for 60 consecutive times or the detected target field is a field filled by the first system before 1 hour, the EC determines that the electronic device has a fault, and at this time, the EC performs a restart operation; if the EC does not detect the target field at 30 consecutive times but detects the accurate target field at the 31 st time, it cannot be assumed that the electronic device has a failure and a restart operation is not required.
In practical implementation, if the electronic device needs to be restarted, the level of the power control signal can be adjusted to a low level by pulling down the corresponding pin of the power chip to realize forced restart.
In the embodiment, after the electronic equipment is powered on, an automatic repair mode can be entered, under the automatic repair mode, whether the electronic equipment has a fault or is in an on-hook state is judged by detecting whether a target field filled by the first system exists in a target position, if the frequency of continuously not detecting the target field exceeds a first threshold value, the electronic equipment is determined to be in the current fault or in the on-hook state, and at the moment, the electronic equipment is restarted, so that self-repair of certain faults is realized by restarting, the frequency of field maintenance of operation and maintenance personnel is reduced, the maintenance cost of the electronic equipment is reduced, and human resources and material resources are saved.
A second embodiment of the present disclosure provides, on the basis of the first embodiment, a second implementation manner of the method for restarting the electronic device, where after the electronic device enters the second operation phase, when the electronic device does not perform data processing, the electronic device may enter a smart sleep mode (mode standby), in which the electronic device is in a sleep state when no instruction or data is received, and when an instruction or data is received, the electronic device may quickly switch to a working state to perform processing of the instruction or data. Since the electronic device is in the intelligent sleep mode, the first system and the second system are both in the state of suspending operation, and if the target position is detected according to the embodiment in the first embodiment, the first system may be in sleep and cannot perform the value filling operation, which may cause the erroneous judgment of the operating state of the electronic device by the EC. In order to prevent the occurrence of the misjudgment, the following steps are performed after the electronic device enters the second operation stage, as shown in fig. 2.
S201, detecting whether an intelligent sleep signal triggered by a second system is received, executing S202 under the condition that the intelligent sleep signal is received, and executing S203 under the condition that the intelligent sleep signal is not received;
s202, switching an automatic repair mode;
s203, detecting whether a target position has a target field filled by a first system or not at intervals of target duration;
s204, restarting the electronic equipment under the condition that the number of times that the target field is not detected continuously exceeds a first threshold value.
When the electronic device enters the intelligent sleep mode, the second system provides a state trigger signal to the EC through the motherboard, for example, the SLP _ S0 pin of a corresponding chip on the motherboard is triggered to form an intelligent sleep signal and send the intelligent sleep signal to the EC, when the EC detects that the intelligent sleep signal is received, the electronic device is confirmed to enter the intelligent sleep mode, the electronic device is controlled to exit the automatic repair mode, after the automatic repair mode exits, the EC does not send a control instruction to the first system to fill the target position, and the target position does not need to be detected and restarted, so that the purpose of preventing misjudgment is achieved.
If the EC does not receive the smart sleep signal, the electronic device is always in the automatic repair mode, i.e., steps S203 and S204 in this embodiment are executed. It should be noted that the specific implementation of steps S203 and S204 in this embodiment is the same as that of steps S102 and S103 in the first embodiment, and is not described again in this embodiment.
In the embodiment, whether the electronic device enters the intelligent sleep mode is judged by receiving the intelligent sleep signal, and the electronic device exits the automatic repair mode when the electronic device enters the intelligent sleep mode, so that the problem that the normal working state of the electronic device is influenced because the EC is mistakenly regarded as the electronic device fault or hung up and restarted due to the fact that field filling cannot be performed due to sleep of the first system is avoided.
A third embodiment of the present disclosure provides a third implementation manner of a restarting method for an electronic device, which is actually based on the first embodiment, the step S103 is described in more detail, and fig. 3 shows a flowchart of the restarting method in this embodiment, and mainly includes steps S301 to S306:
s301, responding to the power-on of the electronic equipment, and optionally entering an automatic repair mode;
s302, in an automatic repair mode, detecting whether a target position has a target field filled by a first system or not at intervals of target time length;
s303, operating the first system after responding to the power-on of the electronic equipment, entering a first operation stage, and performing first detection on the target field;
s304, responding to a second operation stage after the electronic equipment operates the second system and enters the first operation stage, and performing second detection on the target field;
s305, determining a first statistic value of the first detection and/or a second statistic value of the second detection based on the detection result of the target field;
s306, restarting the electronic equipment under the condition that the sum of the first statistical value and the second statistical value exceeds a first threshold value or the second statistical value exceeds the first threshold value.
The first detection and the second detection in the present embodiment are detections of the target position performed for the first operation stage and the second operation stage, respectively. In the first operation phase, the electronic device is in a boot process, and at this time, the first system is operated to execute the boot process, but the boot process usually has a short duration, and even if a fault occurs or the EC does not detect the target field, the number of times of not detecting the target field may not reach the first threshold. In the second operation stage, the electronic device is in a stable working state, and at this time, when the EC does not detect the target field, the EC records the number of times that the target field is not detected according to the detection result.
It should be noted that the condition for restarting the electronic device in this embodiment is that the number of times that the target field is not detected continuously exceeds the first threshold, and in the process of statistics, as long as there is one EC that detects the correct target field, all the counted numbers are cleared, and statistics is performed again from the next time that the target field is not detected.
In the first detection process of this embodiment, the EC may determine, based on the detection result of the target field, a first statistical value of consecutive undetected target fields, and if, in the first detection, the target field is not detected from the first undetected target field until the last detection of the first operation stage, determine the first statistical value as the number of times that the target field is actually undetected; if EC correctly detects the target field once before the first operation stage is switched to the second operation stage, clearing the previous statistical value; if the target field is not detected only at the last detection of the first operation stage, the first statistical value is 1, and actually, the statistical confirmation of the first statistical value is performed only under the condition that the target field is not detected at the last detection of the first operation stage, otherwise, the first statistical value is zero.
In the second detection process, the EC may determine, based on the detection result of the target field, a second statistical value that the target field is not detected continuously. Under the condition that the first statistical value is zero, only the counted times of continuously not detecting the target field in the second detection process are determined as a second statistical value, and the electronic equipment is restarted under the condition that the second statistical value exceeds the first threshold value; if the first statistical value is not zero and the EC does not detect the existence of the target field at the beginning of the first detection after entering the second detection stage, continuously accumulating the second statistical value until the sum of the first statistical value and the second statistical value exceeds the first threshold, restarting the electronic device, if the EC detects that the target position is filled with the correct target field before the sum of the first statistical value and the second statistical value exceeds the first threshold, clearing all the first statistical value and the previously accumulated second statistical value, restarting the determination of the second statistical value when the target field is not detected next time, and only judging the restart according to the comparison condition between the second statistical value and the first threshold.
According to the embodiment, the detection results of the first operation stage and the second operation stage are judged, the accurate statistical value is determined to be compared with the first threshold value, the reasonability of the execution process of the restarting method is improved, and the situation that the electronic equipment is continuously restarted due to misjudgment is avoided, so that the normal work of the electronic equipment is influenced.
A fourth embodiment of the present disclosure provides a fourth implementation manner of a method for restarting an electronic device, where on the basis of the first embodiment, an alarm mechanism is added, and when a failure that cannot be solved by restarting occurs in the electronic device, a failure is reported in time, and a flowchart thereof is shown in fig. 4, and mainly includes steps S401 to S405:
s401, responding to the power-on of the electronic equipment, and optionally entering an automatic repair mode;
s402, detecting whether a target position has a target field filled by a first system or not at intervals of target duration in an automatic repair mode;
s403, restarting the electronic equipment under the condition that the number of times that the target field is not detected continuously exceeds a first threshold value;
s404, recording the times of restarting the electronic equipment;
s405, executing an alarm program under the condition that the number of times of restarting the electronic equipment exceeds a second threshold value.
The specific execution manner of steps S401 to S403 in this embodiment is the same as that of steps S101 to S103 in the first embodiment, and detailed description thereof is omitted. Specifically, the EC may record the number of times of restarting the electronic device, preferably record the number of times of restarting the electronic device continuously or cumulatively within a period of time, and when the number of times of restarting exceeds a second threshold, it indicates that the electronic device frequently fails or is frequently in an on-hook state, and the electronic device cannot be recovered only by restarting, at this time, the EC executes an alarm program, and may send fault information to a fault processing center, a higher-level server, a mobile terminal of an operation maintenance worker, and other devices, where the fault information may carry the name or number of the electronic device, the number of times of restarting, the time of restarting, and other contents, and the operation maintenance worker goes to the site to perform device inspection and maintenance, and clears the number of times of restarting recorded before the maintenance is completed.
According to the embodiment, when the electronic equipment has a fault which cannot be solved by restarting, an alarm mechanism is realized through statistics and comparison of the restarting times, so that the fault electronic equipment is reported in time, and the processing flow of the electronic equipment fault is optimized.
A fifth embodiment of the present disclosure provides a restarting apparatus for an electronic device, which is disposed in the electronic device or can be used as the electronic device, and the structure diagram of the apparatus is shown in fig. 5, and mainly includes an Embedded Controller (EC)10, a central processing unit 20, and a read only memory 30 with firmware, which are coupled to each other, and specifically, the embedded controller 10 can selectively enter an automatic repair mode in response to the electronic device being powered on; in an automatic repair mode, detecting whether a target position has a target field filled by a read-only memory with firmware every target time length; restarting the electronic equipment under the condition that the number of times that the target field is not detected continuously exceeds a first threshold value; the electronic device further comprises a second system, wherein the first system is operated by the read-only memory 30 with firmware in a first operation phase of the electronic device, and the second system is operated by the phase central processing unit 20 in a second operation phase after the first operation phase. In particular embodiments, the read only memory 30 with firmware may be configured to solidify the read only memory of a boot system such as a BIOS.
After the power is turned on and the electronic device is turned on, the electronic device is powered on and enters a first operation stage, the electronic device enters a normal working mode and runs a first system through a read-only memory 30 with firmware to execute relevant startup operations, after the startup operations are executed, the electronic device enters a second operation stage from the first operation stage, and the electronic device runs a second system through a central processing unit 20 to realize corresponding functions. In response to the power-on of the electronic device, the embedded controller 10 may optionally enter an automatic repair mode, and in the automatic repair mode, the embedded controller 10 may determine whether the electronic device is in a fault state or an on-hook state according to the working condition of the first system, so as to determine whether a restart operation of the electronic device is required. During actual use, the embedded controller 10 may automatically enter the automatic repair mode at the moment of starting up, so that corresponding monitoring or statistics may be performed during the operation process from the first operation stage to the second operation stage, the monitoring accuracy is improved, and certainly, the embedded controller may enter the automatic repair mode again when receiving a corresponding instruction, and the specific time and manner for entering the automatic repair mode may be flexibly set according to the actual situation.
In the automatic repair mode, if the electronic device is in a normal operating state and has no failure or hang-up during operation, the rom 30 with the firmware fills a target field into the target location every target time length, and the embedded controller 10 detects whether the target location has the target field filled by the rom 30 with the firmware at the same target time length interval; if the embedded controller 10 detects the target field at the target position, it indicates that the rom 30 currently having the firmware is in a normal operating state, and if the embedded controller 10 does not detect the target field at the target position, the embedded controller 10 may know that the rom 30 currently having the firmware may malfunction or hang up, and may need to be restarted to repair the malfunction or release the hang up state.
In the writing process of the rom 30 with firmware, the relevant program can be written to implement that the rom 30 with firmware actively fills the target field into the target position at a target time interval in the operation process, but in a normal case, after the electronic device enters the second operation stage, the rom 30 with firmware enters a sleep state, and does not perform any operation without the control of an external instruction, so in order to ensure the accurate execution of the automatic repair mode, in the embodiment, especially after entering the second operation stage, the EC can instruct the rom 30 with firmware to perform the field filling operation by sending a control instruction to the rom 30 with firmware, wherein the control instruction at least includes the target position, the target time interval and the filling principle of the target field, and after receiving the control instruction, and filling a target field into the target position within the target time length according to the requirement of the control instruction.
In the normal operation process of the electronic device, the rom 30 with firmware can fill target fields into target positions every target according to the requirements of the embedded controller 10, and when the embedded controller 10 detects periodically, the target fields can be detected at the target positions, so that the current electronic device can be determined to be in a normal working state and have no fault; if the embedded controller 10 does not detect the target field when detecting the target position or the target field filled in the current target position is the target field detected last time, it may be determined that the current electronic device has a fault or is in an on-hook state, and normal function implementation cannot be performed, and it may need to be recovered by restarting. In order to prevent the temporary card machine state caused by excessive operation load or other situations from being mistaken for the electronic device being in a fault, in the present embodiment, the embedded controller 10 does not perform the operation of restarting the electronic device until the number of times that the target field is not detected continuously exceeds the first threshold value.
In practical implementation, if the electronic device needs to be restarted, the embedded controller 10 may adjust the level of the power control signal to a low level by pulling down the corresponding Pin (PWRGD) of the power chip to implement forced restart.
Further, in order to prevent the error judgment of the embedded controller 10 on the working state of the electronic device caused by the reason that the rom 30 with the firmware is in the sleep mode and cannot perform the value filling operation when the electronic device enters the intelligent sleep mode, the cpu 20 triggers the SLP _ S0 pin on the motherboard to form an intelligent sleep signal and sends the intelligent sleep signal to the embedded controller 10, and when the embedded controller 10 detects that the intelligent sleep signal is received, it is determined that the electronic device enters the intelligent sleep mode, the electronic device is controlled to exit the automatic repair mode, and after the electronic device exits the automatic repair mode, the embedded controller 10 does not send a control instruction to the rom 30 with the firmware to fill the target position, and does not need to perform the detection and the restart operation of the target position, thereby achieving the purpose of preventing the error judgment.
In the embodiment, after the electronic equipment is powered on, an automatic repair mode can be entered, under the automatic repair mode, whether the electronic equipment has a fault or an on-hook condition is judged by detecting whether a target field filled by a read-only memory with firmware exists in a target position, if the frequency of continuously not detecting the target field exceeds a first threshold value, the electronic equipment is determined to be currently in the fault or in the on-hook state, and at the moment, the electronic equipment is restarted, so that self-repair of certain faults is realized by restarting, the frequency of field maintenance of operation and maintenance personnel is reduced, the maintenance cost of the electronic equipment is reduced, and human resources and material resources are saved.
The above embodiments are merely exemplary embodiments of the present disclosure, which is not intended to limit the present disclosure, and the scope of the present disclosure is defined by the claims. Various modifications and equivalents of the disclosure may occur to those skilled in the art within the spirit and scope of the disclosure, and such modifications and equivalents are considered to be within the scope of the disclosure.

Claims (10)

1. A method for restarting an electronic device, comprising:
selectively entering an automatic repair mode in response to the electronic device being powered on;
under the automatic repair mode, detecting whether a target position has a target field filled by a first system or not at intervals of target duration;
restarting the electronic device if the number of times that the target field is not detected continuously exceeds a first threshold;
the electronic equipment further comprises a second system, wherein the first system is operated in a first operation stage of the electronic equipment, and the second system is operated in a second operation stage after the first operation stage.
2. The reboot method according to claim 1, further comprising, after the electronic device enters the second operational phase:
detecting whether an intelligent sleep signal triggered by the second system is received;
and switching out the automatic repair mode under the condition of receiving the intelligent sleep signal.
3. The reboot method according to claim 1, wherein restarting the electronic device in the case that the number of consecutive times that the target field is not detected exceeds a first threshold value comprises:
responding to the first system operated after the electronic equipment is powered on and entering the first operation stage, and carrying out first detection on the target field;
responding to the second operation stage after the electronic equipment operates the second system and enters the first operation stage, and performing second detection on the target field;
determining a first statistic of a first detection and/or a second statistic of a second detection based on a detection result of the target field;
and restarting the electronic equipment when the sum of the first statistical value and the second statistical value exceeds a first threshold value or when the second statistical value exceeds the first threshold value.
4. The method according to claim 1, wherein after the electronic device enters the second operation phase, before the detecting whether the target field filled by the first system exists at the target position every target time period, further comprises:
sending a control instruction to the first system, wherein the control instruction is used for instructing the first system to fill the target field to the target position within the target duration.
5. The reboot method according to claim 1, wherein the rebooting the electronic device includes:
and adjusting the level of the power supply control signal to be low level.
6. The restart method according to claim 1, wherein said target field comprises at least: a timestamp of the current time.
7. The restart method according to any one of claims 1 to 6, further comprising:
recording the number of times of restarting the electronic equipment;
and executing an alarm program under the condition that the number of times of restarting the electronic equipment exceeds a second threshold value.
8. A restart apparatus for an electronic device, comprising:
the embedded controller, the central processing unit and the read-only memory with firmware;
the embedded controller can respond to the power-on of the electronic equipment and selectively enter an automatic repair mode;
detecting whether a target position has a target field filled by a read-only memory with firmware every target time length in the automatic repair mode;
restarting the electronic device if the number of times that the target field is not detected continuously exceeds a first threshold;
the electronic equipment further comprises a second system, the first system is operated on the basis of the read-only memory with the firmware in a first operation stage of the electronic equipment, and the central processor operates the second system in a second operation stage after the first operation stage.
9. The reboot device of claim 8, wherein the embedded controller is further configured to:
detecting whether an intelligent sleep signal triggered by the central processing unit is received;
and switching out the automatic repair mode under the condition of receiving the intelligent sleep signal.
10. The reboot device of claim 8, wherein after the electronic device enters the second operational phase, the embedded controller is further configured to:
sending a control instruction to the read only memory with firmware, wherein the control instruction is used for instructing the read only memory with firmware to fill the target field to the target position within the target duration.
CN202010760409.9A 2020-07-31 2020-07-31 Restarting method and device of electronic equipment Active CN111858183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010760409.9A CN111858183B (en) 2020-07-31 2020-07-31 Restarting method and device of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010760409.9A CN111858183B (en) 2020-07-31 2020-07-31 Restarting method and device of electronic equipment

Publications (2)

Publication Number Publication Date
CN111858183A true CN111858183A (en) 2020-10-30
CN111858183B CN111858183B (en) 2024-08-23

Family

ID=72953688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010760409.9A Active CN111858183B (en) 2020-07-31 2020-07-31 Restarting method and device of electronic equipment

Country Status (1)

Country Link
CN (1) CN111858183B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112599090A (en) * 2020-12-17 2021-04-02 深圳创维-Rgb电子有限公司 Anti-ghost processing method and device based on OLED screen body

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502367A (en) * 2019-07-29 2019-11-26 合肥联宝信息技术有限公司 A kind of control method and electronic equipment
CN110543376A (en) * 2019-08-02 2019-12-06 上海绿联软件股份有限公司 Android system equipment fault self-repairing method and android system equipment
US20200159302A1 (en) * 2018-11-16 2020-05-21 Dell Products L.P. Information Handling System And Method To Detect And Recover From No Power/No Post Failures

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200159302A1 (en) * 2018-11-16 2020-05-21 Dell Products L.P. Information Handling System And Method To Detect And Recover From No Power/No Post Failures
CN110502367A (en) * 2019-07-29 2019-11-26 合肥联宝信息技术有限公司 A kind of control method and electronic equipment
CN110543376A (en) * 2019-08-02 2019-12-06 上海绿联软件股份有限公司 Android system equipment fault self-repairing method and android system equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112599090A (en) * 2020-12-17 2021-04-02 深圳创维-Rgb电子有限公司 Anti-ghost processing method and device based on OLED screen body

Also Published As

Publication number Publication date
CN111858183B (en) 2024-08-23

Similar Documents

Publication Publication Date Title
CN101354677B (en) Method for detecting and restoring application program running state and restoring device thereof
US6502206B1 (en) Multi-processor switch and main processor switching method
US8468389B2 (en) Firmware recovery system and method of baseboard management controller of computing device
CN112199240B (en) Method for switching nodes during node failure and related equipment
CN112631820A (en) Fault recovery method and device of software system
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN111858183B (en) Restarting method and device of electronic equipment
CN112035285A (en) Hardware watchdog circuit system based on high-pass platform and monitoring method thereof
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN114816022A (en) Server power supply abnormity monitoring method, system and storage medium
JP6880961B2 (en) Information processing device and log recording method
CN115562900B (en) AMD server system installation power-off processing method, device, equipment and medium
CN112667467A (en) Cluster self-adaptive current limiting method and device, computer equipment and storage medium
CN111949384B (en) Task scheduling method, device, equipment and computer readable storage medium
CN112702183A (en) Method and device for controlling software version rollback of base station, base station and readable storage medium
JP2017207903A (en) Processor, method and program
KR20130075807A (en) An atm with back-up hdd for booting and the booting method there of
CN114741119A (en) System starting method and device, computer equipment and storage medium
CN114860292A (en) Terminal equipment firmware upgrading control method and device, computer equipment and medium
CN113867815A (en) Server suspension monitoring and automatic restarting method and server applying same
CN112905375A (en) Self-recovery method and device of double-core intelligent ammeter management unit and computer equipment
KR101351703B1 (en) Terminal device and power control device
CN112685086B (en) Information processing method and electronic equipment
CN111416721A (en) Far-end eliminating method for abnormal state of cabinet applied to data center
JP3087650B2 (en) Automatic power recovery method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant