Disclosure of Invention
The technical problem to be solved by the present invention is to provide a fault diagnosis device for a sensor network and a fault diagnosis method thereof, aiming at solving the problems of low fault diagnosis efficiency and no strong expandability of the sensor network.
In order to solve the technical problem, the invention is realized in such a way that the fault diagnosis device of the sensor network comprises a plurality of monitors and a computing terminal; the sensor network transmits electromagnetic wave signals through at least one channel, each monitor monitors the electromagnetic wave signals of one channel, and the channels monitored by the monitors are different; the plurality of listeners are in communication connection with the computing terminal, and the listeners do not interfere with each other; the monitoring range of the monitors is at least partially overlapped with the range of the sensor network, the plurality of monitors transmit monitored data information to the computing terminal, and the computing terminal correspondingly receives the data information and displays a processing result.
Furthermore, the fault diagnosis device also comprises an alarm which is electrically connected with the computing terminal, and when the processing result displayed on the computing terminal is abnormal, the computing terminal controls the alarm to give an alarm; and when the processing result displayed on the computing terminal is normal, the alarm does not give an alarm sound.
Further, the monitoring range of the listener is a spherical area formed by taking the listener as a center and taking not more than 50 meters as a monitoring radius.
Furthermore, the monitor comprises a monitoring module and a data uploading module, the monitoring module is electrically connected with the data uploading module, the monitoring module monitors electromagnetic wave signals transmitted between two adjacent sensors in the sensor network, and the data uploading module converts the electromagnetic wave signals into electric signals and correspondingly transmits the electric signals to the computing terminal.
Further, the number of the listeners is 16.
The invention also provides a fault diagnosis method for diagnosing the sensor network by adopting the fault diagnosis device of the sensor network, which comprises the following steps:
s10, data acquisition, namely respectively monitoring electromagnetic wave signals between two adjacent sensors in the sensor network through a plurality of monitors, and transmitting the collected data information of the electromagnetic wave signals between the two adjacent sensors to a computing terminal;
s20, processing data, wherein the computing terminal receives the data information transmitted by the plurality of listeners and decodes the data information through a network protocol to extract the information;
and S30, diagnosis and display, wherein the computing terminal judges whether the sensor at the corresponding position is abnormal according to the extracted information, if so, the display position corresponding to the corresponding sensor on the computing terminal is displayed with a warning color, otherwise, the display position corresponding to the corresponding sensor on the computing terminal is displayed with green color.
Further, the method also comprises the following steps:
and S40, giving an alarm prompt, wherein when the display position of the computing terminal corresponding to the corresponding sensor displays an alarm color, the computing terminal controls an alarm to give an alarm sound.
Further, the step S10 specifically includes the following steps:
s101, when the monitoring range of the monitor is partially overlapped with the range of the sensor network, moving a fault diagnosis device of the sensor network to enable the monitoring range to cover the range of the sensor network; alternatively, the first and second electrodes may be,
s102, when the monitoring range of the monitor completely covers the range of the sensor network, directly placing the fault diagnosis device of the sensor network at a corresponding monitoring position.
Compared with the prior art, the invention has the beneficial effects that: the invention relates to a fault diagnosis device of a sensor network, which comprises a computing terminal and a plurality of monitors. Because each of the listeners can monitor an electromagnetic wave signal of a channel, and the channels monitored by the respective listeners are different, the plurality of listeners are all in communication connection with the computing terminal, so that the monitoring range of the listeners at least partially coincides with the range of the sensor network. The data information monitored by the plurality of monitors is transmitted to the computing terminal, the computing terminal correspondingly receives the data information and displays a processing result, and a detector can visually find that a part of the sensor network has a problem through the processing result displayed on the computing terminal. The fault diagnosis device for the sensor network has the advantages that the fault diagnosis of the sensor network is carried out, the detection efficiency is high, in addition, special professional researchers are not needed for carrying out data analysis, and common personnel can also use the fault diagnosis device for carrying out the fault diagnosis of the sensor network, so that the high expandability is realized.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
as shown in fig. 1, a failure diagnosis apparatus 100 for a sensor network according to an embodiment of the present invention includes several listeners 10 and a computing terminal 20. Each of the listeners 10 monitors an electromagnetic wave signal of one channel, and the channels monitored by the respective listeners 10 are different. The plurality of listeners 10 are all in communication connection (for example, USB connection or wireless connection) with the computing terminal 20 for data transmission, and signal transmission of each listener 10 does not interfere with each other.
Specifically, in this embodiment, the sensor network includes a plurality of sensors such as sensor a, sensor B, sensor C, sensor D and the cloud server, all carry out electromagnetic wave signal transmission through a channel 1 between a plurality of sensors. The monitoring range of the listeners 10 partially coincides with the range of the sensor network, the plurality of listeners 10 sequentially transmit monitored data information to the computing terminal 20, and the computing terminal 20 correspondingly receives the data information and displays a processing result. Since the monitoring range of the listener 10 only partially covers the sensor network in this embodiment, the detecting person needs to hold the failure diagnosis apparatus 100 and move around within the signal coverage range of the sensor network until all the sensors in the sensor network are monitored.
Preferably, in the above embodiment, the number of the listeners 10 is 16, and at most 16 channels of electromagnetic wave signals can be detected simultaneously, and in a specific detection, the sensor network performs electromagnetic wave signal transmission through several channels, so that several listeners 10 operate simultaneously. In this embodiment, since the sensor network only transmits the electromagnetic wave signal through one channel 1, only one listener 10 is needed to listen to the electromagnetic wave signal. The monitoring range of the listener 10 is a spherical area formed by taking the listener 10 as a center and taking not more than 50 meters as a monitoring radius, as shown by a dotted line in fig. 1. In the spherical area, the monitor 10 has the best monitoring effect, and the monitoring effect gradually weakens after the monitoring range exceeds the area.
The listener 10 includes a listening module (not shown) and a data uploading module (not shown), the listening module is connected to the data uploading module through a network, and the listening module listens to electromagnetic wave signals transmitted between two adjacent sensors in the sensor network, that is, electromagnetic wave signals of the channel 1. The data uploading module correspondingly converts the electromagnetic wave signals into hexadecimal electric signal data and transmits the hexadecimal electric signal data to the computing terminal 20, the computing terminal 20 extracts information after decoding through a network protocol, and judges whether the sensor at the corresponding position is abnormal or not according to the extracted information. It should be noted that the listener 10 mentioned in this embodiment is well known to those skilled in the art, and the listening module and the data uploading module are also existing modules and can be directly accessed.
Preferably, in the above embodiment, the fault diagnosis apparatus 100 further includes an alarm 30, the alarm 30 is electrically connected to the computing terminal 20, and when the processing result displayed on the computing terminal 20 is abnormal, the computing terminal 20 controls the alarm 30 to sound an alarm; otherwise, the alarm 30 does not sound an alarm. The alarm 30 is used for warning the detection personnel through voice prompt, and informing the detection personnel that the abnormality occurs at the position, so that the abnormal area is prevented from being overlooked due to negligence of the detection personnel.
Example two:
referring to fig. 2, another fault diagnosis apparatus 100 for a sensor network according to an embodiment of the present invention includes a plurality of listeners 10 and a computing terminal 20. The difference between this embodiment and the first embodiment is that the listening range of the listener 10 of this embodiment completely covers the sensor network.
Specifically, in this embodiment, the monitoring range of the listener 10 completely covers the sensor network, so that, in specific use, only the fault diagnosis device 100 needs to be directly placed in the sensor network, and the fault diagnosis device 100 does not need to be held by a detection person to move around in the sensor network, which can save the labor cost to a certain extent.
Except for the above differences, the remaining structures of the present embodiment are the same as those of the first embodiment, and are not described herein again.
Example three:
referring to fig. 3, a fault diagnosis apparatus 100 for a sensor network according to another embodiment of the present invention includes a plurality of listeners 10 and a computing terminal 20. The present embodiment is different from the first embodiment in that in the present embodiment, the sensor network performs electromagnetic wave signal transmission through a plurality of channels.
Specifically, in this embodiment, electromagnetic wave signal transmission is performed between sensor a and sensor B through channel 1, between sensor B and sensor C through channel 2, and between sensor C and sensor D through channel 3 … …; meanwhile, the sensor network carries out electromagnetic wave signal transmission by no more than 16 channels at most.
Thus, when the fault diagnosis apparatus 100 is used, a plurality of listeners 10 are simultaneously used to simultaneously monitor electromagnetic wave signals transmitted between two adjacent sensors in the sensor network. When the plurality of simultaneously operating listeners 10 monitor electromagnetic wave signals, the plurality of listeners 10 sequentially transmit the monitored data information to the computing terminal 20, the signal transmission of the plurality of listeners 10 is not interfered with each other, and only after the data information of the previous listener 10 is transmitted, the next listener 10 transmits the data information. The computing terminal 20 determines the received data information one by one, thereby determining an abnormal area and a normal area.
Except for the above differences, the remaining structures of the present embodiment are the same as those of the first embodiment, and are not described herein again.
Example four:
referring to fig. 4, a fault diagnosis apparatus 100 for a sensor network according to another embodiment of the present invention includes a plurality of listeners 10 and a computing terminal 20. The difference between this embodiment and the third embodiment is that the listening range of the listener 10 of this embodiment completely covers the sensor network.
The same beneficial effects as those produced by the second embodiment are that, in this embodiment, only the fault diagnosis device 100 needs to be directly placed in the sensor network, and the detection personnel does not need to hold the fault diagnosis device 100 to walk in the sensor network, so that the labor cost can be saved to a certain extent.
Except for the above differences, the remaining structure of this embodiment is the same as that of the third embodiment, and is not described herein again.
Referring to fig. 5, an embodiment of the present invention further provides a method for diagnosing a fault of a sensor network, which specifically includes the following steps:
s10, data acquisition, namely respectively monitoring electromagnetic wave signals between two adjacent sensors in the sensor network through a plurality of monitors 10; the method specifically comprises the following steps:
s101, when the monitoring range of the monitor 10 partially covers the sensor network, an operator holds the fault diagnosis device 100 of the sensor network by hand and moves within the signal coverage range of the sensor network until the plurality of monitors 10 finish monitoring all the sensors in the sensor network;
s102, when the monitoring range of the monitor 10 completely covers the sensor network, directly placing the fault diagnosis device 100 of the sensor network at a corresponding monitoring position;
s20, processing data, wherein after the data acquisition is finished, the plurality of listeners 10 convert electromagnetic wave signals into hexadecimal electric signal data and transmit the hexadecimal electric signal data to the computing terminal 20 through a USB interface; the computing terminal 20 receives the data information transmitted by the plurality of listeners, decodes the data information through a network protocol, and extracts the information; it is noted that in this embodiment, the network protocol is also a protocol known to those skilled in the art;
s30, diagnosis and display, wherein the computing terminal 20 judges whether the sensor at the corresponding position is abnormal according to the extracted information, if so, the position corresponding to the sensor on the computing terminal 20 is displayed as a warning color, otherwise, the position corresponding to the sensor on the computing terminal 20 is displayed as green;
and S40, alarming, wherein when the position of the computing terminal 20 corresponding to the sensor shows a warning color, the computing terminal 20 controls the alarm 30 to send out an alarm sound for prompting the detection personnel, so as to avoid neglecting the abnormal area.
By using the fault diagnosis method to diagnose the fault of the sensor network, the detection efficiency is high, and a special professional researcher is not needed to analyze data, so that a common person can also use the fault diagnosis device 100 to diagnose the fault of the sensor network, and the fault diagnosis method has strong expandability.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.