Annular topological structure fault detection method, medium and battery management system
Through the ring topology fault detection method, the device identity sequence and forward and reverse reading data are used to identify communication node faults, which solves the problem of disconnection, damage or lack of connections in the daisy chain communication method in the energy storage battery system, and improves the system reliability and stability.
Patent Information
- Application Number
- CN202410776657.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-27
AI Technical Summary
The daisy chain communication method in the energy storage battery system is prone to disconnection faults, damage to the acquisition module, or missing connections, resulting in data transmission interruptions or errors, which reduces the reliability of the system.
The ring topology fault detection method is used to identify communication nodes through the device identity sequence, read the identity data in forward and reverse directions, determine the fault type based on the device identity sequence, and identify disconnected, damaged or missing communication nodes.
Effectively detect faults in ring topology communication, improve the reliability and stability of the energy storage battery system, detect problems in time, and reduce system impact and maintenance costs.
Smart Images

Figure CN118707342A
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a ring topology fault detection method, medium and battery management system. Background Art
[0002] In the energy storage battery system, the communication method between the BMS (Battery Management System) main control module and the acquisition module usually adopts the daisy chain method. However, the daisy chain communication method may have problems such as disconnection failure, damage to the acquisition module, or insufficient connection of the acquisition module, resulting in data transmission interruption or error without knowing it, resulting in poor reliability of the energy storage battery system. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a ring topology structure fault detection method, a medium and a battery management system, which can effectively detect faults existing in the ring topology structure communication mode and improve the reliability and stability of the energy storage battery system.
[0004] In a first aspect, an embodiment of the present application provides a ring topology fault detection method, which is applicable to an energy storage system, in which a collection module corresponding to each battery management unit is used as a communication node, and each communication node is cascaded in a ring topology communication mode to obtain a ring chain; comprising:
[0005] Using each identity in the device identity sequence to identify the corresponding communication node in the ring chain path;
[0006] Read the identity identification of the corresponding communication nodes in the ring chain in sequence according to the forward path of the ring chain to obtain the forward identity identification data;
[0007] Read the identity identification of the corresponding communication nodes in the ring chain in turn according to the reverse path of the ring chain to obtain reverse identity identification data;
[0008] The fault type of the ring chain is determined according to the forward identification data, the reverse identification data and the device identification sequence.
[0009] In some embodiments, using each identity in the device identity sequence to identify a corresponding communication node in the ring chain path includes:
[0010] Using the nth identity identifier corresponding to the forward order in the device identity identifier sequence to identify the nth communication node in the forward path of the ring chain, N≥n≥1; wherein N is the maximum number of communication nodes;
[0011] The nth identity corresponding to the reverse order in the device identity sequence is used to update the identity of the nth communication node in the reverse path of the ring chain; the device identity sequence includes the unique identity corresponding to each communication node planned to be connected in the ring chain, and is stored in the device identity sequence according to a preset sequence order.
[0012] In some embodiments, the backup identity sequence is an ordered sequence; the forward identity data includes: a first variable and a second variable; the reverse identity data includes a third variable;
[0013] The step of sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain according to the forward path of the ring chain to obtain the forward identity identifier data includes:
[0014] Before updating the identity identifier of the communication node, sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain along the forward path of the ring chain to obtain the first variable;
[0015] After updating the identity identifier of the communication node, sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain along the forward path of the ring chain to obtain the second variable;
[0016] The determining the fault type of the ring chain according to the forward identification data, the reverse identification data and the device identification sequence includes:
[0017] The fault type of the ring chain is determined according to the first variable, the second variable and the third variable.
[0018] In some embodiments, the step of sequentially reading the identity identifiers of corresponding communication nodes in the ring chain according to the forward path of the ring chain to obtain the first variable or the second variable includes:
[0019] Read the identity identifiers of the corresponding communication nodes in the ring chain in sequence according to the forward path of the ring chain, and compare the read identity identifiers with the corresponding identity identifiers in the device identity identifier sequence in the forward order; if they are the same, confirm that the first variable is increased by a set step length, otherwise confirm that the first variable is zero; or, if they are the same, confirm that the second variable is increased by a set step length, otherwise confirm that the second variable is zero;
[0020] The step of sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain according to the reverse path of the ring chain to obtain reverse identity identifier data includes:
[0021] The identity identifiers of the corresponding communication nodes in the ring chain are read in sequence along the reverse path of the ring chain, and the read identity identifiers are compared with the corresponding identity identifiers in the device identity identifier sequence in the reverse order; if they are the same, it is confirmed that the third variable increases by a set step size, otherwise it is confirmed that the third variable is zero.
[0022] In some embodiments, determining the fault type of the ring chain according to the first variable, the second variable and the third variable includes:
[0023] If the second variable is equal to the third variable and both are equal to the sequence length of the device identity sequence, it is confirmed that the ring chain is connected normally;
[0024] If the sum of the second variable and the third variable is equal to the sequence length of the device identity sequence, it is confirmed that a disconnection fault exists in the communication node in the ring chain;
[0025] If the sum of the second variable and the third variable is less than the sequence length of the device identity sequence, and the first variable and the second variable are equal, it is confirmed that a communication node in the ring chain is damaged;
[0026] If the second variable is equal to zero and the third variable is equal to the first variable, it is confirmed that some communication nodes in the ring chain are not connected.
[0027] In some embodiments, determining the fault type of the ring chain according to the first variable, the second variable and the third variable further includes:
[0028] If the first variable and the second variable are both zero and the third variable is less than the sequence length of the device identification sequence, or the first variable and the second variable are not zero and are equal and the third variable is zero, it is confirmed that there is a communication node damage in the ring chain.
[0029] In some embodiments, the setting step size is 1; the method further includes:
[0030] determining a fault location according to the determined fault type, the first variable, the second variable, and the third variable;
[0031] Determining the fault location according to the determined fault type, the first variable, the second variable and the third variable comprises:
[0032] When the fault type is a disconnection fault of a communication node in the ring chain, it is determined that there is a disconnection between a first communication node corresponding to the value of the first variable and a second communication node corresponding to the value obtained by adding one to the first variable in the forward path of the ring chain;
[0033] When the fault type is that a communication node in the ring chain is damaged, it is determined that a communication node corresponding to the first variable or the second variable plus one in the forward path of the ring chain is a damaged communication node.
[0034] In some embodiments, the device identification sequence, the forward identification data, and the reverse identification data are all ordered sequences;
[0035] The determining the fault type of the ring chain according to the forward identification data, the reverse identification data and the device identification sequence includes:
[0036] Comparing the forward identification data and the reverse identification data with the device identification sequence respectively;
[0037] If the identities included in the forward identity identification data and the reverse identity identification data are the same as the identities included in the device identity identification sequence, it is confirmed that the ring chain connection is normal;
[0038] If the identities included in the forward identity identification data and the reverse identity identification data are the same, and the sequence length of the forward identity identification data and / or the sequence length of the reverse identity identification data is less than the sequence length of the device identity identification sequence, it is confirmed that some communication nodes in the ring chain are not connected;
[0039] If the identities included in the forward identity identification data and the reverse identity identification data are different, and the sum of the sequence length of the forward identity identification data and the sequence length of the reverse identity identification data is less than the sequence length of the device identity identification sequence, it is confirmed that a communication node in the ring chain is damaged;
[0040] If the identities included in the forward identity data and the reverse identity data are different, and the sum of the sequence length of the forward identity data and the sequence length of the reverse identity data is equal to the sequence length of the device identity sequence, it is confirmed that a disconnection fault exists in the communication node in the ring chain.
[0041] In a second aspect, an embodiment of the present application provides a terminal device including a processor and a memory, the memory storing a computer program, and the processor being used to execute the computer program to implement a ring topology structure fault detection method provided in the first aspect of the present application.
[0042] In a third aspect, an embodiment of the present application provides a machine-readable storage medium storing a computer program. When the computer program is executed on a processor, it implements a ring topology structure fault detection method provided in the first aspect of the present application.
[0043] The embodiments of the present application have the following beneficial effects:
[0044] The present application first identifies the corresponding communication node in the ring chain path by using each identity in the device identity sequence, then reads the identity in a forward direction to obtain forward identity data, and then reads the identity in a reverse direction to obtain reverse identity data; finally, the fault type of the ring chain is determined according to the forward identity data, the reverse identity data and the device identity sequence. Thus, problems in the ring topology communication are discovered in a timely manner, and the reliability and stability of the ring topology communication are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 A flow chart of a ring topology fault detection method according to an embodiment of the present application is shown;
[0047] Figure 2 A first timing diagram of writing and reading identity tags in the ring topology structure fault detection method according to an embodiment of the present application is shown;
[0048] Figure 3 A second timing diagram of writing and reading identity tags in the ring topology structure fault detection method according to an embodiment of the present application is shown;
[0049] Figure 4 A timing diagram showing a disconnection fault in a daisy chain in a ring topology structure fault detection method according to an embodiment of the present application is shown;
[0050] Figure 5 A timing diagram showing AEF damage in a daisy chain in a ring topology fault detection method according to an embodiment of the present application is shown;
[0051] Figure 6 A timing diagram showing a ring topology fault detection method in an embodiment of the present application in which there is a lack of AEF in the daisy chain;
[0052] Figure 7A structural schematic diagram of a ring topology fault detection device according to an embodiment of the present application is shown.
[0053] Description of main component symbols:
[0054] 710 - identification node identity module; 720 - forward reading identity identification module; 730 - reverse reading identity identification module; 740 - fault determination module. DETAILED DESCRIPTION
[0055] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0056] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0057] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0058] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0059] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0060] In the prior art, the SPI connection method is used between the BMS main control module and the acquisition module; for example, the acquisition modules are connected by a ring topology communication method. For example, when the daisy chain topology communication method is used for connection, most of the time, the address is written to each battery management unit. During fault detection, the fault condition of the daisy chain is determined by obtaining the address of the battery management unit. However, some chips do not support writing addresses, resulting in the battery management unit having no address, and the daisy chain fault condition cannot be detected using the prior art. Therefore, the present application proposes a ring topology fault detection method, medium and battery management system, which can effectively detect faults existing in the ring topology communication method and improve the reliability and stability of the energy storage battery system.
[0061] The ring topology fault detection method of the embodiment of the present application is applicable to a battery management system (BMS) in an energy storage system, in which the acquisition module corresponding to each battery management unit is used as a communication node, and each communication node is cascaded using a ring topology communication method to obtain a ring chain. Specifically, the BMS main control module is connected to the communication node via an SPI communication method, and each communication node is connected using a ring topology communication method to form a ring chain. Exemplarily, the ring topology includes but is not limited to: a daisy chain topology, and the corresponding ring chain includes but is not limited to a daisy chain.
[0062] The ring topology structure fault detection method is described below in conjunction with some specific embodiments.
[0063] Figure 1 A flow chart of a ring topology structure fault detection method according to an embodiment of the present application is shown. Exemplarily, the ring topology structure fault detection method comprises the following steps:
[0064] S10, using each identity in the device identity sequence to identify the corresponding communication node in the ring chain path.
[0065] Furthermore, the step S10 of using each identity in the device identity sequence to identify the corresponding communication node in the ring chain path includes:
[0066] S11, using the nth identity identifier corresponding to the forward order in the device identity identifier sequence to identify the nth communication node in the forward path of the ring chain, N≥n≥1; wherein N is the maximum number of communication nodes.
[0067] The device identity sequence includes a unique identity corresponding to each communication node planned to be connected in the ring chain, that is, the identity is used to identify the corresponding acquisition module, and is stored in the device identity sequence according to a preset sequence order. The preset sequence order is the order in which each communication node is planned to be connected, preferably, the order of each communication node in the forward path. The device identity sequence can be any one of a string, a list, an ordered set, a tuple, etc. For example, the device identity sequence can be a string, string string = "a, b, c, ..., N", and the device identity sequence can also be a list, list list = (1, 2, 3, ..., N). Taking the list list as an example, the order from 1 to N is the forward order, and the order from N to 1 is the reverse order.
[0068] Further, the use of the nth identity identifier corresponding to the forward order in the device identity identifier sequence to identify the nth communication node in the forward path of the ring chain includes:
[0069] According to n starting from 1 to N, the nth identity corresponding to the forward order in the device identity sequence is obtained one by one, and the nth identity mark is written into the nth communication node in the forward path of the ring chain. Since the acquisition module corresponding to each battery management unit is used as a communication node, specifically, the nth identity mark is written into the register of the acquisition module.
[0070] The forward path of the ring chain starts from a collection module connected to the BMS main control module to another collection module connected to it, and then to the last connected collection module in sequence according to the link relationship. It can be understood that the reverse path of the ring chain is the path opposite to the forward path of the ring chain.
[0071] For example, the ring chain includes AFE sampling chips (acquisition modules) corresponding to the 8 battery management units planned to be connected, namely AFE1 to AFE8, and the identities of AFE1 to AFE8 are 1, 2, 3, 4, 5, 6, 7, 8 according to the linking order. The device identity sequence is a list list, list = (1, 2, 3, 4, 5, 6, 7, 8). For example, Figure 2 The steps corresponding to "forward writing" are to obtain the identity identifiers (1-8) from the list in the forward order of the list, and write them one by one into the registers of the corresponding acquisition modules according to the forward path (AFE1~AFE8).
[0072] S12, using the nth identity corresponding to the reverse order in the device identity sequence to update the identity of the nth communication node in the reverse path of the ring chain.
[0073] Exemplarily, starting from 1 to N, the nth identity tags corresponding to the reverse order in the device identity tag sequence are obtained one by one, and the nth identity tag is written into the register of the nth acquisition module in the reverse path of the ring chain. For example, Figure 2 The step corresponding to "reverse writing" in the step is to obtain the identity identifiers (8-1) from the list in reverse order, and write them one by one into the registers of the corresponding acquisition modules according to the reverse path (AFE8~AFE1), and overwrite the identity identifiers written in the step "forward writing".
[0074] S20, read the identity identification of the corresponding communication node in the ring chain in sequence according to the forward path of the ring chain to obtain forward identity identification data. The forward identity identification data may include each identity data read, or may be the total number of each identity data read. For example, Figure 2 The step corresponding to "forward reading" is to read the identity identification stored in the register of the corresponding acquisition module one by one according to the forward path (AFE1~AFE8). Under normal circumstances, the forward identity identification data obtained is (1, 2, 3, 4, 5, 6, 7, 8), or the forward identity identification data is the total number of read identity identifications.
[0075] S30, reading the identity of the corresponding communication node in the ring chain in sequence according to the reverse path of the ring chain to obtain reverse identity data. Figure 2 The step corresponding to "reverse reading" is to read the identity identification stored in the register of the corresponding acquisition module one by one according to the reverse path (AFE8~AFE1). Under normal circumstances, the reverse identity identification data obtained is (1, 2, 3, 4, 5, 6, 7, 8) (the read number is inserted at the front), or the reverse identity identification data is the total number of read identity identifications.
[0076] S40, determining a fault type of the ring chain according to the forward identification data, the reverse identification data and the device identification sequence.
[0077] In one embodiment, the backup identity sequence is an ordered sequence. The forward identity data includes: a first variable and a second variable; and the reverse identity data includes a third variable.
[0078] In step S20, the identity identification of the corresponding communication node in the ring chain is read in sequence according to the forward path of the ring chain to obtain the forward identity identification data, such as Figure 3 As shown, including:
[0079] Before updating the identity identifier of the communication node, the identity identifiers of the corresponding communication nodes in the ring chain are read in sequence along the forward path of the ring chain to obtain the first variable n1;
[0080] After the identity identifier of the communication node is updated, the identity identifiers of the corresponding communication nodes in the ring chain are sequentially read along the forward path of the ring chain to obtain the second variable n2;
[0081] Determining the fault type of the ring chain according to the forward identification data, the reverse identification data and the device identification sequence in step S40 includes:
[0082] S41, determining the fault type of the ring chain according to the first variable n1, the second variable n2 and the third variable n3, wherein n1, n2 and n3 are all 0 when initialized.
[0083] Furthermore, the step S41 of sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain according to the forward path of the ring chain to obtain the first variable or the second variable includes:
[0084] The identity identifiers of the corresponding communication nodes in the ring chain are read in sequence along the forward path of the ring chain, and the read identity identifiers are compared with the corresponding identity identifiers in the device identity identifier sequence in the forward order; if they are the same, then the first variable is confirmed to increase by a set step, otherwise the first variable is confirmed to be zero; or, if they are the same, then the second variable is confirmed to increase by a set step, otherwise the second variable is confirmed to be zero. Preferably, the step size is set to 1. For example, the device identity identifier sequence is a list list, list = (1, 2, 3, 4, 5, 6, 7, 8), and the identity identifier corresponding to AFE1 is read as 1, which is the same as the first element in the forward direction of the list, then the first variable n1 = 0 + 1; then, the identity identifier corresponding to AFE2 is read as not, which is the same as the second element in the forward direction of the list, then the first variable n1 = 1 + 1; if the identity identifier corresponding to AFE1 is read as 2, which is different from the first element in the forward direction of the list, then the first variable n1 is 0.
[0085] The step S30 of sequentially reading the identity identifications of the corresponding communication nodes in the ring chain according to the reverse path of the ring chain to obtain reverse identity identification data includes:
[0086] The identity identifiers of the corresponding communication nodes in the ring chain are read in sequence along the reverse path of the ring chain, and the read identity identifiers are compared with the corresponding identity identifiers in the device identity identifier sequence in the reverse order; if they are the same, it is confirmed that the third variable increases by a set step size, otherwise it is confirmed that the third variable is zero.
[0087] Ring chain communication may have problems such as disconnection, damage to the acquisition module, or insufficient connection of the acquisition module, resulting in data transmission interruption or error. In particular, when a disconnection fault or a damage to the acquisition module occurs, the communication cannot continue, and the data of the subsequent acquisition module cannot be read or written.
[0088] Further, the step S41 of determining the fault type of the ring chain according to the first variable, the second variable and the third variable includes:
[0089] S411: If the second variable and the third variable are equal and both are equal to the sequence length of the device identity sequence, it is confirmed that the ring chain connection is normal. Figure 3 As shown, when the identity is read forward for the second time, the identity of the corresponding order is counted to see if it is the same as the corresponding element in the device identity sequence. If it is the same, n2 is increased by 1. If n2=8, it means that the identity read forward is completely consistent with the one in the device identity sequence. N3=8 means that the identity read backward is also completely consistent with the one in the device identity sequence, confirming that the ring chain is connected normally, that is, no acquisition module is missing, and there is no damage or disconnection.
[0090] S412: If the sum of the second variable and the third variable is equal to the sequence length of the device identity sequence, it is confirmed that a disconnection fault exists in the communication node in the ring chain. Figure 4 In the daisy chain shown, there is a wire break between AFE4 and AFE5. When the identity is read in the forward direction for the first time, n1 is counted as 4, when the identity is read in the forward direction for the second time, n2 is counted as 4, and when the identity is read in the reverse direction, n3 is counted as 4, and n2+n3=8. If the AFE is normal, less connected, or damaged, then n2+n3≠8.
[0091] S413: If the sum of the second variable and the third variable is less than the sequence length of the device identification sequence, and the first variable and the second variable are equal, it is confirmed that a communication node in the ring chain is damaged; that is, the AFE is damaged. Figure 5 In the daisy chain shown, AFE4 is damaged. When writing in the forward direction, writing to AFE4 cannot continue, so AFE1-AFE3 are written with the identity mark 1-3. The first forward read reads (1,2,3), so n1=3. When writing in the reverse direction, AFE8-AFE5 are written with the identity mark (5-8). When reading in the forward direction for the second time, the statistics n2=3, and when reading in the reverse direction, the statistics n3=4. n2+n3<8, and n1=n2.
[0092] Alternatively, if the first variable and the second variable are both zero and the third variable is less than the sequence length of the device identification sequence, or the first variable and the second variable are not zero and are equal and the third variable is equal to zero, it is confirmed that the communication node in the ring chain is damaged. In this case, AFE1 is damaged or AFE8 is damaged. For example, if AFE1 is damaged, then n1=0, n2=0, and n3=7.
[0093] S414: If the second variable is equal to zero and the third variable is equal to the first variable, it is confirmed that some communication nodes in the ring chain are not connected, that is, there are fewer communication nodes connected. Figure 6 In the daisy chain shown, one AFE is missing, n1=7, n2=0, n3=7.
[0094] Furthermore, the method further comprises:
[0095] determining a fault location according to the determined fault type, the first variable, the second variable, and the third variable;
[0096] Determining the fault location according to the determined fault type, the first variable, the second variable and the third variable comprises:
[0097] When the fault type is a disconnection fault in a communication node in the ring chain, there is an interruption between a first communication node corresponding to the value of the first variable and a second communication node corresponding to the value obtained by adding one to the first variable in the forward path of the ring chain; Figure 4 , n2=4, n3=4, and the line between AFE4 and AFE5 is broken.
[0098] When the fault type is that a communication node in the ring chain is damaged, the communication node corresponding to the first variable or the second variable plus one in the forward path of the ring chain is a damaged communication node. Figure 5 As shown, n2=3, n1=3, and AFE4 is damaged.
[0099] In one embodiment, the device identification sequence is an ordered sequence; the forward identification data and the reverse identification data are both ordered sequences. The forward identification data includes each identification read forward; the reverse identification data includes each identification read reversely.
[0100] The determining the fault type of the ring chain according to the forward identification data, the reverse identification data and the device identification sequence includes:
[0101] The forward identification data and the reverse identification data are respectively compared with the device identification sequence; specifically, the elements in each sequence are compared.
[0102] If the identities included in the forward identity data and the reverse identity data are the same as the identities included in the device identity sequence, it is confirmed that the ring chain connection is normal; for example, the device identity sequence can be a list list = (1, 2, 3, 4, 5, 6, 7, 8). Figure 2 As shown, when the identity identification is read forward, the forward identity identification data list1 is obtained, list1 = (1, 2, 3, 4, 5, 6, 7, 8); when the identity identification is read reversely, the reverse identity identification data list2 is obtained, list2 = (1, 2, 3, 4, 5, 6, 7, 8); if the elements contained in the three lists are the same, it is confirmed that the ring chain connection is normal.
[0103] If the identities contained in the forward identity data and the reverse identity data are the same, and the sequence length of the forward identity data and the sequence length of the reverse identity data are less than the sequence length of the device identity sequence, it is confirmed that some communication nodes in the ring chain are not connected, that is, there are less connected communication nodes. Figure 6 As shown, it is equivalent to the second forward reading to obtain the forward identity data list1 = (2, 3, 4, 5, 6, 7, 8), but there is no first forward reading of the identity in this embodiment; the reverse identity data list2 = (2, 3, 4, 5, 6, 7, 8).
[0104] If the identities included in the forward identity data and the reverse identity data are different, and the sum of the sequence length of the forward identity data and the sequence length of the reverse identity data is less than the sequence length of the device identity sequence, it is confirmed that a communication node in the ring chain is damaged; if Figure 5 As shown, it is equivalent to the second forward reading to obtain the forward identity data list1 = (1, 2, 3), but there is no first forward reading of the identity in this embodiment; the reverse identity data list2 = (5, 6, 7, 8).
[0105] If the identities contained in the forward identity data and the reverse identity data are different, and the sum of the sequence length of the forward identity data and the sequence length of the reverse identity data is equal to the sequence length of the device identity sequence, it is confirmed that a disconnection fault exists in the communication node in the ring chain. Figure 4 As shown, it is equivalent to the second forward reading to obtain the forward identity data list1 = (1, 2, 3, 4,), but in this embodiment, there is no first forward reading of the identity; the reverse identity data list2 = (5, 6, 7, 8). list1 + list2 = list.
[0106] This application uses the device identification serial code to identify faults, which can promptly discover problems in the ring chain communication and improve the reliability and stability of the system. Through the combined operation of forward writing, reverse writing and forward reading, reverse reading, the consistency and accuracy of the data can be ensured. Through simple operations and comparisons, fault identification can be achieved, reducing the impact on the system and maintenance costs.
[0107] Figure 7 A schematic diagram of the structure of a ring topology fault detection device according to an embodiment of the present application is shown. Exemplarily, the ring topology fault detection device comprises: a node identification module 710 , a forward reading identification module 720 , a reverse reading identification module 730 and a fault determination module 740 .
[0108] The node identity identification module 710 is used to use each identity in the device identity sequence to identify the corresponding communication node in the ring chain path;
[0109] The forward identification reading module 720 is used to sequentially read the identifications of the corresponding communication nodes in the ring chain along the forward path of the ring chain to obtain forward identification data;
[0110] The reverse identification reading module 730 is used to sequentially read the identification of the corresponding communication nodes in the ring chain according to the reverse path of the ring chain to obtain reverse identification data;
[0111] The fault determination module 740 is used to determine the fault type of the ring chain according to the forward identification data, the reverse identification data and the device identification sequence.
[0112] It can be understood that the device of this embodiment corresponds to the ring topology structure fault detection method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.
[0113] The present application also provides a battery management system. Exemplarily, the battery management system includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the battery management system to execute the functions of the various modules in the above-mentioned ring topology structure fault detection method or the above-mentioned ring topology structure fault detection device.
[0114] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), 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. At least one of the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
[0115] The memory may be, but is not limited to, a random access memory (RAM), 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), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0116] The present application also provides a readable storage medium for storing the computer program used in the above-mentioned battery management system.
[0117] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0118] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0119] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0120] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A ring topology fault detection method, It is characterized in that The invention is applicable to a battery management system in an energy storage system, wherein the acquisition module corresponding to each battery management unit in the energy storage system is used as a communication node, and each communication node is cascaded in a ring topology communication mode to obtain a ring chain; the method comprises: Using each identity in the device identity sequence to identify the corresponding communication node in the ring chain path; Read the identity identification of the corresponding communication nodes in the ring chain in sequence according to the forward path of the ring chain to obtain the forward identity identification data; Read the identity identification of the corresponding communication nodes in the ring chain in turn according to the reverse path of the ring chain to obtain reverse identity identification data; The fault type of the ring chain is determined according to the forward identification data, the reverse identification data and the device identification sequence.
2. The ring topology structure fault detection method according to claim 1, It is characterized in that The method of using each identity in the device identity sequence to identify a corresponding communication node in the ring chain path includes: Using the nth identity identifier corresponding to the forward order in the device identity identifier sequence to identify the nth communication node in the forward path of the ring chain, N≥n≥1; wherein N is the maximum number of communication nodes; The nth identity corresponding to the reverse order in the device identity sequence is used to update the identity of the nth communication node in the reverse path of the ring chain; the device identity sequence includes the unique identity corresponding to each communication node planned to be connected in the ring chain, and is stored in the device identity sequence according to a preset sequence order.
3. The ring topology structure fault detection method according to claim 2, It is characterized in that The forward identity data includes: a first variable and a second variable; the reverse identity data includes a third variable; The step of sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain according to the forward path of the ring chain to obtain the forward identity identifier data includes: Before updating the identity identifier of the communication node, sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain along the forward path of the ring chain to obtain the first variable; After updating the identity identifier of the communication node, sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain along the forward path of the ring chain to obtain the second variable; The determining the fault type of the ring chain according to the forward identification data, the reverse identification data and the device identification sequence includes: The fault type of the ring chain is determined according to the first variable, the second variable and the third variable.
4. The ring topology structure fault detection method according to claim 3, It is characterized in that The step of sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain according to the forward path of the ring chain to obtain the first variable or the second variable includes: Read the identity identifiers of the corresponding communication nodes in the ring chain in sequence according to the forward path of the ring chain, and compare the read identity identifiers with the corresponding identity identifiers in the device identity identifier sequence in the forward order; if they are the same, confirm that the first variable is increased by a set step length, otherwise confirm that the first variable is zero; or, if they are the same, confirm that the second variable is increased by a set step length, otherwise confirm that the second variable is zero; The step of sequentially reading the identity identifiers of the corresponding communication nodes in the ring chain according to the reverse path of the ring chain to obtain reverse identity identifier data includes: The identity identifiers of the corresponding communication nodes in the ring chain are read in sequence along the reverse path of the ring chain, and the read identity identifiers are compared with the corresponding identity identifiers in the device identity identifier sequence in the reverse order; if they are the same, it is confirmed that the third variable increases by a set step size, otherwise it is confirmed that the third variable is zero.
5. The ring topology structure fault detection method according to claim 4, It is characterized in that Determining the fault type of the ring chain according to the first variable, the second variable and the third variable includes: If the second variable is equal to the third variable and both are equal to the sequence length of the device identity sequence, it is confirmed that the ring chain is connected normally; If the sum of the second variable and the third variable is equal to the sequence length of the device identity sequence, it is confirmed that a disconnection fault exists in the communication node in the ring chain; If the sum of the second variable and the third variable is less than the sequence length of the device identity sequence, and the first variable and the second variable are equal, it is confirmed that a communication node in the ring chain is damaged; If the second variable is equal to zero and the third variable is equal to the first variable, it is confirmed that some communication nodes in the ring chain are not connected.
6. The ring topology structure fault detection method according to claim 5, It is characterized in that The determining the fault type of the ring chain according to the first variable, the second variable and the third variable further includes: If the first variable and the second variable are both zero and the third variable is less than the sequence length of the device identification sequence, or the first variable and the second variable are not zero and are equal and the third variable is zero, it is confirmed that there is a communication node damage in the ring chain.
7. The ring topology structure fault detection method according to claim 5, It is characterized in that The setting step size is 1; the method further includes: determining a fault location according to the determined fault type, the first variable, the second variable, and the third variable; Determining the fault location according to the determined fault type, the first variable, the second variable and the third variable comprises: When the fault type is a disconnection fault of a communication node in the ring chain, it is determined that there is a disconnection between a first communication node corresponding to the value of the first variable and a second communication node corresponding to the value obtained by adding one to the first variable in the forward path of the ring chain; When the fault type is that a communication node in the ring chain is damaged, it is determined that a communication node corresponding to the first variable or the second variable plus one in the forward path of the ring chain is a damaged communication node.
8. The ring topology structure fault detection method according to any one of claims 2 to 7, It is characterized in that The device identification sequence, the forward identification data and the reverse identification data are all ordered sequences; The determining the fault type of the ring chain according to the forward identification data, the reverse identification data and the device identification sequence includes: Comparing the forward identification data and the reverse identification data with the device identification sequence respectively; If the identities included in the forward identity identification data and the reverse identity identification data are the same as the identities included in the device identity identification sequence, it is confirmed that the ring chain connection is normal; If the identities included in the forward identity identification data and the reverse identity identification data are the same, and the sequence length of the forward identity identification data and / or the sequence length of the reverse identity identification data is less than the sequence length of the device identity identification sequence, it is confirmed that some communication nodes in the ring chain are not connected; If the identities included in the forward identity identification data and the reverse identity identification data are different, and the sum of the sequence length of the forward identity identification data and the sequence length of the reverse identity identification data is less than the sequence length of the device identity identification sequence, it is confirmed that a communication node in the ring chain is damaged; If the identities included in the forward identity data and the reverse identity data are different, and the sum of the sequence length of the forward identity data and the sequence length of the reverse identity data is equal to the sequence length of the device identity sequence, it is confirmed that a disconnection fault exists in the communication node in the ring chain.
9. A computer-readable storage medium, It is characterized in that The device stores a computer program, which, when executed on a processor, implements the ring topology structure fault detection method according to any one of claims 1 to 8.
10. A battery management system, It is characterized in that The battery management system comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the ring topology structure fault detection method according to any one of claims 1 to 8.
