CN118054999A - Internet of things platform alarm monitoring method and device, computer equipment and storage medium - Google Patents

Internet of things platform alarm monitoring method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN118054999A
CN118054999A CN202211437738.5A CN202211437738A CN118054999A CN 118054999 A CN118054999 A CN 118054999A CN 202211437738 A CN202211437738 A CN 202211437738A CN 118054999 A CN118054999 A CN 118054999A
Authority
CN
China
Prior art keywords
equipment
alarm
database
internet
terminal
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
CN202211437738.5A
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.)
Shenzhen Lan You Technology Co Ltd
Original Assignee
Shenzhen Lan You Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lan You Technology Co Ltd filed Critical Shenzhen Lan You Technology Co Ltd
Priority to CN202211437738.5A priority Critical patent/CN118054999A/en
Publication of CN118054999A publication Critical patent/CN118054999A/en
Pending legal-status Critical Current

Links

Landscapes

  • Alarm Systems (AREA)

Abstract

The invention belongs to the field of Internet of things, and relates to an alarm monitoring method, an alarm monitoring device, computer equipment and a storage medium of an Internet of things platform, wherein the method comprises the steps of setting a unique identification code for terminal equipment, acquiring data transmitted by the terminal equipment and storing the data as a database; creating products in a classified manner to obtain a product list, binding the products in the product list with unique identification codes one by one, and setting the belonging relation between the products and the building terminal equipment; constructing a thing model, wherein the thing model comprises equipment attributes, equipment events and equipment services; the equipment attribute is used as a keyword, a corresponding equipment service and equipment event relation is found in a database, equipment service is triggered by equipment event, and matching of the object model is completed; and setting an alarm rule according to the database, judging whether the terminal equipment is matched with the object model, and if not, alarming according to the alarm rule. The machine can prevent the machine from being stopped, greatly reduce the field service times, improve the operation and maintenance efficiency and save the maintenance cost of operation and maintenance personnel.

Description

Internet of things platform alarm monitoring method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of the internet of things, in particular to an alarm monitoring method and device for an internet of things platform, computer equipment and a storage medium.
Background
The internet of things (I nternet of Th I ngs, I oT for short) refers to collecting any object or process needing to be monitored, connected and interacted in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners, and collecting various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology, positions and the like, and realizing ubiquitous connection of objects and people through various possible network access, thereby realizing intelligent sensing, identification and management of objects and processes. The internet of things is an information carrier based on the internet, a traditional telecommunication network and the like, and enables all common physical objects which can be independently addressed to form an interconnection network.
The internet of things platform is an integrated platform integrating the capabilities of equipment management, data security communication, message subscription and the like, and can downwards support connection of mass equipment and collect equipment data to be clouded; the cloud AP I is provided upwards, and the server can send the instruction to the equipment end by calling the cloud AP I, so that remote control and the like are realized.
The current internet of things platform can only monitor single type of alarm data, is suitable for complex scenes, cannot generate alarms in a classified way, cannot meet the requirements of different scenes of users, and cannot send monitoring results in real time.
Disclosure of Invention
The embodiment of the invention aims to provide an alarm monitoring method, an alarm monitoring device, computer equipment and a storage medium for an Internet of things platform, which are used for solving the problems that the existing Internet of things platform can only monitor single type of alarm data, is not suitable for a complex scene without a complete process and cannot generate alarms in a classified way.
In order to solve the technical problems, the invention provides an alarm monitoring method for an Internet of things platform, which adopts the following technical scheme that the method comprises the following steps:
setting a unique identification code for a terminal device, acquiring data transmitted by the terminal device, and storing the data as a database;
Creating products according to the terminal equipment classification to obtain a product list, binding the products in the product list with the unique identification codes one by one, and setting the belonging relation between the products and the terminal equipment;
constructing a thing model according to the database, wherein the thing model comprises equipment attributes, equipment events and equipment services;
the equipment attribute is used as a keyword, a corresponding equipment service and equipment event relation are found in the database, the equipment service is triggered by the equipment event, and matching of the object model is completed;
And setting an alarm rule according to the database, judging whether the terminal equipment is matched with the object model, and if not, alarming according to the alarm rule.
Further, the step of setting the unique identification code for the terminal device, obtaining the data transmitted by the terminal device, and storing the data as a database specifically includes:
setting the unique identification code according to the characteristics of the terminal equipment;
And acquiring data transmitted by the terminal equipment through an MQTT, HTTP or CoAP protocol, and storing the unique identification code and the data from the terminal equipment as a database.
Further, the step of creating products according to the terminal device classification to obtain a product list, binding the products in the product list with the unique identification codes one by one, and setting the belonging relation between the products and the terminal device specifically includes:
According to the characteristics of the terminal equipment, products are created in a classified mode, and a product list is obtained;
establishing a binding relationship between the product in the product list and the unique identification code;
And setting the belonging relation between the product and the terminal equipment.
Further, the step of constructing a model of the object according to the database, wherein the model of the object comprises equipment attributes, equipment events and equipment services specifically comprises the following steps:
Calling information in the database;
And constructing an integrated object model of the equipment attribute, the equipment event and the equipment service according to the information in the database.
The object model is used for digitally describing the terminal equipment, and the digitally describing comprises the model of the terminal equipment, the transaction which can be processed and the service information which can be provided externally.
Further, the step of using the device attribute as a keyword to find a corresponding device service and a device event relationship in the database, and triggering the device service by the device event, and completing the matching of the object model specifically includes:
reading equipment attributes, equipment services and equipment events from the database;
taking the equipment attribute as a keyword, taking the keyword as the input of the equipment service, classifying according to the product characteristics, and generating an abstract template of the equipment attribute in a callback mode;
Binding the abstract template to the device service with the relationship of the device service and the device event stored in the database;
Triggering the equipment service by the equipment event in a publishing and subscribing mode, and completing the interaction of the information of the equipment event and the equipment service;
and outputting the interaction result of the information of the equipment event and the equipment service to an Internet of things platform or storing the interaction result into the database.
Further, the step of setting an alarm rule according to the database, judging whether the terminal device is matched with the object model, and if not, alarming according to the alarm rule specifically includes:
Setting alarm grade, alarm notification frequency and alarm personnel contact information according to the characteristics of the terminal equipment in the database;
And acquiring the instant state of the terminal equipment, judging whether the terminal equipment is matched with the object model, and if not, sending alarm information according to the alarm grade and the alarm notification frequency and the alarm personnel contact information.
Further, the device attribute describes operation information of the terminal device, wherein the operation information comprises an operation state and a reading state of an application program on the device attribute;
The equipment event describes an uplink message triggered when the terminal equipment runs, wherein the uplink message comprises record information of the terminal equipment running, alarm information sent out when the terminal equipment runs abnormally and fault information;
The device service comprises an instruction or a method for external debugging of the terminal device.
In order to solve the technical problems, the invention also provides an alarm monitoring device for the platform of the internet of things, which adopts the following technical scheme that:
The acquisition module is used for setting a unique identification code for the terminal equipment, acquiring data transmitted by the terminal equipment and storing the data as a database;
The binding module is used for creating products according to the terminal equipment classification to obtain a product list, binding the products in the product list with the unique identification codes one by one, and setting the affiliated relation between the products and the terminal equipment;
A thing model module for constructing a thing model according to the database, wherein the thing model comprises equipment attributes, equipment events and equipment services;
The matching module is used for finding out the corresponding equipment service and equipment event relation in the database by taking the equipment attribute as a keyword, triggering the equipment service by the equipment event, and completing the matching of the object model;
And the alarm module is used for setting alarm rules according to the database, judging whether the terminal equipment is matched with the object model, and if not, carrying out alarm according to the alarm rules.
In order to solve the technical problems, the invention also provides a computer device, which adopts the technical scheme that the computer device comprises a memory and a processor, wherein the memory stores computer readable instructions, and the processor realizes the steps of the alarm monitoring method of the platform of the Internet of things when executing the computer readable instructions.
In order to solve the technical problems, the invention also provides a computer readable storage medium, which adopts the technical scheme that the computer readable storage medium is stored with computer readable instructions, and the steps of the alarm monitoring method of the platform of the Internet of things are realized when the computer readable instructions are executed by a processor.
Compared with the prior art, the invention has the following main beneficial effects: the complex and changeable terminal equipment in the Internet of things is reported to the Internet of things platform, the terminal equipment is subjected to classified alarm, the change condition of alarm data is monitored in real time efficiently and rapidly, shutdown is prevented, the field service times are greatly reduced, the operation and maintenance efficiency is improved, and the maintenance cost of operation and maintenance personnel is saved.
Drawings
In order to more clearly illustrate the solution of the present invention, a brief description will be given below of the drawings required for the description of the embodiments of the present invention, it being apparent that the drawings in the following description are some embodiments of the present invention, and that other drawings may be obtained from these drawings without the exercise of inventive effort for a person of ordinary skill in the art.
FIG. 1 is an exemplary system architecture diagram in which the present invention may be applied;
FIG. 2 is a flow chart of one embodiment of an alarm monitoring method of the Internet of things platform of the present invention;
FIG. 3 is a flowchart of a specific embodiment of step S1 in the alarm monitoring method of the platform of the Internet of things of the present invention;
FIG. 4 is a flowchart of a specific embodiment of step S2 in the alarm monitoring method of the platform of the Internet of things of the present invention;
FIG. 5 is a schematic diagram of an object model used in the alarm monitoring method of the platform of the Internet of things;
FIG. 6 is a flowchart of a specific embodiment of step S3 in the alarm monitoring method of the platform of the Internet of things of the present invention;
FIG. 7 is a flowchart of a specific embodiment of step S4 in the alarm monitoring method of the platform of the Internet of things according to the present invention;
FIG. 8 is a flowchart of a specific embodiment of step S5 in the alarm monitoring method of the platform of the Internet of things according to the present invention;
FIG. 9 is a schematic diagram of an alarm rule structure used in the alarm monitoring method of the platform of the Internet of things of the invention;
FIG. 10 is a schematic diagram illustrating the structure of an embodiment of an alarm monitoring device for an Internet of things platform according to the present invention;
FIG. 11 is a schematic diagram of the architecture of one embodiment of a computer device of the present invention.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs; the terminology used in the description of the applications herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention; the terms "comprising" and "having" and any variations thereof in the description of the invention and the claims and the description of the drawings above are intended to cover a non-exclusive inclusion. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to make the person skilled in the art better understand the solution of the present invention, the technical solution of the embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the first terminal device 101, the second terminal device 102 or the third terminal device 103, to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping class application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, electronic book readers, MP3 players (Movi ng Pi cture Experts Group Aud i o Layer I I I, dynamic video expert compression standard audio plane 3), MP4 (Movi ng Pi cture Experts Group Aud i o Layer IV, dynamic video expert compression standard audio plane 4) players, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
It should be noted that, the method for monitoring the platform alarm of the internet of things provided by the embodiment of the invention is generally executed by a server/terminal device, and correspondingly, the device for monitoring the platform alarm of the internet of things is generally arranged in the server/terminal device.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Example 1
With continued reference to fig. 2, a flowchart of one embodiment of the internet of things platform alert monitoring method of the present invention is shown. The warning monitoring method of the platform of the Internet of things comprises the following steps:
Step S1, setting a unique identification code for the terminal equipment, acquiring data transmitted by the terminal equipment, and storing the data as a database.
In this embodiment, an electronic device (for example, a server/terminal device shown in fig. 1) on which the alarm monitoring method of the platform of the internet of things operates may receive an alarm monitoring request of the platform of the internet of things through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection may include, but is not limited to, 3G/4G/5G connections, wi Fi connections, bluetooth connections, wi MAXX connections, zi gbee connections, UWB (u l tra Wi deband) connections, and other now known or later developed wireless connection means.
And acquiring data transmitted by the terminal equipment by the Internet of things platform. Fig. 3 is a flowchart of a specific embodiment of step S1 in the alarm monitoring method of the internet of things platform according to the present invention. As shown in fig. 3, in some alternative implementations, step S1 may further include the steps of:
S11, setting a unique identification code according to the characteristics of the terminal equipment;
s12, acquiring data transmitted by the terminal equipment through protocols such as MQTT, HTTP or CoAP, and storing the unique identification code and the data from the terminal equipment as a database.
The MQTT is a message publishing/subscribing transmission protocol based on a client and a server. HTTP is the hypertext transfer protocol and CoAP is the constrained application protocol. The terminal equipment collects data of the terminal equipment, and then reports the data to the Internet of things platform, the Internet of things platform analyzes and stores the received data, and the data from the terminal equipment is stored into a database for convenient subsequent processing. Databases may employ MySQL, orac l e, SQ L SERVER, SQLite, I NFORM IX, red i s, mongoDB, HBase, neo4J, couchDB, etc.
The identification of the terminal device is desirably performed so that a stable, reliable and unique identification code can be obtained. By setting the unique identification code, the conflict between each terminal device can be avoided, and the problem of repeated names of the database when the database establishes the names of the terminal devices can be avoided. Four letters may be provided to uniquely identify the terminal device with an identification code.
According to the characteristics of the terminal equipment, the unique identification code is set, so that the terminal equipment can be conveniently classified, and the terminal equipment can be conveniently managed.
And S2, creating products according to the classification of the terminal equipment, obtaining a product list, binding the products in the product list with the unique identification codes one by one, and setting the affiliated relation between the products and the terminal equipment.
In the platform of the internet of things, the functions of the product are objectified, the objectified equipment attributes, equipment events and equipment service information are respectively stored in a database, a relation table is established, a service call chain is established, and the structural definition of the terminal product form and the product functions is completed, wherein the structural definition comprises the format (vendor self-defined protocol, lightweight data exchange format Json) and the transmission rule (MQTT protocol, TCP protocol and HTTP protocol) of the service data of the terminal equipment. The method is used for realizing the butt joint of the application platform between different devices according to a unified object model standard, and the data intercommunication between different applications according to the unified object model standard.
Fig. 4 is a flowchart of a specific embodiment of step S2 in the alarm monitoring method of the internet of things platform according to the present invention. As shown in fig. 4, in some alternative implementations, step S2 may further include the steps of:
s21, creating products in a classified mode according to the characteristics of the terminal equipment to obtain a product list;
s22, establishing a binding relation between the products in the product list and the unique identification codes;
S23, setting the belonging relation between the product and the terminal equipment.
The product and the terminal equipment have a certain relationship, and the change of the real-time state of the product directly shows the state change of the terminal equipment.
Step S3, constructing an object model according to the database, wherein the object model comprises equipment attributes, equipment events and equipment services.
Fig. 5 is a schematic diagram of an object model structure used in the alarm monitoring method of the platform of the internet of things. As shown in fig. 5, the object model is a digital abstract description of the device, describing what the model device is, what can be done, and which services can be provided externally. The physical model digitizes entity equipment in the physical space, and builds a data model of the entity on the platform of the Internet of things. Wherein the basic functions of the object model are divided into three types: device attributes, device services, and device events.
Fig. 6 is a flowchart of a specific embodiment of step S3 in the alarm monitoring method of the internet of things platform according to the present invention. As shown in fig. 6, in some alternative implementations, step S3 may further include the steps of:
S31, calling information in a database;
S32, constructing an object model integrating equipment attributes, equipment events and equipment services according to the information in the database.
The object model is used for digitally describing the terminal equipment, and the digitally describing comprises the model of the terminal equipment, the transactions which can be processed and the service information which can be provided externally.
The equipment attribute describes the operation information of the terminal equipment, wherein the operation information comprises an operation state and a reading state of the application program on the equipment attribute;
The equipment event describes an uplink message triggered when the terminal equipment runs, wherein the uplink message comprises record information of the running of the terminal equipment, alarm information sent out when the terminal equipment is abnormal and fault information;
The device services include instructions or methods for external debugging of the terminal device.
The integrated object model of the equipment attribute, the equipment event and the equipment service is constructed, the monitoring management of the terminal equipment is more convenient, the integrated monitoring tracking processing can be carried out through the relevance among the equipment attribute, the equipment event and the equipment service, and the maintenance of the terminal equipment is convenient.
And S4, using the equipment attribute as a keyword, finding out the corresponding equipment service and equipment event relation in the database, triggering the equipment service by the equipment event, and completing the matching of the object model.
Fig. 7 is a flowchart of a specific embodiment of step S4 in the alarm monitoring method of the internet of things platform according to the present invention. As shown in fig. 7, in some alternative implementations, step S4 may further include the steps of:
S41, reading equipment attributes, equipment services and equipment events from a database;
s42, taking the equipment attribute as a keyword, taking the keyword as the input of equipment service, classifying according to the product characteristics, and generating an abstract template of the equipment attribute in a callback mode;
s43, binding the abstract template to the equipment service by using the relation between the equipment service and the equipment event stored in the database;
S44, triggering the equipment service by the equipment event in a publishing and subscribing mode, and completing the interaction of the information of the equipment event and the equipment service;
S45, outputting the interaction result of the information of the equipment event and the equipment service to the Internet of things platform or storing the interaction result in a database.
For example, three types of tables are set in the database: a device table, a device service table, and a device event table. The contents of the device table may be: each row holds a thing name (I D), an attribute name (name). The device attribute corresponding to the attribute name. A device table may be created for each type of product. The contents of the device service table may be: each row stores the service name, device table name, the relationship of the service to the device attributes (whether the current device selects the service, the selection is set to 1, and not set to 0). The contents of the device event table may be: each row holds events for device execution, device service names, device events I D, etc.
After the program is started, the equipment event and the equipment service respectively inquire the data in the database, and the equipment event execution starter (script for executing the program) sends the data as a publisher in a publishing and subscribing mode, and the equipment service as a subscriber subscribes to the information from the equipment event to complete the interaction of the information of the two parties. Thus, the flow of the device event triggering device service is completed.
The device attribute is used as the input of the device service, the attribute is classified according to the product characteristics, the data under the similar products are abstracted into a template, the device service executed by binding the abstract template is triggered by a release subscription mode, the generated result is output, and the result is reported to the platform of the Internet of things. Thus, the similar products are matched with the data of similar equipment attributes according to the templates, that is, the matching of the object models is completed.
And S5, setting an alarm rule according to the database, judging whether the terminal equipment is matched with the object model, and if not, alarming according to the alarm rule.
Fig. 8 is a flowchart of a specific embodiment of step S5 in the alarm monitoring method of the internet of things platform according to the present invention. As shown in fig. 8, in some alternative implementations, step S5 may further include the steps of:
S51, setting alarm grade, alarm notification frequency and alarm personnel contact information according to the characteristics of terminal equipment in a database;
s52, acquiring the instant state of the terminal equipment, judging whether the terminal equipment is matched with the object model, and if not, sending alarm information according to the alarm grade and the alarm notification frequency and the alarm personnel contact information.
Fig. 9 is a schematic diagram of an alarm rule structure used in the alarm monitoring method of the internet of things platform according to the present invention. As shown in fig. 9, the alarm rule is that the internet of things platform makes specific constraint and limitation on data reported by the terminal device, so that the terminal device generates an alarm and sets an alarm condition. Wherein the alert rule includes three parts: alarm level, alarm notification frequency, selected alarm notifier.
The alarm level refers to classifying generated alarm information into different levels for evaluating emergency situations in which the alarm information is processed. Alert levels are classified as fatal, severe, and generally, four levels are prompted. Deadly alarm: the alarm rule corresponds to the resource to generate emergency fault, and the influence business is regarded as deadly alarm. And (5) serious alarm: the problem that the service is affected by the corresponding resources of the alarm rule is relatively serious, and the normal use of the resources is possibly blocked. General alarms: the alarm rule has a relatively less serious problem corresponding to the resource, and the problem does not obstruct the normal use of the resource. Prompting and alarming: the existence of potential errors in the alert rule corresponding resources may affect the service.
The alarm notification frequency refers to the frequency of notifying operation and maintenance personnel of alarm information in a mail or short message mode after the alarm condition occurs.
The selected alarm notifier refers to the alarm information to be sent to which operation and maintenance personnel in the form of mail or short message so as to grasp the alarm information in time.
It should be emphasized that, to further ensure the privacy and security of the alert information, the alert information may also be stored in a node of a blockchain.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The working flow of the alarm monitoring method of the platform of the Internet of things is as follows:
the internet of things platform establishes products in a classified manner according to a transmission protocol uploaded by the equipment data;
Newly creating equipment attribute information on a platform, then binding the newly created product with a unique identification code of real equipment in the industrial Internet of things one by one, and setting the affiliated relation between the product and the equipment;
according to the equipment attribute information, respectively finding out corresponding equipment service and equipment event relation in a database, and then triggering the equipment service by the equipment event to complete matching of the object model;
And judging whether the equipment in the product meets the alarm condition according to alarm rules (alarm grade, alarm notification frequency, which mail or short message notifier is selected) set on the platform of the Internet of things and alarm conditions (effective time, which equipment is designated and whether the equipment attribute value exceeds a preset value or not) processed by the product object model. If yes, directly generating alarm data, if not, executing the next piece of data, continuously judging whether the rule is matched in the object model, then executing the judgment of the alarm detection rule, and circularly executing the current step;
and notifying the user (operation and maintenance personnel) of alarm data generated in real time, such as by means of short messages, mails, weChats, telephone calls and the like, and timely acquiring the health condition of the terminal equipment by the user to complete real-time alarm monitoring.
According to the embodiment, the complex and changeable terminal equipment in the Internet of things is reported to the Internet of things platform, the terminal equipment is subjected to classified alarm, the change condition of alarm data is monitored in real time efficiently and rapidly, shutdown is prevented, the field service times are greatly reduced, the operation and maintenance efficiency is improved, and the maintenance cost of operation and maintenance personnel is saved.
The invention is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by computer readable instructions stored in a computer readable storage medium that, when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-On-y Memory (ROM), or a random access Memory (Random Access Memory, RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
Example two
With further reference to fig. 10, as an implementation of the method shown in fig. 2, the present invention provides an embodiment of an alarm monitoring apparatus for an internet of things platform, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 10, the platform alert monitoring apparatus 400 of the present embodiment includes: an acquisition module 401, a binding module 402, an object model module 403, a matching module 404, and an alarm module 405. Wherein:
An obtaining module 401, configured to set a unique identification code for a terminal device, obtain data transmitted by the terminal device, and store the data as a database;
A binding module 402, configured to create products according to terminal device classification, obtain a product list, bind products in the product list with unique identification codes one by one, and set a relationship between the products and the terminal device;
a thing model module 403 for constructing a thing model from the database, the thing model including device attributes, device events, and device services;
the matching module 404 is configured to find a corresponding device service and a device event relationship in the database by using the device attribute as a keyword, and trigger the device service by the device event to complete matching of the object model;
And the alarm module 405 is configured to set an alarm rule according to the database, determine whether the terminal device is matched with the object model, and if not, alarm according to the alarm rule.
According to the embodiment, the complex and changeable terminal equipment in the Internet of things is reported to the Internet of things platform, the terminal equipment is subjected to classified alarm, the change condition of alarm data is monitored in real time efficiently and rapidly, shutdown is prevented, the field service times are greatly reduced, the operation and maintenance efficiency is improved, and the maintenance cost of operation and maintenance personnel is saved.
Example III
In order to solve the technical problems, the embodiment of the invention also provides computer equipment. Referring specifically to fig. 11, fig. 11 is a basic structural block diagram of a computer device according to the present embodiment.
The computer device 6 comprises a memory 61, a processor 62, a network interface 63 communicatively connected to each other via a system bus. It is noted that only the computer device 6 having the component memory 61, the processor 62 and the network interface 63 is shown in the figures, but it is understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be appreciated by those skilled in the art that the computer device herein is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and its hardware includes, but is not limited to, a microprocessor, an application specific integrated circuit (APP L I CAT I on SPEC I F I C I NTEGRATED CI rcu it, AS ic), a programmable gate array (Fi e l d-Programmab L E GATE ARRAY, FPGA), a digital Processor (DI GITA L SI GNA L Processor, DSP), an embedded device, and the like.
The computer device may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The computer device can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 61 includes at least one type of readable storage media including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk provided on the computer device 6, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), or the like. Of course, the memory 61 may also include both internal storage units of the computer device 6 and external storage devices. In this embodiment, the memory 61 is generally used for storing an operating system and various application software installed on the computer device 6, such as computer readable instructions of an alarm monitoring method of the internet of things platform. Further, the memory 61 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 62 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to execute computer readable instructions stored in the memory 61 or process data, such as computer readable instructions for executing an alarm monitoring method of an internet of things platform.
The network interface 63 may comprise a wireless network interface or a wired network interface, which network interface 63 is typically used for establishing a communication connection between the computer device 6 and other electronic devices.
According to the embodiment, the complex and changeable terminal equipment in the Internet of things is reported to the Internet of things platform, the terminal equipment is subjected to classified alarm, the change condition of alarm data is monitored in real time efficiently and rapidly, shutdown is prevented, the field service times are greatly reduced, the operation and maintenance efficiency is improved, and the maintenance cost of operation and maintenance personnel is saved.
Example IV
The present invention also provides another embodiment, namely, a computer readable storage medium, where computer readable instructions are stored, where the computer readable instructions can be executed by at least one processor, so that the at least one processor performs the steps of the alarm monitoring method for the platform of the internet of things as described above.
According to the embodiment, the complex and changeable terminal equipment in the Internet of things is reported to the Internet of things platform, the terminal equipment is subjected to classified alarm, the change condition of alarm data is monitored in real time efficiently and rapidly, shutdown is prevented, the field service times are greatly reduced, the operation and maintenance efficiency is improved, and the maintenance cost of operation and maintenance personnel is saved.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present invention.
It is apparent that the above-described embodiments are only some embodiments of the present invention, but not all embodiments, and the preferred embodiments of the present invention are shown in the drawings, which do not limit the scope of the patent claims. This invention may be embodied in many different forms, but rather, embodiments are provided in order to provide a thorough and complete understanding of the present disclosure. Although the invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing description, or equivalents may be substituted for elements thereof. All equivalent structures made by the content of the specification and the drawings of the invention are directly or indirectly applied to other related technical fields, and are also within the scope of the invention.

Claims (10)

1. The alarm monitoring method for the platform of the Internet of things is characterized by comprising the following steps of:
s1, setting a unique identification code for a terminal device, acquiring data transmitted by the terminal device, and storing the data as a database;
S2, creating products according to the terminal equipment classification to obtain a product list, binding the products in the product list with the unique identification codes one by one, and setting the affiliated relation between the products and the terminal equipment;
s3, constructing a thing model according to the database, wherein the thing model comprises equipment attributes, equipment events and equipment services;
S4, using the equipment attribute as a keyword, finding a corresponding equipment service and equipment event relation in the database, triggering the equipment service by the equipment event, and completing the matching of the object model;
s5, setting an alarm rule according to the database, judging whether the terminal equipment is matched with the object model, and if not, alarming according to the alarm rule.
2. The method for monitoring the platform alarm of the internet of things according to claim 1, wherein the step S1 of setting the unique identification code for the terminal device, obtaining the data transmitted by the terminal device, and storing the data as the database specifically comprises the steps of:
s11, setting the unique identification code according to the characteristics of the terminal equipment;
S12, acquiring data transmitted by the terminal equipment through an MQTT, HTTP or CoAP protocol, and storing the unique identification code and the data from the terminal equipment as a database.
3. The method for monitoring the platform alarm of the internet of things according to claim 1, wherein the step S2 of creating the product according to the terminal device classification to obtain a product list, binding the products in the product list with the unique identification codes one by one, and setting the relationship between the products and the terminal device specifically comprises:
S21, creating products in a classified mode according to the characteristics of the terminal equipment to obtain a product list;
s22, establishing a binding relation between the product in the product list and the unique identification code;
s23, setting the affiliated relation between the product and the terminal equipment.
4. The method for monitoring the platform alarm of the internet of things according to claim 1, wherein the step S3 of constructing a physical model according to the database, the step of constructing the physical model including equipment attributes, equipment events and equipment services specifically includes the steps of:
S31, calling information in the database;
S32, constructing an object model integrating the equipment attribute, the equipment event and the equipment service according to the information in the database.
5. The method for monitoring the platform alarm of the internet of things according to claim 1, wherein the step S4 of using the device attribute as a keyword to find a corresponding device service and a device event relationship in the database, the device event triggers the device service, and the step of completing the matching of the object model specifically includes the steps of:
S41, reading equipment attributes, equipment services and equipment events from the database;
S42, taking the equipment attribute as a keyword, taking the keyword as the input of the equipment service, classifying according to the product characteristics, and generating an abstract template of the equipment attribute in a callback mode;
S43, binding the abstract template to the equipment service by using the relation between the equipment service and the equipment event stored in the database;
s44, triggering the equipment service by the equipment event in a publishing and subscribing mode, and completing the interaction of the information of the equipment event and the equipment service;
s45, outputting the interaction result of the equipment event and the information of the equipment service party to an Internet of things platform or storing the interaction result in the database.
6. The method for monitoring the platform alarm of the internet of things according to claim 1, wherein the step S5 of setting an alarm rule according to the database, judging whether the terminal device is matched with the object model, and if not, alarming according to the alarm rule specifically comprises the steps of:
S51, setting alarm grade, alarm notification frequency and alarm personnel contact information according to the characteristics of the terminal equipment in the database;
S52, acquiring the instant state of the terminal equipment, judging whether the terminal equipment is matched with the object model, and if not, sending alarm information according to the alarm grade and the alarm notification frequency and the alarm personnel contact information.
7. The method for monitoring the platform alarm of the internet of things according to any one of claims 1 to 6, wherein the method comprises the following steps:
The equipment attribute describes the operation information of the terminal equipment, wherein the operation information comprises an operation state and a reading state of an application program on the equipment attribute;
The equipment event describes an uplink message triggered when the terminal equipment runs, wherein the uplink message comprises record information of the terminal equipment running, alarm information sent out when the terminal equipment runs abnormally and fault information;
The device service comprises an instruction or a method for external debugging of the terminal device.
8. The utility model provides an thing networking platform warning monitoring device which characterized in that includes:
The acquisition module is used for setting a unique identification code for the terminal equipment, acquiring data transmitted by the terminal equipment and storing the data as a database;
The binding module is used for creating products according to the terminal equipment classification to obtain a product list, binding the products in the product list with the unique identification codes one by one, and setting the affiliated relation between the products and the terminal equipment;
A thing model module for constructing a thing model according to the database, wherein the thing model comprises equipment attributes, equipment events and equipment services;
The matching module is used for finding out the corresponding equipment service and equipment event relation in the database by taking the equipment attribute as a keyword, triggering the equipment service by the equipment event, and completing the matching of the object model;
And the alarm module is used for setting alarm rules according to the database, judging whether the terminal equipment is matched with the object model, and if not, carrying out alarm according to the alarm rules.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions that when executed by the processor implement the steps of the internet of things platform alert monitoring method of any one of claims 1 to 7.
10. A computer readable storage medium, wherein computer readable instructions are stored on the computer readable storage medium, which when executed by a processor, implement the steps of the internet of things platform alert monitoring method according to any one of claims 1 to 7.
CN202211437738.5A 2022-11-17 2022-11-17 Internet of things platform alarm monitoring method and device, computer equipment and storage medium Pending CN118054999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211437738.5A CN118054999A (en) 2022-11-17 2022-11-17 Internet of things platform alarm monitoring method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211437738.5A CN118054999A (en) 2022-11-17 2022-11-17 Internet of things platform alarm monitoring method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118054999A true CN118054999A (en) 2024-05-17

Family

ID=91043668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211437738.5A Pending CN118054999A (en) 2022-11-17 2022-11-17 Internet of things platform alarm monitoring method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118054999A (en)

Similar Documents

Publication Publication Date Title
CN109040316B (en) HTTP service processing method and device
CN112052111B (en) Processing method, device and equipment for server abnormity early warning and storage medium
CN111813516B (en) Resource control method and device, computer equipment and storage medium
US20150170070A1 (en) Method, apparatus, and system for monitoring website
CN113704065A (en) Monitoring method, device, equipment and computer storage medium
CN112184169A (en) Dynamic planning method, device, equipment and storage medium for user backlogs
CN111585785B (en) Method and device for shielding alarm information, computer equipment and storage medium
CN111813418B (en) Distributed link tracking method, device, computer equipment and storage medium
CN112463422A (en) Internet of things fault operation and maintenance method and device, computer equipment and storage medium
CN110807050B (en) Performance analysis method, device, computer equipment and storage medium
CN113038396A (en) Scheduling method, device and equipment of short message channel and storage medium
CN114564294A (en) Intelligent service arranging method and device, computer equipment and storage medium
CN111797297B (en) Page data processing method and device, computer equipment and storage medium
CN117215867A (en) Service monitoring method, device, computer equipment and storage medium
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN118054999A (en) Internet of things platform alarm monitoring method and device, computer equipment and storage medium
CN108011964A (en) Picture upload method, device, electric terminal and readable storage medium storing program for executing
CN114090407A (en) Interface performance early warning method based on linear regression model and related equipment thereof
CN114090066A (en) User interface card view generation method and device, computer equipment and medium
CN110796476A (en) Message management method, device and computer readable storage medium
CN111327513B (en) Message data pushing method and device, computer equipment and storage medium
CN116450465B (en) Data processing method, device, equipment and medium
CN117234843A (en) Inspection method, inspection device, computer equipment and storage medium
CN117499487A (en) Service processing method, device, computer equipment and medium based on message queue
CN116431913A (en) Intelligent recommendation method, device and equipment for vehicle owner service push text and storage medium thereof

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