Search

CN-122001794-A - State monitoring method, device and storage medium

CN122001794ACN 122001794 ACN122001794 ACN 122001794ACN-122001794-A

Abstract

The application provides a state monitoring method, equipment and a storage medium, which relate to the technical field of communication, and are applied to a first central pan terminal, and the method comprises the steps of sending heartbeat information to at least one pan terminal, wherein the at least one pan terminal is a pan terminal which establishes connection with the first central pan terminal; the method comprises the steps of determining whether heartbeat response messages sent by at least one pan terminal are received or not, determining the state of the at least one pan terminal based on whether the heartbeat response messages sent by the at least one pan terminal are received or not, and sending state information of other pan terminals except the pan terminal in the at least one pan terminal to the pan terminal for indicating the states of the other pan terminals. The scheme of the embodiment of the application reduces the network bandwidth pressure, improves the network performance and reduces the power consumption of each universal terminal.

Inventors

  • DENG SHIYING
  • GUO YANHAI

Assignees

  • 成都鼎桥通信技术有限公司

Dates

Publication Date
20260508
Application Date
20241104

Claims (10)

  1. 1. A method for monitoring a state, applied to a first central universal terminal, the method comprising: Sending a heartbeat message to at least one pan terminal, wherein the at least one pan terminal is a pan terminal which establishes connection with the first central pan terminal; determining whether heartbeat response messages sent by the at least one pan terminal respectively are received; determining respective states of the at least one pan terminal based on whether heartbeat response messages sent by the at least one pan terminal are received, wherein the states are online states or offline states; and for each pan terminal in the at least one pan terminal, sending state information of other pan terminals except the pan terminal in the at least one pan terminal to the pan terminal, wherein the state information of the other pan terminals is used for indicating the states of the other pan terminals.
  2. 2. The method according to claim 1, wherein said transmitting status information of other ones of the at least one pan terminal than the pan terminal to the pan terminal comprises: And sending a first state synchronization message to the universal terminal, wherein the first state synchronization message comprises state information of the other universal terminals.
  3. 3. The method according to claim 1 or 2, characterized in that the method further comprises: monitoring a broadcast message sent by a pan terminal; and respectively sending a broadcast response message to the at least one pan terminal under the condition that the respective broadcast messages of the at least one pan terminal are monitored, wherein the broadcast response message is used for establishing connection between the first central pan terminal and the pan terminals for each of the at least one pan terminal.
  4. 4. The method according to claim 1 or 2, characterized in that the method further comprises: Establishing communication connection with a platform server based on address information of the platform server; and under the condition of establishing communication connection with the platform server, sending the state information of the first central universal terminal and the state information of each at least one universal terminal to the platform server.
  5. 5. The method according to claim 4, wherein the method further comprises: receiving state information of a second central universal terminal sent by the platform server and state information of a universal terminal connected with the second central universal terminal; And respectively sending a second state synchronization message to the at least one pan terminal, wherein the second state synchronization message comprises the state information of the second central pan terminal and the state information of each pan terminal which establishes connection with the second central pan terminal.
  6. 6. A state monitoring method, applied to a pan terminal that establishes a connection with a first central pan terminal, the pan terminal being one of at least one pan terminal that establishes a connection with the first central pan terminal, the method comprising: receiving a heartbeat message sent by the first central pan terminal; Sending a heartbeat response message to the first central pan terminal based on the heartbeat message under the condition that the state of the pan terminal is an on-line state, wherein the heartbeat response message is used for indicating that the state of the pan terminal is the on-line state; And receiving state information of other pan terminals except the pan terminal in the at least one pan terminal sent by the first center pan terminal, wherein the state information of the other pan terminals is used for indicating the states of the other pan terminals.
  7. 7. The method of claim 6, wherein the receiving status information of the at least one pantone terminal other than the pantone terminal, which is transmitted by the first central pantone terminal, comprises: and receiving a first state synchronization message sent by the first central universal terminal, wherein the first state synchronization message comprises state information of the other universal terminals.
  8. 8. The method according to claim 6 or 7, characterized in that the method further comprises: transmitting a broadcast message; receiving a broadcast response message sent by the first central universal terminal; And establishing connection with the first central universal terminal based on the broadcast response message.
  9. 9. A state monitoring device is characterized by comprising a processor and a memory; The memory stores computer-executable instructions; The processor executing computer-executable instructions of the memory causing the processor to perform the condition monitoring method of any one of claims 1-5 or causing the processor to perform the condition monitoring method of any one of claims 6-8.
  10. 10. A computer readable storage medium having stored therein computer executable instructions for implementing the condition monitoring method according to any of claims 1-5 when executed by a processor or for implementing the condition monitoring method according to any of claims 6-8 when executed by a processor.

Description

State monitoring method, device and storage medium Technical Field The present application relates to the field of communications technologies, and in particular, to a state monitoring method, apparatus, and storage medium. Background The universal terminals refer to a wide range of terminal equipment, the universal terminals are connected with each other through a network protocol, and the connection state between the universal terminals is detected through a heartbeat monitoring mechanism. In the related technology, the universal terminals are connected in pairs to carry out heartbeat monitoring. Specifically, each pan terminal establishes connection with other pan terminals, sends heartbeat messages to other pan terminals, and receives heartbeat response messages replied by other pan terminals, so that the states of other pan terminals are determined. However, the above method for establishing connection between the pan terminals in pairs and performing heartbeat monitoring has the problem of high network bandwidth pressure when the number of the pan terminals is large. Disclosure of Invention The application provides a state monitoring method, equipment and a storage medium, which are used for solving the problem of high network bandwidth pressure when the number of universal terminals is large. In a first aspect, an embodiment of the present application provides a state monitoring method, applied to a first central universal terminal, where the method includes: Sending heartbeat messages to at least one pan terminal, wherein the at least one pan terminal is a pan terminal which establishes connection with a first central pan terminal; determining whether heartbeat response messages sent by at least one pan terminal respectively are received; Determining the state of each of the at least one pan terminal based on whether the heartbeat response message sent by each of the at least one pan terminal is received, wherein the state is an online state or an offline state; And sending state information of other pan terminals except the pan terminal in the at least one pan terminal to the pan terminal, wherein the state information of the other pan terminals is used for indicating the states of the other pan terminals. In one possible implementation manner, sending state information of other pan terminals except the pan terminal in at least one pan terminal to the pan terminal includes: and sending a first state synchronization message to the universal terminal, wherein the first state synchronization message comprises state information of other universal terminals. In one possible implementation, the method further includes: monitoring a broadcast message sent by a pan terminal; and under the condition that the respective broadcast messages of the at least one pan terminal are monitored, respectively sending broadcast response messages to the at least one pan terminal, wherein the broadcast response messages are used for establishing connection between the first central pan terminal and the pan terminals aiming at the respective pan terminals in the at least one pan terminal. In one possible implementation, the method further includes: Establishing communication connection with the platform server based on the address information of the platform server; and under the condition of establishing communication connection with the platform server, sending the state information of the first central universal terminal and the respective state information of at least one universal terminal to the platform server. In one possible implementation, the method further includes: Receiving state information of a second central universal terminal sent by a platform server and state information of a universal terminal connected with the second central universal terminal; And respectively sending a second state synchronization message to at least one pan terminal, wherein the second state synchronization message comprises the state information of the second central pan terminal and the state information of each pan terminal which establishes connection with the second central pan terminal. In a second aspect, an embodiment of the present application provides a state monitoring method, which is applied to a pan terminal that establishes a connection with a first central pan terminal, where the pan terminal is one of at least one pan terminal that establishes a connection with the first central pan terminal, and the method includes: Receiving a heartbeat message sent by a first central pan terminal; Under the condition that the state of the pan terminal is an on-line state, sending a heartbeat response message to the first central pan terminal based on the heartbeat message, wherein the heartbeat response message is used for indicating that the state of the pan terminal is the on-line state; and receiving state information of other pan terminals except the pan terminal in at least one pan terminal sent by the first center pan ter