CN112180257A - RTC battery detection method and device, electronic equipment and storage medium - Google Patents

RTC battery detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112180257A
CN112180257A CN202010901684.8A CN202010901684A CN112180257A CN 112180257 A CN112180257 A CN 112180257A CN 202010901684 A CN202010901684 A CN 202010901684A CN 112180257 A CN112180257 A CN 112180257A
Authority
CN
China
Prior art keywords
rtc
rtc battery
detected
time point
battery
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.)
Withdrawn
Application number
CN202010901684.8A
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010901684.8A priority Critical patent/CN112180257A/en
Publication of CN112180257A publication Critical patent/CN112180257A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/364Battery terminal connectors with integrated measuring arrangements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables

Landscapes

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

Abstract

The invention provides an RTC battery detection method, an RTC battery detection device, electronic equipment and a storage medium. The method comprises the following steps: acquiring the capacity of an RTC battery in the equipment to be detected and the consumption current of the RTC; acquiring a failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC; and acquiring the electric quantity detection result of the RTC battery according to the failure time point. Therefore, the beneficial effects that under the condition that the circuit power consumption of the RTC is not additionally increased, the electric quantity service condition of the RTC battery is early warned, and a user is prompted to replace the RTC battery in time are achieved.

Description

RTC battery detection method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of terminal equipment, in particular to a RTC battery detection method and device, electronic equipment and a storage medium.
Background
A Real-time clock (RTC) is a functional circuit on a terminal circuit board, and is used to provide accurate time when the terminal is turned off. Once the time is lost due to the failure of the RTC battery, the user cannot determine the correct time, and some time-related applications become abnormal or lose meaning. The current common method is to automatically time through a network system, but problems still occur in some devices which are not always connected with the network.
In the related technical scheme, the detection circuit can be introduced into the terminal circuit board to detect the electric quantity of the RTC battery in real time, but the detection electric quantity also needs to consume the electric quantity, so that the consumed current of the RTC is increased, and the effective service time of the RTC battery is influenced.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for detecting an RTC battery, an electronic device, and a storage medium, so as to solve the problem that an increase in current consumption of the RTC battery affects effective use time of the RTC battery in the related art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an RTC battery detection method, including:
acquiring the capacity of an RTC battery in the equipment to be detected and the consumption current of the RTC;
acquiring a failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC;
and according to the failure time point, carrying out electric quantity detection reminding on the RTC battery.
Optionally, the step of obtaining a failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC includes:
acquiring the theoretical working time of the RTC battery according to the capacity of the RTC battery and the consumed current of the RTC battery;
acquiring a power supply mode of the RTC when the equipment to be detected is in a starting state;
and acquiring the failure time point of the RTC battery according to the theoretical working duration and the power supply mode of the RTC.
Optionally, the step of acquiring a failure time point of the RTC battery according to the theoretical operating time and the power supply mode of the RTC includes:
responding to the power supply mode that the RTC battery is not used for supplying power, and acquiring a failure time point of the RTC battery according to the theoretical working time of the RTC battery and the first time of the equipment to be detected in a starting state;
and responding to the power supply mode that the RTC battery supplies power, and acquiring the failure time point of the RTC battery according to the theoretical working time of the RTC battery.
Optionally, the step of performing power detection reminding on the RTC battery according to the failure time point includes:
in a first preset time period before the failure time point, when the equipment to be detected is in a starting state, carrying out electric quantity early warning on the RTC battery;
after the second preset time period of the failure time point, confirming that the electric quantity of the RTC battery is exhausted, and when the device to be detected is in a starting state, carrying out invalid reminding on the RTC battery.
Optionally, the method further comprises:
when the equipment to be detected is not networked and is in a starting state, acquiring the system time of the equipment to be detected;
and responding to the fact that the system time is earlier than the production time of the device to be detected and the difference value between the system time and the production time is larger than a preset time difference, confirming that the electric quantity of the RTC battery is exhausted, and performing invalid reminding aiming at the RTC battery.
In a second aspect, an embodiment of the present invention provides an RTC battery detection apparatus, including:
the parameter acquisition module is used for acquiring the capacity of an RTC battery in the equipment to be detected and the consumption current of the RTC;
the failure time point acquisition module is used for acquiring a failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC;
and the electric quantity detection reminding module is used for carrying out electric quantity detection reminding aiming at the RTC battery according to the failure time point.
Optionally, the failure time point obtaining module includes:
the theoretical working duration obtaining submodule is used for obtaining the theoretical working duration of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC battery;
the power supply mode acquisition sub-module is used for acquiring the power supply mode of the RTC when the equipment to be detected is in a starting state;
and the failure time point acquisition submodule is used for acquiring the failure time point of the RTC battery according to the theoretical working duration and the power supply mode of the RTC.
Optionally, the failure time point obtaining sub-module is specifically configured to:
responding to the power supply mode that the RTC battery is not used for supplying power, and acquiring a failure time point of the RTC battery according to the theoretical working time of the RTC battery and the first time of the equipment to be detected in a starting state;
and responding to the power supply mode that the RTC battery supplies power, and acquiring the failure time point of the RTC battery according to the theoretical working time of the RTC battery.
Optionally, the power detection reminding module includes:
the electric quantity early warning submodule is used for carrying out electric quantity early warning on the RTC battery when the equipment to be detected is in a starting state in a first preset time period before the failure time point;
and the invalid reminding submodule is used for confirming that the electric quantity of the RTC battery is exhausted after a second preset time period of the failure time point, and carrying out invalid reminding on the RTC battery when the device to be detected is in a starting state.
Optionally, the apparatus further comprises:
the system time acquisition module is used for acquiring the system time of the equipment to be detected when the equipment to be detected is not networked and is in a starting state;
and the invalid reminding module is used for responding to the condition that the system time is earlier than the production time of the equipment to be detected and the difference value between the system time and the production time is greater than a preset time difference, confirming that the electric quantity of the RTC battery is exhausted and carrying out invalid reminding aiming at the RTC battery.
In a third aspect, an embodiment of the present invention additionally provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the RTC battery detection method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the RTC battery detection method according to the first aspect.
In the embodiment of the invention, the failure time point of the RTC battery is estimated by acquiring the capacity of the RTC battery in the device to be detected and the consumption current of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC battery, and then the electric quantity detection reminding is carried out on the RTC battery according to the failure time point. Therefore, under the condition that the circuit power consumption of the RTC is not additionally increased, the electric quantity service condition of the RTC battery is early warned, and a user is prompted to replace the RTC battery in time.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of a RTC battery detection method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another RTC battery detection method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an RTC battery detection apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another RTC battery detection apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, a flowchart illustrating steps of a RTC battery detection method according to an embodiment of the present invention is shown.
And step 110, acquiring the capacity of an RTC battery in the device to be detected and the consumption current of the RTC.
And step 120, acquiring a failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC.
And step 130, performing electric quantity detection reminding on the RTC battery according to the failure time point.
In practical application, the time of RTC failure can be calculated theoretically, relatively accurate working time can be calculated by using the capacity of the RTC battery and the RTC consumption current, and then the time of corresponding RTC battery failure, namely the failure time point of the RTC battery, can be calculated from the start of putting the RTC battery into use in the equipment to be detected. And then can remind the user to change the RTC battery in time according to this point of failure time, can avoid the information related to RTC time to become invalid.
Specifically, the capacity of an RTC battery in the device to be tested and the consumption current of the RTC can be obtained, and then the failure time point of the RTC battery is obtained according to the capacity of the RTC battery and the consumption current of the RTC. In the embodiment of the present invention, the capacity of the RTC battery and the consumption current of the RTC may be obtained by any available method, which is not limited in the embodiment of the present invention.
For example, when the device to be detected is shipped from a factory, the capacity of the RTC battery placed therein may be acquired, and the consumption current of the RTC therein may be acquired in advance by a device such as a multimeter.
Moreover, in the embodiment of the present invention, when the RTC battery is subjected to power detection reminding according to the failure time point, the power detection reminding mode may be set by user according to a requirement, which is not limited in the embodiment of the present invention. For example, the power detection reminding can be performed in any available mode such as voice or pop-up window. Moreover, the power detection reminding can be started in a preset time period before the failure time point, the power detection reminding can be performed when the device to be detected is started for the first time in the preset time period before the failure time point, or the power detection reminding can be performed when the device to be detected is started each time in the preset time period before the failure time point until the RTC battery is replaced, and then the step 110 and the step 130 are performed again. The specific time and mode for performing the electric quantity detection reminding can be set by user according to requirements, and the embodiment of the invention is not limited.
In the embodiment of the invention, the failure time point of the RTC battery is estimated by acquiring the capacity of the RTC battery in the device to be detected and the consumption current of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC battery, and then the electric quantity detection reminding is carried out on the RTC battery according to the failure time point. Therefore, under the condition that the circuit power consumption of the RTC is not additionally increased, the electric quantity service condition of the RTC battery is early warned, and a user is prompted to replace the RTC battery in time.
Referring to fig. 2, in another embodiment, the step 120 may further include:
step 121, obtaining a theoretical working duration of the RTC battery according to the capacity of the RTC battery and the consumed current of the RTC battery;
step 122, acquiring a power supply mode of the RTC when the device to be detected is in a starting state;
and 123, acquiring a failure time point of the RTC battery according to the theoretical working time and the power supply mode of the RTC.
In the embodiment of the invention, under the condition that the capacity of the RTC battery in the device to be detected and the consumption current of the RTC are known, the theoretical working time of the RTC battery can be calculated. For example, assuming that the capacity of the RTC battery is known, for example, 200mAh (milliamp hour), the RTC consumption current can be measured, for example, 20uA (microamp), and the theoretical operating time of the RTC battery can be 200 × 1000/20 — 10000h (hour).
In addition, in practical application, part of the equipment to be detected may not consume the RTC battery after being started, that is, when the equipment to be detected is in a starting state, the RTC therein may be powered by the power supply of the equipment to be detected, and is not powered by the RTC battery, so that when the failure time point of the RTC battery in the equipment to be detected is pushed, in order to improve the accuracy of the effective time point, the time that the equipment to be detected is in the starting state every day may be combined; correspondingly, when part of the equipment to be detected is in the starting state, the RTC is still powered by the RTC battery, and at this time, the equipment to be detected does not need to be combined with the time when the equipment to be detected is in the starting state every day.
Therefore, in the embodiment of the present invention, in order to improve the accuracy of the failure time point, the power supply mode of the RTC in the device to be detected when the device to be detected is in the startup state may be obtained, and in the embodiment of the present invention, the power supply mode of the RTC in the device to be detected when the device to be detected is in the startup state may be obtained in any available mode, which is not limited in the embodiment of the present invention. For example, generally, when the device to be detected is shipped, the power supply mode of the RTC therein may be set, or when the power supply mode of the RTC is adjusted in a later use process, the current power supply mode may be determined according to a specific adjustment operation, and so on.
After the power supply mode of the RTC is obtained, whether the equipment to be detected needs to be combined with the time of the starting state of the equipment to be detected every day can be determined according to the power supply mode of the RTC, and then the failure time point of the RTC battery is obtained according to the theoretical working time of the RTC battery.
Optionally, in another embodiment, the step 123 may further include:
step 1231, in response to that the power supply mode is not supplied by the RTC battery, acquiring a failure time point of the RTC battery according to the theoretical working time of the RTC battery and the first time of the equipment to be detected in a starting state;
and 1232, responding to the power supply mode that the RTC battery supplies power, and acquiring the failure time point of the RTC battery according to the theoretical working time of the RTC battery.
As described above, in practical applications, if the device to be tested is in the starting state, the RTC is powered by the power supply of the device to be tested, that is, the RTC battery is not powered, when the device to be tested is in the starting state, the electric quantity in the RTC battery can be saved, and the failure time point of the RTC battery can be relatively delayed. Or, the sum of the theoretical operating time and the current first time may be delayed backwards from the time when the device to be detected is put into use, and the obtained time point is the failure time point of the RTC battery.
In addition, in practical application, the time that the device to be detected is in the starting state is not necessarily fixed, so in the embodiment of the present invention, in the use process of the device to be detected, the time that the device to be detected is in the starting state each time can be counted and summed to obtain the current first time length, and after the device to be detected is started each time, the first time length can be updated again, so as to re-determine the failure time point of the RTC battery until, for the current RTC battery, the time that the device to be detected is in the non-starting state, that is, the time that the RTC is completely powered by the RTC battery reaches the theoretical working time length of the RTC battery, and then the final failure time point of the RTC battery is obtained.
And if the device to be detected is in the starting state, the RTC is powered by the RTC battery, that is, in the running process of the RTC, the RTC battery is required to supply power to the RTC no matter the device to be detected is in the starting state or the shutdown state, so that the failure time point of the RTC battery cannot be delayed. Therefore, the failure time point of the RTC battery can be directly obtained according to the theoretical working time of the RTC battery. For example, the timing may be started from the time when the device to be detected is put into use until the timing time reaches the theoretical working time, that is, the current failure time point of the RTC battery. Or the time point of delaying the theoretical working time backwards from the time when the equipment to be detected is put into use, namely the failure time point of the RTC battery, and the like.
Referring to fig. 2, in another embodiment, the step 130 may further include:
131, in a first preset time period before the failure time point, when the device to be detected is in a starting state, performing electric quantity early warning on the RTC battery;
and 132, after a second preset time period of the failure time point, confirming that the electric quantity of the RTC battery is exhausted, and performing invalid reminding aiming at the RTC battery when the device to be detected is in a starting state.
In practical application, in order to avoid the RTC battery from being exhausted to affect the accuracy of the time-related information in the device to be detected as much as possible, especially for the device to be detected which is not networked, the time-related information cannot be updated through the network. Therefore, in the embodiment of the present invention, in order to prompt the user to take timely measures, such as replacing an RTC battery, etc., when the device to be detected is in a start state in a first preset time period before the failure time point, an electric quantity early warning may be performed on the RTC battery in advance to prompt the user to replace the battery before the electric quantity of the RTC battery is exhausted, so as to avoid affecting time-related information in the device to be detected. The first preset time period may be set by a user according to a requirement, and the embodiment of the present invention is not limited. For example, the first preset time period may be set to be within 100h before the failure time point, and so on. The specific content, specific mode and the like of the electric quantity early warning can be set by self according to the requirements, and the embodiment of the invention is not limited.
In addition, in the embodiment of the present invention, generally, the electric quantity pre-warning may be performed only when the device to be detected is in the start state, and certainly, the electric quantity pre-warning may also be performed when the device to be detected is not in the start state according to a special requirement, which is not limited in the embodiment of the present invention.
In addition, after the failure time point is reached, if the RTC battery is not replaced all the time, the accuracy of time-related data in the device to be detected may be affected, and at this time, in order to avoid that a user cannot confirm a cause of an error or spend a lot of time to confirm a cause of the error, an invalid prompt may be performed on the RTC battery when the device to be detected is in a starting state, and the user is timely notified of the cause of the error in the current time-related data, so as to prompt the user to take measures in time, such as replacing the RTC battery or connecting a network, and the like.
The second preset time period may be set by a user according to a requirement, and the embodiment of the present invention is not limited. For example, the second preset time period may be set to 1h, 0h, and so on. The specific content, specific mode, and the like of the invalid reminder can also be set by user according to requirements, and the embodiment of the present invention is not limited.
In addition, in the embodiment of the present invention, when performing the invalid early warning, when the device to be detected is started for the first N times after the electric quantity of the RTC battery is determined to be exhausted, or when performing the invalid reminding for the RTC battery, N is a positive integer, and a specific value of N may be set by user according to a requirement, which is not limited in the embodiment of the present invention. For example, N may be set to 1, and so on.
Referring to fig. 2, in another embodiment, the method may further include:
step 140, when the equipment to be detected is not networked and is in a starting state, acquiring the system time of the equipment to be detected;
and 150, in response to that the system time is earlier than the production time of the device to be detected and the difference between the system time and the production time is greater than a preset time difference, confirming that the electric quantity of the RTC battery is exhausted, and performing invalid reminding on the RTC battery.
In practical application, in the case that the device to be detected is not networked, once the RTC battery fails, the system time in the device to be detected is recovered to a certain fixed time in the early stage, for example, 3 months and 1 day 1997, and cannot be corrected in time through networking. Therefore, in the embodiment of the invention, whether the RTC battery has failed or not can be judged by judging whether the system time of the device to be detected is obviously earlier than a certain moment or not.
Specifically, the system time of the equipment to be detected can be acquired when the equipment to be detected is not networked and is in a starting state; and then under the condition that the system time is earlier than the production time of the device to be detected and the difference value between the system time and the production time is larger than a preset time difference, the fact that the electric quantity of the RTC battery is exhausted can be confirmed, and invalid reminding is conducted on the RTC battery.
In the embodiment of the present invention, the system time of the device to be tested and the production time of the device to be tested may be obtained by any available method, which is not limited in the embodiment of the present invention. The production time of the device to be tested can be replaced by factory time, delivery time, sale time and the like according to the requirements, and the embodiment of the invention is not limited. In addition, the specific value of the preset time difference can also be set by self-definition according to requirements, and the embodiment of the invention is not limited. For example, the preset time difference may be set to 1 year, 5 years, or the like.
For example, under the condition that the device to be detected is not networked, once the RTC battery fails, the time returns to a certain fixed time in the early stage, for example, 3 month and 1 day 1997, and once the detected time is significantly earlier than the production time of the device to be detected after the device to be detected is started, for example, 1 month and 1 day 2020, it can be determined that the RTC battery has failed, that is, the electric quantity of the RTC battery is exhausted, and an invalid prompt can be performed for the RTC battery to prompt a user to replace the RTC battery.
In the embodiment of the present invention, when performing the invalid prompt, the invalid prompt may be performed in any at least one of the above step 132 or the step 140 plus 150, or priorities of two modes may be set, for example, when the device to be detected is not networked, the invalid prompt may be performed preferentially in the step 140 plus 150, and when the device to be detected is networked, the invalid prompt may be performed preferentially in the step 132, which is not limited in the embodiment of the present invention.
Referring to fig. 3, a schematic structural diagram of an RTC battery detection apparatus according to an embodiment of the present invention is shown.
The RTC battery detection device of the embodiment of the invention comprises: the device comprises a parameter acquisition module 210, a failure time point acquisition module 220 and an electric quantity detection reminding module 230.
The functions of the modules and the interaction relationship between the modules are described in detail below.
The parameter obtaining module 210 is configured to obtain a capacity of an RTC battery in the device to be tested and a consumption current of the RTC;
a failure time point obtaining module 220, configured to obtain a failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC;
and an electric quantity detection reminding module 230, configured to perform electric quantity detection reminding for the RTC battery according to the failure time point.
Referring to fig. 4, in an embodiment, the failure time point obtaining module 220 may further include:
a theoretical working duration obtaining submodule 221, configured to obtain a theoretical working duration of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC;
a power supply mode obtaining sub-module 222, configured to obtain a power supply mode of the RTC when the device to be detected is in a start state;
and the failure time point acquisition submodule 223 is configured to acquire a failure time point of the RTC battery according to the theoretical operating time and the power supply mode of the RTC.
Optionally, in an embodiment, the failure time point obtaining sub-module 223 is specifically configured to:
responding to the power supply mode that the RTC battery is not used for supplying power, and acquiring a failure time point of the RTC battery according to the theoretical working time of the RTC battery and the first time of the equipment to be detected in a starting state;
and responding to the power supply mode that the RTC battery supplies power, and acquiring the failure time point of the RTC battery according to the theoretical working time of the RTC battery.
Referring to fig. 4, in an embodiment, the power detection reminding module 230 further includes:
the electric quantity early warning submodule 231 is configured to perform electric quantity early warning on the RTC battery when the device to be detected is in a starting state within a first preset time period before the failure time point;
and the invalid reminding submodule 232 is configured to, after a second preset time period of the failure time point, confirm that the electric quantity of the RTC battery is exhausted, and perform invalid reminding for the RTC battery when the device to be detected is in a starting state.
Referring to fig. 4, in an embodiment, the apparatus may further include:
a system time obtaining module 240, configured to obtain the system time of the device to be detected when the device to be detected is not networked and is in a start state;
and the invalid reminding module 250 is configured to respond that the system time is earlier than the production time of the device to be detected, and a difference between the system time and the production time is greater than a preset time difference, confirm that the electric quantity of the RTC battery is exhausted, and perform invalid reminding for the RTC battery.
The RTC battery detection apparatus provided in the embodiment of the present invention can implement each process implemented in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement the processes of the above-mentioned RTC battery detection method embodiment, and can achieve the same technical effects, and are not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the RTC battery detection method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 500 includes, but is not limited to: the electronic device 500 includes components such as a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511, and in addition, in various embodiments of the present invention, the electronic device 500 may further include the real-time clock 512 and the RTC battery 513. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. An RTC battery detection method, comprising:
acquiring the capacity of an RTC battery in the equipment to be detected and the consumption current of the RTC;
acquiring a failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC;
and according to the failure time point, carrying out electric quantity detection reminding on the RTC battery.
2. The method of claim 1, wherein the step of obtaining the failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC comprises:
acquiring the theoretical working time of the RTC battery according to the capacity of the RTC battery and the consumed current of the RTC battery;
acquiring a power supply mode of the RTC when the equipment to be detected is in a starting state;
and acquiring the failure time point of the RTC battery according to the theoretical working duration and the power supply mode of the RTC.
3. The method according to claim 2, wherein the step of obtaining the failure time point of the RTC battery according to the theoretical operating time and the RTC power supply mode comprises:
responding to the power supply mode that the RTC battery is not used for supplying power, and acquiring a failure time point of the RTC battery according to the theoretical working time of the RTC battery and the first time of the equipment to be detected in a starting state;
and responding to the power supply mode that the RTC battery supplies power, and acquiring the failure time point of the RTC battery according to the theoretical working time of the RTC battery.
4. The method according to any one of claims 1 to 3, wherein the step of performing a power detection alert for the RTC battery according to the failure time point comprises:
in a first preset time period before the failure time point, when the equipment to be detected is in a starting state, carrying out electric quantity early warning on the RTC battery;
after the second preset time period of the failure time point, confirming that the electric quantity of the RTC battery is exhausted, and when the device to be detected is in a starting state, carrying out invalid reminding on the RTC battery.
5. The method according to any one of claims 1-3, further comprising:
when the equipment to be detected is not networked and is in a starting state, acquiring the system time of the equipment to be detected;
and responding to the fact that the system time is earlier than the production time of the device to be detected and the difference value between the system time and the production time is larger than a preset time difference, confirming that the electric quantity of the RTC battery is exhausted, and performing invalid reminding aiming at the RTC battery.
6. An RTC battery test apparatus, comprising:
the parameter acquisition module is used for acquiring the capacity of an RTC battery in the equipment to be detected and the consumption current of the RTC;
the failure time point acquisition module is used for acquiring a failure time point of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC;
and the electric quantity detection reminding module is used for carrying out electric quantity detection reminding aiming at the RTC battery according to the failure time point.
7. The apparatus of claim 6, wherein the failure time point obtaining module comprises:
the theoretical working duration obtaining submodule is used for obtaining the theoretical working duration of the RTC battery according to the capacity of the RTC battery and the consumption current of the RTC battery;
the power supply mode acquisition sub-module is used for acquiring the power supply mode of the RTC when the equipment to be detected is in a starting state;
and the failure time point acquisition submodule is used for acquiring the failure time point of the RTC battery according to the theoretical working duration and the power supply mode of the RTC.
8. The apparatus according to claim 7, wherein the failure time point obtaining submodule is specifically configured to:
responding to the power supply mode that the RTC battery is not used for supplying power, and acquiring a failure time point of the RTC battery according to the theoretical working time of the RTC battery and the first time of the equipment to be detected in a starting state;
and responding to the power supply mode that the RTC battery supplies power, and acquiring the failure time point of the RTC battery according to the theoretical working time of the RTC battery.
9. The apparatus according to any one of claims 6-8, wherein the power detection reminding module comprises:
the electric quantity early warning submodule is used for carrying out electric quantity early warning on the RTC battery when the equipment to be detected is in a starting state in a first preset time period before the failure time point;
and the invalid reminding submodule is used for confirming that the electric quantity of the RTC battery is exhausted after a second preset time period of the failure time point, and carrying out invalid reminding on the RTC battery when the device to be detected is in a starting state.
10. The apparatus according to any one of claims 6-8, further comprising:
the system time acquisition module is used for acquiring the system time of the equipment to be detected when the equipment to be detected is not networked and is in a starting state;
and the invalid reminding module is used for responding to the condition that the system time is earlier than the production time of the equipment to be detected and the difference value between the system time and the production time is greater than a preset time difference, confirming that the electric quantity of the RTC battery is exhausted and carrying out invalid reminding aiming at the RTC battery.
11. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the RTC battery detection method of any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the RTC battery detection method according to any one of claims 1 to 5.
CN202010901684.8A 2020-08-31 2020-08-31 RTC battery detection method and device, electronic equipment and storage medium Withdrawn CN112180257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010901684.8A CN112180257A (en) 2020-08-31 2020-08-31 RTC battery detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010901684.8A CN112180257A (en) 2020-08-31 2020-08-31 RTC battery detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112180257A true CN112180257A (en) 2021-01-05

Family

ID=73924037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010901684.8A Withdrawn CN112180257A (en) 2020-08-31 2020-08-31 RTC battery detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112180257A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075633A (en) * 2011-02-11 2011-05-25 华为终端有限公司 Information prompt method and mobile terminal
CN103091640A (en) * 2013-01-15 2013-05-08 无锡必创传感科技有限公司 Battery testing method and testing device
CN106353684A (en) * 2016-08-11 2017-01-25 华霆(合肥)动力技术有限公司 Battery failure detection method and apparatus
CN106796270A (en) * 2014-10-13 2017-05-31 萨基姆通讯能源及电信联合股份公司 The method of the health status of battery for being estimated as in the equipment of system power supply
CN107505577A (en) * 2017-09-19 2017-12-22 上海斐讯数据通信技术有限公司 A kind of circuit for measuring capacity of battery, battery capacity Method for Accurate Calculation and system
CN107517494A (en) * 2017-08-31 2017-12-26 努比亚技术有限公司 A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
WO2018129977A1 (en) * 2017-01-13 2018-07-19 广东欧珀移动通信有限公司 Charging control method and apparatus, storage medium, and computer device
CN108407740A (en) * 2018-01-31 2018-08-17 惠州华阳通用电子有限公司 A kind of T-BOX standby battery controls and method
CN108896928A (en) * 2018-07-20 2018-11-27 深圳市道通智能航空技术有限公司 Evaluation method, device, battery core, battery and the aircraft of remaining battery time
CN109711490A (en) * 2018-11-22 2019-05-03 北京三快在线科技有限公司 Method for reading data, device, electronic system and readable storage medium storing program for executing
CN110275115A (en) * 2019-07-24 2019-09-24 振德医疗用品股份有限公司 Disposable battery detection method of quantity of electricity
CN110470995A (en) * 2019-07-19 2019-11-19 科华恒盛股份有限公司 Remaining battery discharge time acquisition methods, system and terminal device
CN110729519A (en) * 2019-10-24 2020-01-24 安徽普烁光电科技有限公司 Service life detection system based on solar cell

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075633A (en) * 2011-02-11 2011-05-25 华为终端有限公司 Information prompt method and mobile terminal
CN103091640A (en) * 2013-01-15 2013-05-08 无锡必创传感科技有限公司 Battery testing method and testing device
CN106796270A (en) * 2014-10-13 2017-05-31 萨基姆通讯能源及电信联合股份公司 The method of the health status of battery for being estimated as in the equipment of system power supply
CN106353684A (en) * 2016-08-11 2017-01-25 华霆(合肥)动力技术有限公司 Battery failure detection method and apparatus
WO2018129977A1 (en) * 2017-01-13 2018-07-19 广东欧珀移动通信有限公司 Charging control method and apparatus, storage medium, and computer device
CN107517494A (en) * 2017-08-31 2017-12-26 努比亚技术有限公司 A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN107505577A (en) * 2017-09-19 2017-12-22 上海斐讯数据通信技术有限公司 A kind of circuit for measuring capacity of battery, battery capacity Method for Accurate Calculation and system
CN108407740A (en) * 2018-01-31 2018-08-17 惠州华阳通用电子有限公司 A kind of T-BOX standby battery controls and method
CN108896928A (en) * 2018-07-20 2018-11-27 深圳市道通智能航空技术有限公司 Evaluation method, device, battery core, battery and the aircraft of remaining battery time
CN109711490A (en) * 2018-11-22 2019-05-03 北京三快在线科技有限公司 Method for reading data, device, electronic system and readable storage medium storing program for executing
CN110470995A (en) * 2019-07-19 2019-11-19 科华恒盛股份有限公司 Remaining battery discharge time acquisition methods, system and terminal device
CN110275115A (en) * 2019-07-24 2019-09-24 振德医疗用品股份有限公司 Disposable battery detection method of quantity of electricity
CN110729519A (en) * 2019-10-24 2020-01-24 安徽普烁光电科技有限公司 Service life detection system based on solar cell

Similar Documents

Publication Publication Date Title
CN108174044B (en) Alarm clock setting method and mobile terminal
CN108337368B (en) Method for updating positioning data and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN110881212B (en) Method and device for saving power of equipment, electronic equipment and medium
CN107608855B (en) Reminding method and mobile terminal
CN108563551B (en) Alarm method, flexible screen terminal and computer readable storage medium
CN108391008B (en) Message reminding method and mobile terminal
CN108234727B (en) Noise reduction method, mobile terminal and computer readable storage medium
CN110784915B (en) Power consumption control method of electronic equipment and electronic equipment
CN108322601B (en) Reminding method and terminal
CN108681413B (en) Control method of display module and mobile terminal
CN110933494A (en) Picture sharing method and electronic equipment
CN107835495B (en) Message prompting method and device and mobile terminal
CN111107223B (en) Message processing method and electronic equipment
CN110456923B (en) Gesture sensing data processing method and electronic equipment
CN109831582B (en) Non-response event processing method and terminal
CN108810284B (en) Mode switching method of camera and electronic equipment
CN108170310B (en) Touch screen control method and mobile terminal
CN108307048B (en) Message output method and device and mobile terminal
CN108307075B (en) Incoming call processing method and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN109660657B (en) Application program control method and device
CN107613140B (en) Alarm clock setting prompting method, mobile terminal and computer readable storage medium
CN112202528A (en) Communication baud rate correction method and device, electronic equipment and storage medium

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210105

WW01 Invention patent application withdrawn after publication