CN112994971A - Equipment offline monitoring method based on cloud server and related device - Google Patents

Equipment offline monitoring method based on cloud server and related device Download PDF

Info

Publication number
CN112994971A
CN112994971A CN202110135571.6A CN202110135571A CN112994971A CN 112994971 A CN112994971 A CN 112994971A CN 202110135571 A CN202110135571 A CN 202110135571A CN 112994971 A CN112994971 A CN 112994971A
Authority
CN
China
Prior art keywords
equipment
detected
time
preset
offline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110135571.6A
Other languages
Chinese (zh)
Inventor
牛峰
薛玉胜
卫红叶
许盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sungrow Shanghai Co Ltd
Original Assignee
Sungrow Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sungrow Shanghai Co Ltd filed Critical Sungrow Shanghai Co Ltd
Priority to CN202110135571.6A priority Critical patent/CN112994971A/en
Publication of CN112994971A publication Critical patent/CN112994971A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Abstract

The application provides an equipment offline monitoring method and a related device based on a cloud server, wherein the cloud server monitors whether state information of equipment to be detected accords with offline characteristics in real time. If the coincidence record is carried out, the current time is the first time. And if the device to be detected is not monitored to be on line within the preset time from the first moment, determining that the device to be detected is in an off-line state. According to the process, the cloud server monitors whether the state of the equipment to be detected accords with the offline characteristics or not in real time, so that the offline state of the equipment can be judged in time. Therefore, the timeliness of identifying the offline of the equipment is improved, so that maintenance personnel can maintain the offline equipment in time, and the problem that the cloud server cannot interact with the offline equipment due to the offline of the equipment is avoided. And the cloud server delays the preset time length after judging that the equipment is off-line, and then judges whether the equipment is on-line again in the time, so that the condition that the equipment is on-line again after being off-line for a short time is identified, and the accuracy of off-line monitoring of the equipment is improved.

Description

Equipment offline monitoring method based on cloud server and related device
Technical Field
The invention belongs to the technical field of cloud computing, and particularly relates to an equipment offline monitoring method based on a cloud server and a related device.
Background
With the wide application of the cloud computing technology, equipment in many application scenes is connected to a cloud server, the equipment uploads self state data to the cloud server, and the cloud server controls the equipment in real time according to the state data reported by the equipment. However, the cloud remote control cannot be realized after the device is offline, and therefore, the cloud server needs to judge whether the device is offline currently.
In the related art, a scheme for detecting whether a device is offline by a cloud server is that the cloud server records the time when the device last reports data, when a preset time arrives, the cloud server compares the time with the time when the device last uploads data, and if the time difference is greater than the preset offline configuration time, the device is considered to be in an offline state. According to the detection scheme, the offline of the equipment can be judged only when the offline of the equipment exceeds the specified offline configuration time, so that the offline of the equipment cannot be judged in time. Moreover, if the offline time of the device is less than the specified offline configuration time and the device is online, the short-time offline cloud server of the device cannot recognize the device.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an apparatus offline monitoring method and a related apparatus based on a cloud server, so as to solve the problem that an apparatus offline detection scheme in the related art cannot detect an apparatus offline state in time and cannot detect that an apparatus is offline for a short time, and a disclosed technical scheme is as follows:
in a first aspect, the present application provides a cloud server-based device offline monitoring method, including:
monitoring whether the state information of the equipment to be detected accords with offline characteristics in real time, wherein the offline characteristics comprise the network disconnection state characteristics of the equipment to be detected;
when the condition information of the equipment to be detected is monitored to be in accordance with the off-line characteristics, recording the current moment as a first moment;
and if the situation that the equipment to be detected is on line within the preset time from the first moment is not monitored, determining that the equipment to be detected is in an off-line state.
Optionally, the real-time monitoring is connected with cloud server and is waited that the state information of equipment of examining of awaiting measuring accords with off-line characteristic, include:
when the interface error or the network error of the equipment to be detected is monitored, determining that the equipment to be detected accords with the offline characteristics;
when it is monitored that the equipment to be detected does not send a heartbeat packet according to a preset time interval, determining that the equipment to be detected accords with the offline characteristics, wherein the heartbeat packet is a communication data packet representing the online of the equipment to be detected;
when the client corresponding to the equipment to be detected is monitored to be disconnected and a preset disconnection data packet is not sent, determining that the equipment to be detected conforms to the offline characteristics;
and when the communication protocol used by the equipment to be detected is monitored to be wrong, determining that the equipment to be detected accords with the offline characteristics.
Optionally, when it is monitored that the state information of the device to be detected conforms to the offline characteristics, recording that the current time is a first time includes:
when detecting that the state information of the equipment to be detected accords with the offline characteristics, sending a preset message sent by the equipment to be detected in advance to a first message queue, wherein the preset message is sent to the first message queue when the equipment to be detected is connected with the cloud server;
and recording the time for writing the preset message into the first message queue as the first moment.
Optionally, if it is not monitored that the device to be detected comes online within the preset time period from the first time, determining that the device to be detected is in an offline state includes:
monitoring whether a communication message sent by the equipment to be detected is received within the preset time length;
if the communication message is not received within the preset time length, determining that the equipment to be detected is not on-line within the preset time length, and determining that the equipment to be detected is in an off-line state;
and if the communication message is received within the preset time length, determining that the equipment to be detected is on-line within the preset time length, and determining that the equipment to be detected is in an on-line state.
Optionally, a first program and a second program are deployed in the cloud server;
whether the communication message sent by the equipment to be detected is received or not within the preset time is monitored, and the monitoring method comprises the following steps:
the first program acquires the first moment corresponding to the preset message from a first message queue, and the preset message is sent to the first message queue when the device to be detected is connected with the cloud server;
the first program monitors whether the preset message is expired or not according to the preset duration and the first moment;
when the preset message is over, the first program sends the preset message to a second message queue;
the second program acquires the first moment of the preset message from the second message queue and compares the first moment with the second moment of the equipment to be detected which sends the communication message last time;
if the second time is earlier than the first time, determining that the communication message is not received within the preset time length;
and if the second time is later than the first time, determining that the communication message is received within the preset time.
Optionally, the monitoring, by the first program, whether the preset message is expired according to the preset duration and the first time includes:
the first program judges whether a third moment after the first moment and the preset duration is earlier than the current time of the system or not;
if the third time is earlier than the current time of the system, determining that the preset message is expired;
and if the third time is later than the current time of the system, determining that the preset message is not expired.
Optionally, after determining that the preset message has not expired, the method further includes:
and continuously monitoring whether the preset message is expired or not according to the first time and the preset duration.
Optionally, the preset message includes device identification information of the device to be detected.
In a second aspect, the present application further provides an apparatus for monitoring an offline device based on a cloud server, including:
the real-time monitoring module is used for monitoring whether the state information of the equipment to be detected accords with offline characteristics in real time, wherein the offline characteristics comprise the state characteristics of network disconnection of the equipment to be detected;
the time recording module is used for recording the current time as a first time when the condition information of the equipment to be detected is monitored to be in accordance with the offline characteristics;
the first determining module is used for determining that the equipment to be detected is in an off-line state if the equipment to be detected is not monitored to be on line within the preset time from the first moment.
In a third aspect, the present application further provides a cloud server, including: a memory and a processor;
the memory stores program instructions, and the processor calls the program instructions in the memory to implement the cloud server-based device offline monitoring method according to any one of the first aspect.
In a fourth aspect, the present application further provides an offline monitoring system based on a cloud server, including: the system comprises a cloud server and a plurality of devices to be detected;
each device to be detected is connected with the cloud server;
the cloud server is used for monitoring whether the state information of the equipment to be detected accords with offline characteristics in real time, wherein the offline characteristics comprise the state characteristics of network disconnection of the equipment to be detected; when the condition information of the equipment to be detected is monitored to be in accordance with the off-line characteristics, recording the current moment as a first moment; and if the situation that the equipment to be detected is on line within the preset time from the first moment is not monitored, determining that the equipment to be detected is in an off-line state.
According to the cloud server-based equipment offline monitoring method, the cloud server monitors whether the state information of the equipment to be detected accords with the offline characteristics in real time, wherein the offline characteristics comprise the corresponding state characteristics when the network of the equipment to be detected is disconnected. And if the state information of the equipment to be detected accords with the offline characteristics, recording the current moment as a first moment. And if the device to be detected is not monitored to be on line within the preset time from the first moment, determining that the device to be detected is in an off-line state. According to the process, the cloud server monitors whether the state of the equipment to be detected accords with the offline characteristics or not in real time, so that the offline state of the equipment can be judged in time. Therefore, the timeliness of identifying the offline of the equipment is improved, so that maintenance personnel can maintain the offline equipment in time, and the problem that the cloud server cannot interact with the offline equipment due to the offline of the equipment is avoided. And the cloud server delays for a preset time after judging that the equipment is off-line and then judges whether the equipment is on-line again in the time, so that the condition that the equipment is on-line again after being off-line for a short time is identified, misjudgment is avoided, and the accuracy of off-line monitoring of the equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an apparatus offline monitoring system based on a cloud server according to an embodiment of the present application;
fig. 2 is a flowchart of an offline device monitoring method based on a cloud server according to an embodiment of the present application;
fig. 3 is a flowchart of another method for offline monitoring a cloud server-based device according to an embodiment of the present disclosure;
FIG. 4 is a simplified flow diagram of the method of FIG. 3;
fig. 5 is a schematic structural diagram of an apparatus offline monitoring system based on a cloud server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic structural diagram of an apparatus offline monitoring system based on a cloud server according to an embodiment of the present application is shown, and as shown in fig. 1, the system includes a plurality of terminal apparatuses, a communication apparatus, and a cloud server.
The terminal equipment without the internet surfing capability is accessed into the communication equipment, and the communication equipment is accessed into the cloud server.
In a photovoltaic power generation scenario, the terminal device includes, but is not limited to, a photovoltaic inverter, an energy storage converter, and the like. The communication device is a device capable of communicating with the cloud server, for example, a router or the like.
The cloud server may be a single independent server or a server cluster composed of a plurality of servers.
The cloud server determines the networking state of each terminal device by detecting the networking state of the communication device.
The process of the cloud server-based device offline monitoring method will be described in detail below with reference to fig. 2.
Referring to fig. 2, a flowchart of an offline device monitoring method based on a cloud server according to an embodiment of the present application is shown, where the method is applied to the cloud server, and as shown in fig. 2, the method may include the following steps:
s110, monitoring whether the state information of the equipment to be detected accords with the offline characteristics in real time; if yes, go to S120, if no, go back to S110.
In the system shown in fig. 1, the device to be detected is referred to as a communication device. The offline characteristics include status characteristics of network disconnection of the device to be detected.
In one embodiment of the present application, the offline features include the following rules:
firstly, discovering an interface error or a network error;
secondly, the equipment to be detected does not send heartbeat packets according to a preset time interval;
the heartbeat package is a self-defined structure body which is sent to a server by a client at regular time based on a heartbeat mechanism, so that the opposite side can know that the client is online to ensure the connection effectiveness.
A preset disconnection data packet (such as a DISCONNECT packet) is not sent before the client corresponding to the equipment to be detected is disconnected;
and fourthly, the device to be detected is disconnected due to communication protocol errors.
And when the cloud server detects that the equipment to be detected accords with any one of the rules, the offline of the equipment to be detected is preliminarily determined.
And S120, recording the current time as a first time.
When the cloud server monitors that the equipment to be detected accords with any one of the rules, the moment when the equipment to be detected is detected to be offline is recorded as the first moment.
S130, if the fact that the device to be detected is on line within the preset time from the first moment is not monitored, determining that the device to be detected is in an off-line state.
The cloud server monitors whether the equipment to be detected is on-line again within the preset time after detecting that the equipment to be detected is off-line and delaying the preset time, and if the equipment to be detected is not monitored to be on-line again within the preset time, the current off-line state of the equipment to be detected is determined. Through the delay processing of preset duration, the condition that the device is on-line again after being off-line for a short time can be identified, and therefore the state of the device to be detected can be accurately identified.
In an embodiment of the application, after delaying a preset time length from a first time, a cloud server monitors whether a communication message sent by a device to be detected within the preset time length is received, and if so, the device to be detected is determined to be online again within the preset time length; and if not, determining that the equipment to be detected is not on line again within the preset time.
According to the cloud server-based equipment offline monitoring method, the cloud server monitors whether the state information of the equipment to be detected accords with the offline characteristics in real time, wherein the offline characteristics comprise the corresponding state characteristics when the network of the equipment to be detected is disconnected. And if the state information of the equipment to be detected accords with the offline characteristics, recording the current moment as a first moment. And if the device to be detected is not monitored to be on line within the preset time from the first moment, determining that the device to be detected is in an off-line state. According to the process, the cloud server monitors whether the state of the equipment to be detected accords with the offline characteristics or not in real time, so that the offline state of the equipment can be judged in time. Therefore, the timeliness of identifying the offline of the equipment is improved, so that maintenance personnel can maintain the offline equipment in time, and the problem that the cloud server cannot interact with the offline equipment due to the offline of the equipment is avoided. And the cloud server delays for a preset time after judging that the equipment is off-line and then judges whether the equipment is on-line again in the time, so that the condition that the equipment is on-line again after being off-line for a short time is identified, misjudgment is avoided, and the accuracy of off-line monitoring of the equipment is improved.
With reference to fig. 3 and fig. 4, another cloud server-based device offline monitoring method provided in the embodiment of the present application is described in detail. The method is suitable for application scenes with a large number of devices to be monitored, and in the application scenes, the cloud server executes the method based on a streaming computing framework.
Fig. 3 is a flowchart illustrating another method for offline monitoring a cloud server-based device according to an embodiment of the present application; fig. 4 is a simplified flow diagram of the method of fig. 3.
As shown in fig. 3, the method mainly includes the following steps:
s210, the equipment to be detected is connected with the cloud server, and after the connection is successfully established, the equipment to be detected keeps sending the heartbeat packet and sends a preset message to the cloud server.
In an embodiment of the application, the preset message may include an equipment identifier of the equipment to be detected, and the cloud server extracts the equipment identifier after receiving the preset message, so as to identify which equipment the equipment sending the preset message is.
S220, the cloud server monitors whether the state information of the equipment to be detected accords with the offline characteristics in real time; if so, go to S230; if not, execution continues with S220.
And S230, the cloud server sends the preset message sent by the device to be detected to the first message queue, and records the time for writing the preset message into the first message queue for the first time as the first moment.
If the number of the devices to be detected in the system is large, all the preset messages which are sent in advance by each device to be detected and accord with the offline characteristics are sent to a first message queue, wherein the first message queue can be constructed in a cloud server cluster, and therefore multi-node concurrent read-write operation on the queue is achieved.
And recording the time when each preset message is written into the first message queue for the first time as a first moment.
S240, a first program in the cloud server acquires a first time corresponding to the preset message from the first message queue, and judges whether the preset message is expired according to the first time and a preset time length; if expired, S250 is executed, and if not expired, S240 is returned to.
When monitoring that the unread message exists in the first message queue, the first program reads the message and the time of the message, and triggers the judgment logic of the first program, namely judges whether the preset message is expired.
In an embodiment of the present application, the first program configures an expiration time, that is, a preset duration in advance, and if the time when the preset message is first written into the first message queue reaches the expiration time from the current time of the system, the preset message is considered to be expired. If the expiration time is not reached, the preset message is considered as not expired.
The preset time period can be set according to the actual requirement, for example, 20 s.
For example, the specific step of determining whether the preset message expires may include the following steps:
adding a preset time length to the first time of the preset message to obtain a third time, judging whether the third time is earlier than the current time of the system, if so, determining that the preset message is overdue, and triggering S250; if not, determining that the preset message is not expired, and continuously monitoring whether the preset message is expired.
And S250, the first program sends the preset message to a second message queue.
And if the preset message is monitored to be expired, sending the preset message to a second message queue.
In an embodiment of the present application, as with the first message queue, the second message queue may also be established on the cloud server cluster, thereby implementing a multi-node parallel read-write operation on the second message queue.
S260, a second program in the cloud server acquires a first moment of a preset message from a second message queue and compares the first moment with a second moment of the latest communication message sending of the equipment to be detected; if the second time is earlier than the first time, executing S270; if the second time is later than the first time, S280 is performed.
And the second program monitors whether the unread message exists in the second message queue or not, and if so, triggers a judgment logic in the second program, namely, judges the morning and evening between the first moment of the preset message and the second moment of the latest communication message sending of the device to be detected when the unread message exists in the second message queue.
The first time of the preset message is the time when the preset message is first written into the first message queue.
The second moment is the time when the device to be detected sends the communication message to the cloud server at the latest time.
Comparing the early-late relation between the first time and the second time, and if the second time is earlier than the first time, indicating that the device to be detected does not resend the communication message after the first time is offline, namely the device to be detected is not on-line again; and if the second time is later than the first time, the communication message is retransmitted after the device to be detected is offline at the first time, namely, the communication message is online again.
And S270, determining that the equipment to be detected is in an offline state currently.
And if the device to be detected is not on line again after being off line at the first moment, determining that the device to be detected is in an off-line state currently.
And S280, determining that the equipment to be detected is in an online state currently.
And if the device to be detected is offline at the first moment and then is online again, determining that the device to be detected is in an online state currently.
In addition, the first program, the second program, the first message queue and the second message queue are all operated on the cloud server cluster and can be executed in parallel by multiple nodes, so that the method provided by the embodiment can realize offline real-time monitoring on multiple terminal devices.
In the method for monitoring the device offline based on the cloud server provided by this embodiment, the first program and the second program in the cloud server cluster are executed, so as to implement offline detection for a plurality of terminal devices. The scheme realizes the offline real-time monitoring of the equipment by monitoring whether each terminal equipment meets the offline characteristics in real time. In addition, the scheme carries out delay processing by setting the expiration time of the preset message, can accurately identify the condition that the equipment is offline and online for a short time, and improves the accuracy rate of offline judgment of the equipment.
Corresponding to the embodiment of the cloud server-based equipment offline monitoring method, the application also provides an embodiment of a cloud server-based equipment offline monitoring device.
Referring to fig. 5, a schematic structural diagram of an apparatus for offline monitoring of a device based on a cloud server according to an embodiment of the present application is shown, and as shown in fig. 5, the apparatus includes: a real-time monitoring module 110, a time recording module 120 and a determining module 130;
the real-time monitoring module 110 is configured to monitor whether the status information of the device to be detected conforms to an offline characteristic in real time, where the offline characteristic includes a status characteristic of network disconnection of the device to be detected.
In an embodiment of the present application, the real-time monitoring module 110 is specifically configured to:
when the interface error or the network error of the equipment to be detected is monitored, determining that the equipment to be detected accords with the offline characteristics;
when it is monitored that the equipment to be detected does not send a heartbeat packet according to a preset time interval, determining that the equipment to be detected accords with the offline characteristics, wherein the heartbeat packet is a communication data packet representing the online of the equipment to be detected;
when the client corresponding to the equipment to be detected is monitored to be disconnected and a preset disconnection data packet is not sent, determining that the equipment to be detected conforms to the offline characteristics;
and when the communication protocol used by the equipment to be detected is monitored to be wrong, determining that the equipment to be detected accords with the offline characteristics.
And the time recording module 120 is configured to record the current time as a first time when it is monitored that the state information of the device to be detected conforms to the offline characteristics.
In an embodiment of the present application, the time recording module 120 is specifically configured to: when detecting that the state information of the equipment to be detected accords with the offline characteristics, sending a preset message sent by the equipment to be detected in advance to a first message queue, wherein the preset message is sent to the first message queue when the equipment to be detected is connected with the cloud server; and recording the time for writing the preset message into the first message queue as the first moment.
The determining module 130 is configured to determine that the device to be detected is in an offline state if it is not monitored that the device to be detected is online within the preset time period from the first time.
In one embodiment of the present application, the determining module 130 includes:
and the on-line monitoring submodule is used for monitoring whether the communication message sent by the equipment to be detected is received within the preset time.
And the first determining submodule is used for determining that the equipment to be detected is not detected to be on-line within the preset time length and determining that the equipment to be detected is in an off-line state if the communication message is not received within the preset time length.
And the second determining submodule is used for determining that the equipment to be detected is on line within the preset time length and determining that the equipment to be detected is in an on-line state if the communication message is received within the preset time length.
In an application scenario, a first program and a second program are deployed in a cloud server, and in the application scenario, the online monitoring sub-module includes:
the message reading sub-module is used for acquiring the first moment corresponding to the preset message from a first message queue by a first program, and the preset message is sent to the first message queue when the connection between the device to be detected and the cloud server is established;
the message expiration judging submodule is used for monitoring whether the preset message is expired or not by the first program according to the preset duration and the first moment;
the message sending submodule is used for sending the preset message to a second message queue by the first program after the preset message is expired;
the second program is used for acquiring a first moment of the preset message from the second message queue and comparing the first moment with a second moment of the communication message which is sent by the equipment to be detected for the latest time;
a third determining submodule, configured to determine that the communication packet is not received within the preset time period if the second time is earlier than the first time;
and the fourth determining submodule is used for determining that the communication message is received within the preset time length if the second time is later than the first time.
In an embodiment of the present application, the message expiration determining submodule is specifically configured to:
the first program judges whether a third moment after the first moment and the preset duration is earlier than the current time of the system or not;
if the third time is earlier than the current time of the system, determining that the preset message is expired;
and if the third time is later than the current time of the system, determining that the preset message is not expired.
If the preset message is determined to be not expired, returning to continuously judge whether the preset message is expired.
According to the device offline monitoring device based on the cloud server, the cloud server monitors whether the state information of the device to be detected accords with the offline characteristics in real time, wherein the offline characteristics comprise the corresponding state characteristics when the network of the device to be detected is disconnected. And if the state information of the equipment to be detected accords with the offline characteristics, recording the current moment as a first moment. And if the device to be detected is not monitored to be on line within the preset time from the first moment, determining that the device to be detected is in an off-line state. According to the process, the cloud server monitors whether the state of the equipment to be detected accords with the offline characteristics or not in real time, so that the offline state of the equipment can be judged in time. Therefore, the timeliness of identifying the offline of the equipment is improved, so that maintenance personnel can maintain the offline equipment in time, and the problem that the cloud server cannot interact with the offline equipment due to the offline of the equipment is avoided. And the cloud server delays for a preset time after judging that the equipment is off-line and then judges whether the equipment is on-line again in the time, so that the condition that the equipment is on-line again after being off-line for a short time is identified, misjudgment is avoided, and the accuracy of off-line monitoring of the equipment is improved.
On the other hand, the application also provides a cloud server, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein when the processor executes the program, any one of the cloud server-based device offline monitoring methods is realized.
In another aspect, the present application further provides a storage medium executable by a computing device, where the storage medium stores a program, and the program, when executed by the computing device, implements the cloud server-based device offline monitoring method.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
It should be noted that technical features described in the embodiments in the present specification may be replaced or combined with each other, each embodiment is mainly described as a difference from the other embodiments, and the same and similar parts between the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The steps in the method of the embodiments of the present application may be sequentially adjusted, combined, and deleted according to actual needs.
The device and the modules and sub-modules in the terminal in the embodiments of the present application can be combined, divided and deleted according to actual needs.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal, apparatus and method may be implemented in other manners. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of a module or a sub-module is only one logical division, and there may be other divisions when the terminal is actually implemented, for example, a plurality of sub-modules or modules may be combined or integrated into another module, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules or sub-modules described as separate parts may or may not be physically separate, and parts that are modules or sub-modules may or may not be physical modules or sub-modules, may be located in one place, or may be distributed over a plurality of network modules or sub-modules. Some or all of the modules or sub-modules can be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional module or sub-module in the embodiments of the present application may be integrated into one processing module, or each module or sub-module may exist alone physically, or two or more modules or sub-modules may be integrated into one module. The integrated modules or sub-modules may be implemented in the form of hardware, or may be implemented in the form of software functional modules or sub-modules.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A device offline monitoring method based on a cloud server is characterized by comprising the following steps:
monitoring whether the state information of the equipment to be detected accords with offline characteristics in real time, wherein the offline characteristics comprise the network disconnection state characteristics of the equipment to be detected;
when the condition information of the equipment to be detected is monitored to be in accordance with the off-line characteristics, recording the current moment as a first moment;
and if the situation that the equipment to be detected is on line within the preset time from the first moment is not monitored, determining that the equipment to be detected is in an off-line state.
2. The method according to claim 1, wherein the real-time monitoring whether the state information of the device to be detected connected with the cloud server conforms to the offline characteristics comprises:
when the interface error or the network error of the equipment to be detected is monitored, determining that the equipment to be detected accords with the offline characteristics;
when it is monitored that the equipment to be detected does not send a heartbeat packet according to a preset time interval, determining that the equipment to be detected accords with the offline characteristics, wherein the heartbeat packet is a communication data packet representing the online of the equipment to be detected;
when the client corresponding to the equipment to be detected is monitored to be disconnected and a preset disconnection data packet is not sent, determining that the equipment to be detected conforms to the offline characteristics;
and when the communication protocol used by the equipment to be detected is monitored to be wrong, determining that the equipment to be detected accords with the offline characteristics.
3. The method according to claim 1, wherein when it is monitored that the state information of the device to be tested conforms to the offline characteristics, recording the current time as a first time comprises:
when detecting that the state information of the equipment to be detected accords with the offline characteristics, sending a preset message sent by the equipment to be detected in advance to a first message queue, wherein the preset message is sent to the first message queue when the equipment to be detected is connected with the cloud server;
and recording the time for writing the preset message into the first message queue as the first moment.
4. The method according to claim 2 or 3, wherein the determining that the device to be detected is in an offline state if it is not monitored that the device to be detected is online within a preset time period from the first time comprises:
monitoring whether a communication message sent by the equipment to be detected is received within the preset time length;
if the communication message is not received within the preset time length, determining that the equipment to be detected is not on-line within the preset time length, and determining that the equipment to be detected is in an off-line state;
and if the communication message is received within the preset time length, determining that the equipment to be detected is on-line within the preset time length, and determining that the equipment to be detected is in an on-line state.
5. The method according to claim 4, wherein a first program and a second program are deployed in the cloud server;
whether the communication message sent by the equipment to be detected is received or not within the preset time is monitored, and the monitoring method comprises the following steps:
the first program acquires the first moment corresponding to the preset message from a first message queue, and the preset message is sent to the first message queue when the device to be detected is connected with the cloud server;
the first program monitors whether the preset message is expired or not according to the preset duration and the first moment;
when the preset message is over, the first program sends the preset message to a second message queue;
the second program acquires the first moment of the preset message from the second message queue and compares the first moment with the second moment of the equipment to be detected which sends the communication message last time;
if the second time is earlier than the first time, determining that the communication message is not received within the preset time length;
and if the second time is later than the first time, determining that the communication message is received within the preset time.
6. The method of claim 5, wherein the first program monitoring whether the preset message is expired according to the preset duration and the first time, comprises:
the first program judges whether a third moment after the first moment and the preset duration is earlier than the current time of the system or not;
if the third time is earlier than the current time of the system, determining that the preset message is expired;
and if the third time is later than the current time of the system, determining that the preset message is not expired.
7. The method of claim 6, wherein after determining that the preset message has not expired, the method further comprises:
and continuously monitoring whether the preset message is expired or not according to the first time and the preset duration.
8. Method according to claim 3 or 4, characterized in that the preset message comprises device identification information of the device to be tested.
9. The utility model provides an equipment off-line monitoring device based on cloud ware which characterized in that includes:
the real-time monitoring module is used for monitoring whether the state information of the equipment to be detected accords with offline characteristics in real time, wherein the offline characteristics comprise the state characteristics of network disconnection of the equipment to be detected;
the time recording module is used for recording the current time as a first time when the condition information of the equipment to be detected is monitored to be in accordance with the offline characteristics;
the first determining module is used for determining that the equipment to be detected is in an off-line state if the equipment to be detected is not monitored to be on line within the preset time from the first moment.
10. A cloud server, comprising: a memory and a processor;
the memory stores program instructions, and the processor calls the program instructions in the memory to implement the cloud server-based device offline monitoring method of any one of claims 1-8.
11. An offline monitoring system based on a cloud server, comprising: the system comprises a cloud server and a plurality of devices to be detected;
each device to be detected is connected with the cloud server;
the cloud server is used for monitoring whether the state information of the equipment to be detected accords with offline characteristics in real time, wherein the offline characteristics comprise the state characteristics of network disconnection of the equipment to be detected; when the condition information of the equipment to be detected is monitored to be in accordance with the off-line characteristics, recording the current moment as a first moment; and if the situation that the equipment to be detected is on line within the preset time from the first moment is not monitored, determining that the equipment to be detected is in an off-line state.
CN202110135571.6A 2021-02-01 2021-02-01 Equipment offline monitoring method based on cloud server and related device Pending CN112994971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110135571.6A CN112994971A (en) 2021-02-01 2021-02-01 Equipment offline monitoring method based on cloud server and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110135571.6A CN112994971A (en) 2021-02-01 2021-02-01 Equipment offline monitoring method based on cloud server and related device

Publications (1)

Publication Number Publication Date
CN112994971A true CN112994971A (en) 2021-06-18

Family

ID=76345989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110135571.6A Pending CN112994971A (en) 2021-02-01 2021-02-01 Equipment offline monitoring method based on cloud server and related device

Country Status (1)

Country Link
CN (1) CN112994971A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113904953A (en) * 2021-12-09 2022-01-07 云丁网络技术(北京)有限公司 Offline detection method, device and equipment for communication equipment
CN114338765A (en) * 2021-12-10 2022-04-12 青岛海尔科技有限公司 Equipment connection abnormity identification method and system, electronic device and storage medium
WO2024046049A1 (en) * 2022-08-29 2024-03-07 西安广和通无线通信有限公司 Communication method and apparatus, storage medium and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973639A (en) * 2013-01-29 2014-08-06 华为技术有限公司 Network access control method, device and system
CN105517195A (en) * 2015-11-27 2016-04-20 上海华为技术有限公司 State detection method and wireless network node
CN105827697A (en) * 2016-03-14 2016-08-03 广州趣丸网络科技有限公司 User off-line detection method and user off-line detection system
CN107360097A (en) * 2017-06-19 2017-11-17 深圳市盛路物联通讯技术有限公司 A kind of Internet of Things routing table update method and system of combination convergence unit information
CN111884875A (en) * 2020-07-17 2020-11-03 青岛易来智能科技股份有限公司 Offline device determination method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973639A (en) * 2013-01-29 2014-08-06 华为技术有限公司 Network access control method, device and system
CN105517195A (en) * 2015-11-27 2016-04-20 上海华为技术有限公司 State detection method and wireless network node
CN105827697A (en) * 2016-03-14 2016-08-03 广州趣丸网络科技有限公司 User off-line detection method and user off-line detection system
CN107360097A (en) * 2017-06-19 2017-11-17 深圳市盛路物联通讯技术有限公司 A kind of Internet of Things routing table update method and system of combination convergence unit information
CN111884875A (en) * 2020-07-17 2020-11-03 青岛易来智能科技股份有限公司 Offline device determination method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113904953A (en) * 2021-12-09 2022-01-07 云丁网络技术(北京)有限公司 Offline detection method, device and equipment for communication equipment
CN114338765A (en) * 2021-12-10 2022-04-12 青岛海尔科技有限公司 Equipment connection abnormity identification method and system, electronic device and storage medium
CN114338765B (en) * 2021-12-10 2024-03-22 青岛海尔科技有限公司 Equipment connection abnormality identification method and system, electronic device and storage medium
WO2024046049A1 (en) * 2022-08-29 2024-03-07 西安广和通无线通信有限公司 Communication method and apparatus, storage medium and terminal device

Similar Documents

Publication Publication Date Title
CN112994971A (en) Equipment offline monitoring method based on cloud server and related device
US10917322B2 (en) Network traffic tracking using encapsulation protocol
US8824429B2 (en) Automatic estimation of node location based on trace information
US6625648B1 (en) Methods, systems and computer program products for network performance testing through active endpoint pair based testing and passive application monitoring
CN109474487B (en) Network performance monitoring method, network equipment and network performance monitoring system
US7991881B2 (en) Monitoring network performance to identify sources of network performance degradation
JP6686033B2 (en) Method and apparatus for pushing messages
US20070233855A1 (en) Adaptible keepalive for enterprise extenders
US20090024722A1 (en) Proxying availability indications in a failover configuration
WO2012146026A1 (en) Method and system for monitoring internet of things
CN110809060B (en) Monitoring system and monitoring method for application server cluster
CN107360239A (en) A kind of client connection status detection method and system
CN103532795A (en) Monitoring system and method for detecting availability of WEB business system
CN110099398B (en) Network failure information collection method, network system, storage medium and network device
CN107294767B (en) Live broadcast network transmission fault monitoring method and system
CN111104239A (en) Hard disk fault processing method, system and device for distributed storage cluster
CN108134713A (en) A kind of communication means and device
US20100070627A1 (en) Monitoring apparatus, monitoring method, and storage medium
CN104348661B (en) The upload of network failure data, method of reseptance and equipment and recording method and system
CN105490837B (en) A kind of network monitoring processing method and device
Cinque et al. An exploratory study on zeroconf monitoring of microservices systems
CN115378841B (en) Method and device for detecting state of equipment accessing cloud platform, storage medium and terminal
CN115514682B (en) Data transmission method, device, equipment and storage medium
CN112769653B (en) Network detection and switching method, system and medium based on network port binding
CN113726592B (en) Transmission delay test method, system and related components of edge server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618

RJ01 Rejection of invention patent application after publication