[go: up one dir, main page]

CN108732502B - Method and device for acquiring residual time length available for equipment - Google Patents

Method and device for acquiring residual time length available for equipment Download PDF

Info

Publication number
CN108732502B
CN108732502B CN201710261571.4A CN201710261571A CN108732502B CN 108732502 B CN108732502 B CN 108732502B CN 201710261571 A CN201710261571 A CN 201710261571A CN 108732502 B CN108732502 B CN 108732502B
Authority
CN
China
Prior art keywords
power consumption
consumption speed
preset period
current power
detected
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
CN201710261571.4A
Other languages
Chinese (zh)
Other versions
CN108732502A (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.)
Edan Instruments Inc
Original Assignee
Edan Instruments Inc
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 Edan Instruments Inc filed Critical Edan Instruments Inc
Priority to CN201710261571.4A priority Critical patent/CN108732502B/en
Publication of CN108732502A publication Critical patent/CN108732502A/en
Application granted granted Critical
Publication of CN108732502B publication Critical patent/CN108732502B/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/3644Constructional arrangements
    • G01R31/3648Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm

Landscapes

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

Abstract

The invention provides a method and a device for acquiring remaining time length available for equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining the current power consumption speed of detected equipment, obtaining the current residual capacity of the detected equipment, and obtaining the usable residual duration of the detected equipment according to the residual capacity and the current power consumption speed. In the embodiment, in the using process of the detected device, the data on the battery in the detected device can be acquired in real time, so that the current electric quantity and the current power consumption speed can be calculated in real time, and the time that the detected device can continue to work at the current power consumption speed can be calculated. The usable residual time length is calculated according to the measured data, so that the obtained residual time length is more accurate.

Description

Method and device for acquiring residual time length available for equipment
Technical Field
The present invention relates to the field of device detection, and in particular, to a method and an apparatus for acquiring a remaining duration available to a device.
Background
The wearable device may be worn directly on the user or may be a portable device integrated into the user's clothing or accessory. Wearable equipment is not only a hardware equipment, realizes powerful function through software support and data interaction, high in the clouds interaction more, and wearable equipment brings very big transformation to people's life, perception.
For example, with the continuous development of mobile medical technology, wearable electrocardiograph equipment receives more and more attention because of its convenience, rich functions such as long-time monitoring, analysis and transmission of human electrocardiosignals, but the consumption of battery power can inevitably be caused by powerful display effect and function. Wearable electrocardiograph equipment needs to monitor for a long time without interruption, if the electric quantity at the initial wearing stage is less than the expected monitoring duration, or the electric quantity is seriously less than the remaining monitoring duration needed by supporting due to various operations of a user and other factors in the wearing process, the electrocardiograph monitoring data can be incomplete or even invalid data.
At present, a user of wearable electrocardiograph equipment can only fuzzily judge whether the current residual electric quantity can support the electrocardiograph monitoring according to the current residual electric quantity of the current wearable electrocardiograph equipment and by combining long-term use experience of the user. In addition, in the actual use process, the user may need to continuously perform key operation on the wearable electrocardiograph device, so that the consumption of the remaining electric quantity of the wearable electrocardiograph device is large, the accuracy of the estimation of the remaining use time of the wearable electrocardiograph device by the user is low, and the electrocardiograph monitoring data is likely to be invalid if the estimation is wrong.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide a method for obtaining a remaining duration available to a wearable device, so as to obtain the remaining duration available to the wearable device, so as to solve a problem in the prior art that when a user determines, based on a current remaining power of a current wearable electrocardiograph device, and in combination with a long-term usage experience of the user, whether the current remaining power can support the electrocardiograph monitoring of this time, the estimation accuracy is low.
A second object of the present invention is to provide a device for acquiring the remaining time period available for the equipment.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for acquiring a remaining duration usable by a device, including:
acquiring the current power consumption speed of the detected equipment;
acquiring the current residual capacity of the detected equipment;
and acquiring the available remaining time length of the detected equipment according to the remaining electric quantity and the current power consumption speed.
According to the method for acquiring the remaining time available for the equipment, disclosed by the embodiment of the invention, the data on the battery in the detected equipment can be acquired in real time in the using process of the detected equipment, so that the current electric quantity and the power consumption speed can be further calculated in real time, and the time that the detected equipment can still work at the current power consumption speed can be calculated. The usable residual time length is calculated according to the measured data, so that the obtained residual time length is more accurate.
In order to achieve the above object, a second embodiment of the present invention provides an apparatus for acquiring a remaining time period usable by a device, including:
the speed acquisition module is used for acquiring the current power consumption speed of the detected equipment;
the electric quantity obtaining module is used for obtaining the current residual electric quantity of the detected equipment;
and the duration acquisition module is used for acquiring the remaining duration which can be used by the detected equipment according to the remaining electric quantity and the current power consumption speed.
The device for acquiring the remaining time which can be used by the equipment provided by the embodiment of the invention can acquire the data on the battery in the detected equipment in real time in the using process of the detected equipment, so that the current electric quantity and the power consumption speed can calculate the time that the detected equipment can still work at the current power consumption speed in real time. The usable residual time length is calculated according to the measured data, so that the obtained residual time length is more accurate.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a method for acquiring a remaining duration available to a device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a voltage acquisition circuit according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another method for acquiring a remaining duration available to a device according to an embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating a process of updating a current power consumption speed by using a power consumption speed in a preset period according to an embodiment of the present invention;
fig. 5 is another schematic flow chart illustrating updating a current power consumption speed by using a power consumption speed in a preset period according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of another method for acquiring a remaining duration available to a device according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of another method for acquiring a remaining duration available to a device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for acquiring a remaining duration available to a device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a speed obtaining module 11 according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another apparatus for acquiring a remaining duration available for use by a device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
Fig. 1 is a schematic flow chart of a method for acquiring a remaining duration available to a device according to an embodiment of the present invention. The method for acquiring the available remaining time of the equipment comprises the following steps:
s101, acquiring the current power consumption speed of the detected device.
In particular, during use of the device under test, the battery in the device under test needs to be constantly discharged to power the various components. In the process of discharging the battery, the voltage of the battery or the current during discharging can be collected, and then the current power consumption speed of the detected equipment can be calculated by combining the discharging time.
And S102, acquiring the current residual capacity of the detected equipment.
In practice, a certain incidence relation exists between the voltage of the battery and the electric quantity of the battery, multiple discharge tests can be performed on the battery in the detected equipment in advance, and after the multiple discharge tests, the incidence relation between the voltage of the battery and the electric quantity of the battery can be obtained. In this embodiment, the current remaining power of the detected device may be obtained according to the collected current voltage of the battery in the detected device and the association relationship between the battery voltage and the power.
As shown in fig. 2, a voltage acquisition circuit according to an embodiment of the present invention is provided. In this embodiment, the voltage of the battery may be collected by the voltage collecting circuit shown in fig. 2. The voltage fluctuation can be caused by the plugging and unplugging of the battery, the collected voltage can be stabilized through an RC low-pass filter in the voltage collecting circuit, then the voltage can be further isolated and buffered due to the fact that the input impedance of a follow-up circuit of the operational amplifier connected in series is large, the output impedance is small, the voltage can be stably input into an Analog-to-Digital Converter (ADC) chip, and the ADC chip can obtain the voltage of the battery.
Further, the battery voltage U is collected when the battery is fully charged1At this time, the battery capacity Q11 is ═ 1; collecting battery voltage U when battery is empty2At this time, the battery capacity Q20. According to the battery discharge curve, the electric quantity and the voltage are basically in a linear relation, and a is 1/(U + b) calculated by a linear equation Q1-U2),b=-U2/(U1-U2). The battery voltage U can be measured in a period of 10 secondsxContinuously collecting, and obtaining the current battery electric quantity Q according to the linear equationx. And obtaining the power consumption speed V as delta Q/delta t according to the relation between the electric quantity change and the time.
Optionally, in this embodiment, the electric quantity and the battery voltage of the battery may also be obtained periodically, a linear regression model is used to perform regression analysis on the data, coefficients a and b of the regression model are obtained by a least square method, that is, a mean square error is minimized, and the accuracy of the correlation between the battery electric quantity and the battery voltage calculated by the linear regression method is higher.
And S103, acquiring the available remaining time of the detected equipment according to the remaining electric quantity and the current power consumption speed.
After the remaining power and the current power consumption speed are obtained, the ratio of the remaining power to the current power consumption speed can be obtained, and the ratio is the remaining duration available to the detected device. The remaining time length indicates how long the detected device can continue to work when the detected device discharges at the current power consumption speed in the using process.
For example, when the detected device is a wearable electrocardiograph device, after the remaining duration is obtained, whether the detected wearable electrocardiograph device can complete the data acquisition can be determined according to the remaining duration, if the data acquisition can not be completed, the acquisition can be stopped in time, and the waste of user time caused by the fact that the acquisition is needed again due to the fact that the acquired data is incomplete after the acquisition is avoided. Further, if the wearable electrocardio equipment supports charging, when the remaining time length cannot support completion of the acquisition, the wearable electrocardio equipment can be charged in time so as to ensure that the acquired data is effective.
It should be noted here that the detected device may be various portable terminal devices.
The method for acquiring the remaining time length available to the device according to the embodiment acquires the current remaining power of the device to be detected by acquiring the current power consumption speed of the device to be detected, and acquires the remaining time length available to the device to be detected according to the remaining power and the current power consumption speed. In the embodiment, in the using process of the detected device, the data on the battery in the detected device can be acquired in real time, so that the current electric quantity and the current power consumption speed can be calculated in real time, and the time that the detected device can continue to work at the current power consumption speed can be calculated. The usable residual time length is calculated according to the measured data, so that the obtained residual time length is more accurate.
Fig. 3 is a flowchart illustrating another method for acquiring a remaining duration available for a device according to an embodiment of the present invention. The remaining time period available for use by the apparatus comprises the steps of:
s201, identifying a currently adopted working mode of the detected equipment.
In this embodiment, the device to be detected is a wearable electrocardiograph device, and the method for acquiring the remaining time length available for the device provided in this embodiment is explained. The wearable electrocardio device comprises a plurality of sampling channels, namely the number of lead electrodes, and a plurality of sampling rates. The electrode number of the lead can support 5 electrodes, 7 electrodes and 10 electrodes, and the sampling rate can support 128Hz, 256Hz, 512Hz and 1024 Hz. Different working modes of the wearable electrocardio device correspond to different lead electrode numbers and different sampling rates. The consumption of electricity is also different in different operating modes. In this embodiment, different lead electrode numbers and different sampling rates may be combined in advance, and different combinations correspond to one working mode. For example, the number of leads can be configured as 7 electrodes, the sampling rate can be configured as 256Hz, and the 7 electrodes and 256Hz are combined into one working mode. Further, the basic power consumption speed in each operating mode can be obtained in a test mode. When the user uses the wearable electrocardio device for the first time, the actual power consumption speed of the user is updated from the basic power consumption speed as a starting point according to the actual power consumption situation in the use process of the user.
In this embodiment, when the user uses the wearable electrocardiograph device, the wearable electrocardiograph device is configured, that is, the number of lead electrodes and the sampling rate are configured, and according to the parameter configuration of the wearable electrocardiograph device, the current working mode adopted by the wearable electrocardiograph device can be identified. For example, the number of lead electrodes may be configured as 7 electrodes, and the sampling rate configured as 256 Hz.
S202, acquiring the initial power consumption speed of the detected device in the adopted working mode.
After the working mode adopted by the wearable electrocardio device is identified, the initial power consumption speed of the wearable electrocardio device under the working model can be obtained. And when the user is a new user, taking the basic power consumption speed in the working mode obtained by the test as the initial power consumption speed. And when the user is an old user who already uses the wearable electrocardio device, the last power consumption speed of the user recorded by the wearable electrocardio device can be used as the initial power consumption speed.
And S203, acquiring the power consumption in a preset period.
After the initial power consumption speed is obtained, the power consumption speed of the wearable electrocardio device is updated according to a preset period from the initial power consumption speed, and the current power consumption speed of the wearable electrocardio device is obtained.
Specifically, the actual power consumption of the wearable electrocardiograph device is detected in a preset period from the initial power consumption speed, and then the actual power consumption speed of the wearable electrocardiograph device is updated according to the actual power consumption condition of the wearable electrocardiograph device. In this embodiment, the power consumption in the preset period may be acquired according to the preset period, and the actual power consumption speed of the wearable electrocardiograph device is updated according to the power consumption in the preset period. Specifically, a first voltage at the beginning of the preset period and a second voltage at the end of the preset period are collected, then a first electric quantity at the beginning of the preset period and a second electric quantity at the end of the preset period are calculated according to an incidence relation between the voltage of the battery and the electric quantity, and then a difference value of the first electric quantity and the second electric quantity is obtained and used as electric consumption in the preset period.
And S204, calculating the power consumption speed in the preset period according to the power consumption in the preset period and the duration of the preset period.
And calculating the ratio of the power consumption in the preset period to the duration of the preset period, and taking the ratio as the power consumption speed in the preset period.
And S205, updating the current power consumption speed by using the power consumption speed in the preset period.
After the power consumption speed in the preset period is obtained, the current power consumption speed can be updated by using the power consumption speed in the preset period. Fig. 4 is a schematic flow chart illustrating a process of updating a current power consumption speed by using a power consumption speed in a preset period according to an embodiment of the present invention. The updating of the current power consumption speed by using the power consumption speed in the preset period comprises the following steps:
s301, calculating a first root mean square of the power consumption speed in the preset period and the current power consumption speed.
In this embodiment, an operation event performed on the wearable electrocardiograph device by the user needs to be detected in real time. If the operation event of the user is not detected in the preset period, a first root mean square of the power consumption speed in the preset period and the current power consumption speed can be calculated.
Specifically, after the wearable electrocardio device enters the monitoring state, an operation event of the user on the device can be detected in real time, and after the operation event is detected, the time point of the operation event can be started, namely, the time point is taken as the starting point, and a preset period is formed by timing according to the first time length. For example, the preset period may be 30 minutes. Further, after the preset period is reached, if the user operation is not detected, the power consumption in the preset period, that is, within 30 minutes, may be obtained, and then a ratio is made between the power consumption and a duration of the preset period, that is, a first time length, where the ratio is a power consumption speed in the preset period.
Further, root mean square calculation is performed on the power consumption speed W in the preset period and the current power consumption speed S to obtain a first root mean square S ', and then the value of the current power consumption speed is updated to the first root mean square S ', that is, S is equal to S '. The current power consumption speed S is the power consumption speed in the previous preset period.
For example, no operation event of the user is detected in N preset periods, and the power consumption speed in the first preset period is W1The current power consumption speed S is the initial power consumption speed S0W is to be1And the initial power consumption speed S0Calculating root mean square to obtain a first root mean square S in a first preset period1', update the current power consumption speed S to S1' when no operation event of the user is detected during the preset period again, the power consumption rate during the preset period is W2W is to be2And S1Performing root mean square calculation to obtain a first root mean square S in a second preset period2', updated current power consumption speed S equals S2'. By analogy, if no operation event of the user is detected in the mth preset period, the current power consumption speed updated after the mth preset period is as follows:
Figure GDA0002537711250000061
and S302, updating the value of the current power consumption speed to be a first root mean square.
In order to ensure that the current power consumption speed is more accurate, in this embodiment, the value of the current power consumption speed of the wearable electrocardiograph device is updated to the first root mean square.
In this embodiment, in a preset period, an operation event performed by a user on the wearable electrocardiograph device needs to be detected in real time. Such as lighting a screen, pressing keys to check electrocardiographic waveforms, etc., these operation events may cause the power consumption of the wearable electrocardiographic device to increase. Fig. 5 is a schematic flow chart illustrating a process of updating a current power consumption speed by using a power consumption speed in a preset period according to an embodiment of the present invention. After detecting the operation event of the user, the updating the current power consumption speed by using the power consumption speed in the preset period comprises the following steps:
s401, taking a difference value between the power consumption speed in the preset period and the current power consumption speed as an increment of the power consumption speed in the preset period caused by the operation event.
Specifically, when the wearable electrocardio device enters a monitoring state and starts to time, namely, when the wearable electrocardio device starts to work, the wearable electrocardio device starts to time according to a second time length to form a preset period. For example, the second length of time is 60 minutes. If the operation event of the user exists in the preset period, obtaining the increment of the power consumption speed caused by the operation event in the preset period according to the power consumption speed of the preset period and the current power consumption speed. Specifically, a difference between the power consumption speed in the preset period and the current power consumption speed is calculated, and the difference is used as an increment in the preset period.
S402, calculating a second root mean square of the increment in the preset period and the increment of the power consumption speed in the previous preset period.
After the increment in the preset period is obtained, root mean square calculation can be performed on the increment in the preset period and the increment in the previous preset period to obtain a second root mean square.
And S403, acquiring a value obtained by adding the current power consumption speed and the second root-mean-square, and updating the value of the current power consumption speed into the added value.
And after the current power consumption speed is added to the second root mean square, updating the value of the current power consumption speed into the added value.
For example, the increment is labeled as T, and the power consumption rate in a preset period is labeled as V. The power consumption speed in the first preset period is V1, and the current power consumption speed is S1I.e. the initial power consumption speed S0. Further, the increment T in the first preset period1=V1-S0. Due to the initial value T0If 0, increment T1And T0After the root mean square calculation is carried out, a second root mean square T in the first preset period is obtained1', the current power consumption speed S in the first preset period1Is updated to S0+T1'. When the preset period is reached again, if the operation event of the user exists in the preset period, the increment T is added2And the increment T in the last preset period1Calculating root mean square to obtain a second root mean square T in the preset period2', the current power consumption speed S2Is updated to S1+T2'. And so on, increment T in the n +1 th preset periodn+1The calculation formula of' is as follows:
Figure GDA0002537711250000071
then according to the increment T in the n +1 preset periodn+1', obtaining the current power consumption speed S in the preset periodn+1Is Sn+T2'; wherein S isnThe power consumption rate in the previous preset period.
In this embodiment, when a user performs an operation event within a preset period, an increment of the power consumption speed caused by the operation event of the user may be calculated, and then the current power consumption speed is updated by the increment, so that the calculated remaining duration has better accuracy. By monitoring the operation events of the user, an increment of the power consumption speed corresponding to the use habit of the user can be formed, the power consumption speed of the user is corrected based on the increment, and the prediction accuracy rate of the residual duration of the user can be improved.
And S206, acquiring the current residual capacity of the detected equipment.
Further, after the current power consumption speed of the wearable electrocardiograph device which can be detected by the device is obtained, the current residual power of the wearable electrocardiograph device can be calculated according to the collected current voltage of the battery in the wearable electrocardiograph device and the incidence relation between the battery power and the battery voltage.
And S207, acquiring the available remaining time length of the detected equipment according to the remaining power and the current power consumption speed.
And acquiring a ratio between the residual electric quantity and the current power consumption speed, wherein the ratio is the available residual time length of the wearable electrocardio equipment.
And S208, judging whether the remaining time length is greater than or equal to the current remaining required time length.
In actual use, the user can set the monitoring duration of the wearable electrocardio device, namely the duration of the monitoring requirement of the wearable electrocardio device. The initial demand duration can be set by the user according to the monitoring demand of the user. In the use process of wearable electrocardio equipment, the current remaining demand duration can be monitored.
In this embodiment, in order to better complete monitoring so as to obtain effective monitoring data, after the remaining duration of the wearable electrocardiograph device is obtained, the remaining duration may be compared with the currently remaining required duration to determine whether the remaining duration can complete the monitoring.
If the remaining duration is greater than or equal to the current remaining required duration, continuing monitoring; if the remaining time period is lower than the currently remaining required time period, S209 is performed.
And S209, outputting alarm information.
If the remaining duration is less than the current remaining required duration, which indicates that the remaining duration is not enough to support completion of the monitoring, the wearable electrocardiograph device can send an alarm to the user so as to facilitate charging of the user, or stop the monitoring, thereby saving the time of the user.
In the embodiment, the current power consumption speed of the detected device is obtained to obtain the current remaining power of the detected device, and the usable remaining duration of the detected device is obtained according to the remaining power and the current power consumption speed. In the embodiment, in the using process of the detected device, the data on the battery in the detected device can be acquired in real time, so that the current electric quantity and the current power consumption speed can be calculated in real time, and the time that the detected device can continue to work at the current power consumption speed can be calculated. The usable residual time length is calculated according to the measured data, so that the obtained residual time length is more accurate.
Furthermore, after the remaining duration is obtained, whether the usable remaining duration of the detected equipment meets the requirements of the user can be judged, intelligent warning can be performed when the usable remaining duration of the detected equipment does not meet the requirements of the user, the user can conveniently perform corresponding processing, and user experience is improved.
Fig. 6 is a flowchart illustrating another method for acquiring a remaining duration that can be used by a device according to an embodiment of the present invention. On the basis of the above embodiment, after obtaining the remaining duration available to the device, the method further includes the following steps:
s501, receiving a display instruction.
The user can check the remaining duration of the wearable electrocardiograph device in real time, and specifically, can send a display instruction to the wearable electrocardiograph device, for example, the screen can be lighted by pressing a key.
And S502, displaying the remaining time length on a display screen according to the display instruction.
After receiving the display instruction, the screen may be lit, and the remaining duration may be displayed on the screen. After the user checks the remaining duration, whether corresponding measures are taken for the wearable electrocardio device or not can be determined according to the remaining duration and the remaining required duration in the monitoring process.
In the embodiment, according to the requirements and the operation of the user, the remaining duration of the detected equipment can be displayed for the user, the screen cannot be lightened constantly, and the electric quantity can be saved.
Fig. 7 is a flowchart illustrating another method for acquiring a remaining duration that can be used by a device according to an embodiment of the present invention. The method for acquiring the residual time length available for the equipment comprises the following steps:
s601, logging in by the user.
And S602, configuring the detected device.
Specifically, when the user turns on the detected device, the parameters of the detected device may be configured.
The process of parameter configuration can be referred to the related contents in the above embodiments, and is not described herein again.
Further, the user may also configure a required duration, for example, when the detected device is a wearable electrocardiograph device, the required duration may be the duration required to complete electrocardiograph monitoring at this time.
And S603, identifying the currently adopted working mode of the detected equipment.
S604, judging whether the user is a new user.
If the user is a new user, executing S605; if the user is not a new user, S606 is performed.
And S605, acquiring a preset basic power consumption speed in the working mode, and taking the basic power consumption speed as an initial power consumption speed.
After the initial power consumption speed is acquired, the process proceeds to S607.
And S606, acquiring the power consumption speed recorded after the user uses the power consumption speed last time in the working mode, and taking the power consumption speed recorded last time as the initial power consumption speed.
After the initial power consumption speed is acquired, the process proceeds to S607.
S607, judging whether the current working time of the detected equipment is in the night stage.
In practical applications, the operation events of the device to be tested by the user at night are very few, and if the flow shown in fig. 5 for updating the current power consumption speed by using the power consumption speed in the preset period is called, an error may be introduced, and meanwhile, the amount of operation of a Micro Controller Unit (MCU) in the device to be tested is increased, so that the power consumption is increased, and therefore, in the night mode, the current power consumption speed can be updated according to the flow shown in fig. 4 for updating the current power consumption speed by using the power consumption speed in the preset period.
The detected equipment is generally provided with system time, the system time can be collected in the using process, the current working time of the detected equipment is determined, and then whether the current working time is in a night stage or not can be determined, for example, the time period of the night stage can be set to be 12: 00-8: 00.
If the current working time of the detected equipment is in the night stage, S608-611 is executed; if the current working time of the detected device is not in the night stage, S612-S617 are executed.
And S608, acquiring the power consumption in a preset period.
And S609, calculating the power consumption speed in the preset period according to the power consumption in the preset period and the duration of the preset period.
S610, calculating a first root mean square of the power consumption speed in the preset period and the current power consumption speed.
And S611, updating the value of the current power consumption speed to be the first root mean square.
For the related descriptions of S608 and S611, reference may be made to the descriptions of the related contents in the above embodiments, and the description thereof is omitted here.
And S612, detecting whether an operation event of the detected device by the user exists in a preset period.
If the operation event of the user on the detected device is detected in the preset period, executing step S613; and if the operation event of the user on the detected equipment is not detected in the preset period, maintaining the current power consumption speed.
S613, acquiring the power consumption in the preset period.
And S614, calculating the power consumption speed in the preset period according to the power consumption in the preset period and the duration of the preset period.
And S615, taking the difference value between the power consumption speed in the preset period and the current power consumption speed as the increment of the power consumption speed in the preset period caused by the operation event.
And S616, calculating a second root mean square between the increment in the preset period and the increment in the previous preset period.
S617, obtaining a value obtained by adding the current power consumption speed to the second root mean square, and updating the value of the current power consumption speed to the added value.
For the related descriptions of S613-617, reference is made to the description of the related contents in the above embodiments, and the description thereof is omitted here.
In the embodiment, in the using process of the detected device, the data on the battery in the detected device can be acquired in real time, so that the current electric quantity and the current power consumption speed can be calculated in real time, and the time that the detected device can continue to work at the current power consumption speed can be calculated. The usable residual time length is calculated according to the measured data, so that the obtained residual time length is more accurate.
Furthermore, when the detected equipment works at night and in the daytime, the current power consumption speed is updated by adopting different processing flows, so that the detection is more in line with the actual application scene. And the operation event of the user can be monitored to form an increment of the power consumption speed corresponding to the use habit of the user, the power consumption speed of the user is corrected based on the increment, and the prediction accuracy rate of the residual duration of the user can be improved.
Fig. 8 is a schematic structural diagram of an apparatus for acquiring a remaining duration available to a device according to an embodiment of the present invention. The device for acquiring the residual time length available for the equipment comprises: the device comprises a speed acquisition module 11, an electric quantity acquisition module 12 and a duration acquisition module 13.
The speed obtaining module 11 is configured to obtain a current power consumption speed of the device under test.
And the electric quantity obtaining module 12 is used for obtaining the current residual electric quantity of the detected device.
And a duration obtaining module 13, configured to obtain a remaining duration that can be used by the detected device according to the remaining power amount and the current power consumption speed.
Fig. 9 is a schematic structural diagram of a speed obtaining module 11 according to an embodiment of the present invention. The speed acquisition module 11 includes: a recognition unit 111, an acquisition unit 112, and an update unit 113.
And the identifying unit 111 is used for identifying the currently adopted working mode of the detected equipment.
An obtaining unit 112, configured to obtain an initial power consumption speed of the device under test in the operating mode.
And the updating unit 113 is configured to update the power consumption speed of the detected device according to a preset period from the initial power consumption speed to obtain the current power consumption speed.
Further, the updating unit 113 includes: an acquisition subunit 1131, a calculation subunit 1132, and an update subunit 1133.
An obtaining subunit 1131, configured to obtain power consumption in the preset period.
And the calculating subunit 1132 is configured to calculate a power consumption speed in the preset period according to the power consumption in the preset period and the duration of the preset period.
An updating subunit 1133, configured to update the current power consumption speed by using the power consumption speed in the preset period.
Further, the obtaining subunit 1131 is specifically configured to collect a first voltage at the beginning of the preset period and a second voltage at the end of the preset period, calculate a first electric quantity at the beginning of the preset period and a second electric quantity at the end of the preset period according to an association relationship between a battery voltage and the electric quantity, and obtain a difference value between the first electric quantity and the second electric quantity as the electric power consumption in the preset period.
In the embodiment, in the using process of the detected device, the data on the battery in the detected device can be acquired in real time, so that the current electric quantity and the current power consumption speed can be calculated in real time, and the time that the detected device can continue to work at the current power consumption speed can be calculated. The usable residual time length is calculated according to the measured data, so that the obtained residual time length is more accurate.
Fig. 10 is a schematic structural diagram of another apparatus for acquiring a remaining time period that may be used by a device according to an embodiment of the present invention. On the basis of the foregoing embodiment, the apparatus for acquiring a remaining duration usable by the device further includes: an operation detection module 14, a first timing module 15, a second timing module 16, a determination module 17, an alarm module 18, and a display module 19.
And the operation detection module 14 is used for detecting whether an operation event of the detected equipment by the user exists in real time.
Further, the updating subunit 1133 is specifically configured to, when the operation detection module does not detect an operation event of the detected device by the user in the preset period, calculate a first root mean square of the power consumption speed in the preset period and the current power consumption speed, and update the value of the current power consumption speed to the first root mean square.
And the first timing module 15 is used for timing according to a first time length from the time point of detecting the operation event to form the preset period.
Further, the updating subunit 1133 is specifically configured to, when the operation detection module detects an operation event of the detected device by the user in the preset period, use a difference between the power consumption speed in the preset period and the current power consumption speed as an increment of the power consumption speed in the preset period caused by the operation event, calculate a second root mean square between the increment of the power consumption speed in the preset period and an increment of the power consumption speed in a previous preset period, obtain a value obtained by adding the current power consumption speed and the second root mean square, and update the value of the current power consumption speed to the added value.
And the second timing module 16 is configured to perform timing according to a second time length to form the preset period when the detected device starts to operate.
And the determining module 17 is configured to determine that the current working time of the detected device enters a night stage.
And the alarm module 18 is used for comparing the remaining time length with the current remaining required time length, and outputting alarm information when the remaining time length is lower than the required time length.
Further, the electric quantity obtaining module 12 is specifically configured to collect a current voltage of a battery in the detected device, and calculate the remaining electric quantity according to the current voltage and an association relationship between the battery voltage and the electric quantity.
And the display module 19 is configured to receive a display instruction, and display the remaining duration on a display screen according to the display instruction.
In the embodiment, the current power consumption speed of the detected device is obtained to obtain the current remaining power of the detected device, and the usable remaining duration of the detected device is obtained according to the remaining power and the current power consumption speed. In the embodiment, in the using process of the detected device, the data on the battery in the detected device can be acquired in real time, so that the current electric quantity and the current power consumption speed can be calculated in real time, and the time that the detected device can continue to work at the current power consumption speed can be calculated. The usable residual time length is calculated according to the measured data, so that the obtained residual time length is more accurate.
Furthermore, after the remaining duration is obtained, whether the usable remaining duration of the detected equipment meets the requirements of the user can be judged, intelligent warning can be performed when the usable remaining duration of the detected equipment does not meet the requirements of the user, the user can conveniently perform corresponding processing, and user experience is improved.
Furthermore, when the detected equipment works at night and in the daytime, the current power consumption speed is updated by adopting different processing flows, so that the detection is more in line with the actual application scene. And the operation event of the user can be monitored to form an increment of the power consumption speed corresponding to the use habit of the user, the power consumption speed of the user is corrected based on the increment, and the prediction accuracy rate of the residual duration of the user can be improved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, for example, as in another embodiment, any one or combination of the following techniques, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (9)

1. A method for acquiring a remaining time length available for a device is characterized by comprising the following steps:
acquiring the current power consumption speed of the detected equipment;
acquiring the current residual capacity of the detected equipment;
acquiring the remaining time length which can be used by the detected equipment according to the remaining electric quantity and the current power consumption speed;
the acquiring the current power consumption speed of the detected device includes:
acquiring the power consumption speed in a preset period;
detecting whether an operation event of the user on the detected equipment exists in real time, and updating the current power consumption speed by using the power consumption speed in the preset period when the operation event of the user on the detected equipment is not detected in the preset period, wherein the method comprises the following steps:
calculating a first root mean square of the power consumption speed in the preset period and the current power consumption speed;
and updating the value of the current power consumption speed to the first root mean square, so as to obtain the current power consumption speed.
2. The method according to claim 1, wherein the updating the current power consumption speed with the power consumption speed in the preset period comprises:
identifying a currently adopted working mode of the detected equipment;
acquiring the initial power consumption speed of the detected equipment in the working mode;
and updating the power consumption speed of the detected equipment according to a preset period from the initial power consumption speed to obtain the current power consumption speed.
3. The method according to claim 2, wherein the updating the power consumption speed of the device under test according to the preset period to obtain the current power consumption speed comprises:
acquiring the power consumption in the preset period;
calculating the power consumption speed in the preset period according to the power consumption in the preset period and the duration of the preset period;
and updating the current power consumption speed by using the power consumption speed in the preset period.
4. The method of claim 3, wherein the obtaining the power consumption in the preset period comprises:
collecting a first voltage at the beginning and a second voltage at the end of the preset period;
calculating a first electric quantity at the beginning of the preset period and a second electric quantity at the end of the preset period according to the incidence relation between the voltage and the electric quantity of the battery;
and acquiring a difference value of the first electric quantity and the second electric quantity as the electric consumption in the preset period.
5. The method of claim 1, further comprising:
the preset period is formed by timing according to a first time length from the time point of detecting the operation event.
6. The method according to claim 1, wherein if an operation event of the detected device by the user is detected within the preset period, the updating the current power consumption speed by using the power consumption speed within the preset period comprises:
taking the difference value between the power consumption speed in the preset period and the current power consumption speed as the increment of the power consumption speed in the preset period caused by the operation event;
calculating a second root mean square between the increment of the power consumption speed in the preset period and the increment of the power consumption speed in the previous preset period;
and acquiring a value obtained by adding the current power consumption speed and the second root mean square, and updating the value of the current power consumption speed to the added value.
7. The method of claim 6, further comprising:
and the preset period is formed by timing according to a second time length when the detected equipment starts to work.
8. The method according to claim 1, wherein before calculating the first root mean square of the current power consumption speed and the power consumption speed in the preset period, the method further comprises:
and determining that the current working time of the detected equipment enters a night stage.
9. An apparatus for acquiring a remaining duration available for a device, comprising:
the speed acquisition module is used for acquiring the current power consumption speed of the detected equipment;
the electric quantity obtaining module is used for obtaining the current residual electric quantity of the detected equipment;
the duration acquisition module is used for acquiring the remaining duration which can be used by the detected equipment according to the remaining electric quantity and the current power consumption speed;
wherein the speed acquisition module is further configured to:
acquiring the power consumption speed in a preset period;
detecting whether an operation event of the user on the detected equipment exists in real time, and updating the current power consumption speed by using the power consumption speed in the preset period when the operation event of the user on the detected equipment is not detected in the preset period, wherein the method comprises the following steps:
calculating a first root mean square of the power consumption speed in the preset period and the current power consumption speed;
and updating the value of the current power consumption speed to the first root mean square, so as to obtain the current power consumption speed.
CN201710261571.4A 2017-04-20 2017-04-20 Method and device for acquiring residual time length available for equipment Active CN108732502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710261571.4A CN108732502B (en) 2017-04-20 2017-04-20 Method and device for acquiring residual time length available for equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710261571.4A CN108732502B (en) 2017-04-20 2017-04-20 Method and device for acquiring residual time length available for equipment

Publications (2)

Publication Number Publication Date
CN108732502A CN108732502A (en) 2018-11-02
CN108732502B true CN108732502B (en) 2021-04-27

Family

ID=63933591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710261571.4A Active CN108732502B (en) 2017-04-20 2017-04-20 Method and device for acquiring residual time length available for equipment

Country Status (1)

Country Link
CN (1) CN108732502B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109884543B (en) * 2019-01-25 2021-12-14 努比亚技术有限公司 Method and equipment for predicting remaining service life of battery
CN110190643B (en) * 2019-05-24 2024-01-19 广东小天才科技有限公司 Method and device for reminding user of charging, wearable device and storage medium
CN111491282B (en) * 2020-04-09 2023-02-24 苏州维伟思医疗科技有限公司 Data communication method, device and computer readable storage medium
CN114546001A (en) * 2020-11-19 2022-05-27 云米互联科技(广东)有限公司 Control method of cooking equipment, control device and medium
CN112764513A (en) * 2021-01-28 2021-05-07 维沃移动通信有限公司 Prompting method and electronic equipment
CN113038333B (en) * 2021-04-26 2023-04-28 维沃移动通信有限公司 Bluetooth headset control method and device, electronic equipment and readable storage medium
CN114355826A (en) * 2022-01-21 2022-04-15 思翼科技(深圳)有限公司 Unmanned aerial vehicle remote controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2133706A1 (en) * 2008-06-11 2009-12-16 Postech Academy-Industry Foundation Method for predicting available time remaining on battery in mobile devices based on usage patterns
CN104090240A (en) * 2014-06-30 2014-10-08 深圳市中兴移动通信有限公司 Method and device for updating left service time of battery and mobile terminal
JP2014230447A (en) * 2013-05-24 2014-12-08 本田技研工業株式会社 Remaining capacity display device of power storage device and control device of hybrid vehicle
CN105259505A (en) * 2014-07-14 2016-01-20 福特全球技术公司 Methods to Determine Battery Cell Voltage Relaxation Time Based on Cell Usage History and Temperature

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2133706A1 (en) * 2008-06-11 2009-12-16 Postech Academy-Industry Foundation Method for predicting available time remaining on battery in mobile devices based on usage patterns
JP2014230447A (en) * 2013-05-24 2014-12-08 本田技研工業株式会社 Remaining capacity display device of power storage device and control device of hybrid vehicle
CN104090240A (en) * 2014-06-30 2014-10-08 深圳市中兴移动通信有限公司 Method and device for updating left service time of battery and mobile terminal
CN105259505A (en) * 2014-07-14 2016-01-20 福特全球技术公司 Methods to Determine Battery Cell Voltage Relaxation Time Based on Cell Usage History and Temperature

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
纯电动汽车锂电池剩余电量估计研究;周晓凤;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》;20150115;全文 *

Also Published As

Publication number Publication date
CN108732502A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN108732502B (en) Method and device for acquiring residual time length available for equipment
US10191118B2 (en) Battery DC impedance measurement
EP2851700B1 (en) Method and terminal for displaying capacity of battery
EP2952921B1 (en) Secondary battery state detecting device and secondary battery state detecting method
CN101097248B (en) Enhanced-accuracy battery capacity prediction
US8564447B2 (en) Battery life indication techniques for an electronic device
US9255971B2 (en) Device and method for detecting state of health of batteries
US9018893B2 (en) Power control techniques for an electronic device
JP5622700B2 (en) Method and apparatus for monitoring the maximum effective capacity of a battery
CN105510833B (en) Accumulator method for detecting health status, apparatus and system
JP2014006189A (en) Degradation diagnostic device of lithium ion secondary battery
CN116864834A (en) Electric equipment and battery power management method and system thereof
JP2016156771A (en) Storage battery deterioration diagnostic method and storage battery deterioration diagnostic device
CN110426588A (en) Charger detection device and system
JP7217681B2 (en) Measuring apparatus and measuring method for power storage device
WO2019140956A1 (en) Electricity quantity metering accuracy detection method, device and computer storage medium
CN105785269A (en) Battery electricity level metering system and method
CN103942133B (en) A kind of information processing method and electronic equipment
JP7328820B2 (en) Inspection apparatus and inspection method for power storage device
CN112147523B (en) Button cell allowance measuring method and measuring device
JP2010054229A (en) Capacitance measuring apparatus
JP2001095159A (en) Secondary battery unit and method for measuring electric capacity in secondary battery unit
TWI452303B (en) Diagnosing method for state-of-health of batteries
CN210803623U (en) Charger detection device and system
CN114175355A (en) Measurement device and measurement method for electricity storage device

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