CN111796991A - System state indication method and device, computer equipment and readable storage medium - Google Patents
System state indication method and device, computer equipment and readable storage medium Download PDFInfo
- Publication number
- CN111796991A CN111796991A CN202010637281.7A CN202010637281A CN111796991A CN 111796991 A CN111796991 A CN 111796991A CN 202010637281 A CN202010637281 A CN 202010637281A CN 111796991 A CN111796991 A CN 111796991A
- Authority
- CN
- China
- Prior art keywords
- indicator light
- state
- data processing
- embedded controller
- processing platform
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000012545 processing Methods 0.000 claims abstract description 122
- 238000001514 detection method Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000012360 testing method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/325—Display of status information by lamps or LED's
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/328—Computer systems status display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the application provides a system state indicating method, a device, computer equipment and a readable storage medium, which relate to the technical field of data processing platforms, and the system state indicating method comprises the following steps: when the load integrated circuit is not connected with the charger, judging whether the embedded controller triggers a starting event or not; if so, sending a lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state; if not, when the working signal sent by the central processing unit is not received, a turn-off signal is sent to the indicator lamp to turn off the indicator lamp so as to indicate that the data processing platform is in a shutdown state, and the indication of the system state can be conveniently realized.
Description
Technical Field
The present application relates to the technical field of data processing platforms, and in particular, to a method and an apparatus for indicating a system status, a computer device, and a readable storage medium.
Background
With the development of terminal technology, in order to implement more functions, data processing platforms applied to terminal devices are also optimized. The data processing platform has a plurality of system states in operation, such as a power-on state, a power-off charging state and the like. When the data processing platform needs to be tested, maintained and other related operations, the system state of the current data processing platform needs to be known definitely. However, some existing data processing platforms, for example, high-pass 8CX platforms (high-pass 8 computer extreme platforms), cannot intuitively know the current system state, and need to be confirmed through more complex test logic, thereby reducing the related work efficiency.
In view of the above, it is necessary for those skilled in the art to provide a convenient system status indication scheme.
Disclosure of Invention
The application provides a system state indication method, a system state indication device, computer equipment and a readable storage medium.
In a first aspect, an embodiment of the present application provides a system status indication method, which is applied to an embedded controller in a data processing platform, where the data processing platform further includes a central processing unit, a load integrated circuit, and an indicator light, and the embedded controller is in communication connection with the central processing unit, the load integrated circuit, and the indicator light;
the method comprises the following steps:
when the load integrated circuit is not connected with a charger, judging whether the embedded controller triggers a starting event or not;
if so, sending a lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state;
if not, when the working signal sent by the central processing unit is not received, an extinguishing signal is sent to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown state.
In an alternative embodiment, the embedded controller includes a shutdown charging register;
the method further comprises the following steps:
when the load integrated circuit is connected with the charger, judging whether the embedded controller triggers the starting-up event or not;
if so, sending the lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state;
if not, judging whether the working signal sent by the central processing unit is received or not;
if yes, controlling the indicator light according to the state of the shutdown charging register;
if not, sending the extinguishing signal to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a power-off state.
In an optional implementation manner, the step of controlling the indicator light according to the state of the shutdown charging register includes:
when the state of the shutdown charging register is in a high level, sending the extinguishing signal to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown charging state;
and when the state of the shutdown charging register is a low level, sending the lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a startup state.
In an optional embodiment, before the step of determining whether the embedded controller triggers a power-on event when the load integrated circuit is not connected to a charger, the method further includes:
detecting an alternating voltage detection signal sent by the load integrated circuit;
when the alternating voltage detection signal is at a high level, determining that the load integrated circuit is connected with the charger;
and when the alternating voltage detection signal is at a low level, determining that the load integrated circuit is not connected with the charger.
In an alternative embodiment, said embedded controller includes a boot event register;
the step of judging whether the embedded controller triggers the starting event comprises the following steps:
detecting a state of the boot event register;
when the state of the starting event register is in a high level, judging that the embedded controller triggers the starting event;
and when the state of the starting event register is in a low level, judging that the embedded controller does not trigger the starting event.
In a second aspect, an embodiment of the present application provides a system status indicating device, which is applied to an embedded controller in a data processing platform, where the data processing platform further includes a central processing unit, a load integrated circuit, and an indicator light, and the embedded controller is in communication connection with the central processing unit, the load integrated circuit, and the indicator light;
the device comprises:
the judging and executing module is used for judging whether the embedded controller triggers a starting event or not when the load integrated circuit is not connected with a charger; if so, sending a lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state; if not, when the working signal sent by the central processing unit is not received, an extinguishing signal is sent to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown state.
In an alternative embodiment, the embedded controller includes a shutdown charging register;
the judgment execution module is further configured to:
when the load integrated circuit is connected with the charger, judging whether the embedded controller triggers the starting-up event or not; if so, sending the lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state; if not, judging whether the working signal sent by the central processing unit is received or not; if yes, controlling the indicator light according to the state of the shutdown charging register; if not, sending the extinguishing signal to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a power-off state.
In an optional implementation manner, the judgment execution module is specifically configured to:
when the state of the shutdown charging register is in a high level, sending the extinguishing signal to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown charging state; and when the state of the shutdown charging register is a low level, sending the lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a startup state.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device executes the system state indication method in any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, where the readable storage medium includes a computer program, and the computer program controls, when executed, a computer device in the readable storage medium to perform the system status indication method described in any one of the foregoing embodiments.
The embodiment of the application provides a system state indicating method, a device, computer equipment and a readable storage medium, wherein the system state indicating method is applied to an embedded controller in a data processing platform, the data processing platform further comprises a central processing unit, a load integrated circuit and an indicator light, and the embedded controller is in communication connection with the central processing unit, the load integrated circuit and the indicator light; the system state indicating method comprises the following steps: when the load integrated circuit is not connected with a charger, judging whether the embedded controller triggers a starting event or not; if so, sending a lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state; if not, when the working signal sent by the central processing unit is not received, an extinguishing signal is sent to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown state, and the indication of the system state can be conveniently realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a data processing platform according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating steps of a system status indication method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart illustrating steps of another method for indicating a system status according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating steps of another method for indicating a system status according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a system status indicating apparatus according to an embodiment of the present disclosure;
fig. 6 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present disclosure.
Icon: 1-a data processing platform; 10-an embedded controller; 20-a central processing unit; 30-a load integrated circuit; 40-an indicator light; 100-a computer device; 110-system status indication means; 1101-a judgment execution module; 111-a memory; 112-a processor; 113-communication unit.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
At present, a data processing platform has been widely applied to various terminals, the data processing platform has working states of turning on, turning off and turning off a charging lamp when in work, and when the data processing platform is required to be tested, maintained and the like, the acquisition of the working state of the data processing platform is necessary. Referring to fig. 1, fig. 1 is a schematic structural diagram of a data processing platform according to an embodiment of the present disclosure. The data processing platform 1 includes an EC (embedded Controller, abbreviated as embedded Controller 10), a CPU (Central processing unit, abbreviated as Central processing unit 20), a Charge IC (load Integrated Circuit, load Integrated Circuit 30), and an LED (Light Emitting Diode, that is, indicator Light 40), and the embedded Controller 10 is in communication connection with the Central processing unit 20, the load Integrated Circuit 30, and the indicator Light 40.
In order to solve the aforementioned technical problem, please refer to fig. 2, an embodiment of the present invention provides a system status indication method, which can be implemented by referring to the following steps, wherein an execution subject of the system status indication method is the embedded controller 10 in fig. 1.
In step 201, when the load integrated circuit 30 is not connected to the charger, it is determined whether the embedded controller 10 triggers a power-on event.
If yes, go to step 202.
If not, go to step 203.
It should be noted that the data processing platform 1 in fig. 1 may be configured based on a high-pass 8cx platform, for example, for the high-pass 8cx platform, only the PS _ HOLD signal (i.e., the working signal, sent to the embedded controller 10 by the cpu 20) is shown to indicate that the system is in operation, and the system includes a power-on state (S0) and a power-off charging state (off charging) during operation, which are not distinguishable only by the PS _ HOLD signal, and the power-off state (S5) is not confirmed in a specific manner. It should be understood that, in order to perform testing, maintenance and other operations, the state of the system needs to be visually judged to improve the working efficiency.
Based ON this, it may be determined whether the load integrated circuit 30 is connected to the charger, and in the case of no connection, it may be considered that the system is powered only by the battery, that is, in a dc (direct current) mode, and then it may be determined whether the embedded controller 10 triggers a start event, and if triggered, an LED ON (lighting signal) may be sent to the indicator lamp 40 to light the indicator lamp 40, so as to indicate that the data processing platform 1 is in a start state. If not, it can be determined whether the embedded controller 10 receives a working signal (PS _ HOLD signal) from the central processing unit 20, and if not, an OFF signal is sent to the indicator 40 to turn OFF the indicator 40, so as to indicate that the data processing platform 1 is in a power-OFF state. It should be noted that, if the embedded controller 10 does not trigger the power-on event and receives the operating signal from the central processing unit 20, under the aforementioned condition, the system is in the power-on state, and the indicator 40 itself is kept on at this time, and it is not necessary to send the lighting signal to the indicator 40 to light the indicator 40. Through the steps, whether the system is in the power-on state or the power-off state can be intuitively known through the indicator lamp 40.
On the basis of the foregoing, the embedded controller 10 includes a shutdown charging register. The embodiment of the present application further provides an example of the following system status indication method, please refer to fig. 3 in combination.
In step 204, when the load integrated circuit 30 is connected to the charger, it is determined whether the embedded controller 10 triggers a power-on event.
If yes, go to step 205.
If not, go to step 206.
In step 206, it is determined whether a working signal from the cpu 20 is received.
If so, go to step 207.
If not, go to step 208.
And step 208, sending an off signal to the indicator light 40 to turn off the indicator light 40, so as to indicate that the data processing platform 1 is in a shutdown state.
When the load integrated circuit 30 is connected to the charger, the system may be considered to be in an AC + DC mode (Alternating Current + Direct Current), i.e., the charger and the battery are both supplying power. A determination may be made whether the embedded controller 10 triggers a power-on event. If the embedded controller 10 triggers a power-on event, a lighting signal may be sent to the indicator 40 to light the indicator 40, so as to indicate that the system is in a power-on state at this time. If the embedded controller 10 does not trigger the power-on event, it may be determined whether the embedded controller 10 receives a working signal sent by the central processing unit 20, and if the working signal sent by the central processing unit 20 is received, further determination may be performed based on a state of a power-OFF Charging (OFF MODE Charging) register. It should be understood that OFF MODE changing may be a register name of the embedded controller 10, and the operating state of the system may be determined according to its state. When the embedded controller 10 does not trigger the power-on event and does not receive the working signal sent by the central processing unit 20, an off signal may be sent to the indicator light 40 to turn off the indicator light 40, so as to indicate that the data processing platform 1 is in the power-off state.
Through the steps, the current working state of the system can be visually expressed by the indicator lamp 40 under a more perfect condition.
On the basis of the foregoing, as a specific embodiment, the foregoing step 207 may be implemented by the following steps.
In the sub-step 207-1, when the status of the shutdown charging register is high level, an off signal is sent to the indicator lamp 40 to turn off the indicator lamp 40, so as to indicate that the data processing platform 1 is in the shutdown charging status.
In the sub-step 207-2, when the power-off charging register is in a low level, the lighting signal is sent to the indicator 40 to light the indicator 40, so as to indicate that the data processing platform 1 is in a power-on state.
As mentioned above, the OFF MODE changing may be a register name of the embedded controller 10, the default state is 1, and the BIOS (Basic Input Output System, abbreviated as BIOS) may write the register through I2C (Inter-Integrated Circuit, abbreviated as two-wire serial bus) to inform the embedded controller 10 whether the current System enters the power-OFF Charging state or another state. Specifically, when the state of the shutdown charge register is a high level, an off signal is sent to the indicator lamp 40 to turn off the indicator lamp 40, so as to indicate that the data processing platform 1 is in the shutdown charge state, and when the state of the shutdown charge register is a low level, an on signal is sent to the indicator lamp 40 to turn on the indicator lamp 40, so as to indicate that the data processing platform 1 is in the startup state.
In the embodiment of the present application, before the foregoing step 201, the following step is also proposed for determining whether the load integrated circuit 30 is connected to the charger.
In step 301, an ac voltage detection signal from the load integrated circuit 30 is detected.
In step 302, when the ac voltage detection signal is at a high level, it is determined that the load integrated circuit 30 is connected to the charger.
In step 303, when the ac voltage detection signal is at a low level, it is determined that the load integrated circuit 30 is not connected to the charger.
As described above, in order to determine whether the load integrated circuit 30 is connected to the charger, the embedded controller 10 may first detect an ac OK signal (Alternating Current OK) sent by the load integrated circuit 30, determine that the load integrated circuit 30 is connected to the charger when the ac voltage detection signal is at a high level (ac OK ═ 1), and determine that the load integrated circuit 30 is not connected to the charger when the ac voltage detection signal is at a low level (ac OK ═ 0). Through the above steps, it can be accurately determined whether the load integrated circuit 30 is connected to the charger.
Based on the foregoing, the embedded controller 10 includes a boot event register. As an alternative embodiment, the foregoing step 201 may be implemented by the following detailed steps.
Substep 201-1, detects the state of the boot event register.
In sub-step 201-2, when the state of the boot event register is high, it is determined that the embedded controller 10 triggers a boot event.
In sub-step 201-3, when the state of the boot event register is low, it is determined that the embedded controller 10 does not trigger a boot event.
The embedded controller 10 may include a Power on Event register, where a Power on Event is a register name of the embedded controller 10 and the default value is 0. When the embedded controller 10 triggers a power-on event, it sets 1 and reads the background 0. Specifically, when the state of the boot event register is at a high level, it is determined that the embedded controller 10 triggers a boot event, and when the state of the boot event register is at a low level, it is determined that the embedded controller 10 does not trigger a boot event. Through the steps, whether the embedded controller 10 triggers the startup event can be accurately known.
In order to more clearly explain the present solution, please refer to fig. 4, through the foregoing steps, a user can determine the current working state of the data processing platform 1 intuitively through the on/off state of the indicator 40, specifically, when the data processing platform 1 is in the on state, the indicator 40 is turned on, and when the data processing platform 1 is in the off or off charging state, the indicator 40 is turned off. The information required by the user when the user performs related operations such as testing and maintenance on the data processing platform 1 can be met, complex logic test is not required, and the working efficiency of the user is improved. Specifically, it can be determined whether the load ic 30 is connected to the charger, i.e. whether ACOK is 1, when the charger is connected, whether the embedded controller 10 triggers the start-up time is further judged, namely, whether the Power ON Event is 1 is judged, if yes, a lighting signal (namely, LED ON) is sent to the indicator lamp 40 to light the indicator lamp 40, if not, whether an operating signal sent by the central processing unit 20 is received is further judged, that is, it is determined whether PS _ HOLD is 1, and if not, an OFF signal (i.e., LED _ OFF) is sent to the indicator lamp 40 to turn OFF the indicator lamp 40, and if yes, it is further determined whether the data processing platform 1 is in the power-OFF Charging state (i.e. whether the power-OFF Charging register OFF MODE Charging is due), if yes, an off signal is sent to the indicator lamp 40 to turn off the indicator lamp 40, and if not, an on signal is sent to the indicator lamp 40 to turn on the indicator lamp 40. And when the ACOK is not 1, that is, when the charger is not accessed, further determining whether the embedded controller 10 triggers the Power-on time, that is, determining whether the Power-on Event is 1, if so, sending a lighting signal to the indicator lamp 40 to light the indicator lamp 40, if not, further determining whether a working signal sent by the central processing unit 20 is received, that is, determining whether PS _ HOLD is 1, if so, further determining that the data processing platform 1 is in the Power-on state, and at this time, the indicator lamp 40 keeps on, without sending the lighting signal to the indicator lamp 40 to light the indicator lamp 40, and if not, sending a turning-off signal to the indicator lamp 40 to turn off the indicator lamp 40.
The embodiment of the present application provides a system status indicating device 110, which is applied to an embedded controller 10 in a data processing platform 1, where the data processing platform 1 further includes a central processing unit 20, a load integrated circuit 30 and an indicator light 40, the embedded controller 10 is in communication connection with the central processing unit 20, the load integrated circuit 30 and the indicator light 40, as shown in fig. 5, the device includes:
a judgment execution module 1101, configured to judge whether the embedded controller 10 triggers a power-on event when the load integrated circuit 30 is not connected to a charger; if yes, sending a lighting signal to the indicator light 40 to light the indicator light 40, so as to indicate that the data processing platform 1 is in a starting state; if not, when the working signal sent by the central processing unit 20 is not received, an off signal is sent to the indicator lamp 40 to turn off the indicator lamp 40, so as to indicate that the data processing platform 1 is in a shutdown state.
Further, the embedded controller 10 includes a shutdown charging register;
the determination execution module 1101 is further configured to:
when the load integrated circuit 30 is connected to a charger, judging whether the embedded controller 10 triggers a starting event; if yes, sending a lighting signal to the indicator light 40 to light the indicator light 40, so as to indicate that the data processing platform 1 is in a starting state; if not, judging whether a working signal sent by the central processing unit 20 is received; if yes, controlling an indicator lamp 40 according to the state of the shutdown charging register; if not, sending an off signal to the indicator light 40 to turn off the indicator light 40, so as to indicate that the data processing platform 1 is in a power-off state.
Further, the judgment execution module 1101 is specifically configured to:
when the state of the shutdown charging register is a high level, sending an off signal to the indicator lamp 40 to turn off the indicator lamp 40, so as to indicate that the data processing platform 1 is in a shutdown charging state; when the state of the shutdown charging register is low level, a lighting signal is sent to the indicator lamp 40 to light the indicator lamp 40, so as to indicate that the data processing platform 1 is in a startup state.
Further, the judgment execution module 1101 further includes:
detecting an ac voltage detection signal from the load ic 30; when the alternating voltage detection signal is at a high level, determining that the load integrated circuit 30 is connected to the charger; when the ac voltage detection signal is low, it is determined that the load integrated circuit 30 is not connected to the charger.
Further, the embedded controller 10 includes a boot event register;
the judgment execution module 1101 is specifically configured to:
detecting the state of a boot event register; when the state of the boot event register is high, it is determined that the embedded controller 10 triggers a boot event; when the state of the boot event register is low, it is determined that the embedded controller 10 does not trigger a boot event.
The embodiment of the present application provides a computer device 100, where the computer device 100 includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device 100 executes the aforementioned system status indication method. As shown in fig. 6, fig. 6 is a block diagram of a computer device 100 according to an embodiment of the present disclosure. The computer apparatus 100 includes a system status indication device 110, a memory 111, a processor 112, and a communication unit 113.
To facilitate the transfer or interaction of data, the elements of the memory 111, the processor 112 and the communication unit 113 are electrically connected to each other, directly or indirectly. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The system status indicating means 110 includes at least one software function module which can be stored in the memory 111 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the computer device 100. The processor 112 is used for executing executable modules stored in the memory 111, such as software functional modules and computer programs included in the system status indicating device 110.
The embodiment of the application provides a readable storage medium, which includes a computer program, and when the computer program runs, the computer device where the readable storage medium is located is controlled to execute the foregoing system state indication method.
In summary, the present application provides a system status indication method, an apparatus, a computer device, and a readable storage medium, where the system status indication method is applied to an embedded controller in a data processing platform, the data processing platform further includes a central processing unit, a load integrated circuit, and an indicator light, and the embedded controller is in communication connection with the central processing unit, the load integrated circuit, and the indicator light; the system state indicating method comprises the following steps: when the load integrated circuit is not connected with a charger, judging whether the embedded controller triggers a starting event or not; if so, sending a lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state; if not, when the working signal sent by the central processing unit is not received, an extinguishing signal is sent to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown state, and the indication of the system state can be conveniently realized.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. The system state indicating method is characterized in that the method is applied to an embedded controller in a data processing platform, the data processing platform further comprises a central processing unit, a load integrated circuit and an indicator light, and the embedded controller is in communication connection with the central processing unit, the load integrated circuit and the indicator light;
the method comprises the following steps:
when the load integrated circuit is not connected with a charger, judging whether the embedded controller triggers a starting event or not;
if so, sending a lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state;
if not, when the working signal sent by the central processing unit is not received, an extinguishing signal is sent to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown state.
2. The method of claim 1, wherein the embedded controller comprises a shutdown charge register;
the method further comprises the following steps:
when the load integrated circuit is connected with the charger, judging whether the embedded controller triggers the starting-up event or not;
if so, sending the lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state;
if not, judging whether the working signal sent by the central processing unit is received or not;
if yes, controlling the indicator light according to the state of the shutdown charging register;
if not, sending the extinguishing signal to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a power-off state.
3. The method of claim 2, wherein the step of controlling the indicator light based on the status of the shutdown charge register comprises:
when the state of the shutdown charging register is in a high level, sending the extinguishing signal to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown charging state;
and when the state of the shutdown charging register is a low level, sending the lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a startup state.
4. The method of claim 1, wherein prior to the step of determining whether the embedded controller triggers a power-on event when the load integrated circuit is not coupled to a charger, the method further comprises:
detecting an alternating voltage detection signal sent by the load integrated circuit;
when the alternating voltage detection signal is at a high level, determining that the load integrated circuit is connected with the charger;
and when the alternating voltage detection signal is at a low level, determining that the load integrated circuit is not connected with the charger.
5. The method of claim 1, wherein the embedded controller comprises a boot event register;
the step of judging whether the embedded controller triggers the starting event comprises the following steps:
detecting a state of the boot event register;
when the state of the starting event register is in a high level, judging that the embedded controller triggers the starting event;
and when the state of the starting event register is in a low level, judging that the embedded controller does not trigger the starting event.
6. The system state indicating device is characterized by being applied to an embedded controller in a data processing platform, wherein the data processing platform further comprises a central processing unit, a load integrated circuit and an indicator light, and the embedded controller is in communication connection with the central processing unit, the load integrated circuit and the indicator light;
the device comprises:
the judging and executing module is used for judging whether the embedded controller triggers a starting event or not when the load integrated circuit is not connected with a charger; if so, sending a lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state; if not, when the working signal sent by the central processing unit is not received, an extinguishing signal is sent to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown state.
7. The apparatus of claim 6, wherein the embedded controller comprises a shutdown charge register;
the judgment execution module is further configured to:
when the load integrated circuit is connected with the charger, judging whether the embedded controller triggers the starting-up event or not; if so, sending the lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a starting state; if not, judging whether the working signal sent by the central processing unit is received or not; if yes, controlling the indicator light according to the state of the shutdown charging register; if not, sending the extinguishing signal to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a power-off state.
8. The apparatus according to claim 7, wherein the determination execution module is specifically configured to:
when the state of the shutdown charging register is in a high level, sending the extinguishing signal to the indicator light to extinguish the indicator light so as to indicate that the data processing platform is in a shutdown charging state; and when the state of the shutdown charging register is a low level, sending the lighting signal to the indicator light to light the indicator light so as to indicate that the data processing platform is in a startup state.
9. A computer device comprising a processor and a non-volatile memory having computer instructions stored thereon, wherein when the computer instructions are executed by the processor, the computer device performs the system status indication method of any one of claims 1-5.
10. A readable storage medium, characterized in that the readable storage medium comprises a computer program which, when running, controls a computer device on which the readable storage medium is located to perform the system status indication method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010637281.7A CN111796991B (en) | 2020-07-03 | 2020-07-03 | System status indication method, apparatus, computer device, and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010637281.7A CN111796991B (en) | 2020-07-03 | 2020-07-03 | System status indication method, apparatus, computer device, and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111796991A true CN111796991A (en) | 2020-10-20 |
CN111796991B CN111796991B (en) | 2024-01-26 |
Family
ID=72810293
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010637281.7A Active CN111796991B (en) | 2020-07-03 | 2020-07-03 | System status indication method, apparatus, computer device, and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111796991B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855064A (en) * | 2005-04-26 | 2006-11-01 | 佛山市顺德区顺达电脑厂有限公司 | Device and method for inspecting battery electric charge quantity of booknote computer with system light co-construction |
CN201699449U (en) * | 2010-06-04 | 2011-01-05 | 黄石东贝机电集团太阳能有限公司 | Portable multifunctional power supply |
CN103810080A (en) * | 2012-11-15 | 2014-05-21 | 昆达电脑科技(昆山)有限公司 | Computer system |
CN104536551A (en) * | 2014-11-18 | 2015-04-22 | 合肥联宝信息技术有限公司 | Method and device for clearing away information on complementary metal oxide semiconductor (CMOS) |
CN205987494U (en) * | 2016-08-12 | 2017-02-22 | 江苏昊泽瑞消防科技有限公司 | Emergency lighting lamp with singlechip control of charge and discharge |
CN108469891A (en) * | 2018-03-12 | 2018-08-31 | 厦门市美亚柏科信息股份有限公司 | Switching on and shutting down management method, terminal device and the storage medium of portable device |
CN108628724A (en) * | 2017-03-24 | 2018-10-09 | 中兴通讯股份有限公司 | A kind of method and terminal of display charge information |
CN209358657U (en) * | 2019-01-30 | 2019-09-06 | 南京百利通信息技术有限责任公司 | Audio-video law-enforcing recorder |
CN111290717A (en) * | 2020-03-13 | 2020-06-16 | 成都互诚在线科技有限公司 | Off-line data storage device based on Bluetooth communication |
-
2020
- 2020-07-03 CN CN202010637281.7A patent/CN111796991B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855064A (en) * | 2005-04-26 | 2006-11-01 | 佛山市顺德区顺达电脑厂有限公司 | Device and method for inspecting battery electric charge quantity of booknote computer with system light co-construction |
CN201699449U (en) * | 2010-06-04 | 2011-01-05 | 黄石东贝机电集团太阳能有限公司 | Portable multifunctional power supply |
CN103810080A (en) * | 2012-11-15 | 2014-05-21 | 昆达电脑科技(昆山)有限公司 | Computer system |
CN104536551A (en) * | 2014-11-18 | 2015-04-22 | 合肥联宝信息技术有限公司 | Method and device for clearing away information on complementary metal oxide semiconductor (CMOS) |
CN205987494U (en) * | 2016-08-12 | 2017-02-22 | 江苏昊泽瑞消防科技有限公司 | Emergency lighting lamp with singlechip control of charge and discharge |
CN108628724A (en) * | 2017-03-24 | 2018-10-09 | 中兴通讯股份有限公司 | A kind of method and terminal of display charge information |
CN108469891A (en) * | 2018-03-12 | 2018-08-31 | 厦门市美亚柏科信息股份有限公司 | Switching on and shutting down management method, terminal device and the storage medium of portable device |
CN209358657U (en) * | 2019-01-30 | 2019-09-06 | 南京百利通信息技术有限责任公司 | Audio-video law-enforcing recorder |
CN111290717A (en) * | 2020-03-13 | 2020-06-16 | 成都互诚在线科技有限公司 | Off-line data storage device based on Bluetooth communication |
Also Published As
Publication number | Publication date |
---|---|
CN111796991B (en) | 2024-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9846472B2 (en) | Firmware update method and power system thereof | |
CN104777888A (en) | Reduced energy consumption in a computer system through software and hardware coordinated control of multiple power supplies | |
US6597074B2 (en) | Backup power-source module, backup power-source apparatus, and computer | |
JP2004152304A (en) | System and method for holding state data of personal computer in standby state at ac power supply failure | |
CN104182243B (en) | Sleep state control system, computer system and sleep state detection method thereof | |
US8151124B2 (en) | Apparatus and method for forcibly shutting down system | |
CN112817643A (en) | Dual-BIOS measurement method, device and equipment for multi-path server | |
US20200210201A1 (en) | Information processing system and relay device | |
EP2924538B1 (en) | Computer system and method for its operation | |
CN100592257C (en) | System for loading starting procedure for mainboard startup through different interface and the method | |
JP5179454B2 (en) | Computer and power supply | |
CN111796991A (en) | System state indication method and device, computer equipment and readable storage medium | |
JP2019159987A (en) | Control device and control method | |
CN116820857A (en) | Memory chip protection system, method, equipment and medium | |
CN111176958A (en) | Information monitoring method, system and storage medium | |
US10459503B2 (en) | Electronic system, terminal device, and function expansion device | |
CN109947621B (en) | Server testing method and device | |
JP4731995B2 (en) | Electronic device apparatus and processing method thereof | |
CN113608604A (en) | Loongson processor-based computer power management system, method, medium, and device | |
CN108108273B (en) | Motherboard and computer system thereof | |
JP2005250943A (en) | External connection equipment and processor capable of being supplied with power via interface means | |
CN112285597A (en) | Short circuit detection method and device for display panel | |
CN218974815U (en) | Ultrasonic diagnosis system and shutdown control circuit thereof | |
KR20050112171A (en) | Method for storing data using battery in computer and apparatus thereof | |
CN102455955A (en) | Dual-processor boot-up 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |