Battery, voltage sampling method and electric device
By integrating the voltage sampling system and communication system on the battery and adjusting the communication and sampling timing through the controller, the problem of battery voltage acquisition dependent on the power consumption device in the prior art is solved, and the voltage acquisition and transmission of the battery itself is realized, and data accuracy is improved.
Patent Information
- Application Number
- CN202311446707.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, voltage collection at both ends of the battery requires a voltage sampling system to be set up in the electrical device, and voltage acquisition cannot be achieved by the electrical device without the voltage sampling system.
The voltage sampling system and communication system are integrated on the battery, and the communication timing and sampling timing interval settings are controlled by the controller to reduce the interference of voltage sampling when the communication system sends data.
The battery itself collects and transmits voltages, improves the accuracy of voltage data, and reduces the dependence on electrical devices.
Smart Images

Figure CN119944136A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a battery, a voltage sampling method and an electrical device. Background Art
[0002] At present, with the improvement of living standards, people are increasingly using various batteries in daily life, such as power batteries as core components of electric vehicles. The voltage or temperature at both ends of the battery and other data may reflect the health status of the battery, but the current method for collecting the voltage at both ends of the battery is generally to set up a voltage sampling system in the power device, and connect the battery to the voltage sampling system to obtain the voltage at both ends of the battery. The problems with this method include that a voltage sampling system needs to be set up in the power device to collect the voltage at both ends of the battery, and some power devices may not have a voltage sampling system, so that the voltage at both ends of the battery cannot be collected. Summary of the invention
[0003] The present application at least provides a battery, a voltage sampling method and an electrical device.
[0004] The present application provides a battery, which includes: a shell, a communication system, a voltage sampling system and a controller; the communication system is connected to the shell; the voltage sampling system is connected to the shell; the controller is connected to the communication system and the voltage sampling system respectively, and is used to control the communication timing of the communication system and the sampling timing interval setting of the voltage sampling system.
[0005] In the above scheme, a voltage sampling system is set on the battery to facilitate the voltage sampling system to sample the voltage of the battery, and a communication system is set on the battery to facilitate the communication between the battery and the controllers of other devices or electrical devices, such as transmitting the collected voltage to the controllers of other devices or electrical devices. The differential signal used by the communication system in the battery in the process of sending data is likely to interfere with the voltage sampling. Therefore, in this scheme, the controller in the battery controls the communication timing of the communication system and the sampling timing interval setting of the sampling system, which can reduce the overlap time of the communication system sending data and the voltage sampling system sampling voltage, thereby improving the accuracy of the voltage data obtained by voltage sampling.
[0006] In some embodiments, the housing includes a shell having an opening and an end cover, and the communication system, the voltage sampling system, and the controller are connected to the end cover.
[0007] In the above scheme, by connecting the communication system, the voltage sampling system and the controller to the end cover respectively, the communication system, the voltage sampling system and the controller can be conveniently removed from the battery for daily maintenance or overhaul.
[0008] In some embodiments, the communication system, the voltage sampling system, and the controller are disposed on a side of the end cover facing the housing.
[0009] In the above scheme, by setting the voltage sampling system on the side of the end cap facing the shell, that is, setting it inside the battery, it is more convenient to carry and can reduce the interference of external factors during the voltage sampling process, thereby improving the accuracy of the sampled voltage data. In addition, the communication system and the controller are also set on the side of the end cap facing the shell, which facilitates the interaction between the controller and the communication system and the voltage sampling system.
[0010] In some embodiments, the communication system, the voltage sampling system, and the controller are integrated on a single chip.
[0011] In the above solution, by integrating the communication system, the voltage sampling system and the controller on one chip, the space occupied by the discrete chip can be reduced, thereby achieving the effect of relatively reducing the volume of the battery.
[0012] The present application provides a voltage sampling method, which is applied to any of the above-mentioned batteries. The voltage sampling method includes: obtaining the communication timing of a communication system in the battery and the sampling timing of a voltage sampling system; adjusting at least one of the communication timing and the sampling timing so as to set the communication timing and the sampling timing interval; sampling the voltage at both ends of the battery according to the current sampling timing to obtain voltage data.
[0013] In the above scheme, by obtaining the communication timing of the communication system in the battery and the sampling timing of the voltage sampling system, adjusting the communication timing or the sampling timing, or adjusting the communication timing and the sampling timing at the same time, the communication timing and the sampling timing are set at an interval, thereby reducing the interference of the communication system on the voltage sampling when sending data, thereby improving the accuracy of the voltage data obtained by sampling.
[0014] In some embodiments, adjusting at least one of the communication timing and the sampling timing includes: taking one of the communication timing and the sampling timing as a reference timing and adjusting the other timing.
[0015] In the above solution, by adjusting one of the timings based on the other timing, this solution is simpler than adjusting the two timings at the same time.
[0016] In some embodiments, the communication timing is a reference timing, and the sampling timing includes a sampling time node. One of the communication timing and the sampling timing is used as the reference timing, and the other timing is adjusted to obtain the target timing, including: obtaining the protection interval duration between adjacent frames in the communication timing; and determining the sampling time node of the voltage sampling system in the battery according to the protection interval duration.
[0017] In the above scheme, the protection interval duration between adjacent frames in the communication sequence is obtained, and the sampling time of the voltage sampling circuit in the battery is determined by the protection interval duration. Compared with not referring to the protection interval duration, this scheme can reduce the impact of the communication system sending data frames on the voltage sampling circuit when collecting voltage, thereby improving the accuracy of the sampled voltage data.
[0018] In some embodiments, the sampling time node includes a sampling start time node, and the sampling time node of the voltage sampling system in the battery is determined according to the protection interval duration, including: obtaining the time required for a single sampling of the voltage sampling system; based on the time required for a single sampling and the protection interval duration, determining the sampling start time node of the single sampling.
[0019] In the above scheme, the sampling start time node is determined by referring to the time required for a single sampling of the voltage sampling system. Compared with randomly determining the sampling start time node, the overlap time between the sampling process and the data frame sending process can be reduced, thereby improving the accuracy of voltage sampling.
[0020] In some embodiments, obtaining the time required for a single sampling of the voltage sampling system includes: obtaining the sum of a response time of the voltage sampling system and a single sampling duration as the time required for the single sampling.
[0021] In the above scheme, by combining the response time of the voltage sampling system and the duration of a single sampling, the time required for a single voltage sampling is comprehensively considered, so that the sampling start time node of the single sampling can be better set and the overlap time of the data transmission process and the voltage sampling process can be reduced.
[0022] In some embodiments, based on the time required for a single sampling and the protection interval time, a sampling start time node for a single sampling is determined, including: in response to the time required for a single sampling being greater than or equal to the protection interval time, determining a first sampling start time node for the single sampling; or, in response to the time required for a single sampling being less than the protection interval time, determining a second sampling start time node for the single sampling; wherein the time interval between the first sampling start time node and the center point of the protection interval time is greater than the time interval between the second sampling start time node and the center point of the protection interval time.
[0023] In the above scheme, if the time required for a single sampling is greater than or equal to the protection interval duration, then in order to ensure that fewer sampling time nodes coincide with the time of sending data frames, the sampling circuit can be controlled to perform sampling earlier, that is, the coincidence time between the response time and the sending data frame is increased, thereby reducing the coincidence time between the duration of a single sampling and the sending data frame. If the time required for a single sampling is less than the protection interval duration, the coincidence time between the response time and the sending data frame can be further reduced, that is, the time interval between the first sampling time node and the center point of the protection interval duration is greater than the time interval between the second sampling start time node and the center point of the protection interval duration.
[0024] In some embodiments, in response to the duration required for a single sampling being greater than or equal to the protection interval duration, determining the first sampling start time node of the single sampling includes: aligning the center point of the single sampling duration with the center point of the protection interval duration to obtain the first sampling start time node; or, in response to the duration required for a single sampling being less than the protection interval duration, determining the second sampling start time node of the single sampling includes: aligning the center point of the duration required for the single sampling with the center point of the protection interval duration to obtain the second sampling start time node.
[0025] In the above scheme, if the duration required for a single sampling is greater than or equal to the protection interval duration, then the single sampling duration can be guaranteed to be within the protection interval as much as possible, and the center point of the single sampling duration can be aligned with the center point of the protection interval duration to determine the first sampling start time node, or if the duration required for a single sampling is less than the protection interval duration, then by aligning the center point of the single sampling duration with the center point of the protection interval duration, the overlap time between the response time and the sending of the data frame can be further reduced.
[0026] In some embodiments, the method further includes: determining a start time node and an end time node of a protection interval between adjacent frames in the communication system; and determining a duration of the protection interval based on the start time node and the end time node of the protection interval.
[0027] In the above scheme, by obtaining the start time node and end time node of the protection interval between each adjacent frame in the communication system, the protection interval duration can be obtained, and by obtaining the start time node and end time node of the protection interval, it is convenient to control the voltage sampling circuit according to the start time node of the protection interval and the sampling start time node of the single sampling, and determine the sampling start time node of the single sampling in timing.
[0028] In some embodiments, determining the start time node and end time node of the protection interval between adjacent frames in a communication system includes: synchronizing the clock of a voltage sampling circuit with the clock of the communication system; and determining the start time node and the end time node based on the synchronized clock of the communication system.
[0029] In the above solution, by synchronizing the clock of the voltage sampling circuit with the clock of the communication system, it is convenient to subsequently determine the protection interval duration according to the synchronized clock of the communication system.
[0030] In some embodiments, the method further includes: performing data processing on the voltage data sampled at multiple moments to obtain processed voltage data, the data processing including digital filtering and / or smoothing; and sending the processed voltage data to a preset recipient.
[0031] In the above scheme, by performing data processing such as digital filtering and smoothing on the sampled voltage data, the subsequent preset receiver can perform corresponding processing according to more accurate voltage data.
[0032] The present application provides an electrical device, which includes the above-mentioned battery.
[0033] In the above scheme, a voltage sampling system is set on the battery to facilitate the voltage sampling system to sample the voltage of the battery, and a communication system is set on the battery to facilitate the communication between the battery and the controllers of other devices or electrical devices, such as transmitting the collected voltage to the controllers of other devices or electrical devices. The differential signal used by the communication system in the battery in the process of sending data is likely to interfere with the voltage sampling. Therefore, in this scheme, the controller in the battery controls the communication timing of the communication system and the sampling timing interval setting of the sampling system, which can reduce the overlap time of the communication system sending data and the voltage sampling system sampling voltage, thereby improving the accuracy of the voltage data obtained by voltage sampling.
[0034] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0036] Figure 1 is a schematic structural diagram of a vehicle provided in some embodiments;
[0037] Figure 2 Some embodiments provide a schematic diagram of a sub-process for determining a sampling time node;
[0038] Figure 3 is a schematic diagram of the structure of a battery provided by some embodiments;
[0039] Figure 4 is a flow chart of an embodiment of a voltage sampling method provided by some embodiments;
[0040] Figure 5 It is a schematic diagram of the structure of a communication system data frame provided by some embodiments. DETAILED DESCRIPTION
[0041] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.
[0042] In the following description, for the purpose of explanation rather than limitation, specific details such as specific subsystem structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.
[0043] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.
[0044] Considering that some electrical devices may not have a voltage sampling system, in order to improve the monitoring of the battery in various scenarios, this solution proposes a battery with a voltage sampling system. The battery itself can sample the voltage at both ends, thereby reducing the requirements for the electrical device. In addition, considering the problem of how to transmit the voltage data collected by the voltage sampling system to the electrical device or other equipment, the battery provided by this solution also includes a communication system and a controller. The controller is connected to the voltage sampling system and the communication system respectively, and can control the voltage sampling system to collect the voltage between the positive and negative electrodes of the battery, and can also control the communication system to send and receive (receive and / or send) data, so as to send the collected voltage data to the electrical device or other equipment.
[0045] In addition, ADC (Analog to Digital) is usually used in voltage sampling systems. ADC is mainly used to digitally collect analog signals for data processing. In order to conveniently use and process information, it is generally necessary to convert analog quantities into digital quantities and transmit them to a microcontroller or microprocessor. At present, almost all analog signal sampling on the market finally quantizes the analog quantity in the form of voltage and records it. Considering that the distance between the communication system in the battery and the voltage sampling system is relatively close, most of the existing wired communication systems and wireless communication systems use differential transmission before entering the PA (power amplifier). Differential transmission is a typical voltage signal and the amplitude during transmission is generally between plus or minus several V or even more than ten V. It will have a huge impact on ADC voltage sampling. No matter how the conditioning circuit at the front end of the analog-to-digital conversion module filters, it is difficult to eliminate the impact.
[0046] In order to reduce the impact of the communication system on the voltage collected by the voltage sampling circuit during the process of sending data frames, the present scheme further provides a voltage sampling method, which obtains the communication timing of the communication system and the sampling timing of the voltage sampling system, and adjusts the communication timing and / or sampling timing so that the communication timing and the sampling timing are set at an interval. The goal of the interval setting is to reduce the overlap time between the communication system sending data frames and the voltage sampling system performing voltage sampling, so that the sampled voltage data is more accurate.
[0047] The electric device disclosed in the embodiments of the present application can be used for electric devices that use batteries as power sources or various energy storage systems that use batteries as energy storage elements. The electric device can be a mobile phone, a tablet, a laptop computer, an electric toy, an electric tool, a battery car, an electric car, a ship, a spacecraft, and the like. Among them, the electric toy can include a fixed or mobile electric toy, for example, a game console, an electric car toy, an electric ship toy, and an electric airplane toy, and the like, and the spacecraft can include an airplane, a rocket, a space shuttle, and a spacecraft, and the like.
[0048] For the convenience of description, the following embodiments are described by taking a vehicle 1000 as an example of an electrical device according to an embodiment of the present application.
[0049] Please refer to Figure 1The vehicle 1000 may be a fuel vehicle, a gas vehicle or a new energy vehicle. The new energy vehicle may be a pure electric vehicle, a hybrid vehicle or an extended-range vehicle, etc. A battery 100 is provided inside the vehicle 1000. The battery 100 may be provided at the bottom, head or tail of the vehicle 1000. The battery 100 may be used to power the vehicle 1000. For example, the battery 100 may be used as an operating power source for the vehicle 1000. The vehicle 1000 may also include a vehicle controller 200 and a motor 300. The vehicle controller 200 is used to control the battery 100 to power the motor 300, for example, to meet the power requirements for starting, navigating and driving the vehicle 1000.
[0050] In some embodiments of the present application, the battery 100 can not only serve as an operating power source for the vehicle 1000, but also serve as a driving power source for the vehicle 1000, replacing or partially replacing fuel or natural gas to provide driving power for the vehicle 1000.
[0051] Please refer to Figure 2 The present application provides a battery 100. The battery includes a housing 110, a communication system 120, a voltage sampling system 130 and a controller 140. The communication system 120 is connected to the housing 110. The voltage sampling system 130 is connected to the housing 110. The controller 140 is respectively connected to the communication system 120 and the voltage sampling system 130, and is used to control the communication timing of the communication system 120 and the sampling timing interval setting of the voltage sampling system 130.
[0052] Among them, the battery 100 provided in this solution can be a battery cell, or a battery module or battery module including a battery cell and a box for accommodating the battery cell. This solution takes the battery 100 as a battery cell as an example. The battery cell can be a secondary battery or a primary battery. It can also be a lithium-sulfur battery, a sodium-ion battery 100 or a magnesium-ion battery 100, but is not limited to this. The battery cell can be cylindrical, flat, rectangular or other shapes. The battery cell refers to the smallest unit that makes up the battery 100. The voltage sampling system 130 can be connected to the positive and negative electrodes of the battery 100 respectively, and is used to sample the voltage at both ends of the battery 100. As long as the system can realize the sampling of the voltage at both ends of the battery 100, it is the voltage sampling system 130 provided by this solution, so this embodiment does not limit the specific structure of the voltage sampling system 130. The controller 140 can be any device or circuit with control function such as a microcontroller MCU, SOC or single-chip microcomputer. The controller 140 and the above-mentioned vehicle controller 200 can be the same controller or different controllers. In some embodiments, the controller 140 is also used to control the voltage sampling system 130 to sample the voltage at both ends of the battery 100 according to the sampling timing. In some embodiments, the controller 140 is also used to control the communication system 120 to send or receive data. The communication system 120 can be any system with communication functions such as a carrier communication system 120 and an infrared communication system 120, and the communication system 120 can send and receive data. Optionally, the housing may include an end cover 111 and a shell 112, and the end cover 111 is covered on the opening of the shell 112. The above-mentioned connection with the housing may be connected to the end cover 111, or it may be connected to the shell 112. The connection with the shell 112 may be set inside the shell 112 or outside the shell 112. The way in which the controller 140 controls the communication timing and sampling timing interval setting of the communication system 120 may be to adjust at least one of the communication timing and the sampling timing so as to set the communication timing and the sampling timing interval. Exemplarily, the communication timing or the sampling timing can be adjusted, or the communication timing and the sampling timing can be adjusted at the same time, so that the communication timing and the sampling timing are set at intervals. The interval setting can be understood as there is no overlap time between the communication system 120 sending data and the voltage sampling system 130 performing voltage sampling, for example, no voltage sampling is performed during the process of sending data in the communication timing, or the interval setting can also be understood as the overlap time between the communication system 120 sending data and the voltage sampling system 130 performing voltage sampling is less than or equal to the overlap time threshold. In other embodiments, the interval setting can also be other reasonable understandings, which are not specifically limited here.
[0053] In the above scheme, a voltage sampling system 130 is provided on the battery 100 to facilitate the voltage sampling of the battery 100 by the voltage sampling system 130, and a communication system 120 is provided on the battery 100 to facilitate the communication between the battery 100 and the controller 140 of other devices or electrical devices, for example, the collected voltage is transmitted to the controller 140 of other devices or electrical devices. The differential signal used by the communication system 120 in the battery 100 in the process of sending data is likely to interfere with the voltage sampling. Therefore, in this scheme, the controller 140 in the battery 100 controls the communication timing of the communication system 120 and the sampling timing interval setting of the sampling system, which can reduce the overlap time of the communication system 120 sending data and the voltage sampling system 130 performing voltage sampling, thereby improving the accuracy of the voltage data obtained by voltage sampling.
[0054] In some embodiments, the housing includes a shell 112 having an opening and an end cover 111 , and the communication system 120 , the voltage sampling system 130 , and the controller 140 are connected to the end cover 111 .
[0055] The end cap 111 may be covered at the opening of the housing 112. The connection with the end cap 111 may be arranged on the side of the end cap 111 facing the housing 112, or on the side of the end cap 111 away from the housing 112. The communication system 120, the voltage sampling system 130, and the controller 140 may be arranged on the same side of the end cap 111, or on different sides of the end cap 111.
[0056] In the above solution, by connecting the communication system 120, the voltage sampling system 130 and the controller 140 to the end cover 111 respectively, the communication system 120, the voltage sampling system 130 and the controller 140 can be conveniently removed from the battery 100 for daily maintenance or repair operations.
[0057] In some embodiments, the communication system 120 , the voltage sampling system 130 , and the controller 140 are disposed on a side of the end cover 111 facing the housing 112 .
[0058] The communication system 120 may be a carrier communication system. The communication system 120 is connected to the positive electrode and the negative electrode of the battery 100, respectively. Specifically, the communication system 120 is connected to the positive electrode post and the negative electrode post of the battery 100, respectively. After the positive electrode and the negative electrode of the battery 100 are connected to the external device, the external device, the positive electrode, the communication system 120 and the negative electrode form a communication loop, which is convenient for sending data to the external device or receiving data sent by the external device.
[0059] In the above scheme, by setting the voltage sampling system 130 on the side of the end cover 111 facing the shell 112, that is, setting it inside the battery 100, it is more convenient to carry and can reduce the interference of external factors during the voltage sampling process compared to setting it outside the battery 100, thereby improving the accuracy of the sampled voltage data. In addition, the communication system 120 and the controller 140 are also set on the side of the end cover 111 facing the shell 112, which facilitates the interaction between the controller 140 and the communication system 120 and the voltage sampling system 130.
[0060] In some embodiments, the communication system 120 , the voltage sampling system 130 , and the controller 140 are integrated on a chip 150 .
[0061] Exemplarily, the chip 150 may be LH100 or other types of chip 150, and the type of chip 150 is not specifically limited herein. The power interface of the chip 150 is respectively connected to the positive electrode and the negative electrode of the battery 100, so that the battery 100 supplies power to the chip 150.
[0062] In the above solution, by integrating the communication system 120 , the voltage sampling system 130 and the controller 140 on a chip 150 , the space occupied by the discrete chip 150 can be reduced, thereby achieving the effect of relatively reducing the volume of the battery 100 .
[0063] See also Figure 3 The voltage sampling method provided in the present application is applied to any of the above-mentioned batteries, including the contents of the following steps S11 to S13. Step S11: Obtain the communication timing of the communication system in the battery and the sampling timing of the voltage sampling system. Step S12: Adjust at least one of the communication timing and the sampling timing so that the communication timing and the sampling timing interval are set. Step S13: Sample the voltage at both ends of the battery according to the current sampling timing to obtain voltage data.
[0064] As mentioned above, a communication system and a voltage sampling system are provided in the battery. The communication system and the voltage sampling system can be integrated on a chip. Among them, the voltage sampling method provided in the present application can be executed by a controller in the battery, specifically, it can be executed by a microcontroller or a microprocessor integrated on a chip. The communication timing can be understood as the law followed by the communication system to send data, for example, the communication system can send 50 data frames per second, and the time interval between sending adjacent data frames is the same. The sampling timing can be understood as the law followed by the voltage sampling system for voltage sampling, for example, the voltage is collected every n seconds, and the time required for each collected voltage is m seconds. Adjusting at least one of the communication timing and the sampling timing can be adjusting the communication timing alone, or adjusting the sampling timing alone, or it can also be adjusting both the communication timing and the sampling timing. Among them, the way to adjust the communication timing can be to adjust the communication frequency and / or adjust the communication start time. The communication frequency can be specifically understood as the number of communications per unit time. Adjusting the communication frequency can be to increase or decrease the number of data frames sent per unit time. The communication start time can be understood as the start sending time of the next frame or the first frame data frame, and adjusting the communication start time can be to advance or postpone the start sending time of the next frame or the first frame data frame, so that other frames after the frame are advanced or postponed in sequence. The way to adjust the sampling timing can be to adjust the sampling frequency, the sampling start time and / or the single sampling duration. The sampling frequency can be understood as the number of samples per unit time, the sampling start time can be understood as the start time of the first sampling or the next sampling, and the single sampling duration can be the length of time between the start time and the end time of the single sampling. Adjusting the number of sampling times can be to increase or decrease the number of sampling times per unit time, and adjusting the single sampling duration can be to increase or shorten the single sampling duration. Adjusting the sampling start time can be to advance or postpone the start time of the first sampling or the next sampling. The interval setting can be understood as there is no overlapping time between the communication system sending data and the voltage sampling system performing voltage sampling. For example, voltage sampling is not performed during the process of sending data in the communication sequence. Or the interval setting can also be understood as the overlapping time between the communication system sending data and the voltage sampling system performing voltage sampling is less than or equal to the overlapping time threshold. In other embodiments, the interval setting can also be other reasonable understandings, which are not specifically limited here.
[0065] In the above scheme, by obtaining the communication timing of the communication system in the battery and the sampling timing of the voltage sampling system, adjusting the communication timing or the sampling timing, or adjusting the communication timing and the sampling timing at the same time, the communication timing and the sampling timing are set at an interval, thereby reducing the interference of the communication system on the voltage sampling when sending data, thereby improving the accuracy of the voltage data obtained by sampling.
[0066] In some embodiments, adjusting at least one of the communication timing and the sampling timing includes: taking one of the communication timing and the sampling timing as a reference timing and adjusting the other timing.
[0067] The communication timing may be used as a reference timing to adjust the sampling timing. In some embodiments, the communication timing may be used as a reference timing to adjust the sampling timing.
[0068] In the above solution, by adjusting one of the timings based on the other timing, this solution is simpler than adjusting the two timings at the same time.
[0069] In some embodiments, the communication timing is a reference timing, and the sampling timing includes a sampling time node. Figure 4 The above-mentioned step of adjusting the other timing by taking one of the communication timing and the sampling timing as the reference timing may include the following steps: Step S121: Obtaining the protection interval duration between adjacent frames in the communication timing. Step S122: Determining the sampling time node of the voltage sampling system in the battery according to the protection interval duration.
[0070] like Figure 5 As shown, the data frame includes at least a preamble, a payload, and a guard interval (GP). The guard interval is an important indicator of data transmission reliability. The guard interval can be understood as the time interval between adjacent data frames during data transmission, and its purpose is to reduce mutual interference between data frames and ensure the orderly transmission of data. Generally speaking, the guard interval = data frame size / transmission rate + transmission delay, wherein the data frame size can be understood as the size of the data frame to be transmitted, the transmission rate can be understood as the speed of data transmission, and the transmission delay can be understood as the time required for the data frame during the transmission process. Optionally, the guard interval duration is a relatively fixed value in the communication system, that is, the guard interval duration can be adjusted, but before the next adjustment, the current guard interval duration is a fixed value.
[0071] The voltage sampling system may be an ADC. The sampling time node may be a sampling start time node or the time required for a single sampling. The method for determining the sampling time node of the voltage sampling system in the battery according to the protection interval duration is not specifically limited here. According to the protection interval duration, shortening or increasing the sampling time required for the voltage sampling circuit can be specifically understood as follows: if the protection interval duration is less than the preset single sampling time required, the single sampling time can be shortened; if the protection interval duration is greater than the preset single sampling time required, the single sampling time can be increased. Sampling the voltage at both ends of the battery based on the sampling time node to obtain voltage data may be to control the voltage sampling system to start and collect the corresponding voltage data. Single sampling may be to collect only one voltage data, or to collect multiple voltage data within a time period. That is, the collected voltage data may be a voltage data group.
[0072] In the above scheme, the protection interval duration between adjacent frames in the communication sequence is obtained, and the sampling time node of the voltage sampling system in the battery is determined by the protection interval duration. Compared with not referring to the protection interval duration, this scheme can reduce the impact of the communication system sending data frames on the voltage sampling system when collecting voltage, thereby improving the accuracy of the sampled voltage data.
[0073] In some embodiments, the sampling time node includes a sampling start time node of a single sampling, and the step of determining the sampling time node of the voltage sampling system in the battery according to the protection interval duration may include the following sub-steps: obtaining the time required for a single sampling of the voltage sampling system. Then, based on the time required for a single sampling and the protection interval duration, determining the sampling start time node of the single sampling.
[0074] The time required for a single sampling can be considered as the time length from the sampling start time node to the sampling end time node. The sampling start time node of a single sampling can be considered as the time when the voltage sampling system starts from a sleep state or the time when the chip issues a sampling instruction. The sampling start time node of a single sampling determined can be within the protection interval or outside the protection interval, which can be specifically determined based on the time required for a single sampling and the size of the protection interval. For example, if the time required for a single sampling is greater than the protection interval, it is likely that the sampling start time node is outside the protection interval. If the time required for a single sampling is less than or equal to the protection interval, the sampling start time node can be within the protection interval.
[0075] In the above scheme, by combining the time required for a single sampling and the protection interval time, the sampling start time node of the single sampling can be better set, thereby reducing the overlap time of the data transmission process and the voltage sampling process.
[0076] In some embodiments, the method for obtaining the time required for a single sampling of the voltage sampling system may be: obtaining the sum of the response time of the voltage sampling system and the duration of a single sampling as the time required for a single sampling.
[0077] The response time of the voltage sampling system can be understood as the time between the voltage sampling system going from sleep to acquiring voltage data or the time between the chip sending a sampling instruction and the voltage sampling system receiving and parsing the instruction, that is, the voltage sampling system does not perform voltage sampling on the battery during the response time. The duration of a single sampling can be understood as the time to acquire voltage data. For example, the voltage sampling system originally processes the sleep state, starts to start after receiving the sampling instruction sent by the chip, starts to acquire voltage data after 0.1 seconds and continues to acquire it for 0.5 seconds, then the response time of the voltage sampling system is 0.1 seconds, the duration of a single sampling is 0.5 seconds, and the time required for a single sampling is 0.6 seconds. This data is for example only and is not used to limit this application.
[0078] In the above scheme, by combining the response time of the voltage sampling system and the duration of a single sampling, the time required for a single voltage sampling is comprehensively considered, so that the sampling start time node of the single sampling can be better set and the overlap time of the data transmission process and the voltage sampling process can be reduced.
[0079] In some embodiments, the above-mentioned method of determining the sampling start time node of a single sampling based on the required time length of a single sampling and the protection interval duration can be: in response to the required time length of a single sampling being greater than or equal to the protection interval duration, determining the first sampling start time node of the single sampling. Or, in response to the required time length of a single sampling being less than the protection interval duration, determining the second sampling start time node of the single sampling. The time interval between the first sampling start time node and the center point of the protection interval duration is greater than the time interval between the second sampling start time node and the center point of the protection interval duration.
[0080] That is, the sampling start time node of a single sampling can be determined based on the size relationship between the duration required for a single sampling and the protection interval duration. The center point of the protection interval duration can be the location of half of the protection interval duration. For example, if the protection interval duration is 0.8 seconds, the center point of the protection interval duration is 0.4 seconds. Among them, the time interval between the first sampling start time node and the center point of the protection interval duration is greater than the time interval between the second sampling start and the center point of the protection interval duration, indicating that the second sampling start time node is closer to the center point of the protection interval duration, that is, the single sampling corresponding to the second sampling start time node is less time outside the protection interval.
[0081] In the above scheme, if the time required for a single sampling is greater than or equal to the protection interval duration, then in order to ensure that fewer sampling time nodes coincide with the time of sending data frames, the sampling circuit can be controlled to perform sampling earlier, that is, the coincidence time between the response time and the sending data frame is increased, thereby reducing the coincidence time between the duration of a single sampling and the sending data frame. If the time required for a single sampling is less than the protection interval duration, the coincidence time between the response time and the sending data frame can be further reduced, that is, the time interval between the first sampling time node and the center point of the protection interval duration is greater than the time interval between the second sampling start time node and the center point of the protection interval duration.
[0082] In some embodiments, in response to the time required for a single sampling being greater than or equal to the protection interval time, the method for determining the first sampling start time node of the single sampling may be: aligning the center point of the single sampling duration with the center point of the protection interval time to obtain the first sampling start time node; or, in response to the time required for a single sampling being less than the protection interval time, the method for determining the second sampling start time node of the single sampling may be: aligning the center point of the time required for the single sampling with the center point of the protection interval time to obtain the second sampling start time node.
[0083] Aligning with the center point of the protection interval can make sampling as close to the middle time position of the protection interval as possible, minimizing the impact of communication differential signals. Continuing with the above example, if the duration of a single sampling is 0.5 seconds, the center point of the single sampling duration is 0.25 seconds. If the response time is 0.1 seconds, aligning the center point of the single sampling duration with the center point of the protection interval duration means aligning the 0.35 seconds of the time required for a single sampling with the center point of the protection interval duration. If the time required for a single sampling is 0.6 seconds, the center point of the time required for a single sampling is 0.3 seconds. That is, aligning the 0.3 seconds of the time required for a single sampling with the center point of the protection interval duration. Obviously, compared with the first sampling start time node, the second sampling start time node is closer to the center point of the protection interval duration.
[0084] In the above scheme, if the duration required for a single sampling is greater than or equal to the protection interval duration, then the single sampling duration can be guaranteed to be within the protection interval as much as possible, and the center point of the single sampling duration can be aligned with the center point of the protection interval duration to determine the first sampling start time node, or if the duration required for a single sampling is less than the protection interval duration, then by aligning the center point of the single sampling duration with the center point of the protection interval duration, the overlap time between the response time and the sending of the data frame can be further reduced.
[0085] In some embodiments, the method further includes: determining a start time node and an end time node of a protection interval between adjacent frames in the communication system; and determining a duration of the protection interval based on the start time node and the end time node of the protection interval.
[0086] In some embodiments, the transmission of each data frame in the communication system is generally sent in accordance with the communication protocol, that is, the protection interval between each adjacent frame is periodically changed, not randomly generated, so only the start time node and the end time node of one of the protection intervals need to be determined to simulate the periodic change of the protection interval in timing, and it can also be concluded that the voltage sampling system also performs periodic voltage sampling. In other embodiments, if the protection interval between adjacent frames does not change periodically, the delay of the current data frame can be determined by detecting the start transmission time of the data frame and the size of the data frame, thereby obtaining the start time node and the end time node of the protection interval, thereby dynamically adjusting the sampling start time node of each single sampling, that is, each single sampling does not change periodically.
[0087] In the above scheme, by obtaining the start time node and end time node of the protection interval between each adjacent frame in the communication system, the protection interval duration can be obtained, and by obtaining the start time node and end time node of the protection interval, it is convenient to control the voltage sampling system according to the start time node of the protection interval and the sampling start time node of the single sampling, and determine the sampling start time node of the single sampling in timing.
[0088] In some embodiments, determining the start time node and end time node of the protection interval between adjacent frames in the communication system includes: synchronizing the clock of the voltage sampling system with the clock of the communication system; and determining the start time node and the end time node based on the synchronized clock of the communication system.
[0089] According to the communication standard used by the communication system, the specific information of the protection interval is obtained according to the communication standard. Optionally, the voltage sampling system can be connected to the network, and then the time slot synchronization after the network connection will be synchronized with the clock of the communication system. Then, according to the synchronized clock, the absolute time point of each start and end of the protection interval in the communication system, that is, the start time node and the end time node, can be determined.
[0090] In the above solution, by synchronizing the clock of the voltage sampling system with the clock of the communication system, it is convenient to subsequently determine the protection interval duration according to the synchronized clock of the communication system.
[0091] In some embodiments, the method further includes: performing data processing on voltage data sampled at multiple moments to obtain processed voltage data, where the data processing includes digital filtering and / or smoothing processing; and sending the processed voltage data to a preset recipient.
[0092] The voltage data sampled at multiple moments can be the voltage data sampled at multiple moments in a single sampling, or the voltage data obtained through multiple samplings. The smoothing method can be to take the average of the previous n times, or to compare the size sampling value with the previous m times, and discard it if the deviation exceeds a preset range. There are many ways of digital filtering, which will not be elaborated here.
[0093] In the above solution, through data processing such as digital filtering and smoothing processing on the sampled voltage data, the subsequent preset recipient can perform corresponding processing based on more accurate voltage data.
[0094] In some embodiments, the input signal range of a general ADC is around 0 to 3.3V. Once there is interference from other voltage signals during sampling, it will have a great impact on the sampling result. In this solution, according to the characteristics of the communication system, a time-domain synchronization method is adopted to obtain the start and end times of the guard period (GP Guard Period) time slots between adjacent data frames. Then, combined with the characteristics of the voltage sampling system (response time, sampling duration, etc.), data sampling is performed at a time position as close as possible to the middle of the guard period time slot to minimize the impact of communication differential signals.
[0095] Specifically, in combination with the communication transmission technology used, precise time slot synchronization is used to align the system clock. And according to the characteristics of the devices to be used, accurately obtain the response time Tr and sampling duration Tl of the sampling device, and then, according to the communication transmission technology used, accurately obtain the guard period time slot duration Tgp. Then, determine the sampling start time node according to the relationship between the value of Tr + Tl and Tgp. In addition, a voltage sampling system with Tr + Tl < Tgp is preferably selected to improve the sampling accuracy. Specifically:
[0096] a. When Tr + Tl > Tgp, align the center point of Tl with the center point of Tgp;
[0097] b. When Tr + Tl = Tgp, align the center point of Tl with the center point of Tgp;
[0098] c. When Tr + Tl < Tgp, align the center point of Tr + Tl with the center point of Tgp.
[0099] Among them, after sampling, operations such as digital filtering and smoothing (for example, taking the average of the previous 16 times, or comparing the size sampling value with the previous several times and discarding it if the deviation exceeds a certain range) can be performed before transmission.
[0100] In the above scheme, the protection interval duration between adjacent frames in the communication sequence is obtained, and the sampling time node of the voltage sampling system in the battery is determined by the protection interval duration. Compared with not referring to the protection interval duration, this scheme can reduce the impact of the communication system sending data frames on the voltage sampling system when collecting voltage, thereby improving the accuracy of the sampled voltage data.
[0101] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0102] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0103] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another subsystem, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
Claims
1. A battery, characterized in that: The battery comprises: shell; a communication system connected to the housing; A voltage sampling system connected to the housing; A controller is connected to the communication system and the voltage sampling system respectively, and is used to control the communication timing of the communication system and the sampling timing interval setting of the voltage sampling system.
2. The battery according to claim 1, characterized in that The housing includes a shell with an opening and an end cover, and the communication system, the voltage sampling system and the controller are connected to the end cover.
3. The battery according to claim 2, characterized in that The communication system, the voltage sampling system and the controller are arranged on a side of the end cover facing the housing.
4. The battery according to claim 2 or 3, characterized in that: The communication system, the voltage sampling system and the controller are integrated on a chip.
5. A voltage sampling method, characterized in that: The voltage sampling method is applied to the battery according to any one of claims 1 to 4, and the voltage sampling method comprises: Obtaining the communication timing of the communication system in the battery and the sampling timing of the voltage sampling system; adjusting at least one of the communication timing and the sampling timing so that the communication timing and the sampling timing are spaced apart; The voltage at both ends of the battery is sampled according to the current sampling timing to obtain voltage data.
6. The method according to claim 5, characterized in that The adjusting at least one of the communication timing and the sampling timing comprises: One of the communication timing and the sampling timing is used as a reference timing to adjust the other timing.
7. The method according to claim 6, characterized in that The communication timing is a reference timing, the sampling timing includes a sampling time node, and taking one of the communication timing and the sampling timing as a reference timing and adjusting the other timing to obtain a target timing includes: Obtaining the length of the protection interval between adjacent frames in the communication sequence; A sampling time node of a voltage sampling system in the battery is determined according to the protection interval duration.
8. The method according to claim 7, characterized in that The sampling time node includes a sampling start time node, and determining the sampling time node of the voltage sampling system in the battery according to the protection interval duration includes: Obtaining the time required for a single sampling of the voltage sampling system; Based on the time required for the single sampling and the protection interval time, a sampling start time node of the single sampling is determined.
9. The method according to claim 8, characterized in that The time required for obtaining a single sampling of the voltage sampling system includes: The sum of the response time of the voltage sampling system and the duration of a single sampling is obtained as the duration required for a single sampling.
10. The method according to claim 8, characterized in that The determining of a sampling start time node of a single sampling based on the time required for the single sampling and the time length of the protection interval includes: In response to the time length required for the single sampling being greater than or equal to the time length of the protection interval, determining a first sampling start time node of the single sampling; Alternatively, in response to the time required for the single sampling being less than the time length of the protection interval, determining a second sampling start time node for the single sampling; The time interval between the first sampling start time node and the center point of the protection interval duration is greater than the time interval between the second sampling start time node and the center point of the protection interval duration.
11. The method according to claim 10, characterized in that In response to the time length required for the single sampling being greater than or equal to the time length of the protection interval, determining a first sampling start time node of the single sampling includes: Align the center point of the single sampling duration with the center point of the protection interval duration to obtain the first sampling start time; Or, in response to the time required for the single sampling being less than the protection interval time, determining a second sampling start time node for the single sampling includes: The center point of the duration required for the single sampling is aligned with the center point of the protection interval duration to obtain the second sampling start time.
12. The method according to any one of claims 7 to 11, characterized in that The method further comprises: Determine a start time node and an end time node of a protection interval between adjacent frames in the communication system; The duration of the guard interval is determined based on the start time node and the end time node of the guard interval.
13. The method according to claim 12, characterized in that The determining of a start time node and an end time node of a protection interval between adjacent frames in the communication system comprises: Synchronizing a clock of the voltage sampling system with a clock of the communication system; The start time node and the end time node are determined according to the synchronized clock of the communication system.
14. The method according to any one of claims 5 to 13, characterized in that The method further comprises: Performing data processing on the voltage data sampled at multiple moments to obtain processed voltage data, wherein the data processing includes digital filtering and / or smoothing processing; The processed voltage data is sent to a preset recipient.
15. An electrical device, characterized in that: The electrical device comprises the battery according to any one of claims 1 to 4.