[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111897395A - Electronic equipment timing method and electronic equipment - Google Patents

Electronic equipment timing method and electronic equipment Download PDF

Info

Publication number
CN111897395A
CN111897395A CN202010775264.XA CN202010775264A CN111897395A CN 111897395 A CN111897395 A CN 111897395A CN 202010775264 A CN202010775264 A CN 202010775264A CN 111897395 A CN111897395 A CN 111897395A
Authority
CN
China
Prior art keywords
mode
electronic device
timing
component
electric energy
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
CN202010775264.XA
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.)
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 CN202010775264.XA priority Critical patent/CN111897395A/en
Publication of CN111897395A publication Critical patent/CN111897395A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present disclosure provides a timing method of an electronic device, the electronic device including a power storage component and a second timing component, the power storage component having a first timing component disposed therein, the method including: in response to the electronic device entering an operating state, determining whether the power reserve component switches from the first mode to the second mode; under the condition that the electric energy storage component is switched from the first mode to the second mode, acquiring first time information from the first timing component, and determining the system time of the electronic equipment based on the first time information; under the condition that the electric energy storage component is not switched from the first mode to the second mode, acquiring second time information from the second timing component, and taking the second time information as the system time of the electronic equipment; when the electric energy storage component is in the second mode, the electric energy storage component can supply power to the external electronic device, and when the electric energy storage component is in the first mode, the electric energy storage component does not supply power to the external electronic device.

Description

Electronic equipment timing method and electronic equipment
Technical Field
The disclosure relates to a timing method of an electronic device and the electronic device.
Background
A Real-Time Clock (RTC) is an integrated circuit that provides an accurate Real-Time reference for electronic devices. For example, the RTC may be provided in the computer, and the RTC may provide accurate time for the working system of the computer.
It is understood that, in order to ensure that the RTC can provide accurate real-time information for the electronic device, the electronic device generally needs to provide enough power for the RTC at all times to maintain the RTC working properly. However, once the RTC is powered off, the electronic device cannot be provided with accurate time, which may result in the electronic device not operating normally.
Disclosure of Invention
One aspect of the present disclosure provides a timing method of an electronic device, the electronic device including a power reserve part and a second timing part, the power reserve part having a first timing part disposed therein, the method including: in response to the electronic device entering an operating state, determining whether the power reserve component switches from a first mode to a second mode; acquiring first time information from the first timing component when the power storage component is switched from the first mode to a second mode, and determining the system time of the electronic equipment based on the first time information; when the electric energy storage component is not switched from the first mode to the second mode, acquiring second time information from the second timing component, and taking the second time information as the system time of the electronic equipment; when the electric energy storage component is in the second mode, the electric energy storage component can supply power to an external electronic device, and when the electric energy storage component is in the first mode, the electric energy storage component does not supply power to the external electronic device.
Optionally, the electronic device further comprises: and a controller. The method further comprises the following steps: and responding to the fact that the electronic equipment meets a preset condition, the controller acquires the system time of the electronic equipment as system exit time, and controls the first timing part to start working.
Optionally, the preset condition includes: the electronic equipment enters a dormant state from a working state; the electronic equipment enters a closing state from a working state; the electric energy storage component enters the first mode from the second mode; or the remaining power of the power reserve component is below a preset threshold.
Optionally, the determining the system time of the electronic device based on the first time information includes: determining a system time of the electronic device based on the first time information and the system exit time.
Optionally, the method further comprises: in response to the electronic device entering an operational state, the first timing component ceases operation.
Optionally, the method further comprises: after first time information is acquired from the first timing means, a count value of the first timing means is set to an initial value.
Optionally, the method further comprises: in a case where the power reserve means is not switched from the first mode to the second mode, the count value of the first timing means is set to an initial value.
Another aspect of the present disclosure provides an electronic device including: the electric energy storage component is internally provided with a first timing component and a second timing component, and the second timing component is arranged outside the electric energy storage component; wherein in a case where the power reserve means is switched from the first mode to the second mode, the system time of the electronic device is provided by the first timing means, and in a case where the power reserve means is not switched from the first mode to the second mode, the system time of the electronic device is provided by the second timing means; when the electric energy storage component is in the second mode, the electric energy storage component can supply power to an external electronic device, and when the electric energy storage component is in the first mode, the electric energy storage component does not supply power to the external electronic device.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; a storage device to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario of a timing method of an electronic device according to an embodiment of the present disclosure;
FIG. 2A schematically illustrates a flow chart of a timing method of an electronic device according to an embodiment of the present disclosure;
FIG. 2B schematically illustrates a workflow diagram of a timing method of an electronic device according to an embodiment of the disclosure;
FIG. 3 schematically shows a block diagram of an electronic device according to an embodiment of the present disclosure; and
FIG. 4 schematically shows a block diagram of a computer system according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
The embodiment of the disclosure provides a timing method of an electronic device, wherein the electronic device comprises a power storage component and a second timing component, and a first timing component is arranged in the power storage component. The method comprises the following steps: the method comprises the steps that in response to the electronic equipment entering an operating state, whether the power storage component is switched from a first mode to a second mode or not is determined, in the case that the power storage component is switched from the first mode to the second mode, first time information is obtained from a first timing component, the system time of the electronic equipment is determined based on the first time information, and otherwise, second time information is obtained from a second timing component and is used as the system time of the electronic equipment. When the electric energy storage component is in the second mode, the electric energy storage component can supply power to the external electronic device, and when the electric energy storage component is in the first mode, the electric energy storage component does not supply power to the external electronic device.
Fig. 1 schematically illustrates an application scenario of a timing method of an electronic device according to an embodiment of the present disclosure.
It should be noted that fig. 1 is only an example of a scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the electronic device 100 may include a battery assembly 110, a real-time clock 120, and a controller 130. The battery pack 110 is provided with a counter 111.
According to the disclosed embodiment, the electronic device 100 may be various electronic devices having a battery assembly 110, including but not limited to smart phones, tablet computers, laptop portable computers, notebook computers, and the like.
In the disclosed embodiment, the battery assembly 110 may be used to store power, and the electronic device may be powered by the stored power. For example, the battery assembly 110 may be a battery module in a notebook computer, and may provide electric energy to the notebook computer to maintain the normal operation of the notebook computer when the notebook computer is not connected to an external power source.
According to an embodiment of the present disclosure, the battery assembly 110 may have, for example, a battery chip, and the battery chip may include functional components such as a register and/or a counter. For example, the battery assembly 110 may be internally provided with a counter 111.
In the disclosed embodiment, the real-time clock 120 may be, for example, an integrated circuit that provides an accurate real-time reference for the electronic device. The battery assembly 110 may provide power to the real-time clock 120 so that the real-time clock 120 may operate normally, thereby providing accurate time information for the electronic device. For example, when the electronic device is in a power-off state, the battery assembly 110 may provide power to the real-time clock 120, so that when the electronic device is powered on again, the real-time clock 120 may feed back accurate time to the electronic device to facilitate normal operation of the electronic device.
According to the embodiment of the present disclosure, the controller 130 may be, for example, an Embedded Controller (EC) in a notebook computer. The battery assembly 110 may provide power to the controller 130 so that the controller 130 may operate normally. For example, the battery assembly 110 may provide power to the controller 130 when the electronic device is in a power-off state, so that the controller 130 can respond to a power-on request of a user, and the like.
It can be understood that, in order to ensure that the RTC can provide accurate real-time information for the electronic device, the RTC needs to be always powered on, and once the RTC is powered off, the RTC cannot continue to provide accurate time for the electronic device.
However, when the power stored in the battery pack is insufficient or the D-FET switch of the battery pack is turned off, the RTC cannot be continuously supplied with power. After the electronic device is powered on again, the RTC cannot directly provide accurate time information for the electronic device, which may cause some functions of the electronic device to fail to operate normally due to inaccurate system time.
In view of this, the present disclosure provides a timing method for an electronic device, which can implement a timing function through a counter 111 in a battery assembly 110, and even when a D-FET switch of the battery assembly is turned off, the battery assembly can still supply power to internal components thereof, so as to ensure that accurate time information can be provided for the electronic device, and thus, normal operation of the electronic device is ensured. For example, in response to the electronic device entering the working state, it is first determined whether the battery assembly is switched from the first mode to the second mode, so that it can be determined whether the real-time clock RTC is powered off. In the case that the battery assembly is switched from the first mode to the second mode, the RTC may be considered to be powered off, the first time information may be obtained from the counter 111, and the system time of the electronic device may be determined based on the first time information. Otherwise, the RTC may be considered to be not powered off and always work normally, and the second time information may be obtained from the real-time clock 120, and the second time information is used as the system time of the electronic device. When the battery assembly 110 is in the second mode, it can supply power to the external electronic device, for example, the RTC can be powered to maintain the RTC working normally. When the battery assembly 110 is in the first mode, no power is supplied to the external electronic device, for example, no power is supplied to the RTC, and only power is supplied to its internal components (for example, the counter 111).
Fig. 2A schematically shows a flow chart of a timing method of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 2A, the method includes operations S201 to S203.
In operation S201, in response to the electronic device entering an operating state, it is determined whether the power reserve unit is switched from the first mode to the second mode.
According to the embodiment of the present disclosure, the electronic device may include a power storage component, and the power storage component may be configured to store power, and may supply power to the electronic device through the stored power. The power storage unit may be provided with a first timing unit, and the first timing unit may be a functional element such as a register or a counter.
In an embodiment of the present disclosure, the electronic device may further include a second timing component. The second timing means may be, for example, a real time clock RTC. The second timing component may be, for example, an external electronic device of the power storage component, and the power storage component may provide power for the RTC, so that the RTC can operate normally, thereby providing accurate time information for the electronic device.
In an embodiment of the present disclosure, when the power reserve component is in the first mode, the power reserve component does not supply power to the external electronic device. For example, the first mode may be a transportation mode of the electrical energy storage component. The first mode of the power reserve component may be a mode in which the D-FET switch of the power reserve component is off, and at this time, the power reserve component only supplies power to its internal electronic device, but does not want to supply power to the external electronic device. For example, when the D-FET switch of the power reserve unit is in the off state, the power reserve unit supplies power only to the first timing unit, and does not supply power to the second timing unit.
In another embodiment of the present disclosure, when the power storage component is in the second mode, the power storage component can supply power to the external electronic device. For example, the second mode may be a normal mode of the power reserve component. The second mode of the power reserve component may be when the D-FET switch of the power reserve component is in an open state, at which time the power reserve component may supply power to its internal electronics and external electronics. For example, the power reserve component may provide power to the first timing component and the second timing component when the D-FET switch of the power reserve component is in an open state.
According to the embodiment of the disclosure, in response to the electronic device entering the working state, it may be determined whether the power storage component is switched from the first mode to the second mode, so that it may be determined whether the RTC is powered all the time and whether accurate time information is recorded. For example, in response to the electronic device being turned on, it is determined whether a D-FET switch of the power storage component is switched from an off state to an on state, and if so, it indicates that the power storage component has entered a transportation mode, in this process, the power storage component cannot provide power for the RTC, and the RTC cannot operate normally, otherwise, it indicates that the power storage component has not entered the transportation mode, in this process, the power storage component may always provide power for the RTC, and the RTC may operate normally.
In operation S202, in a case where the power reserve part is switched from the first mode to the second mode, first time information is acquired from the first timing part, and a system time of the electronic device is determined based on the first time information.
According to the embodiment of the disclosure, when the power storage component is switched from the first mode to the second mode, the electronic device may be considered to enter the transportation mode, and in the process, the power storage component cannot provide power for the RTC and only can provide power for the first timing component inside the power storage component. Therefore, when the electronic device is powered on again, the RTC cannot provide accurate time information, and at this time, the first time information can be acquired from the first timing component, and the system time of the electronic device can be determined based on the first time information.
In the disclosed embodiment, the electronic device may further include a controller, for example, an embedded controller EC. The EC may acquire, in response to the electronic device satisfying a preset condition, system time of the electronic device as system exit time, and control the first timing unit to start operating. For example, in response to the electronic device entering the sleep state from the operating state, the EC may acquire the current time of the system as the system exit time and control the first timing unit to start operating. Alternatively, in response to the electronic device entering a shutdown state (e.g., shutdown) from the operating state, the EC may acquire the current time of the system as a system exit time, and control the first timing unit to start operating. Still alternatively, the EC may further acquire the current time of the system as the system exit time and control the first timing component to start operating in response to the electric energy storage component entering the first mode from the second mode (for example, directly controlling the electronic device to enter the transportation mode from the operating mode). Still alternatively, the EC may further acquire the current time of the system as a system exit time and control the first timing unit to start operating in response to the remaining power of the power reserve unit being lower than a preset threshold (e.g., 3%). It can be understood that the time of the EC recording system and the time of controlling the first timing component to start working are not limited in the embodiments of the present disclosure, and those skilled in the art can set the time according to actual situations.
According to the embodiment of the disclosure, the EC may record the acquired system exit time in the ROM of the electronic device for storage.
According to the embodiment of the present disclosure, the EC may control the first timing part to start operating, for example, to start counting from an initial value.
In the disclosed embodiment, the EC may acquire the first time information from the first timing unit and the stored system exit time from the ROM in response to the electronic device entering an operating state (e.g., power on), and determine the system time of the current time of the electronic device based on the first time information and the system exit time. For example, the count value in the first timing component may be converted into a time difference value, the time difference value is added to the system exit time to obtain the current time of the system, and the current time is returned to the system, so that the electronic device obtains relatively accurate time information to maintain the normal operation of the electronic device.
In an embodiment of the present disclosure, the first timing unit may stop operating in response to the electronic device entering the operating state, and the EC may obtain the count value from the first timing unit. Thereby ensuring the accuracy of time and saving electric energy.
In another embodiment of the present disclosure, after the EC acquires the first time information from the first timing component, the first timing component may be controlled to stop timing, so that the accuracy of time may be ensured, and electric energy may be saved.
According to the embodiment of the present disclosure, the count value of the first timing section may be set to an initial value after the EC acquires the first time information from the first timing section. Alternatively, the count value of the first timing section may be set to the initial value in the case where the power reserve section is not switched from the first mode to the second mode. The embodiment of the present disclosure may set the count value of the first timing section to an initial value after determining that the count value of the first timing section has been acquired or after determining that the count value of the first timing section does not need to be used, so that the EC may control the first timing section to start timing from the initial value in response to the electronic apparatus satisfying the preset condition the next time.
In operation S203, in a case where the power storage unit is not switched from the first mode to the second mode, second time information is acquired from the second timing unit, and the second time information is used as a system time of the electronic device.
According to the embodiment of the disclosure, when the power reserve component is not switched from the first mode to the second mode, it can be considered that the electronic device has not entered the transportation mode, and in the process, the power reserve component can provide power for the RTC, and the RTC can maintain normal operation. Therefore, when the electronic device is powered on again, the RTC can provide accurate time information for the system, and at this time, the second time information recorded by the RTC can be used as the system time of the electronic device.
The embodiment of the disclosure can provide relatively accurate system time for the electronic device through the first timing component in the electric energy storage component, thereby avoiding the problem that the normal operation of the electronic device is influenced due to inaccurate system time caused by the RTC power-off. In addition, a button battery does not need to be configured for the RTC to maintain the work of the RTC, the most electric energy does not need to be reserved for the RTC in an electric energy storage component, and the cost can be reduced.
Fig. 2B schematically illustrates a workflow diagram of a timing method of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 2B, according to the embodiment of the disclosure, the workflow in the dashed box 210 may be executed by a battery chip in the battery assembly, for example, and the workflow may correspond to a timing method when the electronic device enters a transportation mode at the time of factory shipment.
Specifically, the battery chip may detect whether the initial power-on time is 0 and whether the battery assembly is in the transportation mode, for example, every 1 s. If the initial power-on time is 0 and the battery assembly is in the transportation mode, the counter in the battery assembly is kept running (e.g., every 1s by 1 unit value). When it is detected that the initial startup time is not 0, it may indicate that the user has taken the electronic device from the factory and performed the first startup process, and at this time, the counter in the battery pack may be controlled to stop working, so that the EC may read the count value from the counter and set the counter to an initial value.
According to the embodiment of the present disclosure, the workflow in the dashed box 240 may be executed by the EC of the electronic device, for example, and the workflow may correspond to a timing method when the electronic device leaves a factory.
Specifically, when the electronic device leaves the factory, the instruction to enter the transportation mode may be executed, and then the EC may record the current system time a of the electronic device in the ROM and control the counter in the battery pack to start operating. When a user takes the electronic device and performs a first boot operation, it may be detected that the initial boot time is not 0, and then the EC may read the count value B from the counter, perform a recovery time algorithm (which may be used to convert a value in the counter into a time difference value, for example) to obtain a current time (a + B), and feed the current time back to the BIOS of the electronic device. The BIOS may update the time information into the RTC.
According to an embodiment of the present disclosure, the workflow in the dashed box 220 may be performed by, for example, a battery chip in the battery assembly, and the workflow may correspond to, for example, a timing method when the electronic device enters a transportation mode during use.
Specifically, in the using process of the user, the counter in the battery pack may start timing work in response to the shutdown of the electronic device; and stopping working in response to the starting of the electronic equipment. The battery chip can judge whether the battery assembly exits from the transportation mode, if so, the transportation position alarms to indicate that the electronic equipment exits from the transportation mode, otherwise, the counting value in the counter is emptied, and the alarm is reset.
According to an embodiment of the present disclosure, the workflow in the dashed box 230 may be performed by, for example, an EC of the electronic device, and the workflow may correspond to, for example, a timing method when the electronic device enters a transportation mode during use.
Specifically, during the use of the user, when the shutdown of the electronic device is detected, the EC sends a timing start instruction to the battery pack to start counting by a counter in the battery pack. Detecting that the electronic device is powered on, the EC determines whether the transport bit is alarming, and if the alarming indicates that the battery pack exits from the transport mode, the EC may read the count value from the counter and set the counter to an initial value. The EC may also execute a recovery time algorithm (which may be used, for example, to convert the value in the counter to a time difference value) to obtain the current time (a + B), and feed the time back to the BIOS of the electronic device. The BIOS may update the time information into the RTC.
The embodiment of the disclosure can provide relatively accurate system time for the electronic device through the counter in the battery pack, thereby avoiding the problem that the normal operation of the electronic device is influenced due to the fact that the RTC is powered off when the battery pack enters the transportation mode. In addition, a button battery does not need to be configured for the RTC to maintain the work of the RTC, the most electric energy does not need to be reserved for the RTC in an electric energy storage component, and the cost can be reduced.
Fig. 3 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
As shown in fig. 3, electronic device 300 may include a power reserve unit 310 and a second timing unit 320.
The power reserve unit 310 is provided therein with a first timing unit.
The second timing part 320 is disposed outside the power reserve part 310.
In the case where power reserve unit 310 is switched from the first mode to the second mode, the system time of the electronic device is provided by the first timing unit, and in the case where the power reserve unit is not switched from the first mode to the second mode, the system time of the electronic device is provided by the second timing unit. When the electric energy storage component is in the second mode, the electric energy storage component can supply power to the external electronic device, and when the electric energy storage component is in the first mode, the electric energy storage component does not supply power to the external electronic device.
According to an embodiment of the present disclosure, the electronic device 300 further includes a controller 330. The controller 330 is configured to, in response to the electronic device 300 meeting a preset condition, acquire a system time of the electronic device as a system exit time, and control the first timing component to start operating.
According to an embodiment of the present disclosure, the preset condition may include: the electronic equipment enters a dormant state from a working state, or the electronic equipment enters a closed state from the working state, or the electric energy storage component enters a first mode from a second mode, or the residual electric energy of the electric energy storage component is lower than a preset threshold value.
According to an embodiment of the present disclosure, the controller 330 may be further configured to determine a system time of the electronic device based on the first time information. For example, a system time of the electronic device is determined based on the first time information and the system exit time.
According to the embodiment of the present disclosure, the controller 330 is further configured to control the first timing component to stop operating in response to the electronic device entering the operating state.
According to the embodiment of the present disclosure, the controller 330 is further configured to set the count value of the first timing unit to an initial value after acquiring the first time information from the first timing unit.
According to the embodiment of the present disclosure, the controller 330 is further configured to set the count value of the first timing unit to an initial value if the power storage unit is not switched from the first mode to the second mode.
The embodiment of the disclosure can provide relatively accurate system time for the electronic device through the first timing component in the electric energy storage component, thereby avoiding the problem that the normal operation of the electronic device is influenced due to inaccurate system time caused by the RTC power-off. In addition, a button battery does not need to be configured for the RTC to maintain the work of the RTC, the most electric energy does not need to be reserved for the RTC in an electric energy storage component, and the cost can be reduced.
FIG. 4 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 4 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 4, computer system 400 includes a processor 410, a computer-readable storage medium 420. The computer system 400 may perform a method according to an embodiment of the disclosure.
In particular, processor 410 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 410 may also include onboard memory for caching purposes. Processor 510 may be a single processing unit or a plurality of processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage medium 420, for example, may be a non-volatile computer-readable storage medium, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 420 may comprise a computer program 421, which computer program 421 may comprise code/computer-executable instructions that, when executed by the processor 410, cause the processor 410 to perform a method according to an embodiment of the disclosure, or any variant thereof.
The computer program 421 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 421 may include one or more program modules, including for example 421A, modules 421B, … …. It should be noted that the division and number of the modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, so that the processor 410 may execute the method according to the embodiment of the present disclosure or any variation thereof when the program modules are executed by the processor 410.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. A timing method of an electronic device, the electronic device including a power reserve component and a second timing component, the power reserve component having a first timing component disposed therein, the method comprising:
in response to the electronic device entering an operating state, determining whether the power reserve component switches from a first mode to a second mode;
acquiring first time information from the first timing component when the power storage component is switched from the first mode to a second mode, and determining the system time of the electronic equipment based on the first time information;
when the electric energy storage component is not switched from the first mode to the second mode, acquiring second time information from the second timing component, and taking the second time information as the system time of the electronic equipment;
when the electric energy storage component is in the second mode, the electric energy storage component can supply power to an external electronic device, and when the electric energy storage component is in the first mode, the electric energy storage component does not supply power to the external electronic device.
2. The method of claim 1, wherein:
the electronic device further includes: a controller;
the method further comprises the following steps:
and responding to the fact that the electronic equipment meets a preset condition, the controller acquires the system time of the electronic equipment as system exit time, and controls the first timing part to start working.
3. The method of claim 2, wherein the preset conditions include:
the electronic equipment enters a dormant state from a working state;
the electronic equipment enters a closing state from a working state;
the electric energy storage component enters the first mode from the second mode; or
The remaining power of the power reserve component is below a preset threshold.
4. The method of claim 2, wherein the determining the system time of the electronic device based on the first time information comprises:
determining a system time of the electronic device based on the first time information and the system exit time.
5. The method of claim 1, further comprising:
in response to the electronic device entering an operational state, the first timing component ceases operation.
6. The method of claim 1, further comprising:
after first time information is acquired from the first timing means, a count value of the first timing means is set to an initial value.
7. The method of claim 1, further comprising:
in a case where the power reserve means is not switched from the first mode to the second mode, the count value of the first timing means is set to an initial value.
8. An electronic device, comprising:
the electric energy storage component is provided with a first timing component; and
a second timing section disposed outside the electric energy storage section;
wherein in a case where the power reserve means is switched from the first mode to the second mode, the system time of the electronic device is provided by the first timing means, and in a case where the power reserve means is not switched from the first mode to the second mode, the system time of the electronic device is provided by the second timing means;
when the electric energy storage component is in the second mode, the electric energy storage component can supply power to an external electronic device, and when the electric energy storage component is in the first mode, the electric energy storage component does not supply power to the external electronic device.
9. A computer system, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
10. A computer readable medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
CN202010775264.XA 2020-08-04 2020-08-04 Electronic equipment timing method and electronic equipment Pending CN111897395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010775264.XA CN111897395A (en) 2020-08-04 2020-08-04 Electronic equipment timing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010775264.XA CN111897395A (en) 2020-08-04 2020-08-04 Electronic equipment timing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111897395A true CN111897395A (en) 2020-11-06

Family

ID=73245530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010775264.XA Pending CN111897395A (en) 2020-08-04 2020-08-04 Electronic equipment timing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111897395A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367355A (en) * 2020-05-12 2020-07-03 合肥联宝信息技术有限公司 Time recovery method and device for electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367355A (en) * 2020-05-12 2020-07-03 合肥联宝信息技术有限公司 Time recovery method and device for electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367355A (en) * 2020-05-12 2020-07-03 合肥联宝信息技术有限公司 Time recovery method and device for electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367355A (en) * 2020-05-12 2020-07-03 合肥联宝信息技术有限公司 Time recovery method and device for electronic equipment
CN111367355B (en) * 2020-05-12 2024-06-14 合肥联宝信息技术有限公司 Time recovery method and device for electronic equipment

Similar Documents

Publication Publication Date Title
US9069551B2 (en) Systems and methods of exiting hibernation in response to a triggering event
JP6018113B2 (en) Method, computer and host device for preventing data loss of nonvolatile memory
US20100095143A1 (en) Information processing apparatus, activation method, and program
US20090066529A1 (en) Remaining battery level management system and method of controlling the same
US9092150B2 (en) Systems and methods of performing a data save operation
US8914594B2 (en) Systems and methods of loading data from a non-volatile memory to a volatile memory
US10891062B2 (en) Managing host communication with a regulator in a low power mode
US8479049B2 (en) Electronic device and method for detecting power failure type
US9389667B2 (en) Shortening resume time from a power-saving state
US20120047401A1 (en) Test device and test method for testing computing device
KR20060103883A (en) Nonvolatile storage apparatus
US20120096255A1 (en) Server and method for managing i2c bus of the server
US8898521B2 (en) Method and apparatus for booting an image reproduction apparatus
US20140372737A1 (en) Electronic device and method for automatically waking up operating system of electronic device
US20130204562A1 (en) Electronic device and method for detecting voltage of the electronic device
US10872018B2 (en) Memory data preservation solution
US20120165991A1 (en) System and method for controlling humidity of a server
EP2100221A1 (en) Hide boot
US8886974B2 (en) Controller
US8788238B2 (en) System and method for testing power supplies of server
CN111897395A (en) Electronic equipment timing method and electronic equipment
US20120233451A1 (en) Method for fast resuming computer system and computer system
US7877631B2 (en) Detection of system battery errors
JP2008159003A (en) Information processor
US9632795B2 (en) Electronic device and method for monitoring battery module of the same

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201106

RJ01 Rejection of invention patent application after publication