Battery management system, encoding method, apparatus, medium, and program product

By forming a loop in the battery management system and using the voltage drop sub-circuit and the potential acquisition sub-circuit for series encoding, the problem of long encoding time in the prior art is solved, and the synchronous encoding of multiple slave boards is realized, and the encoding efficiency is improved. .

CN119483605APending Publication Date: 2025-02-18ENVISION DYNAMICS TECH (JIANGSU) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411533590.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The encoding time in the existing battery management system is long and cannot effectively improve the encoding efficiency.

Method used

By forming a loop between the main board and the slave board, the voltage drop sub-circuit and the potential acquisition sub-circuit are used for series encoding, so that multiple slave boards can be encoded simultaneously.

Benefits of technology

Improves encoding efficiency, shortens the encoding time of the entire battery management system, and ensures accurate data transmission between the motherboard and the slave board.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119483605A_ABST
    Figure CN119483605A_ABST
Patent Text Reader

Abstract

The invention provides a battery management system, a coding method, equipment, a medium and a program product, the battery management system comprises a main board and at least two slave boards, each slave board comprises a coding circuit, and the coding circuit comprises a voltage drop sub-circuit and a potential acquisition sub-circuit; the mainboard comprises a coding input circuit and a coding output circuit; the voltage drop sub-circuits of the slave plates are sequentially connected in series, and the two ends of the series-connected circuit are connected with the coding input circuit and the coding output circuit respectively to form a loop. The coding output circuit is used for outputting electric energy to the voltage drop sub-circuit of the slave board; the potential acquisition sub-circuit of each slave board is used for acquiring the potential of the voltage drop sub-circuit and determining the code of the slave board according to the potential; wherein the code represents the unique identification of the slave plate. The potentials of the voltage drop sub-circuits of all the slave plates are different, the codes of the slave plates are determined by collecting the potentials of the voltage drop sub-circuits, synchronous coding of the multiple slave plates is achieved, the coding efficiency is improved, and the coding time of the battery management system is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery management system coding technology, and in particular to a battery management system, coding method, device, medium and program product. Background Art

[0002] At present, the most widely used encoding method in BMS (Battery Management System) is PWM encoding. PWM encoding is a one-to-one transmission encoding process. When the first slave board completes encoding, the main board sends a PWM signal to the next slave board to encode the next slave board, and so on, until the last slave board completes encoding. PWM encoding can only be performed one-to-one, and it takes a long time to complete the encoding of the entire loop. Summary of the invention

[0003] The technical problem to be solved by the present disclosure is to overcome the defect of long encoding time in the prior art and to provide a battery management system, encoding method, device, medium and program product.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] In a first aspect, a battery management system is provided, the battery management system comprising: a main board and at least two slave boards, each slave board comprising an encoding circuit, the encoding circuit comprising a voltage drop subcircuit and a potential acquisition subcircuit; the main board comprising an encoding input circuit and an encoding output circuit; the voltage drop subcircuits of the slave boards are sequentially connected in series, and the two ends of the series-connected circuits are respectively connected to the encoding input circuit and the encoding output circuit to form a loop;

[0006] The encoding output circuit is used to output electrical energy to the voltage drop subcircuit of the slave board;

[0007] The potential acquisition subcircuit of each slave board is used to acquire the potential of the voltage drop subcircuit and determine the code of the slave board according to the potential; wherein the code represents the unique identification of the slave board.

[0008] Optionally, the encoding output circuit includes a power supply, a first resistor and a first switch, and the encoding input circuit includes a second resistor and a second switch;

[0009] The power supply is connected to one end of the series circuit;

[0010] One end of the first resistor is connected to the power supply, the other end of the first resistor is connected to one end of the first switch, and the other end of the first switch is grounded; one end of the second resistor is connected to the other end of the series circuit, the other end of the second resistor is connected to one end of the second switch, and the other end of the second switch is grounded;

[0011] In response to the main board sending a coding instruction, the first switch is in an open state, the second switch is in a closed state, and the power supply outputs electric energy to the voltage drop subcircuit of the slave board.

[0012] Optionally, the encoding output circuit outputs electrical energy to the voltage drop subcircuit of the slave board through a constant current source.

[0013] Optionally, the voltage drop of the voltage drop subcircuit of each slave board is the same;

[0014] And / or, in response to the main board issuing a self-test instruction, the first switch is in a closed state, the second switch is in an open state, and the power supply outputs electrical energy to the voltage drop subcircuit of the slave board; the potential collection subcircuit of the slave board is used to collect the potential of the voltage drop subcircuit and determine the line conduction state of the loop between the main board and the slave board based on the potential.

[0015] In a second aspect, a coding method for a battery management system is provided, which is applied to a main board included in the battery management system; the battery management system also includes at least two slave boards, the slave board includes a coding circuit, and the coding circuit includes a voltage drop subcircuit and a potential acquisition subcircuit; the main board includes a coding input circuit and a coding output circuit, the voltage drop subcircuits of each slave board are sequentially connected in series, and the two ends of the series circuit are respectively connected to the coding input circuit and the coding output circuit to form a loop;

[0016] The encoding method of the battery management system includes:

[0017] Triggering the coding output circuit to output electric energy to the voltage drop subcircuit of the slave board, so that the potential acquisition subcircuit acquires the potential of the voltage drop subcircuit, and determines the coding of the slave board according to the potential;

[0018] The code represents the unique identification of the slave board.

[0019] Optionally, the encoding output circuit further includes a power supply, a first resistor and a first switch, and the encoding input circuit includes a second resistor and a second switch;

[0020] The power supply is connected to one end of the series circuit;

[0021] One end of the first resistor is connected to the power supply, the other end of the first resistor is connected to one end of the first switch, and the other end of the first switch is grounded; one end of the second resistor is connected to the other end of the series circuit, the other end of the second resistor is connected to one end of the second switch, and the other end of the second switch is grounded;

[0022] The encoding method of the battery management system further includes:

[0023] Opening the first switch and closing the second switch to trigger the power supply to output electric energy to the voltage drop subcircuit of the slave board, so that the potential acquisition subcircuit acquires the potential of the voltage drop subcircuit and determines the code of the slave board according to the potential;

[0024] And / or, closing the first switch and opening the second switch, triggering the power supply to output electrical energy to the voltage drop subcircuit of the slave board, so that the potential collection subcircuit collects the potential of the voltage drop subcircuit, and determines the line conduction state of the loop between the main board and the slave board based on the potential.

[0025] In a third aspect, a coding method for a battery management system is provided, which is applied to any one of at least two slave boards included in the battery management system, wherein the slave board includes a coding circuit, and the coding circuit includes a voltage drop subcircuit and a potential acquisition subcircuit; the battery management system also includes a main board, and the main board includes a coding input circuit and a coding output circuit, and the voltage drop subcircuits of each slave board are sequentially connected in series, and the two ends of the series circuit are respectively connected to the coding input circuit and the coding output circuit to form a loop;

[0026] The encoding method of the battery management system includes:

[0027] Receiving the electric energy output by the coding output circuit of the main board, and using the potential collection subcircuit to collect the potential of the voltage drop subcircuit, and determining the coding of the slave board according to the potential;

[0028] The code represents the unique identification of the slave board.

[0029] In a fourth aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, wherein when the processor executes the computer program, the encoding method of the battery management system described in any one of the above items is implemented.

[0030] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the encoding method of the battery management system described in any one of the above items is implemented.

[0031] In a sixth aspect, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the encoding method of the battery management system described in any one of the above items is implemented.

[0032] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.

[0033] The positive progressive effect of the present disclosure lies in that the present disclosure realizes the encoding of the slave board based on the circuit principle, and the voltage drop subcircuits of each slave board are connected in series in sequence. The slave boards connected in series form a loop with the main board, so that the currents on the main board and the slave board are equal, and the potential of the voltage drop subcircuit of each slave board is different. The potential acquisition subcircuit can acquire the potential of the voltage drop subcircuit and determine the encoding of the slave board according to the potential, thereby realizing synchronous encoding of multiple slave boards, improving encoding efficiency, and shortening the encoding time of the entire battery management system. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of the structure of a battery management system provided by an exemplary embodiment of the present disclosure;

[0035] Figure 2 A structural diagram of a battery management system addressing process provided by an exemplary embodiment of the present disclosure;

[0036] Figure 3 A structural schematic diagram of a battery management system self-checking process provided by an exemplary embodiment of the present disclosure;

[0037] Figure 4 The present invention provides a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0038] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0039] Prefixes such as "first" and "second" are used in the embodiments of the present disclosure only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present disclosure does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.

[0040] In the embodiments of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0041] Example 1

[0042] Figure 1 A schematic diagram of the structure of a battery management system provided by an exemplary embodiment of the present disclosure.

[0043] The battery management system comprises: a main board and at least two slave boards, each slave board comprises a coding circuit, the coding circuit comprises a voltage drop subcircuit 12 and a potential acquisition subcircuit 11; the main board comprises a coding input circuit 13 and a coding output circuit 14; the voltage drop subcircuits 12 of each slave board are sequentially connected in series, and the two ends of the series-connected circuit are respectively connected to the coding input circuit 13 and the coding output circuit 14 to form a loop.

[0044] Figure 1 The master control in the diagram is the main board, and the slave control 1 to the slave control N are the slave boards 1 to the slave boards N. N represents the number of slave boards, and N is an integer greater than or equal to 2, which can be selected according to actual conditions and is not particularly limited here.

[0045] The coding output circuit 14 is used to output electric energy to the voltage drop subcircuit 12 of the slave board, and the potential acquisition subcircuit 11 of each slave board is used to acquire the potential of the voltage drop subcircuit 12 and determine the coding of the slave board according to the potential. The coding represents the unique identification of the slave board.

[0046] The voltage drop subcircuits 12 of the slave boards are connected in series in sequence, and the serially connected slave boards form a loop with the main board. Based on the principle of series circuits, it can be seen that the currents on the main board and the slave board are equal. Since the slave board includes the voltage drop subcircuit 12, the potential of the voltage drop subcircuit 12 of each slave board is different. Therefore, different slave boards can be distinguished by the potential of the voltage drop subcircuits 12 of different slave boards, and multiple slave boards are synchronously encoded according to the potential.

[0047] Specifically, a mapping relationship between electric potential and coding can be established, and the coding of the slave board can be determined based on the mapping relationship. The collected electric potential can also be converted into a base, for example, the value of the electric potential expressed in decimal can be converted into a binary code. The base conversion can be selected according to actual conditions and is not particularly limited here.

[0048] In this embodiment, electric energy is output to the voltage drop subcircuit 12 of the slave board through the encoding output circuit 14 of the main board, and the voltage drop subcircuit 12 of each slave board is connected in series in sequence. When the encoding output circuit 14 outputs electric energy, the voltage drop subcircuit 12 of each slave board can have different electric potentials at the same time, and the electric potential collection subcircuit 11 of each slave board can synchronously collect the electric potential and determine the encoding of the slave board according to the electric potential, thereby realizing synchronous encoding of multiple slave boards, improving encoding efficiency, and shortening the encoding time of the entire battery management system.

[0049] In one embodiment, the encoding output circuit 14 includes a power supply, a first resistor and a first switch, and the encoding input circuit 13 includes a second resistor and a second switch.

[0050] The power supply is connected to one end of the series circuit. Specifically, the power supply is connected to the PIN port of the mainboard, and one end of the series circuit is connected to the power supply through the PIN port.

[0051] One end of the first resistor is connected to the power supply, the other end of the first resistor is connected to one end of the first switch, and the other end of the first switch is grounded. One end of the second resistor is connected to the other end of the series circuit, the other end of the second resistor is connected to one end of the second switch, and the other end of the second switch is grounded.

[0052] The main board can control the switch state of the first switch and the second switch. When the main board issues a coding instruction, the first switch is in an open state, the second switch is in a closed state, and the power supply outputs electrical energy to the voltage drop subcircuit 12 of the slave board. The voltage drop subcircuits 12 connected in series form a loop with the main board. The currents of each node in the series loop are equal and the currents of each node are equal to the current output by the power supply, that is, the currents on the main board and the slave board are equal. Based on the circuit principle, it can be known that the potential of the voltage drop subcircuit 12 of each slave board is different. The potential acquisition subcircuit 11 can realize synchronous encoding of multiple slave boards by acquiring the potential of the voltage drop subcircuit 12 and determining the encoding of the slave board according to the potential.

[0053] The first switch and the second switch can be implemented by MOS tubes or triodes and other devices, which can be selected according to actual conditions and are not particularly limited here.

[0054] See also Figure 2 , Figure 2 The master control in the figure is the main board, slave control 1-slave control N are slave board 1-slave board N, VCC represents the power supply, ON and OFF represent the switch states of the first switch Q1 and the second switch Q2 respectively, ON represents closing, and OFF represents disconnection. Figure 2The direction of the arrow indicates the direction of the current, and I indicates the current output by the power supply. The mainboard outputs an enable signal EN1 to the first switch to disconnect the first switch Q1, and outputs an enable signal EN2 to the second switch to close the second switch. The two ends of the series-connected circuit are respectively connected to the encoding input circuit and the encoding output circuit to form a closed loop.

[0055] Assume that the resistance values ​​of resistors R02 and R1-Rn are the same, all of which are R, and the current output by the power supply is I. At this time, Figure 2 In the example, the potential collected by the analog-to-digital converter of the main board through the node ADC0_2 is V1=I*R, the potential of the voltage drop subcircuit collected from the potential collection subcircuit of board N is V2=2*I*R, the potential of the voltage drop subcircuit collected from the potential collection subcircuit of board N-1 is V3=3*I*R, and so on. The potential of the voltage drop subcircuit collected from the potential collection subcircuit of board 2 is V n =N*I*R, the potential of the voltage drop subcircuit collected from the potential collection subcircuit of board 1 is V n+1 =(N+1)*I*R.

[0056] The voltage drop subcircuit includes electronic devices with a voltage drop function, including but not limited to resistors and inductors. The type and quantity of the electronic devices can be selected according to actual conditions and are not particularly limited here.

[0057] Taking the voltage drop subcircuit including resistors as an example, assuming that the resistance values ​​of resistors R02 and R1-Rn are different, and the resistance value of R02 is r 02 , the resistance of R1 is r1, ..., the resistance of Rn is r n The potential collected by the analog-to-digital converter of the mainboard through the node ADC0_2 is V1'=I*r 02 , the potential of the voltage drop subcircuit collected from the potential collection subcircuit of plate N is V2'=I*r 02 +I*r n , and so on, the potential of each voltage drop collection sub-circuit can be obtained.

[0058] The potential of the voltage drop subcircuit of each slave board is different. The coding of the slave board is determined according to the potential, so that different slave boards can be distinguished by coding to ensure that data can be accurately transmitted between the main board and the slave board.

[0059] It should be noted that the number of slave boards N and the resistance value R can be set according to actual conditions and are not particularly limited here. The resistor of each slave board can be a single resistor or multiple resistors connected in series, which can be selected according to actual conditions and are not particularly limited here.

[0060] In this embodiment, the circuit is simple and easy to implement, and can realize synchronous encoding of multiple slave boards, thereby improving encoding efficiency and shortening the encoding time of the entire battery management system.

[0061] In one embodiment, the encoding output circuit outputs power to the voltage drop subcircuit of the slave board through a constant current source.

[0062] The constant current source is used to output a constant current. The wiring harness used to connect the circuit has a certain length, and the wiring harness has parasitic parameters (such as parasitic capacitance). Even in the case of load changes or power supply potential fluctuations, the constant current source can provide a stable current output, reducing the current fluctuation caused by the parasitic parameters of the wiring harness. The constant current source can be dynamically adjusted to maintain a constant current output. Therefore, the length of the wiring harness from the main board to the slave board and between the slave boards can be greatly increased.

[0063] In other implementations, there is no requirement for the type of power supply, and it may not be a constant current source. The specific selection can be made according to actual conditions and is not particularly limited here.

[0064] In this embodiment, the encoding output circuit outputs electric energy to the voltage drop subcircuit of the slave board through a constant current source, is not easily affected by the parasitic parameters of the wiring harness, and has strong robustness.

[0065] In one embodiment, the mainboard further includes an analog-to-digital converter, which is connected to the PIN port to collect and detect whether the current output by the constant current source is constant.

[0066] In this embodiment, it is detected whether the current output by the constant current source is constant, so as to improve the reliability of the entire battery management system encoding process. It is also possible to timely detect when the output current of the constant current source is too large, thereby reducing safety risks.

[0067] In one embodiment, the voltage drop sub-circuit voltage drops of each slave board are the same.

[0068] Since the voltage drop of the voltage drop sub-circuit is the same, each slave board can adopt the same hardware structure. The voltage drop sub-circuit includes electronic devices with voltage drop function. The electronic devices with voltage drop function include but are not limited to resistors and inductors. The type and quantity of electronic devices can be selected according to actual conditions and are not specifically limited here.

[0069] Figures 1 to 3 The voltage drop subcircuit includes resistors R1-Rn. The resistance values ​​of the resistors R1-Rn are the same. The resistance values ​​can be set according to actual conditions and are not particularly limited here.

[0070] In this embodiment, the voltage drop of the voltage drop sub-circuit on each slave board is the same, and each slave board can adopt the same hardware structure, which reduces the manufacturing cost and improves the convenience of assembly.

[0071] In one embodiment, in response to the mainboard issuing a self-test instruction, the first switch is in a closed state, the second switch is in an open state, and the power supply outputs electrical energy to the voltage drop subcircuit of the slave board; the potential collection subcircuit of the slave board is used to collect the potential of the voltage drop subcircuit, and determine the line conduction state of the loop between the mainboard and the slave board based on the potential.

[0072] See also Figure 3 , Figure 3 The master control in the figure is the main board, slave control 1-slave control N are slave board 1-slave board N, VCC represents the power supply, ON and OFF represent the switch states of the first switch Q1 and the second switch Q2 respectively, ON represents closing, and OFF represents disconnection. Figure 3 The direction of the arrow indicates the direction of the current, and I indicates the current output by the power supply.

[0073] The main board controls EN1 to close the first switch Q1, and controls EN2 to open the second switch. One end of the first resistor is connected to the power supply, the other end of the first resistor is connected to one end of the first switch, and the other end of the first switch is grounded, forming a closed loop. At this time, the potential collected by the analog-to-digital converter of the main board through the node ADC0_1 is V=I*R01. Since the second switch is disconnected, the potential of the voltage drop subcircuit collected by the potential collection subcircuit of each slave board is V=I*R01. If the potential of the voltage drop subcircuit collected by the potential collection subcircuit of each slave board is not V=I*R01, it means that there is an abnormality in the line conduction state of the loop between the main board and the slave board (for example, the line is short-circuited, open-circuited, etc.).

[0074] Before encoding the slave board, the line continuity status of the loop between the master board and the slave board is self-checked to avoid invalid encoding.

[0075] The main board sends a self-test command, the first switch is in a closed state, the second switch is in an open state, and the power supply outputs electrical energy to the voltage drop subcircuit of the slave board; the potential collection subcircuit of the slave board is used to collect the potential of the voltage drop subcircuit, and determine the line conduction state of the loop between the main board and the slave board based on the potential.

[0076] In this embodiment, the battery management system has a self-test function. By controlling the switching states of the first switch and the second switch, the line conductivity state of the loop between the main board and the slave board can be diagnosed, thereby avoiding coding accuracy caused by line problems and improving the stability of the encoding process.

[0077] Example 2

[0078] This embodiment also provides an encoding method for a battery management system, which is applied to the main board included in the battery management system provided in any of the above embodiments; the battery management system also includes at least two slave boards, the slave board includes an encoding circuit, the encoding circuit includes a voltage drop sub-circuit and a potential acquisition sub-circuit; the main board includes an encoding input circuit and an encoding output circuit, the voltage drop sub-circuits of each slave board are connected in series in sequence, and the two ends of the series-connected circuit are respectively connected to the encoding input circuit and the encoding output circuit to form a loop.

[0079] The coding method of the battery management system includes: triggering the coding output circuit to output electric energy to the voltage drop subcircuit of the slave board, so that the potential collection subcircuit collects the potential of the voltage drop subcircuit, and determines the coding of the slave board according to the potential.

[0080] The code represents the unique identification of the slave board.

[0081] In the present embodiment, electric energy is output to the voltage drop subcircuit of the slave board through the encoding output circuit of the main board, and the voltage drop subcircuits of the slave boards are connected in series in sequence. When the encoding output circuit outputs electric energy, the voltage drop subcircuit of each slave board can have different electric potentials at the same time. The electric potential collection subcircuit of each slave board can synchronously collect the electric potential and determine the encoding of the slave board according to the electric potential, thereby realizing synchronous encoding of multiple slave boards, improving encoding efficiency, and shortening the encoding time of the entire battery management system.

[0082] In one embodiment, the encoding output circuit further includes a power supply, a first resistor and a first switch, and the encoding input circuit includes a second resistor and a second switch.

[0083] A power source is connected to one end of the series circuit.

[0084] One end of the first resistor is connected to the power supply, the other end of the first resistor is connected to one end of the first switch, and the other end of the first switch is grounded; one end of the second resistor is connected to the other end of the series circuit, the other end of the second resistor is connected to one end of the second switch, and the other end of the second switch is grounded.

[0085] The mainboard can control the switching state of the first switch and the second switch. In response to the mainboard issuing a coded instruction, the first switch is in an open state, the second switch is in a closed state, and the power supply outputs electrical energy to the voltage drop subcircuit of the slave board.

[0086] The first switch and the second switch can be implemented by MOS tubes or triodes and other devices, which can be selected according to actual conditions and are not particularly limited here.

[0087] The encoding method of the battery management system also includes: opening the first switch and closing the second switch to trigger the power supply to output electrical energy to the voltage drop subcircuit of the slave board, so that the potential acquisition subcircuit acquires the potential of the voltage drop subcircuit, and determines the encoding of the slave board according to the potential.

[0088] See also Figure 2 , Figure 2 The master control in the diagram is the main board, slave control 1-slave control N are slave board 1-slave board N, VCC represents the power supply, ON and OFF represent the switch states of the first switch Q1 and the second switch Q2, ON represents closing, and OFF represents opening. When the wiring harness is connected, the main board controls EN1 to open the first switch Q1, and controls EN2 to close the second switch, and the two ends of the series circuit are respectively connected to the encoding input circuit and the encoding output circuit to form a closed loop.

[0089] Assume that the resistance values ​​of resistors R02 and R1-Rn are the same, all of which are R, and the current output by the power supply is I. At this time, Figure 2 In the example, the potential collected by the analog-to-digital converter of the main board through the node ADC0_2 is V1=I*R, the potential of the voltage drop subcircuit collected from the potential collection subcircuit of board N is V2=2*I*R, the potential of the voltage drop subcircuit collected from the potential collection subcircuit of board N-1 is V3=3*I*R, and so on. The potential of the voltage drop subcircuit collected from the potential collection subcircuit of board 2 is V n =N*I*R, the potential of the voltage drop subcircuit collected from the potential collection subcircuit of board 1 is V n+1 =(N+1)*I*R.

[0090] Taking the voltage drop subcircuit including resistors as an example, assuming that the resistance values ​​of resistors R02 and R1-Rn are different, and the resistance value of R02 is r 02 , the resistance of R1 is r1, ..., the resistance of Rn is r n The potential collected by the analog-to-digital converter of the mainboard through the node ADC0_2 is V1'=I*r 02 , the potential of the voltage drop subcircuit collected from the potential collection subcircuit of plate N is V2'=I*r 02 +I*r n , and so on, the potential of each voltage drop collection sub-circuit can be obtained.

[0091] The potential of the voltage drop subcircuit of each slave board is different. The coding of the slave board is determined according to the potential, so that different slave boards can be distinguished by coding to ensure that data can be accurately transmitted between the main board and the slave board.

[0092] It should be noted that the number N of slave boards and the resistance value R can be set according to actual conditions and are not particularly limited here.

[0093] In the present embodiment, electric energy is output to the voltage drop subcircuit of the slave board through the encoding output circuit of the main board, and the voltage drop subcircuits of the slave boards are connected in series in sequence. When the encoding output circuit outputs electric energy, the voltage drop subcircuit of each slave board can have different electric potentials at the same time. The electric potential collection subcircuit of each slave board can synchronously collect the electric potential and determine the encoding of the slave board according to the electric potential, thereby realizing synchronous encoding of multiple slave boards, improving encoding efficiency, and shortening the encoding time of the entire battery management system.

[0094] In one embodiment, the encoding method of the battery management system also includes: closing the first switch and opening the second switch, triggering the power supply to output electrical energy to the voltage drop subcircuit of the slave board, so that the potential collection subcircuit collects the potential of the voltage drop subcircuit, and determines the line conduction state of the loop between the main board and the slave board based on the potential.

[0095] See also Figure 3 , Figure 3 The master control in the figure is the main board, the slave control 1-slave control N are slave boards 1-slave boards N, VCC represents the power supply, ON and OFF represent the switch states of the first switch Q1 and the second switch Q2 respectively, ON represents closing, and OFF represents opening.

[0096] The main board controls EN1 to close the first switch Q1, and controls EN2 to open the second switch. One end of the first resistor is connected to the power supply, the other end of the first resistor is connected to one end of the first switch, and the other end of the first switch is grounded, forming a closed loop. At this time, the potential collected by the analog-to-digital converter of the main board through the node ADC0_1 is V=I*R01. Since the second switch is disconnected, the potential of the voltage drop subcircuit collected by the potential collection subcircuit of each slave board is V=I*R01. If the potential of the voltage drop subcircuit collected by the potential collection subcircuit of each slave board is not V=I*R01, it means that there is an abnormality in the line conduction state of the loop between the main board and the slave board (for example, the line is short-circuited, open-circuited, etc.).

[0097] Before encoding the slave board, the line continuity status of the loop between the master board and the slave board is self-checked to avoid invalid encoding.

[0098] The main board sends a self-test command, the first switch is in a closed state, the second switch is in an open state, and the power supply outputs electrical energy to the voltage drop subcircuit of the slave board; the potential collection subcircuit of the slave board is used to collect the potential of the voltage drop subcircuit, and determine the line conduction state of the loop between the main board and the slave board based on the potential.

[0099] In this embodiment, the battery management system has a self-test function. By controlling the switching states of the first switch and the second switch, the line conductivity state of the loop between the main board and the slave board can be diagnosed, thereby avoiding coding accuracy caused by line problems and improving the stability of the encoding process.

[0100] Example 3

[0101] This embodiment also provides an encoding method for a battery management system, which is applied to any of the at least two slave boards included in the battery management system provided in any of the above embodiments, the slave board includes an encoding circuit, the encoding circuit includes a voltage drop sub-circuit and a potential acquisition sub-circuit; the battery management system also includes a main board, the main board includes an encoding input circuit and an encoding output circuit, the voltage drop sub-circuits of each slave board are connected in series in sequence, and the two ends of the series-connected circuit are respectively connected to the encoding input circuit and the encoding output circuit to form a loop.

[0102] The encoding method of the battery management system includes: receiving the electric energy output by the encoding output circuit of the main board, and using the potential acquisition subcircuit to acquire the potential of the voltage drop subcircuit, and determining the encoding of the slave board according to the potential.

[0103] The code represents the unique identification of the slave board.

[0104] In the present embodiment, electric energy is output to the voltage drop subcircuit of the slave board through the encoding output circuit of the main board, and the voltage drop subcircuits of the slave boards are connected in series in sequence. When the encoding output circuit outputs electric energy, the voltage drop subcircuit of each slave board can have different electric potentials at the same time. The electric potential collection subcircuit of each slave board can synchronously collect the electric potential and determine the encoding of the slave board according to the electric potential, thereby realizing synchronous encoding of multiple slave boards, improving encoding efficiency, and shortening the encoding time of the entire battery management system.

[0105] Example 4

[0106] Figure 4 This is a structural schematic diagram of an electronic device shown in an example embodiment of the present disclosure, the electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, the encoding method of the battery management system described in any of the above embodiments is implemented. Figure 4 The electronic device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0107] like Figure 4 As shown, the electronic device 90 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).

[0108] The bus 93 includes a data bus, an address bus, and a control bus.

[0109] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .

[0110] The memory 92 may also include a program tool 925 (or utility) having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.

[0111] The processor 91 executes various functional applications and data processing by running the computer program stored in the memory 92, such as the encoding method of the battery management system provided in any of the above embodiments.

[0112] The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 95. Furthermore, the electronic device 90 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 96. As shown, the network adapter 96 communicates with other modules of the electronic device 90 via a bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0113] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0114] Example 5

[0115] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the encoding method of the battery management system provided in any of the above embodiments is implemented.

[0116] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0117] Example 6

[0118] An embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned encoding methods for a battery management system.

[0119] Among them, the program code for executing the computer program product of the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0120] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.

Claims

1. A battery management system, characterized in that: The battery management system comprises: a main board and at least two slave boards, each slave board comprises a coding circuit, and the coding circuit comprises a voltage drop subcircuit and a potential acquisition subcircuit; the main board comprises a coding input circuit and a coding output circuit; the voltage drop subcircuits of the slave boards are sequentially connected in series, and the two ends of the series circuit are respectively connected to the coding input circuit and the coding output circuit to form a loop; The encoding output circuit is used to output electrical energy to the voltage drop subcircuit of the slave board; The potential acquisition subcircuit of each slave board is used to acquire the potential of the voltage drop subcircuit and determine the code of the slave board according to the potential; wherein the code represents the unique identification of the slave board.

2. The battery management system according to claim 1, characterized in that: The encoding output circuit includes a power supply, a first resistor and a first switch, and the encoding input circuit includes a second resistor and a second switch; The power supply is connected to one end of the series circuit; One end of the first resistor is connected to the power supply, the other end of the first resistor is connected to one end of the first switch, and the other end of the first switch is grounded; one end of the second resistor is connected to the other end of the series circuit, the other end of the second resistor is connected to one end of the second switch, and the other end of the second switch is grounded; In response to the main board sending a coding instruction, the first switch is in an open state, the second switch is in a closed state, and the power supply outputs electric energy to the voltage drop subcircuit of the slave board.

3. The battery management system according to claim 1, characterized in that: The encoding output circuit outputs electric energy to the voltage drop subcircuit of the slave board through a constant current source.

4. The battery management system according to any one of claims 1 to 3, characterized in that: The voltage drop of the voltage drop sub-circuit of each slave board is the same; and / or, in response to the main board issuing a self-test instruction, the first switch is in a closed state, the second switch is in an open state, and the power supply outputs power to the voltage drop subcircuit of the slave board; The potential collection subcircuit of the slave board is used to collect the potential of the voltage drop subcircuit, and determine the line conduction state of the loop between the main board and the slave board according to the potential.

5. A coding method for a battery management system, characterized in that: The main board included in the battery management system is applied; the battery management system also includes at least two slave boards, the slave board includes a coding circuit, and the coding circuit includes a voltage drop subcircuit and a potential acquisition subcircuit; the main board includes a coding input circuit and a coding output circuit, and the voltage drop subcircuits of each slave board are sequentially connected in series, and the two ends of the series circuit are respectively connected to the coding input circuit and the coding output circuit to form a loop; The encoding method of the battery management system includes: Triggering the coding output circuit to output electric energy to the voltage drop subcircuit of the slave board, so that the potential acquisition subcircuit acquires the potential of the voltage drop subcircuit, and determines the coding of the slave board according to the potential; The code represents the unique identification of the slave board.

6. The encoding method of the battery management system according to claim 5, characterized in that: The encoding output circuit further includes a power supply, a first resistor and a first switch, and the encoding input circuit includes a second resistor and a second switch; The power supply is connected to one end of the series circuit; One end of the first resistor is connected to the power supply, the other end of the first resistor is connected to one end of the first switch, and the other end of the first switch is grounded; one end of the second resistor is connected to the other end of the series circuit, the other end of the second resistor is connected to one end of the second switch, and the other end of the second switch is grounded; The encoding method of the battery management system further includes: Opening the first switch and closing the second switch to trigger the power supply to output electric energy to the voltage drop subcircuit of the slave board, so that the potential acquisition subcircuit acquires the potential of the voltage drop subcircuit and determines the code of the slave board according to the potential; And / or, closing the first switch and opening the second switch, triggering the power supply to output electrical energy to the voltage drop subcircuit of the slave board, so that the potential collection subcircuit collects the potential of the voltage drop subcircuit, and determines the line conduction state of the loop between the main board and the slave board based on the potential.

7. A coding method for a battery management system, characterized in that: Applied to any one of the at least two slave boards included in the battery management system, the slave board includes a coding circuit, the coding circuit includes a voltage drop subcircuit and a potential acquisition subcircuit; the battery management system also includes a main board, the main board includes a coding input circuit and a coding output circuit, the voltage drop subcircuits of the slave boards are sequentially connected in series, and the two ends of the series circuit are respectively connected to the coding input circuit and the coding output circuit to form a loop; The encoding method of the battery management system includes: Receiving the electric energy output by the coding output circuit of the main board, and using the potential collection subcircuit to collect the potential of the voltage drop subcircuit, and determining the coding of the slave board according to the potential; The code represents the unique identification of the slave board.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the encoding method of the battery management system according to any one of claims 5 to 7 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the encoding method of the battery management system according to any one of claims 5 to 7 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the encoding method of the battery management system according to any one of claims 5 to 7 is implemented.