Battery electricity metering method and device and vehicle lock

文档序号:6503 发布日期:2021-09-17 浏览:39次 中文

1. A method for measuring the electric quantity of a battery is applied to a vehicle lock and comprises the following steps:

acquiring the total power consumption of all power consumption equipment in a vehicle lock at the current moment;

obtaining the initial residual electric quantity of the battery at the current moment according to the first residual electric quantity of the battery of the vehicle lock at the first moment and the total electric consumption quantity;

and calibrating the initial residual capacity by using a preset calibration algorithm to obtain the target residual capacity of the battery at the current moment.

2. The method of claim 1, wherein the obtaining the target remaining capacity of the battery at the current time by calibrating the initial remaining capacity using a preset calibration algorithm comprises:

acquiring the reference residual capacity of the battery at the current moment;

and calibrating the initial residual capacity by using the reference residual capacity to obtain the target residual capacity.

3. The method of claim 2, wherein the obtaining the reference remaining capacity of the battery at the current time comprises:

acquiring a discharge voltage value of the battery at the current moment;

and inquiring the residual capacity matched with the discharge voltage value as the reference residual capacity in first preset mapping data, wherein the first preset mapping data is used for reflecting the corresponding relation between the discharge voltage value and the residual capacity of the battery.

4. The method of claim 2, wherein calibrating the initial remaining capacity using the reference remaining capacity to obtain the target remaining capacity comprises:

calculating a calibration value according to the initial residual capacity and the reference residual capacity; and acquiring an absolute value of a difference between the initial remaining capacity and the reference remaining capacity;

acquiring a difference value between the initial residual capacity and the calibration value as the target residual capacity under the condition that the initial residual capacity is greater than the reference residual capacity and the absolute value of the difference value is not less than a preset threshold value; and the number of the first and second groups,

acquiring a sum of the initial remaining capacity and the calibration value as the target remaining capacity when the initial remaining capacity is smaller than the reference remaining capacity and an absolute value of the difference is not smaller than the preset threshold; and the number of the first and second groups,

and taking the initial residual capacity as the target residual capacity under the condition that the absolute value of the difference is smaller than the preset threshold.

5. The method of claim 4, further comprising:

and under the condition that the absolute value of the difference is not smaller than the preset threshold, updating a weight coefficient used for acquiring the initial residual capacity at a second moment according to the initial residual capacity and the reference residual capacity, wherein the second moment is later than the current moment.

6. The method of claim 1, wherein obtaining the initial remaining power of the battery at the current time according to the first remaining power of the vehicle lock at the first time and the total power consumption comprises:

acquiring a difference value between the first remaining power and the total power consumption;

and obtaining the initial residual capacity according to the difference and a weight coefficient for obtaining the initial residual capacity at the current moment.

7. The method of claim 1, wherein the obtaining of the total power consumption of all power consuming devices in the lock at the current time comprises:

acquiring historical operation data of first power consumption equipment, wherein the first power consumption equipment is any one of all the power consumption equipment;

obtaining a first power consumption amount of the first power consumption equipment according to the historical operation data;

and obtaining the total power consumption according to the first power consumption.

8. The method of claim 7, wherein obtaining the first power consumption of the first power consuming device based on the historical operating data comprises:

according to the historical operating data, obtaining the state type of the working state of the first power consumption equipment and the starting and stopping time corresponding to the working state;

obtaining a power consumption current value corresponding to the state type according to second preset mapping data, wherein the second preset mapping data are used for reflecting the power consumption current value corresponding to the first power consumption equipment in different working states;

and obtaining the first power consumption according to the starting and stopping time and the power consumption current value.

9. The utility model provides a battery power metering device which characterized in that is applied to the lock, includes:

the total power consumption acquisition module is used for acquiring the total power consumption of all power consumption equipment in the lock at the current moment;

the initial remaining power obtaining module is used for obtaining the initial remaining power of the battery at the current moment according to the first remaining power and the total power consumption of the battery of the vehicle lock at the first moment;

and the calibration module is used for calibrating the initial residual capacity by using a preset calibration algorithm to obtain the target residual capacity of the battery at the current moment.

10. A vehicle lock comprising the battery gauge of claim 9, or,

the vehicle lock includes:

a memory for storing executable instructions;

a processor for operating the vehicle lock to perform the method according to the instruction, wherein the method is as claimed in any one of claims 1 to 8.

Background

Traveling by sharing vehicles takes an increasingly important position in daily life. Based on the increasingly complex service requirements of shared vehicles and the increase of the use frequency of users, more accurate measurement of battery power is required to adjust the service at any time.

Currently, when the battery capacity of a lock on a shared vehicle is measured, a measurement method is generally adopted to estimate the remaining capacity of the battery according to the discharge voltage of the battery, and the problem of poor accuracy exists. Although the method for calculating the remaining power of the battery based on the electricity meter chip and other manners can improve the accuracy of the remaining power, the manner often has the problem of high hardware cost, and is not suitable for being applied to embedded equipment such as a vehicle lock.

Disclosure of Invention

It is an object of the present disclosure to provide a new solution for metering the charge of a battery.

According to a first aspect of the present disclosure, there is provided an embodiment of a method for measuring a quantity of electricity of a battery, applied to a vehicle lock, including:

acquiring the total power consumption of all power consumption equipment in a vehicle lock at the current moment;

obtaining the initial residual electric quantity of the battery at the current moment according to the first residual electric quantity of the battery of the vehicle lock at the first moment and the total electric consumption quantity;

and calibrating the initial residual capacity by using a preset calibration algorithm to obtain the target residual capacity of the battery at the current moment.

Optionally, the calibrating the initial remaining capacity by using a preset calibration algorithm to obtain a target remaining capacity of the battery at the current time includes:

acquiring the reference residual capacity of the battery at the current moment;

and calibrating the initial residual capacity by using the reference residual capacity to obtain the target residual capacity.

Optionally, the obtaining of the reference remaining power of the battery at the current time includes:

acquiring a discharge voltage value of the battery at the current moment;

and inquiring the residual capacity matched with the discharge voltage value as the reference residual capacity in first preset mapping data, wherein the first preset mapping data is used for reflecting the corresponding relation between the discharge voltage value and the residual capacity of the battery.

Optionally, the calibrating the initial remaining capacity using the reference remaining capacity to obtain the target remaining capacity includes:

calculating a calibration value according to the initial residual capacity and the reference residual capacity; and acquiring an absolute value of a difference between the initial remaining capacity and the reference remaining capacity;

acquiring a difference value between the initial residual capacity and the calibration value as the target residual capacity under the condition that the initial residual capacity is greater than the reference residual capacity and the absolute value of the difference value is not less than a preset threshold value; and the number of the first and second groups,

acquiring a sum of the initial remaining capacity and the calibration value as the target remaining capacity when the initial remaining capacity is smaller than the reference remaining capacity and an absolute value of the difference is not smaller than the preset threshold; and the number of the first and second groups,

and taking the initial residual capacity as the target residual capacity under the condition that the absolute value of the difference is smaller than the preset threshold.

Optionally, the method further comprises:

and under the condition that the absolute value of the difference is not smaller than the preset threshold, updating a weight coefficient used for acquiring the initial residual capacity at a second moment according to the initial residual capacity and the reference residual capacity, wherein the second moment is later than the current moment.

Optionally, the obtaining the initial remaining power of the battery at the current time according to the first remaining power and the total power consumption of the vehicle lock at the first time includes:

acquiring a difference value between the first remaining power and the total power consumption;

and obtaining the initial residual capacity according to the difference and a weight coefficient for obtaining the initial residual capacity at the current moment.

Optionally, the obtaining of the total power consumption of all power consumption devices in the vehicle lock at the current time includes:

acquiring historical operation data of first power consumption equipment, wherein the first power consumption equipment is any one of all the power consumption equipment;

obtaining a first power consumption amount of the first power consumption equipment according to the historical operation data;

and obtaining the total power consumption according to the first power consumption.

Optionally, the obtaining a first power consumption amount of the first power consumption device according to the historical operation data includes:

according to the historical operating data, obtaining the state type of the working state of the first power consumption equipment and the starting and stopping time corresponding to the working state;

obtaining a power consumption current value corresponding to the state type according to second preset mapping data, wherein the second preset mapping data are used for reflecting the power consumption current value corresponding to the first power consumption equipment in different working states;

and obtaining the first power consumption according to the starting and stopping time and the power consumption current value.

According to a second aspect of the present disclosure, there is provided an embodiment of a battery fuel gauge device applied to a vehicle lock, including:

the total power consumption acquisition module is used for acquiring the total power consumption of all power consumption equipment in the lock at the current moment;

the initial remaining power obtaining module is used for obtaining the initial remaining power of the battery at the current moment according to the first remaining power and the total power consumption of the battery of the vehicle lock at the first moment;

and the calibration module is used for calibrating the initial residual capacity by using a preset calibration algorithm to obtain the target residual capacity of the battery at the current moment.

According to a third aspect of the present disclosure, there is provided an embodiment of a vehicle lock, comprising a battery gauge device as described in the second aspect of the present specification, or,

the vehicle lock includes:

a memory for storing executable instructions;

and the processor is used for operating the vehicle lock to execute the method according to the control of the instruction.

One beneficial effect of the embodiments of the present disclosure is that according to the embodiments of the present disclosure, by obtaining the total power consumption amount of all power consuming devices in the lock at the current time, and according to the first remaining power amount of the battery of the lock at the first time and the total power consumption amount, the initial remaining power amount of the battery at the current time can be obtained; and then, calibrating the initial residual capacity by using a preset calibration algorithm, so that the target residual capacity with higher accuracy can be obtained. Compared with the method for estimating the remaining capacity of the battery according to the discharge voltage of the battery in the prior art, the method provided by the embodiment can obtain the target remaining capacity of the battery of the vehicle lock more accurately on the premise of not increasing the hardware cost.

Other features of the present description and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description, serve to explain the principles of the specification.

FIG. 1 is a schematic diagram of a shared vehicle system capable of implementing embodiments of the present disclosure.

Fig. 2 is a schematic flow chart of a method for calculating battery power according to an embodiment of the present disclosure.

Fig. 3 is a schematic diagram of a framework of a battery power calculation process according to an embodiment of the present disclosure.

Fig. 4 is a block schematic diagram of a battery fuel gauge provided in an embodiment of the present disclosure;

fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.

Detailed Description

Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.

The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.

In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.

< hardware configuration >

FIG. 1 is a schematic diagram of a shared vehicle system capable of implementing embodiments of the present disclosure.

As shown in fig. 1, the vehicle system 100 includes a server 1000, a user terminal 2000, and a vehicle 3000.

The server 1000 and the user terminal 2000, and the server 1000 and the vehicle 3000 may be communicatively connected through a network N. The network N over which the vehicle 3000 communicates with the server 1000 and the user terminal 2000 communicates with the server 1000 may be the same or different.

The server 1000 provides a service point for processes, databases, and communications facilities. The server 1000 may be a unitary server, a distributed server across multiple computers, a computer data center, a cloud server, or a cloud-deployed server cluster, etc. The server may be of various types, such as, but not limited to, a web server, a news server, a mail server, a message server, an advertisement server, a file server, an application server, an interaction server, a database server, or a proxy server. In some embodiments, each server may include hardware, software, or embedded logic components or a combination of two or more such components for performing the appropriate functions supported or implemented by the server. For example, a server, such as a blade server, a cloud server, etc., or may be a server group consisting of a plurality of servers, which may include one or more of the above types of servers, etc.

In one embodiment, the server 1000 may be as shown in fig. 1 and may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, and the like.

Processor 1100 is used to execute computer programs, which may be written in instruction sets of architectures such as x86, Arm, RISC, MIPS, SSE, and the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, various bus interfaces such as a serial bus interface (including a USB interface), a parallel bus interface, and the like. The communication device 1400 is capable of wired or wireless communication, for example.

In this embodiment, the memory 1200 of the server 1000 is used for storing a computer program for controlling the processor 1100 to perform operations for realizing monitoring and the like of the vehicle, including, for example: according to an unlocking request sent by the terminal device 2000 of the user, an unlocking instruction is sent to the vehicle, so that the vehicle can be ridden; according to a locking request sent by the terminal device 2000 of the user, a locking instruction is sent to the vehicle 3000, so that the vehicle 3000 is in a non-riding state; and, according to the failure information reported by the vehicle 3000, performing failure processing and the like on the vehicle 3000. The skilled person can design the computer program according to the disclosed solution. How the computer program controls the processor to operate is well known in the art and will not be described in detail here.

Although a plurality of devices in the server 1000 are shown in fig. 1, the present invention may only relate to some of the devices, for example, the server 1000 only relates to the processor 1100, the memory 1200 and the communication device 1400.

In this embodiment, the user terminal 2000 is, for example, a mobile phone, a portable computer, a tablet computer, a palm computer, a wearable device, or the like.

The user terminal 2000 is installed with a vehicle application client, and a user can operate the vehicle application client to achieve the purpose of using the vehicle 3000.

As shown in fig. 1, the user terminal 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a display device 2500, an input device 2600, a speaker 2700, a microphone 2800, and the like.

The processor 2100 is used to execute a computer program, which may be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, and so on. The memory 2200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 2300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 2400 can perform wired or wireless communication, for example, the communication device 2400 may include at least one short-range communication module, for example, any module that performs short-range wireless communication based on a short-range wireless communication protocol such as a Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, and the like, and the communication device 2400 may also include a long-range communication module, for example, any module that performs WLAN, GPRS, 2G/3G/4G/5G long-range communication. The display device 2500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 2600 may include, for example, a touch screen, a keyboard, and the like. The user terminal 2000 may output an audio signal through the speaker 2700 and collect an audio signal through the microphone 2800.

In this embodiment, the memory 2200 of the user terminal 2000 is used to store a computer program for controlling the processor 2100 to operate to perform a method of using a vehicle, including, for example: acquiring a unique identifier of a vehicle 3000, generating an unlocking request for the vehicle 3000, and sending the unlocking request to the server 1000; send a lock-off request to the server 1000 for that vehicle 3000; and, bill calculation and the like are performed according to the charge settlement notice transmitted from the server 1000. A skilled person can design a computer program according to the solution disclosed in the present invention. How computer programs control the operation of the processor is well known in the art and will not be described in detail herein.

Although a plurality of devices in the user terminal 2000 are illustrated in fig. 1, the present invention may relate to only some of the devices, for example, the user terminal 2000 relates to only the processor 2100, the memory 2200, the communication device 2400, and the display device 2500.

In this embodiment, the vehicle 3000 may be a bicycle as shown in fig. 1, or may be in various forms such as a tricycle, an electric bicycle, a motorcycle, and a four-wheel passenger vehicle, and the vehicle 3000 includes a lock that can be used to implement the battery power calculation method according to any one of the embodiments.

As shown in fig. 1, the locks of the vehicle 3000 may include a processor 3100, a memory 3200, an interface device 3300, a communication device 3400, an acceleration sensor 3500, a gyroscope 3600, a positioning module 3700, a speaker 3800, and so forth.

The processor 3100 may be a microprocessor MCU or the like. The memory 3200 may comprise, for example, a ROM (read only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, or the like. The interface 3300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 3400 is capable of wired or wireless communication, for example, the communication device 2400 may include at least one short-range communication module, for example, any module that performs short-range wireless communication based on a short-range wireless communication protocol such as a Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, and the like, and the communication device 2400 may also include remote communication. The acceleration sensor 3500 may be used to measure the acceleration of the vehicle, and the gyroscope 3600 may be used to measure the angular velocity of the vehicle. The positioning device 3700 may include, for example, a base station positioning module, a global Navigation Satellite system gnss (global Navigation Satellite system) positioning module, and the like. The GNSS Positioning module may be, for example, a GPS (Global Positioning System) module or a beidou module.

Although a plurality of devices in the vehicle lock are shown in fig. 1, the present invention may relate only to some of the devices, for example, only to the processor 3100, the memory 3200, the communication device 3400, and the acceleration sensor 3500 in the vehicle lock.

It should be understood that although fig. 1 shows only one server 1000, one user terminal 2000, and one vehicle 3000, it is not meant to limit the respective numbers, and the vehicle system 100 may include a plurality of servers 1000, a plurality of user terminals 2000, a plurality of vehicles 3000, and the like.

< method examples >

Fig. 2 is a schematic flow chart of a battery electric quantity measuring method provided by an embodiment of the present disclosure, which may be implemented by a cost-sensitive embedded device facility, specifically, a lock on a shared vehicle, for example, the lock on the vehicle 1000 in fig. 1, and the battery electric quantity measuring method of the present embodiment is described below by taking the lock shown in fig. 1 as an example.

As shown in fig. 2, the method of the present embodiment may include the following steps S2100-S2300, which will be described in detail below.

In step S2100, the total power consumption of all power consuming devices in the lock at the current time is obtained.

The power consumption equipment refers to various equipment which is integrated in the lock and needs to be driven by electric power. For example, the device may be a processor, a communication device, a positioning module, a speaker, etc. in the vehicle lock.

The total power consumption amount, which may also be referred to as an accumulated power consumption amount, is a total value of power consumed by all power consuming devices in the vehicle lock within a target time range.

Specifically, the total charge of the battery of the vehicle lock is generally fixed, for example, the total current may be generally expressed as "100%", and the power consumption of each power consumption device in the vehicle lock in different operating states is often different. Therefore, in this embodiment, in order to accurately obtain the remaining power of the battery of the vehicle lock, the total power consumption of all power consuming devices in the vehicle lock may be counted, and an initial remaining power that can reflect the remaining power of the battery to a certain extent is obtained according to the total power consumption of the battery and the total power consumption.

In one embodiment, the obtaining the total power consumption of all power consuming devices in the vehicle lock includes: acquiring historical operation data of first power consumption equipment, wherein the first power consumption equipment is any one of all the power consumption equipment; obtaining a first power consumption amount of the first power consumption equipment according to the historical operation data; and obtaining the total power consumption according to the first power consumption.

The historical operating data is data indicating a historical operating state of the power consuming apparatus within a target time range.

The target time range may be a time range from a first time to a current time, where the first time is earlier than the current time, and specifically may be an activation time of the lock; alternatively, the target remaining capacity of the battery may be acquired at any time before the current time.

According to the above description, the first remaining capacity of the battery at the first time is the target remaining capacity of the battery of the vehicle lock calculated at the first time.

In practice, the historical operating data may be obtained from a system log of the vehicle lock, and the historical operating data at least includes each operating state of the corresponding power consumption device during the operating process, and the start-stop time corresponding to each operating state.

Taking the power consuming device as an example of a communication device in the vehicle lock, the communication device is, for example, a 2G communication module. In practice, the operating state of the 2G communication module generally includes a standby state and an active state. When the vehicle and the server perform data interaction, the 2G module is in an activated state, and the 2G communication module is normally switched to a standby state after the interaction is finished. Accordingly, the historical operational data of the 2G communication module may be in the form of "standby state, start time t1_ start, end time t1_ end", "active state, start time t2_ start, end time t2_ end", … "," standby state, start time tn-1_ start, end time tn-1_ end "," standby state, start time tn _ start, end time tn _ end ".

In practice, the power consumption of each power consuming device in the lock in different operating states, that is, the power consumption current, is often fixed. Therefore, after the historical operation data of each power consumption device is obtained, the power consumption corresponding to each power consumption device can be rapidly calculated according to the historical operation data, and the total power consumption of all the power consumption devices in the lock can be obtained by obtaining the sum of the power consumption of each power consumption device.

Specifically, the obtaining a first power consumption amount of the first power consumption device according to the historical operation data includes: according to the historical operating data, obtaining the state type of the working state of the first power consumption equipment and the starting and stopping time corresponding to the working state; obtaining a power consumption current value corresponding to the state type according to second preset mapping data, wherein the second preset mapping data are used for reflecting the power consumption current value corresponding to the first power consumption equipment in different working states; and obtaining the first power consumption according to the starting and stopping time and the power consumption current value.

The state type may be a unique identifier that identifies an operating state. Taking the 2G communication module as an example, the standby state may be denoted as "10" and the active state may be denoted as "11".

During specific implementation, the working time of the power consumption equipment in the lock under different working states can be accurately obtained according to historical operating data of the power consumption equipment in the lock; in addition, the second preset mapping data, that is, data reflecting the power consumption current values of the power consumption device in different operating states, may also be obtained through a preliminary test. Therefore, the total working duration of the power consumption equipment in different working states can be correspondingly obtained according to the historical operating data of the power consumption equipment; then, multiplying the working time length of each working state by the power consumption current value corresponding to the power consumption equipment in the working state, and obtaining the power consumption of the power consumption equipment in the working state; the power consumption of the power consumption equipment in each working state is obtained in sequence, and the power consumption of the power consumption equipment in the corresponding target time range can be obtained by adding the power consumption of the power consumption equipment in sequence.

Still taking the power consuming device as an example of a 2G communication module in a car lock, it can be known from the above description that the historical operating data may be in the form of "standby state, start time t1_ start, end time t1_ end", "active state, start time t2_ start, end time t2_ end", … "," standby state, start time tn-1_ start, end time tn-1_ end "," standby state, start time tn _ start, and end time tn _ end "; setting the power consumption current value obtained by the test in the standby state to be A1 and the power consumption current value in the activated state to be A2, the power consumption of the power consumption device in the target time range can be calculated by the following formula: the power consumption of the power consuming device is ((t1_ end-t1_ start) + … + (tn-1_ end-tn-1_ start)). a1+ ((t2_ end-t2_ start) + … + (tn _ end-tn _ start)). a 2.

In the above, how to obtain the power consumption of the power consuming device is described by taking the power consuming device as a communication device in the vehicle lock, for example, a 2G communication module. In specific implementation, the power consumption of each power consumption device in the lock in a target time range can be obtained according to the method; and then, adding the obtained power consumption amounts to obtain the total power consumption amount of all the power consumption equipment in the lock in the target time range.

After step S2100, step S2200 is performed to obtain an initial remaining capacity of the battery of the lock at the current time according to the first remaining capacity of the battery at the first time and the total power consumption.

After the total power consumption of all power consumption equipment in the lock is obtained through the method, the initial remaining power of the battery at the current moment can be calculated and obtained according to the first remaining power and the total power consumption of the battery of the lock at the first moment.

As can be seen from the related description in step S2200, the first remaining capacity may be a target remaining capacity of the battery of the lock acquired at the first time, where the first remaining capacity may be "100%" when the first time corresponds to the activation time of the lock.

In one embodiment, the following formula may be used to calculate the initial remaining capacity of the battery of the vehicle lock at the current moment: the initial remaining capacity ((first remaining capacity-total power consumption)/total battery capacity) × 100%.

However, in consideration of the individual dispersion of the power consumption of the power consuming apparatus, in order to improve the accuracy of the initial remaining power amount, the accuracy of the target remaining power amount is improved. In one embodiment, the obtaining the initial remaining capacity of the battery at the current time according to the first remaining capacity and the total power consumption of the battery of the vehicle lock at the first time includes: acquiring a difference value between the first remaining power and the total power consumption; and obtaining the initial residual capacity according to the difference and a weight coefficient for obtaining the initial residual capacity at the current moment.

Specifically, after a difference is calculated according to a first remaining capacity of the battery at a first time and a total power consumption of all power consumption devices, the difference can be further calibrated through a pre-calculated weight coefficient to obtain an initial remaining capacity with high accuracy; that is, the initial remaining capacity of the battery may be calculated using the following equation: the initial remaining capacity ((first remaining capacity-total power consumption) × weight coefficient/total battery power) × 100%.

In this embodiment, the weighting factor for calibrating the initial remaining capacity is a value greater than 0 and not greater than 1, and the weighting factor can be obtained by calculation in advance; in addition, in the subsequent step, in the process of calibrating the initial remaining capacity by using the preset calibration algorithm to obtain the target remaining capacity, the weight coefficient is updated, so that the accuracy of the initial remaining capacity is further improved.

Step S2300, calibrating the initial remaining capacity by using a preset calibration algorithm, to obtain a target remaining capacity of the battery at the current time.

Specifically, after the initial remaining capacity of the battery of the vehicle lock at the current time is obtained through the above steps, the target remaining capacity of the battery may be obtained by calibrating the initial remaining capacity.

In one embodiment, the obtaining the target remaining capacity of the battery at the current time by calibrating the initial remaining capacity using a preset calibration algorithm includes: acquiring the reference residual capacity of the battery at the current moment; and calibrating the initial residual capacity by using the reference residual capacity to obtain the target residual capacity.

The reference remaining capacity is a reference value reflecting the remaining capacity of the battery at the present time.

In one embodiment, the obtaining the reference remaining capacity of the battery includes: acquiring a discharge voltage value of the battery at the current moment; and inquiring the residual capacity matched with the discharge voltage value as the reference residual capacity in first preset mapping data, wherein the first preset mapping data is used for reflecting the corresponding relation between the discharge voltage value and the residual capacity of the battery.

In specific implementation, the first preset mapping data can be obtained according to a discharging voltage and electric quantity curve of the vehicle lock obtained through a pre-test.

For example, in the case that the current discharge voltage value of the battery is V1, the reference remaining capacity at the current time may be queried to be SOC1 according to the first preset mapping data.

In one embodiment, the calibrating the initial remaining capacity using the reference remaining capacity to obtain the target remaining capacity includes: calculating a calibration value according to the initial residual capacity and the reference residual capacity; and acquiring an absolute value of a difference between the initial remaining capacity and the reference remaining capacity; acquiring a difference value between the initial residual capacity and the calibration value as the target residual capacity under the condition that the initial residual capacity is greater than the reference residual capacity and the absolute value of the difference value is not less than a preset threshold value; and acquiring a sum of the initial remaining capacity and the calibration value as the target remaining capacity when the initial remaining capacity is smaller than the reference remaining capacity and an absolute value of the difference is not smaller than the preset threshold; and taking the initial residual capacity as the target residual capacity when the absolute value of the difference is smaller than the preset threshold.

The calibration value is a value for calibrating the initial remaining capacity. In the present embodiment, the calibration value can be calculated by the following formula: the calibration value is ((| initial remaining power amount-reference remaining power amount |)/2.

In this embodiment, after the initial remaining capacity and the reference remaining capacity are compared and the calibration value and the absolute value of the difference between the calibration value and the reference remaining capacity are obtained, the target remaining capacity of the battery of the vehicle lock at the current moment can be calculated and obtained through a preset algorithm.

For example, when the initial remaining capacity is greater than the reference remaining capacity and the absolute value of the difference between the initial remaining capacity and the reference remaining capacity is not less than the preset threshold, it indicates that the deviation between the calculated initial remaining capacity and the actual remaining capacity of the battery is large, and the initial remaining capacity needs to be reduced to a certain extent to calibrate the value thereof to obtain the target remaining capacity with high accuracy. Specifically, in this case, the target remaining capacity may be obtained by calculation with the following formula: the target remaining capacity is the initial remaining capacity-calibration value.

For another example, when the initial remaining capacity is smaller than the reference remaining capacity and the absolute value of the difference between the initial remaining capacity and the reference remaining capacity is not smaller than the preset threshold, it also indicates that the deviation between the calculated initial remaining capacity and the actual remaining capacity of the battery is large, and the initial remaining capacity needs to be increased to a certain extent to calibrate the value thereof to obtain the target remaining capacity with high accuracy. Specifically, in this case, the target remaining capacity may be obtained by calculation with the following formula: and the target residual capacity is equal to the initial residual capacity plus the calibration value.

For another example, when the absolute value of the difference between the initial residual capacity and the reference residual capacity is smaller than the preset threshold, it indicates that the initial residual capacity and the reference residual capacity are closer to each other, and at this time, the value of the initial residual capacity may be directly used as the value of the target residual capacity, that is, the target residual capacity is equal to the initial residual capacity.

In addition, as described in step S2200, in the process of performing step S2300 to calibrate the initial remaining capacity using the calibration algorithm described above to obtain the target remaining capacity, the value of the weight coefficient used for calculating the initial remaining capacity may be updated according to the magnitude and difference relationship between the initial remaining capacity and the reference remaining capacity.

Specifically, in an embodiment, the method provided in this embodiment further includes: and under the condition that the absolute value of the difference is not smaller than the preset threshold, updating a weight coefficient used for acquiring the initial residual capacity at a second moment according to the initial residual capacity and the reference residual capacity, wherein the second moment is later than the current moment.

For example, in a case where the initial remaining capacity is greater than the reference remaining capacity, and an absolute value of a difference between the two is not less than a preset threshold, a value of the weight at the next time may be obtained and the weight coefficient may be updated by calculating by the following formula: the weight coefficient is 1- ((initial remaining capacity-reference remaining capacity)/initial remaining capacity)/2.

For another example, when the initial remaining capacity is less than the reference remaining capacity, and the absolute value of the difference between the two is not less than the preset threshold, the value of the weight at the next time may be obtained and the weight may be updated by the following formula: the weight coefficient is 1+ ((initial remaining capacity-reference remaining capacity)/initial remaining capacity)/2.

For another example, when the absolute value of the difference between the two is smaller than the preset threshold, the value of the weighting coefficient at the next time is directly updated to 1.

Please refer to fig. 3, which is a block diagram of a battery power calculation process according to an embodiment of the disclosure. As shown in fig. 3, when the target remaining power of the battery of the vehicle lock needs to be calculated, the initial remaining power calculation module may take the historical operation information of each power consumption device in the working process of the vehicle lock and the power consumption current value of each power consumption device in different working states as input, and output the initial remaining power to the calibration module; in the calibration module, reference residual capacity can be obtained according to the current discharge voltage value of the battery and the discharge voltage electric quantity curve of the battery; calibrating the initial residual capacity according to the reference residual capacity and outputting a target residual capacity; in addition, in the calibration process, an updated value of the weight coefficient may be output to the initial remaining power calculation module.

To sum up, in the method provided by the embodiment of the present disclosure, the total power consumption of all power consuming devices in the lock at the current time is obtained, and according to the first remaining power of the battery of the lock at the first time and the total power consumption, the initial remaining power of the battery at the current time can be obtained; and then, calibrating the initial residual capacity by using a preset calibration algorithm, so that the target residual capacity with higher accuracy can be obtained. Compared with the method for estimating the remaining capacity of the battery according to the discharge voltage of the battery in the prior art, the method provided by the embodiment can obtain the target remaining capacity of the battery of the vehicle lock more accurately on the premise of not increasing the hardware cost.

< apparatus embodiment >

Corresponding to the above embodiments, fig. 4 is a schematic block diagram of a battery electricity metering device provided in the embodiments of the present disclosure. The device can be applied to a vehicle lock. As shown in fig. 4, the battery gauge device may include: a total power consumption amount obtaining module 4100, an initial remaining power obtaining module 4200, and a calibration module 4300.

The total power consumption obtaining module 4100 is configured to obtain the total power consumption of all power consuming devices in the lock at the current time.

In one embodiment, the total power consumption acquiring module 4100, when acquiring the total power consumption of all power consuming devices in the lock at the current time, may be configured to: acquiring historical operation data of first power consumption equipment, wherein the first power consumption equipment is any one of all the power consumption equipment; obtaining a first power consumption amount of the first power consumption equipment according to the historical operation data; and obtaining the total power consumption according to the first power consumption.

In an embodiment, the total power consumption obtaining module 4100, when obtaining the first power consumption of the first power consuming device according to the historical operating data, may be configured to: according to the historical operating data, obtaining the state type of the working state of the first power consumption equipment and the starting and stopping time corresponding to the working state; obtaining a power consumption current value corresponding to the state type according to second preset mapping data, wherein the second preset mapping data are used for reflecting the power consumption current value corresponding to the first power consumption equipment in different working states; and obtaining the first power consumption according to the starting and stopping time and the power consumption current value.

The initial remaining power obtaining module 4200 is configured to obtain an initial remaining power of the battery at a current time according to a first remaining power of the battery of the vehicle lock at a first time and the total power consumption.

In one embodiment, the initial remaining power obtaining module 4200, when obtaining the initial remaining power of the battery at the current time according to the first remaining power of the lock at the first time and the total power consumption, may be configured to: acquiring a difference value between the first remaining power and the total power consumption; and obtaining the initial residual capacity according to the difference and a weight coefficient for obtaining the initial residual capacity at the current moment.

The calibration module 4300 is configured to calibrate the initial remaining power by using a preset calibration algorithm, and obtain a target remaining power of the battery at a current time.

In one embodiment, the calibration module 4300, when obtaining the reference remaining capacity of the battery at the current time, may be configured to: acquiring a discharge voltage value of the battery at the current moment; and inquiring the residual capacity matched with the discharge voltage value as the reference residual capacity in first preset mapping data, wherein the first preset mapping data is used for reflecting the corresponding relation between the discharge voltage value and the residual capacity of the battery.

In one embodiment, the calibration module 4300, when calibrating the initial remaining capacity using the reference remaining capacity to obtain the target remaining capacity, may be configured to: calculating a calibration value according to the initial residual capacity and the reference residual capacity; and acquiring an absolute value of a difference between the initial remaining capacity and the reference remaining capacity; acquiring a difference value between the initial residual capacity and the calibration value as the target residual capacity under the condition that the initial residual capacity is greater than the reference residual capacity and the absolute value of the difference value is not less than a preset threshold value; and acquiring a sum of the initial remaining capacity and the calibration value as the target remaining capacity when the initial remaining capacity is smaller than the reference remaining capacity and an absolute value of the difference is not smaller than the preset threshold; and taking the initial residual capacity as the target residual capacity when the absolute value of the difference is smaller than the preset threshold.

In an embodiment, the apparatus 4000 further includes a weight coefficient updating module, configured to update a weight coefficient used for obtaining the initial remaining power at a second time according to the initial remaining power and the reference remaining power when an absolute value of the difference is not smaller than the preset threshold, where the second time is later than the current time.

< apparatus embodiment >

Corresponding to the above embodiments, in this embodiment, a vehicle lock is further provided, which may include the battery electricity metering device 4000 according to any embodiment of the present disclosure, for implementing the battery electricity metering method according to any embodiment of the present disclosure.

As shown in fig. 5, the lock 5000 may further include a processor 5200 and a memory 5100, the memory 5100 being configured to store executable instructions; the processor 5200 is configured to operate the vehicle lock according to the control of the instruction to perform the battery power metering method according to any embodiment of the present disclosure.

The various modules of apparatus 4000 above may be implemented by processor 5200 executing the instructions to perform a method according to any of the embodiments of the present invention.

One or more embodiments of the present description may be a system, method, and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the specification.

The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.

The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.

The computer program instructions for carrying out operations for embodiments of the present description may be assembly instructions, Instruction Set Architecture (ISA) instructions, machine related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), can execute computer-readable program instructions to implement various aspects of the present description by utilizing state information of the computer-readable program instructions to personalize the electronic circuit.

Aspects of the present description are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the description. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.

These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present description. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.

The foregoing description of the embodiments of the present specification has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the application is defined by the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:基于机器学习的缺陷电池筛选方法、设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类