CN111413623A - Method and device for calculating residual electric quantity and computer readable storage medium - Google Patents

Method and device for calculating residual electric quantity and computer readable storage medium Download PDF

Info

Publication number
CN111413623A
CN111413623A CN202010274196.9A CN202010274196A CN111413623A CN 111413623 A CN111413623 A CN 111413623A CN 202010274196 A CN202010274196 A CN 202010274196A CN 111413623 A CN111413623 A CN 111413623A
Authority
CN
China
Prior art keywords
battery
power consumption
calculating
total
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010274196.9A
Other languages
Chinese (zh)
Other versions
CN111413623B (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.)
Suzhou Weisi Medical Technology Co ltd
Original Assignee
Suzhou Weisi Medical 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 Suzhou Weisi Medical Technology Co ltd filed Critical Suzhou Weisi Medical Technology Co ltd
Priority to CN202010274196.9A priority Critical patent/CN111413623B/en
Publication of CN111413623A publication Critical patent/CN111413623A/en
Application granted granted Critical
Publication of CN111413623B publication Critical patent/CN111413623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/367Software therefor, e.g. for battery testing using modelling or look-up tables
    • 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
    • G01R31/387Determining ampere-hour charge capacity or SoC
    • G01R31/388Determining ampere-hour charge capacity or SoC involving voltage measurements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

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

Abstract

According to the method, the device and the computer readable storage medium for calculating the residual electric quantity, disclosed by the embodiment of the invention, basic information and use information of a battery are acquired from a storage unit electrically connected with the battery of the automatic external defibrillation equipment; calculating the total power consumption of the battery based on the battery use information; and calculating the residual electric quantity of the battery by combining the total electric consumption quantity of the battery and the basic information of the battery. Through the implementation of the invention, the total power consumption of the battery is calculated based on the battery use information, and the residual power of the battery is calculated by combining the total power consumption of the battery and the basic information of the battery, so that the accuracy of calculating the residual power is obviously improved, and effective reference can be provided for equipment use.

Description

Method and device for calculating residual electric quantity and computer readable storage medium
Technical Field
The invention relates to the technical field of medical electronics, in particular to a method and a device for calculating residual electric quantity and a computer readable storage medium.
Background
An Automated External Defibrillator (AED) is a portable medical device that diagnoses certain arrhythmias and delivers shock defibrillation, and is a medical device that can be used by non-professionals to rescue patients with sudden cardiac arrest.
In practical application, a battery used by the automatic external defibrillation equipment is a disposable non-rechargeable battery, a certain error exists in the total battery capacity of the battery when the battery leaves a factory, and the AED needs to be charged by a large current in the use process of the battery, so that the voltage of the battery is much lower than that of the battery when the battery is not charged, and the AED cannot acquire the power consumption of the battery when in standby, thereby causing the accuracy of the calculated residual electric quantity of the battery to be poor.
Disclosure of Invention
The embodiments of the present invention mainly aim to provide a method, an apparatus, and a computer-readable storage medium for calculating remaining power, which can at least solve the problem in the prior art that the remaining power of a battery of an automatic external defibrillation device cannot be accurately calculated.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a remaining power calculating method applied to an automatic external defibrillation apparatus, the method including:
acquiring basic information and use information of the battery from a storage unit electrically connected with the battery of the automatic external defibrillation equipment;
calculating the total power consumption of the battery based on the battery use information;
and calculating the residual electric quantity of the battery by combining the total electric consumption quantity of the battery and the basic information of the battery.
In order to achieve the above object, a second aspect of the embodiments of the present invention provides a remaining power calculating apparatus for use in an automatic external defibrillation device, the apparatus including:
the acquisition module is used for acquiring basic information and use information of the battery from a storage unit electrically connected with the battery of the automatic external defibrillation equipment;
the first calculation module is used for calculating the total power consumption of the battery based on the battery use information;
and the second calculation module is used for calculating the residual electric quantity of the battery by combining the total electric consumption quantity of the battery and the basic information of the battery.
To achieve the above object, a third aspect of embodiments of the present invention provides an electronic apparatus, including: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of any one of the above-mentioned methods for calculating remaining power.
In order to achieve the above object, a fourth aspect of the embodiments of the present invention provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of any one of the above-described remaining capacity calculation methods.
According to the method, the device and the computer-readable storage medium for calculating the residual electric quantity, provided by the embodiment of the invention, the basic information and the use information of the battery are acquired from the storage unit which is electrically connected with the battery of the automatic external defibrillation equipment; calculating the total power consumption of the battery based on the battery use information; and calculating the residual electric quantity of the battery by combining the total electric consumption quantity of the battery and the basic information of the battery. Through the implementation of the invention, the total power consumption of the battery is calculated based on the battery use information, and the residual power of the battery is calculated by combining the total power consumption of the battery and the basic information of the battery, so that the accuracy of calculating the residual power is obviously improved, and effective reference can be provided for equipment use.
Other features and corresponding effects of the present invention are set forth in the following portions of the specification, and it should be understood that at least some of the effects are apparent from the description of the present invention.
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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a remaining power calculating method according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a remaining power calculating device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The first embodiment:
in order to solve the technical problem that the battery remaining capacity of the automatic external defibrillation device cannot be accurately calculated in the prior art, the present embodiment provides a remaining capacity calculation method, which can be applied to the automatic external defibrillation device, and as shown in fig. 1, is a schematic flow diagram of the remaining capacity calculation method provided by the present embodiment, and the remaining capacity calculation method provided by the present embodiment includes the following steps:
step 101, acquiring basic information and use information of a battery from a storage unit electrically connected with the battery of the automatic external defibrillation equipment.
Specifically, the memory cell of this embodiment may be a charged Erasable Programmable read only memory (EEPROM), and the capacity of the memory cell may be 128 bytes. In this embodiment, the battery information is recorded in the storage unit associated with the battery, so that the battery and the device can be independent, and the battery information of each battery can follow the battery itself, and the current key parameters such as the power consumption of the battery can be known only by reading the battery information on the storage unit. It should also be noted that the present embodiment records battery critical information on the battery, enabling the AED to be used with batteries of different capabilities without requiring adjustment of the AED program code during subsequent battery replacement.
In an optional implementation manner of this embodiment, the storage unit includes: a read-only area and a read-write area; correspondingly, the acquiring basic information and the battery use information of the battery from the storage unit electrically connected with the battery of the automatic external defibrillation device comprises the following steps: and acquiring basic information of the battery from the read-only area, and acquiring the use information of the battery from the read-write area.
Specifically, in this embodiment, the storage unit is divided into a read-only area and a read-write area, and then the battery basic information and the battery usage information are stored in the storage unit in a partitioned manner. Wherein, the battery basic information may include: the AED equipment can determine the basic information of the battery and adjust the use parameters of the equipment by reading the values of the battery type, the factory time, the expiration time, the total electric quantity value, the low electric quantity threshold value, the second-stage rapid loss proportion, the low electric quantity voltage threshold value and the like; the battery usage information may include: the charging count, the awakening count, the power consumption of the battery, the starting time and the shutdown time can be accurately calculated whether the residual electric quantity of the battery can meet the emergency use of the AED equipment or not by reading and calculating the values.
Further, in an optional implementation manner of this embodiment, the read-only area includes two read-only sub-areas where the basic information of the battery is repeatedly recorded; correspondingly, acquiring the basic information of the battery from the read-only area comprises the following steps: acquiring basic battery information from one read-only subregion, and performing cyclic redundancy check on the basic battery information; when the cyclic redundancy check fails, the basic battery information is acquired from another read-only subarea.
Specifically, in order to reduce the risk of information loss, the present embodiment repeatedly records the battery basic information on two addresses of the read-only area, so that the same information stored on address 2 can be read when the CRC check of the information on address 1 fails.
Further, in an optional implementation manner of this embodiment, the read-write area includes three read-write sub-areas that read and write the battery usage information including the battery power consumption in turn; correspondingly, acquiring the battery use information from the read-write area comprises the following steps: reading the battery power consumption stored in all the read-write subregions, and comparing the battery power consumption; and calling the battery power consumption with the largest value, and recording the number N of the correspondingly stored read-write sub-region, wherein the value of N is more than or equal to 1 and less than or equal to 3.
Specifically, the read-write area of the embodiment has three addresses for reading and writing the battery use information in turn, so that the closer primary battery use information can be ensured to be reserved under the extreme condition, and the influence of information loss and repeated erasing on the service life of the storage unit under the extreme condition is reduced. In addition, after the total power consumption of the battery is calculated based on the battery usage information, the total power consumption of the battery is written into the read-write sub-area with the number of N +1 modulo 3. It should be noted that, in this embodiment, when the battery power consumption is read, the battery power consumption stored in all the addresses may be read, and then the battery power consumption with the largest value is called, but in other embodiments, an address where the battery power consumption has been written last time may be determined, and then the battery power consumption stored in the address is directionally read to call.
And 102, calculating the total power consumption of the battery based on the battery use information.
Specifically, the embodiment adopts the power consumption to calculate the power consumption of the device at every moment when the device is used, and the calculation precision is improved to the millisecond level. It should be noted that, in the present embodiment, the total battery power consumption may be calculated mainly by using the current power consumption, and may be calculated by using the voltage and/or the standby average current, so as to further improve the accuracy of the calculation of the total battery power consumption.
In an optional implementation manner of this embodiment, a set of current values is collected every unit time interval, and a product of the current value and the unit time interval is written into the read-write area as the power consumption of the battery.
Specifically, the present embodiment may adopt a timing task with a unit time length of, for example, 20 milliseconds, and read the present current through the reading circuit, and then multiply the present current by the time of 20 milliseconds, which is the current consumption of the device within 20 milliseconds. And accumulating the current power consumption in the unit time length, putting the accumulated current power consumption into a buffer area variable C, and waiting for next updating or calling. In addition, with reference to this embodiment, the read/write area may include three read/write sub-areas for alternately reading and writing the battery usage information including the battery power consumption, and may further set a power consumption of the timing task read buffer variable C for 60 seconds, for example, to update the device remaining power T, where T is T + C, clear the buffer C, and then write the latest total power consumption T into the EEPROM according to the new address number N is (N +1) Mod 3, so that the write operation is performed cyclically among the three addresses.
In an optional implementation manner of this embodiment, calculating the total power consumption of the battery based on the battery usage information includes: calculating standby time and power-on time based on the power-on time and the power-off time, and calculating the standby power consumption of the equipment based on the standby time; calculating the running power consumption of the equipment based on the starting time; and determining the total power consumption of the battery based on the standby power consumption of the equipment and the running power consumption of the equipment.
Specifically, in this embodiment, the formula for calculating the standby time of the device may be represented as: the standby time length is the time of starting up the computer this time-the time of shutting down the computer last time, and the time length of starting up the computer this time-the time of shutting down the computer this time; further, the calculation formula of the standby power consumption of the device can be expressed as: the device standby power consumption is equal to the standby duration and the device standby average power consumption. And when the computing device is running power consumption, the calculation formula can be expressed as: the device operation power consumption is the boot time length and the device operation average power consumption. And finally, calculating a formula based on the total power consumption of the battery: and obtaining the total power consumption of the battery, namely the running power consumption of the device plus the standby power consumption of the device, adding the total power consumption of the battery to the accumulated power consumption read from the read-write area, and writing the accumulated power consumption into the next EEPROM address.
It should be noted that the AED device may begin entering the low battery pre-alarm mode when the total battery power consumption reaches the low battery threshold. Or after the AED is started, the battery voltage enters a stable state, and when the battery voltage is lower than the low-power voltage threshold value, the AED enters a low-power early warning mode. Or when the number of awakening counts or the number of charging counts reaches a corresponding threshold value, the AED also enters a low-battery early warning mode.
And 103, calculating the residual electric quantity of the battery by combining the total electric quantity consumed by the battery and the basic information of the battery.
Specifically, the present embodiment calculates the remaining battery capacity by combining the total battery power consumption and the battery basic information, significantly improves the accuracy of the remaining battery capacity calculation, and can provide an effective reference for the device usage. In practical applications, the remaining battery capacity may be expressed in percentage.
In an optional implementation manner of this embodiment, when the total power consumption of the battery and the basic information of the battery are combined to calculate the remaining power of the battery, first, a boundary value of the first stage and the second stage of the total power consumption of the battery is calculated based on the total power value and a low power threshold value, where the boundary value is the total power value — the low power threshold value.
Then, on one hand, when the total power consumption of the battery is smaller than the boundary value, calculating the percentage of the remaining power of the battery according to a first remaining power calculation formula; wherein the first remaining power calculation formula is represented as: t ═ ((totalhigvvalue-P) × 100)/totalhigvvalue;
on the other hand, when the Total power consumption of the battery is larger than the cut-off value, the percentage of the remaining power of the battery is calculated according to a second remaining power calculation formula, wherein the second remaining power calculation formula is expressed as T (Total L owValue- (P-highPower Value) L owPowerHighCost) 100)/Total HighValue.
It should be noted that, in this embodiment, T represents the percentage of the remaining battery capacity, P represents the Total battery consumption, highPowerValue represents the boundary value between the first stage and the second stage of the Total battery consumption, TotalHighValue represents the Total capacity value, Total L owValue represents the low capacity threshold, L owpowerhighvalue represents the proportion of the rapid loss in the second stage, and this proportion value is the inherent characteristic of the battery, for example, 1.5.
In particular, in the present embodiment, considering that the battery consumption rate is relatively fast when the battery capacity is low, for example, the battery can theoretically last for 100 hours, if the remaining capacity is only 10%, the battery is not able to support 10 hours of use, and based on this, the present embodiment uses a piecewise function form to calculate the remaining capacity of the battery, assuming a total battery capacity of 3000mAh, for example, the first-stage battery capacity may be set to 2500mAh, and the capacity of the second stage battery is set to 500mAh, when the total power consumption of the battery is between 0 and 2500mAh, the remaining battery capacity is more than 500mAh, the remaining battery capacity is calculated by adopting a first remaining battery capacity calculation formula, and when the total power consumption of the battery is between 2500-.
According to the method for calculating the residual electric quantity, provided by the embodiment of the invention, the basic information and the use information of the battery are acquired from a storage unit electrically connected with the battery of the automatic external defibrillation equipment; calculating the total power consumption of the battery based on the battery use information; and calculating the residual electric quantity of the battery by combining the total electric consumption quantity of the battery and the basic information of the battery. Through the implementation of the invention, the total power consumption of the battery is calculated based on the battery use information, and the residual power of the battery is calculated by combining the total power consumption of the battery and the basic information of the battery, so that the accuracy of calculating the residual power is obviously improved, and effective reference can be provided for equipment use.
Second embodiment:
in order to solve the technical problem that the battery remaining capacity of the automatic external defibrillation device cannot be accurately calculated in the prior art, the present embodiment shows a remaining capacity calculating apparatus, which is applied to the automatic external defibrillation device, and specifically, referring to fig. 2, the remaining capacity calculating apparatus of the present embodiment includes:
an obtaining module 201, configured to obtain basic information and usage information of a battery from a storage unit electrically connected to the battery of the automatic external defibrillation apparatus;
a first calculating module 202, configured to calculate a total power consumption of the battery based on the battery usage information;
and the second calculating module 203 is used for calculating the remaining battery capacity by combining the total battery power consumption and the basic battery information.
In some implementations of this embodiment, the memory cell includes: a read-only area and a read-write area; correspondingly, the obtaining module 201 is specifically configured to: and acquiring basic information of the battery from the read-only area, and acquiring the use information of the battery from the read-write area.
Further, in some embodiments of this embodiment, the read-only area includes two read-only sub-areas where the basic information of the battery is repeatedly recorded; correspondingly, when the obtaining module 201 obtains the battery basic information from the read-only area, it is specifically configured to: acquiring basic battery information from one read-only subregion, and performing cyclic redundancy check on the basic battery information; when the cyclic redundancy check fails, the basic battery information is acquired from another read-only subarea.
Further, in some embodiments of this embodiment, the read-write area includes three read-write sub-areas that read and write battery usage information including battery power consumption in turn; correspondingly, when the obtaining module 201 obtains the battery usage information from the read-write area, it is specifically configured to: reading the battery power consumption stored in all the read-write subregions, and comparing the battery power consumption; and calling the battery power consumption with the largest value, and recording the number N of the correspondingly stored read-write sub-region. Furthermore, the remaining power calculating apparatus of the present embodiment further includes: and the writing module is used for writing the total power consumption of the battery into the read-write sub-area with the serial number of N +1 modulo 3 after calculating the total power consumption of the battery based on the battery use information.
Further, in some implementations of this embodiment, the writing module is further configured to: and collecting a group of current values every unit time length, and writing the product of the current values and the unit time length into a read-write area as the power consumption of the battery.
In some embodiments of this embodiment, the battery usage information comprises: starting time and shutdown time; correspondingly, the first calculating module 202 is specifically configured to: calculating standby time and power-on time based on the power-on time and the power-off time, and calculating the standby power consumption of the equipment based on the standby time; calculating the running power consumption of the equipment based on the starting time; and determining the total power consumption of the battery based on the standby power consumption of the equipment and the running power consumption of the equipment.
In some embodiments of the present embodiment, the battery basic information includes a Total power value, a low power threshold, and a second stage rapid loss ratio, and the second calculating module 203 is specifically configured to calculate a boundary value of the Total power consumption in the first stage and the second stage based on the Total power value and the low power threshold, respectively, where the boundary value is the Total power value — the low power threshold, calculate a battery remaining power percentage according to a first remaining power calculation formula when the Total power consumption is smaller than the boundary value, where the first remaining power calculation formula is represented by T ((Total high value-P) 100)/Total high value, and when the Total power consumption is greater than the boundary value, calculate the battery remaining power percentage according to a second remaining power calculation formula, where the second remaining power calculation formula is represented by T ((Total L (P-high value) L poghhcost)/Total).
In this embodiment, T represents a percentage of remaining battery power, P represents Total battery power consumption, highPowerValue represents a boundary value between a first stage and a second stage of the Total battery power consumption, TotalHighValue represents a Total power value, Total L owValue represents a low power threshold, L owpowerhighvalue represents a rate of rapid loss in the second stage, and the rate is an inherent characteristic of the battery, for example, 1.5.
It should be noted that, the remaining power calculating method in the foregoing embodiments can be implemented based on the remaining power calculating device provided in this embodiment, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the remaining power calculating device described in this embodiment may refer to the corresponding process in the foregoing method embodiments, and is not described herein again.
By adopting the remaining power calculating device provided by the embodiment, the basic information and the use information of the battery are acquired from the storage unit electrically connected with the battery of the automatic external defibrillation equipment; calculating the total power consumption of the battery based on the battery use information; and calculating the residual electric quantity of the battery by combining the total electric consumption quantity of the battery and the basic information of the battery. Through the implementation of the invention, the total power consumption of the battery is calculated based on the battery use information, and the residual power of the battery is calculated by combining the total power consumption of the battery and the basic information of the battery, so that the accuracy of calculating the residual power is obviously improved, and effective reference can be provided for equipment use.
The third embodiment:
the present embodiment provides an electronic device, as shown in fig. 3, including a processor 301, a memory 302, and a communication bus 303, wherein: the communication bus 303 is used for realizing connection communication between the processor 301 and the memory 302; the processor 301 is configured to execute one or more computer programs stored in the memory 302 to implement at least one step of the remaining power calculating method in the first embodiment.
The present embodiments also provide a computer-readable storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The computer-readable storage medium in this embodiment may be used for storing one or more computer programs, and the stored one or more computer programs may be executed by a processor to implement at least one step of the method in the first embodiment.
The present embodiment also provides a computer program, which can be distributed on a computer readable medium and executed by a computing device to implement at least one step of the method in the first embodiment; and in some cases at least one of the steps shown or described may be performed in an order different than that described in the embodiments above.
The present embodiments also provide a computer program product comprising a computer readable means on which a computer program as shown above is stored. The computer readable means in this embodiment may include a computer readable storage medium as shown above.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A method for calculating the residual electric quantity is applied to automatic external defibrillation equipment and is characterized by comprising the following steps:
acquiring basic information and use information of the battery from a storage unit electrically connected with the battery of the automatic external defibrillation equipment;
calculating the total power consumption of the battery based on the battery use information;
and calculating the residual electric quantity of the battery by combining the total electric consumption quantity of the battery and the basic information of the battery.
2. The remaining capacity calculation method according to claim 1, wherein the storage unit includes: a read-only area and a read-write area;
the obtaining battery basic information and battery usage information from a storage unit electrically connected to a battery of the automatic external defibrillation apparatus includes:
and acquiring basic information of the battery from the read-only area, and acquiring the use information of the battery from the read-write area.
3. The remaining power calculation method according to claim 2, wherein the read-only area includes two read-only sub-areas in which the basic information of the battery is repeatedly recorded;
the acquiring of the basic information of the battery from the read-only area comprises:
acquiring the basic battery information from one of the read-only subareas, and then performing cyclic redundancy check on the basic battery information;
and when the cyclic redundancy check fails, acquiring the basic battery information from another read-only subarea.
4. The remaining power calculation method according to claim 2, wherein the read-write area includes three read-write sub-areas that alternately read and write the battery usage information including battery power consumption;
the acquiring the battery use information from the read-write area comprises:
reading the battery power consumption stored in all the read-write subregions, and comparing the battery power consumption;
calling the battery power consumption with the largest value, and recording the number N of the correspondingly stored read-write subarea;
after the total power consumption of the battery is calculated based on the battery use information, the method further comprises the following steps:
and writing the total power consumption of the battery into the read-write sub-area with the serial number of N +1 modulo 3.
5. The remaining capacity calculation method according to claim 4, further comprising:
and collecting a group of current values every unit time length, and writing the product of the current values and the unit time length into the read-write area as the power consumption of the battery.
6. The remaining capacity calculation method according to any one of claims 1 to 5, wherein the battery usage information includes: starting time and shutdown time;
the calculating of the total power consumption of the battery based on the battery usage information includes:
calculating standby time and power-on time based on the power-on time and the power-off time, and calculating equipment standby power consumption based on the standby time;
calculating the running power consumption of the equipment based on the starting time;
and determining the total power consumption of the battery based on the standby power consumption of the equipment and the operation power consumption of the equipment.
7. The remaining capacity calculation method according to any one of claims 1 to 5, wherein the battery basic information includes: the total electric quantity value, the low electric quantity threshold value and the proportion of the second-stage quick loss;
the calculating the remaining battery capacity by combining the total battery power consumption and the basic battery information includes:
calculating a boundary value of the first stage and the second stage of the total electricity consumption of the battery based on the total electricity quantity value and a low electricity threshold value; the calculation formula of the boundary value is represented as: the boundary value is the total electric quantity value-low electric quantity threshold value;
when the total power consumption of the battery is smaller than the boundary value, calculating the percentage of the remaining power of the battery according to a first remaining power calculation formula; the first remaining capacity calculation formula is expressed as: t ═ ((totalhigvvalue-P) × 100)/totalhigvvalue;
when the Total power consumption of the battery is larger than the boundary value, calculating the percentage of the remaining power of the battery according to a second remaining power calculation formula, wherein the second remaining power calculation formula is represented by T (Total L owValue- (P-highPower Value) L owPowerHighCost) 100)/Total HighValue;
wherein T represents the percentage of the remaining battery power, P represents the Total battery power consumption, highPowerValue represents the demarcation value, TotalHighValue represents the Total power value, Total L owValue represents the low power threshold, and L owpowerhighloss represents the proportion of the second-stage rapid loss.
8. A residual capacity calculating device is applied to automatic external defibrillation equipment and is characterized by comprising:
the acquisition module is used for acquiring basic information and use information of the battery from a storage unit electrically connected with the battery of the automatic external defibrillation equipment;
the first calculation module is used for calculating the total power consumption of the battery based on the battery use information;
and the second calculation module is used for calculating the residual electric quantity of the battery by combining the total electric consumption quantity of the battery and the basic information of the battery.
9. An electronic device, comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the remaining power calculating method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the remaining power calculating method according to any one of claims 1 to 7.
CN202010274196.9A 2020-04-09 2020-04-09 Method and device for calculating residual electric quantity and computer readable storage medium Active CN111413623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010274196.9A CN111413623B (en) 2020-04-09 2020-04-09 Method and device for calculating residual electric quantity and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010274196.9A CN111413623B (en) 2020-04-09 2020-04-09 Method and device for calculating residual electric quantity and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111413623A true CN111413623A (en) 2020-07-14
CN111413623B CN111413623B (en) 2022-05-31

Family

ID=71491850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010274196.9A Active CN111413623B (en) 2020-04-09 2020-04-09 Method and device for calculating residual electric quantity and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111413623B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111562502A (en) * 2020-07-16 2020-08-21 飞天诚信科技股份有限公司 Method and device for measuring residual electric quantity of equipment
CN113156319A (en) * 2021-04-14 2021-07-23 北京骑胜科技有限公司 Remaining power determining method, remaining power determining apparatus, vehicle, medium, and program product

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096488A (en) * 1995-06-19 1997-01-10 Canon Inc Charge discharge controller for battery
CN101187832A (en) * 2005-03-10 2008-05-28 索尼株式会社 Battery, battery residual electric quantity displaying system and electric device
CN101290651A (en) * 2008-06-06 2008-10-22 上海华申智能卡应用系统有限公司 Omnidirectional high-frequency label read-write machine
JP2011178209A (en) * 2010-02-26 2011-09-15 Denso Corp Power consumption prediction apparatus
US20120010673A1 (en) * 2004-07-30 2012-01-12 Bowers Kyle R Method and apparatus for determining battery capacity in a defibrillator
CN103370969A (en) * 2011-02-10 2013-10-23 阿尔卡特朗讯公司 Method and apparatus of smart power management for mobile communication terminals
CN105138433A (en) * 2015-09-30 2015-12-09 华立仪表集团股份有限公司 Backup method for UBIFS file system in embedded type Linux operating system
CN106324513A (en) * 2016-08-17 2017-01-11 深圳民盾安全技术开发有限公司 Heavy current electric quantity display realization method
CN107911741A (en) * 2017-12-14 2018-04-13 深圳Tcl新技术有限公司 Free memory method for improving, smart television and computer-readable recording medium
CN109387786A (en) * 2017-08-11 2019-02-26 深圳迈瑞生物医疗电子股份有限公司 A kind of AED electric quantity managing method, device, electronic equipment and storage medium
CN110554945A (en) * 2018-06-01 2019-12-10 中兴通讯股份有限公司 electric quantity control method, electronic equipment and computer readable storage medium
CN110618386A (en) * 2018-06-19 2019-12-27 中兴通讯股份有限公司 Battery electric quantity proportion detection method, equipment and computer readable storage medium
CN110917498A (en) * 2019-11-29 2020-03-27 苏州维伟思医疗科技有限公司 State control method, device, storage medium and automatic external defibrillator

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096488A (en) * 1995-06-19 1997-01-10 Canon Inc Charge discharge controller for battery
US20120010673A1 (en) * 2004-07-30 2012-01-12 Bowers Kyle R Method and apparatus for determining battery capacity in a defibrillator
CN101187832A (en) * 2005-03-10 2008-05-28 索尼株式会社 Battery, battery residual electric quantity displaying system and electric device
CN101290651A (en) * 2008-06-06 2008-10-22 上海华申智能卡应用系统有限公司 Omnidirectional high-frequency label read-write machine
JP2011178209A (en) * 2010-02-26 2011-09-15 Denso Corp Power consumption prediction apparatus
CN103370969A (en) * 2011-02-10 2013-10-23 阿尔卡特朗讯公司 Method and apparatus of smart power management for mobile communication terminals
CN105138433A (en) * 2015-09-30 2015-12-09 华立仪表集团股份有限公司 Backup method for UBIFS file system in embedded type Linux operating system
CN106324513A (en) * 2016-08-17 2017-01-11 深圳民盾安全技术开发有限公司 Heavy current electric quantity display realization method
CN109387786A (en) * 2017-08-11 2019-02-26 深圳迈瑞生物医疗电子股份有限公司 A kind of AED electric quantity managing method, device, electronic equipment and storage medium
CN107911741A (en) * 2017-12-14 2018-04-13 深圳Tcl新技术有限公司 Free memory method for improving, smart television and computer-readable recording medium
CN110554945A (en) * 2018-06-01 2019-12-10 中兴通讯股份有限公司 electric quantity control method, electronic equipment and computer readable storage medium
CN110618386A (en) * 2018-06-19 2019-12-27 中兴通讯股份有限公司 Battery electric quantity proportion detection method, equipment and computer readable storage medium
CN110917498A (en) * 2019-11-29 2020-03-27 苏州维伟思医疗科技有限公司 State control method, device, storage medium and automatic external defibrillator

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
飞兆半导体: "准确测量便携式设备电池剩余电量", 《中国电子商情(基础电子)》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111562502A (en) * 2020-07-16 2020-08-21 飞天诚信科技股份有限公司 Method and device for measuring residual electric quantity of equipment
CN113156319A (en) * 2021-04-14 2021-07-23 北京骑胜科技有限公司 Remaining power determining method, remaining power determining apparatus, vehicle, medium, and program product
CN113156319B (en) * 2021-04-14 2023-12-05 北京骑胜科技有限公司 Residual electric quantity determining method, device, vehicle, medium and program product

Also Published As

Publication number Publication date
CN111413623B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN111413623B (en) Method and device for calculating residual electric quantity and computer readable storage medium
US6058047A (en) Semiconductor memory device having error detection and correction
TWI677694B (en) Intelligent backup capacitor management
CN110579712B (en) Electric quantity display method and device and electronic equipment
US20130257382A1 (en) Managing Cycle and Runtime in Batteries for Portable Electronic Devices
CN112817527B (en) Power-down data storage method, singlechip and computer-readable storage medium
JP2012168728A (en) Protection module and state information management method in protection module
CN106546921A (en) The battery capacity update method of accumulator and device
US20100138175A1 (en) Method for accurate battery run time estimation utilizing load-condition voltage
CN110704257A (en) Solid state disk, quality monitoring method and device thereof and computer readable storage medium
JP2019096281A (en) Data storage device and associated operating method
CN105573458B (en) Information processing method and electronic equipment
CN115603393A (en) Charging control method and system for lithium battery, electronic device and medium
EP4090985A1 (en) Model-based capacity and resistance correction for rechargeable battery fuel gauging
JP5814825B2 (en) Storage device and storage method
CN110083310A (en) Company-data store method, device and storage cluster system in a kind of storage cluster
CN116243189A (en) Battery remaining capacity determining method and device, electronic equipment and storage medium
WO2019227769A1 (en) Method and apparatus for controlling storage device, and electronic device
US10393822B1 (en) Apparatus, systems, and methods for charging partial use batteries
CN110850304A (en) Full charge detection method and device and storage medium
CN111491282B (en) Data communication method, device and computer readable storage medium
CN109388217B (en) Method, device and system for determining duration of unpowered hard disk
CN118626318A (en) Method for determining power failure information, energy storage power supply and storage medium
CN112732179A (en) Data management method of SSD (solid State disk) and related device
CN112072728B (en) Electric quantity determining 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
GR01 Patent grant
GR01 Patent grant