A method and apparatus for managing communications of an energy storage device and a medium
By sending heartbeat messages and recording response timestamps to calculate time delay, the problem of inaccurately determining the communication connection status between energy storage devices and management servers in existing technologies is solved, enabling quantitative assessment of communication connection status and priority transmission of important message data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XIAMEN LIANGDAO ENERGY DEVELOPMENT CO LTD
- Filing Date
- 2026-05-06
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, relying solely on the response of heartbeat messages cannot accurately determine the communication connection status between energy storage devices and management servers. In particular, when the communication link quality is poor, it is impossible to determine the working status and communication connection status of the energy storage devices.
By sending heartbeat messages and recording response timestamps, calculating time delays, and combining these with preset time delays, the communication connection status can be determined, thus achieving a quantitative assessment of the communication connection status.
Accurately determining the communication connection status between energy storage devices and device servers solves the problem in existing technologies that cannot accurately determine the working status and communication connection status of energy storage devices, ensuring priority transmission of important message data and rational utilization of resources.
Smart Images

Figure CN122247898A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a communication management method, apparatus and medium for energy storage devices. Background Technology
[0002] With the development of new energy power generation, microgrids, and smart grids, the communication management of energy storage devices is becoming increasingly important in scenarios such as power frequency regulation, peak shaving and valley filling, emergency power supply, and new energy consumption. Specifically, during the operation of energy storage devices, the management server responsible for controlling the energy storage devices needs to periodically check the working status of the energy storage devices, including whether they are currently in online or offline mode, and the communication connection status between the energy storage devices and the management server, in order to achieve management and control of the operation of the energy storage devices.
[0003] In existing technologies, a heartbeat detection mechanism is typically used to determine the working status of energy storage devices and the communication connection status between the energy storage devices and the management server. Specifically, the management server and the energy storage devices periodically exchange heartbeat messages, and the communication connection between the energy storage devices and the management server is confirmed to be normal through the heartbeat messages and response heartbeat messages.
[0004] However, in existing technical solutions, the working status of energy storage devices and the communication connection between energy storage devices and management servers are determined solely by the response of heartbeat messages. When the communication link quality between energy storage devices and management servers is poor, it is impossible to accurately determine the working status of energy storage devices and the communication connection status between the two. Summary of the Invention
[0005] The embodiments of the present invention provide a communication management method, apparatus and medium for energy storage devices. This method not only relies on the response of heartbeat messages to determine the communication connection status between the energy storage device and the device server, but also further determines the communication connection status between the energy storage device and the device server more accurately based on time delay, thereby realizing a quantitative assessment of the communication connection status. This solves the problem in the prior art that when the communication link quality between the energy storage device and the management server is poor, it is impossible to accurately determine the working status of the energy storage device and the communication connection status between the two.
[0006] To achieve the above objectives, in a first aspect, embodiments of the present invention provide a communication management method for an energy storage device, applied to a device server, characterized in that the method includes: In response to a login connection request sent by an energy storage device, the system performs a login operation on the energy storage device. After verifying successful login, the system periodically sends heartbeat messages to the energy storage device at preset intervals. The heartbeat messages include at least the sending timestamp of the device server. When a response heartbeat message is periodically received from the energy storage device, the target receiving timestamp of the device server corresponding to the last received response heartbeat message is determined and saved. The time delay is calculated based on the sending timestamp of each heartbeat message sent to the energy storage device and the target receiving timestamp. The communication connection status between the energy storage device and the device server is determined based on the time delay and the preset time delay.
[0007] In one embodiment, the preset time delay includes: a first preset time delay, and determining the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay includes: The time delay is compared with the first preset time delay. If the time delay is greater than the first preset time delay, the communication connection between the energy storage device and the device server is determined to be disconnected.
[0008] In one embodiment, the method further includes: When the energy storage device successfully logs in, the relevant working information of the energy storage device is saved. The working information includes: the device information of the energy storage device, the working status is online, and the target receiving timestamp.
[0009] In one embodiment, the method further includes: After determining that the communication connection between the energy storage device and the device server is disconnected, stop sending heartbeat messages to the energy storage device, and obtain and record the abnormal reason for the disconnection. Clear the saved operational information related to the energy storage device.
[0010] In one embodiment, the method further includes: In response to a re-login connection request sent by the energy storage device, the system re-logins to the energy storage device and, upon successful re-login, receives the working data sent by the energy storage device. The working data is the real-time working data generated by the energy storage device during the period when its communication connection with the device server was disconnected.
[0011] In one embodiment, the preset time delay further includes: a second preset time delay and a third preset time delay, wherein the second preset time delay is less than the third preset time delay, and determining the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay further includes: When the time delay is less than the second preset time delay, the communication connection status is determined to be that the communication connection is not disconnected, and the link status level of the communication connection is excellent. When the time delay is greater than or equal to the second preset time delay and less than the third preset time delay, the communication connection status is determined to be "communication connection not disconnected" and the link status level of the communication connection is "good"; or When the time delay is greater than or equal to the third preset time delay, the communication connection status is determined to be that the communication connection is not disconnected, and the link status level of the communication connection is poor.
[0012] In one embodiment, the method further includes: When the link status level of the communication connection is excellent or good, the energy storage device sends message data according to message type priority; the message type priority is: first priority for login and response heartbeat messages, second priority for instruction response messages corresponding to operation instructions sent by the server, third priority for alarm event messages, and fourth priority for working data messages; or When the link status level of the communication connection is poor, the message data sent by the energy storage device according to the first priority, the second priority and the third priority are received.
[0013] In one embodiment, the method further includes: The communication connection status, alarm information, and working data are sent to the operation and maintenance platform so that staff can obtain relevant information about the energy storage device through the operation and maintenance platform.
[0014] In a second aspect, embodiments of the present invention provide a communication management device for an energy storage device, applied to a device server, comprising: The heartbeat message sending module is used to respond to the login connection request sent by the energy storage device, perform a login operation on the energy storage device, and after verifying successful login, periodically send heartbeat messages to the energy storage device according to a preset interval. The heartbeat message includes at least the sending timestamp of the device server. The target receiving timestamp determination module is used to determine and save the target receiving timestamp of the device server corresponding to the last received response heartbeat message when the response heartbeat message sent by the energy storage device is received periodically. The time delay calculation module is used to calculate the time delay based on the sending timestamp of each heartbeat message sent to the energy storage device and the target receiving timestamp. The communication connection status determination module is used to determine the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay.
[0015] Thirdly, embodiments of the present invention provide a computer-readable storage medium storing at least one program, which is executed by a processor to implement the steps of the communication management method for the energy storage device as described in the first aspect.
[0016] The above technical solution has the following technical effects: Thus, the communication management method for energy storage devices provided in this embodiment is applied to a device server. The device server responds to login connection requests sent by the energy storage device, performs a login operation, and after successful login verification, periodically sends heartbeat messages to the energy storage device at preset intervals. Each heartbeat message includes at least the sending timestamp of the device server. Upon periodically receiving a response heartbeat message from the energy storage device, the target receiving timestamp of the last received response heartbeat message is determined and saved. This allows for the calculation of time delay based on the sending timestamp and target receiving timestamp of each heartbeat message sent to the energy storage device, and the determination of the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay. This method not only relies on the heartbeat message response to determine the communication connection status between the energy storage device and the device server, but also further determines the communication connection status between the energy storage device and the device server more accurately based on the time delay, thereby achieving a quantitative assessment of the communication connection status. This solves the problem in the existing technology that when the communication link quality between the energy storage device and the management server is poor, it is impossible to accurately determine the working status of the energy storage device and the communication connection status between the two. Attached Figure Description
[0017] Figure 1 A flowchart illustrating a communication management method for an energy storage device according to an embodiment of the present invention; Figure 2 This is a schematic diagram of a communication management device for an energy storage device according to an embodiment of the present invention. Detailed Implementation
[0018] To further illustrate the various embodiments, the present invention provides accompanying drawings. These drawings are part of the disclosure of the present invention and are mainly used to illustrate the embodiments, and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these drawings, those skilled in the art should be able to understand other possible implementations and the advantages of the present invention. Components in the drawings are not drawn to scale, and similar component symbols are generally used to represent similar components.
[0019] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments.
[0020] Example 1: Figure 1This is a flowchart illustrating a communication management method for an energy storage device according to an embodiment of the present invention. The method is applied to a device server, which can be a secondary device server corresponding to a secondary energy storage device and used to manage the secondary energy storage device. The secondary energy storage device connects to the secondary device server for communication via the ProtoBuf protocol. Correspondingly, the device server can also be a tertiary device server, corresponding to a tertiary energy storage device and used to manage the tertiary energy storage device. The tertiary energy storage device connects to the tertiary device server for communication via the XML protocol. In this embodiment, the method specifically includes the following steps: S10: Respond to the login connection request sent by the energy storage device, perform login operation on the energy storage device, and after verifying successful login, periodically send heartbeat messages to the energy storage device according to a preset interval.
[0021] The heartbeat message includes at least: the sending timestamp of the device server, which is the current system time of the device server; and the identification information of the energy storage device, which is used to identify the energy storage device to which the heartbeat message is sent.
[0022] The aforementioned preset interval refers to the time interval at which the device server periodically sends heartbeat messages to the energy storage device. This preset interval may be, for example, 5 seconds, but is not limited thereto. This embodiment does not impose specific limitations, and those skilled in the art can set it according to actual conditions.
[0023] Specifically, the energy storage device sends a login connection request to the device server to request the device server to perform a login operation. The device server responds to the login connection request sent by the energy storage device, performs the login operation on the energy storage device, and verifies whether the login is successful. After verifying the login is successful, the device server periodically sends heartbeat messages to the energy storage device according to a preset interval.
[0024] Optionally, based on the above embodiments, in some embodiments of the present invention, when the energy storage device successfully logs in, the relevant working information of the energy storage device is saved. The working information includes: the device information of the energy storage device, such as the device identifier of the energy storage device, the working status being online, and the target receiving timestamp.
[0025] S11: When periodically receiving response heartbeat messages from energy storage devices, determine and save the target receiving timestamp of the device server corresponding to the last received response heartbeat message.
[0026] The response heartbeat message includes: the identification information of the energy storage device, the timestamp of the response heartbeat message sent by the energy storage device, and the timestamp of the device server.
[0027] Specifically, when the energy storage device periodically receives a heartbeat message from the device server, it will periodically send a response heartbeat message to the device server based on the communication connection status between the energy storage device and the device server. When the device server periodically receives a response heartbeat message from the energy storage device, it determines and saves the target receiving timestamp of the device server corresponding to the last received response heartbeat message.
[0028] It should be noted that when the communication connection between the energy storage device and the device server is not broken, the energy storage device can send a response heartbeat message to the device server when it receives a heartbeat message from the device server. Conversely, when the communication connection between the energy storage device and the device server is broken, the energy storage device cannot send a response heartbeat message to the device server when it receives a heartbeat message from the device server.
[0029] For example, when the device server sends a heartbeat message to the energy storage device for the first time, the timestamp of the sending heartbeat message by the device server is determined to be T1. For the energy storage device, if the communication connection between the energy storage device and the device server is good, it sends a first response heartbeat message to the device server. When the device server receives the first response heartbeat message, it obtains and saves the timestamp of receiving the first response heartbeat message as T2. After a preset interval of 5 seconds, the device server needs to send a second heartbeat message to the energy storage device, and the timestamp of the sending heartbeat message by the device server is determined to be T3. For the energy storage device... If the current communication connection between the energy storage device and the device server is good, the device sends a second response heartbeat message to the device server. When the device server receives the second response heartbeat message, it obtains the receiving timestamp of the second response heartbeat message as T4. At this time, the previously saved receiving timestamp T2 is updated using the receiving timestamp T4. In this way, when the device server periodically receives response heartbeat messages sent by the energy storage device, it determines and saves the target receiving timestamp of the device server corresponding to the last received response heartbeat message. However, it is not limited to this. This embodiment does not have specific limitations. Those skilled in the art can set it according to the actual situation.
[0030] S12: Calculate the time delay based on the sending timestamp of each heartbeat message sent to the energy storage device and the target receiving timestamp.
[0031] Specifically, each time the device server sends a heartbeat message to the energy storage device, it obtains the sending timestamp of the current heartbeat message sent by the device server, and performs a difference operation based on the current sending timestamp and the target receiving timestamp of the device server corresponding to the last response heartbeat message to obtain the time delay.
[0032] For example, when the target reception timestamp of the device server corresponding to the last received response heartbeat message is T A When a heartbeat message is sent to the energy storage device at the preset interval t (i.e., at the t-th 5-second interval), the current sending timestamp of the device server is obtained as T. B Thus, the time delay is determined to be T. B -T A However, this embodiment is not limited to this, and those skilled in the art can set it according to the actual situation.
[0033] S13: Determine the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay.
[0034] Optionally, based on the above embodiments, the preset time delay includes: a first preset time delay, which is a value set to determine whether the communication connection between the energy storage device and the device server is disconnected or not disconnected. This first preset time delay can be, for example, 2 minutes. Therefore, in some embodiments of the present invention, one implementation of S13 can be: S131: Compare the time delay with the first preset time delay. If the time delay is greater than the first preset time delay, determine that the communication connection between the energy storage device and the device server is disconnected.
[0035] Specifically, after determining each time delay, the time delay is compared with the first preset time delay. When it is determined that the time delay is greater than the first preset time delay, the communication connection status between the energy storage device and the device server is determined to be disconnected.
[0036] Optionally, based on the above embodiments, in some embodiments of the present invention, after determining that the communication connection status between the energy storage device and the device server is disconnected, the method further includes the following after executing S13: S30: After determining that the communication connection between the energy storage device and the device server is disconnected, stop sending heartbeat messages to the energy storage device, and obtain and record the abnormal reason for the communication connection disconnection.
[0037] S31: Clear the saved operational information related to the energy storage device.
[0038] Specifically, once it is determined that the communication connection between the energy storage device and the device server is broken, the device server stops sending heartbeat messages to the energy storage device, obtains and saves the reason for the current communication connection being broken, and further clears the saved working information related to the energy storage device, such as the device information, the working status (online), and the target receiving timestamp.
[0039] In this way, when the communication connection between the energy storage device and the server is lost, the cause of the disconnection can be obtained and recorded, allowing staff to understand the reason for the disconnection and perform timely maintenance. Furthermore, by stopping the sending of heartbeat messages to the energy storage device and clearing the stored operational information related to the energy storage device, resources occupied by the energy storage device when it is out of service can be saved.
[0040] Optionally, based on the above embodiments, the preset time delay further includes: a second preset time delay and a third preset time delay, wherein the second preset time delay is less than the third preset time delay. The second preset time delay and the third preset time delay are used to determine the link status level of the communication connection when the communication connection between the energy storage device and the device server is not disconnected. Based on this, in some embodiments of the present invention, another implementation of S13 may be: S132: When the time delay is less than the second preset time delay, the communication connection status is determined to be that the communication connection is not disconnected and the link status level of the communication connection is excellent.
[0041] Specifically, after determining each time delay, the time delay is compared with the second preset time delay. When the time delay is determined to be less than the second preset time delay, the communication connection status between the energy storage device and the device server is determined to be that the communication connection is not broken, and the link status level of the communication connection between the energy storage device and the device server is excellent.
[0042] S133: When the time delay is greater than or equal to the second preset time delay and less than the third preset time delay, the communication connection status is determined to be that the communication connection is not disconnected, and the link status level of the communication connection is good.
[0043] Specifically, after determining each time delay, the time delay is compared with the second preset time delay and the third preset time delay. When the time delay is greater than or equal to the second preset time delay and less than the third preset time delay, the communication connection status between the energy storage device and the device server is determined to be that the communication connection is not disconnected, and the link status level of the communication connection between the energy storage device and the device server is good.
[0044] Optionally, based on the above embodiments, in some embodiments of the present invention, when the link status level of the communication connection is excellent or good, the message data sent by the energy storage device according to the message type priority is received.
[0045] The message type priorities are as follows: login and response heartbeat messages have the first priority, instruction response messages that respond to operation instructions sent by the server have the second priority, alarm event messages have the third priority, and working data messages have the fourth priority.
[0046] Specifically, when the link status level of the communication connection between the energy storage device and the device server is determined to be excellent or good, the energy storage device sends message data to the device server according to message type priority. First, it sends a first-priority login and response heartbeat message; then, it sends a second-priority instruction response message responding to the operation instructions sent by the server; next, it sends a third-priority alarm event message; and finally, it sends a fourth-priority working data message. Correspondingly, the device server receives the first-priority login and response heartbeat message, the second-priority instruction response message, the third-priority alarm event message, and the fourth-priority working data message sent by the energy storage device.
[0047] S134: When the time delay is greater than or equal to the third preset time delay, the communication connection status is determined to be that the communication connection is not disconnected, and the link status level of the communication connection is poor.
[0048] Specifically, after determining each time delay, the time delay is compared with the third preset time delay. When the time delay is greater than or equal to the third preset time delay, the communication connection status between the energy storage device and the device server is determined to be that the communication connection is not broken, and the link status level of the communication connection between the energy storage device and the device server is poor.
[0049] Optionally, based on the above embodiments, in some embodiments of the present invention, when the link status level of the communication connection is poor, the message data sent by the energy storage device according to the first priority, the second priority, and the third priority is received.
[0050] Specifically, when the link status level of the communication connection between the energy storage device and the device server is determined to be poor, the energy storage device sends login and response heartbeat messages, command response messages, and alarm event messages to the device server according to the first priority, second priority, and third priority, respectively. Correspondingly, the device server receives the first-priority login and response heartbeat messages, the second-priority command response messages, and the third-priority alarm event messages sent by the energy storage device.
[0051] In this way, the priority of message data transmission between the energy storage device and the device server can be dynamically adjusted according to the link status level of the communication connection, ensuring that important message data is transmitted first between the energy storage device and the device server, and avoiding the risk of alarm delay due to upload delay of important message data.
[0052] Thus, the communication management method for energy storage devices provided in this embodiment is applied to a device server. The device server responds to login connection requests sent by the energy storage device, performs a login operation, and after successful login verification, periodically sends heartbeat messages to the energy storage device at preset intervals. Each heartbeat message includes at least the device server's sending timestamp. Upon periodically receiving a response heartbeat message from the energy storage device, the target receiving timestamp of the last received response heartbeat message is determined and saved. This allows for the calculation of time delay based on the sending timestamp and target receiving timestamp of each heartbeat message sent to the energy storage device. Based on this time delay and the preset time delay, the communication connection status between the energy storage device and the device server is determined. This method not only relies on the heartbeat message response to determine the communication connection status between the energy storage device and the device server, but also uses time delay to more accurately determine the communication connection status, achieving a quantitative assessment of the communication connection status. This solves the problem in existing technologies where the working status of the energy storage device and the communication connection status cannot be accurately determined when the communication link quality between the energy storage device and the management server is poor.
[0053] Optionally, based on the above embodiments, after determining that the communication connection between the energy storage device and the device server is disconnected, some embodiments of the present invention further include: In response to the reconnection request sent by the energy storage device, the device re-logins to the energy storage device, and after successful reconnection, it receives the working data sent by the energy storage device.
[0054] The working data refers to the real-time operating data generated by the energy storage device during the period when its communication connection with the device server is interrupted. This real-time operating data may include, for example, the real-time operating data corresponding to the AC-side battery management system, cluster-level battery management system, module-level battery management system, and energy management system, respectively.
[0055] In this way, even when the communication connection between the energy storage device and the device server is lost, the device can still obtain real-time working data generated during the period of disconnection after a successful re-login. This ensures that staff can obtain complete working information about the energy storage device and achieve effective operation and maintenance management.
[0056] Optionally, based on the above embodiments, some embodiments of the present invention further include: sending communication connection status, alarm information and working data to the operation and maintenance platform, so that staff can obtain relevant information of the energy storage device through the operation and maintenance platform and realize effective operation and maintenance management of the energy storage device.
[0057] Example 2: Figure 2 This is a schematic diagram of a communication management device for an energy storage device according to an embodiment of the present invention, as shown below. Figure 2 As shown, it includes: a heartbeat message sending module 10, a target receiving timestamp determination module 11, a time delay calculation module 12, and a communication connection status determination module 13.
[0058] The heartbeat message sending module 10 is used to respond to the login connection request sent by the energy storage device, perform login operation on the energy storage device, and after verifying successful login, periodically send heartbeat messages to the energy storage device according to a preset interval. The heartbeat message includes at least the sending timestamp of the device server.
[0059] The target receiving timestamp determination module 11 is used to determine and save the target receiving timestamp of the device server corresponding to the last received response heartbeat message when periodically receiving response heartbeat messages sent by the energy storage device.
[0060] The time delay calculation module 12 is used to calculate the time delay based on the sending timestamp of each heartbeat message sent to the energy storage device and the target receiving timestamp.
[0061] The communication connection status determination module 13 is used to determine the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay.
[0062] In this embodiment, the heartbeat message sending module responds to the login connection request sent by the energy storage device, performs a login operation on the energy storage device, and after verifying successful login, periodically sends heartbeat messages to the energy storage device at preset intervals. The heartbeat message includes at least the sending timestamp of the device server. The target receiving timestamp determination module determines and saves the target receiving timestamp of the device server corresponding to the last received response heartbeat message when it periodically receives a response heartbeat message from the energy storage device. The time delay calculation module calculates the time delay based on the sending timestamp of each heartbeat message sent to the energy storage device and the target receiving timestamp. The communication connection status determination module determines the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay. This approach goes beyond simply relying on heartbeat message responses to determine the communication connection status between the energy storage device and the device server. Instead, it uses time delay to more accurately determine the communication connection status, thus achieving a quantitative assessment of the communication connection status. This solves the problem in existing technologies where the working status of the energy storage device and the communication connection status between the two are difficult to accurately determine when the communication link quality between the energy storage device and the management server is poor.
[0063] Example 3: The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described in the embodiments of the present invention.
[0064] If the modules / units integrated in the computer unit are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction.
[0065] Although the invention has been specifically shown and described in conjunction with preferred embodiments, those skilled in the art should understand that various changes in form and detail may be made to the invention without departing from the spirit and scope of the invention as defined in the appended claims, all of which shall be within the scope of protection of the invention.
Claims
1. A communication management method for an energy storage device, applied to a device server, characterized in that, The method includes: In response to a login connection request sent by an energy storage device, the system performs a login operation on the energy storage device. After verifying successful login, the system periodically sends heartbeat messages to the energy storage device at preset intervals. The heartbeat messages include at least the sending timestamp of the device server. When a response heartbeat message is periodically received from the energy storage device, the target receiving timestamp of the device server corresponding to the last received response heartbeat message is determined and saved. The time delay is calculated based on the sending timestamp of each heartbeat message sent to the energy storage device and the target receiving timestamp. The communication connection status between the energy storage device and the device server is determined based on the time delay and the preset time delay.
2. The method according to claim 1, characterized in that, The preset time delay includes: a first preset time delay; determining the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay includes: The time delay is compared with the first preset time delay. If the time delay is greater than the first preset time delay, the communication connection between the energy storage device and the device server is determined to be disconnected.
3. The method according to claim 2, characterized in that, The method further includes: When the energy storage device successfully logs in, the relevant working information of the energy storage device is saved. The working information includes: the device information of the energy storage device, the working status is online, and the target receiving timestamp.
4. The method according to claim 3, characterized in that, The method further includes: After determining that the communication connection between the energy storage device and the device server is disconnected, stop sending heartbeat messages to the energy storage device, and obtain and record the abnormal reason for the disconnection. Clear the saved operational information related to the energy storage device.
5. The method according to claim 4, characterized in that, The method further includes: In response to a re-login connection request sent by the energy storage device, the system re-logins to the energy storage device and, upon successful re-login, receives the working data sent by the energy storage device. The working data is the real-time working data generated by the energy storage device during the period when its communication connection with the device server was disconnected.
6. The method according to claim 5, characterized in that, The preset time delay further includes: a second preset time delay and a third preset time delay, wherein the second preset time delay is less than the third preset time delay. Determining the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay further includes: When the time delay is less than the second preset time delay, the communication connection status is determined to be that the communication connection is not disconnected, and the link status level of the communication connection is excellent. When the time delay is greater than or equal to the second preset time delay and less than the third preset time delay, the communication connection status is determined to be "communication connection not disconnected" and the link status level of the communication connection is "good"; or When the time delay is greater than or equal to the third preset time delay, the communication connection status is determined to be that the communication connection is not disconnected, and the link status level of the communication connection is poor.
7. The method according to claim 6, characterized in that, The method further includes: When the link status level of the communication connection is excellent or good, the energy storage device sends message data according to message type priority; the message type priority is: first priority for login and response heartbeat messages, second priority for instruction response messages corresponding to operation instructions sent by the server, third priority for alarm event messages, and fourth priority for working data messages; or When the link status level of the communication connection is poor, the message data sent by the energy storage device according to the first priority, the second priority and the third priority are received.
8. The method according to claim 7, characterized in that, The method further includes: The communication connection status, alarm information, and working data are sent to the operation and maintenance platform so that staff can obtain relevant information about the energy storage device through the operation and maintenance platform.
9. A communication management device for an energy storage device, applied to a device server, characterized in that, include: The heartbeat message sending module is used to respond to the login connection request sent by the energy storage device, perform a login operation on the energy storage device, and after verifying successful login, periodically send heartbeat messages to the energy storage device according to a preset interval. The heartbeat message includes at least the sending timestamp of the device server. The target receiving timestamp determination module is used to determine and save the target receiving timestamp of the device server corresponding to the last received response heartbeat message when the response heartbeat message sent by the energy storage device is received periodically. The time delay calculation module is used to calculate the time delay based on the sending timestamp of each heartbeat message sent to the energy storage device and the target receiving timestamp. The communication connection status determination module is used to determine the communication connection status between the energy storage device and the device server based on the time delay and the preset time delay.
10. A computer-readable storage medium, characterized in that, The storage medium stores at least one program, which is executed by a processor to implement the steps of the communication management method for the energy storage device as described in any one of claims 1 to 8.