Detailed Description
Embodiments of the technical scheme of the present application will be described in detail below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical aspects of the present application, and thus are merely examples, and are not intended to limit the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs, the terms used herein are for the purpose of describing particular embodiments only and are not intended to be limiting of the application, and the terms "include" and "have" and any variations thereof in the description of the embodiments of the application and the above drawings are intended to cover non-exclusive inclusions.
It should be noted that, in the present embodiment, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
In addition, the embodiments of the present application may be arbitrarily combined without any collision. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
With the development of new energy industry, the battery market mainly comprising power batteries and energy storage batteries is continuously expanding, with the rapid increase of the number of items of battery management units and frequent iteration, and Hardware in-Loop (HIL) test is used as a key verification link in the research and development stage of the battery management units, and the importance of the Hardware in-Loop (HIL) test is gradually highlighted.
The HIL test plays an extremely important role in the development flow of the battery management unit. The HIL test system can realize that other device components except the battery management unit and the controlled object are replaced by a simulation model, and the battery management unit and the controlled object are connected with the simulation system in a closed loop manner to perform function and performance tests on each module or each component in the battery management unit. Because the whole vehicle verification period is longer and is limited by test staff, test environment, natural conditions and the like, the development node cannot be guaranteed to finish on time, the HIL test system can simulate part or all of control strategies of the whole vehicle test environment verification at different stages of project development, dangerous test cases in the real vehicle test environment are executed, the external environment condition limitation is reduced, the test period and the development cost are greatly shortened, and the test manpower is liberated, so that the HIL test system plays an irreplaceable role in the development process of the battery management unit.
There may be a State Of Charge (SOC) value Of at least one battery cell in the battery pack, which is greatly different from the SOC value Of other battery cells, and if the at least one battery cell is not subjected to a discharging process or a charging process so that the SOC value Of the battery cell in the battery pack is substantially identical, the energy transmission capability Of the battery pack may be limited.
The balancing module or balancing function in the battery management unit may perform balancing control on at least one battery cell. In any embodiment of the present application, balancing the at least one battery cell may include discharging control or charging control of the at least one battery cell. For example, each battery cell in the battery pack is connected with an equalization circuit in parallel, and the battery management unit can control the on or off of at least one equalization circuit to charge or discharge at least one battery cell connected with the at least one equalization circuit in parallel one by one respectively through the at least one equalization circuit.
The equalization circuit in any of the embodiments of the present application may also be referred to as an equalization loop.
Referring to fig. 1, fig. 1 is a schematic diagram of the architecture of a test system of some embodiments-the test system 100 includes a battery management unit 101, a terminal device 102, a battery emulator 103, a battery cell management Controller (CELL MANAGEMENT Controller, CMC) unit 104, the CMC unit 104 including one or more CMCs (e.g., CMC-1 and CMC-2). It should be noted that, in fig. 1, CMC unit 104 is shown to include CMC-1 and CMC-2, and embodiments of the application are not limited thereto, for example, in a practical scenario, CMC unit 104 may include CMC-1 to CMC-N, where N is an integer greater than or equal to 1. In some embodiments, the battery emulator 103 may also be referred to as a battery emulator. In some embodiments, CMC unit 104 may be replaced with an analog front end chip, also referred to as an AFE chip, in a BMS slave board. In some embodiments, the battery management unit 101 may be replaced with a BMS motherboard.
The terminal device 102 is communicatively connected to the battery emulator 103, the terminal device 102 sends the specified parameter values of the at least one battery cell to the battery emulator 103, and the battery emulator 103 emulates the target parameter values of the at least one battery cell based on the specified parameter values of the at least one battery cell. The parameter values include temperature values and/or voltage values. The specified parameter value deviates from the target parameter value, subject to the influence of the accuracy of the battery emulator 103.
The battery emulator 103 is communicatively connected to a plurality of CMC's. The battery emulator 103 has a plurality of voltage channels and a plurality of temperature channels, the plurality of voltage channels and the plurality of temperature channels being connected to a plurality of CMC, one CMC being connected to at least one voltage channel and/or at least one temperature channel of the battery emulator 103. In the case where CMC unit 104 includes a plurality of CMCs, the plurality of CMCs may be connected in sequence and connected to battery management unit 101. In some embodiments, the connection of the CMC and the connection of the CMC to the battery management unit 101 correspond to a daisy chain communication.
The plurality of CMC transmits the specific parameter values of the battery cells acquired from the battery emulator 103 to the battery management unit 101. The SOX module or SOX function in the battery management unit 101 determines the equalization information of the battery cells according to the specific parameter values of the battery cells. Limited by the influence of the sampling accuracy, there is a deviation between the specific parameter value and the target parameter value.
The embodiment of fig. 1 requires the destruction of the equalization circuitry in the CMC board (i.e., BMS slave) in order to test for equalization failure. For example, when testing an open circuit fault of the equalization circuit, a tester is required to manually remove the resistor in the equalization circuit, the CMC panel sets the open circuit fault of the equalization circuit, and an indication of the open circuit fault of the equalization circuit is sent to the battery management unit. For another example, when testing the equalization circuit short-circuit fault, a tester is required to manually short-circuit the two ends of the equalization circuit, the CMC board sets the equalization circuit short-circuit fault, and sends indication information of the equalization circuit short-circuit fault to the battery management unit. For another example, when testing the excessive temperature fault of the equalization circuit, a tester is required to hold the heat gun to heat the CMC board until the temperature of the area corresponding to the equalization circuit exceeds a temperature threshold, for example, the temperature is raised to 80 ℃, the CMB sets the excessive temperature fault of the equalization circuit, and sends indication information of the excessive temperature fault of the equalization circuit to the battery management unit. However, each time the battery management unit is subjected to the balanced fault test, the CMC board is damaged, and the damaged CMC board needs to be replaced when the next balanced fault test is performed, so that the test efficiency of testing the balanced fault function of the battery management unit is reduced, and the test cost of testing the balanced fault function of the battery management unit is also increased.
Based on the above problems, the embodiment of the application provides a fault state information processing method, which is applied to an analog front-end simulator, and comprises the steps of receiving first state information of each equalization circuit in a first equalization circuit set sent by a terminal device, determining second state information of each equalization circuit in a second equalization circuit set simulated by the analog front-end simulator according to the first state information of each equalization circuit in the first equalization circuit set, wherein the first equalization circuit set is included in the second equalization circuit set, the second state information of at least part of equalization circuits is the second fault state information, sending the second state information of each equalization circuit in the second equalization circuit set to a battery management unit, determining the fault state information of each equalization circuit in the first equalization circuit set according to the second state information of each equalization circuit in the second equalization circuit set by the battery management unit, and sending the fault state information of each equalization circuit to the terminal device by the battery management unit, so that the terminal device determines a fault test result of the battery management unit according to the fault information of each equalization circuit.
In this way, the equalization circuit fault information determined by the battery management unit is determined according to the second state information of each equalization circuit in the second equalization circuit set sent by the analog front-end simulator, the second state information of each equalization circuit in the second equalization circuit set is sent to the analog front-end simulator through the terminal equipment, so that the battery management unit determines different equalization circuit fault information, and further realizes multiple equalization fault tests of the battery management unit, thus, a tester is not required to operate the analog front-end simulator, and is not required to destroy the analog front-end simulator, multiple equalization fault tests of the battery management unit can be realized, the test efficiency of testing the equalization fault function of the battery management unit is not improved, the test cost of testing the equalization fault function of the battery management unit is also reduced, in addition, in the primary test process, the first state information of all equalization circuits sent by the terminal equipment is received by the analog front-end simulator, the second state information of all equalization circuits is further realized, the battery management unit can determine the corresponding equalization circuit fault information, and therefore, the battery management unit can test the equalization fault information corresponding to all equalization circuits according to the first state information of all equalization circuits, the first state information of all equalization circuits sent by the terminal equipment, the first state information of all equalization circuits can be determined by the analog front-end simulator, the battery management unit can be tested against the first state information, the equalization circuit can be tested by the first equalization circuit, and the equalization circuit has the effect of the equalization circuit, and the third state information of each equalization circuit in the third equalization circuit set is used for determining the second state information of each equalization circuit in the second equalization circuit set, so that the second state information of each equalization circuit in the second equalization circuit set is uniquely determined, the reliability of the second state information of each equalization circuit in the second equalization circuit set is improved, the problem that the state information of all equalization circuits cannot be sent to a battery management unit when the analog front-end simulator receives the state information of part of equalization circuits is solved, and the effectiveness of information transmission is improved.
The battery management unit of the embodiment of the application can be applied to an electric device. For example, the powered device may include a vehicle, a ship, an aircraft, or the like. For another example, the powered device may include a cell phone, tablet, notebook computer, electric toy, electric tool, battery car, electric car, ship, spacecraft, and the like. Among them, the electric toy may include fixed or mobile electric toys, such as game machines, electric car toys, electric ship toys, electric plane toys, and the like, and the spacecraft may include planes, rockets, space planes, and spacecraft, and the like. The vehicle in the embodiment of the application can comprise a fuel oil vehicle, a fuel gas vehicle, a new energy vehicle, an electric bicycle, an electric motorcycle or a scooter, etc. In some embodiments, the new energy vehicle may be a pure electric vehicle, a hybrid vehicle, an extended range vehicle, or the like.
The terminal device of the embodiment of the application can comprise a computer, a server, a display device, a mobile phone, a vehicle-mounted device, a Virtual Reality (VR) device, an augmented Reality (Augmented Reality, AR) device and the like. The computer may include a tablet personal computer (Pad), a notebook computer, a computer with a wireless transceiver function, a palm computer, a desktop computer, or the like.
The analog front end simulator (AFE simulator) in the embodiment of the present application may also be referred to as an analog front end simulator (AFE simulator). The analog front end emulator is used to emulate/simulate one or more analog front end chips in the BMS slave board. The analog front-end emulator is able to emulate the channels of one or more analog front-end chips in the BMS slave board (i.e., the second set of channels of the embodiments of the present application). In addition, the analog front-end emulator is used to emulate and/or simulate one or more equalization circuits in the BMS slave board. The analog front-end emulator is able to emulate the equalization circuitry of one or more analog front-end chips in the BMS slave board (i.e., the second set of equalization circuitry in embodiments of the present application).
The output of the analog front-end simulator is the same as the information type of the output of the analog front-end chip, and is the battery cell parameter value corresponding to the channel and/or is the state information of the equalizing circuit.
The mode that the analog front-end simulator and the analog front-end chip acquire the battery monomer parameter values is different, the battery monomer parameter values of a plurality of channels acquired by the analog front-end simulator are transmitted by the terminal equipment, and the battery monomer parameter values of a plurality of channels acquired by the analog front-end chip are acquired by the battery simulator or a plurality of real battery monomers.
The analog front-end emulator is communicatively coupled to the terminal device in a manner that causes the analog front-end emulator to obtain parameter values of the battery cells of the one or more channels by sending the parameter values of the battery cells of the one or more channels through the terminal device, or causes the analog front-end emulator to obtain status information of the one or more equalization circuits by sending the status information of the one or more equalization circuits through the terminal device, e.g., in some embodiments, the communication connection between the analog front-end emulator and the terminal device may be a controller area network bus (Controller Area Network, CAN) communication connection. Each of the channels of the analog front-end chip may be connected to the battery cell to sample a voltage value of the battery cell, and/or may be connected to a thermistor corresponding to the battery cell to obtain a temperature value of the battery cell, or each of the channels of the analog front-end chip may be connected to the channels of the battery simulator to sample a voltage value and/or a temperature value output by the battery simulator, or the analog front-end chip may send state information of the equalization circuit to the battery management unit.
The connection mode of the interface for outputting information of the analog front-end simulator is the same as the connection mode of the interface for outputting information of the analog front-end chip, and is connected to the battery management unit. For example, the communication method between the analog front end emulator and the battery management unit may be the same as the communication method between the analog front end chip and the battery management unit.
It should be noted that the channel in any embodiment of the present application may also be referred to as a sampling channel. The battery cell in any of the embodiments of the present application may be replaced with a cell or a cell unit.
Referring to fig. 2, fig. 2 is a flow chart of a method for processing fault status information according to some embodiments, the method being applied to an analog front end emulator, the method including:
S201, receiving first state information of each equalization circuit in a first equalization circuit set sent by the terminal equipment, wherein at least part of the first state information of the equalization circuits in the first equalization circuit set is first fault state information, and the first equalization circuit set is included in a second equalization circuit set simulated by an analog front-end simulator.
After S201, S202 or S203 may also be performed.
S202, under the condition that the first equalizing circuit set is the same as the second equalizing circuit set, determining second state information of each equalizing circuit in the second equalizing circuit set according to the first state information of each equalizing circuit in the second equalizing circuit set.
Wherein the second state information of at least part of the equalization circuit is second fault state information.
S203, when the first equalizing circuit set is different from the second equalizing circuit set, determining second state information of each equalizing circuit in the first equalizing circuit set according to the first state information of each equalizing circuit in the first equalizing circuit set.
S204, determining third state information of each equalizing circuit in a third equalizing circuit set, wherein the third equalizing circuit set is a set obtained by removing the first equalizing circuit set from the second equalizing circuit set.
S205, determining the second state information of each equalizing circuit in the second equalizing circuit set according to the second state information of each equalizing circuit in the first equalizing circuit set and the third state information of each equalizing circuit in the third equalizing circuit set.
Wherein the second state information of at least part of the equalization circuit is second fault state information.
S206, sending the second state information of each equalization circuit in the second equalization circuit set to the battery management unit, so that the battery management unit determines and sends equalization circuit fault information to the terminal equipment, and the terminal equipment determines an equalization fault test result of the battery management unit according to the equalization circuit fault information.
In some embodiments, the communication connection of the terminal device with the analog front end emulator may be a controller area network bus (Controller Area Network, CAN) communication connection. Thus, the terminal device may send a CAN message to the analog front-end emulator, the CAN message including the channel identifier of the channel and the battery cell parameter value. The connection manner of the communication connection between the terminal device and the analog front end emulator is not limited in the embodiments of the present application, and the communication connection between the terminal device and the analog front end emulator may be other communication connection, and other communication connection may include a serial peripheral interface (SERIAL PERIPHERAL INTERFACE, SPI) communication connection, an integrated circuit bus (Inter-INTEGRATED CIRCUIT, IIC) communication connection, a universal asynchronous receiver/transmitter (Universal Asynchronous Receiver/TRANSMITTER, UART) communication connection, or a universal serial bus (Universal Serial Bus, USB) communication connection, for example.
In some embodiments, the communication connection between the analog front end emulator and the battery management unit may be a daisy-chain communication connection and communicate via differential signals. The embodiment of the application is not limited to the connection mode of the communication connection between the analog front-end emulator and the battery management unit, for example, the communication connection between the analog front-end emulator and the battery management unit may be other communication connection, and the other communication connection may include a CAN communication connection, an SPI communication connection, an IIC communication connection, a UART communication connection, a USB communication connection, or the like. In some embodiments, the battery management unit is used to connect the interface of the analog front-end emulator, and also to connect the analog front-end chip in the BMS slave board. For example, in one implementation scenario, after the battery management unit is tested, the battery management unit is mounted on the vehicle and the interface of the battery management unit for connecting the analog front end emulator is communicatively connected to the analog front end chip in the BMS slave board.
In some embodiments, the communication connection between the terminal device and the battery management unit may comprise a CAN communication connection. The connection mode of the communication connection between the terminal device and the battery management unit is not limited in the embodiment of the application, for example, the communication connection between the terminal device and the battery management unit may be other communication connection, and the other communication connection may include an SPI communication connection, an IIC communication connection, a UART communication connection, a USB communication connection, or the like.
In some embodiments, a CAN open environment (CAN Open Environment, CANoe) project may be built in the terminal device, and the CANoe project sends status information of the equalization circuit and/or the battery cell parameter values described below to the analog front-end emulator through the terminal device.
In some embodiments, the terminal device may send the status information of each equalization circuit and may also send the identification of each equalization circuit, so that the analog front-end emulator may also receive the identification of each equalization circuit while receiving the status information of each equalization circuit. In any of the embodiments of the present application, the analog front end emulator may determine the identity of each equalization circuit while determining the state information of each equalization circuit. In any embodiment of the present application, the analog front end emulator may send the status information of each equalization circuit, and may also send the identification of each equalization circuit.
In some embodiments, the terminal device may send the parameter value of the battery cell of each channel and may also send the channel identifier of each channel, so that the analog front-end emulator may also receive the channel identifier of each channel while receiving the parameter value of the battery cell of each channel. In any of the embodiments of the present application, the analog front end emulator may determine the cell parameter values for each channel, as well as the channel identification for each channel. In any of the embodiments of the present application, the analog front end emulator may send the cell parameter value of each channel, and also send the channel identification of each channel.
In some embodiments, receiving the first state information of each equalization circuit in the first equalization circuit set sent by the terminal device may include receiving the first state information of each equalization circuit in the first equalization circuit set sent by the terminal device and an identification of each equalization circuit. Wherein the identification of one equalization circuit uniquely corresponds to the state information of one equalization circuit.
In some embodiments, the first set of equalization circuits may include one equalization circuit or a plurality of equalization circuits. When the first channel set includes one equalization circuit, a fault parameter value of each equalization circuit in the first equalization circuit set is a fault parameter value of the one equalization circuit.
The first state information and/or the second state information may include at least one of indication information of whether a fault is present, fault type indication information at the time of a fault, a current value, a temperature value. For example, the first state information and the second state information each include indication information of whether or not to fail, and failure type indication information at the time of failure. For another example, the first state information and the second state information each include a current value and/or a temperature value. For another example, the first state information includes a current value and/or a temperature value, and the second state information includes indication information of whether or not a fault is present, and fault type indication information at the time of the fault.
In some embodiments, one fault type indication information may be used to indicate a fault type of one of an equalization circuit short fault, an equalization circuit open fault, an equalization circuit over-temperature fault, and the like. Illustratively, a fault type indication information 00,00 may indicate an equalization circuit short circuit fault, a fault type indication information 01,01 may indicate an equalization circuit open circuit fault, a fault type indication information 10,10 may indicate an equalization circuit over-temperature fault, and a fault type indication information 11,11 may indicate other equalization circuit faults. Also for example, each fault type may correspond to a fault code, for example, the fault type indication information may include a fault code of an equalization circuit short circuit fault, a fault code of an equalization circuit open circuit fault, or a fault code of an equalization circuit over-temperature fault, etc.
In some embodiments, the fault status information includes fault type indication information. In other embodiments, the fault status information includes a fault current value and/or a fault temperature value.
In some embodiments, the fault current value may be 0 or a current value greater than the current threshold. When the fault current value is 0, it is indicated that the fault of the equalization circuit is an open circuit fault of the equalization circuit. When the fault current value is a current value greater than the current threshold value, it is indicated that the fault of the equalization circuit is an equalization circuit short-circuit fault. In some embodiments, the fault temperature value may be a temperature value greater than a temperature threshold, indicating that the fault of the equalization circuit is an over-temperature fault of the equalization circuit.
In any of the embodiments of the present application, one equalization circuit corresponds to one battery cell and/or one voltage channel. For example, the X equalization circuits are in one-to-one correspondence with X battery cells and/or X voltage channels, where X is an integer greater than or equal to 1.
For example, the analog front-end simulator receives the first fault state information of each equalization circuit in the first equalization circuit set sent by the terminal device, and determines the second fault information of each equalization circuit in the first equalization circuit set according to the received information.
For another example, the analog front-end simulator receives first failure state information of each equalization circuit of a part of equalization in the first equalization circuit set sent by the terminal device, and determines second failure state information of each equalization circuit of a part of equalization in the first equalization circuit set and second equalization state information of each equalization circuit of another part of equalization according to the received information.
In some embodiments, the third state information for each equalization circuit in the third set of equalization circuits may be pre-stored in the analog front end. In other embodiments, the third state information for each equalization circuit in the third set of equalization circuits may be sent by the terminal device to the analog front end emulator.
In some embodiments, the third state information of each equalization circuit in the third set of equalization circuits may be third equalization state information, or may be third fault state information, or may be invalid state information.
For example, the third equalization state information may include at least one of equalization indication information, an equalization current value, and an equalization temperature value. For example, the third fault status information may include at least one of fault type indication information, fault current values, fault temperature values. For example, the invalid state information may include an invalid value such as FF or Null.
In some embodiments, where the second state information includes fault type indication information, the third equilibrium state information or the third fault state information may include non-fault indication information or fault type indication information. In some embodiments, where the second state information includes a fault current value and/or a fault temperature value, the third equilibrium state information may include an equilibrium current value and/or an equilibrium temperature value, or the third fault state information may include a fault current value and/or a fault temperature value.
In some embodiments, the third state information for different equalization circuits may be the same.
In some embodiments, S205 may include combining the second state information for each equalization circuit in the first set of equalization circuits with the third state information for each equalization circuit in the third set of equalization circuits to obtain the second state information for each equalization circuit in the second set of equalization circuits.
In some embodiments, the second state information for each equalization circuit in the second set of equalization circuits and the identity of each equalization circuit may be determined based on the first state information for each equalization circuit in the second set of equalization circuits and the identity of each equalization circuit. In some embodiments, the second state information of each equalization circuit in the second set of equalization circuits and the identity of each equalization circuit may be determined based on the second state information of each equalization circuit in the second set of equalization circuits and the identity of each equalization circuit, and based on the third state information of each equalization circuit in the third set of equalization circuits and the identity of each equalization circuit
In some embodiments, the first set of equalization circuits is the same as the second set of equalization circuits. For example, the second equalization circuit set includes 100 equalization circuits, and the first equalization circuit set and the second equalization circuit set are equalization circuits from identification 0 to identification 99.
In other embodiments, the first set of equalization circuits is different from the second set of equalization circuits. For example, the second equalization circuit set includes 100 equalization circuits, the first equalization circuit set includes 50 equalization circuits, the first equalization circuit set is an equalization circuit of identification 0 through identification 49, and the second equalization circuit set is an equalization circuit of identification 0 through identification 99. For another example, the second equalization circuit set includes 100 equalization circuits, the first equalization circuit set includes 50 equalization circuits, the first equalization circuit set is an equalization circuit from identification 50 to identification 99, and the second equalization circuit set is an equalization circuit from identification 0 to identification 99. For another example, the second equalization circuit set includes 100 equalization circuits, the first equalization circuit set includes 50 equalization circuits, the first equalization circuit set is a single-number-identification or a double-number-identification equalization circuit, and the second equalization circuit set is an identification 0-99 equalization circuit. For another example, the second equalization circuit set includes 100 equalization circuits, the first equalization circuit set includes 1 equalization circuit, the first equalization circuit set is an equalization circuit of identification N (N is any one of 0 to 99), and the second equalization circuit set is an equalization circuit of identification 0 to 99.
In some embodiments, transmitting the second state information for each equalization circuit in the second set of equalization circuits to the battery management unit may include transmitting the second state information for each equalization circuit in the second set of equalization circuits and an identification of each equalization circuit to the battery management unit.
In some embodiments, sending the second state information for each equalization circuit in the second set of equalization circuits to the battery management unit may include sending the second state information for each equalization circuit in the second set of equalization circuits to the battery management unit in an order of equalization circuit identification.
In some embodiments, the number of equalization circuits in the second set of equalization circuits may be a fixed value. In some embodiments, the terminal device may configure the number of equalization circuits in the second set of equalization circuits to the analog front end emulator before transmitting the first state information for each equalization circuit in the first set of equalization circuits. In this way, the number of equalization circuits in the second set of equalization circuits may be flexibly configured by the terminal device and may be flexibly modified by the configuration. It can be appreciated that the terminal device may configure the number of equalization circuits in the second equalization circuit set to the battery management unit before transmitting the first status information of each equalization circuit in the first equalization circuit set, or the terminal device may determine the number of equalization circuits in the second equalization circuit set according to the pre-configuration information of the battery management unit and configure the number of equalization circuits in the second equalization circuit set to the analog front-end emulator.
In the technical scheme of the embodiment of the application, the equalization circuit fault information determined by the battery management unit is determined according to the second state information of each equalization circuit in the second equalization circuit set sent by the analog front-end simulator, and the battery management unit is enabled to determine different equalization circuit fault information through the second state information of each equalization circuit in the second equalization circuit set sent by the analog front-end simulator, so that multiple equalization fault tests of the battery management unit are realized, a tester is not required to operate the analog front-end simulator, the multiple equalization fault tests of the battery management unit can be realized without damaging the analog front-end simulator, the test efficiency of testing the equalization fault function of the battery management unit is improved, the test cost of testing the equalization fault function of the battery management unit is reduced, the embodiment of the application further has the effects that in the primary test process, the analog front-end simulator receives the first state information of all equalization circuits sent by the terminal equipment, and then the battery management unit can determine the second state information of all equalization circuits, and the battery management unit can determine the corresponding to the first state information of all equalization circuits, and the first state information of all equalization circuits can be tested by the analog front-end simulator, and the second state information of all equalization circuits can be tested by the battery management unit, and the first state information can be tested by the same test unit, and the first state information of all equalization circuits can be tested by the equalization circuit unit, and the first state information can be tested by the equalization circuit has higher than the first state information, according to the second state information of each equalization circuit in the first equalization circuit set and the third state information of each equalization circuit in the third equalization circuit set, the second state information of each equalization circuit in the second equalization circuit set is determined, so that the second state information of each equalization circuit in the second equalization circuit set is uniquely determined, reliability of the second state information of each equalization circuit in the second equalization circuit set is improved, the problem that when the analog front-end simulator receives the state information of part of equalization circuits, the state information of all equalization circuits cannot be sent to the battery management unit is solved, and effectiveness of information transmission is improved.
Referring to fig. 3, fig. 3 is a schematic flow diagram of a method for processing a battery cell parameter value according to some embodiments, where the method is applied to an analog front end emulator, steps in the method may precede S201, or steps in the method may follow S206, or steps in the method may be synchronized with S201 to S206 described above, and the method includes:
S301, receiving a first battery monomer parameter value of each channel in a first channel set sent by the terminal equipment.
S302, determining a second battery cell parameter value of each channel in a second channel set simulated by the analog front-end simulator according to a first battery cell parameter value of each channel in the first channel set, wherein the first channel set is included in the second channel set.
S303, sending a second battery monomer parameter value of each channel in the second channel set to the battery management unit, so that the battery management unit determines and sends equalization information of the first equalization circuit set to the terminal equipment, and the terminal equipment determines that the equalization determination test of the battery management unit passes according to the equalization information.
The voltage value of the voltage channel corresponding to the first equalizing circuit set and the difference value between the voltage values of the voltage channels corresponding to the third equalizing circuit set are larger than a preset value, and the third equalizing circuit set is a set obtained by removing the first equalizing circuit set from the second equalizing circuit set. In any embodiment of the present application, the channel identifier of each channel may be received, confirmed or transmitted at the same time as the battery cell parameter value of each channel is received, confirmed or transmitted.
In some embodiments, the cell parameter values may include cell voltage values and/or cell temperature values.
In some embodiments, the first cell parameter value for each channel in the first set of channels and the channel identification for each channel are each 3300 millivolts (mV) for channel 0 through channel 59, and the cell parameter values for channel 40 through channel 59 are each 30 degrees Celsius. For another example, the first cell parameter value of each channel in the first channel set and the channel identifier of each channel include identifiers from voltage channel 0 to voltage channel 39, the cell parameter values corresponding to voltage channel 0 to voltage channel 39 are 3300 millivolts, the identifiers from temperature channel 0 to temperature channel 19, and the cell parameter values corresponding to temperature channel 0 to temperature channel 19 are 30 ℃.
In any embodiment of the present application, one temperature channel may correspond to one or more voltage channels, and one battery cell corresponds to one voltage channel.
For example, the first channel set may include P voltage channels, where P is an integer greater than or equal to 1, and the first cell parameter value of each channel in the first channel set includes P voltage values corresponding to the P voltage channels one to one, and the channel identifier of each corresponding channel is P channel identifiers corresponding to the P voltage values one to one. For example, the first channel set may include Q temperature channels in one-to-one correspondence with Q channel identifiers, Q is an integer greater than or equal to 1, and the first battery cell parameter value of each channel in the first channel set includes Q temperature values in one-to-one correspondence with Q temperature channels, and the channel identifier of each channel corresponding to the Q temperature values is Q channel identifiers in one-to-one correspondence with Q temperature values. The first channel set may include P voltage channels and Q temperature channels, and the first battery cell parameter value of each channel in the first channel set includes P voltage values corresponding to the P voltage channels one by one and Q temperature values corresponding to the Q temperature channels one by one, where the channel of each channel corresponding to the P voltage channels is represented by P channel identifiers and Q channel identifiers.
In the embodiment of the application, the voltage value of one channel can uniquely represent the voltage value of one battery cell, and P voltage values corresponding to P voltage channels one by one represent the voltage values of P battery cells. In an embodiment of the present application, the temperature value of one channel may represent the temperature value of one or more battery cells. In some embodiments, the temperature value of one channel may be the temperature value of one thermistor corresponding to M battery cells. M is an integer greater than or equal to 1.
In some embodiments, the first set of channels is the same as the second set of channels. For example, the second channel set includes 100 channels, and the first channel set and the second channel set are channels from channel identifier 0 to channel identifier 99.
In other embodiments, the first set of channels is different from the second set of channels. For example, the second channel set includes 100 channels, the first channel set includes 50 channels, the first channel set is a channel from channel identification 0 to channel identification 49, and the second channel set is a channel from channel identification 0 to channel identification 99. For another example, the second channel set includes 100 channels, the first channel set includes 50 channels, the first channel set is a channel from channel id 50 to channel id 99, and the second channel set is a channel from channel id 0 to channel id 99. For another example, the second channel set includes 100 channels, the first channel set includes 50 channels, the first channel set is a channel with a channel identification of singular or even number, and the second channel set is a channel with a channel identification of 0 to 99. For another example, the second channel set includes 100 channels, the first channel set includes 1 channel, the first channel set is a channel of channel identification N (N is any one of 0 to 99), and the second channel set is a channel of channel identification 0 to channel identification 99.
In some embodiments, the second cell parameter value for each channel in the first set of channels is the same or different from or at least partially the same as the first cell parameter value for each channel in the first set of channels.
In some embodiments, the first set of channels may include one or more voltage channels and/or one or more temperature channels, and the second set of channels may include a first number of voltage channels and a second number of temperature channels. In some embodiments, at least one of the number of channels in the second set of channels, the first number, the second number, the arrangement of voltage channels and temperature channels may be a fixed value. In other embodiments, the terminal device may configure the analog front end emulator with at least one of the number of channels in the second channel set, the first number, the second number, the arrangement of the voltage channels and the temperature channels prior to transmitting the first battery cell parameter value. In this way, at least one of the number of channels, the first number, the second number, the arrangement of the voltage channels and the temperature channels in the second channel set may be flexibly configured by the terminal device and may be flexibly modified by the configuration. It can be appreciated that the terminal device may configure at least one of the number of channels, the first number, the second number, the arrangement of voltage channels and temperature channels in the second channel set to the battery management unit before sending the first battery cell parameter value, or the terminal device may determine at least one of the number of channels, the first number, the second number, the arrangement of voltage channels and temperature channels in the second channel set according to the pre-configured information of the battery management unit, and configure at least one of the number of channels, the first number, the second number, the arrangement of voltage channels and temperature channels in the second channel set to the analog front-end emulator.
In some embodiments, the ratio between the first number and the second number may be the same as the ratio of the number of total voltage channels to the number of total temperature channels of all or part of the analog front end chips in the BMS slave board. In some embodiments, the first number may be the number of cells in one battery pack. In other embodiments, the first number may be the number of total voltage channels that simulate all or part of the front-end chip in the BMS slave board.
In some embodiments, sending the second cell parameter value for each channel in the second set of channels to the battery management unit may include sending the second cell parameter value for each channel in the second set of channels to the battery management unit in a channel identification order. For example, the second cell parameter values of the voltage channel 0 and the temperature channel 0 corresponding to the cell 0 are sent first, and then the second cell parameter values of the voltage channel 1 and the temperature channel 1 corresponding to the cell 1 are sent until the second cell parameter values of the voltage channel K and the temperature channel K corresponding to the last cell K are sent. For another example, the second cell parameter value for channel 0 is sent first, and then the second cell parameter value for channel 1 is sent until the second cell parameter value for the last channel K is sent. K is an integer greater than or equal to 2.
In some embodiments, the equalization information may include an identification of each equalization circuit in the first set of equalization circuits and an equalization duration. For example, in the case where the battery management unit determines that the battery cell 0 and the battery cell 1 need to be balanced, the balancing duration of the battery cell 0 and the battery cell 1 is determined according to the voltage values of the battery cell 0 and the battery cell 1, that is, the balancing information includes the identifiers of the battery cell 0 and the battery cell 1, and the balancing duration of the battery cell 0 and the battery cell 1.
In some embodiments, the voltage value of the voltage channel corresponding to the third equalization circuit set may be a voltage default value. For example, the voltage default value may be stored in the analog front end emulator. Also by way of example, the voltage default value may be sent by the terminal device to the analog front end emulator. In some embodiments, in the voltage channels corresponding to the third equalization circuit set, the voltage values of the different voltage channels may be the same or within a preset voltage range.
According to the technical scheme, firstly, the first battery monomer parameter value acquired by the analog front-end simulator is sent by the terminal equipment, the analog front-end simulator acquires the first battery monomer parameter value and is not dependent on complex wiring between the analog front-end simulator and the terminal equipment, the analog front-end simulator is only required to be in communication connection with the terminal equipment, wiring difficulty before testing is reduced, testing efficiency of balanced determination testing of a battery management unit is improved, secondly, after each test is completed, a connecting line of the test is not required to be changed, the next test can be performed, automatic testing is facilitated, testing time cost is reduced, testing efficiency of balanced determination testing of the battery management unit is further improved, thirdly, the first battery monomer parameter value of each channel in the first channel set is sent by the terminal equipment, the terminal equipment can independently control the first battery monomer parameter value of each channel in the first channel set, testing requirements of independent control of parameter values required to be acquired by each acquisition channel can be covered, and testing comprehensiveness is improved.
In the embodiment of fig. 1, the multiple output channels of the battery emulator are connected to the multiple channels of the analog front-end chip, and the tester needs to make complex line connections to complete the test system setup. However, in the embodiment of the application, the analog front-end simulator only needs to be connected with the terminal equipment in a communication way, and the circuit connection is simple and does not need to be complicated, so that the labor cost for constructing and maintaining the rack can be reduced, the construction efficiency of the rack is improved, and the testing efficiency is further improved.
In the embodiment of fig. 1, the battery simulator generally includes a single-control output channel and a multiplexing output channel, where one single-control output channel may be connected to one channel in the analog front end chip, and one multiplexing output channel may be connected to multiple channels of the analog front end chip, and in order to test multiple test cases, it is generally necessary to switch the connection between the output channel of the battery simulator and the channel of the analog front end module, so as to adapt to different test cases. However, in the embodiment of the application, the parameter value of the channel acquired by the analog front-end simulator is sent by the terminal equipment, and the connection of the built test system is not required to be switched, so that the time required by rack switching can be reduced, and the test efficiency is further improved.
In the embodiment of fig. 1, the battery simulator has a multiplexing output channel, so that parameter values collected by multiple channels in the analog front-end chip are all parameter values of one battery cell, and/or temperature values collected by multiple channels are all parameter values of one thermistor, so that separate control of the parameter values collected by each channel in the analog front-end chip cannot be realized, and test cases with specific requirements cannot be covered, for example, test cases with different voltage values of each battery cell cannot be tested. However, in the embodiment of the application, the terminal equipment directly sends the parameter values of each channel to the analog front-end simulator, so that the parameter values of each channel of the analog front-end simulator can be respectively controlled, test cases with each voltage requirement can be covered by the test, and the test coverage is improved.
Taking the same second battery parameter value of each channel in the first channel set as the first battery parameter value of each channel in the first channel set as an example, in the embodiment of fig. 1, under the influence of the test environment, there is a difference between the parameter value obtained by the channel of the analog front-end chip and the parameter value sent by the terminal device to the battery simulator, and in order to make up for the difference, a tester is required to manually adjust the battery parameters of the battery simulator, so that it is difficult to perform an automatic or semi-automatic test on the battery management unit. However, in the embodiment of the application, the parameter value of the specific channel sent by the terminal equipment to the analog front-end simulator is the same as the parameter value of the specific channel received by the battery management unit, and the voltage value and/or the temperature value of the channel are highly controllable, so that the automatic or semi-automatic test for the battery management unit is facilitated, the test efficiency is greatly improved, the test labor cost of the SOX function is greatly reduced, and the utilization rate of the test resources is improved.
In the embodiment of fig. 1, in order to implement the balanced fault test of the battery management unit, a tester is required to manually operate the CMC panel so that the CMC panel fails to set fault state information, however, the tester may manually operate the CMC panel, which may cause the CMC panel to fail to set fault type indication information or fault parameter values, for example, the tester manually removes the resistor in the balancing circuit, the tester manually shorts two ends of the balancing circuit, and heats the CMC panel using a heat gun, which may cause the CMC panel to fail, further may cause the CMC panel to fail to set fault state information, and in addition, in the case of the CMC panel being damaged, a new CMC panel needs to be replaced for the next test. However, in the embodiment of the application, the terminal equipment sends the first state information of each equalization circuit in the first equalization circuit set to the analog front-end simulator so that the analog front-end simulator sends the second state information of each equalization circuit in the second equalization circuit set to the battery management unit, thus the analog front-end simulator in the test system is not required to be destroyed, the test efficiency of the equalization fault test of the battery management unit is improved, and the test cost of the equalization fault test of the battery management unit is reduced.
In some embodiments, after the second battery cell parameter value of each channel in the second channel set is sent to the battery management unit, the method further comprises the steps of receiving an equalization current value of each equalization circuit in the first equalization circuit set sent by the terminal device, determining an equalization current value of each equalization circuit in the second equalization circuit set according to the equalization current value of each equalization circuit in the first equalization circuit set, and sending the equalization current value of each equalization circuit in the second equalization circuit set to the sent battery management unit so that the battery management unit determines and sends equalization circuit starting information to the terminal device, and the terminal device determines a test result of the starting judging function of the equalization circuit of the battery management unit according to the equalization circuit starting information.
In some embodiments, the equalization current value may refer to a current value through an equalization circuit when the battery cells are able to be normally equalized by the equalization circuit. In other embodiments, the equalization current value may refer to a current value when the equalization circuitry is not malfunctioning.
In some embodiments, in the case that the first equalization circuit set is the same as the second equalization circuit set, the equalization current value of each equalization circuit in the first equalization circuit set is the equalization current value of each equalization circuit in the second equalization circuit set.
In some embodiments, when the first equalization circuit set is different from the second equalization circuit set, determining the equalization current value of each equalization circuit in the second equalization circuit set according to the equalization current value of each equalization circuit in the first equalization circuit set includes obtaining the equalization current value of each equalization circuit in the third equalization circuit set, combining the equalization current value of each equalization circuit in the first equalization circuit set and the equalization current value of each equalization circuit in the third equalization circuit set, and obtaining the equalization current value of each equalization circuit in the second equalization circuit set. The third equalizing circuit set is a set obtained by removing the first equalizing circuit set from the second equalizing circuit set;
In some embodiments, the equalization current value of each equalization circuit in the third set of equalization circuits may be a fixed current value or an inactive current value. Illustratively, the invalid current value may be FF or Null, or the like. In some embodiments, the fixed or invalid current values may be pre-stored in the analog front end emulator. In other embodiments, the fixed or inactive current values may be sent by the terminal device to the analog front end emulator. In some embodiments, the fixed current value may be zero or non-zero.
In the technical scheme of the embodiment of the application, the battery management unit also has an opening judging function of the equalizing circuits, the equalizing current value of each equalizing circuit in the first equalizing circuit set is received by the analog front-end simulator, and the equalizing current value of each equalizing circuit in the second equalizing circuit set is sent to the battery management unit, so that the test result of the opening judging function of the equalizing circuits of the battery management unit can be determined, the problem that the battery management unit cannot acquire the equalizing current values of the equalizing circuits due to the fact that the battery management unit does not have a real equalizing circuit in the analog front-end simulator is solved, and the situation that the battery management unit cannot determine whether the first equalizing circuit set is opened or not is further caused, so that the test system applied to the analog front-end simulator is improved, and the comprehensiveness of the equalizing test of the battery management unit is improved.
Referring to fig. 4, fig. 4 is a flow chart of a method for processing an equalization circuit current value according to some embodiments, the method is applied to an analog front end emulator, steps in the method may be after S206, or steps in the method may be before S201, or steps in the method may be synchronized with S201 to S206 described above, and the method includes:
S401, receiving zero current value of each equalization circuit in at least part of equalization circuits sent by terminal equipment.
S402, determining a target current value of each equalizing circuit in the second equalizing circuit set according to the zero current value of each equalizing circuit in at least part of equalizing circuits, wherein the target current value of each equalizing circuit in at least part of equalizing circuits is the zero current value.
S403, sending a target current value of each equalization circuit in the second equalization circuit set to the battery management unit, so that the battery management unit determines and sends equalization circuit closing information to the terminal equipment, and the terminal equipment determines a test result of a closing judgment function of the equalization circuit of the battery management unit according to the equalization circuit closing information.
In some embodiments, a zero current value may refer to the current value being zero.
In some embodiments, in the case that at least part of the equalization circuits are the same as the second equalization circuit set, the zero current value of each equalization circuit in at least part of the equalization circuits is the target current value of each equalization circuit in the second equalization circuit set.
In some embodiments, determining the target current value for each equalization circuit in the second set of equalization circuits based on the zero current value for each equalization circuit in at least a portion of the equalization circuits when the at least a portion of the equalization circuits are different from the second set of equalization circuits comprises obtaining the equalization current value for each equalization circuit in the fourth set of equalization circuits, combining the zero current value for each equalization circuit in at least a portion of the equalization circuits with the equalization current value for each equalization circuit in the fourth set of equalization circuits, and obtaining the target current value for each equalization circuit in the second set of equalization circuits. The fourth equalization circuit set is a set obtained by removing at least part of equalization circuits from the second equalization circuit set;
In some embodiments, the equalization current value of each equalization circuit in the fourth set of equalization circuits may be a fixed current value or an inactive current value. Illustratively, the invalid current value may be FF or Null, or the like. In some embodiments, the fixed or invalid current values may be pre-stored in the analog front end emulator. In other embodiments, the fixed or inactive current values may be sent by the terminal device to the analog front end emulator. In some embodiments, the fixed current value may be zero or non-zero.
In the technical scheme of the embodiment of the application, the battery management unit also has the function of closing judgment of the equalization circuits, the analog front-end simulator is used for receiving the zero current value of each equalization circuit in at least part of the equalization circuits and sending the target current value of each equalization circuit in the second equalization circuit set to the battery management unit, so that the test result of the function of closing judgment of the equalization circuits of the battery management unit can be determined, the problem that the battery management unit cannot acquire the equalization current value of the equalization circuits due to the fact that the analog front-end simulator does not exist in the analog front-end simulator is solved, the situation that the battery management unit cannot determine whether at least part of the equalization circuits with faults are disconnected or not is improved, and the test system applied to the analog front-end simulator is used for comprehensively testing the equalization of the battery management unit.
In some embodiments, the first fault status information is the same as the second fault status information, the first fault status information including at least one of fault type indication information, fault current values, fault temperature values.
In the technical scheme of the embodiment of the application, the first fault state information is the same as the second fault state information, so that the analog front-end simulator does not need to convert the first fault state information of each equalizing circuit of at least part of the equalizing circuits, thereby reducing the calculation cost of the analog front-end simulator.
In other embodiments, the first fault status information includes a fault current value and/or a fault temperature value and the second fault status information includes fault type indication information.
In the technical scheme of the embodiment of the application, the first fault state information comprises the fault current value and/or the fault temperature value, the second fault state information comprises the fault type indication information, and the number of characters required by the fault type indication information is smaller than the number of characters of the fault current value and/or the fault temperature value, so that the data volume of the second fault state information sent by the analog front-end simulator to the battery management unit is reduced, more state information of the equalization circuit can be transmitted within a fixed time, and the transmission efficiency of the state information is improved.
In some embodiments, the first state information of one part of the equalization circuits in the first equalization circuit set is first failure state information, the first state information of another part of the equalization circuits in the first equalization circuit set is first equalization state information, and the second state information of another part of the equalization circuits is second equalization state information.
In some embodiments, the first equalization state information is the same as the second equalization state information, the first equalization state information including at least one of equalization indicating information, equalization current values, equalization temperature values.
In the technical scheme of the embodiment of the application, the first equalization state information is the same as the second equalization state information, so that the analog front-end simulator does not need to convert the first equalization state information of each equalization circuit of the other part of the equalization circuits in the first equalization circuit set, thereby reducing the calculation cost of the analog front-end simulator.
In other embodiments, the first equalization state information includes an equalization current value and/or an equalization temperature value and the second equalization state information includes equalization indicating information.
According to the technical scheme, the first equalization state information is the same as the second equalization state information, so that the analog front-end simulator does not need to convert the first equalization state information of each equalization circuit of the other part of the equalization circuits in the first equalization circuit set, the calculation cost of the analog front-end simulator is reduced, the first equalization state information comprises an equalization current value and/or an equalization temperature value, the second equalization state information comprises equalization indication information, and the number of characters required by the equalization indication information is smaller than the number of characters required by the equalization current value and/or the number of characters required by the equalization temperature value, therefore, the data quantity of the second equalization state information transmitted by the analog front-end simulator to a battery management unit is reduced, more equalization circuit state information can be transmitted within a fixed time, and the transmission efficiency of the state information is improved.
Referring to fig. 5, fig. 5 is a second flowchart of a processing method of a battery cell parameter value according to some embodiments, the method is applied to an analog front end simulator, and in the embodiment of fig. 5, compared with the embodiment of fig. 3, the difference is that S302 includes:
s501, under the condition that the first channel set is the same as the second channel set, determining the received first battery cell parameter value of each channel in the second channel set as the second battery cell parameter value of each channel in the second channel set.
Referring to fig. 6, fig. 6 is a flowchart III of a processing method of a battery cell parameter value according to some embodiments, the method is applied to an analog front end simulator, and the difference between the embodiment of fig. 6 and the embodiment of fig. 3 is that S302 includes:
S601, determining a third battery monomer parameter value of each channel in a third channel set under the condition that the first channel set is different from the second channel set, wherein the third channel set is a set of the second channel set excluding the first channel set.
S602, determining a second battery cell parameter value of each channel in the second channel set according to the first battery cell parameter value of each channel in the first channel set and the third battery cell parameter value of each channel in the third channel set.
For example, the second channel set includes 100 channels, the first channel set is a channel from channel id 0 to channel id 49, the second channel set is a channel from channel id 0 to channel id 99, and the third channel set is a channel from channel id 50 to channel id 99. For another example, the second channel set includes 100 channels, the first channel set is a channel of channel identifier 0, the second channel set is a channel of channel identifier 0 to channel identifier 99, and the third channel set is a channel of channel identifiers 1 to 99.
In some embodiments, the third set of channels may include one or more voltage channels and/or one or more current channels. In some embodiments, the voltage values of different voltage channels in the third set of channels may be the same, or the voltage values of at least two different voltage channels may be different. In some embodiments, the voltage values of different temperature channels in the third set of channels may be the same, or the temperature values of at least two different temperature channels may be different. For example, the voltage values of the different voltage channels in the third channel set may be the same and be the first fixed value. For example, the temperature values of different temperature channels in the third channel set may be the same and be a second fixed value. For example, the voltage values of at least two different voltage channels in the third channel set are different, and the voltage value of each voltage channel in the third channel set is in a first preset voltage range. For example, the temperature values of at least two different temperature channels in the third channel set are different, and the temperature value of each temperature channel in the third channel set is in a first preset temperature range.
In some embodiments, at least one of the first fixed value, the second fixed value, the first preset voltage range, and the first preset temperature range may be pre-stored in the analog front end emulator, or may be sent by the terminal device to the analog front end emulator, or may be randomly generated by the analog front end emulator, or may be determined by the analog front end emulator according to the first cell parameter value of each channel in the first set of channels.
In some embodiments, determining the third battery cell parameter value for each channel in the third set of channels includes determining, in response to the first control information sent by the terminal device, that the third battery cell parameter value for each channel in the third set of channels is a default parameter value.
In some embodiments, determining the third battery cell parameter value for each channel in the third set of channels includes determining, in response to the second control information sent by the terminal device, that the third battery cell parameter value for each channel in the third set of channels is an invalid parameter value.
In some embodiments, the default parameter value may be a valid parameter value. For example, the valid parameter values include a preset parameter value or a fixed parameter value. In some embodiments, the default parameter values may be preset parameter values, which may be pre-stored in the analog front end emulator. In some embodiments, the default parameter value may be a fixed parameter value. For example, the preset parameter values of the voltage channels are all fixed voltage values, and the preset parameter values of the temperature channels are all fixed temperature values. Illustratively, the fixed voltage value is 3300 millivolts and the fixed temperature value is 25 degrees celsius.
In some embodiments, the effective parameter value may be a value having a determined value, for example, the effective parameter value may be 3300 (mV) or 25 (degrees celsius). In some embodiments, the invalid parameter value may be a value for which no value is determined. For example, the invalid parameter value may be FF or Null, etc.
In some embodiments, the effective parameter value may be a value in a preset range (e.g., a second preset voltage range and a second preset temperature range). In some embodiments, the invalid parameter value may be a value outside of a preset range. For example, the effective voltage value may be a value in a second preset voltage range and/or the effective temperature value may be a value in a second preset temperature range. For example, the invalid voltage value may be a value outside the second preset voltage range, and/or the invalid temperature value may be a value outside the second preset temperature range. For example, the invalid parameter value for one voltage channel may be 4000 (millivolts) and the invalid parameter value for one temperature channel may be 200 (degrees celsius). In some embodiments, the preset range may be predefined. For example, the preset range may be input by a tester to the terminal device to cause the terminal device to transmit to the analog front end emulator.
In the technical scheme of the embodiment of the application, under the condition that the first channel set is the same as the second channel set, in the one-time test process, the analog front-end simulator receives the first single battery parameter values of all channels sent by the terminal equipment, and sends the second single battery parameter values of all channels to the battery management unit, and the battery management unit can determine the state information and/or the balance information of the single battery corresponding to all channels, so that the state information and/or the balance information of the battery management unit can be tested for all channels, compared with the state information and/or the balance information of the battery management unit for part of channels, the test efficiency can be improved, and under the condition that the first channel set is different from the second channel set, the analog front-end simulator can automatically determine the single battery parameter values of the third channel set, and then determine the single battery parameter values of the second channel set sent to the battery management unit according to the received single battery parameter values of the first channel set and the single battery single parameter values of the third channel set, so that the single battery parameter values of each channel in the second channel set are the single battery single parameter values, and the single battery parameter values of all channels can not be transmitted to the battery management unit, and the reliability of the single battery parameter values in the whole channel can not be improved when the single battery parameter values are transmitted to the part of the single battery parameter values is determined.
Based on the foregoing embodiments, the embodiments of the present application provide an analog front end emulator, where the apparatus includes units included, and modules included in the units may be implemented by a first communication unit, a determining unit, and a second communication unit in a terminal device, and may of course also be implemented by specific logic circuits.
Fig. 7 is a schematic diagram of a composition structure of an analog front end emulator according to an embodiment of the present application, and as shown in fig. 7, the analog front end emulator 105 may include:
the first communication unit 1051 is configured to receive first status information of each equalization circuit in a first equalization circuit set sent by the terminal device, where at least part of the first status information of the equalization circuits in the first equalization circuit set is first failure status information, and the first equalization circuit set is included in a second equalization circuit set simulated by the analog front-end simulator;
A determining unit 1052 configured to determine, when the first equalization circuit set is the same as the second equalization circuit set, second state information of each equalization circuit in the second equalization circuit set according to first state information of each equalization circuit in the second equalization circuit set, determine, when the first equalization circuit set is different from the second equalization circuit set, second state information of each equalization circuit in the first equalization circuit set according to first state information of each equalization circuit in the first equalization circuit set, determine third state information of each equalization circuit in the third equalization circuit set, the third equalization circuit set being a set in which the second equalization circuit set is removed from the first equalization circuit set, and determine second state information of each equalization circuit in the second equalization circuit set according to third state information of each equalization circuit in the third equalization circuit set;
the second communication unit 1053 is configured to send the second status information of each equalization circuit in the second set of equalization circuits to the battery management unit, so that the battery management unit determines and sends the equalization circuit fault information to the terminal device according to the second status information of each equalization circuit in the second set of equalization circuits, and the terminal device determines an equalization fault test result of the battery management unit according to the equalization circuit fault information.
In some embodiments, the first communication unit 1051 is further configured to receive a first battery cell parameter value for each channel in the first set of channels transmitted by the terminal device;
A determining unit 1052, configured to determine a second battery cell parameter value of each channel in a second channel set simulated by the analog front-end simulator according to a first battery cell parameter value of each channel in the first channel set, where the first channel set is included in the second channel set;
the second communication unit 1053 is further configured to send a second battery parameter value of each channel in the second channel set to the battery management unit, so that the battery management unit determines and sends equalization information of the first equalization circuit set to the terminal device, and the terminal device determines that the equalization determination test of the battery management unit passes according to the equalization information;
The voltage value of the voltage channel corresponding to the first equalizing circuit set and the difference value between the voltage values of the voltage channels corresponding to the third equalizing circuit set are larger than a preset value, and the third equalizing circuit set is a set obtained by removing the first equalizing circuit set from the second equalizing circuit set.
In some embodiments, the first communication unit 1051 is further configured to receive an equalization current value of each equalization circuit in the first set of equalization circuits transmitted by the terminal device;
A determining unit 1052, configured to determine an equalization current value of each equalization circuit in the second equalization circuit set according to the equalization current value of each equalization circuit in the first equalization circuit set;
The second communication unit 1053 is further configured to send an equalization current value of each equalization circuit in the second set of equalization circuits to the transmitted battery management unit, so that the battery management unit determines and sends equalization circuit opening information to the terminal device, and the terminal device determines a test result of the opening judging function of the equalization circuit of the battery management unit according to the equalization circuit opening information.
In some embodiments, the first communication unit 1051 is further configured to receive a zero current value of each of at least some of the equalization circuits transmitted by the terminal device;
A determining unit 1052, configured to determine a target current value of each equalization circuit in the second set of equalization circuits according to the zero current value of each equalization circuit in at least part of the equalization circuits;
The second communication unit 1053 is further configured to send the target current value of each equalization circuit in the second set of equalization circuits to the battery management unit, so that the battery management unit determines and sends equalization circuit shutdown information to the terminal device, and the terminal device determines a test result of the shutdown determination function of the equalization circuit of the battery management unit according to the equalization circuit shutdown information.
In some embodiments, the first fault status information is the same as the second fault status information, the first fault status information including at least one of fault type indication information, fault current values, fault temperature values.
In some embodiments, the first fault status information includes a fault current value and/or a fault temperature value and the second fault status information includes fault type indication information.
In some embodiments, the first state information of one part of the equalization circuits in the first equalization circuit set is first fault state information, the first state information of the other part of the equalization circuits in the first equalization circuit set is first equalization state information, the second state information of the other part of the equalization circuits in the first equalization circuit set is second equalization state information, the first equalization state information is the same as the second equalization state information, and the first equalization state information comprises at least one of equalization indication information, an equalization current value and an equalization temperature value.
In some embodiments, the first state information of one part of the equalization circuits in the first equalization circuit set is first fault state information, the first state information of the other part of the equalization circuits in the first equalization circuit set is first equalization state information, the second state information of the other part of the equalization circuits is second equalization state information, the first equalization state information comprises an equalization current value and/or an equalization temperature value, and the second equalization state information comprises equalization indication information.
In some embodiments, the determining unit 1052 is further configured to determine the received first cell parameter value of each channel in the second channel set as the second cell parameter value of each channel in the second channel set, if the first channel set is the same as the second channel set.
In some embodiments, the determining unit 1052 is further configured to determine a third cell parameter value for each channel in the third channel set if the first channel set is different from the second channel set, wherein the third channel set is a set of the second channel set excluding the first channel set, and determine the second cell parameter value for each channel in the second channel set based on the first cell parameter value for each channel in the first channel set and the third cell parameter value for each channel in the third channel set.
The description of the analog front end emulator embodiment above is similar to that of the method embodiment described above, with similar benefits as the method embodiment. For technical details not disclosed in the analog front end emulator embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the above-mentioned method for determining the parameter values of the battery cells is implemented in the form of a software function module, and is sold or used as an independent product, the parameter values may also be stored in a computer storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium, including several instructions for causing an analog front-end emulator to perform all or part of the methods of the embodiments of the present application.
Referring to fig. 8, fig. 8 is a schematic diagram of a second architecture of a test system 100 according to some embodiments, where the test system 100 includes a battery management unit 101, a terminal device 102, and an analog front end emulator 105. In some embodiments, the terminal device 102 is communicatively coupled to the analog front end emulator 105, the analog front end emulator 105 is communicatively coupled to the battery management unit 101, and the terminal device 102 is communicatively coupled to the battery management unit 101.
The analog front-end simulator 105 is used for receiving first state information of each equalization circuit in a first equalization circuit set sent by the terminal equipment 102, determining second state information of each equalization circuit in the first equalization circuit set as first fault state information according to the first state information of each equalization circuit in the first equalization circuit set, determining third state information of each equalization circuit in a third equalization circuit set as second equalization circuit set, removing the first equalization circuit set according to the first state information of each equalization circuit in the second equalization circuit set when the first equalization circuit set is the same as the second equalization circuit set, determining second state information of each equalization circuit in the second equalization circuit set according to the first state information of each equalization circuit in the first equalization circuit set when the first equalization circuit set is different from the second equalization circuit set, determining the second state information of each equalization circuit in the first equalization circuit set as second fault state information of each equalization circuit in the third equalization circuit set;
A battery management unit 101, configured to determine and send equalization circuit fault information to the terminal device 102 according to second status information of each equalization circuit in the second set of equalization circuits;
The terminal device 102 is configured to determine an equalization fault test result of the battery management unit 101 according to the equalization circuit fault information.
In some embodiments, the analog front-end emulator 105 is further configured to receive a first battery cell parameter value of each channel in the first channel set sent by the terminal device 102, determine and send a second battery cell parameter value of each channel in the second channel set emulated by the analog front-end emulator 105 to the battery management unit 101 according to the first battery cell parameter value of each channel in the first channel set;
The battery management unit 101 is further configured to determine and send equalization information of the first equalization circuit set to the terminal device 102 according to a second battery cell parameter value of each channel in the second channel set;
the terminal device 102 is further configured to determine that the equalization determination test of the battery management unit 101 passes according to the equalization information.
In some embodiments, the analog front-end emulator 105 is further configured to receive an equalization current value of each equalization circuit in the first set of equalization circuits sent by the terminal device 102, and determine and send, to the battery management unit 101, the equalization current value of each equalization circuit in the second set of equalization circuits according to the equalization current value of each equalization circuit in the first set of equalization circuits.
The battery management unit 101 is further configured to determine and send equalization circuit start information to the terminal device 102 according to an equalization current value of each equalization circuit in the second equalization circuit set;
The terminal device 102 is further configured to determine a test result of the open judgment function of the equalization circuit of the battery management unit 101 according to the equalization circuit open information.
In some embodiments, the analog front end emulator 105 is further configured to receive a zero current value of each of at least some of the equalization circuits transmitted by the terminal device 102;
Determining and transmitting a target current value of each equalization circuit in the second equalization circuit set to the battery management unit 101 according to the zero current value of each equalization circuit in at least part of the equalization circuits;
The battery management unit 101 is further configured to determine and send equalization circuit shutdown information to the terminal device 102 according to the target current value of each equalization circuit in the second set of equalization circuits;
The terminal device 102 is further configured to determine a test result of the shutdown determination function of the equalization circuit of the battery management unit 101 according to the equalization circuit shutdown information.
In some embodiments, the battery management unit 101 includes a first interface, a second interface, a first communication module, a second communication module, and an equalization module. After the first interface in the battery management unit 101 receives the second battery parameter value, the first communication module obtains the second battery parameter value output by the first interface in the battery management unit 101, the equalization module obtains the second battery parameter value output by the first communication module, the equalization module determines equalization information, and outputs at least one of equalization circuit fault information, equalization circuit on information and equalization circuit off information, and the second communication module obtains at least one of equalization circuit fault information, equalization circuit on information and equalization circuit off information output by the equalization module, and the second interface of the battery management unit 101 receives at least one of equalization circuit fault information, equalization circuit on information and equalization circuit off information output by the second communication module to send to the terminal device 102. Illustratively, the first communication module may be a daisy-chain communication module and the second communication module may be a CAN communication module.
In some embodiments, determining the balancing fault test result of the battery management unit based on the balancing circuit fault information includes determining that the balancing fault test of the battery management unit passes if the balancing circuit fault information includes at least part of the fault type indication information of the balancing circuit, and determining that the balancing fault test of the battery management unit fails if the balancing circuit fault information does not include at least part of the fault type indication information of the balancing circuit.
In some embodiments, determining the test result of the on-judging function of the equalization circuit of the battery management unit according to the equalization circuit on-information includes determining that the test of the on-judging function of the equalization circuit of the battery management unit passes if the equalization circuit on-information indicates that each of the equalization circuits in the first set of equalization circuits is on, and determining that the test of the on-judging function of the equalization circuit of the battery management unit does not pass if the equalization circuit on-information does not indicate that each of the equalization circuits in the first set of equalization circuits is on.
In some embodiments, determining the test result of the shutdown determination function of the equalization circuits of the battery management unit based on the equalization circuit shutdown information includes determining that the test of the shutdown determination function of the equalization circuits of the battery management unit passed if the equalization circuit shutdown information indicates that at least a portion of each of the equalization circuits is shutdown, and determining that the test of the shutdown determination function of the equalization circuits of the battery management unit failed if the equalization circuit shutdown information does not indicate that at least a portion of each of the equalization circuits is shutdown.
In some embodiments, the terminal device 102 is further configured to obtain a first performance test case before sending a first battery cell parameter value of each channel in the first channel set to the analog front end emulator 105, where the first performance test case is used to test whether accuracy of an equalization time length calculated by the battery management unit 101 meets a requirement, the first performance test case includes a first battery cell parameter value of each channel in the first channel set, second equalization time lengths of all battery cells associated with the first channel set, and an equalization time length error value, and determine that the first performance test case passes when the equalization information includes a first equalization time length of all battery cells associated with the first channel set and a difference value between the first equalization time length and the second equalization time length is less than or equal to the equalization time length error value, and determine that the first performance test case does not pass when the equalization information includes a first equalization time length of all battery cells associated with the first channel set and a difference value between the first equalization time length and the second equalization time length is greater than the equalization time length error value.
In the technical scheme of the embodiment of the application, the terminal equipment determines whether the first performance test case passes or not through comparison of the difference value of the first equalization time length and the second equalization time length and the equalization time length error value, and whether the equalization calculation accuracy of the battery management unit meets the requirement can be reflected, so that the test system can further test the equalization calculation accuracy of the battery management unit, and the test comprehensiveness is improved.
In some embodiments, the terminal device 102 is further configured to obtain a second performance test case before sending the first battery cell parameter value of each channel in the first channel set to the analog front end emulator 105, where the second performance test case is used to test whether the duration of performing the equalization calculation by the battery management unit 101 meets the requirement, where the second performance test case includes the first battery cell parameter value and the first transceiving duration of each channel in the first channel set, where the terminal device 102 is further configured to determine a second transceiving duration after receiving the equalization information, where the second transceiving duration is a duration during which the terminal device 102 sends the first battery cell parameter value of each channel in the first channel set to the analog front end emulator 105 and where the terminal device 102 receives the equalization information, where the second transceiving duration is less than or equal to the first transceiving duration, where the second performance test case is determined to pass, and where the second performance test case is determined not to pass when the second transceiving duration is longer than the first transceiving duration.
In the technical scheme of the embodiment of the application, the terminal equipment sends the first battery monomer parameter value of each channel in the first channel set to the analog front-end simulator, the terminal equipment receives the second transceiving time length of the equalization information, and the second performance test case is determined whether to pass or not by comparing with the first transceiving time length, so that whether the equalization calculation time length of the battery management unit meets the requirement or not can be embodied, and therefore, the test system can further test the equalization calculation time length of the battery management unit, and the comprehensiveness of the performance test is improved.
In some embodiments, the terminal device 102 is further configured to obtain an interface test case before sending the first battery cell parameter value of each channel in the first channel set to the analog front end emulator 105, obtain the interface test case, where the interface test case is used to test whether the battery management unit 101 has a specific function, the specific function is a function of determining equalization of each battery cell in all battery cells associated with the second channel set, the interface test case includes an identifier of each channel in the second channel set and a battery cell parameter value, and the terminal device 102 determines whether the interface test case passes according to whether each equalization information sent by the battery management unit 101 is sequentially received after the battery cell parameter value of each battery cell in all battery cells associated with the second channel set is sequentially sent to the analog front end emulator 105, where each equalization information includes indication information for performing equalization on each battery cell in all battery cells associated with the second channel set and/or a first equalization duration of each battery cell.
According to the technical scheme provided by the embodiment of the application, whether the battery management unit has the capability of independently carrying out balanced determination on each battery cell in all battery cells related to the second channel set can be tested through the interface test case, so that the problem that the capability of independently carrying out balanced determination on each battery cell in all battery cells cannot be tested due to multiplexing of the battery simulator channels is solved, and the comprehensiveness of the test is improved.
In some embodiments, the terminal device 102 is further configured to send an equalization disable condition or an equalization enable condition to the battery management unit 101 before sending the first battery cell parameter value of each channel in the first set of channels to the analog front end emulator 105, the battery management unit 101 is further configured to receive the equalization disable condition or the equalization enable condition, and the battery management unit 101 may determine the equalization information according to the second target information and according to the equalization disable condition or the equalization enable condition.
In some embodiments, the equalization disabled conditions may include at least one of an equalization circuit failure, an equalization duration equal to 0, an SOC value of the battery cell less than or equal to 20%, a voltage value of the battery cell less than or equal to 3000 millivolts, a temperature of the battery cell greater than or equal to 100 degrees celsius, a temperature value of the battery cell less than or equal to 0 degrees celsius, an incomplete initialization of the battery management unit 101, a sleep or ready to sleep of the battery management unit 101, the battery cell being in a charged state and the SOC value being greater than or equal to a first SOC threshold. For example, in the case of a whole vehicle application, if the temperature of the battery cell is low, the internal resistance of the battery cell may be high, resulting in inaccurate voltage values of the measured battery cell, and thus the equalization information determined by the battery management unit 101 is inaccurate, and thus the battery management unit 101 determines that the battery cell is not equalized.
In some embodiments, the equalization allowing conditions may include at least one of an equalization circuit not failing, an equalization time period greater than 0, an SOC value of the battery cell greater than or equal to 25%, a voltage value of the battery cell greater than or equal to 3200 millivolts, a temperature of the battery cell less than or equal to 80 degrees celsius, a temperature of the battery cell greater than 0 degrees celsius, an initialization completion of the battery management unit 101, the battery management unit 101 being in an operational state, the battery cell being in a charged state, and the SOC value being less than a second SOC threshold. The first SOC threshold value may be the same as the second SOC threshold value, or the first SOC threshold value may be greater than the second SOC threshold value.
In some embodiments, determining that the equalization determination test of the battery management unit 101 passes based on the equalization information of the first set of equalization circuits includes determining that the equalization determination test of the battery management unit 101 passes based on the equalization information of the first set of equalization circuits and based on an equalization enable condition or an equalization disable condition. Illustratively, in the case where the equalization information of the first equalization circuit set transmitted by the battery management unit 101 is received, and the second battery cell parameter value corresponding to the first equalization circuit set satisfies the equalization allowing condition or does not satisfy the equalization prohibiting condition, it is determined that the equalization determination test of the battery management unit 101 passes.
In some embodiments, the first interface of the battery management unit 101 is configured to receive information, and may transmit the information to the first communication module, where the first communication module transmits the information to the equalization module to enable the equalization module to process. In some embodiments, the second interface of the battery management unit 101 is configured to receive information, and may transmit the information to the second communication module, where the second communication module transmits the information to the equalization module to enable the equalization module to process. In some embodiments, after determining the information, the equalization module may transmit the information to a second communication module, which transmits the information to the second interface of the battery management unit 101 to cause the second interface of the battery management unit 101 to transmit.
According to the technical scheme provided by the embodiment of the application, the battery management unit can determine the equalization information of the battery unit according to the equalization inhibition condition or the equalization permission condition flexibly configured by the terminal equipment, so that the flexibility of the equalization calculation test of the battery management unit is improved.
In some embodiments, the terminal device 102 is further configured to, before sending the first battery cell parameter value of each channel in the first channel set to the analog front end emulator 105, obtain a parameter table, where the parameter table includes a channel parameter value of each channel in the second channel set, and first status information of each equalization circuit in the second channel set, create at least one test case for the battery management unit 101 according to the parameter table, and each test case in the at least one test case is used to determine an equalization failure test result of the battery management unit 101 or an equalization determination test result of the battery management unit 101.
In some embodiments, the terminal device may parse a test case to obtain the first state information of each equalization circuit in the first set of equalization circuits, and optionally, may also obtain an identifier of each equalization circuit. In some embodiments, the terminal device may parse a test case to obtain a first parameter value of a battery cell of each channel in the first channel set, and optionally, may also obtain a channel identifier of each channel. In some embodiments, the terminal device parses each test case and may also obtain the expected results.
In some embodiments, the plurality of channel parameter values for any one channel may be arranged in a descending order or ascending order. In some embodiments, the plurality of channel parameter values for any one channel may include at least one of a normal value, an outlier, a threshold value, and the like.
In other embodiments, the fault type indication information for different equalization circuits may be the same or different. In other embodiments, the fault current values of different equalization circuits may be the same or different. In other embodiments, the fault temperature values of different equalization circuits may be the same or different.
According to the technical scheme provided by the embodiment of the application, the test cases are created according to the parameter table, so that the test cases can be created in a mode that the parameter table is grabbed by the table grabbing tool, and the creation efficiency of the test cases can be improved.
In other embodiments, the terminal device 102 is further configured to display a programming panel, the programming panel including one or more input boxes associated with the second set of channels emulated by the analog front end emulator 105, the terminal device 102 being further configured to obtain the first cell parameter value for each channel in the first set of channels in response to a data input operation for at least one input box associated with the first set of channels before the terminal device 102 sends the first cell parameter value for each channel in the first set of channels to the analog front end emulator 105. In some embodiments, the programming panel may be created in a CAN open environment (CAN Open Environment, CANoe) project.
In the technical scheme of the embodiment of the application, the terminal equipment obtains the identification and the channel parameter value of each channel in the first channel set by inputting the channel parameter value into the input box by the tester, so that the terminal equipment can rapidly obtain the identification and the channel parameter value of each channel in the first channel set, thereby being beneficial to improving the test efficiency.
In still other embodiments, the programming panel includes one or more input boxes associated with the second set of equalization circuits emulated by the analog front end emulator 105, and the terminal device 102 is further configured to obtain the first state information for each equalization circuit in the first set of equalization circuits in response to a data input operation for at least one input box associated with the first set of equalization circuits before the terminal device 102 sends the first state information for each equalization circuit in the first set of equalization circuits to the analog front end emulator 105.
According to the technical scheme provided by the embodiment of the application, the terminal equipment obtains the first state information of each equalizing circuit in the first equalizing circuit set by inputting information to the input box by the tester, so that the terminal equipment can rapidly obtain the first state information of each equalizing circuit in the first equalizing circuit set, and the improvement of the test efficiency is facilitated.
In some embodiments, the programming panel further includes a true equalization duration display box and/or an expected equalization duration display box. In some scenarios, the terminal device 102 controls to display the first equalization duration in a real equalization duration display box. In some scenarios, the terminal device 102 controls the display of the second equalization duration in the expected equalization duration display frame.
In some embodiments, the programming panel further includes a true transceiving duration display box and/or an expected transceiving duration display box. In some scenarios, the terminal device 102 controls to display the second transceiving duration in the real transceiving duration display frame. In some scenarios, the terminal device 102 controls the display of the first transceiving duration in the expected transceiving duration display box.
In some embodiments, the programming panel further includes a test results box. In some scenarios, the terminal device 102 is further configured to display, in the test result box, indication information that the test passes, in the event that the test passes, and display, in the test result box, indication information that the test fails, in the event that the test fails.
In the HIL test, a BMS equalization module test strategy based on a battery simulator is adopted, and the battery simulator and a plurality of CMCs (or battery simulators and a plurality of AFE chips) are combined in the test strategy, so that the test efficiency is low and even the test cannot be performed due to high cost, insufficient quantity, more multiplexing of voltage and temperature channels and poor precision stability of a test environment of the battery simulator.
CMC is responsible for monitoring the voltage and/or temperature of the cells, and for implementing equalization control on the cells, etc. The number of channels of the battery simulator is insufficient, the channels can be distributed in a single control and multiplexing mode, and sampling connection between the battery simulator and the CMC is realized through one-to-one or one-to-many tooling (namely, one output channel of the battery simulator can be connected with one or more sampling channels of the CMC through one-to-one or more lines. The CMCs are connected with the BMU to be tested through a daisy chain, the BMU communicates with the first CMC in the form of differential signals, and sequentially enters the subsequent CMCs, so that the BMU can communicate with all CMCs finally. Because the difference between the test environment and the actual environment is larger when the equalization module is tested, the test result is influenced, HIL testers often adopt a function test method, according to the system and software requirements, specifically analyze how many function points (such as an equalization circuit fault processing function, an equalization circuit opening judging function, an equalization determining function and the like) can be divided by each function module, write a software or system function test item for each function independent function point, and test the function point by item by using equivalent data of normal values and abnormal values. In the process of executing the balanced fault type test, the HIL tester needs to manually operate the CMC board. After the HIL tester builds the test bench, the HIL tester needs to carry out environment closed-loop debugging to generate an environment precision comparison table, so that the extra time spent in the test execution process is reduced.
However, there is a problem in the related art that at least one of the following:
The battery simulator has the advantages that the cost is high, the volume is large, the tool wire harnesses are large, the number of CMCs in the CMC plate is large, the installation difficulty of the tool is increased, and when a HIL tester performs bench switching, the efficiency is low and the error rate is high;
the battery simulator has lower precision, larger difference between the test environment and the actual environment, when the HIL tester tests the equalization module, the voltage and the temperature are not set to the threshold value of the functional point, and the test item fails due to inaccurate test;
multiplexing of the battery simulator channel and ageing of the equipment can lead to reduced output stability of the battery simulator, larger voltage and temperature fluctuation and incapability of testing;
the voltage and temperature of the battery simulator are less in single control quantity and poor in regulation and control capability, so that the requirement of automatic testing of the equalization module is not met, and the repeated testing work still needs manual testing;
When the balance fault is tested, the CMC board is manually operated, the CMC board is possibly damaged, the risk of test failure exists, and a new CMC board needs to be replaced after the test is finished.
In order to reduce adverse effects of environmental changes on test work, improve efficiency and quality of the test work and realize automatic test, the embodiment of the application designs a BMS equalization module test strategy based on an AFE simulator by adopting the AFE simulator to replace the combination of a battery simulator and a plurality of CMCs.
In order to solve the problems of difficult installation of a battery simulator, more CMC, low rack switching efficiency and high error rate, the embodiment of the application provides a scheme which adopts an AFE simulator to replace the combination of the battery simulator and a plurality of CMCs, directly connects the AFE simulator with a tested BMU through a daisy chain, communicates the BMU with the AFE simulator in the form of differential signals, and performs CAN communication control on the AFE simulator through a terminal device 102. Therefore, the embodiment of the application can reduce the tooling cost and the labor cost for constructing and maintaining the bench.
In order to solve the problems that the battery simulator has low precision, the voltage and temperature setting values and the measured value have larger deviation, and the performance of the equalization module cannot be determined, the embodiment of the application provides a test strategy for designing the equalization module based on the AFE simulator, and when a HIL tester obtains a quantitative result, the HIL tester tests the calculation precision of the equalization module, such as data processing precision, time control precision and the like, increases the limit working condition test and limits the acceptable output data range. Therefore, the embodiment of the application can ensure that the set values and the measured values of the voltage and the temperature have no deviation, can test the boundary or the end point of the functional limit, simultaneously meets the related requirements of performance test, solves the problem of test failure caused by inaccurate test of the equalization module, reduces the test case of the equalization module and the extra time spent in the maintenance of the test execution process, and improves the test efficiency and the test quality of the equalization module.
In order to solve the problem that the battery simulator has low output stability and large voltage and temperature fluctuation, so that partial functions of the equalization module cannot be tested, the embodiment of the application provides a testing strategy for designing the equalization module based on the AFE simulator, and the AFE simulator outputs the specific parameters of a certain channel when receiving the specific parameters of the channel, so that the voltage and the temperature of the battery monomer are controllable.
In order to solve the problem that corresponding battery monomer cannot be identified due to channel multiplexing, the embodiment of the application provides a scheme that terminal equipment can independently output channel parameter values of each channel in a first channel set, solves the problem that corresponding battery monomer cannot be identified due to channel multiplexing and cannot be tested, and improves test coverage of an equalization module.
In order to solve the problems that the battery simulator has fewer single control quantity of voltage and temperature and poor regulation and control capability and cannot realize automatic test, the embodiment of the application provides a test strategy for designing an equalization module based on an AFE simulator, and under the condition that the voltage and temperature of a battery monomer are controllable, an automatic script can be designed for the test of the partial repeatability of the equalization module to perform semi-automatic or automatic test. Therefore, because the voltage and temperature of the battery monomer are controllable, semi-automatic or automatic testing of the equalization module can be performed, the testing labor cost of the equalization module is greatly reduced, the utilization rate of testing resources is improved, and the testing delivery is ensured.
In order to solve the problem that the CMC board is high in damage rate and the testing cost is increased due to manual operation of the CMC board, the embodiment of the application provides that the terminal equipment can configure the tested parameters, set fault injection or fault parameter values and the like and send the parameters to the AFE simulator, so that the terminal equipment controls the output of signals of a physical layer (corresponding to the first state information of each equalization circuit in the first equalization circuit set) so that the state information of the equalization fault can be set out through the AFE simulator. Thus, the CMC board can not be damaged by simulation control of the AFE simulator during the balanced fault test.
In the embodiment of the application, an AFE simulator is adopted to replace the combination of a battery simulator and a plurality of CMCs, the AFE simulator and a BMU to be tested are connected through a daisy chain, the BMU and the AFE simulator communicate in the form of differential signals, the AFE simulator supports CAN signal control, and the terminal equipment 102 and the AFE simulator CAN establish CAN communication.
In any embodiment of the present application, the terminal device 102 performs corresponding control through the CANoe engineering.
The BMS balancing module testing strategy workflow based on the AFE simulator is introduced as follows, HIL testers are arranged according to a testing plan, firstly need analysis is carried out, functional test items, performance test items, interface test items and the like are distinguished according to the system and software needs of the balancing module, functional points are determined, test cases are written, and the test cases pass through review. Meanwhile, HIL testers need to build a test bench based on the AFE simulator to finish environment closed-loop debugging and software acceptance testing. In the test execution process, a tester needs to execute according to the test case steps of the balancing module to finish test result judgment, test problem confirmation, test data storage and the like of the balancing module, finally, a test report of the balancing module is written, and then, the test report is output after being reviewed.
The following illustrates the BMS balancing module test strategy principle based on the AFE simulator:
First, a bench environment is set up. The HIL tester adopts an AFE simulator to replace the combination of a battery simulator and a plurality of CMCs, directly connects the AFE simulator with the BMU to be tested through a daisy chain, and uses CAN communication equipment to connect CANoe engineering with the AFE simulator. And (3) constructing a CANoe project in the terminal equipment, adding a DataBase (DBC) file of a CAN (controller area network) of an AFE simulator control message in the CANoe project, establishing a corresponding system variable, designing a program-controlled script according to the system variable, and sending a channel enabling instruction and a channel physical value setting instruction by utilizing the system variable control message to realize regulation and control configuration of all single battery single voltages and temperatures. The tester designs a program control panel, and assigns values to system variables through the panel for configuring tested parameters and monitoring the running state of the test system. The closed loop debugging of the bench environment, the cancellation of the environment precision comparison table, verification of the set value set by the CANoe system variable, and comparison with the voltage and temperature measured value of the battery cell output by the AFE simulator, and no deviation.
The AFE simulator based equalization module is then tested, including at least one of functional testing, performance testing, interface testing.
In the test strategy of the function test of the equalization module based on the AFE simulator, the HIL tester can determine the composition of the software function by adopting at least one analysis method of a functional decomposition analysis method, an equivalent class analysis method, a boundary value analysis method, a decision table analysis method, an error guessing method and the like. Based on the test environment of the AFE simulator, HIL testers can confirm the output of the function, the expected output result and the judgment condition according to the input boundary value, write test cases of the equalization module according to requirements in a black box mode, and execute the test cases in sequence after the test cases pass through the review. Based on the test environment of the AFE simulator, HIL testers can test the correctness of the functions of the equalization module under the conditions of voltage, temperature overload, saturation and other extreme conditions by using real data, execute relevant test cases in a combined test mode, test the functions of the equalization module item by item, and improve the test sufficiency of the functions of the key equalization module. Based on the testing environment of the AFE simulator, the HIL tester can test the special functions and functional boundaries of the equalization module by using an automatic testing tool under the condition of program-controlled script soundness for at least one of the control flow, the calculation strategy (corresponding to the equalization permission condition or the equalization prohibition condition) and the like of the focus of the equalization module.
In the test strategy for performance test of the equalization module based on the AFE simulator, based on the test environment of the AFE simulator, HIL testers can analyze typical test scenes of performance of the equalization module, such as data change conditions (increasing/decreasing strategies) of equalization time, can adopt a boundary value method to design test cases, specify how to set execution conditions, obtain quantitative results under worst working conditions, and evaluate performance results of the equalization module. Based on the test environment of the AFE simulator, HIL testers analyze according to the performance requirements of the balancing module, perform related performance tests of large data volume, need to perform data preparation in the early stage of the test, quickly establish test cases of the battery cell parameter table in batches by adopting an automatic test tool according to actual conditions, develop corresponding test tools according to the test environment conditions, perform automatic test, and automatically generate a test report after the test is completed.
In the test strategy of the equalizing module interface test based on the AFE simulator, based on the test environment of the AFE simulator, HIL testers can perform interface test according to the function requirement of the equalizing module and combining with the function test, including normal interface function test and interface exception handling test.
Referring to fig. 9, fig. 9 is a schematic diagram of a third architecture of a test system in some embodiments, where the test system includes a BMU 101, a terminal device 102, and an AFE emulator 105, a first interface of the terminal device 102 is communicatively connected to a first interface of the AFE emulator 105, a second interface of the AFE emulator 105 is communicatively connected to the first interface of the BMU 101, and a second interface of the terminal device 102 is communicatively connected to the second interface of the BMU 101 via a CAN protocol. For example, the second interface of the terminal device 102 is communicatively connected to the second interface of the BMU 101 through the CAN communication device 106.
The third interface of the terminal device 102 is connected to a VT board 1071 of a virtual technology (Virtualization Technology, VT) system 107, so as to control at least one of voltage output, resistance output, voltage acquisition, pulse-Width Modulation (PWM) wave output, switching, power supply switching, and the like of the BMU 101, and control a relay Box (Rleay-Box) 108.
The fourth interface of the terminal device 102 is connected to the low voltage dc power supply 109 such that the low voltage dc power supply 109 injects a low voltage into the BMU 101 and VT system 107. The fifth interface of the terminal device 102 connects the insulation resistance box 110 such that the insulation resistance box 110 injects insulation resistance into the relay box 108. The sixth interface of the terminal device 102 is connected to the high-voltage direct-current power supply 111 so that the high-voltage direct-current power supply 111 injects a high voltage into the relay box. The AFE emulator 105 is used to store the cell voltage and cell temperature for each channel.
The BMU 101 may include at least one of high and low voltage sampling, high and low side driving, power management, CAN communication, SOX, equalization, etc.
The output information of the terminal device 102 may include that the CANoe project installed at the terminal device 102 outputs information through the terminal device 102.
Some examples of applications of the application are described below:
And (3) starting a balancing function starting test of the balancing module:
Test items show that the monomer voltage minus the minimum voltage is not less than 100mV, and after standing for 60min, equalization is started.
The test method comprises the steps of A, powering on to wake up the BMU, B, setting initial values of all voltages to 3700mV, C, setting the voltage of a No. 1 monomer to 3800 mV, D, waiting for 1h, E, sequentially setting the voltage of the No. 1-100 monomer, and repeatedly executing the A-D.
The expected results of the test method comprise that A.BMU wakes up successfully, B.all initial values of voltage are=370mV, C.1 monomer voltage=380mV, D.1 battery cell is balanced and started, balanced current is >40mA, and balanced time is 10min, and E.1-100 monomer voltages are sequentially started and balanced.
Comparison of test strategies:
Based on the testing strategy of the battery simulator, the step B and the step C are executed to judge Fail due to voltage errors of the actual environment, and the repeatability test of the step E needs manual testing. Failure scenario 1 after step C was performed, the initial voltage value was 3710mV, and after step C was performed, no. 1 cell voltage=3805 mV was output. Considering the influence caused by the actual environmental problem, the HIL tester needs to increase the voltage tolerance plus or minus 20mV in the judging results of the step B and the step C, meanwhile, the step C needs to be modified to be 'setting the monomer voltage No. 1 to 3805 mV', after the step D is executed, the expected result is met, the battery simulator channel is multiplexed, the tested battery core cannot be confirmed, and in order to reasonably utilize the testing resources, the step E needs to carry out the grabbing point function test.
Based on the test strategy of the AFE simulator, the test environment is consistent with the actual environment, after the step B and the step C are executed, the number of the output single voltage 1, the minimum voltage and the balanced starting result can all accord with the expected result, the test is passed, the boundary value is tested, and the time wasted in the process of maintaining the test case and executing the test is reduced. In addition, HIL testers can adopt case generation tools to quickly establish test cases for opening single battery cells in batches and balance the single battery cells, then develop corresponding test tools according to test environment conditions to perform automatic tests, automatically generate test reports after the tests are completed, and can complete performance tests and interface tests at the same time, so that manpower waste is greatly reduced, and test coverage is also improved.
And (3) testing an open circuit fault of an equalization circuit of the equalization module:
The test item describes that MOS can not be closed or resistance ablation is broken, and the open fault of the equalizing circuit is reported.
The testing method comprises the following steps of A, finding out and removing two resistors (such as the single-cell equalization circuits R233 and R235 of the number 1) of a corresponding equalization circuit in a CMC board, B, powering on and waking up the BMU, and C, waiting for 10s.
The expected results of the test method comprise that A.R233 and R235 are successfully removed, B.BMU is successfully awakened, and C.1 monomer battery cells report an open circuit fault of the equalization circuit.
Comparison of test strategies:
Based on the testing strategy of the battery simulator, firstly, a standby board is needed to be prepared, after two equalization resistors in the CMC board are manually removed, then the BMU to be tested is accessed for testing, and the method can only independently test the open-circuit faults of the equalization circuit of a certain battery core, and after the testing is finished, the standby board is needed to be replaced for continuously testing other functions.
Based on the test strategy of the AFE simulator, by configuring test parameters of the open circuit fault of the equalization circuit, using CANOE engineering to issue a control instruction, then the AFE simulator can control signal output of a physical layer, thereby reporting the open circuit fault of the equalization circuit, completing functional test execution, after a test system is relatively stable, HIL test personnel can write a test script, design a program-controlled panel of the equalization circuit fault, and test the equalization circuit faults of all the battery cells in sequence.
According to the embodiment of the application, based on the BMS balancing module testing strategy of the AFE simulator, the voltage and temperature of the battery core are controllable in height, and the fault type indication information or the physical signal of the fault parameter value is output according to the configured testing parameters, so that the pain and difficulty of the BMS balancing module testing strategy based on the battery simulator can be solved, and the HIL testing work of the balancing module is greatly improved, such as testing work of unbalance degree calculation, balancing time calculation, dormancy balancing, balancing circuit short circuit fault, balancing circuit overtemperature fault and the like. Sleep balancing is, for example, that before the BMU sleeps, the balancing circuit in the BMS slave board is controlled to be turned on to balance the battery cells, then the battery management power supply enters sleep, and after the balancing duration of the BMS slave board reaches, the BMS slave board stops balancing the battery cells.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
The analog front end emulator, the first communication unit, the determining unit, or the second communication unit may include any one or an integration of a plurality of general purpose processors, application SPECIFIC INTEGRATED Circuits (ASICs), digital signal processors (DIGITAL SIGNAL processors, DSPs), digital signal processing devices (DIGITAL SIGNAL Processing Device, DSPDs), programmable logic devices (Programmable Logic Device, PLDs), field programmable gate arrays (Field Programmable GATE ARRAY, FPGA), central processing units (Central Processing Unit, CPUs), graphics processors (Graphics Processing Unit, GPUs), embedded neural network processors (real-network processing units, NPUs), controllers, microcontrollers, microprocessors, programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It will be appreciated that the electronic device implementing the above-mentioned processor function may be other, and embodiments of the present application are not limited in detail. The analog front end emulator or processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment of the present application" or "the foregoing embodiment" or "some implementations" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "an embodiment of the application" or "the foregoing embodiments" or "some implementations" or "some embodiments" in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
Without being specifically described, the analog front end emulator may perform any step in the embodiment of the present application, and each unit of the analog front end emulator may perform the step. Embodiments of the present application are not limited to the order in which the steps are performed by the analog front end emulator, unless specifically stated. In addition, the manner in which the data is processed in different embodiments may be the same method or different methods. It should be further noted that any step in the embodiments of the present application may be independently performed by the analog front end emulator, that is, the analog front end emulator may not depend on the execution of other steps when performing any step in the embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, e.g., the division of elements is merely a logical division of functionality, and may be implemented in other manners, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate components may or may not be physically separate, and components displayed as units may or may not be physical units, may be located in one place or distributed on a plurality of network units, and may select some or all of the units according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of hardware plus a form of software functional unit.
The methods disclosed in the method embodiments provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the several product embodiments provided by the application can be combined arbitrarily under the condition of no conflict to obtain new product embodiments.
The features disclosed in the embodiments of the method or the apparatus provided by the application can be arbitrarily combined without conflict to obtain new embodiments of the method or the apparatus.
It will be appreciated by those of ordinary skill in the art that implementing all or part of the steps of the above method embodiments may be implemented by hardware associated with program instructions, where the above program may be stored in a computer storage medium, where the program when executed performs the steps comprising the above method embodiments, where the above storage medium includes various media that may store program code, such as a removable storage device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Or the above-described integrated units of the application may be stored in a computer storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present application may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium, including several instructions for causing an analog front-end emulator to perform all or part of the method described in the embodiments of the present application. The storage medium includes various media capable of storing program codes such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
In the embodiments of the present application, descriptions of the same steps and the same content in different embodiments may be referred to each other. In the embodiment of the present application, the term "and" does not affect the sequence of the steps, for example, the analog front-end emulator executes a and executes B, which may be that the analog front-end emulator executes a first and then executes B, or that the analog front-end emulator executes B first and then executes a, or that the analog front-end emulator executes B while executing a.
As used in this embodiment of the application, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely an association relationship describing the associated object, and means that there may be three relationships, e.g., a and/or B, and that there may be three cases where a exists alone, while a and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. In the embodiments of the present application, all or part of the steps may be performed, so long as a complete technical solution can be formed. The foregoing is merely an embodiment of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application.