A communication fault locating method, device, medium and product of an energy storage system
Patent Information
- Application Number
- CN202611287958.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-24
- Publication Date
- 2026-10-30
AI Technical Summary
[0003]现有的储能系统中总控与多个主控通常是采用以太网通信连接,如果以太网出现通信故障,需要人工逐段排查网线,效率低下且无法快速定位故障位置和故障原因
[0015]本发明实施例提供的技术方案,储能系统总控通过CAN总线将本地环回测试指令,发送至位于目标主控之前的上游主控,通过所述上游主控执行本地环回测试,如果所述上游主控的本地环回测试结果正常,则通过所述目标主控执行本地环回测试,如果所述目标主控的本地环回测试结果正常,则通过CAN总线将远程环回测试指令发送至所述目标主控和上游主控,并根据所述目标主控和上游主控的远程环回测试结果,确定以太网通信的故障位置和故障类型的技术手段,可以在以太网总线通信发生故障时,精准确定故障位置以及故障原因,节省人工逐段排查网线消耗的时间资源和人力资源,提高储能系统中以太网通信的故障定位效率。
Smart Images

Figure CN123020339A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery energy storage technology, and in particular to a communication fault location method, device, medium and product for an energy storage system. Background Technology
[0002] An energy storage system is a specific object or spatial area designated for energy storage and management. Existing energy storage systems may include a central controller and multiple master controllers. The central controller, also known as the Battery Array Unit (BAU), is responsible for monitoring and managing the status of the batteries. Multiple master controllers communicate in a daisy-chain topology. The master controller is also known as the Battery Control Unit (BCU).
[0003] In existing energy storage systems, the central control unit and multiple master controllers are usually connected via Ethernet communication. If an Ethernet communication failure occurs, the network cable needs to be checked manually segment by segment, which is inefficient and cannot quickly locate the fault location and cause. Summary of the Invention
[0004] This invention provides a method, device, medium, and product for locating communication faults in energy storage systems. When an Ethernet bus communication failure occurs, the fault location and cause can be accurately determined, saving the time and manpower consumed by manually checking network cables segment by segment, and improving the efficiency of fault location in Ethernet communication in energy storage systems.
[0005] According to one aspect of the present invention, a communication fault location method for an energy storage system is provided, wherein the energy storage system deploys a central controller and multiple master controllers, the central controller and the multiple master controllers being connected via a Controller Area Network (CAN) bus and an Ethernet communication connection; the method is applied to the central controller and includes: When an Ethernet communication failure is detected in the energy storage system and the target master controller communication is abnormal, the local loopback test command is sent to the upstream master controller located before the target master controller via the CAN bus; If the local loopback test of the upstream master controller is normal, then the local loopback test is performed through the target master controller. If the local loopback test result of the target master controller is normal, the remote loopback test command is sent to the target master controller and the upstream master controller via the CAN bus, so that the target master controller and the upstream master controller can perform a remote loopback test, and the fault location and fault type of Ethernet communication can be determined based on the remote loopback test result.
[0006] Optionally, a local loopback test is performed via the upstream master controller, including: The original test frame is sent to the receiving port of the physical layer (PHY) inside the switch chip through the Media Access Control (MAC) layer of the upstream master controller. The test frame is sent to the PHY's transmit port through the PHY's receive port; The test frame is transmitted back to the MAC layer through the PHY's transmission port, and the MAC layer determines whether the local loopback test result of the upstream master controller is normal based on the actual data frame received.
[0007] Optionally, based on the actual data frames received by the MAC layer, determine whether the local loopback test result of the upstream master controller is normal, including: If the actual data frame received by the MAC layer is consistent with the original test frame, then the local loopback test result of the upstream master controller is determined to be normal. If the actual data frame received by the MAC layer is inconsistent with the original test frame, it is determined that the local loopback test result of the upstream master controller is abnormal, and it is determined that the output network port of the upstream master controller has a hardware failure.
[0008] Optionally, after performing a local loopback test through the target master controller, the method further includes: If the local loopback test result of the target master controller is abnormal, it is determined that the input network port of the target master controller has a hardware failure.
[0009] Optionally, after sending the remote loopback test command to the target master controller and the upstream master controller via the CAN bus, the method further includes: The original test frame is sent to the network port of the target master control via the PHY port and network port through the MAC layer of the upstream master control. The test frame is sent to the MAC layer of the target master controller via the PHY port through the network port of the target master controller; The test frame is returned to the MAC layer of the upstream master controller via the MAC layer of the target master controller, and the actual data frame received by the MAC layer of the upstream master controller is obtained.
[0010] Optionally, based on the results of the remote loopback test, the location and type of the Ethernet communication fault can be determined, including: If the actual data frame received by the MAC layer of the upstream master controller is consistent with the original test frame, then it is determined that the remote loopback test result is normal and the communication protocol has failed. If the actual data frame received by the MAC layer of the upstream master controller is inconsistent with the original test frame, it is determined that the remote loopback test result is abnormal and the network cable link between the upstream master controller and the target master controller is faulty.
[0011] Optionally, detecting Ethernet communication failures and abnormal communication with the target master controller in the energy storage system includes: Based on the status value in the link status register, an Ethernet communication failure was detected and the target master control communication was abnormal; or... Heartbeat packets are periodically sent to each master controller in the energy storage system. Based on the heartbeat response data from each master controller, an Ethernet communication failure and abnormal communication of the target master controller are detected; or, In response to a user-triggered fault detection command, the system determines that there is an Ethernet communication failure and that the target master control communication is abnormal.
[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the communication fault location method of the energy storage system according to any embodiment of the present invention.
[0013] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the communication fault location method of the energy storage system according to any embodiment of the present invention.
[0014] According to another aspect of the present invention, a computer program product is provided, which, when executed by a processor, implements the communication fault location method for an energy storage system according to any embodiment of the present invention.
[0015] The technical solution provided by this invention involves the energy storage system's main controller sending a local loopback test command via the CAN bus to the upstream main controller located before the target main controller. The upstream main controller performs the local loopback test. If the upstream main controller's local loopback test result is normal, the target main controller performs the local loopback test. If the target main controller's local loopback test result is normal, a remote loopback test command is sent via the CAN bus to both the target main controller and the upstream main controller. Based on the remote loopback test results of the target main controller and the upstream main controller, the fault location and fault type of Ethernet communication are determined. This technical means can accurately determine the fault location and cause when Ethernet bus communication fails, saving the time and manpower consumed by manually checking network cables segment by segment, and improving the fault location efficiency of Ethernet communication in the energy storage system.
[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the structure of an energy storage system provided in an embodiment of the present invention; Figure 2 This is a flowchart of a communication fault location method for an energy storage system according to an embodiment of the present invention; Figure 3 This is a flowchart of another communication fault location method for an energy storage system provided according to an embodiment of the present invention; Figure 4 This is a schematic diagram of a BCU performing a local loopback test according to an embodiment of the present invention; Figure 5 This is a flowchart of another communication fault location method for an energy storage system provided according to an embodiment of the present invention; Figure 6 This is a schematic diagram of a BCU performing a remote loopback test according to an embodiment of the present invention; Figure 7 This is a flowchart of another communication fault location method for an energy storage system provided according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the structure of a communication fault location device for an energy storage system according to an embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of an electronic device that implements the communication fault location method of the energy storage system according to an embodiment of the present invention. Detailed Implementation
[0019] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0021] Figure 1 This is a schematic diagram of the structure of an energy storage system provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the energy storage system may include a central controller (BAU) and multiple master controllers (BCU1, BCU2...BCUn). The central controller can communicate with the multiple master controllers via a CAN bus, such as... Figure 1 As shown, the central controller communicates with the first master controller (BCU1) via a CAN bus, and the master controllers communicate with each other via a daisy-chain connection through the CAN bus. In addition, the central controller can also communicate with multiple master controllers via Ethernet, such as... Figure 1 As shown, the main control's network port (ETH1) is connected to the first master control (BCU1) via a network cable, and the master controls communicate with each other via network ports (JR1 and JR2).
[0022] When an Ethernet communication failure occurs, the master controller after the failure point loses connection. The test command can only be sent to the last master controller before the failure through the network cable, making it difficult to determine the specific fault type. It requires manual inspection of the network cable segment by segment, which is inefficient and cannot quickly locate the fault location and cause.
[0023] Figure 2 This is a flowchart illustrating a communication fault location method for an energy storage system according to an embodiment of the present invention. This embodiment is applicable to locating Ethernet communication faults in an energy storage system. The method can be executed by a communication fault location device for the energy storage system, which can be implemented in hardware and / or software and configured in the central control unit of the energy storage system. Figure 2 As shown, the method includes: Step 110: When an Ethernet communication fault is detected in the energy storage system and the target master controller communication is abnormal, the local loopback test command is sent to the upstream master controller located before the target master controller via the CAN bus.
[0024] In this embodiment, during the operation of the energy storage system, the central controller can send execution commands to multiple master controllers, and each master controller can provide response data to the central controller in response to the execution command. Optionally, when the central controller detects an anomaly in the response data provided by the master controllers, it can determine that there is an Ethernet communication fault in the energy storage system and designate the master controller corresponding to the abnormal response data as the target master controller.
[0025] In this step, specifically, when the central control detects an Ethernet communication failure in the energy storage system and an abnormal communication with the target master controller, it can switch the communication mode of the energy storage system to CAN bus communication and send a local loopback test command containing the target master controller's identifier to the upstream master controller preceding the target master controller via the CAN bus. Optionally, the target master controller's identifier can be the target master controller's identity document (ID). Figure 1 Taking the energy storage system shown as an example, assuming the target master controller is BCUn, the master controller can send the local loopback test command to BCUn-1.
[0026] The local loopback test command is used by the upstream master controller to test the Ethernet port inside the local chip.
[0027] Step 120: Perform a local loopback test through the upstream master controller. If the local loopback test result of the upstream master controller is normal, then perform a local loopback test through the target master controller.
[0028] In this embodiment, after receiving the local loopback test command, the upstream master controller can test the connection port between the PHY and MAC layers in the local chip and feed the test results back to the central control. If the local loopback test result of the upstream master controller is normal, the central control sends the local loopback test command to the target master controller so that the target master controller can perform the local loopback test; if the local loopback test result of the upstream master controller is abnormal, it is determined that the Ethernet port of the local chip of the upstream master controller has a hardware failure, and the communication fault location method is determined to have ended.
[0029] If the local loopback test result of the target master controller is normal, proceed to step 130; if the local loopback test result of the target master controller is abnormal, it is determined that there is a hardware failure in the Ethernet port of the local chip of the target master controller, and the communication fault location method is terminated.
[0030] Step 130: If the local loopback test result of the target master controller is normal, then the remote loopback test command is sent to the target master controller and the upstream master controller via the CAN bus, so that the target master controller and the upstream master controller can perform a remote loopback test, and determine the fault location and fault type of Ethernet communication based on the remote loopback test result.
[0031] In this step, specifically, if the local loopback test results of both the upstream master controller and the target master controller are normal, the master controller can send a remote loopback command containing the target master controller's identifier to both the upstream master controller and the target master controller. The remote loopback test command is used to test the transmission link between the upstream master controller and the target master controller. Specifically, after receiving the remote loopback test command, the upstream master controller can send a test frame to the target master controller, which then returns the test frame to the upstream master controller. During this process, the network cable link between the upstream master controller and the target master controller can be tested.
[0032] Optionally, if the remote loopback test results of the target master controller and the upstream master controller are normal, it can be determined that the network cable link is normal and the cause of the Ethernet communication failure is an abnormal communication protocol; if the remote loopback test results of the target master controller and the upstream master controller are abnormal, it can be determined that the network cable link between the upstream master controller and the target master controller has failed, and the failure type can be an open circuit, a short circuit, or poor contact, etc.
[0033] The technical solution provided by this invention involves the energy storage system's main controller sending a local loopback test command to the upstream master controller before the target master controller via a CAN bus. The upstream master controller performs the local loopback test. If the local loopback test result of the upstream master controller is normal, the target master controller performs the local loopback test. If the local loopback test result of the target master controller is normal, a remote loopback test command is sent to both the target master controller and the upstream master controller via the CAN bus. Based on the remote loopback test results of the target master controller and the upstream master controller, the technical means of determining the fault location and fault type of Ethernet communication can accurately determine the fault location and cause when Ethernet bus communication fails, saving the time and manpower consumed by manually checking network cables segment by segment, and improving the fault location efficiency of Ethernet communication in the energy storage system.
[0034] Figure 3 A flowchart illustrating another communication fault location method for an energy storage system provided in this embodiment of the invention, applied to the central control of the energy storage system, such as... Figure 3 As shown, the method includes: Step 210: When an Ethernet communication fault is detected in the energy storage system and the target master controller communication is abnormal, the local loopback test command is sent to the upstream master controller located before the target master controller via the CAN bus.
[0035] In one embodiment of this example, detecting an Ethernet communication failure and an abnormal target master control communication in an energy storage system includes: detecting an Ethernet communication failure and an abnormal target master control communication based on the status value in the link status register; or, periodically sending heartbeat packets to each master control in the energy storage system and detecting an Ethernet communication failure and an abnormal target master control communication based on the heartbeat response data fed back by each master control; or, responding to a fault detection command triggered by a user and determining an Ethernet communication failure and an abnormal target master control communication based on the fault detection command.
[0036] Specifically, based on pre-configured status values in the energy storage system, the physical layer signals of each master controller can be checked for normality. If an anomaly is detected, an Ethernet communication failure is identified, and the target master controller's communication is abnormal. Alternatively, the central controller can periodically broadcast heartbeat packets to each master controller. If a master controller fails to respond with heartbeat data or responds with abnormal data, that master controller is identified as the target master controller with a communication failure. Alternatively, users can proactively trigger fault detection commands. For example, if maintenance personnel discover a communication failure in a master controller during an inspection, a fault detection command can be triggered based on the master controller's ID.
[0037] Step 220: Send the original test frame to the receiving port of the PHY inside the switch chip through the MAC layer of the upstream master controller; send the test frame to the sending port of the PHY through the receiving port of the PHY.
[0038] Step 230: Transmit the test frame back to the MAC layer through the PHY's sending port, and determine whether the local loopback test result of the upstream master controller is normal based on the actual data frame received by the MAC layer. If yes, proceed to step 240; otherwise, proceed to step 270.
[0039] In this embodiment, specifically, Figure 4 This can be a schematic diagram of a BCU performing a local loopback test, such as... Figure 4 As shown, A is the MAC communication port of the switch chip, RX is the receive port of the PHY1 / PHY2 switch chip, TX is the transmit port of the PHY1 / PHY2 switch chip, and B / C are the ports for communication between the PHY1 / PHY2 switch chip and the network interface.
[0040] Assuming the BCU includes a PHY1 switch chip and / or a PHY2 switch chip, after receiving a local loopback test command, the BCU can first enable the loopback register of the corresponding switch chip, send the original test frame to the receiving port of the switch chip through the MAC layer, send the test frame to the transmitting port of the switch chip through the receiving port, and the transmitting port of the switch chip transmits the test frame back to the MAC layer and obtains the actual data frame received by the MAC layer.
[0041] In a specific embodiment, if the actual data frame received by the MAC layer is consistent with the original test frame, it is determined that the local loopback test result of the upstream master controller is normal, and step 240 is executed; if the actual data frame received by the MAC layer is inconsistent with the original test frame, it is determined that the local loopback test result of the upstream master controller is abnormal, and step 270 is executed.
[0042] Step 240: Perform a local loopback test on the target master controller and determine whether the local loopback test result of the target master controller is normal. If yes, proceed to step 250; otherwise, proceed to step 260.
[0043] Step 250: Send the remote loopback test command to the target master controller and the upstream master controller via the CAN bus, so that the target master controller and the upstream master controller can perform a remote loopback test, and determine the fault location and fault type of Ethernet communication based on the remote loopback test results.
[0044] Step 260: Determine that the input network port of the target master controller has a hardware failure.
[0045] Step 270: Determine that the output network port of the upstream master controller has a hardware failure.
[0046] The technical solution provided in this invention involves the energy storage system's main controller sending a local loopback test command to the upstream main controller before the target main controller via the CAN bus. The upstream main controller's MAC layer sends the original test frame to the receiving port of the PHY within the switch chip. The PHY's receiving port then sends the test frame to its transmitting port, and the PHY's transmitting port transmits the test frame back to the MAC layer. Based on the actual data frame received by the MAC layer, the system determines whether the upstream main controller's local loopback test result is normal. If not, a hardware fault is identified in the upstream main controller's output network port; if so, the target main controller performs a local loopback test to determine the target main controller's... If the local loopback test result is normal, and the target master controller's local loopback test result is normal, then the remote loopback test command is sent to the target master controller and the upstream master controller via the CAN bus. Based on the remote loopback test results of the target master controller and the upstream master controller, the fault location and fault type of Ethernet communication are determined. If the target master controller's local loopback test result is abnormal, then the input network port of the target master controller is determined to have a hardware fault. This technical means can accurately determine the fault location and cause when Ethernet bus communication fails, saving the time and manpower consumed by manually checking the network cable segment by segment, and improving the fault location efficiency of Ethernet communication in energy storage systems.
[0047] Figure 5 A flowchart illustrating another communication fault location method for an energy storage system provided in this embodiment of the invention, applied to the central control of the energy storage system, such as... Figure 5 As shown, the method includes: Step 310: When an Ethernet communication fault is detected in the energy storage system and the target master controller communication is abnormal, the local loopback test command is sent to the upstream master controller located before the target master controller via the CAN bus.
[0048] Step 320: Perform a local loopback test through the upstream master controller. If the local loopback test result of the upstream master controller is normal, then perform a local loopback test through the target master controller.
[0049] Step 330: If the local loopback test result of the target master controller is normal, then the remote loopback test command is sent to the target master controller and the upstream master controller via the CAN bus.
[0050] Step 340: Send the original test frame to the network port of the target master control via the PHY port and network port through the MAC layer of the upstream master control; send the test frame to the MAC layer of the target master control via the PHY port through the network port of the target master control.
[0051] Step 350: The test frame is returned to the MAC layer of the upstream master controller via the MAC layer of the target master controller, and the actual data frame received by the MAC layer of the upstream master controller is obtained.
[0052] In this embodiment, Figure 6 This is a schematic diagram of a BCU performing a remote loopback test, as shown below. Figure 6 As shown, assuming the target master controller is BCUn and the upstream master controller is BCUn-1, after receiving the remote loopback test command, the target master controller and the upstream master controller can first send the original test frame through the MAC layer in BCUn-1 to the network port of BCUn via the local PHY port and network port. The network port of BCUn can send the test frame to the MAC layer of BCUn via the local PHY port. After receiving the test frame, the MAC layer of BCUn does not perform data parsing, but directly returns the received test frame to the network port of BCUn-1 via the local PHY port and network port. Finally, the network port of BCUn-1 returns the test frame to the MAC layer of BCUn-1 via the local PHY port and obtains the actual data frame received by the MAC layer in BCUn-1.
[0053] Step 360: Based on the remote loopback test results of the target master controller and the upstream master controller, determine the fault location and fault type of the Ethernet communication.
[0054] In one embodiment of this example, the location and type of Ethernet communication fault are determined based on the remote loopback test results of the target master controller and the upstream master controller. This includes: if the actual data frame received by the MAC layer of the upstream master controller is consistent with the original test frame, then the remote loopback test result is determined to be normal, and the communication protocol has failed; if the actual data frame received by the MAC layer of the upstream master controller is inconsistent with the original test frame, then the remote loopback test result is determined to be abnormal, and the network cable link between the upstream master controller and the target master controller has failed.
[0055] The technical solution provided in this invention involves the energy storage system's main controller sending a local loopback test command to the upstream master controller before the target master controller via the CAN bus. The upstream master controller then performs the local loopback test. If the upstream master controller's local loopback test result is normal, the target master controller performs the local loopback test. If the target master controller's local loopback test result is normal, a remote loopback test command is sent to both the target master controller and the upstream master controller via the CAN bus. The upstream master controller's MAC layer then sends the original test frame to the target master controller's network port via the PHY port and network port. Finally, the target master controller's... The network port sends test frames to the MAC layer of the target master controller via the PHY port. The test frames are then returned to the MAC layer of the upstream master controller via the same path through the MAC layer of the target master controller. The actual data frames received by the MAC layer of the upstream master controller are obtained. Based on the remote loopback test results of the target master controller and the upstream master controller, this technical means of determining the fault location and fault type of Ethernet communication can accurately determine the fault location and fault cause when Ethernet bus communication fails. This saves the time and manpower consumed by manually checking network cables segment by segment, and improves the fault location efficiency of Ethernet communication in energy storage systems.
[0056] Based on the above implementation methods, in order to better explain the technical solution of this embodiment, please refer to... Figure 7 The flowchart of the communication fault location method for the energy storage system shown is as follows: Figure 7 As shown, the method may include the following steps: During the communication between the BAU and BCU via Ethernet, Ethernet communication faults can be determined based on the status value of the link status register, the heartbeat response data periodically fed back by the BCU, or the fault detection command triggered manually. The BAU switches the communication mode to CAN bus communication, broadcasts heartbeat packets to the BCU link via the CAN bus, and locates the BCUn with communication abnormality based on the response data fed back by each BCU. BAU sends the local loopback test command to BCUn-1 upstream of BCUn, and BCUn-1 performs the local loopback test and returns the test result. If the BCUn-1 local loopback test fails, it indicates a hardware failure in the BCUn-1 output port (JR2); if the BCUn-1 local loopback test is normal, the BAU will send the local loopback test command to the BCUn. If the BCUn local loopback test fails, it indicates a hardware failure at the BCUn input port (JR1); if the BCUn local loopback test is normal, the BAU will send a remote loopback test command to BCUn-1 and BCUn. If the remote loopback test results of BCUn-1 and BCUn are abnormal, it indicates that the network cable is open, short-circuited, or has poor contact; if the remote loopback test results of BCUn-1 and BCUn are normal, it indicates that the Ethernet upper-layer protocol has failed.
[0057] The above embodiments provide a method for BAU to actively locate Ethernet communication faults. After an Ethernet communication failure occurs, the use of CAN bus to issue test commands can ensure the real-time nature of the fault location results and distinguish different fault causes in a fine-grained manner (such as port hardware failure, abnormal network cable connection, upper layer protocol failure, etc.).
[0058] Based on the above implementation method, this embodiment can also display the fault location and fault type to the operation and maintenance personnel through a visual interface, and provide corresponding handling suggestions. Table 1 can be a mapping table of fault location results and handling suggestions. The advantage of this setting is that it can facilitate the operation and maintenance personnel to solve the fault in a timely manner and improve the convenience of the energy storage system maintenance process.
[0059] Table 1 Figure 8 This is a schematic diagram of a communication fault location device for an energy storage system provided in an embodiment of the present invention. The energy storage system deploys multiple master controllers, and the master controller is connected to the multiple master controllers via a CAN bus and Ethernet communication. The device is applied to the master controller of the energy storage system, such as... Figure 8 As shown, the device includes: a command sending module 810, a local testing module 820, and a remote testing module 830.
[0060] The instruction sending module 810 is used to send a local loopback test instruction to the upstream master controller located before the target master controller via the CAN bus when an Ethernet communication failure is detected in the energy storage system and the target master controller communication is abnormal. The local test module 820 is used to perform local loopback tests through the upstream master control. If the local loopback test result of the upstream master control is normal, the local loopback test is performed through the target master control. The remote test module 830 is used to send a remote loopback test command to the target master controller and the upstream master controller via the CAN bus if the local loopback test result of the target master controller is normal, so that the target master controller and the upstream master controller can perform a remote loopback test, and determine the fault location and fault type of Ethernet communication based on the remote loopback test result.
[0061] The technical solution provided by this invention involves the energy storage system's main controller sending a local loopback test command to the upstream master controller before the target master controller via a CAN bus. The upstream master controller performs the local loopback test. If the local loopback test result of the upstream master controller is normal, the target master controller performs the local loopback test. If the local loopback test result of the target master controller is normal, a remote loopback test command is sent to both the target master controller and the upstream master controller via the CAN bus. Based on the remote loopback test results of the target master controller and the upstream master controller, the technical means of determining the fault location and fault type of Ethernet communication can accurately determine the fault location and cause when Ethernet bus communication fails, saving the time and manpower consumed by manually checking network cables segment by segment, and improving the fault location efficiency of Ethernet communication in the energy storage system.
[0062] Based on the above embodiments, the instruction sending module 810 includes: The anomaly determination unit is used to detect Ethernet communication failure and target master control communication failure based on the status value in the link status register; or, periodically send heartbeat packets to each master controller in the energy storage system and detect Ethernet communication failure and target master control communication failure based on the heartbeat response data fed back by each master controller; or, in response to a fault detection command triggered by the user, determine Ethernet communication failure and target master control communication failure based on the fault detection command.
[0063] Local test module 820 includes: The test frame sending unit is used to send the original test frame to the receiving port of the PHY inside the switch chip through the MAC layer of the upstream master control; send the test frame to the sending port of the PHY through the receiving port of the PHY; and transmit the test frame back to the MAC layer through the sending port of the PHY. Based on the actual data frame received by the MAC layer, it determines whether the local loopback test result of the upstream master control is normal. The test frame comparison unit is used to determine that the local loopback test result of the upstream master control is normal if the actual data frame received by the MAC layer is consistent with the original test frame; and to determine that the local loopback test result of the upstream master control is abnormal and that there is a hardware failure in the output network port of the upstream master control if the actual data frame received by the MAC layer is inconsistent with the original test frame. The target master control analysis unit is used to determine if there is a hardware failure in the input network port of the target master control if the local loopback test result of the target master control is abnormal.
[0064] The remote testing module 830 includes: The remote data transmission unit is used to send the original test frame to the network port of the target master through the MAC layer of the upstream master, via the PHY port and the network port; send the test frame to the MAC layer of the target master through the network port of the target master via the PHY port; and return the test frame to the MAC layer of the upstream master through the MAC layer of the target master, and obtain the actual data frame received by the MAC layer of the upstream master. The fault determination unit is used to determine that if the actual data frame received by the MAC layer of the upstream master controller is consistent with the original test frame, the remote loopback test result is normal and the communication protocol has failed; if the actual data frame received by the MAC layer of the upstream master controller is inconsistent with the original test frame, the remote loopback test result is abnormal and the network cable link between the upstream master controller and the target master controller has failed.
[0065] The above-described apparatus can execute the methods provided in all the foregoing embodiments of the present invention, and has the corresponding functional modules and beneficial effects for executing the above methods. Technical details not described in detail in the embodiments of the present invention can be found in the methods provided in all the foregoing embodiments of the present invention.
[0066] Figure 9 A schematic diagram of the structure of an electronic device 10 that can be used to implement embodiments of the present invention is shown. For example... Figure 9 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) or a random access memory (RAM), communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the read-only memory 12 or loaded from the storage unit 18 into the random access memory 13. The random access memory 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, the read-only memory 12, and the random access memory 13 are interconnected via a bus 14. Input / output (I / O) interfaces are also connected to the bus 14.
[0067] Multiple components in electronic device 10 are connected to input / output interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of monitors, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0068] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processing (DSP) processors, and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as communication fault location methods for energy storage systems.
[0069] In some embodiments, the communication fault location method for the energy storage system can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via read-only memory 12 and / or communication unit 19. When the computer program is loaded into random access memory 13 and executed by processor 11, one or more steps of the communication fault location method for the energy storage system described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the communication fault location method for the energy storage system by any other suitable means (e.g., by means of firmware).
[0070] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-chips (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0071] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0072] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0073] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD)) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0074] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0075] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system. It addresses the shortcomings of traditional physical hosts and Virtual Private Servers (VPS) in terms of management difficulty and weak business scalability.
[0076] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0077] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for locating communication faults in an energy storage system, characterized in that, The energy storage system is equipped with a central controller and multiple master controllers, which are connected to each other via a controller area network (CAN) bus and an Ethernet communication network. The method is applied to the central control system and includes: When an Ethernet communication failure is detected in the energy storage system and the target master controller communication is abnormal, the local loopback test command is sent to the upstream master controller located before the target master controller via the CAN bus; If the local loopback test of the upstream master controller is normal, then the local loopback test is performed through the target master controller. If the local loopback test result of the target master controller is normal, the remote loopback test command is sent to the target master controller and the upstream master controller via the CAN bus, so that the target master controller and the upstream master controller can perform a remote loopback test, and the fault location and fault type of Ethernet communication can be determined based on the remote loopback test result.
2. The method according to claim 1, characterized in that, Performing a local loopback test via the upstream master controller includes: The original test frame is sent to the receiving port of the physical layer PHY inside the switch chip through the media access control (MAC) layer of the upstream master controller. The test frame is sent to the PHY's transmit port through the PHY's receive port; The test frame is transmitted back to the MAC layer through the PHY's transmission port, and the MAC layer determines whether the local loopback test result of the upstream master controller is normal based on the actual data frame received.
3. The method according to claim 2, characterized in that, Based on the actual data frames received by the MAC layer, determine whether the local loopback test result of the upstream master controller is normal, including: If the actual data frame received by the MAC layer is consistent with the original test frame, then the local loopback test result of the upstream master controller is determined to be normal. If the actual data frame received by the MAC layer is inconsistent with the original test frame, it is determined that the local loopback test result of the upstream master controller is abnormal, and it is determined that the output network port of the upstream master controller has a hardware failure.
4. The method according to claim 1, characterized in that, After performing a local loopback test through the target master controller, the process also includes: If the local loopback test result of the target master controller is abnormal, it is determined that the input network port of the target master controller has a hardware failure.
5. The method according to claim 1, characterized in that, After sending the remote loopback test command to the target master controller and the upstream master controller via the CAN bus, the process also includes: The original test frame is sent to the network port of the target master control via the PHY port and network port through the MAC layer of the upstream master control. The test frame is sent to the MAC layer of the target master controller via the PHY port through the network port of the target master controller; The test frame is returned to the MAC layer of the upstream master controller via the MAC layer of the target master controller, and the actual data frame received by the MAC layer of the upstream master controller is obtained.
6. The method according to claim 5, characterized in that, Based on the results of the remote loopback test, determine the location and type of the Ethernet communication fault, including: If the actual data frame received by the MAC layer of the upstream master controller is consistent with the original test frame, then it is determined that the remote loopback test result is normal and the communication protocol has failed. If the actual data frame received by the MAC layer of the upstream master controller is inconsistent with the original test frame, it is determined that the remote loopback test result is abnormal and the network cable link between the upstream master controller and the target master controller is faulty.
7. The method according to claim 1, characterized in that, The detection of Ethernet communication failures and abnormal communication between the target master controller and the energy storage system includes: Based on the status value in the link status register, an Ethernet communication failure was detected and the target master control communication was abnormal; or... Heartbeat packets are periodically sent to each master controller in the energy storage system. Based on the heartbeat response data from each master controller, an Ethernet communication failure and abnormal communication of the target master controller are detected; or, In response to a user-triggered fault detection command, the system determines that there is an Ethernet communication failure and that the target master control communication is abnormal.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the communication fault location method for the energy storage system according to any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the communication fault location method of the energy storage system according to any one of claims 1-7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the communication fault location method for an energy storage system according to any one of claims 1-7.
