Slave plate numbering method and device of battery management system and electronic equipment
By exchanging numbering information between slave boards and dynamically allocating numbers, the problems of low efficiency and accuracy in slave board numbering in the battery management system are solved, automatic management and efficient initialization of slave boards are achieved, and the scalability and numbering accuracy of the system are enhanced.
Patent Information
- Application Number
- CN202510943151.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-09
- Publication Date
- 2025-09-12
AI Technical Summary
The numbering efficiency and accuracy of slave boards in the battery management system are low, and the correspondence between the slave boards and the installation positions of the battery modules needs to be manually recorded, resulting in inefficient management.
By exchanging numbering information between slave boards, numbers are dynamically allocated, and the sum of the difference between the maximum number and the set number is used to determine its own number to avoid number conflicts. When no information is received, the preset starting number is used to achieve automatic numbering of the slave board.
It improves the flexibility and reliability of slave board numbering, simplifies the system initialization process, enhances the system scalability and numbering efficiency, and ensures the continuity and accuracy of numbering.
Smart Images

Figure CN120639809A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a method, device, and electronic device for numbering slave boards of a battery management system. Background Art
[0002] In the related art, the slave board numbers in the battery management system usually need to be pre-written with fixed values, and each slave board needs to be identified. When installing the slave board, the correspondence between the slave board and the battery module installation location needs to be recorded to accurately confirm the slave board number or MAC address (Media Access Control Address). Otherwise, it is impossible to determine the battery module location corresponding to the slave board. This leads to low efficiency and low accuracy in the battery management system. Summary of the Invention
[0003] The present application aims to solve one of the technical problems in the related art at least to a certain extent.
[0004] The first embodiment of the present application provides a slave board numbering method for a battery management system, including:
[0005] Powering on the i-th slave board, the i-th slave board determines whether it has received first numbering information; wherein the first numbering information is sent by a slave board other than the i-th slave board to the intranet, and the first numbering information is at least one; i∈[1,N], where N is the total number of slave boards;
[0006] Upon receiving the first numbering information, setting the number of the i-th slave board to the sum of the difference between the maximum number in the first numbering information and the set number, and sending the sum of the difference between the maximum number in the first numbering information and the set number to the intranet;
[0007] In the case that the first numbering information is not received, the number of the i-th slave board is set to a preset starting number, and the preset starting number is sent to the intranet.
[0008] In one possible implementation, upon receiving the first numbering information, setting the number of the i-th slave board to the sum of the difference between the maximum number in the first numbering information and the set number, and sending the sum of the difference between the maximum number and the set number to the intranet; or, upon not receiving the first numbering information, setting the number of the i-th slave board to a preset starting number and sending the preset starting number to the intranet, thereafter, further comprising:
[0009] Powering on the (i+1)th slave board, and determining whether the (i+1)th slave board has received the second numbering information;
[0010] When the i+1th block receives the second numbering information from the board, the number of the i+1th block from the board is set to the sum of the difference between the maximum number in the second numbering information and the set number, and the sum of the difference between the maximum number in the second numbering information and the set number is sent to the intranet.
[0011] In a possible implementation, the method further includes:
[0012] For the Nth slave board, the number of the Nth slave board is set to N, and the number N of the Nth slave board is sent to the intranet.
[0013] In a possible implementation, after setting the number of the Nth slave board to N and sending the number N of the Nth slave board to the intranet, the method further includes:
[0014] Switch the working mode of all the slave boards in the intranet to working mode.
[0015] In a possible implementation, the powering on the i-th slave board and the determining by the i-th slave board whether the first numbering information is received include:
[0016] Power on the i-th block from the board;
[0017] The i-th slave board determines whether the first numbered information is received within a set time period;
[0018] The sending the sum of the difference between the maximum number and the set number to the intranet includes:
[0019] Sending the sum of the difference between the maximum number and the set number to the intranet according to a preset period;
[0020] The sending the preset starting number to the intranet includes:
[0021] According to a preset period, the intranet sends the preset starting number.
[0022] In a possible implementation, the set number difference is 1; the intranet is a CAN bus or a wireless communication network.
[0023] The second embodiment of the present application provides a slave board numbering device for a battery management system, including:
[0024] a receiving module, configured to power on an i-th slave board, and the i-th slave board determining whether first numbering information has been received; wherein the first numbering information is sent to the intranet by a slave board other than the i-th slave board, and the first numbering information is at least one; i∈[1,N], where N is the total number of slave boards;
[0025] a first numbering module configured to, upon receiving the first numbering information, set the number of the i-th slave board to the sum of the difference between the maximum number in the first numbering information and a set number, and send the sum of the difference between the maximum number in the first numbering information and the set number to the intranet;
[0026] The second numbering module is configured to set the number of the i-th slave board to a preset starting number and send the preset starting number to the intranet when the first numbering information is not received.
[0027] A third embodiment of the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0028] The memory stores computer-executable instructions;
[0029] The processor executes the computer-executable instructions stored in the memory to implement any method described in the first aspect above.
[0030] The fourth aspect of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement any one of the methods described in the first aspect above.
[0031] The fifth aspect of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any one of the methods described in the first aspect above.
[0032] In an embodiment of the present application, by powering on the i-th slave board, the i-th slave board determines whether it has received first numbering information; wherein the first numbering information is sent to the intranet by a slave board other than the i-th slave board, and the first numbering information is at least one; i∈[1,N], where N is the total number of slave boards; if the first numbering information is received, the number of the i-th slave board is set to the sum of the difference between the maximum number in the first numbering information and the set number, and the sum of the difference between the maximum number in the first numbering information and the set number is sent to the intranet; if the first numbering information is not received, the number of the i-th slave board is set to a preset starting number, and the preset starting number is sent to the intranet. In this way, dynamic numbering of slave boards can be achieved through the interaction of numbering information between slave boards; when receiving numbering information from other slave boards, the slave board determines its own number by calculating the sum of the maximum number and the set difference, thereby avoiding numbering conflicts and ensuring numbering continuity; if no numbering information is received, the preset starting number is used, thereby ensuring that the slave board can quickly enter the working state. In this way, the flexibility and reliability of slave board numbering can be improved, the system initialization process can be simplified, the scalability of the system can be enhanced, and the efficiency and accuracy of slave board numbering can be improved.
[0033] 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 practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] 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:
[0035] Figure 1 A flowchart of a method for numbering slave boards in a battery management system provided in an embodiment of the present application;
[0036] Figure 2 This is a structural diagram of a slave board numbering device of a battery management system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following describes in detail embodiments of the present application, examples of which 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.
[0038] The following describes a method, device, and electronic device for numbering slave boards in a battery management system according to embodiments of the present application with reference to the accompanying drawings.
[0039] Figure 1This is a flow chart of slave board numbering in a battery management system provided by an embodiment of the present application. Figure 1 As shown, the slave board numbering method of the battery management system includes the following steps:
[0040] S101 , powering on the i-th slave board, and the i-th slave board determines whether first serial number information is received.
[0041] The first numbering information is sent to the intranet by a slave board other than the i-th slave board. There is at least one first numbering information; i∈[1,N], where N is the total number of slave boards. This ensures that each slave board is numbered according to the above logic.
[0042] In an embodiment of the present application, when numbering the slave boards of the battery management system, for a certain slave board, for example, the i-th slave board, the i-th slave board can be powered on first to start working and enter the automatic numbering mode. Then, it can be determined whether the i-th slave board has received numbering information sent by other slave boards from the intranet, that is, the first numbering information. These first numbering signals can be sent by the numbered slave boards other than the i-th slave board in the battery management system, and the first numbering information should include at least one slave board number. For example, assuming i=3, the first numbering information can include the number 1 of the first slave board that has been numbered and the number 2 of the second slave board that has been numbered.
[0043] S102, when the first numbering information is received, the number of the i-th slave board is set to the sum of the difference between the maximum number in the first numbering information and the set number, and the sum of the difference between the maximum number in the first numbering information and the set number is sent to the intranet.
[0044] In an embodiment of the present application, if the i-th slave board receives first numbering information, the maximum number can be found from the received first numbering information, and then the maximum number can be added to a set number difference (i.e., the set difference between the numbers of any two adjacent slave boards, such as 1) to obtain the number of the i-th slave board. The sum of the maximum number and the set number difference can be set as the number of the i-th slave board. Then, the number of the i-th slave board can be sent to the intranet to make other slave boards aware of it.
[0045] S103: If the first numbering information is not received, the number of the i-th slave board is set to a preset starting number, and the preset starting number is sent to the intranet.
[0046] In an embodiment of the present application, if the i-th slave board does not receive the first numbering information, it can be assumed that there are no other slave boards numbered before this in the current numbering, and the i-th slave board is the first slave board in the current numbering. In this case, the number of the i-th slave board can be set to a preset starting number. The preset starting number can be set to a value such as 1 or 0. It can be understood that i∈[1,N], where N is the total number of slave boards. This ensures that each slave board is numbered according to the above logic.
[0047] In an embodiment of the present application, by powering on the i-th slave board, the i-th slave board determines whether it has received first numbering information; wherein the first numbering information is sent to the intranet by a slave board other than the i-th slave board, and the first numbering information is at least one; i∈[1,N], where N is the total number of slave boards; if the first numbering information is received, the number of the i-th slave board is set to the sum of the difference between the maximum number in the first numbering information and the set number, and the sum of the difference between the maximum number in the first numbering information and the set number is sent to the intranet; if the first numbering information is not received, the number of the i-th slave board is set to a preset starting number, and the preset starting number is sent to the intranet. In this way, dynamic numbering of slave boards can be achieved through the interaction of numbering information between slave boards; when receiving numbering information from other slave boards, the slave board determines its own number by calculating the sum of the maximum number and the set difference, thereby avoiding numbering conflicts and ensuring numbering continuity; if no numbering information is received, the preset starting number is used, thereby ensuring that the slave board can quickly enter the working state. In this way, the flexibility and reliability of slave board numbering can be improved, the system initialization process can be simplified, the scalability of the system can be enhanced, and the efficiency and accuracy of slave board numbering can be improved.
[0048] In one possible implementation, when the first numbering information is received, the number of the i-th slave board is set to the sum of the difference between the maximum number in the first numbering information and the set number, and the sum of the difference between the maximum number and the set number is sent to the intranet; or, when the first numbering information is not received, the number of the i-th slave board is set to a preset starting number, and the preset starting number is sent to the intranet, and then the method further includes:
[0049] The (i+1)th slave board is powered on, and the (i+1)th slave board determines whether the second number information is received;
[0050] When the i+1th slave board receives the second numbering information, the number of the i+1th slave board is set to the sum of the difference between the maximum number in the second numbering information and the set number, and the sum of the difference between the maximum number in the second numbering information and the set number is sent to the intranet.
[0051] In an embodiment of the present application, after the i-th slave board is numbered, the i+1-th slave board can be numbered. Exemplarily, the i+1-th slave board can be powered on to enter the automatic numbering mode. The i+1-th slave board can check whether it has received the numbering information sent by other slave boards, that is, the second numbering information. Similarly, the second numbering information can also have at least one number, which is sent by the numbered slave board before the i+1-th slave board. If the i+1-th slave board receives the second numbering information, the maximum number can be found from the second numbering information, added to the set number difference, and the number of the i+1-th slave board is obtained and set as the number of the i+1-th slave board, and the number is sent to the intranet. In this way, by dynamically allocating numbers to slave boards one by one, efficient initialization and number management of the slave boards can be achieved; after power-on, each slave board will dynamically generate its own number based on the existing numbering information to avoid number conflicts while ensuring the continuity and uniqueness of the numbers; by processing the numbers of each slave board one by one, the system can flexibly cope with the access of different numbers of slave boards, enhancing the scalability and adaptability of the system; in addition, this method also simplifies the system initialization process, reduces manual intervention, and improves the system's degree of automation and operating efficiency.
[0052] In a possible implementation, the method further includes:
[0053] For the Nth slave board, the number of the Nth slave board is set to N, and the number N of the Nth slave board is sent to the intranet.
[0054] In an embodiment of the present application, for the Nth slave board, that is, the last slave board, the Nth slave board is powered on and enters the automatic numbering mode. Since the Nth slave board is the last slave board, its number can be directly set to N. And, the number N of the Nth slave board is sent to the intranet. It can be understood that since the number of battery modules for each project is known, the number of slave boards in the intranet is also known, and each slave board knows the maximum number. When the last slave board completes the automatic numbering, it will simultaneously send its own number to the intranet, that is, the maximum number of the slave boards in the intranet.
[0055] In a possible implementation, for the Nth slave board, after setting the number of the Nth slave board to N and sending the number N of the Nth slave board to the intranet, the method further includes:
[0056] Switch the working mode of all slave boards in the intranet to working mode.
[0057] In an embodiment of the present application, when all slave boards receive a signal from the highest-numbered slave board, the operating mode of all slave boards in the intranet switches from automatic numbering mode to normal operating mode. For example, a unified command or signal can be sent to the intranet to notify all slave boards to switch to working mode. After receiving the switching command, the slave boards complete the internal state transition and enter normal operating mode. In this way, through dynamic number allocation and working mode switching, efficient slave board initialization and system operation management can be achieved.
[0058] In a possible implementation, when the i-th slave board is powered on, the i-th slave board determines whether the first numbering information is received, including:
[0059] Power on the i-th block from the board;
[0060] The i-th slave board determines whether the first numbered information is received within a set time period;
[0061] Send the sum of the difference between the maximum number and the set number to the intranet, including:
[0062] According to the preset period, the sum of the difference between the maximum number and the set number is sent to the intranet;
[0063] Send the preset starting number to the intranet, including:
[0064] According to the preset period, the intranet sends the preset starting number.
[0065] In an embodiment of the present application, after the i-th slave board is powered on, timing can be started. Within the set duration, it is checked whether the number information (which can be the first number information) sent by other slave boards is received. The set duration can be, for example, 500ms. When sending the sum of the difference between the maximum number and the set number to the intranet, the sum of the difference between the maximum number and the set number can be sent to the intranet according to a preset period, for example, the preset period can be 10ms. A preset starting number can also be sent to the intranet according to a preset period.
[0066] In a further possible implementation, the set number difference may be 1; the intranet may be a CAN bus (CANBus) or a wireless communication network.
[0067] To make the method provided in the embodiments of the present application clearer, the following is an explanation with reference to specific examples.
[0068] The slave board numbering method provided in the embodiments of the present application applies the concept of closed-loop networking. By powering on the slave boards one by one, the slave boards are automatically numbered. The first slave board powered on will automatically start numbering at 1, and the slave boards powered on later will automatically be numbered 2, 3, 4, 5, 6, 7, 8, and so on. When the numbering of the last slave board is completed, the working mode of all slave boards is switched from automatic numbering mode to normal working mode.
[0069] Specifically: the slave boards can be powered on in sequence. The first slave board enters the automatic numbering mode after power-on. If it does not receive the number sent by other slave boards within 500ms (taking a 500ms time constant as an example), it will automatically number itself 1, and then send the number 1 to the intranet (CAN bus or wireless communication) with a period of 10ms; the second slave board enters the automatic numbering mode after power-on. If it receives the number 1 sent by the first slave board within 500ms, it will number itself 2 after 500ms, and at the same time send the number 2 to the intranet (CAN bus or wireless communication) with a period of 10ms; the third slave board enters the automatic numbering mode after power-on. If it receives the number 1 sent by the first slave board and the number 2 sent by the second slave board within 500ms, it will number itself 3 after 500ms, and at the same time send the number 3 to the intranet (CAN bus or wireless communication) with a period of 10ms. By analogy, each module enters the automatic numbering mode after powering on the board. The maximum number received within 500ms plus 1 is its own number.
[0070] Because the number of battery modules in each project is known, the number of slave boards on the intranet (CAN bus or wireless communication) is also known, and each slave board knows its maximum number. When the last slave board completes automatic numbering, it simultaneously sends its own number, the maximum number of slave boards on the intranet, to the CAN bus or wireless communication network in a 10ms cycle. When other slave boards receive the maximum number, all slave boards on that intranet (CAN bus or wireless communication) switch from automatic numbering mode to normal operation.
[0071] In this way, there is no need to manually map the slave board number and the installation position of the battery module. By applying the idea of closed-loop networking, all slave boards in the intranet (CAN bus or wireless communication) can be automatically numbered by powering on the slave boards in sequence. In actual use, all slave boards can be powered on in sequence according to the serial number of the battery module installation position. According to this method, the serial number of the battery module installation position is the value of the automatic numbering of all slave boards. After completing the automatic numbering step, all slave boards can be powered on at the same time the next time they are used. At this time, after each slave board is powered on, it will receive the signal from the slave board with the largest number within 500ms, and all slave boards will directly enter the normal working mode. In this way, the process steps of slave board numbering can be reduced, and the cost of slave board numbering can be reduced. Provide numbering efficiency and accuracy.
[0072] In order to implement the above embodiment, the present application also proposes a slave board numbering device for a battery management system. Figure 2 This is a schematic diagram of the structure of a slave board numbering device of a battery management system provided in an embodiment of the present application. Figure 2 As shown, the slave board numbering device of the battery management system includes:
[0073] A receiving module 210 is configured to power on an i-th slave board, and the i-th slave board determines whether first numbering information has been received; wherein the first numbering information is sent by a slave board other than the i-th slave board to the intranet, and the first numbering information is at least one; i∈[1,N], where N is the total number of slave boards;
[0074] A first numbering module 220 is configured to, upon receiving the first numbering information, set the number of the i-th slave board to the sum of the difference between the maximum number in the first numbering information and a set number, and send the sum of the difference between the maximum number and the set number in the first numbering information to the intranet;
[0075] The second numbering module 230 is configured to set the number of the i-th slave board to a preset starting number and send the preset starting number to the intranet when the first numbering information is not received.
[0076] In a possible implementation, the method further includes:
[0077] a power-on module, configured to power on the (i+1)th slave board, wherein the (i+1)th slave board determines whether the second numbering information is received;
[0078] A number sending module is used to set the number of the i+1th slave board to the sum of the difference between the maximum number in the second number information and the set number when the i+1th slave board receives the second number information, and send the sum of the difference between the maximum number in the second number information and the set number to the intranet.
[0079] In a possible implementation, a third numbering module is further included, configured to:
[0080] For the Nth slave board, the number of the Nth slave board is set to N, and the number N of the Nth slave board is sent to the intranet.
[0081] In a possible implementation, the method further includes:
[0082] The mode switching module is used to switch the working mode of all the slave boards in the intranet to the working mode.
[0083] In a possible implementation, the receiving module 210 is configured to:
[0084] Power on the i-th block from the board;
[0085] The i-th slave board determines whether the first numbered information is received within a set time period;
[0086] The first numbering module 220 is configured to:
[0087] Sending the sum of the difference between the maximum number and the set number to the intranet according to a preset period;
[0088] The second numbering module 230 is configured to:
[0089] According to a preset period, the intranet sends the preset starting number.
[0090] In a possible implementation, the set number difference is 1; the intranet is a CAN bus or a wireless communication network.
[0091] 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.
[0092] 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.
[0093] 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.
[0094] The collection, storage, use, processing, transmission, provision and disclosure 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.
[0095] It is important to note that personal information collected from users should be used for legitimate and reasonable purposes and should not be shared or sold beyond these legitimate uses. Furthermore, such collection / sharing should be conducted only after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign an agreement / authorization that includes the relevant user information before using the feature. Furthermore, any necessary steps must be taken to safeguard and secure access to such personal information and ensure that others with access to personal information comply with its privacy policy and procedures.
[0096] This application contemplates providing implementation options for users to selectively block the use or access of personal information data. Specifically, this application contemplates providing hardware and / or software to prevent or block access to such personal information data. Risks can be minimized by limiting data collection and deleting data once it is no longer needed. Furthermore, where applicable, such personal information can be de-identified to protect user privacy.
[0097] In the descriptions of the foregoing embodiments, the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean 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 expressions 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, unless they are mutually inconsistent.
[0098] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. Throughout the description of this application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.
[0099] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment 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 be performed out of 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 those skilled in the art to which the embodiments of the present application belong.
[0100] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, 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 it in another suitable manner if necessary, and then storing it in a computer memory.
[0101] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0102] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0103] In addition, the functional units in the various embodiments 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 a 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.
[0104] 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 is understood that the above embodiments are exemplary and should not be construed as limiting the present application. Persons skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.
Claims
1. A method for numbering slave boards in a battery management system, characterized in that: include: Powering on the i-th slave board, the i-th slave board determines whether it has received first numbering information; wherein the first numbering information is sent by a slave board other than the i-th slave board to the intranet, and the first numbering information is at least one; i∈[1,N], where N is the total number of slave boards; Upon receiving the first numbering information, setting the number of the i-th slave board to the sum of the difference between the maximum number in the first numbering information and the set number, and sending the sum of the difference between the maximum number in the first numbering information and the set number to the intranet; In the case that the first numbering information is not received, the number of the i-th slave board is set to a preset starting number, and the preset starting number is sent to the intranet.
2. The slave board numbering method of the battery management system according to claim 1, characterized in that: The method further includes: setting the number of the i-th slave board to the sum of the difference between the maximum number and the set number in the first number information when the first number information is received, and sending the sum of the difference between the maximum number and the set number to the intranet; or setting the number of the i-th slave board to a preset starting number when the first number information is not received, and sending the preset starting number to the intranet, and then: Powering on the (i+1)th slave board, and determining whether the (i+1)th slave board has received the second numbering information; When the i+1th block receives the second numbering information from the board, the number of the i+1th block from the board is set to the sum of the difference between the maximum number in the second numbering information and the set number, and the sum of the difference between the maximum number in the second numbering information and the set number is sent to the intranet.
3. The slave board numbering method of the battery management system according to claim 1, characterized in that: Also includes: For the Nth slave board, the number of the Nth slave board is set to N, and the number N of the Nth slave board is sent to the intranet.
4. The slave board numbering method of the battery management system according to claim 3, characterized in that: After the Nth slave board is numbered as N and the number N of the Nth slave board is sent to the intranet, the method further includes: Switch the working mode of all the slave boards in the intranet to working mode.
5. The method for numbering slave boards of a battery management system according to claim 1, characterized in that: The step of powering on the i-th slave board and determining whether the i-th slave board has received the first numbering information includes: Power on the i-th block from the board; The i-th slave board determines whether the first numbered information is received within a set time period; The sending the sum of the difference between the maximum number and the set number to the intranet includes: Sending the sum of the difference between the maximum number and the set number to the intranet according to a preset period; The sending the preset starting number to the intranet includes: According to a preset period, the intranet sends the preset starting number.
6. The slave board numbering method of a battery management system according to any one of claims 1 to 5, characterized in that: The set number difference is 1; the intranet is a CAN bus or a wireless communication network.
7. A slave board numbering device for a battery management system, characterized in that: include: a receiving module, configured to power on an i-th slave board, and the i-th slave board determining whether first numbering information has been received; wherein the first numbering information is sent to the intranet by a slave board other than the i-th slave board, and the first numbering information is at least one; i∈[1,N], where N is the total number of slave boards; a first numbering module configured to, upon receiving the first numbering information, set the number of the i-th slave board to the sum of the difference between the maximum number in the first numbering information and a set number, and send the sum of the difference between the maximum number in the first numbering information and the set number to the intranet; The second numbering module is configured to set the number of the i-th slave board to a preset starting number and send the preset starting number to the intranet when the first numbering information is not received.
8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when the computer program is executed by a processor.