CN114885014A - Method, device, equipment and medium for monitoring external field equipment state - Google Patents

Method, device, equipment and medium for monitoring external field equipment state Download PDF

Info

Publication number
CN114885014A
CN114885014A CN202210453644.0A CN202210453644A CN114885014A CN 114885014 A CN114885014 A CN 114885014A CN 202210453644 A CN202210453644 A CN 202210453644A CN 114885014 A CN114885014 A CN 114885014A
Authority
CN
China
Prior art keywords
equipment
state
external field
monitoring target
monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210453644.0A
Other languages
Chinese (zh)
Inventor
姚永康
郭子悦
司三三
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Huiershi Software Technology Co ltd
Original Assignee
Nanjing Huiershi Software 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 Nanjing Huiershi Software Technology Co ltd filed Critical Nanjing Huiershi Software Technology Co ltd
Priority to CN202210453644.0A priority Critical patent/CN114885014A/en
Publication of CN114885014A publication Critical patent/CN114885014A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/02Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S13/00
    • G01S7/40Means for monitoring or calibrating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for monitoring the state of external field equipment. Wherein, the method comprises the following steps: acquiring equipment information of the external field equipment from a pre-constructed database; determining the external field equipment which is not in the maintenance state as a monitoring target according to the equipment information of the external field equipment; reading heartbeat data of a monitoring target from the cache device; the heartbeat data is sent to the cache device by each monitoring target according to a preset rule; and determining the equipment state of the monitoring target according to the reading result of the heartbeat data. According to the technical scheme, the problems of difficulty in counting a large number of radar equipment states and inaccurate monitoring can be solved, the running states of the intelligent radar equipment are monitored from more angles, the states of faults, abnormity, maintenance and the like of the equipment are more accurately found, and the accuracy and reliability of equipment monitoring are improved.

Description

Method, device, equipment and medium for monitoring external field equipment state
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, equipment and a medium for monitoring the state of external field equipment.
Background
With the increasing complexity of road traffic environments, the use of field devices has increased significantly. Currently, the external field devices commonly used include infrared cameras, radars, and the like. The device status of the outfield device includes maintenance, online, offline, and network failure, etc. How to monitor the equipment states of a large number of external field equipment is a problem to be solved urgently by an intelligent traffic management system.
The main scheme at present detects the equipment state of each radar in sequence through manual timing. However, the prior art scheme has the problems of difficulty in counting the states of a large number of radar devices and inaccurate monitoring.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for monitoring the state of external field equipment, which can solve the problems of difficult and inaccurate monitoring of the state of a large amount of radar equipment, monitor the running state of intelligent radar equipment from more angles, more accurately discover the states of equipment such as faults, abnormity, maintenance and the like, and improve the accuracy and reliability of equipment monitoring.
According to an aspect of the present invention, there is provided a method of monitoring the status of an external field device, the method comprising:
acquiring equipment information of the external field equipment from a pre-constructed database;
determining the external field equipment which is not in the maintenance state as a monitoring target according to the equipment information of the external field equipment;
reading heartbeat data of a monitoring target from the cache device; the heartbeat data is sent to the cache device by each monitoring target according to a preset rule;
and determining the equipment state of the monitoring target according to the reading result of the heartbeat data.
Optionally, the determining, according to the reading result of the heartbeat data, the device state of the monitoring target includes:
if the heartbeat data exist in the monitoring target, determining that the equipment state of the monitoring target is an online state;
and if the heartbeat data do not exist in the monitoring target, determining that the equipment state of the monitoring target is a state to be identified.
Optionally, after determining that the device state of the monitoring target is the state to be identified, the method further includes:
sending a ping instruction to a monitoring target in a state to be identified;
if the monitoring target in the state to be identified is connected with a ping instruction, determining that the equipment state of the monitoring target is an off-line state;
and if the monitoring target in the state to be identified is not connected with the ping instruction, determining that the equipment state of the monitoring target is a network fault state.
Optionally, before obtaining the device information of the external field device from the pre-constructed database, the method further includes:
responding to information configuration operation of the external field equipment, and inputting configuration information of the external field equipment into a database; the configuration information comprises an external field equipment identifier, an external field equipment category and an initial state of the external field equipment; the initial state includes a normal state and a maintenance state.
Optionally, the obtaining the device information of the external field device from the pre-constructed database includes:
starting a state identification thread; each state identification thread is used for monitoring the equipment state of one external field equipment;
and performing state identification on the equipment information of each external field equipment through the state identification thread.
Optionally, after determining the device status of the monitoring target according to the reading result of the heartbeat data, the method further includes:
and dynamically updating the equipment information of the field equipment in the database according to the equipment state of the monitoring target.
Optionally, before reading the heartbeat data of the monitoring target from the cache device, the method further includes:
constructing an acquisition node; the acquisition node is used for providing service and a target address port for the external field equipment;
and acquiring heartbeat data sent by the external field equipment according to the target address port through the acquisition node, and storing the heartbeat data into the cache equipment.
According to another aspect of the present invention, there is provided an external field device state monitoring apparatus, comprising:
the device information acquisition module is used for acquiring the device information of the external field device from a pre-constructed database;
the monitoring target determining module is used for determining the external field equipment which is not in the maintenance state as the monitoring target according to the equipment information of the external field equipment;
the heartbeat data reading module is used for reading heartbeat data of the monitoring target from the cache device; the heartbeat data is sent to the cache device by each monitoring target according to a preset rule;
and the equipment state determining module is used for determining the equipment state of the monitoring target according to the reading result of the heartbeat data.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform a method of monitoring the status of an outfield device according to any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the method for monitoring the status of an external field device according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, the equipment information of the external field equipment is obtained from a pre-constructed database; determining the external field equipment which is not in the maintenance state as a monitoring target according to the equipment information of the external field equipment; reading heartbeat data of a monitoring target from the cache device; the heartbeat data is sent to the cache device by each monitoring target according to a preset rule; and determining the equipment state of the monitoring target according to the reading result of the heartbeat data. According to the technical scheme, the problems of difficulty in counting a large number of radar equipment states and inaccurate monitoring can be solved, the running states of the intelligent radar equipment are monitored from more angles, the states of faults, abnormity, maintenance and the like of the equipment are more accurately found, and the accuracy and reliability of equipment monitoring are improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for monitoring the status of an external field device according to an embodiment of the present invention;
fig. 2 is an architecture diagram of external field device status monitoring according to a second embodiment of the present invention;
FIG. 3 is a flow chart of an outfield device status statistic logic according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a monitoring apparatus for monitoring the status of an external field device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a method for monitoring the external field device status according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 the terms "first," "second," "target," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a method for monitoring the status of an external field device according to an embodiment of the present invention, where the method is applicable to monitoring the status of an external field device, and the method can be executed by a device for monitoring the status of an external field device, where the device for monitoring the status of an external field device can be implemented in a form of hardware and/or software, and the device for monitoring the status of an external field device can be configured in an electronic device with data processing capability. As shown in fig. 1, the method includes:
and S110, acquiring the equipment information of the external field equipment from a pre-constructed database.
The method is executed by a server of the external field equipment and is suitable for a scene of monitoring the state of the external field equipment.
Wherein the pre-constructed database may be a database storing device information of all external field devices. The pre-constructed database can be an open-source Key-Value database, such as a Redis database, which supports network interaction, can be based on a memory, and can also be persistent. The server may obtain the database information through different commands, for example, obtaining character information using a get key command, obtaining all element information in the set using a smembers key command, and the like. In this embodiment, the server of the external field device may obtain information of the external field device in the pre-constructed database by using the get key command. The external field devices include radar devices, infrared cameras, other types of microwave detectors, and the like. For example, the external field device may be a microwave vehicle detector. The device information may be a device identification, a device category, and a device initial state; the initial state includes a normal state and a maintenance state. The normal state may be a state in which the apparatus is operating normally without a failure, and the maintenance state may be a state in which the apparatus is stopped for use for maintenance. The state of the external field equipment can be monitored in real time in the embodiment, so that the external field equipment can be maintained in time before failure.
The obtaining of the device information of the external field device from the database may be scanning the entire database line by line to obtain the device information.
In this embodiment, optionally, the process of obtaining the device information of the external field device from the pre-constructed database may be: starting a state identification thread; each state identification thread is used for monitoring the equipment state of one external field equipment; and performing state identification on the equipment information of each external field equipment through the state identification thread.
Wherein, the state identification thread can be started through a server. The server may turn on multiple state identification threads simultaneously. And each state identification thread monitors the equipment state of one external field equipment. The result of the status recognition of the device information of each external field device may be that the current external field device is in a maintenance state or that the current external field device is not in the maintenance state. In this embodiment, the accuracy and the acquisition efficiency of the device information can be improved by acquiring the device information of the external field device through the state identification thread.
In this embodiment, optionally, before acquiring the device information of the external field device from the pre-constructed database, the method further includes: responding to information configuration operation of the external field equipment, and inputting configuration information of the external field equipment into a database; the configuration information comprises an external field equipment identifier, an external field equipment category and an initial state of the external field equipment; the initial state includes a normal state and a maintenance state.
The information configuration operation responding to the external field device may be automatically responded when a new external field device is added each time or after a set time period, or may be performed after a user triggers a response button. The configuration information of the external field equipment can be recorded into the database in a mode of directly inserting after a registration information table is created in the database. In this embodiment, the configuration information of the external field device is recorded in the database, so that the external field device can be conveniently and uniformly managed by acquiring the information of the external field device.
And S120, determining the external field equipment which is not in the maintenance state as a monitoring target according to the equipment information of the external field equipment.
The determining that the external field device is not in the maintenance state according to the device information of the external field device may be determining that the external field device is not in the maintenance state according to a device state in a database of the external field device. When determining the state information of the external field device, the external field device is in a state of suspended use by configuring and debugging basic information at a platform layer.
S130, reading heartbeat data of the monitoring target from the cache device; and sending the heartbeat data to the cache device by each monitoring target according to a preset rule.
The cache device is used for storing information, and the information is digitized and then stored. In this embodiment, the cache device may be a device that stores heartbeat data of the external field device. The reading of the heartbeat data of the monitoring target from the cache device may be performed by a server of the external field device by obtaining character string information including a keyword of the monitoring target. The heartbeat data can be one of two interconnected parties, a small data packet is sent to the other party at fixed time intervals, and the other party determines whether to reply to the small data packet after receiving the data packet according to needs. Whether the communication link between the two interconnected parties is disconnected or not can be judged through the reply condition. . In this embodiment, the heartbeat data may be sent to the cache device by each monitoring target according to a preset rule. The preset rule may be that data is transmitted at certain time intervals.
In this embodiment, optionally, before reading the heartbeat data of the monitoring target from the cache device, the method further includes: constructing an acquisition node; the acquisition node is used for providing service and a target address port for the external field equipment; and acquiring heartbeat data sent by the external field equipment according to the target address port through the acquisition node, and storing the heartbeat data into the cache equipment.
The port for providing service and target address for the external field equipment by the acquisition node can be the service and port for providing server-side software for the external field equipment by the acquisition node; the target address port may be an address port that can be acquired by the radar device. In this embodiment, the state of multiple radar devices can be statistically monitored by acquiring heartbeat data sent by the external field device according to the target address port and storing the heartbeat data into the cache device through the acquisition node.
And S140, determining the equipment state of the monitoring target according to the reading result of the heartbeat data.
The reading result of the heartbeat data may be that the heartbeat data exists in the monitoring target or the heartbeat data does not exist in the monitoring target. The device status of the monitoring target may be an online status or a status to be identified.
In this embodiment, optionally, the process of determining the device status of the monitoring target according to the reading result of the heartbeat data may be: if the heartbeat data exist in the monitoring target, determining that the equipment state of the monitoring target is an online state; and if the heartbeat data does not exist in the monitoring target, determining that the equipment state of the monitoring target is a state to be identified. Wherein the online state may be a state in which the device is operating normally and the network is connected. The to-be-recognized state may be a state in which a device state waits to be recognized. In this embodiment, if heartbeat data exists in the monitoring target, it can be determined that the monitoring device is operating normally and the network connection is in an online state; and if the heartbeat data does not exist in the monitoring target, determining that the communication between the monitoring equipment and the server fails. It needs to be further determined that the communication fault is caused by the fault of the monitoring device itself or the network fault and is in a state to be identified. In this embodiment, the device status of the monitoring target is determined by the read result of the heartbeat data, so that status data of a plurality of radar devices can be counted.
In this embodiment, optionally, after determining that the device state of the monitoring target is the state to be identified, the method further includes: sending a ping instruction to a monitoring target in a state to be identified; if the monitoring target in the state to be identified is connected with a ping instruction, determining that the equipment state of the monitoring target is an off-line state; and if the monitoring target in the state to be identified is not connected with the ping instruction, determining that the equipment state of the monitoring target is a network fault state.
Wherein, the ping command can be a communication protocol for checking whether the network is connected, analyzing and judging the network failure. The equipment state of the monitoring target is an off-line state, and the equipment can be in failure if the network of the monitoring target is normally connected. The equipment state of the monitoring target is a network fault state, and the network connection of the monitoring target can be failed. In this embodiment, the monitoring target in the state to be identified sends out a ping instruction to determine the device state of the monitoring target, so that the states of the device, such as faults, abnormalities and maintenance, can be more accurately found, and the accuracy and reliability of device monitoring are improved.
In this embodiment, optionally, after determining the device status of the monitoring target according to the reading result of the heartbeat data, the method further includes: and dynamically updating the equipment information of the field equipment in the database according to the equipment state of the monitoring target.
The dynamically updating the device information of the field device in the database according to the device state of the monitoring target may be modifying the device state information of the monitoring target in the database according to the current state of the device of the monitoring target. In this embodiment, the device information of the field device in the database is dynamically updated, so that the real-time performance of state data statistics can be improved, and the accuracy and reliability of device monitoring can be further improved.
According to the scheme, the equipment information of the external field equipment is acquired from a pre-constructed database; determining the external field equipment which is not in the maintenance state as a monitoring target according to the equipment information of the external field equipment; reading heartbeat data of a monitoring target from the cache device; the heartbeat data is sent to the cache device by each monitoring target according to a preset rule; and determining the equipment state of the monitoring target according to the reading result of the heartbeat data. According to the technical scheme, the problems of difficulty in counting a large number of radar equipment states and inaccurate monitoring can be solved, the running states of the intelligent radar equipment are monitored from more angles, the states of faults, abnormity, maintenance and the like of the equipment are more accurately found, and the accuracy and reliability of equipment monitoring are improved.
Example two
The present embodiment is a preferred embodiment provided on the basis of the above-described embodiments. Fig. 2 is an architecture diagram of external field device status monitoring according to a second embodiment of the present invention. As shown in fig. 2, the architecture for monitoring the status of the external field device includes: radar, collection node, Redis cache and equipment operation and maintenance. In the framework for monitoring the state of the external field device provided by this embodiment, the acquisition node is used to acquire heartbeat data of the radar device, push the heartbeat data into the Redis cache, and analyze and process the heartbeat data of the device by the device operation and maintenance to obtain statistical data of the online state of the current device.
Fig. 3 is a flow chart of an outfield device status statistics logic according to a second embodiment of the present invention, as shown in fig. 3, the technical solution of this embodiment is divided into the following 9 steps.
(1) The device monitors for a timed task to begin, wherein the timed task may be a task that is performed over a set period of time.
(2) And acquiring information of all the equipment from the database, and performing statistical classification on the equipment information of each equipment.
(3) And starting multithreading by the service, and respectively acquiring the information of a single device by each thread and executing the following process.
(4) And judging whether the current equipment is in a maintenance state or not according to the equipment state in the database.
(5) In the maintenance state: and the current equipment state judgment process ends the current equipment state-in maintenance.
Not in maintenance state: and the thread tries to acquire the data of the current equipment heartbeat from Redis, and the current equipment state judgment process continues.
(6) And the thread judges whether equipment heartbeat exists according to the data acquired by the Redis.
(7) Redis contains the current device heartbeat data: and deleting the heartbeat pushed by the current equipment, and finishing the equipment state-on-line by the equipment state judgment process.
Redis does not contain current device heartbeat data: and sending a ping instruction to the current equipment, and continuing the equipment state judgment process.
(8) The thread determines whether the current device can be pinged through.
The device can ping: the equipment state judgment process ends the current equipment state-offline.
The device cannot ping: the device status determination process ends the current device status — network failure.
(9) And (3) final output: and (3) counting the states of all radar equipment under platform management, giving early warning on equipment state change in real time, providing the online rate of the regional equipment, and ranking the offline times and the failure time of the equipment. The platform may be an operating environment of computer hardware and software for radar device status monitoring. The zone device presence rate may be a ratio of the device in which the zone is in a presence state to all devices in the zone.
The scheme acquires the equipment information of the external field equipment from a pre-constructed database at regular time; determining the external field equipment which is not in the maintenance state as a monitoring target according to the equipment information of the external field equipment; reading heartbeat data of a monitoring target from the cache device; determining the equipment state of a monitoring target according to the reading result of the heartbeat data; and counting and outputting the states of all external field equipment under platform management.
According to the technical scheme, the states of a large number of radar devices can be counted in real time, the running states of the intelligent radar devices can be monitored from more angles, the states of faults, abnormity, maintenance and the like of the devices can be accurately found, and the accuracy and the reliability of monitoring the devices are improved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a monitoring apparatus for external field device status according to a third embodiment of the present invention, which is capable of executing a monitoring method for external field device status according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 4, the apparatus includes:
a device information obtaining module 410, configured to obtain device information of the external field device from a pre-constructed database;
a monitoring target determining module 420, configured to determine, according to the device information of the external field device, the external field device that is not in the maintenance state as a monitoring target;
a heartbeat data reading module 430, configured to read heartbeat data of a monitoring target from the cache device; the heartbeat data is sent to the cache device by each monitoring target according to a preset rule;
and the device state determining module 440 is configured to determine a device state of the monitoring target according to the reading result of the heartbeat data.
Optionally, the device status determining module includes:
the online state determining submodule is used for determining that the equipment state of the monitoring target is an online state if the heartbeat data exists in the monitoring target;
and the to-be-identified state determining submodule is used for determining the equipment state of the monitoring target as the to-be-identified state if the heartbeat data does not exist in the monitoring target.
On the basis of the above technical solution, the apparatus further includes:
the Ping instruction sending module is used for sending a Ping instruction to the monitoring target in the state to be identified after the equipment state of the monitoring target is determined to be the state to be identified;
the offline state determining module is used for determining that the equipment state of the monitoring target is an offline state if the monitoring target in the state to be identified is connected with a ping instruction;
and the network fault determining module is used for determining that the equipment state of the monitoring target is the network fault state if the monitoring target in the state to be identified is not connected with the ping instruction.
On the basis of the above technical solution, the apparatus further includes:
the configuration information input module is used for responding to information configuration operation of the external field equipment and inputting the configuration information of the external field equipment into a database before acquiring the equipment information of the external field equipment from the pre-constructed database; the configuration information comprises an external field equipment identifier, an external field equipment category and an initial state of the external field equipment; the initial state includes a normal state and a maintenance state.
Optionally, the device information obtaining module includes:
the state identification thread starting submodule is used for starting the state identification thread; each state identification thread is used for monitoring the equipment state of one external field equipment;
and the state identification submodule is used for identifying the state of the equipment information of each external field equipment through the state identification thread.
On the basis of the above technical solution, the apparatus further includes:
and the dynamic updating module is used for dynamically updating the equipment information of the field equipment in the database according to the equipment state of the monitoring target after determining the equipment state of the monitoring target according to the reading result of the heartbeat data.
On the basis of the above technical solution, the apparatus further includes:
the acquisition node construction module is used for constructing acquisition nodes; the acquisition node is used for providing service and a target address port for the external field equipment;
and the heartbeat data caching module is used for acquiring heartbeat data sent by the external field equipment according to the target address port through the acquisition node and storing the heartbeat data into the caching equipment.
The monitoring device for the external field equipment state provided by the embodiment of the invention can execute the monitoring method for the external field equipment state provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 5 is a schematic structural diagram of an electronic device for implementing a method for monitoring the external field device status according to a fourth embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. Processor 11 performs the various methods and processes described above, such as monitoring of the status of the process outfield device.
In some embodiments, the monitoring of the status of the method outfield device may be implemented as a computer program, tangibly embodied in a computer readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the monitoring of the status of the outfield device of the method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform monitoring of the out-of-method field device status in any other suitable manner (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of monitoring the status of an external field device, the method being performed by an electronic device; the electronic equipment is connected with the external field equipment through the cache equipment; the method comprises the following steps:
acquiring equipment information of the external field equipment from a pre-constructed database;
determining the external field equipment which is not in the maintenance state as a monitoring target according to the equipment information of the external field equipment;
reading heartbeat data of a monitoring target from the cache device; the heartbeat data is sent to the cache device by each monitoring target according to a preset rule;
and determining the equipment state of the monitoring target according to the reading result of the heartbeat data.
2. The method according to claim 1, wherein determining the device status of the monitoring target according to the reading result of the heartbeat data comprises:
if the heartbeat data exist in the monitoring target, determining that the equipment state of the monitoring target is an online state;
and if the heartbeat data does not exist in the monitoring target, determining that the equipment state of the monitoring target is a state to be identified.
3. The method of claim 2, wherein after determining that the device status of the monitoring target is a status to be identified, the method further comprises:
sending a ping instruction to a monitoring target in a state to be identified;
if the monitoring target in the state to be identified is connected with a ping instruction, determining that the equipment state of the monitoring target is an off-line state;
and if the monitoring target in the state to be identified is not connected with the ping instruction, determining that the equipment state of the monitoring target is a network fault state.
4. The method of claim 1, wherein prior to obtaining device information for the outfield device from the pre-built database, the method further comprises:
responding to information configuration operation of the external field equipment, and inputting configuration information of the external field equipment into a database; the configuration information comprises an external field equipment identifier, an external field equipment category and an initial state of the external field equipment; the initial state includes a normal state and a maintenance state.
5. The method of claim 1, wherein obtaining device information for the outfield device from a pre-built database comprises:
starting a state identification thread; each state identification thread is used for monitoring the equipment state of one external field equipment;
and performing state identification on the equipment information of each external field equipment through the state identification thread.
6. The method according to claim 1, wherein after determining the device status of the monitoring target from the reading of the heartbeat data, the method further comprises:
and dynamically updating the equipment information of the field equipment in the database according to the equipment state of the monitoring target.
7. The method of claim 1, wherein prior to reading heartbeat data of a monitoring target from the caching device, the method further comprises:
constructing an acquisition node; the acquisition node is used for providing service and a target address port for the external field equipment;
and acquiring heartbeat data sent by the external field equipment according to the target address port through the acquisition node, and storing the heartbeat data into the cache equipment.
8. The monitoring device of the state of an outfield device is characterized in that the device is configured on an electronic device; the electronic equipment is connected with the external field equipment through the cache equipment; the method comprises the following steps:
the device information acquisition module is used for acquiring the device information of the external field device from a pre-constructed database;
the monitoring target determining module is used for determining the external field equipment which is not in the maintenance state as the monitoring target according to the equipment information of the external field equipment;
the heartbeat data reading module is used for reading heartbeat data of the monitoring target from the cache device; the heartbeat data is sent to the cache device by each monitoring target according to a preset rule;
and the equipment state determining module is used for determining the equipment state of the monitoring target according to the reading result of the heartbeat data.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of monitoring outfield device status of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the method for monitoring the status of an external field device according to any one of claims 1 to 7 when executed.
CN202210453644.0A 2022-04-24 2022-04-24 Method, device, equipment and medium for monitoring external field equipment state Pending CN114885014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210453644.0A CN114885014A (en) 2022-04-24 2022-04-24 Method, device, equipment and medium for monitoring external field equipment state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210453644.0A CN114885014A (en) 2022-04-24 2022-04-24 Method, device, equipment and medium for monitoring external field equipment state

Publications (1)

Publication Number Publication Date
CN114885014A true CN114885014A (en) 2022-08-09

Family

ID=82671429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210453644.0A Pending CN114885014A (en) 2022-04-24 2022-04-24 Method, device, equipment and medium for monitoring external field equipment state

Country Status (1)

Country Link
CN (1) CN114885014A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116032619A (en) * 2022-12-30 2023-04-28 北京欣博电子科技有限公司 State inspection method and device of intelligent safety networking equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634576A (en) * 2013-12-17 2014-03-12 紫光捷通科技股份有限公司 Expressway mobile terminal monitoring system and method
CN208889024U (en) * 2018-10-31 2019-05-21 四川省集创科技有限责任公司 Means of transportation airfield equipment monitors system
CN110096383A (en) * 2019-04-10 2019-08-06 卡斯柯信号有限公司 A kind of signalling arrangement maintenance information automatic classification method
CN111459752A (en) * 2020-03-20 2020-07-28 陕西天天出行科技有限公司 Operation and maintenance method and device for working equipment, server and operation terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634576A (en) * 2013-12-17 2014-03-12 紫光捷通科技股份有限公司 Expressway mobile terminal monitoring system and method
CN208889024U (en) * 2018-10-31 2019-05-21 四川省集创科技有限责任公司 Means of transportation airfield equipment monitors system
CN110096383A (en) * 2019-04-10 2019-08-06 卡斯柯信号有限公司 A kind of signalling arrangement maintenance information automatic classification method
CN111459752A (en) * 2020-03-20 2020-07-28 陕西天天出行科技有限公司 Operation and maintenance method and device for working equipment, server and operation terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116032619A (en) * 2022-12-30 2023-04-28 北京欣博电子科技有限公司 State inspection method and device of intelligent safety networking equipment

Similar Documents

Publication Publication Date Title
US11614990B2 (en) Automatic correlation of dynamic system events within computing devices
CN110716842B (en) Cluster fault detection method and device
CN115396289B (en) Fault alarm determining method and device, electronic equipment and storage medium
CN116225769B (en) Method, device, equipment and medium for determining root cause of system fault
CN114443443A (en) Fault self-healing method, device, equipment and storage medium
CN114885014A (en) Method, device, equipment and medium for monitoring external field equipment state
CN116645082A (en) System inspection method, device, equipment and storage medium
CN116471174A (en) Log data monitoring system, method, device and storage medium
CN116112342A (en) Alarm information processing method, device, electronic equipment and storage medium
CN115687406A (en) Sampling method, device and equipment of call chain data and storage medium
CN114881112A (en) System anomaly detection method, device, equipment and medium
CN115017047A (en) Test method, system, equipment and medium based on B/S architecture
CN114428711A (en) Data detection method, device, equipment and storage medium
CN114706893A (en) Fault detection method, device, equipment and storage medium
CN116185765B (en) Alarm processing method and device, electronic equipment and storage medium
CN114095394B (en) Network node fault detection method and device, electronic equipment and storage medium
CN115174447B (en) Network communication method, device, system, equipment and storage medium
CN114691404A (en) Service process monitoring method and device, electronic equipment, storage medium and product
CN116662053A (en) Database fault diagnosis method, device, equipment and storage medium
CN115766391A (en) Message tracking method, message generating method, device, equipment, medium and vehicle
CN115391227A (en) Fault testing method, device, equipment and medium based on distributed system
CN117749614A (en) Protocol rule determining method and device, electronic equipment and storage medium
CN115309578A (en) Method, device and equipment for positioning abnormity of microservice link and storage medium
CN117573491A (en) Positioning method, device, equipment and storage medium for performance bottleneck
CN116909921A (en) Data quality detection method, device, apparatus and storage medium

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