Method, device and system for sequentially coding device addresses, device and medium

By using the method of controlling the power supply on and off by using the common pole connection of the power line and the power switch in the battery management system, the problem of insufficient hardware dependence and coding flexibility in the prior art is solved, and the effect of reducing hardware costs and improving coding flexibility is achieved.

CN119536741AActive Publication Date: 2025-02-28CONTEMPORARY AMPEREX TECHNOLOGY CO LTD

Patent Information

Application Number
CN202510082474.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-02-28
Estimated Expiration
2045-01-20

AI Technical Summary

Technical Problem

Existing battery management systems need to add hardware circuits when sequentially encode device addresses, resulting in increased costs and reduced coding flexibility.

Method used

The sub-device connected by the power line in sequence is controlled by the previous sub-device on and off, and the address information of the sub-device is determined based on the received communication message, reducing hardware dependence and improving coding flexibility.

Benefits of technology

Reduces the amount of hardware required for sequential encoding, reduces the wiring harness and cost of connections, improves coding flexibility, and enables rapid positioning in case of failure of sub-device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536741A_ABST
    Figure CN119536741A_ABST
Patent Text Reader

Abstract

The invention provides a method, device and system for sequentially coding device addresses, equipment and a medium, and belongs to the technical field of batteries. The method comprises the steps of obtaining a state indication code of an nth sub-device in response to connection of the nth sub-device and a power supply; the state indication code comprises a first indication code for indicating that the sub-device does not complete coding and a second indication code for indicating that the sub-device completes coding; in response to the state indication code being a first indication code, obtaining a communication message received by the nth sub-device; the communication message is sent by the coded sub-equipment; determining address information of the nth sub-device based on the communication message received by the nth sub-device; setting the state indication code of the nth sub-device as a second indication code; and sending a communication message and a control signal for indicating the power switch of the nth sub-equipment to be closed. According to the method for sequentially coding the device addresses, the number of hardware needed by coding can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a method, apparatus, system, device and medium for sequentially encoding device addresses. Background Art

[0002] As the demand for battery capacity in electrical devices grows, the number of battery cells contained in battery devices gradually increases. Correspondingly, multiple battery management units will be set up in the battery management system. Each battery management unit will be connected to multiple battery cell monitoring circuits. The battery cell monitoring circuit is used to monitor the status of one or more battery cells.

[0003] In order to achieve better monitoring in the battery management system, a unique address code is assigned to each device in turn to achieve sequential coding. The current sequential coding requires adding hardware circuits to devices such as battery management units or battery cell monitoring circuits, and using hardware circuits to detect downstream devices. This solution adds detection devices and connecting wiring harnesses, which increases manufacturing costs, and excessive hardware involvement will also affect the flexibility of coding. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems in the background technology. To this end, one purpose of the present application is to provide a method, apparatus, system, device and medium for sequentially encoding device addresses to reduce the amount of hardware required for sequential encoding, reduce the dependence of sequential encoding on hardware, and improve the flexibility of sequential encoding.

[0005] An embodiment of the first aspect of the present application provides a method for sequentially encoding device addresses, wherein the device includes N sub-devices connected in sequence via a power line, wherein the nth sub-device among the N sub-devices includes a power switch for controlling the on and off of power provided to the n+1th sub-device, and the N sub-devices are also connected via a signal line, wherein N is a positive integer greater than 1, 1≤n≤N; the method is applied to the nth sub-device, including: in response to the nth sub-device being connected to the power supply, obtaining a status indication code of the nth sub-device; the status indication code includes a first indication code indicating that the sub-device has not completed encoding, and a second indication code indicating that the sub-device has completed encoding; in response to the status indication code being the first indication code, obtaining a communication message received by the nth sub-device; the communication message is a communication message sent by the sub-device that has completed encoding; based on the communication message received by the nth sub-device, determining the address information of the nth sub-device; setting the status indication code of the nth sub-device to the second indication code; and sending a communication message and a control signal indicating that the power switch of the nth sub-device is closed.

[0006] In the technical solution of the embodiment of the present application, multiple sub-devices are connected in common pole in sequence using power lines, and the previous sub-device is used to control the on and off of the power supply of the next sub-device, which can reduce the number of parts used, reduce the connection harness, reduce costs, and facilitate assembly. After the current sub-device is connected to the power supply, the address information of the current sub-device is determined based on the communication message obtained by the current sub-device, and then the encoding is completed, and the communication message of the current sub-device is sent and the on and off of the power supply of the next sub-device is controlled. Then, the encoding of the next sub-device is performed in sequence. When any sub-device fails, it can be quickly located, reducing the amount of hardware required for sequential encoding while improving the flexibility of sequential encoding device addresses.

[0007] In some embodiments, based on the communication message received by the nth sub-device, determining the address information of the nth sub-device includes: determining the address information of the nth sub-device based on the number of communication messages received by the nth sub-device. By including the number of received communication messages in the received communication message, the order of the current sub-device among the multiple sub-devices is known, and the address information of the current sub-device can be determined, which helps to quickly encode the device address in sequence.

[0008] In some embodiments, based on the number of communication messages received by the nth sub-device, determining the address information of the nth sub-device includes: in response to the number of communication messages received by the nth sub-device being m, determining the address information of the nth sub-device to be m+1; wherein 0≤m≤N-1. By determining the address information of the current sub-device to be m+1 in response to the number of received communication messages being m, the need for sequentially fast encoding of device addresses of multiple sub-devices is met.

[0009] In some embodiments, the communication message includes address information of a message sending sub-device; and wherein, based on the communication message received by the nth sub-device, determining the address information of the nth sub-device includes: determining the address information of the nth sub-device based on the address information of the message sending sub-device contained in the communication message received by the nth sub-device. By using the address information of the message sending sub-device contained in the received communication message, the order of the current sub-device among the multiple sub-devices can be known through the address information, thereby quickly determining the address information of the current sub-device.

[0010] In some embodiments, determining the address information of the nth sub-device based on the address information of the message-sending sub-device included in the communication message received by the nth sub-device includes: in response to the maximum value of the address information in the communication message received by the nth sub-device being m, determining the address information of the nth sub-device as m + 1; where 0 < m ≤ N - 1. By determining the address information of the current sub-device as m + 1 in response to the maximum value of the address information in the received communication message, the requirement for quickly encoding the device addresses of multiple sub-devices in sequence is met.

[0011] In some embodiments, sending a communication message and a control signal for instructing the power switch of the nth sub-device to close includes: in response to the status indication code of the nth sub-device being set to the second indication code, sending a communication message including the address information of the nth sub-device at a preset frequency; and sending an enabling signal, where the enabling signal is used to instruct the power switch of the nth sub-device to close to supply power to the (n + 1)th sub-device. By completing the encoding in response to the status indication code of the current sub-device, sending a communication message including the address information of the current sub-device, and supplying power to the next sub-device, the address encoding of the next sub-device is satisfied, enabling the device addresses of multiple sub-devices to be quickly encoded in sequence.

[0012] An embodiment of the second aspect of the present application provides a method for sequentially encoding device addresses. The device includes a master device and N sub-devices. The N sub-devices are sequentially connected to the master device in common polarity through a power line, and the N sub-devices are connected to the master device in parallel through a signal line. The nth sub-device among the N sub-devices includes a power switch for controlling the on / off of the power supplied to the (n + 1)th sub-device, where N is a positive integer greater than 1 and 1 ≤ n ≤ N; the method is applied to the master device and includes: supplying power to the first sub-device among the N sub-devices; and receiving communication messages sent by the N sub-devices; determining the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices.

[0013] In the technical solution of the embodiments of the present application, by sequentially connecting the N sub-devices to the master device in common polarity through a power line and using the previous sub-device to control the on / off of the power of the next sub-device, the number of components used can be reduced, the connecting wire harness can be reduced, the cost can be lowered, and it is also convenient for assembly. After the master device supplies power to the first sub-device, the first sub-device completes the encoding, sends the communication message of the current sub-device, and controls the on / off of the power of the next sub-device, and then the encoding of the next sub-device is sequentially performed. When any sub-device fails, it can be quickly located, improving the flexibility of encoding device addresses while reducing the number of hardware required for sequential encoding.

[0014] In some embodiments, determining the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices includes: in response to the number of communication messages received within a preset time period after the first sub-device is connected to the power supply being N, determining that the N sub-devices have completed encoding. By the number of communication messages received within the preset time period being N, it is possible to quickly determine whether the multiple sub-devices have completed encoding based on the number.

[0015] In some embodiments, determining the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices includes: determining that the N sub-devices have completed encoding in response to the maximum value of the address information in the communication messages received within a preset time period after the first sub-device is connected to the power supply being N. By the maximum value of the address information in the communication messages received within the preset time period being N, it is possible to quickly determine whether the encoding of multiple sub-devices has been completed according to the maximum value being N.

[0016] An embodiment of the third aspect of the present application provides a device for sequentially encoding device addresses, the device comprising N sub-devices connected in sequence via a power line, the nth sub-device of the N sub-devices comprising a power switch for controlling the on and off of power provided to the (n+1)th sub-device, and the N sub-devices are also connected via a signal line, wherein N is a positive integer greater than 1, 1≤n≤N; the device is located in the nth sub-device, comprising: a first acquisition unit, configured to acquire a status indication code of the nth sub-device in response to the nth sub-device being connected to a power source; the status indication code comprising a first indication code indicating that the sub-device has not completed encoding a state indication code, and a second indication code indicating that the sub-device has completed encoding; a second acquisition unit is configured to acquire a communication message received by the n-th sub-device in response to the state indication code being the first indication code; the communication message is a communication message sent by the sub-device that has completed encoding; a first processing unit is configured to determine the address information of the n-th sub-device based on the communication message received by the n-th sub-device; a second processing unit is configured to set the state indication code of the n-th sub-device to the second indication code; and a signal sending unit is configured to send a communication message and a control signal indicating that the power switch of the n-th sub-device is closed.

[0017] An embodiment of the fourth aspect of the present application provides a device for sequentially encoding device addresses, the device comprising a main device and N sub-devices, the N sub-devices being connected to the main device in common in sequence through power lines, and the N sub-devices being connected to the main device in parallel through signal lines, the nth sub-device among the N sub-devices comprising a power switch for controlling the on and off of power supplied to the n+1th sub-device, wherein N is a positive integer greater than 1, 1≤n≤N; the device is located in the main device, comprising: a providing unit, configured to provide power to the first sub-device among the N sub-devices; a receiving unit, configured to receive communication messages sent by the N sub-devices; and a determining unit, configured to determine the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices. The fifth aspect of the present application provides a battery management system, which includes N sub-devices, which are connected in common via power lines in sequence, and the N sub-devices are also connected via signal lines; the nth sub-device among the N sub-devices includes: a power switch for controlling the on and off of the power provided to the n+1th sub-device, and a sub-controller connected to the power switch signal, and the controller is configured to execute the above-mentioned method of sequentially encoding device addresses; wherein N is a positive integer greater than 1, 1≤n≤N. By including multiple sub-devices in the battery management system, rapid encoding can be achieved in the battery cell, and when a single battery cell fails, it can be quickly located through the sub-device, and maintenance can be carried out in time.

[0018] In some embodiments, in some embodiments, the battery management system further includes a main device, N sub-devices are connected to the main device in common via power lines in sequence, and the N sub-devices are connected to the main device in parallel via signal lines; the main device includes a main controller, and the main controller is configured to execute the above-mentioned method of sequentially encoding device addresses. By including a main device and multiple sub-devices in the battery management system, the main device is used to provide power, and the main device is relied on to obtain communication messages of the sub-devices, rapid encoding in the battery cell can be achieved, and when a single battery cell fails, it can be quickly located through the sub-device, and maintenance can be carried out in time.

[0019] An embodiment of the sixth aspect of the present application provides a battery device, which includes a battery and the above-mentioned battery management system, and the battery management system is used to manage the battery.

[0020] An embodiment of the seventh aspect of the present application provides an energy storage device, which includes the above-mentioned battery device.

[0021] An embodiment of the eighth aspect of the present application provides an electrical device, which includes the above-mentioned battery device.

[0022] An embodiment of the ninth aspect of the present application provides a computing device, which includes at least one processor; and at least one memory communicatively connected to the at least one processor, the at least one memory storing instructions, which, when executed individually or collectively by the at least one processor, enable the computing device to execute the above-mentioned method of sequentially encoding device addresses.

[0023] An embodiment of the tenth aspect of the present application provides a computer-readable storage medium storing instructions which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to execute the above-mentioned method of sequentially encoding device addresses.

[0024] An embodiment of the eleventh aspect of the present application provides a computer program product, comprising instructions, which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to execute the above-mentioned method of sequentially encoding device addresses.

[0025] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.

[0027] Figure 1 A schematic diagram of the connection of the device that needs to be encoded according to an embodiment of the present application; Figure 2 A schematic diagram of a flow chart of a method for sequentially encoding device addresses applied to a sub-device according to an embodiment of the present application; Figure 3 A schematic diagram of a flow chart of encoding processing applied to a sub-device according to an embodiment of the present application; Figure 4 A connection diagram of another device that needs to be encoded according to an embodiment of the present application; Figure 5 A schematic diagram of a flow chart of a method for sequentially encoding device addresses applied to a master device according to an embodiment of the present application; Figure 6 A schematic diagram of a flow chart of encoding processing applied to a master device according to an embodiment of the present application; Figure 7 A structural block diagram of a sequentially encoded device address applied to a sub-device in an embodiment of the present application; Figure 8This is a structural block diagram of the sequentially encoded device address applied to the master device in an embodiment of the present application.

[0028] Description of reference numerals: 100. Coding device; 110. Battery cell monitoring circuit; 120. CAN bus; 130. Power line; 131. First power line; 132. Second power line; 140. Power switch; 150. Main device; 200. Method for sequentially encoding device addresses applied to sub-devices; 400. Method for sequentially encoding device addresses applied to main device; 700. Apparatus for sequentially encoding device addresses applied to sub-devices; 710. First acquisition unit; 720. Second acquisition unit; 730. First processing unit; 740. Second processing unit; 750. Signal sending unit; 800. Apparatus for sequentially encoding device addresses applied to main device; 810. Providing unit; 820. Receiving unit; 830. Determining unit. DETAILED DESCRIPTION

[0029] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0031] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0032] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0033] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0034] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0035] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the embodiments of the present application.

[0036] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0037] At present, from the perspective of market development, the application of batteries is becoming more and more extensive. Batteries are not only used in energy storage power systems such as hydropower, thermal power, wind power and solar power stations, but also widely used in electric vehicles such as electric bicycles, electric motorcycles, electric cars, as well as military equipment and aerospace and other fields. With the continuous expansion of battery application areas, its market demand is also constantly expanding.

[0038] As the demand for battery capacity in power-consuming devices increases, the number of battery cells contained in battery devices increases gradually. The corresponding battery management system will also be equipped with multiple battery management units (BMUs), each of which will be connected to multiple cell supervisory circuits (CSCs). Each CSC is used to monitor the status of one or more battery cells, so as to accurately grasp the health status of the entire battery. In order to more accurately distinguish each CSC or BMU, it is necessary to encode its address and give each device a "unique" identity, which is conducive to improving the accuracy and reliability of communication and interaction between devices.

[0039] In some embodiments, the battery management system can sequentially code CSCs or BMUs and other devices by assigning unique address codes to each device in accordance with the physical connection order of the devices in the battery or the logical order of managing battery cells. However, such sequential coding requires adding hardware circuits to devices such as CSCs or BMUs, using the hardware circuits to detect downstream devices and sequentially enable each downstream device to perform sequential coding. These hardware circuits will significantly increase the cost of the equipment and reduce the flexibility of coding.

[0040] Based on the above problems, the present application provides a method for sequentially encoding device addresses, the method comprising: in response to the nth sub-device being connected to the power supply, obtaining the status indication code of the nth sub-device; the status indication code comprises a first indication code indicating that the sub-device has not completed the encoding, and a second indication code indicating that the sub-device has completed the encoding; in response to the status indication code being the first indication code, obtaining the communication message received by the nth sub-device; the communication message is a communication message sent by the sub-device that has completed the encoding; based on the communication message received by the nth sub-device, determining the address information of the nth sub-device; setting the status indication code of the nth sub-device to the second indication code; and sending a communication message and a control signal indicating that the power switch of the nth sub-device is closed. The method can reduce the amount of hardware required for sequential encoding, reduce the dependence of sequential encoding on hardware, and improve the flexibility of sequential encoding.

[0041] The method for sequentially encoding device addresses disclosed in the embodiments of the present application can be used, but is not limited to, in electrical devices such as vehicles, ships or aircraft. Electrical devices can be, but are not limited to, mobile phones, tablets, laptops, electric toys, electric tools, battery cars, electric cars, ships, spacecraft, and the like. Among them, electric toys can include fixed or mobile electric toys, for example, game consoles, electric car toys, electric ship toys, and electric airplane toys, and the like, and spacecraft can include airplanes, rockets, space shuttles, and spacecraft, and the like. The disclosed method for sequentially encoding device addresses can also be used in energy storage devices, including containerized energy storage, distributed energy storage, and the like.

[0042] The present application embodiment provides a method for sequentially encoding device addresses, such as Figures 1 to 3 As shown, Figure 1 This is a schematic diagram of the connection of the device that needs to be encoded in the embodiment of the present application. Figure 2 : is a flow chart of a method for sequentially encoding device addresses of sub-devices according to an embodiment of the present application. Figure 3 A schematic diagram of the process of encoding processing applied to a sub-device according to an embodiment of the present application.

[0043] The device includes N sub-devices connected in sequence via a power line, the nth sub-device among the N sub-devices includes a power switch for controlling the on and off of power provided to the n+1th sub-device, and the N sub-devices are also connected via a signal line, wherein N is a positive integer greater than 1, 1≤n≤N.

[0044] The method is applied to the nth child device, such as Figure 2 As shown, the sequential encoding device address method 200 applied to a sub-device includes: Step S110: in response to the nth sub-device being connected to a power source, obtaining a status indication code of the nth sub-device; the status indication code includes a first indication code indicating that the sub-device has not completed encoding, and a second indication code indicating that the sub-device has completed encoding; Step S120: in response to the state indication code being the first indication code, obtaining a communication message received by the nth sub-device; the communication message is a communication message sent by the sub-device that has completed encoding; Step S130: determining the address information of the nth sub-device based on the communication message received by the nth sub-device; Step S140, setting the status indication code of the nth sub-device to the second indication code; and Step S150: Send a communication message and a control signal instructing the power switch of the nth sub-device to close.

[0045] The method for sequentially encoding device addresses disclosed in the embodiments of the present application can be used for any device that requires address encoding, including but not limited to a battery cell monitoring circuit (CSC) and a battery management unit (BMU) in a battery management system. The method for sequentially encoding device addresses applied to a sub-device can be executed by a controller or processor of the sub-device, which can be a controller or processor in a CSC, or a controller or processor in a BMU. For ease of explanation, the following description is based on a battery cell monitoring circuit (CSC) as an example.

[0046] like Figure 1 As shown, the encoding device 100 includes N sub-devices connected in common in sequence through a power line. The sub-device can be a battery cell monitoring circuit 110. Each battery cell monitoring circuit 110 has a power switch 140. At least one of the positive and negative poles of the N battery cell monitoring circuits 110 is connected in common to the power line through the power switch 140.

[0047] Common connection refers to the connection method in which multiple electronic components or electronic devices connect the same electrode (such as positive or negative) together. This connection method makes these components have the same potential on this common electrode.

[0048] It can be understood that the power line 130 has a first power line 131 and a second power line 132, and multiple battery cell monitoring circuits 110 are connected between the first power line 131 and the second power line 132 in a common-pole connection manner. The power switch 140 can be used to control the switch for controlling the positive common-pole connection of two adjacent battery cell monitoring circuits 110, or it can be used to control the negative common-pole connection of two adjacent battery cell monitoring circuits 110. It can also be a switch for simultaneously or separately controlling the positive common-pole connection and the negative common-pole connection of two adjacent battery cell monitoring circuits 110, for example, the two switches are connected to the positive and negative poles respectively.

[0049] In some embodiments, the battery cell monitoring circuit 110 includes a first connection terminal, a second connection terminal and a third connection terminal, wherein the first connection terminal of the first-level battery cell monitoring circuit 110 is directly connected to the first power line 131, the second connection terminal of the first-level battery cell monitoring circuit 110 is directly connected to the second power line 132, and the power switch 140 is arranged between the first connection terminal and the third connection terminal. Correspondingly, the first connection terminal of the lower-level battery cell monitoring circuit 110 is connected to the third connection terminal of the upper-level battery cell monitoring circuit 110, and the second connection terminal of the lower-level battery cell monitoring circuit 110 is also connected to the second power line 132. By closing the power switch 140, the upper-level battery cell monitoring circuit 110 can provide power from the third connection terminal to the lower-level battery cell monitoring circuit 110. It can be understood that the first power line 131 can be a positive power line or a negative power line.

[0050] The power switch 140 may be a MOS tube (Metal-Oxide-Semiconductor Field-Effect Transistor, MOSFET, metal oxide semiconductor field effect transistor). The on and off of the power switch 140 may be controlled by a controller or a processor in the battery cell monitoring circuit 110 where the power switch 140 is located.

[0051] The battery cell monitoring circuits 110 in the device are also connected by signal lines. It can be understood that the device has a controller area network bus (CAN), and the CAN bus 120 is connected to each battery cell monitoring circuit 110 respectively. Each battery cell monitoring circuit 110 has a micro-controller unit (MCU) inside for receiving and sending communication messages.

[0052] The total number of CSCs is N, where N is a positive integer greater than 1, such as 5, 10, 20, etc. Figure 2 As shown, the sequential encoding device address method 200 applied to a sub-device specifically includes: Step S210, the nth CSC is connected to the power supply, the power supply supplies power to the nth CSC, and the MCU inside the CSC obtains the status indication code of the current device, the status indication code includes a first indication code indicating that the sub-device has not completed encoding, for example, the first indication code is 0X55, and a second indication code indicating that the sub-device has completed encoding, for example, the second indication code is 0XAA.

[0053] Exemplarily, the first CSC and the second CSC have completed address encoding, the second CSC controls the power supply of the third CSC to turn off the power supply, so that the third CSC is connected to the power supply, and the third CSC obtains its own status indication code information, determines its current encoding status, and then takes different operations.

[0054] In step S220, if the status indication code obtained by the MCU inside the nth CSC is the first indication code, it is determined that the current CSC has not completed encoding, and the MCU inside the nth CSC will obtain the received communication message. The communication message is sent by the CSC that has completed encoding, which can be understood as the communication message sent by the n-1 CSCs before the nth CSC.

[0055] Exemplarily, the current CSC is the third CSC, and the status indication code obtained by the MCU inside the third CSC is the first indication code, that is, it is determined that the current third CSC has not completed encoding, and the MCU inside the third CSC will obtain the communication message sent by the first CSC and the communication message sent by the second CSC.

[0056] Step S230, the nth CSC obtains the received communication message based on the internal MCU, that is, the communication message sent by the n-1 CSCs before the nth CSC, the communication message may include the number and address information of the CSC, and determines the address information of the current nth sub-device according to the communication message already obtained by the nth CSC.

[0057] Exemplarily, the current CSC has obtained the communication message sent by the first CSC and the communication message sent by the second CSC, and the current CSC can determine that it is the third CSC.

[0058] Step S240: After determining the address information of the nth CSC, the nth CSC status indicator code is set as the second indicator code, and the code of the third CSC is changed from 0X55 to 0XAA.

[0059] Exemplarily, after determining the address information of the third CSC, the third CSC status indication code is changed from 0X55 to 0XAA.

[0060] Step S250: After the status indication code of the nth CSC is set to the second indication code, the nth CSC sends a communication message by the internal MCU, and the communication message may include the current address information. The MCU inside the nth CSC controls the power switch in the current CSC to close, so that the n+1th CSC is powered on, so as to complete the encoding of the next CSC.

[0061] Exemplarily, after the status indicator code of the third CSC is set to 0XAA, the third CSC sends a communication message from the internal MCU, and the communication message may include current address information, such as address 3. The MCU inside the third CSC controls the MOS tube in the current CSC to close, so that the fourth CSC is powered on.

[0062] like Figure 3 As shown, the encoding process applied to the sub-device may include the following steps: Step S310: Start.

[0063] Step S320: Turn on the power.

[0064] Step S330: Determine whether it is the first indication code.

[0065] Here, the status indication code of the current device is obtained according to the MCU inside the CSC, the first indication code indicates that the encoding is not completed, and the second indication code indicates that the encoding is completed. If the first indication code is obtained, step S340 is executed, otherwise step S360 is executed.

[0066] Step S340: Obtain communication message.

[0067] The MCU inside the CSC obtains the communication messages sent by other sub-devices. The communication messages are sent by the CSC that has completed the encoding. The communication messages can include multiple methods such as quantity and value.

[0068] Step S350: Determine the encoding address.

[0069] The coding address is determined according to the communication messages that the MCU inside the CSC has obtained. For example, if n-1 communication messages have been received, it can be determined that the current CSC is the nth one.

[0070] Step S360 includes step S361 and step S362. Step S361 and step S362 are parallel steps. There is no order between them. They can be executed simultaneously or one after the other.

[0071] Step S361: Send a communication message.

[0072] The CSC sends the determined coded address to other CSCs via the CAN bus.

[0073] Step S362: Close the power switch.

[0074] The CSC closes the internal power switch, allowing current to flow through the current CSC to the next CSC, supplying power to the next CSC.

[0075] Step S370: End.

[0076] The encoding of a single CSC is completed. It should be noted that each CSC needs to be encoded after it is powered on, and communication messages can only be sent after the encoding is completed. Considering the applicability of the equipment, the CSC does not need to be stored after the encoding is completed. When the CSC is powered on, the encoding value will not be lost. After the CSC is powered off, the encoding value of the CSC is lost. When powered on again, re-encoding is performed.

[0077] Multiple sub-devices are connected using a common power line, and the previous sub-device is used to control the power on and off of the next sub-device, which can reduce the number of parts used, reduce the wiring harness, and reduce costs. At the same time, it can maintain the consistency of the power potential of multiple sub-devices, which is conducive to improving the stability of sub-device operation. After the current sub-device is connected to the power supply, the address information of the current sub-device is determined based on the communication message obtained by the current sub-device, and then the encoding is completed, and the communication message of the current sub-device is sent and the power on and off of the next sub-device are controlled. Then the encoding of the next sub-device is performed in sequence. When any sub-device fails, it can be quickly located, while reducing the amount of hardware required for sequential encoding and improving the flexibility of sequential encoding device addresses.

[0078] According to some embodiments of the present application, step S230, determining the address information of the nth sub-device based on the communication message received by the nth sub-device includes: Step S231: Determine the address information of the nth sub-device based on the number of communication messages received by the nth sub-device.

[0079] Specifically, in step S220, after obtaining the communication message received by the nth sub-device, step S230 is executed. Step S230 includes step S231. It should be noted that the CSCs that have completed the encoding will send communication messages through the communication line. Step S231 determines the address information of the nth sub-device according to the number of communication messages currently received by the nth CSC in a sequential encoding manner.

[0080] By including the number of received communication messages in the received communication message, the ranking of the current sub-device among the multiple sub-devices can be known, and the address information of the current sub-device can be determined, which helps to quickly encode the device address in sequence.

[0081] According to some embodiments of the present application, step S231, determining the address information of the nth sub-device based on the number of communication messages received by the nth sub-device includes: Step S2311: In response to the number of communication messages received by the nth sub-device being m, the address information of the nth sub-device is determined to be m+1; wherein 0≤m≤N-1.

[0082] Specifically, in step S220, the CSCs that have completed the encoding will send a communication message through the communication line, and then step S2311 can be executed. Step S2311 responds to the number of communication messages currently received by the nth CSC. The number of communication messages currently received by the nth CSC is m, where m is a positive integer greater than or equal to 0. According to the sequential coding method, the address information of the nth sub-device is determined to be m+1.

[0083] For example, each CSC that has completed encoding will send a communication message. The MCU of the current CSC has obtained 2 communication messages. According to the order, it can be determined that the current CSC is the third sub-device, so the current CSC address information is determined to be 3.

[0084] In response to the number of received communication messages being m, the address information of the current sub-device is determined to be m+1, thereby satisfying the requirement of encoding device addresses of multiple sub-devices in sequence and quickly.

[0085] According to some embodiments of the present application, the communication message includes address information of a sub-device from which the message is sent; and wherein step S230, based on the communication message received by the n-th sub-device, determining the address information of the n-th sub-device includes: Step S232: Determine the address information of the nth sub-device based on the message sending sub-device contained in the communication message received by the nth sub-device.

[0086] Specifically, in step S220, after obtaining the communication message received by the nth sub-device, step S230 is executed. Step S230 includes step S232. It should be noted that the CSC that has completed the encoding will send a communication message through the communication line. Step S232 obtains the address information of the message sending sub-device contained in the communication message received by the nth sub-device, and determines the address information of the nth sub-device in a sequential coding manner.

[0087] By sending the address information of the sub-device contained in the received communication message, the order of the current sub-device among multiple sub-devices can be known through the address information, so as to quickly determine the address information of the current sub-device.

[0088] According to some embodiments of the present application, step S232, based on the message contained in the communication message received by the nth sub-device, the address information of the sub-device is sent, and determining the address information of the nth sub-device includes: Step S2321: In response to the maximum value of the address information in the communication message received by the nth sub-device being m, the address information of the nth sub-device is determined to be m+1; wherein 0 <m≤N-1。

[0089] Specifically, in step S220, the CSCs that have completed encoding will send communication messages through the communication line, and then step S2321 can be executed. The current CSC will receive the communication message sent by the CSC that has completed encoding. Each communication message contains its own address information. The maximum value of the address information in the communication message received by the current nth CSC is m. According to the sequential encoding method, the address information of the nth sub-device is determined to be m+1.

[0090] For example, each CSC that has completed encoding will send a communication message. The MCU of the current CSC has obtained two communication messages, one communication message is 1 and the other communication message is 2. The maximum value of the address information in the received communication message is 2. According to the sorting, it can be determined that the current CSC is the third sub-device, so the current CSC address information is determined to be 3.

[0091] In response to the maximum value of the address information in the received communication message being m, the address information of the current sub-device is determined to be m+1, thereby meeting the requirement of quickly encoding the device addresses of multiple sub-devices in sequence.

[0092] According to some embodiments of the present application, step S250, sending a communication message and a control signal instructing the nth sub-device to close the power switch includes: Step S251, in response to the state indication code of the nth sub-device being set to the second indication code, sending a communication message including the address information of the nth sub-device at a preset frequency; and Step S252: Send an enable signal, where the enable signal is used to instruct the power switch of the nth sub-device to close to provide power to the (n+1)th sub-device.

[0093] After executing step 240 to set the status indication code of the nth CSC to the second indication code, execute step S250, which includes step S251 and step S252.

[0094] Step S251, the MCU in the nth CSC responds to the current second indication code and sends a communication message containing the address information of the current CSC at a preset frequency. The specific preset frequency can be determined according to actual needs. For example, after the status indication code is set to the second indication code, a communication message containing the address information of the current CSC is periodically sent. Exemplarily, the third CSC is currently the third CSC. The third CSC responds to the current second indication code and sends a communication message containing the address information of the current CSC at a preset frequency. At this moment, the address information of the current CSC can be 3.

[0095] Then, step S252 is executed, the MCU in the nth CSC sends an enable signal, and the enable signal is used to instruct the power switch of the nth CSC to close to provide power to the (n+1)th CSC.

[0096] Exemplarily, the current CSC is the third one, and the MCU inside the third CSC controls the MOS tube inside the current CSC to close, so as to power on the fourth CSC, so as to complete the encoding of the fourth CSC.

[0097] The coding is completed by responding to the status indication code of the current sub-device, sending a communication message containing the address information of the current sub-device, and supplying power to the next sub-device to meet the address coding of the next sub-device, so that multiple sub-devices can quickly and sequentially implement device address coding.

[0098] The embodiment of the present application also provides a method for sequentially encoding device addresses, such as Figures 4 to 6 As shown, Figure 4 This is a connection diagram of another device that needs to be encoded according to an embodiment of the present application. Figure 5: is a flow chart of a method for sequentially encoding device addresses applied to a master device according to an embodiment of the present application. Figure 6 A schematic diagram of the process of encoding processing applied to a main device according to an embodiment of the present application.

[0099] The device includes a main device and N sub-devices, the N sub-devices are connected to the main device through a common pole of a power line, and the N sub-devices are connected to the main device in parallel through a signal line, and the n-th sub-device among the N sub-devices includes a power switch for controlling the on and off of power provided to the n+1-th sub-device, wherein N is a positive integer greater than 1, and 1≤n≤N.

[0100] Methods are applied to the master device, such as Figure 5 As shown, the sequential encoding device address method 400 applied to the master device includes: Step S410, providing power to the first sub-device among the N sub-devices; and Step S420: receiving communication messages sent by N sub-devices; Step S430: Determine the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices.

[0101] like Figure 4 As shown, the encoding device 100 includes a main device 150 and N sub-devices. The main device 150 can be a BMU or a cluster-level battery management unit (SBMU), and the sub-device can be an SBMU or a CSC. The N sub-devices are connected to the main device 150 in sequence through power lines, that is, the first battery cell monitoring circuit 110 is directly connected to the main device 150, and the main device 150 provides power for the first battery cell monitoring circuit 110. The other battery cell monitoring circuits 110 are connected to the upper battery cell monitoring circuit 110 in common through the power line 130 in sequence. Each battery cell monitoring circuit 110 has a power switch that can control the on and off of the power provided to the next battery cell monitoring circuit 110.

[0102] The N sub-devices in the device are connected to the main device in parallel through signal lines. Each battery cell monitoring circuit 110 is also connected through a signal line. It can be understood that the device has a CAN bus 120, which is connected to each battery cell monitoring circuit 110 respectively, and each battery cell monitoring circuit 110 has an MCU inside for receiving and sending communication messages.

[0103] The total number of CSCs is N, where N is a positive integer greater than 1, such as 5, 10, 20, etc. Figure 5 As shown, the sequential encoding device address method 400 applied to the master device specifically includes: Step S410, control the main device to provide power to the first CSC, and the first CSC will perform encoding. After the first CSC completes encoding, it can send the communication message of the first CSC to the main device through the CAN bus. At the same time, the MCU in the first CSC sends an enable signal, and the enable signal is used to indicate that the power switch of the first CSC is closed to provide power to the second CSC.

[0104] After the second CSC is powered on, it will start encoding. After the second CSC completes encoding, it can send the communication message of the second CSC to the master device through the CAN bus. At the same time, the MCU in the second CSC sends an enable signal, which is used to instruct the power switch of the second CSC to close to provide power to the third CSC. This process is repeated until the encoding of the Nth CSC device is completed.

[0105] Then, step S420 is executed, where the master device receives communication messages sent by N CSCs. The communication messages may include the number of a single CSC and may also include address information of a single CSC.

[0106] Finally, step S430 is executed, where the master device determines the encoding results of the N CSCs based on the communication messages received from the N CSCs.

[0107] For example, the total number of CSCs is 10. If the main device receives communication messages sent by 10 CSCs, it determines that all CSC encodings are completed; if the main device receives communication messages sent by 5 CSCs, it determines that the CSC encoding has failed. Based on the principle of sequential coding, it can be determined that the 6th CSC may have a fault and maintenance can be performed in time.

[0108] like Figure 6 As shown, the process applied to the main device for encoding processing may include the following steps: Step S510: Start.

[0109] Step S520: Turn on the power.

[0110] Step S530: Determine whether it is the first indication code.

[0111] According to the status indication code obtained by the MCU in the first CSC, the first indication code indicates that the encoding is not completed, and the second indication code indicates that the encoding is completed. If the first indication code is obtained, step S540 is executed, otherwise step S560 is executed.

[0112] Step S540: Obtain communication message.

[0113] The MCU inside the first CSC obtains the communication message sent by other sub-devices. The communication message is sent by the CSC that has completed the encoding. The communication message can include multiple methods such as quantity and value.

[0114] Step S550: Determine the encoding address.

[0115] The coding address is determined according to the communication message that the MCU inside the first CSC has obtained.

[0116] Step S560 includes step S561 and step S562. Step S561 and step S562 are parallel steps. There is no order between them. They can be executed simultaneously or one after the other.

[0117] Step S561: Send a communication message.

[0118] The first CSC sends the determined coded address to the master device and other CSCs via the CAN bus.

[0119] Step S562: Close the power switch.

[0120] The first CSC closes its internal power switch, allowing current to flow through the first CSC into the second CSC, thereby powering the second CSC.

[0121] Step S570: Turn on the power.

[0122] The second CSC is powered on.

[0123] Step S580: Determine whether it is the first indication code.

[0124] According to the status indication code obtained by the MCU in the second CSC, if the obtained status indication code is the first indication code, step S590 is executed, otherwise step S610 is executed.

[0125] Step S590: Obtain communication message.

[0126] The MCU inside the second CSC obtains the communication message sent by other sub-devices. The communication message is sent by the CSC that has completed the encoding. The communication message can include multiple methods such as quantity and value.

[0127] Step S600: Determine the encoding address.

[0128] The coding address is determined according to the communication message that the MCU inside the second CSC has obtained.

[0129] Step S610 includes step S6111 and step S612, which are the same as step S561 and step S562.

[0130] Step S611: Send a communication message.

[0131] The second CSC sends the determined coded address to the master device and other CSCs via the CAN bus.

[0132] Step S612: Close the power switch.

[0133] Repeat step S610 in step S570 until the last CSC is executed.

[0134] Step S620: Turn on the power.

[0135] Step S630: Determine whether it is the first indication code.

[0136] According to the status indication code obtained by the MCU in the Nth CSC, if the obtained status indication code is the first indication code, step S640 is executed, otherwise step S660 is executed.

[0137] Step S640: Obtain communication message.

[0138] Step S650: Determine the encoding address.

[0139] Step S660 includes step S661 and step S662.

[0140] Step S661: Send a communication message.

[0141] The Nth CSC sends the determined coded address to the master device and other CSCs via the CAN bus.

[0142] Step S662: Close the power switch.

[0143] Step S670: Obtain communication message.

[0144] The master device receives communication messages sent by N CSCs. The communication messages may include the number of a single CSC and may also include address information of a single CSC.

[0145] Step S680: Determine the encoding result.

[0146] The master device determines the encoding results of the N CSCs based on the communication messages received from the N CSCs.

[0147] By connecting N sub-devices to the main device in sequence and using the previous sub-device to control the power on and off of the next sub-device, the number of parts used can be reduced, the number of connected wires can be reduced, the cost can be reduced, and the assembly is also convenient. After the main device provides power to the first sub-device, the first sub-device completes the encoding, sends the communication message of the current sub-device and controls the power on and off of the next sub-device, and then encodes the next sub-device in sequence. Based on the connection structure of the N sub-devices and the power line, when any sub-device fails, it can be quickly located, reducing the amount of hardware required for sequential encoding while improving the flexibility of the encoding device address.

[0148] According to some embodiments of the present application, in step S430, determining the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices includes: Step S431: In response to the number of communication messages received within a preset time period after the first sub-device is connected to the power supply being N, it is determined that the N sub-devices have completed encoding.

[0149] Specifically, in step S420, after the master device receives the communication messages sent by the N sub-devices, step S430 is executed, and step S430 includes step S431, the master device determines whether the encoding is completed based on the number of communication messages received within a preset time, and the length of the preset time is determined according to actual needs, for example, the preset time is 1 second, 2 seconds, etc. The start of the preset time is calculated after the master device supplies power to the first CSC, and the number of communication messages sent by the N CSCs to the master device within the preset time is counted.

[0150] Exemplarily, the total number of CSCs is 10. Within the preset time of 1 second, if the main device receives communication messages sent by 10 CSCs, it is determined that all CSC encodings are completed; if the main device receives communication messages sent by 5 CSCs, it is determined that the CSC encoding has failed. Based on the principle of sequential coding, it can be determined that the 6th CSC may have a fault and maintenance can be carried out in time.

[0151] By setting the number of communication messages received within a preset time period as N, it is possible to quickly determine whether multiple sub-devices have completed encoding based on the number.

[0152] According to some embodiments of the present application, step S430, determining the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices, includes: Step S432: In response to the maximum value of address information in the communication messages received within the preset time period after the first sub-device is connected to the power supply being N, it is determined that the N sub-devices have completed encoding.

[0153] Specifically, in step S420, after the master device receives the communication messages sent by N sub-devices, step S430 is executed. Step S430 includes step S432. The master device receives the communication messages within the preset time. Here, the communication messages contain the address information sent by each CSC. The address information can be encoded in sequence. For example, the address information in the communication message sent by the first CSC is 1, the address information in the communication message sent by the second CSC is 2, and the address information in the communication message sent by the third CSC is 3, etc. Whether the maximum value of the address information in the communication message received by the master device within the preset time is equal to the number of CSCs, it is judged whether the encoding is completed, and the length of the preset time is determined according to actual needs, for example, the preset time is 1 second, 2 seconds, etc. The start of the preset time is calculated after the master device supplies power to the first CSC, and the maximum value of the address information in the communication message sent by N CSCs to the master device within the preset time is determined.

[0154] Exemplarily, the total number of CSCs is 10. Within the preset time of 1 second, if the maximum value of the address information received by the main device in the communication message sent by the CSC is 10, it is determined that all CSC encodings are completed; if the maximum value of the address information received by the main device in the communication message sent by the CSC is 5, it is determined that the CSC encoding has failed. Based on the principle of sequential coding, it can be determined that the 6th CSC may have a fault and maintenance can be carried out in time.

[0155] The maximum value of the address information in the communication message received within the preset time period is N, and according to the maximum value N, it can be quickly determined whether the encoding of multiple sub-devices is completed.

[0156] According to some embodiments of the present application, a device for sequentially encoding device addresses is provided, such as Figure 7 As shown, Figure 7 This is a structural block diagram of a sequentially encoded device address applied to a sub-device in an embodiment of the present application, wherein the device includes N sub-devices connected in sequence via a power line, the nth sub-device among the N sub-devices includes a power switch for controlling the on and off of power provided to the (n+1)th sub-device, and the N sub-devices are also connected via a signal line, wherein N is a positive integer greater than 1, 1≤n≤N; an apparatus 700 for sequentially encoding device addresses applied to sub-devices is used for the nth sub-device.

[0157] The device 700 for sequentially encoding device addresses of sub-devices includes a first acquisition unit 710, a second acquisition unit 720, a first processing unit 730, a second processing unit 740 and a signal issuing unit 750; the first acquisition unit 710 is configured to acquire a status indication code of the n-th sub-device in response to the n-th sub-device being connected to a power source; the status indication code includes a first indication code indicating that the sub-device has not completed encoding, and a second indication code indicating that the sub-device has completed encoding; the second acquisition unit 720 is configured to acquire a communication message received by the n-th sub-device in response to the status indication code being the first indication code; the communication message is a communication message sent by the sub-device that has completed encoding; the first processing unit 730 is configured to determine the address information of the n-th sub-device based on the communication message received by the n-th sub-device; the second processing unit 740 is configured to set the status indication code of the n-th sub-device to the second indication code; and the signal issuing unit 750 is configured to send a communication message and a control signal indicating that the power switch of the n-th sub-device is closed.

[0158] The device 700 for sequentially encoding device addresses applied to sub-devices can be applicable to a device for executing the aforementioned method 200 for sequentially encoding device addresses applied to sub-devices, by connecting multiple sub-devices in sequence with a common pole using a power line, and using the previous sub-device to control the on and off of the power of the next sub-device. After sequential encoding, the communication message of its own CSC is sent to other CSCs.

[0159] The apparatus 700 for sequentially encoding device addresses applied to a sub-device can achieve the same beneficial effects as the method 200 for sequentially encoding device addresses applied to a sub-device in any of the aforementioned embodiments, and will not be described in detail here.

[0160] According to some embodiments of the present application, a device for sequentially encoding device addresses is also provided, such as Figure 8 As shown, Figure 8 This is a structural block diagram of a sequentially encoded device address applied to a main device in an embodiment of the present application, wherein the device includes a main device and N sub-devices, the N sub-devices are connected to the main device in sequence via power lines, and the N sub-devices are connected to the main device in parallel via signal lines, and the nth sub-device among the N sub-devices includes a power switch for controlling the on and off of power provided to the n+1th sub-device, wherein N is a positive integer greater than 1, 1≤n≤N; the device 800 for sequentially encoding device addresses applied to a main device is used for a main device.

[0161] The apparatus 800 for sequentially encoding device addresses applied to a main device includes a providing unit 810, a receiving unit 820 and a determining unit 830; the providing unit 810 is configured to provide power to the first sub-device among N sub-devices; the receiving unit 820 is configured to receive communication messages sent by the N sub-devices; and the determining unit 830 is configured to determine the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices.

[0162] The device 800 for sequentially encoding device addresses applied to a main device can be applicable to a device for executing the aforementioned method 400 for sequentially encoding device addresses applied to a main device, by connecting a plurality of sub-devices to the main device in sequence through power lines, and using the previous sub-device to control the on and off of the power supply of the next sub-device, and after sequential encoding, sending the communication message of its own CSC to the main device.

[0163] The apparatus 800 for sequentially encoding device addresses applied to a master device can achieve the same beneficial effects as the method 400 for sequentially encoding device addresses applied to a master device in any of the aforementioned embodiments, and will not be described in detail here.

[0164] According to some embodiments of the present application, a battery management system is provided, which includes N sub-devices, which are connected in common via power lines in sequence, and the N sub-devices are also connected via signal lines; the nth sub-device among the N sub-devices includes: a power switch for controlling the on and off of power provided to the (n+1)th sub-device, and a sub-controller connected to the power switch signal, and the controller is configured to execute the above-mentioned sequential encoding device address method applied to the sub-devices; wherein N is a positive integer greater than 1, 1≤n≤N.

[0165] The battery management system includes N sub-devices, each of which includes a power switch and a sub-controller. The N sub-devices are connected in common via power lines in sequence, and each sub-device has a power switch capable of controlling the on and off of the power supplied to the next sub-device. It can be understood that the power line has a first power line and a second power line, the N sub-devices are connected to the first power line in a common-pole connection manner, the second power line is connected to each sub-device respectively, and each sub-device has a power switch inside, for example, a MOS tube. Each sub-device also includes a sub-controller, which controls the on and off of the power switch in the sub-device, so that the sub-device can pass current to the next-level sub-device after the power switch is closed. The sub-controller can also be connected to the sub-controller signals of other sub-devices respectively through the CAN bus, and the sub-controller is configured to execute the above-mentioned sequential encoding device address method applied to the sub-device.

[0166] The battery management system includes multiple sub-devices, and in the absence of a main device, rapid coding in the battery cell can still be achieved. When a single battery cell fails, it can be quickly located through the sub-device and maintenance can be carried out in time.

[0167] According to some embodiments of the present application, the battery management system also includes a main device, N sub-devices are connected to the main device in sequence through power lines, and the N sub-devices are connected to the main device in parallel through signal lines; the main device includes a main controller, and the main controller is configured to execute the above-mentioned sequential encoding device address method applied to the main device.

[0168] The battery management system also includes a main device and N sub-devices. The main device can be a BMU or a cluster-level battery management unit (SBMU), and the sub-device can be a SBMU or a CSC. The N sub-devices are connected to the main device in sequence through power lines, that is, the first CSC is connected to the main device (such as SBMU), the main device provides power to the first CSC, and the positive poles of other CSCs are connected to the positive poles of the upper-level CSC through power lines and power switches. Each CSC controls the power supply to the next CSC through the power switch. Each sub-device can be connected to other sub-devices or the main device through the CAN bus, so that the main controller can execute the above-mentioned sequential encoding device address method 400 applied to the main device.

[0169] The battery management system includes a main device and multiple sub-devices. The main device provides power, and the communication messages of the sub-devices are obtained through communication interaction between the main device and the sub-devices. This can achieve rapid coding of multiple sub-devices. When a single battery cell fails, it can be quickly located through the sub-device and maintenance can be carried out in time.

[0170] According to some embodiments of the present application, an embodiment of the present application provides a battery device, which includes a battery and the above-mentioned battery management system, and the battery management system is used to manage the battery.

[0171] According to some embodiments of the present application, an energy storage device is provided, and the energy storage device includes the above-mentioned battery management system or the above-mentioned battery device. The energy storage device can be used to store electrical energy.

[0172] According to some embodiments of the present application, an electric device is provided, and the electric device includes the above-mentioned battery device.

[0173] The electrical device may be, but is not limited to, a passenger electric vehicle, a ship, a spacecraft, etc. The spacecraft may include an airplane, a rocket, a space shuttle, a spacecraft, etc.

[0174] According to some embodiments of the present application, the embodiments of the present application also provide a computing device, which includes at least one processor; and at least one memory communicatively connected to the at least one processor, the at least one memory storing instructions, which, when executed individually or collectively by the at least one processor, enable the computing device to execute the above-mentioned method of sequentially encoding device addresses.

[0175] In one embodiment, the processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods and steps disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0176] In one embodiment, the memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0177] According to some embodiments of the present application, an embodiment of the present application provides a computer-readable storage medium storing instructions, which, when executed individually or collectively by one or more processors of a computing device, enable the computing device to execute the above-mentioned method of sequentially encoding device addresses.

[0178] According to some embodiments of the present application, an embodiment of the present application provides a computer program product, including instructions, which, when executed individually or collectively by one or more processors of a computing device, enable the computing device to execute the above-mentioned method of sequentially encoding device addresses.

[0179] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0180] In some embodiments, the device includes N sub-devices connected in sequence via a power line, the nth sub-device among the N sub-devices includes a power switch for controlling the on and off of power provided to the n+1th sub-device, and the N sub-devices are also connected via a signal line, wherein N is a positive integer greater than 1, and 1≤n≤N.

[0181] When there is no master device, the N sub-devices are directly connected to the power supply through power lines, and the encoding device 100 is directly powered by the power supply.

[0182] Step S520: The power is turned on and the first sub-device is powered on.

[0183] Step S530: Determine whether it is the first indicator code. If the current state indicator code is the first indicator code, execute step S540; if the current state indicator code is the second indicator code, execute step S560.

[0184] Step S540: Acquire communication messages. The first sub-device acquires communication messages sent by other sub-devices. The communication messages are sent by sub-devices that have completed encoding. The communication messages may include quantity, value, and other forms.

[0185] Step S550: Determine the coding address. According to the communication message quantity 0 obtained by the MCU in the first sub-device, the coding address is determined to be 1.

[0186] Step S560 includes step S561: sending a communication message and step S562: closing the power switch. The first sub-device sends the determined coded address to other sub-devices via the CAN bus. At the same time, the first sub-device closes the internal power switch, so that the current can flow into the second sub-device through the first sub-device to power the second sub-device.

[0187] Step S570: The power is turned on. The second sub-device is powered on.

[0188] Step S580: Determine whether the current state indication code of the sub-device is the first indication code. If the current state indication code is the first indication code, execute step S590, otherwise execute step S610.

[0189] Step S590: Acquire communication messages. The second sub-device acquires communication messages sent by other sub-devices. The communication messages are sent by sub-devices that have completed encoding. The communication messages may include quantity, value, and other forms.

[0190] Step S600: Determine the coding address. According to the number 1 of communication messages that the MCU in the second sub-device has obtained, the coding address is determined to be 2.

[0191] Step S610 includes: step S611: sending a communication message; and step S612: closing the power switch. The second sub-device sends the determined coded address to other sub-devices via the CAN bus. At the same time, the second sub-device closes the internal power switch, so that the current can flow through the second sub-device into the third sub-device, and power the second sub-device.

[0192] Repeat step S570 to step S610 until the last (Nth) child device.

[0193] Step S620: The power is turned on. The Nth sub-device is powered on.

[0194] Step S630: Determine whether the current state indication code of the sub-device is the first indication code. If the current state indication code is the first indication code, execute step S640, otherwise execute step S660.

[0195] Step S640: Acquire communication messages. The Nth sub-device acquires communication messages sent by other sub-devices.

[0196] Step S650: Determine the coding address. Determine the coding address as N according to the number N-1 of communication messages that the MCU in the Nth sub-device has acquired.

[0197] Step S660 includes: Step S661: sending a communication message; and Step S662: closing the power switch. The second sub-device sends the determined coded address to other sub-devices via the CAN bus. It is understandable that since there is no subsequent sub-device, step S662 can also be omitted.

[0198] In some embodiments, when there is a main device, the encoding device 100 is powered by the main device as a power source. Before step S520, step S510 is also included, in which the main device supplies power to the first sub-device.

[0199] In some embodiments, when there is a master device, after step S660, steps S670 and S680 are also included.

[0200] Step S670: Acquire communication messages. The master device receives communication messages sent by N sub-devices, and the communication messages may include address information of a single sub-device.

[0201] Step S680: Determine the encoding result. The master device determines the encoding results of the N sub-devices based on the communication messages received from the N sub-devices. If the number of the acquired communication messages is the same as the actual number of sub-devices, the encoding is successful, otherwise the encoding fails.

[0202] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A method for sequentially encoding device addresses, characterized in that: The device comprises N sub-devices connected in sequence with a common pole through a power line, the nth sub-device among the N sub-devices comprises a power switch for controlling the on and off of power provided to the (n+1)th sub-device, and the N sub-devices are also connected through a signal line, wherein N is a positive integer greater than 1, 1≤n≤N; The method is applied to the nth sub-device, comprising: In response to the nth sub-device being connected to a power source, acquiring a status indication code of the nth sub-device; the status indication code includes a first indication code indicating that the sub-device has not completed encoding, and a second indication code indicating that the sub-device has completed encoding; In response to the state indication code being the first indication code, acquiring a communication message received by the nth sub-device; the communication message is sent by the sub-device that has completed encoding; Determining address information of the nth sub-device based on the communication message received by the nth sub-device; Setting the status indication code of the nth sub-device to the second indication code; and The communication message and a control signal instructing the power switch of the nth sub-device to close are sent.

2. The method according to claim 1, characterized in that The determining the address information of the nth sub-device based on the communication message received by the nth sub-device includes: Based on the number of communication messages received by the nth sub-device, address information of the nth sub-device is determined.

3. The method according to claim 2, characterized in that The determining the address information of the nth sub-device based on the number of communication messages received by the nth sub-device includes: In response to the number of communication messages received by the n-th sub-device being m, the address information of the n-th sub-device is determined to be m+1; wherein 0≤m≤N-1.

4. The method according to claim 1, characterized in that: The communication message contains the address information of the sub-device from which the message is sent; and wherein, The determining the address information of the nth sub-device based on the communication message received by the nth sub-device includes: The address information of the nth sub-device is determined based on the address information of the message sending sub-device contained in the communication message received by the nth sub-device.

5. The method according to claim 4, characterized in that The determining the address information of the nth sub-device based on the address information of the message sending sub-device contained in the communication message received by the nth sub-device comprises: In response to the maximum value of the address information in the communication message received by the nth sub-device being m, the address information of the nth sub-device is determined to be m+1; wherein 0 <m≤N-1。 6. The method according to any one of claims 1 to 5, characterized in that The sending of the communication message and the control signal instructing the power switch of the nth sub-device to close comprises: In response to the state indication code of the nth sub-device being set to the second indication code, sending a communication message including the address information of the nth sub-device at a preset frequency; and An enable signal is issued, where the enable signal is used to instruct the power switch of the nth sub-device to close so as to provide power to the (n+1)th sub-device.

7. A method for sequentially encoding device addresses, characterized in that: The device comprises a main device and N sub-devices, wherein the N sub-devices are connected to the main device in common via power lines in sequence, and the N sub-devices are connected to the main device in parallel via signal lines, and the nth sub-device among the N sub-devices comprises a power switch for controlling the on and off of power provided to the n+1th sub-device, wherein N is a positive integer greater than 1, and 1≤n≤N; The method is applied to the master device, comprising: Providing power to a first sub-device among the N sub-devices; and Receiving communication messages sent by the N sub-devices; The encoding results of the N sub-devices are determined based on the communication messages sent by the N sub-devices.

8. The method according to claim 7, characterized in that The determining the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices includes: In response to the number of communication messages received within a preset time period after the first sub-device is connected to a power source being N, it is determined that the N sub-devices have completed encoding.

9. The method according to claim 7, characterized in that: The determining the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices includes: In response to a maximum value of N of address information in communication messages received within a preset time period after the first sub-device is connected to a power source, it is determined that the N sub-devices have completed encoding.

10. A device for sequentially encoding device addresses, characterized in that: The device comprises N sub-devices connected in sequence with a common pole through a power line, the nth sub-device among the N sub-devices comprises a power switch for controlling the on and off of power provided to the (n+1)th sub-device, and the N sub-devices are also connected through a signal line, wherein N is a positive integer greater than 1, 1≤n≤N; The device is located in the nth sub-device and includes: A first acquisition unit is configured to acquire a status indication code of the nth sub-device in response to the nth sub-device being connected to a power source; the status indication code includes a first indication code indicating that the sub-device has not completed encoding, and a second indication code indicating that the sub-device has completed encoding; A second acquisition unit is configured to acquire, in response to the state indication code being the first indication code, a communication message received by the nth sub-device; the communication message is a communication message sent by the sub-device that has completed encoding; A first processing unit is configured to determine address information of the nth sub-device based on the communication message received by the nth sub-device; a second processing unit, configured to set the status indication code of the nth sub-device to the second indication code; and The signal sending unit is configured to send the communication message and a control signal instructing the power switch of the nth sub-device to close.

11. A device for sequentially encoding device addresses, characterized in that: The apparatus comprises a main device and N sub-devices, wherein the N sub-devices are connected to the main device in common via power lines in sequence, and the N sub-devices are connected to the main device in parallel via signal lines, and the nth sub-device among the N sub-devices comprises a power switch for controlling the on and off of power provided to the n+1th sub-device, wherein N is a positive integer greater than 1, and 1≤n≤N; The device is located in the main device and includes: a providing unit, configured to provide power to a first sub-device among the N sub-devices; a receiving unit, configured to receive communication messages sent by the N sub-devices; and A determination unit is configured to determine the encoding results of the N sub-devices based on the communication messages sent by the N sub-devices.

12. A battery management system, characterized in that: include: N sub-devices are connected in sequence via power lines and are also connected via signal lines; The nth sub-device among the N sub-devices includes: A power switch for controlling the on and off of the power supplied to the n+1th sub-device, and a sub-controller, connected to the power switch signal, the controller being configured to execute the method according to any one of claims 1 to 6; Wherein, N is a positive integer greater than 1, and 1≤n≤N.

13. The battery management system according to claim 12, characterized in that: Also includes: A main device, wherein the N sub-devices are connected to the main device in common in sequence through power lines, and the N sub-devices are connected to the main device in parallel through signal lines; the main device comprises: A main controller is configured to execute the method according to any one of claims 7 to 9.

14. A battery device, characterized in that: include: Batteries, and The battery management system according to claim 12 or 13, wherein the battery management system is used to manage the battery.

15. An energy storage device, characterized in that: A battery device comprising the battery device of claim 14.

16. An electrical device, characterized in that: A battery device comprising the battery device of claim 14.

17. A computing device, characterized in that include: at least one processor; as well as At least one memory is communicatively connected to the at least one processor, the at least one memory stores instructions, and when the instructions are executed by the at least one processor individually or collectively, the computing device performs the method of any one of claims 1 to 9.

18. A computer-readable storage medium, characterized in that: Instructions are stored, which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to perform the method of any one of claims 1 to 9.

19. A computer program product, characterized in that The method comprises instructions which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to perform the method of any one of claims 1 to 9.

Citation Information

Patent Citations

  • Packet processing method and switchboard

    CN101272351A

  • Automatically ordinal numeration circuit connected with CAN fieldbus equipment and method

    CN101582825A

  • Processing method and device for VRRP message

    CN104601465A

  • Information processing method and apparatus, electronic device and management platform

    CN105553852A

  • Battery management system and control method thereof

    CN114844742A

Cited By

  • Energy storage system coding method and device

    CN121054832A