Battery data sampling methods and vehicles
By acquiring battery pack configuration information, the sampling chip in the battery sampling device is configured and verified, generating a unique software version. This solves the problem of insufficient flexibility in the battery sampling device, enabling adaptation to various battery packs and vehicle configurations, and reducing the workload of software maintenance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2026-03-13
AI Technical Summary
Traditional battery sampling devices are not flexible enough to adapt to the diverse configurations of different battery packs and vehicle models, resulting in too many software versions and a large workload for maintenance.
By acquiring the configuration information of the battery pack, the multiple sampling chips in the battery sampling device are configured based on this information, including initialization and verification, to generate a unique battery module software version, enabling the same battery sampling software to adapt to multiple battery packs and vehicle configurations.
It improves the flexibility of the battery sampling device, reduces the maintenance workload of software versions, and enables the same battery sampling software to be adapted to multiple battery packs and vehicle configurations.
Smart Images

Figure CN115856639B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery pack data sampling technology, and more specifically, to a battery data sampling method and a vehicle. Background Technology
[0002] With the increasing number of electric vehicle products, the configurations of electric vehicle models are becoming more diverse, and the configurations of battery packs are also becoming more varied. Each power battery product has a different series and parallel arrangement, and its internal structure and quantity vary. Therefore, the battery sampling device needs to configure the module sampling parameters according to the different battery product configurations. Traditional software configuration methods generate fixed battery configuration parameters for specific battery packs. When there are many battery configurations in a vehicle, different battery configuration parameters need to be generated according to different configurations, resulting in too many software versions and poor flexibility of the battery sampling device.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a battery data sampling method and vehicle to at least solve the technical problem of poor flexibility of battery sampling devices in related technologies.
[0005] According to one aspect of the present invention, a battery data sampling method is provided, comprising: acquiring configuration information of a battery pack; configuring a plurality of sampling chips in a battery sampling device based on the configuration information of the battery pack to obtain a configured battery sampling device; and using the configured battery sampling device to sample data from the battery pack to obtain battery data.
[0006] Optionally, based on the configuration information of the battery pack, multiple sampling chips in the battery sampling device are configured to obtain a configured battery sampling device, including: initializing the configuration of multiple sampling chips based on the configuration information of the battery pack; verifying the configuration of multiple sampling chips based on the configuration information of the battery pack to determine whether the multiple sampling chips are configured successfully; and obtaining the configured battery sampling device based on the multiple sampling chips in response to the successful configuration of multiple sampling chips.
[0007] Optionally, verifying multiple sampling chips based on configuration information to determine whether the multiple sampling chips are configured successfully includes: obtaining the configuration status output by the multiple sampling chips within a first preset time period, wherein the configuration status includes at least: initialization completed and initialization not completed, and the first preset time period is used to characterize the preset time after the multiple sampling chips start initialization configuration; determining the first number of sampling chips that have completed initialization based on the configuration status output by the multiple sampling chips; in response to the first number of chips being the same as the second number of sampling chips in the configuration information, sampling data from the battery pack based on the multiple sampling chips to obtain first data; determining the first number of preset sampling channels in the battery sampling device based on the first data; and determining that the multiple sampling chips are all configured successfully in response to the first number of sampling channels being the same as the second number of sampling channels in the configuration information.
[0008] Optionally, the method further includes: in response to the first number of chips being greater than the second number of chips, pushing first information to the user, wherein the first information is used to indicate that multiple sampling chips have an initialization error; in response to the first number of chips being less than the second number of chips, pushing second information to the user, wherein the second information includes at least: chip information of the sampling chips that have completed initialization among the multiple sampling chips and a first reason for the sampling information of the multiple sampling chips that have not completed initialization, wherein the chip information is used to determine the first reason.
[0009] Optionally, the method further includes: re-initializing and configuring multiple sampling chips based on first information or second information; determining the number of times the multiple sampling chips need to be re-initialized and configured; and pushing third information to the user in response to the number of configurations exceeding a preset number, wherein the third information is used to indicate that the configuration of multiple sampling chips has failed.
[0010] Optionally, the method further includes: in response to the difference between the number of the first sampling channels and the number of the second sampling channels, obtaining channel information of other sampling channels, wherein the other sampling channels are used to characterize the sampling channels in the battery sampling device other than the preset sampling channels; determining the channel number and cell number of the other sampling channels based on the configuration information and the channel information, wherein the cell number corresponds one-to-one with the channel number; and pushing fourth information to the user based on the channel number and the cell number, wherein the channel number and the cell number are used to determine the second reason for the sampling failure, and the fourth information is used to prompt the user of the second reason for the configuration failure of multiple sampling chips.
[0011] Optionally, multiple sampling chips are initialized based on the battery pack configuration information, including: obtaining the sampling channel code from the battery pack configuration information; and initializing multiple sampling chips sequentially based on the sampling channel code.
[0012] Optionally, after obtaining the configuration information of the battery pack, the method includes: obtaining the configuration code corresponding to the configuration information of the battery pack; in response to the existence of the configuration code in the preset storage module, initializing the configuration of multiple sampling chips based on the configuration information, wherein the preset storage module is used to store preset data corresponding to the battery pack; in response to the absence of the configuration code in the preset storage module, pushing fourth information to the user, wherein the fourth information is used to prompt the user that the configuration information is incorrect.
[0013] Optionally, after obtaining the configured battery sampling device, the method further includes: generating sampling version information of the battery sampling device based on the configuration information of the battery pack, and storing the sampling version information in a preset storage module; in response to the sampling version information being different from the version information of the battery pack, pushing a fifth message to the user, wherein the fifth message is used to prompt the user that the data sampling module and the battery pack are mismatched; in response to the sampling version information being the same as the version information of the battery pack, using the configured battery sampling device to sample data from the battery pack to obtain battery data.
[0014] According to another aspect of the present invention, a vehicle is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to operate the apparatus of any of the above embodiments.
[0015] In this embodiment of the invention, after obtaining the configuration information of the battery pack, multiple sampling chips in the battery sampling device are configured based on the configuration information to obtain a configured battery sampling device. The configured battery sampling device is then used to sample data from the battery pack to obtain battery data. It should be noted that after obtaining the configuration information of the battery pack, the battery sampling device configures the sampling chips and sampling channels according to different configuration information, thereby collecting battery data. Simultaneously, it generates a unique battery module software version, enabling the same battery sampling software to adapt to multiple battery pack configurations and vehicle model configurations, reducing the workload of software version maintenance. This achieves the technical effect of the same battery sampling software being adaptable to multiple battery pack configurations and vehicle model configurations, thus solving the technical problem of poor flexibility in battery sampling devices in related technologies. Attached Figure Description
[0016] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0017] Figure 1 This is a flowchart of a battery data sampling method according to an embodiment of the present invention;
[0018] Figure 2 This is a flowchart illustrating an optional method for writing battery pack configuration information according to an embodiment of the present invention;
[0019] Figure 3 This is a flowchart of an optional battery pack configuration according to an embodiment of the present invention;
[0020] Figure 4 This is a flowchart of an optional battery pack sampling chip configuration according to an embodiment of the present invention;
[0021] Figure 5 This is a flowchart of an optional battery sampling chip channel configuration according to an embodiment of the present invention;
[0022] Figure 6 This is a flowchart of an optional overall battery sampling configuration according to an embodiment of the present invention;
[0023] Figure 7 This is a schematic diagram of a battery data sampling device according to an embodiment of the present invention. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] Example 1
[0027] According to an embodiment of the present invention, an embodiment of a battery data sampling method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0028] Figure 1 This is a flowchart of a battery data sampling method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0029] Step S102: Obtain the configuration information of the battery pack.
[0030] The aforementioned battery pack can be a combination of batteries that provide energy to the vehicle, and can be, but is not limited to, lithium cobalt oxide batteries, lithium iron phosphate batteries, nickel-metal hydride batteries, ternary lithium batteries, and graphene batteries. Configuration information can be battery configuration information, including but not limited to: configuration code, number of sampling chips N, number of module voltage sampling channels C, number of module temperature sampling channels T, the correspondence order between sampling chips and modules within the battery pack (n1, n2, ..., nn), and the number of single-cell voltage sampling channels and temperature sampling channels supported by each sampling chip.
[0031] In one optional embodiment, the supported battery pack configuration information is pre-set in the battery sampling device, and the vehicle model and battery pack configuration information are written into the battery sampling device when the battery pack is off the production line. After the battery sampling device is powered on again, it reads the battery pack configuration information stored in the storage area.
[0032] It should be noted that when writing battery pack configuration information into the battery sampling device, a corresponding configuration command will be received to verify the battery pack. In this embodiment of the invention, the flowchart for writing battery pack configuration information is as follows: Figure 2 As shown, the battery off-line device sends a battery pack configuration information write command to the battery sampling device. Upon receiving the command, the battery sampling device determines whether the battery pack configuration is among Con1 to N. If so, the battery pack configuration information is stored in the storage module. If the battery pack configuration sent by the off-line device is not among the pre-stored battery configuration codes, a battery pack configuration write failure is reported, and the configuration information is not stored. An error response code indicating a battery pack configuration information write error is returned to the off-line device. The storage module stores N battery pack configurations, ConN, denoted as Con1 to N.
[0033] Step S104: Based on the configuration information of the battery pack, configure multiple sampling chips in the battery sampling device to obtain the configured battery sampling device.
[0034] The aforementioned battery sampling device can be a device for sampling battery data, including but not limited to: a communication module, a battery sampling configuration module, a storage module, and a verification and protection module. The communication module can communicate with the battery pack production equipment and the battery sampling chip. Communication with the production equipment can be based on the UDS (Unified Diagnostic Services) protocol and CAN (Controller Area Network). Communication with the sampling chip can be CAN communication or daisy-chain communication. The configuration module can configure the parameters of the battery sampling chip, the battery voltage and temperature channels, and report battery sampling data according to the module sequence. The storage module can store configuration information, including but not limited to: battery pack configuration information, battery sampling device software version, and fault information. The verification and protection module can perform validity verification and protection at each step of the battery configuration process. When verification fails, it needs to further determine the fault conditions, provide verification results and fault information, and set corresponding protection measures.
[0035] In addition, the battery sampling device can be a device that writes and stores battery pack configuration information. When the battery sampling device is powered on again, it can read the battery pack configuration information in the storage area, and determine the number of sampling chips, as well as the number of individual voltage channels and temperature channels of each sampling chip, based on the battery pack configuration information.
[0036] The aforementioned sampling chip can be a multi-channel sampling monitoring chip, which is the core of battery management and can monitor the cell voltage and temperature of cells connected in series.
[0037] In one optional embodiment, after reading the battery pack configuration information stored in the storage area, the battery sampling device can initialize and configure multiple chips according to the battery pack configuration information, and obtain the configuration status output by the multiple sampling chips within a first preset time. The first preset time can be the time after the configuration status results of the multiple sampling chips are obtained. Within this preset time, the corresponding configuration status of the multiple sampling chips is obtained, and the configuration status can be "initialization complete" or "initialization incomplete". The battery pack needs to complete the configuration of the sampling chips, cell voltage, and temperature sampling channels to obtain the configured battery sampling device and generate the corresponding software version; otherwise, the configuration will fail. In this embodiment of the invention, the battery pack configuration flowchart is as follows: Figure 3As shown, based on the configuration status, the number of sampling chips that have completed initialization is determined. If the number of chips that have completed initialization matches the configured number of chips, it indicates that the configuration information matches the actual battery pack sampling chip data information. The battery pack is then sampled to obtain sampling data. Based on the sampling data, the number of valid sampling channels recorded in the preset sampling channels of the battery sampling device is determined. When the number of valid sampling channels recorded matches the number of voltage sampling channels C configured for the battery pack, and the number of temperature channels recorded Tx matches the number of temperature channels T configured for the battery pack, the sampling channel configuration is complete. The battery data is then reported, the battery sampling configuration is complete, and the battery sampling device generates software version information. When the number of chips that have completed initialization does not match the configured number of chips, the number of sampling chips read is further determined. If the received number of sampling chips Nx is greater than the configured number of sampling chips N, a first message is pushed to the user, which is information about multiple sampling chip initialization errors. If the received number of sampling chips Nx is less than the configured number of sampling chips N, a second message is pushed to the user, which includes chip information of the sampling chips that have completed initialization and the reason for the sampling information of the sampling chips that have not completed initialization. Based on the first or second information, multiple sampling chips are re-initialized and configured. The number of re-initialization attempts for these chips is determined. If the number of attempts exceeds a preset limit, a third message is sent to the user indicating a configuration failure for multiple sampling chips. When the number of battery sampling channels is inconsistent, information from other sampling channels is obtained. Based on the configuration and channel information, the channel number and cell number of these other sampling channels are determined, and a fourth message is sent to the user indicating a configuration error. This allows personnel to pinpoint the cause of the failure.
[0038] It should be noted that the configuration process of the battery sampling configuration module is divided into sampling chip configuration and sampling channel configuration. Sampling chip configuration is performed first. If the sampling channel configuration is successful, the configuration of the sampling channel continues. If any configuration verification fails, the entire configuration fails. After the battery sampling configuration module completes its configuration, based on the number of individual sampling chips and the module order within the battery pack recorded in the battery pack configuration information, the voltage and temperature data uploaded by the battery sampling chips are reordered according to the actual connection order of the corresponding modules in the battery pack. Optionally, this can be done by starting with the voltage at the negative terminal of the battery pack and gradually increasing it towards the positive terminal. This reordering completes the reporting of the individual voltage and temperature of the battery pack. Finally, a battery sampling device configuration completion message is generated, along with the corresponding software version number, which is stored in the storage module.
[0039] Step S106: Use the configured battery sampling device to sample data from the battery pack to obtain battery data.
[0040] The battery data mentioned above can be data about the battery fed back in the order of the battery pack modules, including but not limited to: voltage value, temperature value, configuration information including the generation of software version number.
[0041] In one optional embodiment, after successful configuration, the configured battery sampling device is used to feed back voltage and temperature values in the order of battery pack modules to sample the battery pack.
[0042] Through the above steps, after obtaining the battery pack's configuration information, multiple sampling chips in the battery sampling device can be configured based on this information, resulting in a configured battery sampling device. This configured device is then used to sample data from the battery pack, yielding battery data. It should be noted that after obtaining the battery pack's configuration information, the battery sampling device configures the sampling chips and sampling channels according to different configuration details, thereby collecting battery data. Simultaneously, it generates a unique battery module software version, enabling the same battery sampling software to adapt to various battery pack configurations and vehicle model configurations. This reduces the workload of software version maintenance and achieves the technical effect of adapting the same battery sampling software to multiple battery pack configurations and vehicle model configurations, thus solving the technical problem of poor flexibility in related technologies for battery sampling devices.
[0043] Optionally, based on the configuration information of the battery pack, multiple sampling chips in the battery sampling device are configured to obtain a configured battery sampling device, including: initializing the configuration of multiple sampling chips based on the configuration information of the battery pack; verifying the configuration of multiple sampling chips based on the configuration information of the battery pack to determine whether the multiple sampling chips are configured successfully; and obtaining the configured battery sampling device based on the multiple sampling chips in response to the successful configuration of multiple sampling chips.
[0044] In one optional embodiment, after the battery sampling device is powered on again, it reads the battery pack configuration information stored in the storage module, determines the number of sampling chips, the number of voltage channels and temperature channels per chip, and the module order within the battery pack corresponding to the sampling chips based on the battery pack configuration information, and configures the battery sampling device accordingly. In this embodiment, the flowchart for configuring the battery pack sampling chips is as follows: Figure 4As shown, the sampling chips are initialized and configured according to the battery pack's configuration information. After receiving the configuration information of the sampling chips, the battery sampling device verifies the received data. It determines whether the sampling chips are successfully configured based on data such as the number of received chip IDs (Name) Nx or the number of chips in valid initialization state Nx, thus completing the initialization. If the number of received sampling chips Nx matches the configured number of sampling chips N, the configuration information is considered consistent with the actual battery pack sampling chip data information. That is, multiple sampling chips are successfully configured, and the sampling chip configuration is complete. The configured battery sampling device can then be obtained based on these multiple sampling chips.
[0045] It should be noted that, under certain conditions, the sampling chip will return a configuration status feedback to the battery sampling configuration module. The returned configuration status information includes, but is not limited to, chip ID information or initialization information, such as the number of chip IDs read back being Nx. The specific conditions of this invention can be a fixed time, such as the sampling chip initialization time plus the data packet transmission time.
[0046] Further, the configuration information is used to verify multiple sampling chips to determine whether the multiple sampling chips are configured successfully. This includes: obtaining the configuration status output by the multiple sampling chips within a first preset time period, wherein the configuration status includes at least: initialization completed and initialization not completed, and the first preset time period is used to characterize the preset time after the multiple sampling chips start initialization configuration; determining the first number of sampling chips that have completed initialization based on the configuration status output by the multiple sampling chips; in response to the first number of chips being the same as the second number of sampling chips in the configuration information, sampling data from the battery pack based on the multiple sampling chips to obtain first data; determining the first number of sampling channels in the battery sampling device based on the first data; and determining that the multiple sampling chips are all configured successfully in response to the first number of sampling channels being the same as the second number of sampling channels in the configuration information.
[0047] The aforementioned first preset time can be the time after multiple sampling chips have been pre-configured for initialization. The configuration status can be the status of the configuration of multiple sampling chips, and can be, but is not limited to: initialization completed, initialization not completed.
[0048] The first chip count mentioned above can be the number of chips in the initialization completed state among multiple sampling chips, that is, the number of chips in the valid initialization state or the number of chips that have received sampling, which can be represented as Nx. The second chip count can be the actual number of sampling chips configured, which can be represented as N.
[0049] The aforementioned first data may be battery voltage channel C and temperature channel T information data obtained by the sampling chip from the battery pack, including but not limited to: individual cell voltage and module temperature.
[0050] The aforementioned preset sampling channels can be channels where each sampled data value is pre-defined to be within a valid range. The first number of sampling channels can be the number of channels where the single-cell voltage and temperature data collected by the single-cell sampling chip are all valid. The second number of sampling channels can be the battery voltage and temperature channels recorded in the battery pack configuration parameters.
[0051] In one optional embodiment, after receiving the configuration information of the sampling chips, the verification and protection module verifies the received data, obtains the configuration status output by multiple sampling chips within a preset time after the start of initialization configuration, determines the number Nx of sampling chips that have completed initialization, and when the number Nx of initialization-completed sampling chips is consistent with the configured number N of sampling chips, it is determined that the sampling chip configuration is complete. Multiple sampling chips then sample data from the battery pack to obtain battery voltage channel C and temperature channel T information data. In this embodiment, the flowchart for battery sampling chip channel configuration is as follows: Figure 5 As shown, the battery sampling configuration module sends sampling commands for the individual cell voltage and temperature to the sampling chip. After sampling, the sampling chip sequentially feeds back the sampled individual cell voltage values C[0]~C[c] and temperature values T[0]~T[t] to the verification and protection module, and performs data validity judgment on the sampled data. The optional data validity judgment method is to judge whether each sampled data value is within the valid range. Optionally, in this example, the valid range of the individual cell voltage is 2V~4.5V, and the valid range of the module temperature is -30℃~125℃V. If C[x] or T[x] is within the valid range, then it is considered valid. For the sampling data of this channel to be valid, the same logic is applied to determine whether the individual voltage C[0]~C[c] and temperature T[0]~T[t] data collected by all individual sampling chips are valid. If they are valid, the number of valid channels is increased by 1 until all channel data is judged. The number of valid channels Cx and Tx are recorded. The battery voltage channel C and temperature channel T information recorded in the battery pack configuration parameters are compared. If the number of voltage channels Cx is consistent with the number of voltage sampling channels C in the battery pack configuration and the number of temperature channels Tx is consistent with the number of temperature channels T in the battery pack configuration, then the sampling channel configuration is completed.
[0052] It should be noted that when the number of sampling chips that have been initialized is the same as the number of sampling chips configured, the configuration information is considered to be consistent with the actual battery pack sampling chip data.
[0053] Furthermore, the method also includes: in response to the first number of chips being greater than the second number of chips, pushing first information to the user, wherein the first information is used to indicate that multiple sampling chips have an initialization error; in response to the first number of chips being less than the second number of chips, pushing second information to the user, wherein the second information includes at least: chip information of the sampling chips that have completed initialization among the multiple sampling chips and a first reason for the sampling information of the multiple sampling chips that have not completed initialization, wherein the chip information is used to determine the first reason.
[0054] The first piece of information mentioned above could be a prompt message to the user indicating a sampling chip initialization error, such as "Multiple sampling chips have initialization errors." The second piece of information could be the chip information of the sampling chips that failed initialization, along with the reason for the failure. The chip information could be relevant to the sampling chip and could be used to confirm the reason for the failure, such as prompting the user "The following sampling chips have completed initialization; the following are the information and reasons for the sampling chips that failed initialization." The first reason could be the reason for the failure of initialization among the multiple sampling chips, and this reason could be determined from the chip information.
[0055] In one optional embodiment, if the received number of sampled cells Nx is inconsistent with the configured number of sampled chips N, the system continues to determine the number of sampled chips read. If the number of sampled chips that have completed initialization Nx is greater than the configured number of sampled chips N, a battery pack configuration information write error is reported, and a prompt message is sent to the user indicating that multiple sampled chips have failed initialization. If the number of sampled chips that have completed initialization Nx is less than the configured number of sampled chips N, a prompt is reported and pushed to the user, including the number of battery sampled chips read Nx, and the reason for incomplete initialization, such as a battery pack configuration information write error or an abnormal fault in the sampled chip connection harness within the battery pack.
[0056] It should be noted that if the number of battery cells sampled is inconsistent, the battery sampling device will fail to configure and store the fault information. Battery pack testing personnel can use the fault information reported by the battery sampling device, such as incorrect configuration information, the number of battery sampling devices read, and abnormal connection faults of the battery sampling chip, to pinpoint the cause of the configuration failure.
[0057] Furthermore, the method also includes: re-initializing and configuring multiple sampling chips based on first information or second information; determining the number of times the multiple sampling chips need to be re-initialized and configured; and pushing third information to the user in response to the number of configurations exceeding a preset number, wherein the third information is used to indicate that the configuration of multiple sampling chips has failed.
[0058] The configured number of times can be used to confirm faults in sampling chip initialization error messages or sampling chips that have not completed initialization. The preset number of times can be a minimum number of confirmations set in advance.
[0059] The aforementioned third piece of information could be a message indicating that multiple sampling chip configurations have failed, for example, a message indicating that "multiple sampling chip configurations have failed".
[0060] In one optional embodiment, the fault is confirmed multiple times based on the sampling chip initialization error information or the chip information of the sampling chip that has not been initialized and the reason for the incomplete initialization of the sampling information. For example, if the number of sampling chips Nx received is inconsistent with the configured number of sampling chips N, the sampling chip configuration command can be sent multiple times. If the multiple confirmations are inconsistent, that is, if the number of configuration attempts is greater than the preset number, the configuration failure can be finally confirmed, and multiple sampling chip configuration failure prompts can be sent to the user. If the data is consistent at one of them, the configuration is considered to be complete.
[0061] Optionally, the method further includes: in response to the difference between the number of the first sampling channels and the number of the second sampling channels, obtaining channel information of other sampling channels, wherein the other sampling channels are used to characterize the sampling channels in the battery sampling device other than the preset sampling channels; determining the channel number and cell number of the other sampling channels based on the configuration information and the channel information, wherein the cell number corresponds one-to-one with the channel number; and pushing fourth information to the user based on the channel number and the cell number, wherein the channel number and the cell number are used to determine the second reason for the sampling failure, and the fourth information is used to prompt the user of the second reason for the configuration failure of multiple sampling chips.
[0062] The aforementioned other sampling channels can be sampling channels in the battery sampling device other than the preset sampling channels, i.e., channels that are not sampled. Channel information can be related to the sampling channel, including but not limited to: channel number, number of voltage channels, and number of temperature channels. The channel number can be the channel number of the sampling chip; the number is used to report invalid sampling data sequentially, and the specific location of the failed sampling channel can be determined based on the number. The cell number can be the corresponding number of the sampling chip; invalid sampling data is reported sequentially, and the specific location of the failed sampling channel can be determined based on the number.
[0063] The fourth piece of information mentioned above can be information that prompts the user about the reasons for multiple sampling chip configuration failures. For example, "Cell No. 2 in channel No. 3 caused the configuration failure." This information comes from battery pack testing personnel reporting abnormal sampling data for individual cells, along with the abnormal channel number, thus pinpointing the cause of the configuration failure. The second reason can also be the cause of the configuration failure, which can be determined based on the channel number and cell number.
[0064] In one optional embodiment, if the recorded number of voltage channels Cx is inconsistent with the number of voltage sampling channels C configured in the battery pack, or the recorded number of temperature channels Tx is inconsistent with the number of temperature channels T configured in the battery pack, the channel information of other sampling channels is obtained. Based on the number of voltage channels and the number of temperature channels recorded in the battery pack configuration parameters, the battery sampling device records the channels that are not sampled. According to the order of the sampling chip sampling module in the battery pack, the device reports the channel number and cell number in the battery pack corresponding to the invalid sampling data. Based on the configuration information and channel information, the device determines the channel number and cell number of the invalid channel. Based on the channel number and cell number, the device determines the reason for the sampling failure and sends the reason for the configuration failure to the user.
[0065] It should be noted that if the number of battery sampling channels is inconsistent, the battery sampling device configuration will fail and the fault information will be stored. Battery pack off-line testing personnel can report abnormal battery cell sampling data and the abnormal channel number to pinpoint the cause of the configuration failure.
[0066] Optionally, multiple sampling chips are initialized based on the battery pack configuration information, including: obtaining the sampling channel code from the battery pack configuration information; and initializing multiple sampling chips sequentially based on the sampling channel code.
[0067] The aforementioned sampling channel encoding can be the encoding of the sampling channel of the battery sampling chip.
[0068] In one alternative embodiment, the sampling channel code is obtained based on the battery pack configuration information, and the multiple sampling chips are initialized accordingly.
[0069] Optionally, after obtaining the configuration information of the battery pack, the method includes: obtaining the configuration code corresponding to the configuration information of the battery pack; in response to the existence of the configuration code in the preset storage module, initializing the configuration of multiple sampling chips based on the configuration information, wherein the preset storage module is used to store preset data corresponding to the battery pack; in response to the absence of the configuration code in the preset storage module, pushing fourth information to the user, wherein the fourth information is used to prompt the user that the configuration information is incorrect.
[0070] The configuration code mentioned above can be the one generated after successful configuration. During the configuration process, each step of the configuration is verified. Based on the configuration code, abnormal verification results can be identified, the cause of the abnormality can be located, and corresponding fault information can be reported. Battery pack production line personnel can use this to identify configuration information errors or battery pack malfunctions and troubleshoot the problem.
[0071] The aforementioned preset storage module can be a module that pre-sets and stores preset data corresponding to the battery pack. The preset data can be data pre-defined for the battery pack.
[0072] In one optional embodiment, after receiving the battery configuration information written by the battery pack offline device, the battery sampling device compares the obtained configuration code with the configuration code pre-existing in the battery sampling device, and initializes the configuration of multiple sampling chips according to the configuration code; if the required configuration code is not found in the storage module, a prompt message indicating an error in the configuration information is pushed to the user.
[0073] It should be noted that if the battery pack configuration code written by the offline device is not in the pre-stored configuration code, the relevant configuration information of the battery pack will not be stored, and an error response code will be written to the downstream device to return the battery pack configuration information.
[0074] Optionally, after obtaining the configured battery sampling device, the method further includes: generating sampling version information of the battery sampling device based on the configuration information of the battery pack, and storing the sampling version information in a preset storage module; in response to the sampling version information being different from the version information of the battery pack, pushing a fifth message to the user, wherein the fifth message is used to prompt the user that the data sampling module and the battery pack are mismatched; in response to the sampling version information being the same as the version information of the battery pack, using the configured battery sampling device to sample data from the battery pack to obtain battery data.
[0075] The aforementioned sampling version information can be the version information of the battery sampling device. The version information can also be the version information of the battery pack. The data sampling module can be a module that samples the sampling version information of the battery sampling device and compares it with the battery pack version information.
[0076] The fifth piece of information mentioned above could be a message indicating a mismatch between the data sampling module and the battery pack, such as a message that "the data sampling module and the battery pack are not compatible."
[0077] In one optional embodiment, after receiving the battery configuration information written by the battery pack offline device, the battery sampling device generates corresponding sampling version information based on the battery pack configuration information and stores the sampling version information in a preset storage module. When the sampling version information differs from the battery pack version information, a prompt message indicating a data sampling module and battery pack mismatch is pushed to the user; when the sampling version information matches the battery pack version information, the configured battery sampling device is used to sample data from the battery pack to obtain the required battery data.
[0078] The following is combined Figure 6 A preferred embodiment of the present invention will be described in detail, such as... Figure 6As shown, when the battery sampling device receives the instruction to write the battery pack configuration information, it stores the configuration information in the storage module. After the battery sampling device is powered on again, it reads the battery pack configuration information stored in the storage module to check if there is matching configuration information, whether the battery sampling chip is configured, and whether the cell voltage and temperature sampling channels are configured. Once the battery sampling configuration module is configured, multiple sampling chips sample the battery, report the individual cell voltage and temperature of the battery pack, and finally generate battery sampling device configuration completion information, as well as the corresponding software version number, which is stored in the storage module. The verification and protection module verifies each process. If any process configuration verification fails, the configuration fails, an error response is reported and the user is notified, and corresponding protection measures are activated.
[0079] Example 2
[0080] According to another aspect of the present invention, a battery data sampling device is also provided. This device can perform the battery data sampling method in the above embodiments. The specific implementation and preferred application scenarios are the same as those in the above embodiments, and will not be described in detail here.
[0081] Figure 7 This is a schematic diagram of a battery data sampling device according to an embodiment of the present invention, such as... Figure 7 As shown, the device includes the following components: a first acquisition module 70, a configuration module 72, and a first sampling module 74.
[0082] The first acquisition module 70 is used to acquire the configuration information of the battery pack;
[0083] Configuration module 72 is used to configure multiple sampling chips in the battery sampling device based on the configuration information of the battery pack, so as to obtain the configured battery sampling device.
[0084] The first sampling module 74 is used to sample data from the battery pack using the configured battery sampling device to obtain battery data.
[0085] Optionally, the configuration module 72 includes: an initialization unit for initializing and configuring multiple sampling chips based on the configuration information of the battery pack; a first determination unit for verifying the configuration of multiple sampling chips based on the configuration information of the battery pack and determining whether the multiple sampling chips are configured successfully; and a first acquisition unit for obtaining the configured battery sampling device based on the multiple sampling chips in response to the successful configuration of the multiple sampling chips.
[0086] Optionally, the first determining unit includes: a first acquiring subunit, configured to acquire the configuration status output by multiple sampling chips within a first preset time period, wherein the configuration status includes at least: initialization completed and initialization not completed, and the first preset time period is used to characterize a preset time period after the multiple sampling chips begin initialization configuration; a first determining subunit, configured to determine the first number of sampling chips that have completed initialization based on the configuration status output by the multiple sampling chips; a first sampling subunit, configured to perform data sampling on the battery pack based on the multiple sampling chips to obtain first data in response to the first number of chips being the same as the second number of sampling chips in the configuration information; a second determining subunit, configured to determine the first number of preset sampling channels in the battery sampling device based on the first data; and a third determining subunit, configured to determine that the multiple sampling chips have all been successfully configured in response to the first number of sampling channels being the same as the second number of sampling channels in the configuration information.
[0087] Optionally, the device further includes: a first push module, configured to push first information to a user in response to a first number of chips being greater than a second number of chips, wherein the first information is used to indicate that multiple sampling chips have an initialization error; and a second push module, configured to push second information to a user in response to a first number of chips being less than a second number of chips, wherein the second information includes at least: chip information of the sampling chips that have completed initialization and a first reason for the sampling information of the sampling chips that have not completed initialization, wherein the chip information is used to determine the first reason.
[0088] Optionally, the device further includes: a first initialization module, configured to re-initialize and configure multiple sampling chips based on first information or second information; a first determination module, configured to determine the number of times the multiple sampling chips need to be re-initialized and configured; and a third push module, configured to push third information to the user in response to the number of configurations exceeding a preset number, wherein the third information is used to indicate that the configuration of multiple sampling chips has failed.
[0089] Optionally, the device further includes: a second acquisition module, configured to acquire channel information of other sampling channels in response to a difference between the number of first sampling channels and the number of second sampling channels, wherein the other sampling channels are used to characterize sampling channels in the battery sampling device other than preset sampling channels; a second determination module, configured to determine the channel number and cell number of other sampling channels based on configuration information and channel information, wherein the cell number corresponds one-to-one with the channel number; and a fourth push module, configured to push fourth information to the user based on the channel number and cell number, wherein the channel number and cell number are used to determine a second reason for sampling failure, and the fourth information is used to prompt the user of a second reason for the configuration failure of multiple sampling chips.
[0090] Optionally, the initialization unit includes: a second acquisition subunit for acquiring the sampling channel code in the configuration information of the battery pack; and an initialization subunit for sequentially initializing and configuring multiple sampling chips based on the sampling channel code.
[0091] Optionally, after obtaining the configuration information of the battery pack, the device further includes: a third acquisition module, used to acquire the configuration code corresponding to the configuration information of the battery pack; a second initialization module, used to initialize the configuration of multiple sampling chips based on the configuration information in response to the existence of the configuration code in the preset storage module, wherein the preset storage module is used to store preset data corresponding to the battery pack; and a fifth push module, used to push fourth information to the user in response to the absence of the configuration code in the preset storage module, wherein the fourth information is used to prompt the user that the configuration information is incorrect.
[0092] Optionally, after obtaining the configured battery sampling device, the device further includes: a storage module, used to generate sampling version information of the battery sampling device based on the configuration information of the battery pack, and store the sampling version information in a preset storage module; a sixth push module, used to push fifth information to the user in response to the difference between the sampling version information and the battery pack version information, wherein the fifth information is used to prompt the user that the data sampling module and the battery pack are mismatched; and a second sampling module, used to sample data from the battery pack using the configured battery sampling device in response to the same sampling version information as the battery pack version information, to obtain battery data.
[0093] Example 3
[0094] According to another aspect of the present invention, a vehicle is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to operate the apparatus of any of the above embodiments.
[0095] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0096] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0097] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0098] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0099] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0100] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0101] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method of battery data sampling, the method comprising: The method comprises: obtaining configuration information of a battery pack; configuring a plurality of sampling chips in a battery sampling device based on the configuration information of the battery pack, to obtain a configured battery sampling device; sampling data of the battery pack by using the configured battery sampling device, to obtain battery data; wherein, in response to the battery pack being offline, writing a vehicle model and the configuration information into the battery sampling device; in response to the battery sampling device being powered on again, reading the configuration information stored in a storage area by using the battery sampling device; the method further comprises: in response to reading the configuration information, initializing and configuring the plurality of sampling chips according to the configuration information, obtaining a configuration state output by the plurality of sampling chips within a first preset time, wherein the configuration state at least includes: initialization completion and initialization failure, and the first preset time represents a preset time after the plurality of sampling chips start to be initialized and configured; determining a first chip number of sampling chips that have completed initialization based on the configuration state output by the plurality of sampling chips; in response to the first chip number being the same as a second chip number of sampling chips in the configuration information, sampling data of the battery pack based on the plurality of sampling chips, to obtain first data; determining a first sampling channel number of preset sampling channels in the battery sampling device based on the first data; in response to the first sampling channel number being the same as a second sampling channel number in the configuration information, determining that the plurality of sampling chips have all been successfully configured; and in response to the plurality of sampling chips having all been successfully configured, generating software version information.
2. The method of claim 1, wherein, the method further comprises: in response to the plurality of sampling chips having all been successfully configured, obtaining the configured battery sampling device based on the plurality of sampling chips.
3. The method of claim 1, wherein, the method further comprises: in response to the first chip number being greater than the second chip number, pushing first information to a user, wherein the first information is used to prompt initialization errors of the plurality of sampling chips; in response to the first chip number being less than the second chip number, pushing second information to the user, wherein the second information at least includes: chip information of sampling chips that have completed initialization in the plurality of sampling chips and a first reason of sampling chips that have not completed initialization in the plurality of sampling chips, and the chip information is used to determine the first reason.
4. The method of claim 3, wherein, the method further comprises: reinitializing and configuring the plurality of sampling chips based on the first information or the second information; determining a configuration number of reinitializing and configuring the plurality of sampling chips; in response to the configuration number being greater than a preset number, pushing third information to the user, wherein the third information is used to prompt configuration failures of the plurality of sampling chips.
5. The method of claim 1, wherein, the method further comprises: in response to the first sampling channel number being different from the second sampling channel number, obtaining channel information of other sampling channels, wherein the other sampling channels represent sampling channels in the battery sampling device other than the preset sampling channels; Determine a channel number and a cell number of the other sampling channel based on the configuration information and the channel information, wherein the cell number and the channel number are in one-to-one correspondence; Push fourth information to the user based on the channel number and the cell number, wherein the channel number and the cell number are used to determine a second reason for sampling failure, and the fourth information is used to prompt the user of the second reason for the configuration failure of the plurality of sampling chips.
6. The method of claim 2, wherein, Initialize and configure the plurality of sampling chips based on the configuration information of the battery pack, comprising: Obtain a sampling channel code in the configuration information of the battery pack; Initialize and configure the plurality of sampling chips based on the sampling channel code.
7. The method of claim 1, wherein, After obtaining the configuration information of the battery pack, the method comprises: Obtain a configuration code corresponding to the configuration information of the battery pack; In response to the presence of the configuration code in the preset storage module, initialize and configure the plurality of sampling chips based on the configuration information, wherein the preset storage module is used to store preset data corresponding to the battery pack; In response to the absence of the configuration code in the preset storage module, push fourth information to the user, wherein the fourth information is used to prompt the user that the configuration information is incorrect.
8. The method of claim 1, wherein, After obtaining the configured battery sampling device, the method further comprises: Generate sampling version information of the battery sampling device based on the configuration information of the battery pack, and store the sampling version information in a preset storage module; In response to the sampling version information being different from the version information of the battery pack, push fifth information to the user, wherein the fifth information is used to prompt the user that the data sampling module and the battery pack are incorrectly matched; In response to the sampling version information being the same as the version information of the battery pack, use the configured battery sampling device to sample data of the battery pack to obtain battery data.
9. A vehicle characterized by comprising: Comprise: At least one processor; And The memory is in communication connection with the at least one processor; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to run the device of any one of claims 1 to 8.
Citation Information
Patent Citations
Configurable electric vehicle battery management monitoring system and realization method
CN107317058A
Battery parameter determination method and device of battery pack, and electronic equipment
CN114167292A
Battery running state display method and system
CN114487849A