BMS addressing method and device, electronic equipment and storage medium
By obtaining the board voltage of the BMS and the device voltage of the slave control device, and determining the address information of the slave control device in combination with the number of devices, the complex addressing problem of slave control device in existing BMS is solved, and the BMS performance and stability optimization is achieved.
Patent Information
- Application Number
- CN202510050919.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-05-09
AI Technical Summary
The slave control device addressing method in the existing battery management system (BMS) is complex and it is difficult to achieve simple and convenient addressing operations, which affects the performance and stability of the BMS.
By obtaining the board voltage of the BMS and the device voltage of each slave control device, combining the number of devices, the address information of the slave control device is determined, and address information is sent to the slave control device to realize addressing.
This method simplifies the addressing process of slave control equipment, optimizes the performance and stability of the BMS, and ensures the normal operation of the BMS.
Smart Images

Figure CN119961182A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery management systems, and in particular to an addressing method, device, electronic device and storage medium for a BMS. Background Art
[0002] The slave addressing method of the Battery Management System (BMS) refers to the method or mechanism of assigning unique addresses to slave devices in the BMS. This mechanism ensures that each slave device can be uniquely identified and controlled by the master device, and is the basis for BMS communication and management. Summary of the invention
[0003] The purpose of this application is to solve one of the technical problems in the related art at least to some extent.
[0004] To this end, the first purpose of the present application is to propose a BMS addressing method to achieve simple and convenient addressing operations, optimize the performance and stability of the BMS, and ensure the normal operation of the BMS.
[0005] The second objective of the present application is to provide an addressing device for a BMS.
[0006] The third objective of the present application is to provide an electronic device.
[0007] A fourth objective of the present application is to provide a computer-readable storage medium.
[0008] To achieve the above-mentioned purpose, the first aspect of the present application proposes a BMS addressing method, including: obtaining the board-end voltage of the BMS and the device voltage of each slave-controlled device in the BMS; determining the number of slave-controlled devices in the BMS; based on the board-end voltage, the device voltage and the number of devices, determining the address information corresponding to the slave-controlled device, and sending the address information to the slave-controlled device.
[0009] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes an addressing device for a BMS, including: an acquisition module, used to obtain the board-end voltage of the BMS and the device voltage of each slave-controlled device in the BMS; a first determination module, used to determine the number of slave-controlled devices in the BMS; a second determination module, used to determine the address information corresponding to the slave-controlled device based on the board-end voltage, the device voltage and the number of devices, and send the address information to the slave-controlled device.
[0010] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes an electronic device, comprising: a processor; and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor can execute the BMS addressing method described in the first aspect embodiment above.
[0011] To achieve the above-mentioned purpose, a fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer instructions are used to enable the computer to execute the BMS addressing method described in the first aspect of the present application.
[0012] The addressing method, device, electronic device and storage medium of the BMS provided in the present application obtain the board voltage of the BMS and the device voltage of each slave-controlled device, and determine the number of slave-controlled devices. Further, according to the board voltage, device voltage and number of devices, the address information corresponding to the slave-controlled device can be determined, and the slave-controlled device can complete the BMS addressing by storing the address information. In the present application, the slave control is addressed according to the voltage information, and there is no need to use labels or material numbers to distinguish the slave-controlled devices, so as to realize simple and convenient addressing operation, optimize the performance and stability of the BMS, and ensure the normal operation of the BMS.
[0013] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0015] Figure 1 A flowchart of a BMS addressing method provided in an embodiment of the present application;
[0016] Figure 2 A flowchart of another BMS addressing method provided in an embodiment of the present application;
[0017] Figure 3 A flowchart of another BMS addressing method provided in an embodiment of the present application;
[0018] Figure 4 A schematic diagram of the structure of the BMS provided in the embodiment of the present application;
[0019] Figure 5 A schematic diagram of a process for addressing a slave control device of a BMS provided in an embodiment of the present application;
[0020] Figure 6A schematic diagram of the structure of an addressing device for a BMS provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0022] The following describes the BMS addressing method and device according to the embodiments of the present application with reference to the accompanying drawings.
[0023] Figure 1 is a flow chart of a BMS addressing method provided in an embodiment of the present application, such as Figure 1 As shown, the addressing method of the BMS of the embodiment of the present application includes but is not limited to the following steps:
[0024] S101, obtaining the board voltage of the BMS and the device voltage of each slave controlled device in the BMS.
[0025] It is understandable that a battery management system (BMS) is a device or system specifically used to monitor and manage the operating status of a battery pack.
[0026] It should be noted that the executor of the BMS addressing method provided in the embodiment of the present application is an electronic device equipped with a BMS, and the electronic device may be a terminal device. Optionally, the terminal device may be a mobile electronic device or a non-mobile electronic device, which is not specifically limited in the embodiment of the present application.
[0027] In some embodiments, the board voltage in the BMS generally refers to the voltage at the connection between the battery module or battery pack and the BMS mainboard. By powering on the BMS, the main control device of the BMS reads the voltage of the board interface and uses the read voltage as the board voltage of the BMS.
[0028] In some embodiments, the slave device may read its own voltage and transmit the voltage to the master device, so that the master device obtains the device voltage of each slave device.
[0029] Optionally, the board terminal voltage and the device voltage of the slave controlled device may be collected based on the voltage collection device.
[0030] S102, determining the number of slave controlled devices in the BMS.
[0031] In some embodiments, configuration information of the BMS may be obtained, and the number of slave controlled devices may be obtained from the configuration information.
[0032] In some embodiments, the number of device voltages of the received slave-controlled devices may also be determined, and the number may be used as the number of devices of the slave-controlled devices.
[0033] In some embodiments, the number of communication interfaces between the master device and the slave device may also be determined, and the number may be used as the number of devices of the slave device.
[0034] S103, determining address information corresponding to the slave control device based on the board terminal voltage, the device voltage and the number of devices, and sending the address information to the slave control device.
[0035] In some embodiments, the voltage threshold range of each slave control device can be determined based on the board terminal voltage and the number of devices, and it can be determined whether the device voltage of any slave control device is within its corresponding voltage threshold range.
[0036] In some embodiments, the BMS includes a wiring harness structure, which is composed of N resistors to achieve resistance voltage division, so that the voltage input to each slave control device is different. Wherein, N is a natural number greater than 1.
[0037] For example, assuming that the input board voltage is 12V, there are 4 resistors and 4 slave control devices, the voltage threshold received by slave control device 1 is 3V, the voltage threshold received by slave control device 2 is 6V, the voltage threshold received by slave control device 3 is 9V, and the voltage threshold received by slave control device 4 is 12V.
[0038] In some embodiments, the voltage threshold can be determined based on the board voltage and the number of devices. Based on the above example, if the slave device is the first slave device, the voltage threshold corresponding to slave device 1 is 12*1 / 4=3V; if the slave device is the Nth slave device, the voltage threshold corresponding to slave device N is 12*N / 4.
[0039] Since voltage detection may have errors, the final voltage threshold range can be determined based on the voltage threshold and the voltage floating range. The voltage threshold refers to the predicted voltage of the slave controlled device, that is, the predicted voltage of the slave controlled device.
[0040] In some embodiments, in response to whether the device voltage is within its corresponding voltage threshold range, address information corresponding to the voltage threshold range can be determined as address information corresponding to the slave control device, and the address information is sent to the slave control device.
[0041] In some embodiments, when receiving the address information, the slave control device may store the address information to implement addressing of the BMS.
[0042] In some embodiments, a mapping relationship between a voltage threshold range and address information may be established. When it is determined that the device voltage is within the voltage threshold range, the address information corresponding to the slave controlled device may be determined by querying the mapping relationship.
[0043] Continuing with the above example, assume that slave device 1 corresponds to range 1, range 1 corresponds to address 1, slave device 2 corresponds to range 2, range 2 corresponds to address 2, where range 1 is 3±10%V and range 2 is 6±10%V. If the device voltage of slave device 1 is 3.05V and is within range 1, the address information corresponding to slave device 1 is address 1.
[0044] In the BMS addressing method provided in the embodiment of the present application, the board voltage of the BMS and the device voltage of each slave device are obtained, and the number of slave devices is determined. Further, according to the board voltage, the device voltage and the number of devices, the address information corresponding to the slave device can be determined, and the slave device can complete the BMS addressing by storing the address information. In the present application, the slave addressing is performed according to the voltage information, and there is no need to use labels or material numbers to distinguish the slave devices, so as to realize simple and convenient addressing operation, optimize the performance and stability of the BMS, and ensure the normal operation of the BMS.
[0045] Figure 2 is a flow chart of a BMS addressing method provided in an embodiment of the present application, such as Figure 2 As shown, the addressing method of the BMS of the embodiment of the present application includes but is not limited to the following steps:
[0046] S201, obtaining the board terminal voltage of the BMS and the device voltage of each slave controlled device in the BMS.
[0047] In the embodiment of the present application, the implementation method of step S201 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0048] S202, determining the number of slave controlled devices in the BMS.
[0049] In the embodiment of the present application, the implementation method of step S202 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0050] S203: Determine a voltage threshold range corresponding to each slave controlled device based on the board terminal voltage and the number of devices.
[0051] In some embodiments, the board-end voltage may be evenly divided according to the number of slave-controlled devices, and then the predicted voltage of each slave-controlled device may be determined based on the board-end voltage and the number of devices.
[0052] For example, if the board-end voltage is U and the number of devices is N, that is, it includes N slave-controlled devices, then the predicted voltage of the first slave-controlled device is U / N, the predicted voltage of the second slave-controlled device is U*2 / N, the predicted voltage of the third slave-controlled device is U*3 / N, and the predicted voltage of the Nth slave-controlled device is U.
[0053] In some embodiments, since there may be errors in voltage detection, a voltage floating threshold may be determined, and a voltage threshold range may be determined based on the predicted voltage and the floating threshold.
[0054] Taking the above example, assuming that the voltage floating threshold is 10%, indicating that the voltage can fluctuate 10% above or below the predicted voltage, the voltage threshold range corresponding to the first slave control device is U / N±10%, the voltage threshold range corresponding to the second slave control device is U*2 / N±10%, and the voltage threshold range corresponding to the Nth slave control device is U±10%.
[0055] S204 , screening slave controlled devices based on the voltage threshold range and the device voltage, and obtaining a first slave controlled device whose device voltage is within the voltage threshold range.
[0056] In some embodiments, the device voltage being within the voltage threshold range can be used as a screening condition. The screening of slave controlled devices is achieved by determining the voltage threshold range corresponding to each slave controlled device and judging whether its device voltage is within the corresponding voltage threshold range.
[0057] In response to the device voltage being within the voltage threshold range and satisfying the screening condition, the slave device satisfying the screening condition may be used as the first slave device, that is, the slave device whose device voltage is within the voltage threshold range may be used as the first slave device.
[0058] In some embodiments, if the screening condition is not met, that is, in response to the device voltage not being within the voltage threshold range, it is determined that the address information allocation fails, and the second slave device whose device voltage is not within the voltage threshold range is determined.
[0059] In some embodiments, when determining the address information of the second slave device fails, the number of failures in allocating the address information of the second slave device can be obtained, and based on the number of failures and a set number threshold, it is determined whether to read the stored address information from the memory of the second slave device.
[0060] In some embodiments, in response to the number of failures being less than a number threshold, address information stored in the second slave control device is acquired, and the stored address information is sent to the second slave control device.
[0061] In some embodiments, in response to the number of failures being greater than or equal to a number threshold, it is determined that an abnormality occurs in the BMS, and the abnormality is reported.
[0062] S205: Acquire a pre-established mapping relationship between a candidate voltage threshold range and candidate address information.
[0063] S206: Determine address information corresponding to the first slave control device based on the mapping relationship and a voltage threshold range of the device voltage of the first slave control device.
[0064] In some implementations, a mapping relationship between a candidate voltage threshold range and candidate address information can be established in advance. When it is determined that the device voltage is within the voltage threshold range, the mapping relationship can be queried based on the voltage threshold range, and the candidate address information corresponding to the voltage threshold range can be used as the address information corresponding to the first slave control device.
[0065] S207: Send address information to the slave control device.
[0066] In the embodiment of the present application, the implementation method of step S207 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0067] In some embodiments, after sending the address information to the slave device, the slave device stores the address information to complete the addressing. The slave device can store the address information in its own memory so that when the master device address allocation fails, the address information can be read from the memory.
[0068] In the BMS addressing method provided in the embodiment of the present application, the voltage threshold range is determined according to the board voltage and the number of devices, and it is determined whether the device voltage is within the voltage threshold range, so as to determine the address information corresponding to the first slave control device within the voltage threshold range. In the present application, slave control addressing is performed according to voltage information, and there is no need to use labels or material numbers to distinguish the slave control devices, so as to achieve simple and convenient addressing operation, optimize the performance and stability of the BMS, and ensure the normal operation of the BMS.
[0069] Figure 3 is a flow chart of a BMS addressing method provided in an embodiment of the present application, such as Figure 3 As shown, the addressing method of the BMS of the embodiment of the present application includes but is not limited to the following steps:
[0070] S301, after the BMS is powered on, the board-side interface outputs voltage, and the voltage is input to each slave control device through the wiring harness structure of the BMS to divide the voltage.
[0071] S302, reading the voltage of the board-end interface as the board-end voltage.
[0072] S303, each slave control device reads its own voltage value as the device voltage, and sends the device voltage to the master control device.
[0073] For example, Figure 4 Shown is a schematic diagram of the structure of a BMS.
[0074] Figure 4 The slave control devices in the system include slave control 1, slave control 2, slave control 3 and slave control N. Figure 4 The wiring harness structure in includes N resistors, namely R1 to RN. By powering on the BMS, the board-side interface can output voltage, which is input to each slave control device through the wiring harness structure of the BMS to divide the voltage.
[0075] The master device reads the voltage of the board-end interface and uses it as the board-end voltage, while the slave devices read the voltage of the address input port of the slave device as the device voltage. Taking slave 1 as an example, slave 1 can read the voltage between Vin1 and V as the device voltage u1 of slave 1; taking slave 2 as an example, slave 2 can read the voltage between Vin2 and V as the device voltage u2 of slave 2; taking slave 3 as an example, slave 3 can read the voltage between Vin3 and V as the device voltage u3 of slave 3; taking slave N as an example, slave N can read the voltage between VinN and V as the device voltage un of slave N.
[0076] Furthermore, the slave device may send the device voltage to the master device.
[0077] S304, determining the number of slave controlled devices in the BMS.
[0078] In the embodiment of the present application, the implementation method of step S304 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0079] S305 , determining address information corresponding to the slave control device based on the board terminal voltage, the device voltage and the number of devices, and sending the address information to the slave control device.
[0080] In the embodiment of the present application, the implementation method of step S305 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0081] In the BMS addressing method provided in the embodiment of the present application, the master device can read the board voltage of the BMS and receive the device voltage of each slave device, so as to determine the address information corresponding to the slave device according to the board voltage, the device voltage and the number of devices, and the slave device can complete the BMS addressing by storing the address information. In the present application, the slave device is addressed according to the voltage information, and there is no need to distinguish the slave devices by using labels or material numbers, so as to realize a simple and convenient addressing operation, optimize the performance and stability of the BMS, and ensure the normal operation of the BMS.
[0082] Figure 5 The figure shows a flow chart of addressing the slave control devices of the BMS.
[0083] By powering on the BMS, each slave device can read the voltage of its own addressing input port as the device voltage and send the device voltage to the master device. The master device can read the board voltage of the BMS and determine the number of slave devices.
[0084] Further, the predicted voltage of the slave control device is determined according to the board terminal voltage and the number of devices, and the voltage threshold range corresponding to the slave control device is determined according to the predicted voltage. It is judged whether the device voltage is within the corresponding voltage threshold range. If so, the first slave control device whose device voltage is within the voltage threshold range is determined, and the address information corresponding to the first slave control device is determined. By sending the address information to the first slave control device, the first slave control device can store the address information.
[0085] Re-power on the BMS and determine whether the device voltage of each slave control device is within the voltage threshold range. If not, determine the second slave control device whose device voltage is not within the voltage threshold range, determine that the address information allocation of the second slave control device has failed, and record the number of failures in the address information allocation of the second slave control device.
[0086] If the number of failures is less than the number threshold, the second slave device determines the address information stored therein and uses the stored address information to implement addressing. If the number of failures is greater than or equal to the number threshold, it is determined that the BMS is abnormal and the abnormality is reported.
[0087] During the BMS power-on process, if the device voltage of the second slave control device is within the voltage threshold range, the number of failures of the second slave control device is reset to zero, and the device voltage of each slave control device is re-determined whether it is within the voltage threshold range during the next power-on.
[0088] Corresponding to the BMS addressing methods proposed in the above-mentioned embodiments, an embodiment of the present application further proposes a BMS addressing device. Since the BMS addressing device proposed in the embodiment of the present application corresponds to the BMS addressing methods proposed in the above-mentioned embodiments, the implementation method of the above-mentioned BMS addressing method is also applicable to the BMS addressing device proposed in the embodiment of the present application, and will not be described in detail in the following embodiments.
[0089] In order to implement the above embodiment, the present application also proposes an addressing device for a BMS.
[0090] Figure 6 A schematic diagram of the structure of an addressing device for a BMS provided in an embodiment of the present application.
[0091] like Figure 6 As shown, the addressing device 600 of the BMS includes:
[0092] The acquisition module 601 is used to acquire the board voltage of the BMS and the device voltage of each slave controlled device in the BMS;
[0093] A first determination module 602 is used to determine the number of slave controlled devices in the BMS;
[0094] The second determination module 603 is used to determine the address information corresponding to the slave control device based on the board terminal voltage, the device voltage and the number of devices, and send the address information to the slave control device.
[0095] In a possible implementation of the embodiment of the present application, the second determining module 603 is further configured to: the slave control device stores the address information to complete addressing.
[0096] In a possible implementation of an embodiment of the present application, the second determination module 603 is further used to: determine a voltage threshold range corresponding to each slave control device based on the board-end voltage and the number of devices; screen the slave control devices based on the voltage threshold range and the device voltage to obtain a first slave control device whose device voltage is within the voltage threshold range; obtain a mapping relationship between a pre-established candidate voltage threshold range and candidate address information; and determine the address information corresponding to the first slave control device based on the mapping relationship and the voltage threshold range in which the device voltage of the first slave control device is located.
[0097] In a possible implementation of an embodiment of the present application, the second determination module 603 is further used to: determine the predicted voltage of each slave controlled device based on the board terminal voltage and the number of devices; determine the voltage floating threshold, and determine the voltage threshold range based on the predicted voltage and the floating threshold.
[0098] In a possible implementation of an embodiment of the present application, the second determination module 603 is also used to: in response to the device voltage not being within the voltage threshold range, determine that the address information allocation has failed, and determine the second slave control device whose device voltage is not within the voltage threshold range; obtain the number of failures in the address information allocation of the second slave control device; in response to the number of failures being less than the number threshold, obtain the address information stored in the second slave control device, and send the stored address information to the second slave control device.
[0099] In a possible implementation of the embodiment of the present application, the second determination module 603 is further configured to: in response to the number of failures being greater than or equal to a number threshold, determine that an abnormality occurs in the BMS, and report the abnormality.
[0100] In a possible implementation of an embodiment of the present application, the acquisition module 601 is also used for: after the BMS is powered on, the board-end interface outputs a voltage, and the voltage is input to each slave control device through the wiring harness structure of the BMS to divide the voltage; the voltage of the board-end interface is read as the board-end voltage; each slave control device reads its own voltage value as the device voltage, and sends the device voltage to the master control device.
[0101] In the BMS addressing device provided in the embodiment of the present application, the board voltage of the BMS and the device voltage of each slave device are obtained, and the number of slave devices is determined. Further, according to the board voltage, the device voltage and the number of devices, the address information corresponding to the slave device can be determined, and the slave device can complete the BMS addressing by storing the address information. In the present application, the slave addressing is performed according to the voltage information, and there is no need to use labels or material numbers to distinguish the slave devices, so as to realize simple and convenient addressing operation, optimize the performance and stability of the BMS, and ensure the normal operation of the BMS.
[0102] It should be noted that the above explanation of the BMS addressing method embodiment is also applicable to the BMS addressing device of this embodiment, and will not be repeated here.
[0103] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.
[0104] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0105] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0106] The collection, storage, use, processing, transmission, provision and application of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0107] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.
[0108] This application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, this application is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, risks can be minimized by limiting data collection and deleting data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of users.
[0109] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0110] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0111] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0112] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0113] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0114] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0115] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0116] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for addressing a battery management system BMS, characterized in that: The method is executed by a main control device of the BMS, and includes: Obtaining the board voltage of the BMS and the device voltage of each slave controlled device in the BMS; Determine the number of slave controlled devices in the BMS; Based on the board terminal voltage, the device voltage and the number of devices, address information corresponding to the slave control device is determined, and the address information is sent to the slave control device.
2. The method according to claim 1, characterized in that After sending the address information to the slave control device, the method further includes: The slave control device stores the address information to complete addressing.
3. The method according to claim 1, characterized in that The determining, based on the board terminal voltage, the device voltage and the number of devices, the address information corresponding to the slave control device includes: Determine a voltage threshold range corresponding to each slave controlled device based on the board terminal voltage and the number of devices; Based on the voltage threshold range and the device voltage, the slave controlled devices are screened to obtain a first slave controlled device whose device voltage is within the voltage threshold range; Acquire a pre-established mapping relationship between a candidate voltage threshold range and candidate address information; The address information corresponding to the first slave device is determined based on the mapping relationship and a voltage threshold range of the device voltage of the first slave device.
4. The method according to claim 3, characterized in that The determining, based on the board terminal voltage and the number of devices, a voltage threshold range corresponding to each slave controlled device includes: Determining a predicted voltage of each slave controlled device based on the board terminal voltage and the number of devices; A voltage floating threshold is determined, and based on the predicted voltage and the floating threshold, the voltage threshold range is determined.
5. The method according to claim 3, characterized in that: The method further comprises: In response to the device voltage not being within the voltage threshold range, determining that the address information allocation fails, and determining a second slave control device that the device voltage is not within the voltage threshold range; Obtaining the number of failed allocations of the address information of the second slave control device; In response to the number of failures being less than a number threshold, acquiring address information stored in the second slave control device, and sending the stored address information to the second slave control device.
6. The method according to claim 5, characterized in that The method further comprises: In response to the number of failures being greater than or equal to the number threshold, it is determined that an abnormality occurs in the BMS, and the abnormality is reported.
7. The method according to claim 1, characterized in that The obtaining of the board terminal voltage of the BMS and the device voltage of each slave controlled device in the BMS includes: After the BMS is powered on, the board-end interface outputs a voltage, and the voltage is input to each slave control device through the wiring harness structure of the BMS to divide the voltage; Reading the voltage of the board-end interface as the board-end voltage; Each slave control device reads a respective voltage value as the device voltage, and sends the device voltage to the master control device.
8. An addressing device for a battery management system BMS, characterized in that: A master control device applicable to BMS, the device comprises: An acquisition module, used to acquire the board voltage of the BMS and the device voltage of each slave controlled device in the BMS; A first determination module, used to determine the number of slave controlled devices in the BMS; The second determination module is used to determine the address information corresponding to the slave control device based on the board terminal voltage, the device voltage and the number of devices, and send the address information to the slave control device.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.