CN113596884A - Equipment state monitoring method, equipment state monitoring device and readable storage medium - Google Patents

Equipment state monitoring method, equipment state monitoring device and readable storage medium Download PDF

Info

Publication number
CN113596884A
CN113596884A CN202110956502.1A CN202110956502A CN113596884A CN 113596884 A CN113596884 A CN 113596884A CN 202110956502 A CN202110956502 A CN 202110956502A CN 113596884 A CN113596884 A CN 113596884A
Authority
CN
China
Prior art keywords
equipment
monitoring
monitored
state information
information
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.)
Granted
Application number
CN202110956502.1A
Other languages
Chinese (zh)
Other versions
CN113596884B (en
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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN202110956502.1A priority Critical patent/CN113596884B/en
Publication of CN113596884A publication Critical patent/CN113596884A/en
Application granted granted Critical
Publication of CN113596884B publication Critical patent/CN113596884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a device state monitoring method, a device state monitoring device and a readable storage medium, wherein the method comprises the following steps: setting one of the devices as a monitoring device, and then setting the other devices as monitored devices; the monitoring equipment acquires the state information of the monitored equipment connected with the gateway unit; within set conditions, if activity information is acquired, the state information of the monitored equipment is determined to be on-line, otherwise, the state information is determined to be off-line; the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit. Only if the state information of the monitored equipment changes in the process, the monitored equipment can be communicated with the gateway unit, so that the data volume of communication in the network is greatly reduced, the conflict between heartbeat data and normal communication commands is reduced, and the communication stability of the normal commands is ensured while the change of the equipment state can be quickly identified.

Description

Equipment state monitoring method, equipment state monitoring device and readable storage medium
Technical Field
The present invention relates to the field of communication control technologies, and in particular, to an apparatus status monitoring method, an apparatus status monitoring device, and a readable storage medium.
Background
With the progress of science and technology, more and more new technologies are applied to the life of people at present, and the appearance of a wireless network enables the fields of the internet of things, smart home and the like to rise rapidly. Since the technology of low power consumption Bluetooth BLE [1] and Bluetooth MESH [2], the smart home has better development. In the intelligent home field, various household devices and some detection devices, such as an intelligent lamp, an intelligent switch, an intelligent door lock and the like, can be used. When a device works, the state of the device is often required to be known, such as the states of online (power-on and normal working state processing) and offline (power-off, sleep or out-of-communication range), the signal strength of the device and the like.
Bluetooth MESH is a brand-new Bluetooth many-to-many networking technology, devices can communicate with each other and forward information in a network, and the control of the Bluetooth MESH is to ensure that the on-line state of the devices needs signals which cannot be weak, and the on-line or off-line state of the devices needs to detect information such as signal strength in real time. The online status is generally easy to implement because the device can send messages as soon as it is powered on, but is offline differently, and the device itself cannot send messages if it is offline, and therefore neither other devices nor the network configurator (provisioner) can know. To know how regularly to communicate with it, a commonly used method is to send a timed heartbeat containing some device information. The main technical scheme for realizing the heartbeat of the Bluetooth mesh equipment is as follows:
in the first scheme, a mode that equipment sends heartbeat commands at regular time is adopted. The scheme is that each device sends a heartbeat packet to a provisioner at regular time, the provisioner judges according to the time when each device receives the heartbeat, and the device is considered to be offline when the heartbeat is not received within a certain time. The bluetooth MESH protocol specification supports this approach by default.
And secondly, a mode of actively inquiring the equipment by the network configurator is adopted. The scheme is that a provider actively sends a heartbeat query command to query all devices in the whole device list, if the corresponding devices have information to return, the devices are still online, and if the devices cannot be queried for many times, the devices are offline.
In the first scheme, a standard method is adopted, and a protocol of the bluetooth mesh standard is also used in the method, but the method has a problem that concurrency is caused in one case, heartbeats of devices may be sent out simultaneously, and a great amount of heartbeat information may be received by a provider simultaneously when the provider receives the heartbeat information, so that on one hand, a probabilistic packet loss may occur, and in addition, other normal command control may be influenced, which may cause a delay in control or a command loss. And if the provider is an intelligent device which communicates through the GATT protocol and does not support MESH, the problem is further highlighted. The intelligent equipment is provided with an operating system, so that the situations of system scheduling, task switching and the like exist. And do not respond in real time, and in addition the criteria and heartbeat contain less information to know some other useful information about the device.
The second scheme is also a common mode for people, and because the second scheme is one-to-one communication, the second scheme has the advantage that the problem of heartbeat concurrence can be solved. It has the disadvantage that if the number of devices is large, the faster the polling communication will be, with a fixed heartbeat detection time, the higher the working of the provisioner device. If the provider is a gateway device supporting the mesh network or a real-time operating system, the situation is better, but for an intelligent device which does not support the mesh network to communicate by adopting a gatt (generic attribute profile) proxy protocol, a problem exists, and because the query needs to be continuously performed, the intelligent device can always occupy the resources of the system, thereby affecting other applications. In addition, the problems of system scheduling, message queue waiting and the like exist, and the received heartbeat command can also influence the normal control command communication. Thereby affecting the experience of the user.
Disclosure of Invention
The invention mainly aims to provide a device state monitoring method, aiming at solving the technical problem that heartbeat communication influences normal control commands.
In order to achieve the above object, the present invention provides an apparatus status monitoring method, including an apparatus connected to a gateway unit, the method including the steps of:
setting one of the devices as a monitoring device, and then setting the other devices as monitored devices;
the monitoring equipment acquires the state information of the monitored equipment connected with the gateway unit;
within set conditions, if activity information is acquired, the state information of the monitored equipment is determined to be on-line, and if the activity information is not acquired, the state information of the monitored equipment is determined to be off-line;
the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit.
Further, before the step of acquiring, by the monitoring device, the status information of the monitored device connected to the gateway unit, the method includes:
the gateway unit sends a command for acquiring the state of the monitored equipment to the monitoring equipment;
the monitoring equipment sends the state of the monitored equipment in the monitoring list to the gateway unit;
the gateway unit compares the monitoring list of the monitoring equipment with a local equipment list;
if the monitored equipment information in the monitoring list of the monitoring equipment is found to be incomplete, sending the missing monitored equipment information in the monitoring list of the monitoring equipment to the monitoring equipment;
and the monitoring equipment updates the monitored equipment information in the monitoring list.
Further, within the set conditions, if activity information is acquired, the state information of the monitored equipment is determined to be online, and if the activity information is not acquired, the state information of the monitored equipment is determined to be offline; the step that the monitoring device updates the state information of the monitored device in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored device to the gateway unit comprises the following steps:
acquiring activity information of the monitored equipment for multiple times according to preset interval time or within preset time, if the activity information is acquired, determining the state information of the monitored equipment to be on-line, and if the activity information is not acquired, determining the state information of the monitored equipment to be off-line;
the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit.
Further, the step of setting one of the devices as a monitoring device and the remaining devices as monitored devices includes:
and judging whether the equipment is strong electric equipment or not and whether the equipment meets the preset signal intensity condition or not, if so, setting the equipment as monitoring equipment, and setting the other equipment as monitored equipment.
Further, the step of updating, by the monitoring device, the state information of the monitored device and the time corresponding to the state information in the monitoring list, and sending the state information of the monitored device to the gateway unit includes:
judging whether the current state information is consistent with the state information of the monitored equipment in the monitoring list of the monitoring equipment, if so, updating the state information of the monitored equipment in the monitoring list and the time corresponding to the state information by the monitoring equipment, and if not, updating the state information of the monitored equipment in the monitoring list and the time corresponding to the state information by the monitoring equipment and sending the state information of the monitored equipment to the gateway unit.
Further, the activity information includes at least one of heartbeat data, beacon information, communication messages.
Further, the activity information includes heartbeat data, and before the step of setting one of the devices as a monitoring device and the other devices as the monitored devices, the method further includes the following steps:
configuring and setting a multicast address, wherein the multicast address is used for receiving heartbeat data of equipment connected with a gateway unit;
the equipment subscribes heartbeat data of the multicast address;
and the equipment adds the equipment information connected with the gateway unit to a monitoring list of the equipment according to the heartbeat data of the multicast address.
Further, the gateway unit and the monitoring device, and the monitoring device and the monitored device adopt a bluetooth MESH networking for communication connection.
The present invention also provides an apparatus state monitoring device, including: a memory, a processor and a device status monitoring program stored on the memory and executable on the processor, the device status monitoring program when executed by the processor implementing the steps of the device status monitoring method as described above.
The present invention also provides a computer-readable storage medium having stored thereon a device status monitoring program, which when executed by a processor implements the steps of the device status monitoring method as described above.
The technical scheme of the invention provides a method for monitoring equipment state, which comprises the following steps: setting one of the devices as a monitoring device, and then setting the other devices as monitored devices; the monitoring equipment acquires the state information of the monitored equipment connected with the gateway unit; within set conditions, if activity information is acquired, the state information of the monitored equipment is determined to be on-line, and if the activity information is not acquired, the state information of the monitored equipment is determined to be off-line; the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit. In the equipment state monitoring method, the monitoring equipment can be communicated with the gateway unit only when the state information of the monitored equipment is changed, so that the data volume of communication in a network is greatly reduced; and the state information of the monitored equipment is only sent to the monitored equipment, and when the number of the monitored equipment is continuously increased, the communication of the control command of the gateway unit is not influenced, so that the conflict between heartbeat data and a normal communication command is reduced, the change of the equipment state can be quickly identified, and meanwhile, the communication stability of the normal command is ensured.
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 described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of an apparatus for monitoring a state of a device according to the present invention;
fig. 2 is a schematic connection diagram of a gateway unit, a monitoring device, and a monitored device according to the present invention;
FIG. 3 is a schematic diagram of the steps of the apparatus status monitoring method of the present invention;
FIG. 4 is a schematic diagram of a power-on process of the apparatus of the present invention;
FIG. 5 is a schematic diagram of the steps of the connection process of the monitoring device according to the present invention;
FIG. 6 is a schematic diagram of the steps of the offline monitoring process of the apparatus of the present invention;
FIG. 7 is a schematic diagram of the steps of the online monitoring process of the apparatus of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture, and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, if the meaning of "and/or" and/or "appears throughout, the meaning includes three parallel schemes, for example," A and/or B "includes scheme A, or scheme B, or a scheme satisfying both schemes A and B. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
In the prior art, in the field of smart homes, such as smart lamps, smart switches, smart door locks and the like, the state of the device is often required to be known when the device works, such as the states of online (power-on and normal working state processing) and offline (power-off, dormancy or beyond communication range), and the signal strength of the device. To know the information of the devices in real time, the detection of the timed heartbeat is generally performed in real time. But the communication of normal control commands is affected by the addition of heartbeat communication. And the frequency of communication is greater if the detection time is shorter. The larger the influence on normal control is, the more delayed or lost control commands may be caused, and the experience effect of the user is seriously influenced.
The invention mainly aims to provide a device state monitoring method, aiming at solving the technical problem that heartbeat communication influences normal control commands.
It should be noted that the device status monitoring method provided by the present application may be applied to a device status monitoring apparatus, and fig. 1 shows a schematic structural block diagram of the device status monitoring apparatus provided in the embodiment of the present application, where the device status monitoring apparatus includes a memory 102, a processor 101, and a communication interface 103, and the memory 102, the processor 101, and the communication interface 103 are electrically connected to each other directly or indirectly to implement data transmission or interaction. The components are electrically connected with each other through one or more communication buses or signal lines.
The memory 102 may be configured to store a software program, such as the device status monitoring program provided in the embodiment of the present application, and the processor 101 executes the software program stored in the memory 102, so as to execute various functional applications and data processing, thereby implementing the steps of the device status monitoring method provided in the embodiment of the present application. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 102 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Programmable Read-Only Memory (EEPROM), and the like.
The processor 101 may be an integrated circuit chip having signal processing capabilities. The Processor 101 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It will be appreciated that the configuration shown in figure 1 is merely illustrative and that the device condition monitoring apparatus may also include more or fewer components than shown in figure 1 or have a different configuration than shown in figure 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The following describes an exemplary method for monitoring the state of a device according to an embodiment of the present application, with a device state monitoring apparatus as a schematic execution subject. The device state monitoring apparatus may be a gateway unit, as shown in fig. 2, and further includes a monitoring device and a plurality of monitored devices, where the monitored devices include a high-voltage device and a low-power device, each low-power device is in wireless communication connection with the high-voltage device and the monitoring device, and each high-voltage device is in wireless communication connection with the monitoring device.
As an implementation manner, please refer to fig. 3 to fig. 7, in an embodiment of the device status monitoring method according to the present invention, in the method, the gateway unit and the monitoring device, and the monitoring device and the monitored device are in communication connection by using a bluetooth MESH networking. The monitoring equipment is used for replacing the gateway unit to monitor the monitored equipment. The equipment monitoring method comprises the following steps:
s101: setting one of the devices as a monitoring device, and then setting the other devices as monitored devices;
s102: the monitoring equipment acquires the state information of the monitored equipment connected with the gateway unit;
s103: within set conditions, if activity information is acquired, the state information of the monitored equipment is determined to be on-line, and if the activity information is not acquired, the state information of the monitored equipment is determined to be off-line;
s104: the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit.
Compared with the conventional mode of sending heartbeat data at regular time in the protocol of the Bluetooth mesh standard, the equipment state monitoring method can enable the monitoring equipment to be communicated with the gateway unit only when the state information of the monitored equipment is changed, so that the data volume of communication in the network is greatly reduced; and the state information of the monitored equipment is only sent to the monitoring equipment, and when the number of the monitored equipment is continuously increased, the communication of the control command of the gateway unit is not influenced, so that the conflict between the heartbeat data and the normal communication command is reduced.
Further, the step S101: setting one of the devices as a monitoring device, and the step of setting the other devices as the monitored devices includes:
and judging whether the equipment is strong electric equipment or not and whether the equipment meets the preset signal intensity condition or not, if so, setting the equipment as monitoring equipment, and setting the other equipment as monitored equipment.
In this embodiment, the high-voltage device refers to an electrical device having an operating voltage of 220V or higher. In the category of strong electricity, the supply and distribution projects (10KV/380V/220V) of the electric power project (more than 10 KV) belong to strong electricity. In general, a strong electric device includes: high voltage circuit breakers, high voltage cabinets, transformers, sockets, switches, lights, etc., which are normally not powered off and dormant. The signal intensity condition refers to a signal intensity condition threshold value, and the condition threshold value can be set manually, so that the purpose of screening strong electric equipment with higher signal intensity is achieved. When one device is set as a monitoring device, the other devices are set as the monitored devices and are in communication connection with the monitoring device.
Further, in step S101: and setting one device as a monitoring device, and before the step that the other devices are the monitored devices, further comprising a device power-on process. The equipment power-on process comprises the following steps:
s201: configuring and setting a multicast address, wherein the multicast address is used for receiving heartbeat data of equipment connected with a gateway unit;
s202: the equipment subscribes heartbeat data of the multicast address;
s203: and the equipment adds the equipment information connected with the gateway unit to a monitoring list of the equipment according to the heartbeat data of the multicast address.
Specifically, referring to fig. 4, fig. 4 is a power-on process of the device. In this embodiment, the status information of the device includes an online status and an offline status. All devices include strong electric devices, and low power consumption devices are powered on first, and then a network is distributed. The equipment judges whether the distribution network is successful or not by acquiring the distribution network state of the equipment, and if the distribution network is not successful, the equipment continues to wait for the distribution network; if the network distribution is successful, the equipment is powered on and then goes to a multicast address which is configured by default when the network distribution is carried out, and then a specific heartbeat data, namely a heartbeat message, is sent, wherein the heartbeat data comprises mac address information of the equipment, node addresses of the equipment, signal strength and the like. Other strong electric equipment receives the heartbeat data when subscribing the multicast address, and after receiving the heartbeat data, the other strong electric equipment adds the heartbeat data into an equipment list of the other strong electric equipment, updates the current time and simultaneously replies the heartbeat data of the other strong electric equipment to sending equipment; at this time, the two devices create corresponding device lists, that is, each of the power-on devices forms a pre-stored monitoring list. It should be noted that, since the low power consumption device may sleep and may not meet the condition of becoming a monitoring device, it may not create a list itself, and may only send heartbeat data, and may not reply heartbeat information even if it receives heartbeat data of other strong electric devices. In addition, the strong electric equipment can store the self information into the monitoring list after being powered on and before sending the self heartbeat data. In addition, as the monitoring equipment is from a certain strong electric equipment, if the strong electric equipment is judged to be the monitoring equipment, the new equipment is also identified to be powered on except for establishing the list, and at the moment, the monitoring equipment updates the monitoring list; the status information, node information, signal strength, etc. of the device are then sent to the gateway unit.
Therefore, through the electrifying process, each strong electric equipment has the condition of becoming the monitoring equipment, more connection choices are provided for the gateway unit, and the gateway unit is more beneficial to screening the strong electric equipment with the strongest signal for connection.
Further, the step S102: before the monitoring facilities obtain the state information of the monitored equipment who is connected with gateway unit, still include:
s301: the gateway unit sends a command for acquiring the state of the monitored equipment to the monitoring equipment;
s302: the monitoring equipment sends the state of the monitored equipment in the monitoring list to the gateway unit;
s303: the gateway unit compares the monitoring list of the monitoring equipment with a local equipment list;
s304: if the monitored equipment information in the monitoring list of the monitoring equipment is found to be incomplete, sending the missing monitored equipment information in the monitoring list of the monitoring equipment to the monitoring equipment;
s305: and the monitoring equipment updates the monitored equipment information in the monitoring list.
Specifically, please refer to fig. 5, in which fig. 5 is a flow of connection between the monitoring device and the gateway unit. After the gateway unit is powered on and the network is distributed, when the first heavy electric equipment is powered on, a process of connecting with the gateway unit exists. The connection process is initiated by the gateway unit, specifically, the gateway unit searches for strong electric equipment with strong signals, and actively connects after searching for proper equipment. After the connection is successful, the strong electric equipment becomes monitoring equipment; then the gateway unit sends a command for acquiring the state of the monitored equipment to the monitoring equipment; after receiving the monitoring list, the monitoring equipment sends the monitoring list to the gateway unit; the gateway unit compares the monitoring list of the monitoring equipment with a local equipment list, if the reported equipment is found to be incomplete, information of the missing equipment is sent to the monitoring equipment, if the missing equipment is strong electric equipment, the monitoring equipment inquires the latest state information of the equipment, and if the inquiry is not responded for 3 times, the missing equipment is marked to be in an off-line state; if the monitored equipment is in the online state, the monitored equipment is changed into the online state, the latest state information is updated, and after all the missing equipment is detected, the updated monitoring list is sent to the gateway unit again.
Therefore, through the connection process of the monitoring equipment, the list stored in the gateway unit and the list stored in the monitoring equipment are synchronized after the gateway unit and the monitoring equipment are connected for the first time, so that a monitoring standard in the monitoring process of the subsequent monitoring equipment is formed.
Further, the step S103: if the activity information is acquired, the state information of the monitored equipment is determined to be online, and if the activity information is not acquired, the state information of the monitored equipment is determined to be offline, in the set conditions, step S104: the monitoring device updates the state information of the monitored device in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored device to the gateway unit, wherein the time comprises the following specific steps:
s401: acquiring activity information of the monitored equipment for multiple times according to preset interval time, if the activity information is acquired, determining that the state information of the monitored equipment is on-line, and if the activity information is not acquired, determining that the state information of the monitored equipment is off-line;
s402: the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit.
Further, the step S402: the monitoring device updates the state information of the monitored device in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored device to the gateway unit, wherein the time comprises the following specific steps:
judging whether the current state information is consistent with the state information of the monitored equipment in the monitoring list of the monitoring equipment, if so, updating the state information of the monitored equipment in the monitoring list and the time corresponding to the state information by the monitoring equipment, and if not, updating the state information of the monitored equipment in the monitoring list and the time corresponding to the state information by the monitoring equipment and sending the state information of the monitored equipment to the gateway unit.
Specifically, please refer to fig. 6, in which fig. 6 is a flow of the device offline monitoring. In the monitoring process, firstly, judging whether the equipment in the monitoring list is in an online state, if so, switching to an online monitoring process; and the monitoring equipment continuously and circularly checks the monitoring interval time of each monitored equipment in the monitoring list, and if the preset interval time is met, the monitoring equipment sends a heartbeat inquiry command to the strong electric equipment. If the monitoring equipment can receive a response, the state information of the monitored equipment is determined to be on-line, then whether the state information of the monitored equipment in a monitoring list of the monitoring equipment is in an on-line state or not is judged, if yes, the time corresponding to the state information of the equipment is updated, the working state of receiving the activity message of the monitored equipment is continuously kept, the monitoring interval time of the monitoring equipment is continuously repeated, a next inquiry command is made, if not, the state information of the monitored equipment and the time corresponding to the state information in the monitoring list are updated, and the latest state of the monitored equipment is sent to a gateway unit; if the inquiry is over 3 times or no response is made, the state information of the monitored equipment is determined to be offline, then whether the state information of the monitored equipment in the monitoring list of the monitoring equipment is in an offline state or not is judged, if not, the monitoring equipment updates the state information of the monitored equipment in the monitoring list to be offline and the time corresponding to the state information, the latest state of the monitored equipment is sent to the gateway unit, and if yes, the time corresponding to the state information of the equipment is updated.
Therefore, through the device offline monitoring process, the monitoring device can actively inquire whether the heavy-current equipment is online or not, the state information of the monitored equipment is updated in time, and a user can know the use condition of the equipment in time conveniently.
Further, the device offline monitoring process further includes monitoring the low-power consumption device, and the steps are as follows:
s501: determining state information of the low-power consumption device by judging whether the monitoring device receives an activity message of the low-power consumption device within a certain time;
s502: and judging whether the state information is consistent with the state information of the low-power consumption equipment in a monitoring list prestored in the monitoring equipment, if not, updating the state information of the low-power consumption equipment in the monitoring list, sending the state information of the low-power consumption equipment to a gateway unit, and if so, updating the recording time of the low-power consumption equipment in the monitoring list.
Specifically, in the above-mentioned device offline monitoring process, the interval time between the strong electric device and the low-power-consumption device in the device state list is different, and for the low-power-consumption device, the low-power-consumption device cannot be queried because the low-power-consumption device is generally in a dormant state. In the monitoring process, as long as the interval time exceeds a preset value, the monitoring equipment does not receive a heartbeat command or other messages of the low-power consumption equipment, and determines that the equipment is in an off-line state, and at the moment, if the state information of the monitored equipment in a monitoring list of the monitoring equipment is in the off-line state, the monitored recording time in the current monitoring list is updated; if any monitored equipment is in an offline state before, the monitoring equipment suddenly receives the information of the equipment (no matter any information, as long as the MAC address of the information source or the node address is the equipment), the state information of the low-power consumption equipment in the monitoring list is updated and marked to be in an online state, and the state information is sent to the gateway unit.
Further, the step S103: if the activity information is acquired, the state information of the monitored equipment is determined to be online, and if the activity information is not acquired, the state information of the monitored equipment is determined to be offline, in the set conditions, step S104: the monitoring device updates the state information of the monitored device in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored device to the gateway unit, and the method further comprises the following steps:
s601: within a preset time, if activity information is acquired, the state information of the monitored equipment is determined to be on-line, and if the activity information is not acquired, the state information of the monitored equipment is determined to be off-line;
s602: the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit.
Further, the step S602: the monitoring device updates the state information of the monitored device in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored device to the gateway unit, wherein the time comprises the following specific steps:
judging whether the current state information is consistent with the state information of the monitored equipment in the monitoring list of the monitoring equipment, if so, updating the state information of the monitored equipment in the monitoring list and the time corresponding to the state information by the monitoring equipment, and if not, updating the state information of the monitored equipment in the monitoring list and the time corresponding to the state information by the monitoring equipment and sending the state information of the monitored equipment to the gateway unit.
Specifically, please refer to fig. 7, in which fig. 7 is a process of online monitoring of the device. In the monitoring process, the monitoring equipment receives various activity messages sent by the monitored equipment, wherein the activity messages comprise heartbeat data, beacon messages, communication information and forwarding messages, and the monitored equipment can be determined to be in an online state only by identifying the monitored equipment from which the activity messages are sent without knowing the content of the messages; subsequently, whether the activity message is from the monitored equipment in the monitoring list is judged; if not, adding the new device to the monitoring list, updating the recording time of the device, then marking the device as an online state, and sending the latest state of the device to the gateway unit; if the activity message is judged to be from the monitored equipment in the monitoring list, updating the recording time of the equipment, further judging whether the state information of the monitored equipment in the monitoring list prestored by the monitoring equipment is in an offline state, and if not, continuously maintaining the working state of receiving the activity message of the monitored equipment; if yes, the monitoring equipment updates the state information of the monitored equipment in the monitoring list to be on-line and time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit.
Preferably, in this embodiment, the monitoring list includes recording time, node address, status information, signal strength information, and battery level information of the monitored device.
Therefore, through the device online monitoring process, any new device can also access the monitoring system, and in the monitoring process, the basis for determining whether the monitored device belongs to the online state is not limited to heartbeat data, and can also be beacon messages, communication information and forwarding information, so that the efficiency of identifying the online state of the monitored device is greatly improved.
It should be noted that the device status monitoring method is not only suitable for detecting the status of the bluetooth MESH wireless network real-time device, but also suitable for detecting the status information of the wireless devices such as zigbee and WIFI, and is not limited herein.
In the device state monitoring method, the monitoring device can be communicated with the gateway unit only when the state information of the monitored device changes in the monitoring process by adopting the method, so that the data volume of communication in a network is greatly reduced, the conflict between heartbeat data and a normal communication command is reduced, the change of the device state can be quickly identified, and the communication stability of the normal command is ensured.
In the embodiments provided in the present application, it should be understood that the disclosed device condition monitoring apparatus and method may be implemented in other manners. The above-described device condition monitoring apparatus embodiments are merely illustrative, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s).
It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for monitoring the status of a device comprising a device connected to a gateway unit, the method comprising the steps of:
setting one of the devices as a monitoring device, and then setting the other devices as monitored devices;
the monitoring equipment acquires the state information of the monitored equipment connected with the gateway unit;
within set conditions, if activity information is acquired, the state information of the monitored equipment is determined to be on-line, and if the activity information is not acquired, the state information of the monitored equipment is determined to be off-line;
the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit.
2. The device status monitoring method according to claim 1, wherein the step of the monitoring device obtaining the status information of the monitored device connected to the gateway unit is preceded by:
the gateway unit sends a command for acquiring the state of the monitored equipment to the monitoring equipment;
the monitoring equipment sends the state of the monitored equipment in the monitoring list to the gateway unit;
the gateway unit compares the monitoring list of the monitoring equipment with a local equipment list;
if the monitored equipment information in the monitoring list of the monitoring equipment is found to be incomplete, sending the missing monitored equipment information in the monitoring list of the monitoring equipment to the monitoring equipment;
and the monitoring equipment updates the monitored equipment information in the monitoring list.
3. The device status monitoring method according to claim 1, wherein within the set conditions, if activity information is acquired, the status information of the monitored device is determined to be online, and if the activity information is not acquired, the status information of the monitored device is determined to be offline; the step that the monitoring device updates the state information of the monitored device in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored device to the gateway unit comprises the following steps:
acquiring activity information of the monitored equipment for multiple times according to preset interval time or within preset time, if the activity information is acquired, determining the state information of the monitored equipment to be on-line, and if the activity information is not acquired, determining the state information of the monitored equipment to be off-line;
the monitoring equipment updates the state information of the monitored equipment in the monitoring list and the time corresponding to the state information, and sends the state information of the monitored equipment to the gateway unit.
4. The device status monitoring method according to claim 1, wherein the step of setting one of the devices as a monitoring device and the remaining devices as monitored devices comprises:
and judging whether the equipment is strong electric equipment or not and whether the equipment meets the preset signal intensity condition or not, if so, setting the equipment as monitoring equipment, and setting the other equipment as monitored equipment.
5. The device status monitoring method according to claim 3 or 4, wherein the step of the monitoring device updating the status information of the monitored device in the monitoring list and the time corresponding to the status information, and sending the status information of the monitored device to the gateway unit comprises:
judging whether the current state information is consistent with the state information of the monitored equipment in the monitoring list of the monitoring equipment, if so, updating the state information of the monitored equipment in the monitoring list and the time corresponding to the state information by the monitoring equipment, and if not, updating the state information of the monitored equipment in the monitoring list and the time corresponding to the state information by the monitoring equipment and sending the state information of the monitored equipment to the gateway unit.
6. The device status monitoring method according to claim 1, wherein the activity information comprises at least one of heartbeat data, beacon information, communication messages.
7. The device status monitoring method according to claim 1, wherein the activity information includes heartbeat data, and before the step of setting one of the devices as the monitoring device and the remaining devices as the monitored devices, the method further includes the steps of:
configuring and setting a multicast address, wherein the multicast address is used for receiving heartbeat data of equipment connected with a gateway unit;
the equipment subscribes heartbeat data of the multicast address;
and the equipment adds the equipment information connected with the gateway unit to a monitoring list of the equipment according to the heartbeat data of the multicast address.
8. The device status monitoring method according to any one of claims 1 to 7, wherein the gateway unit and the monitoring device, and the monitoring device and the monitored device are in communication connection by using a Bluetooth MESH networking.
9. An apparatus state monitoring device, characterized in that the apparatus state monitoring device comprises: memory, a processor and a device status monitoring program stored on the memory and executable on the processor, the device status monitoring program when executed by the processor implementing the steps of the device status monitoring method according to any one of claims 1-8.
10. A computer-readable storage medium, having stored thereon a device status monitoring program which, when executed by a processor, implements the steps of the device status monitoring method according to any one of claims 1-8.
CN202110956502.1A 2021-08-19 2021-08-19 Device state monitoring method, device state monitoring apparatus, and readable storage medium Active CN113596884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110956502.1A CN113596884B (en) 2021-08-19 2021-08-19 Device state monitoring method, device state monitoring apparatus, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110956502.1A CN113596884B (en) 2021-08-19 2021-08-19 Device state monitoring method, device state monitoring apparatus, and readable storage medium

Publications (2)

Publication Number Publication Date
CN113596884A true CN113596884A (en) 2021-11-02
CN113596884B CN113596884B (en) 2023-11-03

Family

ID=78238592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110956502.1A Active CN113596884B (en) 2021-08-19 2021-08-19 Device state monitoring method, device state monitoring apparatus, and readable storage medium

Country Status (1)

Country Link
CN (1) CN113596884B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401207A (en) * 2021-12-30 2022-04-26 北京首钢自动化信息技术有限公司 Positioning method and device for communication abnormal terminal equipment and electronic equipment
CN114630393A (en) * 2022-02-25 2022-06-14 深圳市海洋王石油照明技术有限公司 Method and device for updating state and computer storage medium
WO2024093851A1 (en) * 2022-11-04 2024-05-10 华为技术有限公司 Internet of things device heartbeat detection method and system, and communication apparatus
WO2024093211A1 (en) * 2022-10-31 2024-05-10 青岛海尔空调器有限总公司 Method and apparatus for acquiring offline data, and wireless communication module and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103887890A (en) * 2014-04-22 2014-06-25 武汉大学 Disaster area power grid state monitoring method
US20170257226A1 (en) * 2016-03-04 2017-09-07 Wireless Input Technology, Inc. Method for Detecting the Status of a Home Automation Device
CN107463106A (en) * 2017-09-20 2017-12-12 深圳市晟达机械设计有限公司 A kind of intelligent domestic system
CN109218126A (en) * 2017-06-30 2019-01-15 中兴通讯股份有限公司 The method, apparatus and system of monitoring node existing state
CN110191018A (en) * 2019-05-28 2019-08-30 百度在线网络技术(北京)有限公司 Method for monitoring abnormality, device and the computer equipment of vehicle CAN bus
US20190280952A1 (en) * 2016-05-19 2019-09-12 Genesys Electronics Design Pty Ltd A network connectable device and a method for monitoring a service-state of a network connected device
CN110708222A (en) * 2019-10-14 2020-01-17 珠海格力电器股份有限公司 Control method, control device, gateway and storage medium
CN111224868A (en) * 2020-04-10 2020-06-02 科通工业技术(深圳)有限公司 Control system and control method of gateway of Internet of things
CN111245882A (en) * 2018-11-28 2020-06-05 北京奇虎科技有限公司 Information management method, terminal equipment and server
CN111970182A (en) * 2020-09-10 2020-11-20 四川长虹电器股份有限公司 Control system and method for automatically replacing intelligent household equipment
CN112468361A (en) * 2020-11-19 2021-03-09 苏州浪潮智能科技有限公司 Network connection state monitoring method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103887890A (en) * 2014-04-22 2014-06-25 武汉大学 Disaster area power grid state monitoring method
US20170257226A1 (en) * 2016-03-04 2017-09-07 Wireless Input Technology, Inc. Method for Detecting the Status of a Home Automation Device
US20190280952A1 (en) * 2016-05-19 2019-09-12 Genesys Electronics Design Pty Ltd A network connectable device and a method for monitoring a service-state of a network connected device
CN109218126A (en) * 2017-06-30 2019-01-15 中兴通讯股份有限公司 The method, apparatus and system of monitoring node existing state
CN107463106A (en) * 2017-09-20 2017-12-12 深圳市晟达机械设计有限公司 A kind of intelligent domestic system
CN111245882A (en) * 2018-11-28 2020-06-05 北京奇虎科技有限公司 Information management method, terminal equipment and server
CN110191018A (en) * 2019-05-28 2019-08-30 百度在线网络技术(北京)有限公司 Method for monitoring abnormality, device and the computer equipment of vehicle CAN bus
CN110708222A (en) * 2019-10-14 2020-01-17 珠海格力电器股份有限公司 Control method, control device, gateway and storage medium
CN111224868A (en) * 2020-04-10 2020-06-02 科通工业技术(深圳)有限公司 Control system and control method of gateway of Internet of things
CN111970182A (en) * 2020-09-10 2020-11-20 四川长虹电器股份有限公司 Control system and method for automatically replacing intelligent household equipment
CN112468361A (en) * 2020-11-19 2021-03-09 苏州浪潮智能科技有限公司 Network connection state monitoring method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
W. -K. PARK, C. -S. CHOI, H. LEE AND K. -R. PARK,: "Energy Efficient Home Gateway Based on User Service Traffic in Always-On Home Network Environment", 2008 INTERNATIONAL CONFERENCE ON ADVANCES IN ELECTRONICS AND MICRO-ELECTRONICS *
王瑞: "基于WSN和神经网络的老人行为监测技术研究", 信息科技 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401207A (en) * 2021-12-30 2022-04-26 北京首钢自动化信息技术有限公司 Positioning method and device for communication abnormal terminal equipment and electronic equipment
CN114401207B (en) * 2021-12-30 2024-03-15 北京首钢自动化信息技术有限公司 Communication abnormal terminal equipment positioning method and device and electronic equipment
CN114630393A (en) * 2022-02-25 2022-06-14 深圳市海洋王石油照明技术有限公司 Method and device for updating state and computer storage medium
WO2024093211A1 (en) * 2022-10-31 2024-05-10 青岛海尔空调器有限总公司 Method and apparatus for acquiring offline data, and wireless communication module and storage medium
WO2024093851A1 (en) * 2022-11-04 2024-05-10 华为技术有限公司 Internet of things device heartbeat detection method and system, and communication apparatus

Also Published As

Publication number Publication date
CN113596884B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
CN113596884A (en) Equipment state monitoring method, equipment state monitoring device and readable storage medium
US8792401B2 (en) Systems and methods for reducing power consumption in communication networks
CN110167043B (en) Equipment control method and device, Internet of things system, electronic equipment and storage medium
EP1233538A2 (en) Power line communications system
CN110687995B (en) Improved wireless HVAC assembly
CN107534941B (en) System for communication over a network
CN110602771B (en) Power consumption control method and device and vehicle networking terminal
JPWO2011129086A1 (en) Communication terminal and communication method
CN112804319B (en) Intelligent device control method and device, electronic device and computer readable medium
CN112769606B (en) Method, device and storage medium for energy conservation of clock synchronization network
US20170168545A1 (en) Decentralized Sleep Management
CN105142116B (en) A kind of the communication network switching method and switching system of smart machine
US7826412B2 (en) Systems, methods and computer products for providing a gradient driven mesh-network establishment
CN103078756A (en) Mode switching method and CAN (Controller Area Network)
CN114423128A (en) Lamp group control method, system and related equipment
CN111971984B (en) Low-power consumption Bluetooth communication method, electronic device, network and storage medium
CN106790745A (en) A kind of method and system based on IP conflicts and Real-time Alarm in ARP protocol real-time monitoring subnet
WO2015141413A1 (en) Control system, hems controller, and control method
CN114900846A (en) Device display state updating method and device, electronic device and storage medium
CN113645602B (en) Distributed management method, system, communication terminal and readable storage medium
CN109151014B (en) NAN-based intelligent management method and related product
CN107196779B (en) Method, node and system for realizing network self-healing
TW202222092A (en) Methods for multidrop network system
US11178002B1 (en) Autonomous adaptive controller for active wireless lighting communication
CN113840437B (en) Working method of sensor feedback system and lighting system

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
GR01 Patent grant
GR01 Patent grant