Disclosure of Invention
The embodiment of the application provides an abnormality detection device and an abnormality detection system, which can overcome the problem of lower safety in the prior art at least to a certain extent and improve the safety.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
According to an aspect of the embodiment of the present application, there is provided an abnormality detection apparatus for detecting whether an apparatus in a local area network has a failure, including:
The embedded device is used for converting the plurality of running state information in the time period into two-dimensional codes to be identified and displaying the two-dimensional codes when the running state information sent by the equipment in the local area network in the previous time period is received, and displaying the two-dimensional codes to be identified in the previous time period when the running state information sent by the equipment in the local area network in the current time period is not received;
The operation and maintenance device is used for identifying the two-dimensional code to be identified to obtain identification information, sending the identification information to the server, and not sending information to the server when the two-dimensional code to be identified in the previous period is judged to be identical to the two-dimensional code to be identified in the current period;
And the server is used for receiving the identification information and sending abnormal prompt information to the monitoring terminal when detecting that the information is not received beyond the first preset time period, wherein the abnormal prompt information is used for indicating that equipment in the local area network fails.
In some embodiments of the present application, the operation and maintenance device is specifically configured to determine that the two-dimensional code to be identified in the previous period is the same as the two-dimensional code to be identified in the current period when the embedded device receives the running state information in the previous period and does not receive the running state information in the current period.
In some embodiments of the present application, the operation and maintenance device is further configured to identify the two-dimensional code to be identified in the current period to obtain identification information when it is determined that the two-dimensional code to be identified in the previous period is different from the two-dimensional code to be identified in the current period, and send the identification information to a server.
In some embodiments of the present application, the operation and maintenance device is specifically configured to determine that the two-dimensional code to be identified in the previous period is different from the two-dimensional code to be identified in the current period when the embedded device receives the operation state information in the previous period and the operation state information in the current period respectively.
In some embodiments of the present application, the embedded device is specifically configured to convert, when receiving operation state information of a previous period, a plurality of operation state information of the previous period into a first two-dimensional code to be identified, and convert, when receiving operation state information of a current period, the plurality of operation state information of the current period into a second two-dimensional code to be identified, where the first two-dimensional code to be identified is different from the second two-dimensional code to be identified.
In some embodiments of the present application, the embedded device includes:
The control module is connected with the local area network equipment and is used for converting the operation state information in the period into the two-dimensional code to be identified when receiving the operation state information sent by the local area network equipment in the period;
And the screen is connected with the control module and is used for displaying the two-dimensional code to be identified in the last period or the two-dimensional code to be identified in the current period.
In some embodiments of the present application, the operation and maintenance device includes a scanner, a judging module and a processing module;
the position of the scanner corresponds to the position of the screen, and the scanner is used for identifying the two-dimensional code to be identified to obtain identification information;
The judging module is respectively connected with the scanner and the processing module and is used for judging whether the two-dimensional code to be identified in the previous period is the same as the two-dimensional code to be identified in the current period;
the processing module is connected with the server and is used for not sending information to the server when the two-dimensional code to be identified in the previous period is judged to be the same as the two-dimensional code to be identified in the current period, and sending identification information to the server when the two-dimensional code to be identified in the previous period is judged to be different from the two-dimensional code to be identified in the current period.
In some embodiments of the present application, the abnormality detection apparatus further includes an alarm connected to the control module, and configured to send an alarm signal when it is detected that the embedded device does not receive the running state information within a second preset period of time.
In some embodiments of the present application, the embedded device is specifically configured to receive, when the device in the local area network is in a first operating state, operating state information of the device in the local area network, and not receive, when the device in the local area network is in a second operating state, the operating state information of the device in the local area network.
In some embodiments of the present application, the running state information includes a heartbeat packet.
According to another aspect of the embodiment of the application, an abnormality detection system is provided, which comprises any one of the abnormality detection devices and an in-local-area-network device, wherein the abnormality detection device is used for detecting whether the in-local-area-network device has a fault or not.
In the technical scheme provided by the embodiments of the application, the abnormality detection device and the abnormality detection system can detect whether equipment in a local area network has faults or not, and comprise an embedded device, an operation and maintenance device and a server, wherein the embedded device is used for converting a plurality of operation state information in a period into two-dimension codes to be identified and displaying the two-dimension codes when receiving the plurality of operation state information sent by the equipment in the local area network in the previous period, and displaying the two-dimension codes to be identified in the previous period when not receiving the operation state information sent by the equipment in the local area network in the current period, the operation and maintenance device is used for identifying the two-dimension codes to be identified to obtain identification information, sending the identification information to the server, and not sending information to the server when judging that the two-dimension codes to be identified in the previous period are identical with the two-dimension codes to be identified in the current period, and the server is used for receiving the identification information and sending abnormality prompt information to a monitoring terminal when detecting that the information is not received in the current period exceeding a first preset period, and the abnormality prompt information is used for indicating that the equipment in the local area network has faults. When the two-dimensional code to be identified in the previous time period is the same as the two-dimensional code to be identified in the current time period, no information is sent to the server, so that the server determines that equipment in the local area network fails through the fact that the information is not received, abnormal prompt information is timely sent, a user is conveniently notified in time, the failure is timely found, the user can conveniently process the failure, and safety is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many different forms and should not be construed as limited to the examples set forth herein, but rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It should be noted that the term "plurality" as used herein means two or more. "and/or" describes the association relationship of the association object, and indicates that there may be three relationships, for example, a and/or B may indicate that there are three cases of a alone, a and B together, and B alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
As shown in fig. 1, the abnormality detection apparatus 100 of the present application is used for detecting whether the device 10 in the lan has a fault, and the abnormality detection apparatus 100 includes an embedded device 20, an operation and maintenance device 30, a server 40, and a monitoring terminal 50.
The embedded device 20 is configured to convert, when receiving a plurality of operation status information sent by the device 10 in the local area network in a previous period, the plurality of operation status information in the period into a two-dimensional code to be identified and display the two-dimensional code, and when not receiving the operation status information sent by the device 10 in the local area network in a current period, display the two-dimensional code to be identified in the previous period, where in an embodiment, the operation status information may include a heartbeat packet. The duration of the previous period is equal to the duration of the current period, and can be specifically set according to requirements.
The operation and maintenance device 30 is configured to identify the two-dimensional code to be identified, obtain identification information, send the identification information to the server 40, and not send information to the server 40 when it is determined that the two-dimensional code to be identified in the previous period is the same as the two-dimensional code to be identified in the current period;
And the server 40 is configured to receive the identification information and send, when it is detected that no information is received beyond a first preset duration, an abnormality prompting message to the monitor terminal 50, where the abnormality prompting message is used to instruct the device 10 in the local area network to malfunction, so as to prompt the user.
In an embodiment, the operation and maintenance device 30 is specifically configured to determine that the two-dimensional code to be identified in the previous period is the same as the two-dimensional code to be identified in the current period when the embedded device 20 receives the operation state information in the previous period and does not receive the operation state information in the current period.
In an embodiment, the operation and maintenance device 30 is further configured to identify the two-dimensional code to be identified in the current period to obtain identification information when it is determined that the two-dimensional code to be identified in the previous period is different from the two-dimensional code to be identified in the current period, and send the identification information to the server 40.
In an embodiment, the operation and maintenance device 30 is specifically configured to determine that the two-dimensional code to be identified in the previous period is different from the two-dimensional code to be identified in the current period when the embedded device 20 receives the operation state information in the previous period and the operation state information in the current period respectively.
In an embodiment, the embedded device 20 is specifically configured to convert, when receiving the running state information of a previous period, the running state information of the previous period into a first two-dimensional code to be identified, and convert, when receiving the running state information of a current period, the running state information of the current period into a second two-dimensional code to be identified, where the first two-dimensional code to be identified is different from the second two-dimensional code to be identified.
In one embodiment, as shown in fig. 2, the embedded appliance 20 includes a control module 21 and a screen 22.
The control module 21 is respectively connected with the local area network equipment 10 and the screen 22, and the control module 21 is used for converting the plurality of operation state information in the period into a two-dimensional code to be identified when receiving the plurality of operation state information sent by the local area network equipment 10 in the last period;
And the screen 22 is used for displaying the two-dimensional code to be identified in the previous period or the current period. That is, the screen 22 may display the first two-dimensional code to be identified or the second two-dimensional code to be identified.
In an embodiment, as shown in fig. 3, the operation and maintenance device 30 includes a scanner 31, a judging module 32 and a processing module 33, where the position of the scanner 31 corresponds to the position of the screen 22, the judging module 32 is connected to the scanner 31 and the processing module 33, and the processing module 33 is connected to the server 40;
the scanner 31 is configured to identify the two-dimensional code to be identified, so as to obtain identification information;
The judging module 32 is configured to judge whether the two-dimensional code to be identified in the previous period is the same as the two-dimensional code to be identified in the current period;
The processing module 33 is configured to not send information to the server 40 when it is determined that the two-dimensional code to be identified in the previous period is the same as the two-dimensional code to be identified in the current period, and send identification information to the server 40 when it is determined that the two-dimensional code to be identified in the previous period is different from the two-dimensional code to be identified in the current period.
In an embodiment, returning to fig. 1, the abnormality detection apparatus 100 further includes an alarm 60, where the alarm 60 is connected to the control module 21, and the alarm 60 is configured to send an alarm signal when it is detected that the embedded device 20 does not receive the running state information within a second preset time period. The first preset time length and the second preset time length can be set according to requirements.
The embedded device 20 is specifically configured to receive the operation state information of the local area network device 10 when the local area network device 10 is in the first operation state, and not receive the operation state information of the local area network device 10 when the local area network device 10 is in the second operation state. The first operating state is a normal operating state, i.e. a state without failure, and the second operating state is an abnormal operating state, i.e. a failure state. In one approach, the running state information is sent to the embedded device 20 at intervals when the in-lan device 10 is in the first running state, and the sending of the running state information to the embedded device is suspended when the in-lan device 10 is in the second running state.
In one embodiment, the apparatus operates as follows:
When the local area network equipment 10 does not have a fault, the local area network equipment 10 and the embedded device 20 (local area network single chip microcomputer) perform information intercommunication through the local area network, the local area network equipment 10 sends a heartbeat packet for normal operation of the equipment to the embedded device 20 at intervals (such as 2 s), and the embedded device 20 gathers all received information to generate two-dimensional code information after receiving the heartbeat packet for a period of time;
After the two-dimensional code is normally generated, the operation and maintenance device 30 receives the normal state information of the equipment 10 in the local area network by scanning the two-dimensional code, and the operation and maintenance device 30 analyzes and converts the received two-dimensional code data into binary data and sends the binary data to the server 40;
If the equipment 10 in the local area network fails, the heartbeat packet is not sent to the embedded device 20, the two-dimension code displayed by the embedded device 20 is kept unchanged all the time, the operation and maintenance device 30 does not send the same data to the server 40 when receiving the same two-dimension code, the server 40 judges that the equipment 10 in the local area network is out of connection because of not receiving new data for a long time, and fault information is sent to the mobile client for alarming.
In addition, when the in-lan device 10 does not transmit the heartbeat packet information to the embedded apparatus 20 for a preset period of time (for example, 3 minutes), the alarm 60 considers that the in-lan device 10 has a connection failure (i.e., the in-lan device 10 is abnormal), and the alarm alarms.
The operation and maintenance device 30 typically employs a wide area network to transmit signals, such as a 4G network. I.e., the operation and maintenance device 30 establishes a connection with the server 40 through the wide area network.
In connection with fig. 1, the present application also provides an abnormality detection system 200, including any one of the abnormality detection apparatuses 100 described above and an in-lan apparatus 10 for detecting whether or not the in-lan apparatus has failed.
In one embodiment, the running state information is sent to the embedded device 20 at intervals when the in-lan device 10 is in the first running state, and the sending of the running state information to the embedded device 20 is suspended when the in-lan device 10 is in the second running state.
The device and the system for detecting the abnormality can detect whether the equipment in the local area network has faults or not, and comprise an embedded device, an operation and maintenance device and a server, wherein the embedded device is used for converting a plurality of operation state information in a period of time into two-dimension codes to be identified and displaying the two-dimension codes when receiving the plurality of operation state information sent by the equipment in the local area network in the last period of time, and displaying the two-dimension codes to be identified in the last period of time when not receiving the operation state information sent by the equipment in the local area network in the current period of time, the operation and maintenance device is used for identifying the two-dimension codes to be identified to obtain identification information, sending the identification information to the server and not sending information to the server when judging that the two-dimension codes to be identified in the last period of time are identical to the two-dimension codes to be identified in the current period of time, and the server is used for receiving the identification information and sending abnormality prompt information to the monitoring terminal when detecting that the information is not received in the first preset period of time is exceeded, and the abnormality prompt information is used for indicating that the equipment in the local area network has faults. When the two-dimensional code to be identified in the previous time period is the same as the two-dimensional code to be identified in the current time period, no information is sent to the server, so that the server determines that equipment in the local area network fails through the fact that the information is not received, abnormal prompt information is timely sent, a user is conveniently notified in time, the failure is timely found, the user can conveniently process the failure, and safety is improved.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.