CN113220352A - Shutdown control method and device - Google Patents

Shutdown control method and device Download PDF

Info

Publication number
CN113220352A
CN113220352A CN202110533826.4A CN202110533826A CN113220352A CN 113220352 A CN113220352 A CN 113220352A CN 202110533826 A CN202110533826 A CN 202110533826A CN 113220352 A CN113220352 A CN 113220352A
Authority
CN
China
Prior art keywords
shutdown
key
signal
sequence
key signals
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
CN202110533826.4A
Other languages
Chinese (zh)
Inventor
胡微
上官应兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Macrosan Technologies Co Ltd
Original Assignee
Macrosan 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 Macrosan Technologies Co Ltd filed Critical Macrosan Technologies Co Ltd
Priority to CN202110533826.4A priority Critical patent/CN113220352A/en
Publication of CN113220352A publication Critical patent/CN113220352A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/442Shutdown

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application provides a shutdown control method and a shutdown control device, which are applied to a BMC (baseboard management controller) included in storage equipment. In the method, when the controller is in a power-on state, the BMC continuously monitors a key signal of a switch key, and when the monitored key signal sequence is consistent with a preset signal sequence, the BMC executes a power-off operation corresponding to the preset signal sequence. Therefore, the difficulty of shutdown operation is properly increased, shutdown of the controller caused by misoperation is avoided, the risk of cache data loss is reduced, and the influence on front-end service and storage performance of the storage device is reduced.

Description

Shutdown control method and device
Technical Field
The present application relates to the field of storage technologies, and in particular, to a shutdown control method and apparatus.
Background
Currently, most storage devices externally provide on-off keys for users to operate. When a user operates the switch key, a Baseboard Management Controller (BMC) in the storage device may detect a key signal of the switch key, and then control the Controller of the storage device to turn on or off according to the key signal.
When the controller is in a power-off state, if the BMC detects a key signal of a short-press switch key or a key signal of a long-press switch key, the BMC informs the controller to execute a power-on process; when the controller is in a powered-on state, if the BMC detects a key signal of a short-press switch key, the controller is informed to execute a power-off process (also called software power-off); when the controller is in a powered-on state, if the BMC detects a key signal of a long-press switch key, the BMC forces the controller to power down (forces the power off) so as to adapt to an application scene that the software is halted and needs to be powered off.
However, in practical use, there may be a situation that a user accidentally touches a switch key to trigger software shutdown or the controller is forced to be shut down due to long-time pressing of the switch key by misoperation, and if there are other controllers in operation in the storage device, the controller in normal operation takes over the service of the shutdown controller, but the storage performance of the storage device is reduced; this can result in an abnormal interruption of the front-end traffic of the storage device if there are no other controllers in operation in the storage device, and forced shutdown can also result in loss of the cached data in the storage device.
Disclosure of Invention
In view of this, the present application provides a shutdown control method and apparatus, so as to avoid a shutdown error as much as possible, thereby reducing a risk of cache data loss and reducing an influence on a front-end service and a storage performance of a storage device.
In order to achieve the purpose of the application, the application provides the following technical scheme:
in a first aspect, the present application provides a power-off control method, which is applied to a BMC included in a storage device, where the storage device further includes a controller and a switch key for triggering the controller to power on and power off, and the method includes:
when the controller is in a started state, monitoring key signals of the on-off key, and sequentially recording the key signals into a shutdown signal list according to the monitored sequence, wherein the key signals are used for indicating whether the keys are pressed for a long time or for a short time;
when the number of the key signals recorded in the shutdown signal list reaches the number of the key signals in a preset signal sequence, searching a target signal sequence consistent with the sequence of the key signals recorded in the shutdown signal list from at least one preset signal sequence, wherein the preset signal sequence is used for recording the corresponding relation between the sequence of the preset key signals and the shutdown type;
and if the target signal sequence is found, executing corresponding shutdown operation on the controller according to the shutdown type included by the target signal sequence.
Optionally, the method further includes:
and if the target signal sequence is not found, the controller is not subjected to shutdown operation.
Optionally, the sequentially recording the signals in the shutdown signal list according to the monitored sequence includes:
if the time interval between the key signal monitoring at this time and the key signal monitoring at the last time is smaller than a preset interval threshold value, recording the key signal monitored at this time into a shutdown signal list; otherwise, after clearing the shutdown signal list, recording the monitored key signal into the shutdown signal list.
Optionally, the sequentially recording the signals in the shutdown signal list according to the monitored sequence includes:
if the number of the recorded key signals in the shutdown signal list does not reach the number of the key signals in a preset signal sequence, adding the currently monitored key signals to the tail part of the shutdown signal list;
if the number of the recorded key signals in the shutdown signal list reaches the number of the key signals in a preset signal sequence, deleting the first key signal in the shutdown signal list;
and after deleting, adding the currently monitored key signal to the tail part of the shutdown signal list.
Optionally, after the corresponding shutdown operation is performed on the controller, the method further includes:
clearing the shutdown signal list.
In a second aspect, the present application provides a shutdown control apparatus, which is disposed in a BMC included in a storage device, where the storage device further includes a controller and a switch key for triggering the controller to turn on and off, and the apparatus includes:
the monitoring unit is used for monitoring a key signal of the on-off key when the controller is in a started state, wherein the key signal is used for indicating whether the key is pressed for a long time or for a short time;
a recording unit for recording the key signals in turn into a shutdown signal list according to the sequence of monitoring the key signals,
the searching unit is used for searching a target signal sequence consistent with the sequence of the key signals recorded in the shutdown signal list from at least one preset signal sequence when the number of the key signals recorded in the shutdown signal list reaches the number of the key signals in the preset signal sequence, wherein the preset signal sequence is used for recording the corresponding relation between the sequence of the preset key signals and the shutdown type;
and the operation unit is used for executing corresponding shutdown operation on the controller according to the shutdown type included by the target signal sequence if the target signal sequence is found.
Optionally, the operation unit is further configured to not execute a shutdown operation on the controller if the target signal sequence is not found.
Optionally, the recording unit sequentially records the shutdown signal list according to the sequence of monitoring the key signals, including:
if the time interval between the key signal monitoring at this time and the key signal monitoring at the last time is smaller than a preset interval threshold value, recording the key signal monitored at this time into a shutdown signal list; otherwise, after the shutdown signal list is emptied by the emptying unit, the key signal monitored this time is recorded in the shutdown signal list.
Optionally, the recording unit sequentially records the shutdown signal list according to the monitored sequence of the key signals, including:
if the number of the recorded key signals in the shutdown signal list does not reach the number of the key signals in a preset signal sequence, adding the currently monitored key signals to the tail part of the shutdown signal list;
if the number of the recorded key signals in the shutdown signal list reaches the number of the key signals in a preset signal sequence, deleting the first key signal in the shutdown signal list;
and after deleting, adding the currently monitored key signal to the tail part of the shutdown signal list.
Optionally, the apparatus further comprises:
and the emptying unit is used for emptying the shutdown signal list after the operation unit executes corresponding shutdown operation on the controller.
As can be seen from the above description, in the embodiment of the present application, when the controller is in the powered-on state, the BMC continuously monitors the key signal of the on-off key, and when the monitored key signal sequence is consistent with the preset signal sequence, executes the power-off operation corresponding to the preset signal sequence. Therefore, the embodiment of the application avoids shutdown caused by misoperation of a user by properly increasing the difficulty of shutdown operation, thereby reducing the risk of cache data loss and reducing the influence on the front-end service and the storage performance of the storage device.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a shutdown control method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a shutdown control device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the embodiments of the present application, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the negotiation information may also be referred to as second information, and similarly, the second information may also be referred to as negotiation information without departing from the scope of the embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application are described in detail below with reference to the accompanying drawings and specific embodiments:
referring to fig. 1, a flowchart of a shutdown control method according to an embodiment of the present application is shown. The flow is applied to the BMC included in the storage device.
The storage device also comprises a controller and a switch key for triggering the controller to be turned on and turned off, wherein the controller is mainly used for processing front-end services.
As shown in fig. 1, the process may include the following steps:
step 101, when the controller is in a powered-on state, monitoring key signals of a switch key, and sequentially recording the key signals into a power-off signal list according to a monitored sequence.
In an embodiment of the present application, the BMC maintains a shutdown signal list, which is initially empty.
After the controller of the storage device is started, the BMC starts to monitor the start key and discover the power-off intention of the user when the controller is in the started state.
The operation of the on-key by the user is divided into long pressing and short pressing, and for example, when the on-key is pressed for 5 seconds, the on-key is considered to be pressed for a long time. The BMC may monitor that the on-off key is pressed, count the pressing duration, determine whether the on-off key is pressed for a long time or for a short time according to the pressing duration, and record a monitored result (a key signal indicating whether the key is pressed for a long time or for a short time) in the shutdown signal list.
In the embodiment of the application, the BMC does not trigger the shutdown operation of the controller due to a detection result (the on-off key is pressed) but continuously monitors the key signals of the on-off key, and sequentially records the monitored key signals into the shutdown signal list. That is, the shutdown signal list maintains a plurality of key signals added in the monitoring order.
The specific maintenance process of the shutdown signal list will be further described below, and will not be described herein again.
And step 102, when the number of the key signals recorded in the shutdown signal list reaches the number of the key signals in the preset signal sequence, searching a target signal sequence consistent with the sequence of the key signals recorded in the shutdown signal list from at least one preset signal sequence.
Here, the preset signal sequence is used to record a corresponding relationship between a preset sequence of the key signals and a type of the user shutdown operation (referred to as a shutdown type for short, for example, long-press shutdown or short-press shutdown) indicated by the signal sequence. The predetermined signal sequence may be expressed as follows:
the preset signal sequence is { key signal 1, key signal 2, key signal 3, key signal 4, shutdown type }
The "key signal 1, key signal 2, key signal 3, and key signal 4" represent a preset sequence of key signals. Here, a key signal sequence composed of 4 key signals is taken as an example. Certainly, in actual use, the number of the preset key signals in the preset signal sequence may be defined according to an actual application scenario, which is not limited in the present application.
In addition, the method and the device can customize a plurality of preset signal sequences according to the operation habits of the user. See a number of preset signal sequence examples as follows:
the preset signal sequence a ═ { short, short press shutdown }
Wherein, the short, short means that the on-off key is pressed for 4 times continuously; the shutdown type corresponding to the short, short and short is 'short press shutdown'.
Preset signal sequence B ═ { short, long, short press-to-turn-off }
Wherein, the short, long and short represent the continuous short-press on-off key, long-press on-off key and short-press on-off key; the shutdown type corresponding to the short, long and short is 'short press shutdown'.
Presetting a signal sequence C ═ long, long press-off }
Wherein, the long, long means 4 times of long pressing of the on-off key; the shutdown type corresponding to the long, long and long is long press shutdown.
Presetting a signal sequence D ═ long, short, long press-off }
Wherein, the long, short, long and short represent the continuous long press on-off key, short press on-off key, long press on-off key, short press on-off key; the shutdown type corresponding to the long, short, long and short is long press shutdown.
The above is an introduction to the preset signal sequence.
In the embodiment of the application, when a key signal is added to the shutdown signal list by the BMC, the number of recorded key signals in the shutdown signal list is immediately counted, when the number of key signals in the shutdown signal list reaches the number of key signals in the preset signal sequence, the shutdown signal list is compared with each preset signal sequence, and a target signal sequence consistent with the sequence of the key signals recorded in the shutdown signal list is searched from the plurality of preset signal sequences.
The reference to the target signal sequence is merely a name for convenience of distinction and is not intended to be limiting.
Step 103, if the target signal sequence is found, executing a corresponding shutdown operation on the controller according to the shutdown type included in the target signal sequence.
If the shutdown signal list hits a certain preset signal sequence (target signal sequence), the shutdown operation representing the real intention of the user is considered to exist, the shutdown type included by the target signal sequence is obtained, and the corresponding shutdown operation is executed on the controller according to the shutdown type.
For example, if the acquired shutdown type is short press shutdown, the controller is notified to execute a software shutdown process; for another example, if the acquired shutdown type is a long press shutdown, the controller is forced to be powered off (hard shutdown, forced shutdown).
As an embodiment, after the corresponding shutdown operation is performed, the record in the shutdown signal list may be cleared, i.e., the data on which the judgment has been made is deleted.
And step 104, if the target signal sequence is not found, not executing shutdown operation on the controller.
If the shutdown signal list does not hit any preset signal sequence, the monitored key signal is determined to be caused by misoperation of the user and is not the real intention of the user, and the shutdown operation is not executed on the controller.
Thus, the flow shown in fig. 1 is completed.
As can be seen from the process shown in fig. 1, in the embodiment of the present application, when the controller is in the powered-on state, the BMC continuously monitors the key signal of the on-off key, and when the monitored key signal sequence is consistent with the preset signal sequence, executes the power-off operation corresponding to the preset signal sequence. Therefore, the embodiment of the application avoids shutdown caused by misoperation of a user by properly increasing the difficulty of shutdown operation, thereby reducing the risk of cache data loss and reducing the influence on the front-end service and the storage performance of the storage device.
The maintenance process of the shutdown signal list is described below.
As an embodiment, if the time interval between the key signal being monitored and the key signal being monitored last time is smaller than a preset interval threshold (for example, 8 seconds), recording the monitored key signal into a shutdown signal list; otherwise, after the shutdown signal list is emptied, the key signal monitored this time is recorded in the shutdown signal list.
This is because the key operations with shorter intervals are generally directed to the same operation purpose, and the key operations with longer intervals are generally directed to different operation purposes. Therefore, when the time interval between two adjacent key signals is long, the shutdown signal list is cleared, namely, the previous record is cleared, and the record can not be used as a basis for judging whether the shutdown is performed.
In addition, it should be noted that, the determining whether the time interval between two adjacent key signals is smaller than the preset interval threshold may include at least the following two implementation manners:
in the first mode, the time when the key signal is monitored at this time and the time when the key signal is monitored at the last time are respectively obtained, a time difference value is calculated, and whether the time difference value is smaller than a preset interval threshold value or not is judged.
In a second mode, a timer is started, and the timing length of the timer is the preset interval threshold. If a new key signal is monitored before the timer overflows, indicating that the time interval between two adjacent key signals is smaller than a preset interval threshold value, adding the new key signal into a shutdown signal list, and resetting the timer (retiming); and if the new key signal is not monitored when the timer overflows, indicating that the time interval between two adjacent key signals (the last key signal and the next key signal) is greater than a preset interval threshold value, emptying the shutdown signal list and resetting the timer.
In addition to considering the time interval between two adjacent key signals, the embodiment of the present application further needs to filter the key signals recorded in the shutdown signal list based on the length limitation of the shutdown signal list.
Here, the length of the shutdown signal list depends on the number of key signals preset in the preset signal sequence. For example, in the foregoing example, if the number of the key signals in the preset signal sequence is 4, the length of the shutdown signal list is 4, that is, the shutdown signal list allows recording of at most 4 monitored key signals.
Therefore, if the number of the recorded key signals in the shutdown signal list does not reach the length of the preset shutdown signal list (the number of the key signals in the preset signal sequence), the currently monitored key signals are directly added to the tail part of the shutdown signal list.
And if the number of the recorded key signals in the shutdown signal list reaches the length of a preset shutdown signal list (the number of the key signals in a preset signal sequence), deleting the first key signal in the shutdown signal list, and adding the currently monitored key signal to the tail part of the shutdown signal list after deleting.
Namely, the latest key signal is always recorded in the shutdown signal list so as to ensure the accuracy of shutdown operation identification.
The method provided by the embodiment of the present application is described above, and the apparatus provided by the embodiment of the present application is described below:
referring to fig. 2, a schematic structural diagram of an apparatus provided in an embodiment of the present application is shown. The device sets up in the BMC that storage equipment includes, storage equipment still includes the controller and is used for triggering the on & off switch of controller switching on and shutting down, and the device includes: monitoring unit 201, record unit 202, look up unit 203 and operation unit 204, wherein:
a monitoring unit 201, configured to monitor a key signal of the on/off key when the controller is in a powered on state, where the key signal is used to indicate whether a key is pressed for a long time or a short time;
a recording unit 202, configured to sequentially record the key signals in a shutdown signal list according to the sequence of monitoring the key signals,
the searching unit 203 is configured to search, when the number of the key signals recorded in the shutdown signal list reaches the number of the key signals in a preset signal sequence, a target signal sequence consistent with the order of the key signals recorded in the shutdown signal list from at least one preset signal sequence, where the preset signal sequence is used to record a corresponding relationship between the order of the preset key signals and a shutdown type;
an operation unit 204, configured to, if the target signal sequence is found, execute a corresponding shutdown operation on the controller according to a shutdown type included in the target signal sequence.
As an embodiment, the operation unit 204 is further configured to not perform a shutdown operation on the controller if the target signal sequence is not found.
As an embodiment, the recording unit 202 sequentially records in the shutdown signal list according to the sequence of monitoring the key signals, including:
if the time interval between the key signal monitoring at this time and the key signal monitoring at the last time is smaller than a preset interval threshold value, recording the key signal monitored at this time into a shutdown signal list; otherwise, after the shutdown signal list is emptied by the emptying unit, the key signal monitored this time is recorded in the shutdown signal list.
As an embodiment, the recording unit 202 sequentially records in the shutdown signal list according to the sequence of the monitored key signals, including:
if the number of the recorded key signals in the shutdown signal list does not reach the number of the key signals in a preset signal sequence, adding the currently monitored key signals to the tail part of the shutdown signal list;
if the number of the recorded key signals in the shutdown signal list reaches the number of the key signals in a preset signal sequence, deleting the first key signal in the shutdown signal list;
and after deleting, adding the currently monitored key signal to the tail part of the shutdown signal list.
As an embodiment, the apparatus further comprises:
a clearing unit, configured to clear the shutdown signal list after the operation unit 204 executes a corresponding shutdown operation on the controller.
As can be seen from the above description, in the embodiment of the present application, when the controller is in the powered-on state, the BMC continuously monitors the key signal of the on-off key, and when the monitored key signal sequence is consistent with the preset signal sequence, executes the power-off operation corresponding to the preset signal sequence. Therefore, the embodiment of the application avoids shutdown caused by misoperation of a user by properly increasing the difficulty of shutdown operation, thereby reducing the risk of cache data loss and reducing the influence on the front-end service and the storage performance of the storage device.
The above description is only a preferred embodiment of the present application, and should not be taken as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application shall be included in the scope of the present application.

Claims (10)

1. A shutdown control method is applied to a Baseboard Management Controller (BMC) included in a storage device, the storage device further includes a controller and a switch key for triggering the controller to be turned on and off, and the method includes:
when the controller is in a started state, monitoring key signals of the on-off key, and sequentially recording the key signals into a shutdown signal list according to the monitored sequence, wherein the key signals are used for indicating whether the keys are pressed for a long time or for a short time;
when the number of the key signals recorded in the shutdown signal list reaches the number of the key signals in a preset signal sequence, searching a target signal sequence consistent with the sequence of the key signals recorded in the shutdown signal list from at least one preset signal sequence, wherein the preset signal sequence is used for recording the corresponding relation between the sequence of the preset key signals and the shutdown type;
and if the target signal sequence is found, executing corresponding shutdown operation on the controller according to the shutdown type included by the target signal sequence.
2. The method of claim 1, wherein the method further comprises:
and if the target signal sequence is not found, the controller is not subjected to shutdown operation.
3. The method of claim 1, wherein the sequentially recording into a shutdown signal list in the monitored order comprises:
if the time interval between the key signal monitoring at this time and the key signal monitoring at the last time is smaller than a preset interval threshold value, recording the key signal monitored at this time into a shutdown signal list; otherwise, after clearing the shutdown signal list, recording the monitored key signal into the shutdown signal list.
4. The method of claim 1, wherein the sequentially recording into a shutdown signal list in the monitored order comprises:
if the number of the recorded key signals in the shutdown signal list does not reach the number of the key signals in a preset signal sequence, adding the currently monitored key signals to the tail part of the shutdown signal list;
if the number of the recorded key signals in the shutdown signal list reaches the number of the key signals in a preset signal sequence, deleting the first key signal in the shutdown signal list;
and after deleting, adding the currently monitored key signal to the tail part of the shutdown signal list.
5. The method of claim 1, wherein after the performing the respective shutdown operation on the controller, the method further comprises:
clearing the shutdown signal list.
6. The utility model provides a shutdown controlling means, its characterized in that sets up in the base plate management controller BMC that storage device includes, storage device still includes the controller and is used for triggering the on & off switch of controller switching on and shutting down, the device includes:
the monitoring unit is used for monitoring a key signal of the on-off key when the controller is in a started state, wherein the key signal is used for indicating whether the key is pressed for a long time or for a short time;
a recording unit for recording the key signals in turn into a shutdown signal list according to the sequence of monitoring the key signals,
the searching unit is used for searching a target signal sequence consistent with the sequence of the key signals recorded in the shutdown signal list from at least one preset signal sequence when the number of the key signals recorded in the shutdown signal list reaches the number of the key signals in the preset signal sequence, wherein the preset signal sequence is used for recording the corresponding relation between the sequence of the preset key signals and the shutdown type;
and the operation unit is used for executing corresponding shutdown operation on the controller according to the shutdown type included by the target signal sequence if the target signal sequence is found.
7. The apparatus of claim 6, wherein:
the operation unit is further configured to not perform a shutdown operation on the controller if the target signal sequence is not found.
8. The apparatus of claim 6, wherein the recording unit sequentially records the shutdown signal list according to the sequence of the monitored key signals, and comprises:
if the time interval between the key signal monitoring at this time and the key signal monitoring at the last time is smaller than a preset interval threshold value, recording the key signal monitored at this time into a shutdown signal list; otherwise, after the shutdown signal list is emptied by the emptying unit, the key signal monitored this time is recorded in the shutdown signal list.
9. The apparatus of claim 6, wherein the recording unit sequentially records the shutdown signal list according to the sequence of the monitored key signals, and comprises:
if the number of the recorded key signals in the shutdown signal list does not reach the number of the key signals in a preset signal sequence, adding the currently monitored key signals to the tail part of the shutdown signal list;
if the number of the recorded key signals in the shutdown signal list reaches the number of the key signals in a preset signal sequence, deleting the first key signal in the shutdown signal list;
and after deleting, adding the currently monitored key signal to the tail part of the shutdown signal list.
10. The apparatus of claim 6, wherein the apparatus further comprises:
and the emptying unit is used for emptying the shutdown signal list after the operation unit executes corresponding shutdown operation on the controller.
CN202110533826.4A 2021-05-17 2021-05-17 Shutdown control method and device Pending CN113220352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110533826.4A CN113220352A (en) 2021-05-17 2021-05-17 Shutdown control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110533826.4A CN113220352A (en) 2021-05-17 2021-05-17 Shutdown control method and device

Publications (1)

Publication Number Publication Date
CN113220352A true CN113220352A (en) 2021-08-06

Family

ID=77092378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110533826.4A Pending CN113220352A (en) 2021-05-17 2021-05-17 Shutdown control method and device

Country Status (1)

Country Link
CN (1) CN113220352A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114415546A (en) * 2022-01-19 2022-04-29 环荣电子(惠州)有限公司 Electronic equipment power supply operation method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299678A (en) * 2008-07-03 2008-11-05 杭州华三通信技术有限公司 Method and system for implementing electrification of interface plate in open application structure
CN105898024A (en) * 2015-12-23 2016-08-24 乐视移动智能信息技术(北京)有限公司 Earphone key control method and system
CN112639634A (en) * 2020-05-07 2021-04-09 深圳市大疆创新科技有限公司 On-off control device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299678A (en) * 2008-07-03 2008-11-05 杭州华三通信技术有限公司 Method and system for implementing electrification of interface plate in open application structure
CN105898024A (en) * 2015-12-23 2016-08-24 乐视移动智能信息技术(北京)有限公司 Earphone key control method and system
CN112639634A (en) * 2020-05-07 2021-04-09 深圳市大疆创新科技有限公司 On-off control device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114415546A (en) * 2022-01-19 2022-04-29 环荣电子(惠州)有限公司 Electronic equipment power supply operation method and electronic equipment
CN114415546B (en) * 2022-01-19 2024-03-26 环荣电子(惠州)有限公司 Electronic equipment power supply operation method and electronic equipment

Similar Documents

Publication Publication Date Title
JP4199322B2 (en) Information processing apparatus and error collection method for information processing apparatus
US20070050685A1 (en) Method of resetting an unresponsive system and system capable of recovering from an unresponsive condition
CN109299064B (en) Database monitoring method and terminal equipment
CN106155797B (en) Terminal equipment and switching method of performance modes thereof
WO2005017736A1 (en) System and program for detecting bottle neck in disc array device
CN113220352A (en) Shutdown control method and device
CN102340808A (en) Alarm processing method and apparatus thereof
WO2024017072A1 (en) Vehicle fault information processing method and device, storage medium, and processor
CN112631820A (en) Fault recovery method and device of software system
WO2023116130A1 (en) Keyboard scanning circuit, keyboard key recognition method, chip, and keyboard
CN107608811B (en) Crash detection system based on touch screen and display screen
CN113032788A (en) Firmware image switching method, device and medium in computer system
WO2010113212A1 (en) Memory leak monitoring device and method
CN101515871B (en) Method for inhibiting change of state of SAS link and monitoring entity
CN101441668B (en) Method and apparatus of multiple-magnetic disk packet heat standby in distributed file system
JP2004005305A (en) Monitoring method of memory use capacity, and computer system
CN113010367A (en) Monitoring method and monitoring system for JAVA process garbage recovery
CN111444054A (en) Touch screen disconnection identification method and device and electronic equipment
EP4354293A1 (en) Detection method and apparatus, and electronic device
CN104408059A (en) Fault processing method and device
CN114088408A (en) Cooling liquid temperature diagnosis method and device, vehicle and storage medium
CN114493729A (en) Scheduling method and system based on billing server
CN113886497A (en) Bidirectional real-time data monitoring method and device
CN107590047B (en) SMI signal timeout monitoring system and method
JP4057045B1 (en) Misoperation judgment system

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