CN111508214B - Alarm control method and control equipment - Google Patents

Alarm control method and control equipment Download PDF

Info

Publication number
CN111508214B
CN111508214B CN202010321040.1A CN202010321040A CN111508214B CN 111508214 B CN111508214 B CN 111508214B CN 202010321040 A CN202010321040 A CN 202010321040A CN 111508214 B CN111508214 B CN 111508214B
Authority
CN
China
Prior art keywords
alarm
program
configuration request
cloud server
equipment
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.)
Active
Application number
CN202010321040.1A
Other languages
Chinese (zh)
Other versions
CN111508214A (en
Inventor
邬惠峰
孙丹枫
陈佰平
胡俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi University
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 Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN202010321040.1A priority Critical patent/CN111508214B/en
Publication of CN111508214A publication Critical patent/CN111508214A/en
Application granted granted Critical
Publication of CN111508214B publication Critical patent/CN111508214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/008Alarm setting and unsetting, i.e. arming or disarming of the security system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

According to the alarm control method and the control device, the alarm configuration request sent by the edge device is received, wherein the alarm configuration request comprises at least one piece of alarm device information; determining a corresponding alarm program according to the alarm configuration request, and sending the alarm program to the edge device so that the edge device deploys and operates the alarm program to realize alarm control on the alarm device; the alarm device information is sent to the cloud server, so that the cloud server determines the corresponding alarm program according to the alarm device information, customized alarm is realized, and the alarm effect is improved.

Description

Alarm control method and control equipment
Technical Field
The invention relates to the technology of industrial Internet of things, in particular to an alarm control method and control equipment.
Background
In the environment of industrial internet of things, industrial environment monitoring becomes an important ring.
The existing industrial environment monitoring system monitors the upper and lower limits of various data sources (such as sensors, controllers and the like), and sends alarm information when the upper and lower limits of the data sources do not meet preset thresholds. That is, for different devices, all alarm programs are the same, and customized alarm cannot be realized according to different devices, so that the alarm effect is not good.
Therefore, a new alarm control method is needed to realize customized alarm and improve the alarm effect.
Disclosure of Invention
Aiming at the problems, the invention provides an alarm control method and control equipment.
In a first aspect, the present invention provides an alarm control method, which is applied to a cloud server, and the method includes: receiving an alarm configuration request sent by edge equipment, wherein the alarm configuration request comprises at least one piece of alarm equipment information; and determining a corresponding alarm program according to the alarm configuration request, and sending the alarm program to the edge equipment so that the edge equipment deploys and operates the alarm program to realize alarm control on the alarm equipment.
In other optional embodiments, the cloud server stores an alarm library in advance, where the alarm library includes at least one alarm program; the determining the corresponding alarm program according to the alarm configuration request comprises: if the alarm program corresponding to the alarm configuration request exists in the alarm program library, determining the corresponding alarm program; if the alarm program corresponding to the alarm configuration request does not exist in the alarm program library, the alarm program corresponding to the alarm configuration request and sent by other communication equipment is received and added to the alarm program library, wherein the other communication equipment is other equipment except the cloud server and the edge equipment.
In other optional embodiments, the method further comprises: storing the other communication device identification, the adding time and the adding user information.
In another optional embodiment, after receiving the alarm configuration request sent by the edge device, the method further includes: storing the edge device identification for sending the alarm configuration request; the method further comprises the following steps: updating the alarm program; and sending an alarm program updating message to the edge device corresponding to the stored edge device identification so that the edge device judges whether to update the alarm program, and if the update is determined, sending an alarm configuration request to the cloud server again so as to realize redeployment and operation of the alarm program by the edge device.
In other optional embodiments, the alarm configuration request includes a configuration request table, where the configuration request table includes alarm device information sorted in sequence; after receiving the alarm configuration request sent by the edge device, the method further includes: storing the configuration request table to a cache queue in a cloud server; reading the configuration request table from the cache queue in sequence, and determining the alarm programs corresponding to the alarm devices in sequence according to the alarm device information sequenced in sequence; and performing link compiling processing on the alarm programs corresponding to the alarm devices which are determined in sequence, and sending the processed alarm programs to the edge device.
In other optional embodiments, the alert device information includes an alert device identification, an alert type, and an alert priority; the link compiling processing of the alarm programs corresponding to the alarm devices which are determined in sequence comprises the following steps: and for alarm programs corresponding to alarm devices with the same alarm type and different alarm priorities, performing link compiling processing according to the sequence of the alarm priorities from high to low.
In a second aspect, the present invention provides an alarm control method applied to an edge device, the method including: sending an alarm configuration request to a cloud server so that the cloud server determines a corresponding alarm program according to the alarm configuration request and sends the alarm program to edge equipment, wherein the alarm configuration request comprises at least one piece of alarm equipment information; and receiving the alarm program, and deploying and operating the alarm program to realize alarm control on alarm equipment.
In other optional embodiments, the deploying runs the alarm program to implement alarm control for an alarm device, including: receiving parameter information collected by alarm equipment, and inputting the parameter information into the alarm program to determine whether to alarm or not; if so, sending an alarm instruction to the corresponding alarm equipment so that the alarm equipment sends alarm information.
In a third aspect, the present invention provides a control apparatus comprising: at least one processor and memory; the memory stores computer-executable instructions; the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the alarm control method of any of the first aspects.
In a fourth aspect, the present invention provides a control apparatus comprising: at least one processor and memory; the memory stores computer-executable instructions; the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the alarm control method of any of the second aspects.
According to the alarm control method and the control device, the alarm configuration request sent by the edge device is received, wherein the alarm configuration request comprises at least one piece of alarm device information; determining a corresponding alarm program according to the alarm configuration request, and sending the alarm program to the edge device so that the edge device deploys and operates the alarm program to realize alarm control on the alarm device; the alarm device information is sent to the cloud server, so that the cloud server determines the corresponding alarm program according to the alarm device information, customized alarm is realized, and the alarm effect is improved.
Drawings
Fig. 1 is a schematic view of an application scenario provided by the present invention;
FIG. 2 is an interaction diagram of an alarm control method according to the present invention;
FIG. 3 is a schematic flow chart of an alarm control method according to the present invention;
FIG. 4 is a schematic flow chart of another alarm control method provided by the present invention;
FIG. 5 is a schematic flow chart of another alarm control method provided by the present invention;
FIG. 6 is a schematic view of an alarm link provided by the present invention;
fig. 7 is a mobile base station iron tower system architecture diagram based on the present invention;
FIG. 8 is a schematic structural diagram of a TaskEngine server provided in the present invention;
fig. 9 is a schematic structural diagram of a PLC controller according to the present invention;
fig. 10 is a schematic flow chart of an alarm control method for a mobile base station iron tower according to the present invention;
fig. 11 is a schematic structural diagram of a cloud server according to the present invention;
FIG. 12 is a schematic view of an edge device according to the present invention;
fig. 13 is a schematic diagram of a hardware structure of a control device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the examples of the present invention will be clearly and completely described below with reference to the accompanying drawings in the examples of the present invention.
In the environment of industrial internet of things, industrial environment monitoring becomes an important ring.
The existing industrial environment monitoring system monitors the upper and lower limits of various data sources (such as sensors, controllers and the like), and sends alarm information when the upper and lower limits of the data sources do not meet preset thresholds. That is to say, for different devices, all alarm programs are the same, and customized alarm cannot be realized according to different devices, and especially with the continuous increase of monitoring systems, a large number of heterogeneous data sources appear, and the alarm effect is even worse. Further, these numerous useless homogeneous alarms form an alarm flood problem, so that technicians cannot process the alarms one by one, even many important alarms are ignored, and the environment monitoring system cannot operate effectively.
In order to solve the problems, the technical idea of the invention is that the alarm device information is sent to the cloud server, so that the cloud server determines a corresponding alarm program according to the alarm device information, customized alarm is realized, and the alarm effect is improved.
Fig. 1 is a schematic view of an application scenario provided by the present invention, as shown in fig. 1, one of the application scenarios may include a plurality of alarm devices 1, an edge device 2, and a cloud server 3, where the alarm devices 1 and the edge device 2 are in the same monitoring environment, for example, a base station environment, the alarm devices 1 and the edge device 2 are in communication connection, and the edge device 2 and the cloud server 3 are in communication connection, where the edge device 2 and the cloud server 3 cooperate to execute the control method described in the following embodiments, so as to implement alarm control on the alarm devices 1.
Fig. 2 is an interaction diagram of an alarm control method according to the present invention. As shown in fig. 2, the alarm control method includes:
step 101, sending an alarm configuration request to a cloud server.
Wherein the alert configuration request includes at least one alert device information.
In this step, the edge device sends an alarm configuration request to the cloud server, and correspondingly, the cloud server receives the alarm configuration request sent by the edge device.
Specifically, the edge device includes a Programmable Logic Controller (PLC), and the cloud server includes a task management (TaskEngine) server. In this step, the PLC device sends an alarm configuration request to the TaskEngine server, where the alarm configuration request includes information of each alarm device, such as an alarm device identifier, an alarm device type, and an alarm type, where the alarm device identifier is used to uniquely identify the alarm device, such as identifiers of sequence numbers 0001 and 0002, the alarm device type may be, for example, a base station box, a storage battery, and the like in a base station environment, and the alarm type includes a fire alarm, a voltage alarm, and the like.
And step 102, determining a corresponding alarm program according to the alarm configuration request.
In this step, after receiving the alarm configuration request, the cloud server determines a corresponding alarm program according to the alarm configuration request.
Specifically, various alarm programs are stored in the cloud server in advance, and the various alarm programs are compiled and finished by presetting alarm requirements and alarm processing logics under various scenes based on experience of technicians in the field of alarm control. Optionally, a unique key value is set for each alarm program in combination with the configuration scenario and the alarm type targeted by the alarm program. Each alarm device information in the alarm configuration request sent by the edge device to the cloud server has a corresponding keyword, and the keyword can be determined according to the type of the alarm device, the alarm type and the like. After receiving the alarm configuration request, the cloud server matches the key word information of each alarm device with the unique key value of the alarm program stored in the cloud server, and if the key word information of each alarm device is matched with the unique key value of the alarm program stored in the cloud server, the alarm program corresponding to the alarm device is determined.
In addition, the alarm program stored in the cloud server can be a PLC program, so that the cloud server can be directly compiled through a PLC compiler, and the compiled alarm program is directly deployed to a PLC controller of the edge device.
It should be noted that the alarm program corresponding to the alarm configuration request may be a single subprogram for a certain alarm device, or may be a combined alarm program for several alarm devices, that is, a set of multiple subprograms. For example, when a fire alarm device is linked with other devices, the alarm program also comprises other alarm subprograms associated with the fire alarm device, and the other subprograms are compiled and linked with the temperature threshold alarm management program through a jump instruction.
And 103, sending the alarm program to edge equipment.
In this step, the cloud server sends the determined corresponding alarm program to the edge device, and the edge device receives the alarm program correspondingly.
And step 104, deploying and operating the alarm program to realize alarm control on the alarm equipment.
In this step, the edge device deploys an alarm program, for example, on the PLC controller, and after the deployment is completed, the alarm program is operated.
Optionally, one implementation of step 104 is as follows: receiving parameter information collected by alarm equipment, and inputting the parameter information into the alarm program to determine whether to alarm or not; if so, sending an alarm instruction to the corresponding alarm equipment so that the alarm equipment sends alarm information.
Specifically, each alarm device is in communication connection with at least one sensor, the sensors can acquire parameter information of temperature, humidity, smoke, voltage and the like of the environment where the alarm device is located, the acquired parameter information is transmitted to an alarm program corresponding to the alarm device in the edge device, so that the alarm program judges whether to control the corresponding alarm device to alarm or not, if the alarm is determined, the edge device sends an alarm instruction to the corresponding alarm device, and the alarm device sends an alarm message according to the alarm instruction.
According to the alarm control method provided by the embodiment of the invention, an alarm configuration request sent by edge equipment is received, wherein the alarm configuration request comprises at least one piece of alarm equipment information; determining a corresponding alarm program according to the alarm configuration request, and sending the alarm program to the edge device so that the edge device deploys and operates the alarm program to realize alarm control on the alarm device; the alarm device information is sent to the cloud server, so that the cloud server determines the corresponding alarm program according to the alarm device information, customized alarm is realized, and the alarm effect is improved.
With reference to the foregoing implementation manners, fig. 3 is a schematic flow diagram of an alarm control method provided by the present invention, in this implementation manner, the cloud server stores an alarm program library in advance, where the alarm program library includes at least one alarm program, and as shown in fig. 3, the alarm control method includes:
step 201, receiving an alarm configuration request sent by an edge device.
Wherein the alert configuration request includes at least one alert device information.
Step 202, determining whether an alarm program corresponding to the alarm configuration request exists in the alarm program library.
If yes, go to step 203; if not, go to step 204.
Step 203, determining a corresponding alarm program.
And 204, receiving an alarm program corresponding to the alarm configuration request sent by other communication equipment, adding the alarm program to the alarm program library, and determining the corresponding alarm program.
The other communication devices are devices other than the cloud server and the edge device.
Step 205 sends the alarm program to the edge device, so that the edge device deploys and runs the alarm program to realize alarm control on the alarm device.
Step 201 in this embodiment is similar to the implementation of step 101 in the foregoing embodiment, and step 205 in this embodiment is similar to the implementation of step 103 and step 104 in the foregoing embodiment, and will not be described again here.
Different from the foregoing embodiment, the present embodiment considers how to improve the alarm effect if there is no alarm program corresponding to the alarm configuration request in the cloud server. In this embodiment, if it is determined that an alarm program corresponding to the alarm configuration request exists in the alarm program library, determining a corresponding alarm program; if the alarm program corresponding to the alarm configuration request does not exist in the alarm program library, the alarm program corresponding to the alarm configuration request and sent by other communication equipment is received and added to the alarm program library, wherein the other communication equipment is other equipment except the cloud server and the edge equipment.
Specifically, an alarm program library is preset in the cloud server, various alarm programs are stored in the alarm program library, the alarm programs are based on experience of technicians in the field of alarm control, alarm requirements under various scenes are preset, alarm processing logic is written and stored in the alarm program library, however, the foreseeable scenes are limited, that is, the alarm program corresponding to the alarm configuration request is probably not found on the cloud server, therefore, in the embodiment, the cloud server can send an alarm program adding request to other cloud servers or other communication devices such as other terminals, wherein the alarm program adding request comprises alarm device information, so that technicians in the field can write the corresponding alarm program according to the alarm program adding request and write the alarm program, the corresponding alarm program is uploaded to the cloud server through the communication device used by the technical personnel in the field and stored in the alarm program library, so that the cloud server can determine the corresponding alarm program from the alarm program library and send the alarm program to the edge device.
Optionally, the method further includes: storing the other communication device identification, the adding time and the adding user information.
Specifically, the cloud server monitors the newly added alarm programs, that is, records relevant data of each newly added alarm program, such as the adding time of the alarm program or the uploading time of the alarm program, and a target environment, for example, communication device identifiers and uploading personnel used by the alarm program, so as to ensure traceability of all the alarm programs in the alarm program library.
According to the alarm control method provided by the embodiment of the invention, if the alarm program corresponding to the alarm configuration request does not exist in the alarm program library, the alarm program corresponding to the alarm configuration request sent by other communication equipment is received and added into the alarm program library, wherein the other communication equipment is other equipment except the cloud server and the edge equipment; namely, the embodiment of the invention considers that if no proper alarm program exists in the cloud server, the corresponding alarm program is determined according to the alarm equipment information by acquiring the corresponding alarm program from other communication equipment, so that customized alarm is realized, and the alarm effect is improved.
With reference to the foregoing implementation manners, fig. 4 is a schematic flow chart of another alarm control method provided by the present invention, and as shown in fig. 4, the alarm control method includes:
step 301, receiving an alarm configuration request sent by an edge device.
Wherein the alert configuration request includes at least one alert device information.
Step 302, storing the edge device identifier sending the alarm configuration request.
And 303, determining a corresponding alarm program according to the alarm configuration request, and sending the alarm program to the edge device, so that the edge device deploys and operates the alarm program to realize alarm control on the alarm device.
And step 304, updating the alarm program.
Step 305, sending an alarm program update message to the edge device corresponding to the stored edge device identifier, so that the edge device determines whether to update the alarm program, and if the update is determined, sending an alarm configuration request to the cloud server again to implement redeployment of the edge device for running the alarm program.
Step 301 in this embodiment is similar to the implementation of step 101 in the foregoing embodiment, and step 303 in this embodiment is similar to the implementation of step 103 and step 104 in the foregoing embodiment, and will not be described again here.
Different from the foregoing embodiment, in order to further improve the alarm effect, in the present embodiment, an edge device identifier that sends the alarm configuration request is stored; updating the alarm program; and sending an alarm program updating message to the edge device corresponding to the stored edge device identification so that the edge device judges whether to update the alarm program, and if the update is determined, sending an alarm configuration request to the cloud server again so as to realize redeployment and operation of the alarm program by the edge device.
Specifically, the cloud server may record an identifier of the edge device that has used the alarm program, and when there is a more excellent alarm scheme for a certain alarm problem or a certain type of device, a person skilled in the art may also update the related alarm program stored in the cloud server in a remote assistance manner, and the unique key value of each alarm program does not change due to the update, so that the edge device that has used the original alarm program may be found according to the unique key value, and the cloud server sends an alarm program update message to all the involved edge devices, so that the edge devices determine whether to redeploy the alarm program, and if it is determined to redeploy, the edge devices resend a new alarm configuration request, and perform the process of once again configuring the alarm program. That is, the alarm programs in the alarm program library are not invariable, and it is preferable that after a certain alarm program in the alarm program library is updated by other communication devices, all the edge devices related to the update program need to perform a program update operation.
In the alarm control method provided by the embodiment of the invention, the edge device identifier for sending the alarm configuration request is stored; updating the alarm program; sending an alarm program updating message to the edge device corresponding to the stored edge device identifier so that the edge device can judge whether to update the alarm program, and if the update is determined, sending an alarm configuration request to the cloud server again so as to realize redeployment of the edge device and operation of the alarm program; namely, the alarm program is updated in the embodiment of the invention, so that a better alarm effect is realized.
With reference to the foregoing implementation manners, fig. 5 is a schematic flow diagram of another alarm control method provided by the present invention, in this implementation manner, where the alarm configuration request includes a configuration request table, and the configuration request table includes alarm device information ordered in sequence, as shown in fig. 5, the alarm control method includes:
step 401, receiving an alarm configuration request sent by an edge device.
Wherein the alert configuration request includes at least one alert device information.
Step 402, storing the configuration request table to a cache queue in a cloud server.
And 403, reading the configuration request table from the cache queue in sequence, and determining the alarm programs corresponding to the alarm devices in sequence according to the alarm device information sequenced in sequence.
And 404, performing link compiling processing on the alarm programs corresponding to the sequentially determined alarm devices, and sending the processed alarm programs to the edge devices, so that the edge devices deploy and operate the alarm programs to realize alarm control on the alarm devices.
Step 401 in this embodiment is similar to the implementation of step 101 in the foregoing embodiment, and is not described herein again.
Different from the foregoing embodiment, in order to prevent the thread blocking caused by too many instantaneous alarm configuration requests, in the present embodiment, the configuration request table is stored in a cache queue in the cloud server; reading the configuration request table from the cache queue in sequence, and determining the alarm programs corresponding to the alarm devices in sequence according to the alarm device information sequenced in sequence; and performing link compiling processing on the alarm programs corresponding to the alarm devices which are determined in sequence, and sending the processed alarm programs to the edge device.
Taking monitoring of the base station environment as an example, in the base station environment, each alarm device, such as a base station box, a storage battery pack, and the like, is communicatively connected to different types of sensors or controllers, such as a temperature sensor, a humidity sensor, a smoke sensor, a gyroscope, a voltage sensor, and the like, and the different types of sensors or controllers collect different signals, such as a temperature sensor collecting an ambient temperature of the alarm device, a humidity sensor collecting an ambient humidity of the alarm device, and the like, and identify the different signals with different signal IDs, for example, table 1 is a signal ID table based on the present invention, and as shown in table 1, the signals collected by the temperature sensor are identified with S0001, and the signals collected by the humidity sensor are identified with S0002, and the like.
TABLE 1
Signal ID Sensor type
S0001 Temperature sensor
S0002 Humidity sensor
S0003 Smoke alarm
S0004 Gyroscope
S0005 Voltage sensor
…… ……
The alarm configuration request sent by the edge device to the cloud server includes a configuration request table, where table 2 indicates an intention of the configuration request provided by the present invention, and as shown in table 2, the configuration request table includes alarm device information sequentially ordered, where the alarm device information includes an alarm serial number, an alarm priority, an alarm type, an alarm device, and a signal ID. The alarm serial number is the unique identification number of the alarm device, taking the first row of table 2 as an example, the alarm device with the alarm serial number of a0001 has the priority of a level a, the alarm type of a fire alarm, the alarm device type of a base station box, and the alarm device with the alarm serial number of a0001 is in communication connection with a temperature sensor, a humidity sensor, a smoke sensor and a voltage sensor.
TABLE 2
Figure BDA0002461428010000101
At a certain moment, a plurality of edge devices may send alarm configuration requests to the cloud server, each alarm configuration request includes a configuration request table shown in table 2, and all the configuration request tables are sequentially stored in the cache queue according to the sending sequence of the request, so that the problem of resource blocking caused by an excessively large amount of instantaneous requests can be prevented. And then reading a configuration request table from the converted queue in sequence, determining corresponding alarm programs according to the alarm device information sequentially sequenced in the configuration request table, and if the alarm program determined by the alarm device of A0001 is a first alarm program, the alarm program determined by A0002 is a second alarm program, the alarm program determined by A0003 is a fourth alarm program, and the like, performing link compiling processing on the alarm programs sequentially determined, namely only arranging the alarm programs in sequence, and adding a correct Jump (Jump) instruction in the link process to complete the linking of a plurality of different alarm programs, for example, fig. 6 is an alarm program link diagram provided by the invention, and finally packaging the alarm programs subjected to link compiling and sending the alarm programs to edge devices.
Optionally, the alarm device information includes an alarm device identifier, an alarm type, and an alarm priority; the link compiling processing of the alarm programs corresponding to the alarm devices which are determined in sequence comprises the following steps: and for alarm programs corresponding to alarm devices with the same alarm type and different alarm priorities, performing link compiling processing according to the sequence of the alarm priorities from high to low.
In particular, the alarm device identification may be an alarm serial number as described above, i.e. used to uniquely identify the alarm device. In addition, the corresponding alarm priorities may be divided according to the importance degree of each alarm device, for example, ten-level priorities may be preset and expressed by letter sequences, where a-level represents the highest priority and J-level represents the lowest priority. The alarm priority determines the priority of the alarm program in compiling link, the alarm with high alarm priority in similar alarms covers the alarm with low alarm, for example, the alarm types of the A0001 equipment and the A0002 equipment in the table 2 belong to fire alarms, but the priority A of the A0001 equipment is higher than the priority B of the A0002 equipment, namely, when the A0001 equipment and the A0002 equipment both have faults and need to send out the fire alarm prompt, the fire alarm prompt sent out by the A0001 can cover the fire alarm prompt of the A0002.
According to the alarm control method provided by the embodiment of the invention, the configuration request table is stored in a cache queue in a cloud server; reading the configuration request table from the cache queue in sequence, and determining the alarm programs corresponding to the alarm devices in sequence according to the alarm device information sequenced in sequence; performing link compiling processing on the alarm programs corresponding to the alarm devices which are determined in sequence, and sending the processed alarm programs to the edge device; namely, the embodiment of the invention prevents resource blockage caused by excessive instantaneous configuration requests by storing the configuration requests to the buffer queue; and by linking and compiling the corresponding alarm programs in sequence according to the configuration request table, the cooperative control of a plurality of alarm devices is realized, and the alarm effect is improved.
An alarm management working scene of a mobile base station iron tower is taken as an example for explanation. Fig. 7 is a structural diagram of an iron tower system of a mobile base station according to the present invention, and as shown in fig. 7, the iron tower system of the mobile base station includes a cloud service layer, a data communication layer, and an edge node layer.
As shown in fig. 7, the cloud service layer deploys a Web server, a MySQL server, a TaskEngine server, an MQTT server, and a VPN server, where the Web server is responsible for providing service for a user; the MySQL server is a database; the TaskEngine server is responsible for task management; the MQTT is a middleware server and is responsible for message notification of the cloud platform and the base station; the SVN server provides dedicated connections with the manager and the various base stations. Fig. 8 is a schematic structural diagram of a taskenengine server provided by the present invention, and as shown in fig. 8, the taskenengine server includes an interception thread, a task thread, a cache queue, an update thread, and an alarm library, where the interception thread is always in a working state and is used for intercepting messages of an MQTT server; the task thread can enter a dormant state when no task exists, can be activated by the interception thread, starts working, and completes the configuration, linking and compiling work of the alarm program request; the cache queue is used for caching the message content acquired by the interception thread, and the thread work is prevented from being blocked when the instantaneous message amount is overlarge; the updating thread is awakened only after the alarm program is updated, and the updating task of the installed program is processed; the alarm program library is used for storing a large number of preset alarm schemes and has corresponding alarm program files for different sensor configuration lists and different alarm requirements.
As shown in fig. 7, the 3G and 4G communication means are selected on the data communication layer, and various transmission protocols such as CAN, Modbus, TCP, UDP, and the like are supported on the transmission protocol, so that the stability of the uploading channel of the operation data of the edge node and the timeliness of the transmission of the alarm information CAN be effectively ensured, and the stability and reliability of the process of distributing the update package by the cloud CAN also be ensured.
As shown in fig. 7, the edge node layer includes a PLC controller, an alarm device, and a sensor. Fig. 9 is a schematic structural diagram of a PLC controller according to the present invention, as shown in fig. 9, a cloud layer, a customization layer, a communication layer, and an operating system portion are deployed on the PLC controller, the cloud layer is responsible for data interaction with a cloud server, further, a B interface of the cloud layer is used for normal request interaction work, and an M interface is used for maintenance work and monitoring an update request; the customization layer is responsible for deploying the alarm program sent by the server; the communication layer is used for connecting the alarm equipment and the sensor; the operating system is used for supporting basic function services of the alarm device.
Fig. 10 is a schematic diagram of alarm control of a mobile base station iron tower provided by the present invention, and as shown in fig. 10, the basic working flow is as follows: the PLC of the edge device of the base station packs the configuration request table into an alarm configuration request message and sends the alarm configuration request message to the MQTT server at the cloud end through the interface B;
the TaskEngine server interception thread is responsible for subscribing the message of the MQTT server and receiving the alarm configuration request message from the edge equipment, namely the base station equipment; after receiving the message, the interception thread stores the configuration request table in the request message into a cache queue for caching, so that the thread is prevented from being blocked due to the fact that the instantaneous request amount is too large, and meanwhile, the task thread is called. The task thread reads a configuration request table from the cache queue every time, according to the information of the alarm devices in the configuration request table, the alarm programs meeting the conditions are taken out from the alarm program library, then the characteristic that the PLC programs can be sequentially linked and compiled is utilized, the task thread sequentially arranges the selected alarm programs according to the request sequence of the configuration request table and completes the linked and compiled work in sequence, finally the completed programs are packaged and sent back to the edge device sending the configuration request, meanwhile, the processing information of the time is recorded into the MySQL database, finally, the interface B of the PLC layer circularly waits for the cloud end information, after the program file fed back by the cloud end is received, the program file is processed by the customized layer, and the customized layer is deployed into the base station platform to start the alarm control work.
Fig. 11 is a schematic structural diagram of a cloud server provided in the present invention, and as shown in fig. 11, the cloud server includes: a first receiving module 10, configured to receive an alarm configuration request sent by an edge device, where the alarm configuration request includes at least one piece of alarm device information; and the first sending module 20 is configured to determine a corresponding alarm program according to the alarm configuration request, and send the alarm program to the edge device, so that the edge device deploys and runs the alarm program to implement alarm control on the alarm device.
In other optional embodiments, the cloud server stores an alarm library in advance, where the alarm library includes at least one alarm program; the first sending module 20 is specifically configured to: if the alarm program corresponding to the alarm configuration request exists in the alarm program library, determining the corresponding alarm program; if the alarm program corresponding to the alarm configuration request does not exist in the alarm program library, the alarm program corresponding to the alarm configuration request and sent by other communication equipment is received and added to the alarm program library, wherein the other communication equipment is other equipment except the cloud server and the edge equipment.
In other optional embodiments, the system further comprises a storage module 30, and the storage module 30 is configured to store the other communication device identifier, the addition time, and the addition user information.
In other alternative embodiments, the storage module 30 is further configured to: storing the edge device identification for sending the alarm configuration request; the cloud server further includes an update module 40, where the update module 40 is specifically configured to: updating the alarm program; and sending an alarm program updating message to the edge device corresponding to the stored edge device identification so that the edge device judges whether to update the alarm program, and if the update is determined, sending an alarm configuration request to the cloud server again so as to realize redeployment and operation of the alarm program by the edge device.
In other optional embodiments, the alarm configuration request includes a configuration request table, where the configuration request table includes alarm device information sorted in sequence; the first sending module 20 is further configured to: storing the configuration request table to a cache queue in a cloud server; reading the configuration request table from the cache queue in sequence, and determining the alarm programs corresponding to the alarm devices in sequence according to the alarm device information sequenced in sequence; and performing link compiling processing on the alarm programs corresponding to the alarm devices which are determined in sequence, and sending the processed alarm programs to the edge device.
In other optional embodiments, the alert device information includes an alert device identification, an alert type, and an alert priority; the first sending module 20 is specifically configured to: and for alarm programs corresponding to alarm devices with the same alarm type and different alarm priorities, performing link compiling processing according to the sequence of the alarm priorities from high to low.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the cloud server described above may refer to the corresponding process in the foregoing method example, and are not described herein again.
The cloud server provided by the embodiment of the invention is used for receiving an alarm configuration request sent by edge equipment through a first receiving module, wherein the alarm configuration request comprises at least one piece of alarm equipment information; the first sending module is used for determining a corresponding alarm program according to the alarm configuration request and sending the alarm program to the edge device so that the edge device deploys and operates the alarm program to realize alarm control on the alarm device; the alarm device information is sent to the cloud server, so that the cloud server determines the corresponding alarm program according to the alarm device information, customized alarm is realized, and the alarm effect is improved.
Fig. 12 is a schematic structural diagram of an edge device provided in the present invention, and as shown in fig. 12, the edge device includes: a second sending module 50, configured to send an alarm configuration request to a cloud server, so that the cloud server determines a corresponding alarm program according to the alarm configuration request, and sends the alarm program to an edge device, where the alarm configuration request includes at least one piece of alarm device information; and a second receiving module 60, configured to receive the alarm program, and deploy and operate the alarm program to implement alarm control on the alarm device.
In other optional embodiments, the second receiving module 60 is specifically configured to: receiving parameter information collected by alarm equipment, and inputting the parameter information into the alarm program to determine whether to alarm or not; if so, sending an alarm instruction to the corresponding alarm equipment so that the alarm equipment sends alarm information.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the edge device described above may refer to the corresponding process in the foregoing method example, and are not described herein again.
The edge device provided by the example of the present invention is configured to send an alarm configuration request to a cloud server through a second sending module, so that the cloud server determines a corresponding alarm program according to the alarm configuration request and sends the alarm program to the edge device, where the alarm configuration request includes at least one piece of alarm device information; the second receiving module is used for receiving the alarm program and deploying and operating the alarm program to realize alarm control on the alarm equipment; the alarm device information is sent to the cloud server, so that the cloud server determines the corresponding alarm program according to the alarm device information, customized alarm is realized, and the alarm effect is improved.
Fig. 13 is a schematic diagram of a hardware structure of a control device provided in the present invention, and it should be noted that the control device provided in the example of the present invention is arranged on a cloud server side, as shown in fig. 13, the control device includes:
at least one processor 1301 and memory 1302.
In a specific implementation process, at least one processor 1301 executes computer-executable instructions stored in the memory 1302, so that the at least one processor 1301 executes the alarm control method, wherein the processor 1301 and the memory 1302 are connected through a bus 1303.
For a specific implementation process of the processor 1301, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details are not described herein again.
The example of the present invention further provides another control device, the hardware structure of which is similar to that in fig. 13 and is disposed on the edge device side, and the implementation principle and technical effect of which are similar to those in the above method embodiment, and are not described herein again.
In the embodiment shown in fig. 13, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The invention also provides a readable storage medium which is arranged on the cloud server side, wherein the readable storage medium stores a computer execution instruction, and when a processor executes the computer execution instruction, the alarm control method is realized.
The invention also provides another readable storage medium which is arranged on the side of the edge device and is stored with computer execution instructions, and when a processor executes the computer execution instructions, the alarm control method is realized.
The readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. An alarm control method is applied to a cloud server, and comprises the following steps:
receiving an alarm configuration request sent by edge equipment, wherein the alarm configuration request comprises at least one piece of alarm equipment information;
determining a corresponding alarm program according to the alarm configuration request, and sending the alarm program to the edge device so that the edge device deploys and operates the alarm program to realize alarm control on the alarm device;
the cloud server stores an alarm program library in advance, wherein the alarm program library comprises at least one alarm program; the determining the corresponding alarm program according to the alarm configuration request comprises:
if the alarm program corresponding to the alarm configuration request exists in the alarm program library, determining the corresponding alarm program;
if the alarm program corresponding to the alarm configuration request does not exist in the alarm program library, receiving the alarm program corresponding to the alarm configuration request sent by other communication equipment, and adding the alarm program to the alarm program library, wherein the other communication equipment is other equipment except the cloud server and the edge equipment;
the alarm configuration request comprises a configuration request table, and the configuration request table comprises alarm equipment information which is sequentially ordered; after receiving the alarm configuration request sent by the edge device, the method further includes:
storing the configuration request table to a cache queue in a cloud server;
reading the configuration request table from the cache queue in sequence, and determining the alarm programs corresponding to the alarm devices in sequence according to the alarm device information sequenced in sequence;
performing link compiling processing on the alarm programs corresponding to the alarm devices which are determined in sequence, and sending the processed alarm programs to the edge device;
the alarm device information comprises an alarm device identifier, an alarm type and an alarm priority; the link compiling processing of the alarm programs corresponding to the alarm devices which are determined in sequence comprises the following steps:
and for alarm programs corresponding to alarm devices with the same alarm type and different alarm priorities, performing link compiling processing according to the sequence of the alarm priorities from high to low.
2. The method of claim 1, further comprising: storing the other communication device identification, the adding time and the adding user information.
3. The method according to claim 1 or 2, wherein after receiving the alarm configuration request sent by the edge device, the method further comprises: storing the edge device identification for sending the alarm configuration request;
the method further comprises the following steps:
updating the alarm program;
and sending an alarm program updating message to the edge device corresponding to the stored edge device identification so that the edge device judges whether to update the alarm program, and if the update is determined, sending an alarm configuration request to the cloud server again so as to realize redeployment and operation of the alarm program by the edge device.
4. An alarm control method, applied to an edge device, the method comprising:
sending an alarm configuration request to a cloud server so that the cloud server determines a corresponding alarm program according to the alarm configuration request and sends the alarm program to edge equipment, wherein the alarm configuration request comprises at least one piece of alarm equipment information;
receiving the alarm program, and deploying and operating the alarm program to realize alarm control on alarm equipment;
the alarm configuration request comprises a configuration request table, and the configuration request table comprises alarm equipment information which is sequentially ordered; sending an alarm configuration request to a cloud server so that the cloud server determines a corresponding alarm program according to the alarm configuration request and sends the alarm program to edge equipment, wherein the alarm configuration request comprises: sending an alarm configuration request to a cloud server so that the cloud server stores the configuration request table to a cache queue in the cloud server; reading the configuration request table from the cache queue in sequence, and determining the alarm programs corresponding to the alarm devices in sequence according to the alarm device information sequenced in sequence; performing link compiling processing on the alarm programs corresponding to the alarm devices which are determined in sequence, and sending the processed alarm programs to the edge device;
the alarm device information comprises an alarm device identifier, an alarm type and an alarm priority; the link compiling processing of the alarm programs corresponding to the alarm devices which are determined in sequence comprises the following steps:
and for alarm programs corresponding to alarm devices with the same alarm type and different alarm priorities, performing link compiling processing according to the sequence of the alarm priorities from high to low.
5. The method of claim 4, wherein the deploying runs the alert program to implement alert control of an alert device, comprising:
receiving parameter information collected by alarm equipment, and inputting the parameter information into the alarm program to determine whether to alarm or not;
if so, sending an alarm instruction to the corresponding alarm equipment so that the alarm equipment sends alarm information.
6. A control apparatus, characterized by comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored by the memory causes the at least one processor to perform the alarm control method of any of claims 1-3.
7. A control apparatus, characterized by comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the alarm control method of claim 4 or 5.
CN202010321040.1A 2020-04-22 2020-04-22 Alarm control method and control equipment Active CN111508214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010321040.1A CN111508214B (en) 2020-04-22 2020-04-22 Alarm control method and control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010321040.1A CN111508214B (en) 2020-04-22 2020-04-22 Alarm control method and control equipment

Publications (2)

Publication Number Publication Date
CN111508214A CN111508214A (en) 2020-08-07
CN111508214B true CN111508214B (en) 2022-04-22

Family

ID=71864898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010321040.1A Active CN111508214B (en) 2020-04-22 2020-04-22 Alarm control method and control equipment

Country Status (1)

Country Link
CN (1) CN111508214B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237315A (en) * 2013-05-09 2013-08-07 浪潮通信信息系统有限公司 Telecommunication network management monitoring method combining WAP (wireless application protocol) with short message in condition of low network speed
WO2014163605A1 (en) * 2013-03-31 2014-10-09 Schneider Electric USA, Inc. Automatic configuration of alarm aggregations
US9100301B2 (en) * 2012-09-05 2015-08-04 At&T Intellectual Property I, L.P. Systems, methods, and articles of manufacture to manage alarm configurations of servers
CN105095048A (en) * 2015-07-23 2015-11-25 上海新炬网络信息技术有限公司 Processing method for alarm correlation of monitoring system based on business rules
CN107733970A (en) * 2016-08-10 2018-02-23 霍尼韦尔国际公司 Smart machine distributed secure system
CN108270618A (en) * 2017-12-30 2018-07-10 杭州华为数字技术有限公司 Alert the method, apparatus and warning system of judgement
CN109412972A (en) * 2017-08-17 2019-03-01 阿里巴巴集团控股有限公司 A kind of data reordering method, device and node server
CN110140030A (en) * 2016-10-31 2019-08-16 诺基亚技术有限公司 For providing the method, apparatus and computer program product of sensor data collection and sensor configuration
CN110868338A (en) * 2019-11-21 2020-03-06 北京高因科技有限公司 Early warning monitoring method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007179521A (en) * 2005-11-30 2007-07-12 Mitsubishi Space Software Kk Alarm device, information delivery device, alarm method, information delivery method, alarm program and information delivery program
WO2008148130A2 (en) * 2007-05-31 2008-12-04 Agent Logic, Inc. Distributed system for monitoring information events
US8145750B2 (en) * 2008-11-24 2012-03-27 At&T Intellectual Property I, Lp Detecting hidden shared dependencies through covert channels
JP2014086903A (en) * 2012-10-24 2014-05-12 Azbil Corp Call center system, operation terminal, and control method of call center system
KR101980834B1 (en) * 2012-11-28 2019-05-21 한국전자통신연구원 Method and apparatus for managing applications based on contexts
US10521778B2 (en) * 2015-12-16 2019-12-31 Alegeus Technologies, Llc Systems and methods for allocating resources via information technology infrastructure

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9100301B2 (en) * 2012-09-05 2015-08-04 At&T Intellectual Property I, L.P. Systems, methods, and articles of manufacture to manage alarm configurations of servers
WO2014163605A1 (en) * 2013-03-31 2014-10-09 Schneider Electric USA, Inc. Automatic configuration of alarm aggregations
CN103237315A (en) * 2013-05-09 2013-08-07 浪潮通信信息系统有限公司 Telecommunication network management monitoring method combining WAP (wireless application protocol) with short message in condition of low network speed
CN105095048A (en) * 2015-07-23 2015-11-25 上海新炬网络信息技术有限公司 Processing method for alarm correlation of monitoring system based on business rules
CN107733970A (en) * 2016-08-10 2018-02-23 霍尼韦尔国际公司 Smart machine distributed secure system
CN110140030A (en) * 2016-10-31 2019-08-16 诺基亚技术有限公司 For providing the method, apparatus and computer program product of sensor data collection and sensor configuration
CN109412972A (en) * 2017-08-17 2019-03-01 阿里巴巴集团控股有限公司 A kind of data reordering method, device and node server
CN108270618A (en) * 2017-12-30 2018-07-10 杭州华为数字技术有限公司 Alert the method, apparatus and warning system of judgement
CN110868338A (en) * 2019-11-21 2020-03-06 北京高因科技有限公司 Early warning monitoring method

Also Published As

Publication number Publication date
CN111508214A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN106844137B (en) Server monitoring method and device
JP6441404B2 (en) Methods and devices for updating clients
CN110300017B (en) Standard configuration generating device and method and network equipment configuration error correcting device and method
CN108829560A (en) Data monitoring method, device, computer equipment and storage medium
CN109495567B (en) Static routing deployment method, device and system
CN109788068B (en) Heartbeat state information reporting method, device and equipment and computer storage medium
CN105721941A (en) Over-the-air upgrading control method and device of cloud television
CN111273924A (en) Software updating method and device
CN111026581A (en) Application program repairing method, device, system, storage medium and electronic device
CN111752582A (en) Software updating method and device in local area network and electronic equipment
CN111092865A (en) Security event analysis method and system
CN111083176B (en) Cloud self-adaptive online method and device for monitoring camera
CN111508214B (en) Alarm control method and control equipment
CN115883330B (en) Alarm event processing method, system, equipment and storage medium
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN111049906B (en) Method, device and system for unified management of wireless network bridge network
CN111064798B (en) Node network access method, device, client node and storage medium
CN113448609B (en) Container upgrading method, device, equipment and storage medium
CN112445504A (en) Equipment firmware upgrading method, device and system
CN113556573A (en) Method and system for selecting push flow link
CN113141267A (en) Firmware upgrading and information processing method, device and equipment
CN112532664A (en) Data upgrading method and device
CN110750418B (en) Information processing method, electronic equipment and information processing system
CN109428914B (en) Monitoring method and device, storage medium and processor
JP6802056B2 (en) Client device, server device and server selection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200807

Assignee: HANGZHOU KONGTROLINK INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: HANGZHOU DIANZI University

Contract record no.: X2022330000935

Denomination of invention: Alarm control method and control equipment

Granted publication date: 20220422

License type: Common License

Record date: 20221229