CN109546738B - Detection device and method for lithium battery standby circuit - Google Patents

Detection device and method for lithium battery standby circuit Download PDF

Info

Publication number
CN109546738B
CN109546738B CN201910057154.7A CN201910057154A CN109546738B CN 109546738 B CN109546738 B CN 109546738B CN 201910057154 A CN201910057154 A CN 201910057154A CN 109546738 B CN109546738 B CN 109546738B
Authority
CN
China
Prior art keywords
power supply
circuit
backup power
module
detection
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.)
Active
Application number
CN201910057154.7A
Other languages
Chinese (zh)
Other versions
CN109546738A (en
Inventor
邵泽华
向海堂
王川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Qinchuan IoT Technology Co Ltd
Original Assignee
Chengdu Qinchuan IoT 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 Chengdu Qinchuan IoT Technology Co Ltd filed Critical Chengdu Qinchuan IoT Technology Co Ltd
Priority to CN201910057154.7A priority Critical patent/CN109546738B/en
Publication of CN109546738A publication Critical patent/CN109546738A/en
Application granted granted Critical
Publication of CN109546738B publication Critical patent/CN109546738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • 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/40Testing power supplies

Abstract

The invention provides a detection device and a detection method for a lithium battery standby circuit, which comprise the following steps: the device comprises an external power supply, a detection circuit, a backup power supply, a voltage division circuit, a switching circuit, a master control MCU module, an RF module and a valve driving circuit; the detection circuit is used for detecting an external power supply to obtain an external power supply voltage; the voltage division circuit is used for detecting a backup power supply to obtain backup power supply voltage; the main control MCU module is used for receiving the backup power supply voltage sent by the voltage dividing circuit and the external power supply voltage sent by the detection circuit under the condition that the field effect tube Q1 in the switch circuit is switched on, comparing the backup power supply voltage with a detection threshold value when the external power supply provides electric energy and the backup power supply is charged to obtain a comparison result, and controlling the RF module and/or the valve driving circuit to execute corresponding actions according to the comparison result, so that the power consumption of the detection circuit is reduced, the waiting time required by a user for changing batteries is shortened, and the user experience is improved.

Description

Detection device and method for lithium battery standby circuit
Technical Field
The invention relates to the technical field of circuit design, in particular to a detection device and a detection method for a lithium battery standby circuit.
Background
The intelligent water meter, the gas meter and the like are connected to the Internet after passing through a wide area wireless access network and become remotely accessible Internet of things terminal equipment. The mainstream, wide-area and low-power consumption radio access network at present is as follows: NB-IoT and LoRaWAN, although their average power consumption is low, require the power supply to provide very large currents during wireless transmit and receive periods, such as the LYNQ-L620 transient transmit peak current of up to 1A in shanghai koch; the BC95-B5 of Shanghai moving away transmits peak current of 0.3A and receives current of 61 mA; when the NB-IoT terminal equipment searches for the network, the receiving waiting time is as long as 3-5 minutes. Therefore, the terminal device, whether it uses a lithium battery or dry current, cannot provide such a large instantaneous current, and must be provided with a built-in rechargeable backup power supply. However, the introduction of large capacity backup power introduces new problems: when the backup power supply is initially dead, the voltage of the externally accessed battery backup power supply slowly rises, causing the device to fail to operate properly for a long period of time, such as: the water meter or the gas meter valve cannot be opened in time, so that the visual feeling of a user is influenced.
Disclosure of Invention
In view of this, the present invention provides a detection apparatus and a detection method for a lithium battery backup circuit, which reduce power consumption of the detection circuit, reduce waiting time required by a user to change a battery, and improve user experience.
In a first aspect, an embodiment of the present invention provides a detection apparatus for a lithium battery backup circuit, where the apparatus includes: the device comprises an external power supply, a detection circuit, a backup power supply, a voltage division circuit, a switching circuit, a master control Micro Control Unit (MCU) module, a Radio Frequency (RF) module and a valve driving circuit;
the detection circuit is used for detecting the external power supply to obtain the voltage of the external power supply;
the voltage division circuit is used for detecting the backup power supply to obtain backup power supply voltage;
and the main control MCU module is used for receiving the backup power supply voltage sent by the voltage division circuit and the external power supply voltage sent by the detection circuit under the condition that a field effect tube Q1 in the switch circuit is switched on, comparing the backup power supply voltage with a detection threshold value when the external power supply provides electric energy and the backup power supply is charged to obtain a comparison result, and controlling the RF module and/or the valve driving circuit to execute corresponding actions according to the comparison result.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the detection threshold includes a first detection threshold, a second detection threshold, a third detection threshold, and a fourth detection threshold, and the main control MCU module is specifically configured to:
when the backup power supply voltage is larger than the first detection threshold value, obtaining a first comparison result;
alternatively, the first and second electrodes may be,
when the backup power supply voltage is larger than the second detection threshold value, obtaining a second comparison result;
alternatively, the first and second electrodes may be,
when the backup power supply voltage is greater than the third detection threshold value, obtaining a third comparison result;
alternatively, the first and second electrodes may be,
and when the backup power supply voltage is greater than the fourth detection threshold value, obtaining a fourth comparison result.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where, in a case that the backup power supply supplies electric energy to the main control MCU module, the main control MCU module is specifically configured to:
when the comparison result is the first comparison result, controlling the valve driving circuit to execute a valve closing action;
alternatively, the first and second electrodes may be,
when the comparison result is the second comparison result, controlling the valve driving circuit to execute a valve opening action;
alternatively, the first and second electrodes may be,
when the comparison result is the third comparison result, controlling the RF module to execute a data sending action and a data receiving action, and controlling the valve driving circuit to execute a valve closing action;
alternatively, the first and second electrodes may be,
and when the comparison result is the fourth comparison result, controlling the RF module to execute a network searching function.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein a third pin of the main control MCU module is connected to the switch circuit, a first pin of the main control MCU module is connected to the voltage dividing circuit, a second pin of the main control MCU module is connected to the detection circuit, the main control MCU module is connected to the RF module through a transmitting interface and a receiving interface, and the main control MCU module is connected to the valve driving circuit through an open serial port and a close serial port.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the third pin of the master MCU module is connected to a gate of a field effect transistor Q1 in the switch circuit, a drain of the field effect transistor Q1 is grounded, and a source of the field effect transistor Q1 is connected to the detection circuit and the voltage dividing circuit, respectively.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein a source of the field-effect transistor Q1 is connected to one end of a resistor R5 of the detection circuit, the other end of the resistor R5 is connected to one end of a resistor R4 and the second pin of the master MCU module, respectively, and the other end of the resistor R4 is connected to the external power supply.
With reference to the fifth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, wherein a source of the field-effect transistor Q1 is further connected to one end of a resistor R3 of the voltage division circuit, the other end of the resistor R3 is respectively connected to one end of a resistor R2 and the first pin of the main control MCU module, the other end of the resistor R2 is respectively connected to an anode of the backup power supply and one end of a resistor R1, a cathode of the backup power supply is grounded, the other end of the resistor R1 is connected to a cathode of a diode D1, and an anode of the diode D35 1 is connected to the external power supply.
With reference to the sixth possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the present invention further includes a low dropout regulator module, a second pin of the low dropout regulator module is respectively connected to the other end of the resistor R2, the positive electrode of the backup power supply, and one end of the resistor R1, a third pin of the low dropout regulator module is grounded, and a first pin of the low dropout regulator module is connected to the main control MCU module.
With reference to the first aspect, an embodiment of the present invention provides an eighth possible implementation manner of the first aspect, where the apparatus further includes an apparatus power supply, and the backup power supply supplies power to the RF module and the valve driving circuit through the apparatus power supply, where a first pin of the apparatus power supply is connected to a positive electrode of the backup power supply and one end of the resistor R1, a second pin of the apparatus power supply is connected to the first pin of the RF module, the second pin of the RF module is grounded, a third pin of the apparatus power supply is connected to the first pin of the valve driving circuit, and a second pin of the valve driving circuit is grounded.
In a second aspect, an embodiment of the present invention further provides a detection method for a lithium battery backup circuit, which is applied to the detection apparatus for a lithium battery backup circuit described above, where the method includes:
detecting an external power supply to obtain an external power supply voltage;
detecting a backup power supply to obtain backup power supply voltage;
under the condition that a field effect tube Q1 of the switching circuit is conducted, the external power supply voltage sent by the detection circuit and the backup power supply voltage sent by the voltage division circuit are received;
when the external power supply provides electric energy and the backup power supply is charged, comparing the voltage of the backup power supply with a detection threshold value to obtain a comparison result;
and controlling an RF module and/or a valve driving circuit to execute corresponding actions according to the comparison result.
The embodiment of the invention provides a detection device and a detection method for a lithium battery standby circuit, which comprise the following steps: the device comprises an external power supply, a detection circuit, a backup power supply, a voltage division circuit, a switching circuit, a master control MCU module, an RF module and a valve driving circuit; the detection circuit is used for detecting an external power supply to obtain an external power supply voltage; the voltage division circuit is used for detecting a backup power supply to obtain backup power supply voltage; the main control MCU module is used for receiving the backup power supply voltage sent by the voltage dividing circuit and the external power supply voltage sent by the detection circuit under the condition that the field effect tube Q1 in the switch circuit is switched on, comparing the backup power supply voltage with a detection threshold value when the external power supply provides electric energy and the backup power supply is charged to obtain a comparison result, and controlling the RF module and/or the valve driving circuit to execute corresponding actions according to the comparison result, so that the power consumption of the detection circuit is reduced, the waiting time required by a user for changing batteries is shortened, and the user experience is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a detection apparatus for a lithium battery backup circuit according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a detection apparatus of a lithium battery backup circuit according to an embodiment of the present invention;
fig. 3 is a second schematic diagram of a detection apparatus of a lithium battery backup circuit according to a first embodiment of the present invention;
fig. 4 is a flowchart of a detection method of a lithium battery backup circuit according to a third embodiment of the present invention.
Icon:
10-an external power supply; 20-a detection circuit; 30-backup power supply; 40-a voltage divider circuit; 50-a switching circuit; 60-a master control MCU module; 70-an RF module; 80-a valve drive circuit; 90-low dropout regulator module; 100-device power supply.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but 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.
For the understanding of the present embodiment, the following detailed description will be given of the embodiment of the present invention.
The first embodiment is as follows:
fig. 1 is a schematic diagram of a detection apparatus for a lithium battery backup circuit according to an embodiment of the present invention.
Referring to fig. 1, the apparatus includes: an external power supply 10, a detection circuit 20, a backup power supply 30, a voltage dividing circuit 40, a switching circuit 50, a main Control MCU (Micro Control Unit) module 60, a Radio Frequency (RF) module 70, and a valve driving circuit 80;
a detection circuit 20 for detecting the external power supply 10 to obtain an external power supply voltage;
a voltage dividing circuit 40 for detecting the backup power supply 30 to obtain a backup power supply voltage;
the main control MCU module 60 is configured to receive the backup power voltage sent by the voltage dividing circuit 40 and the external power voltage sent by the detection circuit 20 when the fet Q1 in the switch circuit 50 is turned on, compare the backup power voltage with a detection threshold when the external power supply 10 provides power and the backup power supply 30 is charged, obtain a comparison result, and control the RF module 70 and/or the valve driving circuit 80 to perform corresponding actions according to the comparison result.
Specifically, as shown in fig. 2, an external power supply 10 charges a backup power supply 30 through a diode D1 and a current-limiting resistor R1, wherein the backup power supply 30 is a farad capacitor with a large capacity, the backup power supply 30 supplies a driving current to an RF module or a valve driving circuit through a connection device power supply 100 to ensure normal operation of the device, and the backup power supply 30 supplies power to a main control MCU module through a low dropout regulator module 90. Here, the main control MCU module acquires the backup power voltage through the ADC1 pin, allows the valve driving circuit to perform a valve opening action when the backup power voltage is greater than the detection threshold Vgate1, and allows the RF module to operate when the backup power voltage is greater than the detection threshold Vgate 2. Since the voltage divider circuit 40 is composed of the resistor R2 and the resistor R3, the backup power voltage error may be relatively large, for example: when there is a 2% error, the backup power voltage of 3.7V deviates by 0.74V, and therefore, in order to ensure reliable operation of the device, the detection threshold Vgate1 and the detection threshold Vgate2 must be increased.
Specifically, in the design scheme of the general backup power supply 30, the embodiment of the invention adds the detection circuit 20 and the switch circuit 50. As shown in fig. 3, a third pin of the main control MCU module 60 is connected to the switch circuit 50, wherein the third pin is a checkEna pin; a first pin of the main control MCU module 60 is connected to the voltage divider circuit 40, wherein the first pin is an ADC1 pin; a second pin of the main control MCU module 60 is connected to the detection circuit 20, wherein the second pin is an ADC2 pin; the main control MCU module 60 is connected to the RF module 70 through a transmission interface and a reception interface, wherein the transmission interface is a TX pin, and the reception interface is an RX pin; the main control MCU module 60 is connected to the valve driving circuit 80 by opening and closing the serial ports, which are an on pin and an off pin, respectively.
Further, the third pin of the main control MCU module 60 is connected to the gate of the fet Q1 in the switch circuit 50, the drain of the fet Q1 is grounded, and the source of the fet Q1 is connected to the detection circuit 20 and the voltage divider circuit 40, respectively, wherein the fet Q1 may be set according to actual requirements, and is herein of an HM3406 type. Specifically, the source of the field-effect transistor Q1 is connected to one end of a resistor R5 of the detection circuit 20, the other end of the resistor R5 is connected to one end of the resistor R4 and the second pin of the main control MCU module 60, and the other end of the resistor R4 is connected to the external power supply 10, wherein the resistances of the resistor R4 and the resistor R5 are both 5.1K; the source of the field-effect transistor Q1 is further connected to one end of a resistor R3 of the voltage divider circuit 40, the other end of the resistor R3 is connected to one end of the resistor R2 and the first pin of the main control MCU module 60, the other end of the resistor R2 is connected to the anode of the backup power supply 30 and one end of a current-limiting resistor R1, the cathode of the backup power supply 30 is grounded, the other end of the current-limiting resistor R1 is connected to the cathode of a diode D1, and the anode of the diode D1 is connected to the external power supply 10, wherein the resistances of the resistor R2 and the resistor R3 are both 5.1K, and the diode D1 may be set according to actual needs, and is IN5819 type here.
Further, the low dropout regulator module 90 is further included, a second pin of the low dropout regulator module 90 is respectively connected with the other end of the resistor R2, the anode of the backup power supply 30 and one end of the current limiting resistor R1, a third pin of the low dropout regulator module 90 is grounded, and a first pin of the low dropout regulator module 90 is connected with the main control MCU module 60. In addition, the LDO module 90 may be configured as required, and is here a chip LD0-U1RN5RL30 AA.
Further, the device power supply 100 is included, the backup power supply 30 provides power for the RF module 70 and the valve driving circuit 80 through the device power supply 100, wherein a first pin of the device power supply 100 is connected to an anode of the backup power supply 30 and one end of the current limiting resistor R1, a second pin of the device power supply 100 is connected to the first pin of the RF module 70, a second pin of the RF module 70 is grounded, a third pin of the device power supply 100 is connected to the first pin of the valve driving circuit 80, and a second pin of the valve driving circuit 80 is grounded.
Further, the detection threshold includes a first detection threshold, a second detection threshold, a third detection threshold and a fourth detection threshold, and the main control MCU module 60 is specifically configured to:
when the backup power supply voltage is larger than a first detection threshold value, obtaining a first comparison result;
alternatively, the first and second electrodes may be,
when the backup power supply voltage is larger than a second detection threshold value, a second comparison result is obtained;
alternatively, the first and second electrodes may be,
when the backup power supply voltage is greater than a third detection threshold value, obtaining a third comparison result;
alternatively, the first and second electrodes may be,
and when the backup power supply voltage is greater than a fourth detection threshold value, obtaining a fourth comparison result.
Specifically, when the third pin of the main control MCU module 60 is set to be 0, that is, the checkEna is 0, the fet Q1 is turned off, and no current passes through the detection circuit 20 and the voltage divider circuit 40, so that the whole static power consumption is saved; when the third pin of the main control MCU module 60 is 1, that is, the checkEna is 1, the fet Q1 is turned on, and at this time, the drain of the fet Q1 is grounded, and the main control MCU module 60 obtains the backup power voltage and the external power voltage through the ADC1 pin and the ADC2 pin. In addition, a detection threshold Vgate0 is added, that is, Vgate0< Vgate1< Vgate2< Vgate3 is satisfied, where the detection threshold Vgate0 is a first detection threshold, the detection threshold Vgate1 is a second detection threshold, the detection threshold Vgate2 is a third detection threshold, and the detection threshold Vgate3 is a fourth detection threshold. The main control MCU module 60 compares the backup power voltage with the detection threshold to obtain a comparison result, and when the backup power voltage is greater than the detection threshold Vgate0, obtains a first comparison result; when the backup power supply voltage is greater than a detection threshold Vgate1, obtaining a second comparison result; when the backup power supply voltage is greater than a detection threshold Vgate2, obtaining a third comparison result; when the backup power supply voltage is greater than the detection threshold Vgate3, a fourth comparison result is obtained.
Further, under the condition that the backup power supply 30 provides power for the main control MCU module 60, the main control MCU module 60 is specifically configured to:
when the comparison result is the first comparison result, the control valve drive circuit 80 performs a valve closing action;
alternatively, the first and second electrodes may be,
when the comparison result is the second comparison result, the control valve drive circuit 80 performs a valve opening operation;
alternatively, the first and second electrodes may be,
when the comparison result is the third comparison result, the control RF module 70 performs a data transmission action and a data reception action, and controls the valve driving circuit 80 to perform a valve closing action;
alternatively, the first and second electrodes may be,
when the comparison result is the fourth comparison result, the RF module 70 is controlled to perform the network searching function.
Specifically, the external power supply 10 starts to operate, after the main control MCU module 60 completes the general initialization operation, the main control MCU module 60 starts to detect whether the voltage of the backup power supply 30 is greater than the detection threshold Vgate0, and if the voltage is less than the detection threshold Vgate0, waits indefinitely; when the backup power voltage is greater than the detection threshold Vgate0, that is, when the main control MCU module 60 obtains the first comparison result, the main control MCU module 60 controls the valve driving circuit 80 to perform a valve closing operation, but not limited to a reliable valve closing operation; when the backup power voltage is greater than the detection threshold Vgate1, that is, when the main control MCU module 60 obtains the second comparison result, the main control MCU module 60 controls the valve driving circuit 80 to perform a valve opening operation, but not limited to a complete valve opening operation and a reliable valve opening operation; when the backup power voltage is greater than the detection threshold Vgate2, that is, when the main control MCU module 60 obtains the third comparison result, the main control MCU module 60 controls the RF module 70 to perform a data transmitting action and a data receiving action, but not limited to one data transmitting action and one data receiving action, and controls the valve driving circuit 80 to perform a valve closing action, but not limited to one valve closing action; when the backup power voltage is greater than the detection threshold Vgate3, that is, the main control MCU module 60 obtains the fourth comparison result, the main control MCU module 60 controls the RF module 70 to perform the network searching function, which is as long as 5 minutes, but not limited to 5 minutes. In addition, when the backup power voltage is greater than the detection threshold Vgate0, the main control MCU module 60 controls the valve driving circuit 80 to perform a valve opening action, during the valve opening process, the main control MCU module 60 simultaneously detects whether the external power voltage is lower than the sum of the detection threshold Vgate0 and the voltage drop of the diode D1, if the external power voltage is lower than the sum of the detection threshold Vgate0 and the voltage drop of the diode D1, the external power source 10 stops supplying power, at this time, the main control MCU module 60 should control the valve driving circuit 80 to immediately stop performing the valve opening action and convert to performing the valve closing action, and the remaining power of the backup power 30 is enough to ensure that the valve driving circuit 80 performs a reliable valve closing action; if the external power voltage is higher than the sum of the detection threshold Vgate0 and the voltage drop of the diode D1, the external power source 10 continues to supply power, and the main control MCU module 60 should control the valve driving circuit 80 to continue to perform the valve opening action until the valve is completely opened.
Further, when the main control MCU module 60 controls the RF module 70 to perform a data transmission action to the air, it first determines whether the RF module 70 is networked, if the RF module 70 is networked, the main control MCU module 60 detects whether the backup power voltage is greater than the detection threshold Vgate2, and if the backup power voltage is less than the detection threshold Vgate2, waits indefinitely; if the backup power voltage is greater than the detection threshold Vgate2, the main control MCU module 60 and the RF module 70 perform data transmission and data reception through the transmission and reception interfaces; if the RF module 70 is not networked, the main control MCU module 60 detects whether the backup power voltage is greater than a detection threshold Vgate3, if the backup power voltage is less than a detection threshold Vgate3, waits indefinitely, and if the backup power voltage is greater than a detection threshold Vgate3, the main control MCU module 60 controls the RF module 70 to perform a network searching function.
Example two:
for example: when the backup power supply selects the lithium-ion super capacitor with the C being 80F, the lithium-ion super capacitor can be instantly charged to 2.5V, and the average charging current is I1When the current is 50mA, the valve opening current of the water meter valve is I2When the backup power supply voltage is equal to the detection threshold Vgate1, the main control MCU module can control the valve driving circuit to perform the valve opening operation for the detection device shown in fig. 2, where T is 6s, and the backup power supply voltage before the valve opening and the total charging time can be obtained:
calculating the backup supply voltage according to equation (1):
Figure BDA0001952254840000111
wherein E is1For backup of supply voltage, I1T is the duration of the valve opening, C is the capacitance of the backup power supply, and ε is the detection error.
The total charging time is calculated according to equation (2):
Figure BDA0001952254840000112
where t is the total charging time, I1Δ V is 2 × (I) for average charging current1*T)/C。
For the detection device shown in fig. 3, since it is not necessary to check the detection threshold Vgate0 when the power-on is started, it is only necessary to check whether the external power voltage is continuously higher than the sum of 2.5V and the voltage drop of the diode D1 by the main control MCU module before the valve is opened, if the duration exceeds 6s, it can be considered that the backup power voltage stores enough energy to ensure a valve closing action, and it is continuously monitored whether the external power voltage is lower than the sum of 2.5V and the voltage drop of the diode D1 during the valve opening action of the valve driving circuit, which corresponds to the detection threshold Vgate0 being 2.5V, so that the total charging time of the detection device shown in fig. 3 is 6 s. Compared with a general backup power supply detection device, the embodiment of the invention shortens the waiting time required by battery replacement, namely, the waiting time is reduced from the requirement of minute-level waiting to second-level waiting, thereby enhancing the use experience of users.
Example three:
fig. 4 is a flowchart of a detection method of a lithium battery backup circuit according to a third embodiment of the present invention.
Referring to fig. 4, the method includes the steps of:
step S101, detecting an external power supply to obtain an external power supply voltage;
step S102, detecting a backup power supply to obtain backup power supply voltage;
step S103, under the condition that a field effect tube Q1 of the switch circuit is conducted, receiving an external power supply voltage sent by the detection circuit and a backup power supply voltage sent by the voltage division circuit;
step S104, when the external power supply provides electric energy and the backup power supply is charged, comparing the voltage of the backup power supply with a detection threshold value to obtain a comparison result;
and step S105, controlling the RF module and/or the valve driving circuit to execute corresponding actions according to the comparison result.
The embodiment of the invention provides a detection device and a detection method for a lithium battery standby circuit, which comprise the following steps: the device comprises an external power supply, a detection circuit, a backup power supply, a voltage division circuit, a switching circuit, a master control MCU module, an RF module and a valve driving circuit; the detection circuit is used for detecting an external power supply to obtain an external power supply voltage; the voltage division circuit is used for detecting a backup power supply to obtain backup power supply voltage; the main control MCU module is used for receiving the backup power supply voltage sent by the voltage dividing circuit and the external power supply voltage sent by the detection circuit under the condition that the field effect tube Q1 in the switch circuit is switched on, comparing the backup power supply voltage with a detection threshold value when the external power supply provides electric energy and the backup power supply is charged to obtain a comparison result, and controlling the RF module and/or the valve driving circuit to execute corresponding actions according to the comparison result, so that the power consumption of the detection circuit is reduced, the waiting time required by a user for changing batteries is shortened, and the user experience is improved.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the method for detecting a lithium battery backup circuit provided in the above embodiment are implemented.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the detection method for the lithium battery standby circuit of the embodiment are executed.
The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "connected" and "connected" should be interpreted broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
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 non-volatile computer-readable storage medium executable by a processor. 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: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "upper", "lower", "inside", "outside", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A detection device for a lithium battery backup circuit is characterized by comprising: the device comprises an external power supply, a detection circuit, a backup power supply, a voltage division circuit, a switching circuit, a master control MCU module, a radio frequency RF module and a valve driving circuit;
the detection circuit is used for detecting the external power supply to obtain the voltage of the external power supply;
the voltage division circuit is used for detecting the backup power supply to obtain backup power supply voltage;
the main control MCU module is used for receiving the backup power supply voltage sent by the voltage dividing circuit and the external power supply voltage sent by the detection circuit under the condition that a field effect tube Q1 in the switch circuit is conducted, comparing the backup power supply voltage with a detection threshold value when the external power supply provides electric energy and the backup power supply is charged to obtain a comparison result, and controlling the RF module and/or the valve driving circuit to execute corresponding actions according to the comparison result;
the detection threshold comprises a first detection threshold, a second detection threshold, a third detection threshold and a fourth detection threshold, and the main control MCU module is specifically configured to:
when the backup power supply voltage is larger than the first detection threshold value, obtaining a first comparison result;
alternatively, the first and second electrodes may be,
when the backup power supply voltage is larger than the second detection threshold value, obtaining a second comparison result;
alternatively, the first and second electrodes may be,
when the backup power supply voltage is greater than the third detection threshold value, obtaining a third comparison result;
alternatively, the first and second electrodes may be,
when the backup power supply voltage is greater than the fourth detection threshold, obtaining a fourth comparison result;
wherein, Vgate0< Vgate1< Vgate2< Vgate3, wherein Vgate0 is the first detection threshold, Vgate1 is the second detection threshold, Vgate2 is the third detection threshold, and Vgate3 is the fourth detection threshold;
under the condition that the backup power supply provides electric energy for the main control MCU module, the main control MCU module is specifically used for:
when the comparison result is the first comparison result, controlling the valve driving circuit to execute a valve closing action;
alternatively, the first and second electrodes may be,
when the comparison result is the second comparison result, controlling the valve driving circuit to execute a valve opening action;
alternatively, the first and second electrodes may be,
when the comparison result is the third comparison result, controlling the RF module to execute a data sending action and a data receiving action, and controlling the valve driving circuit to execute a valve closing action;
alternatively, the first and second electrodes may be,
and when the comparison result is the fourth comparison result, controlling the RF module to execute a network searching function.
2. The detection device of the lithium battery power supply circuit according to claim 1, wherein a third pin of the main control MCU module is connected to the switch circuit, a first pin of the main control MCU module is connected to the voltage dividing circuit, a second pin of the main control MCU module is connected to the detection circuit, the main control MCU module is connected to the RF module through a transmitting interface and a receiving interface, and the main control MCU module is connected to the valve driving circuit through an open serial port and a close serial port.
3. The detection apparatus for the lithium battery backup circuit of claim 2, wherein the third pin of the main control MCU module is connected to the gate of a field effect transistor Q1 in the switch circuit, the drain of the field effect transistor Q1 is grounded, and the source of the field effect transistor Q1 is connected to the detection circuit and the voltage divider circuit, respectively.
4. The detection device of the lithium battery power supply circuit as claimed in claim 3, wherein a source of the field effect transistor Q1 is connected to one end of a resistor R5 of the detection circuit, the other end of the resistor R5 is connected to one end of a resistor R4 and the second pin of the main control MCU module, respectively, and the other end of the resistor R4 is connected to the external power supply.
5. The detection apparatus for the lithium battery backup circuit of claim 4, wherein the source of the field effect transistor Q1 is further connected to one end of a resistor R3 of the voltage divider circuit, the other end of the resistor R3 is respectively connected to one end of a resistor R2 and the first pin of the main control MCU module, the other end of the resistor R2 is respectively connected to the positive electrode of the backup power supply and one end of a resistor R1, the negative electrode of the backup power supply is grounded, the other end of the resistor R1 is connected to the negative electrode of a diode D1, and the positive electrode of the diode D1 is connected to the external power supply.
6. The detection apparatus for the lithium battery power supply circuit of claim 5, further comprising a low dropout regulator module, wherein a second pin of the low dropout regulator module is connected to the other end of the resistor R2, the positive electrode of the backup power supply and one end of the resistor R1, respectively, a third pin of the low dropout regulator module is grounded, and a first pin of the low dropout regulator module is connected to the main control MCU module.
7. The apparatus of claim 1, further comprising a device power supply, wherein the backup power supply supplies power to the RF module and the valve driving circuit through the device power supply, wherein a first pin of the device power supply is connected to the positive terminal of the backup power supply and one end of a resistor R1, a second pin of the device power supply is connected to the first pin of the RF module, the second pin of the RF module is grounded, a third pin of the device power supply is connected to the first pin of the valve driving circuit, and the second pin of the valve driving circuit is grounded.
8. A method for detecting a lithium battery backup circuit, which is applied to the detection device of the lithium battery backup circuit according to any one of claims 1 to 7, the method comprising:
detecting an external power supply to obtain an external power supply voltage;
detecting a backup power supply to obtain backup power supply voltage;
under the condition that a field effect tube Q1 of the switching circuit is conducted, the external power supply voltage sent by the detection circuit and the backup power supply voltage sent by the voltage division circuit are received;
when the external power supply provides electric energy and the backup power supply is charged, comparing the voltage of the backup power supply with a detection threshold value to obtain a comparison result;
and controlling an RF module and/or a valve driving circuit to execute corresponding actions according to the comparison result.
CN201910057154.7A 2019-01-21 2019-01-21 Detection device and method for lithium battery standby circuit Active CN109546738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910057154.7A CN109546738B (en) 2019-01-21 2019-01-21 Detection device and method for lithium battery standby circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910057154.7A CN109546738B (en) 2019-01-21 2019-01-21 Detection device and method for lithium battery standby circuit

Publications (2)

Publication Number Publication Date
CN109546738A CN109546738A (en) 2019-03-29
CN109546738B true CN109546738B (en) 2022-02-18

Family

ID=65838048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910057154.7A Active CN109546738B (en) 2019-01-21 2019-01-21 Detection device and method for lithium battery standby circuit

Country Status (1)

Country Link
CN (1) CN109546738B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112904206B (en) * 2019-12-03 2022-07-08 成都秦川物联网科技股份有限公司 Gas meter lithium battery electricity consumption detection system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104638757A (en) * 2015-02-03 2015-05-20 成都秦川科技发展有限公司 Double-power-supply power supplying circuit of remote control intelligent gas meter
CN204886403U (en) * 2015-08-19 2015-12-16 深圳市天昊科技有限公司 External power and backup battery's seamless handover circuit
CN107634577A (en) * 2017-09-18 2018-01-26 成都秦川物联网科技股份有限公司 Outage detection control circuit and gas meter, flow meter
CN108317289A (en) * 2017-12-29 2018-07-24 金卡智能集团股份有限公司 A kind of metering meter valve valve opening control method and close valve control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104638757A (en) * 2015-02-03 2015-05-20 成都秦川科技发展有限公司 Double-power-supply power supplying circuit of remote control intelligent gas meter
CN204886403U (en) * 2015-08-19 2015-12-16 深圳市天昊科技有限公司 External power and backup battery's seamless handover circuit
CN107634577A (en) * 2017-09-18 2018-01-26 成都秦川物联网科技股份有限公司 Outage detection control circuit and gas meter, flow meter
CN108317289A (en) * 2017-12-29 2018-07-24 金卡智能集团股份有限公司 A kind of metering meter valve valve opening control method and close valve control method

Also Published As

Publication number Publication date
CN109546738A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109787318B (en) Discharge circuit and electronic equipment
US9229472B2 (en) Method for supplying electric power to a timekeeping circuit within a portable electronic device
CN103092315B (en) The mobile terminal of rear recovery application program can be restarted
US20060068242A1 (en) Electric power source apparatus using fuel cell and method of controlling the same
JP2002218668A (en) Portable information processor, and charging device and method
US10688241B2 (en) Multi-mode power supply system for a portable infusion device
US20110279096A1 (en) Method and apparatus for powering a high current system from a resistive electrical storage device
CN103117567B (en) Chip with charge-discharge function and electric quantity detecting function
US11916618B2 (en) Near field communication tag and control system for near field communication tag
CN109546738B (en) Detection device and method for lithium battery standby circuit
CN110995077A (en) Constant-voltage output control device and method for battery-powered motor
CN114167971A (en) Dormancy awakening circuit, automatic walking equipment and awakening method thereof
CN112564268B (en) Internet of things tracker terminal equipment
CN106328179B (en) Power supply circuit and power supply method
WO2020042715A1 (en) Electronic device power supply method and apparatus, electronic device, and storage medium
US11128149B2 (en) Charging apparatus
CN212518552U (en) Improved wireless charger
TWI598820B (en) Uninterruptible power supply system
US20110254515A1 (en) Charge control device
CN210404824U (en) Power supply circuit and electronic equipment
CN105896662A (en) Single-port mobile power control circuit and control method thereof
CN112448448A (en) Charging control method and device, earphone, electronic equipment and readable storage medium
WO2008011182A2 (en) Circuit for charging a capacitor with a power source
WO2020040860A1 (en) Battery pack control system
CN110967999A (en) Power consumption control device and communication system

Legal Events

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