Visualization rule-based multi-source device alarm method, system and device, and medium
By defining and configuration of the model and alarm rules of smart devices, the centralized processing of intelligent equipment alarm information has been realized, the problem of dispersion and insufficient configuration capabilities of the alarm information has been solved, the business efficiency and scalability are improved, and the cost and security risks are reduced.
Patent Information
- Application Number
- CN202411318213.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, the alarm information of smart devices is stored in a distributed manner, and cannot be viewed and processed by type from a global perspective, and lacks the configuration capability based on visualization, so it cannot meet the differentiation of different management requirements and alarm needs.
By abstract and defining the model of accessing equipment, write the transformation program to connect it to the Internet of Things platform to collect data in real time. Based on the visual platform to configure the alarm conditions and the alarm content for different business scenarios, generate alarm rules script, and match the alarm conditions on the Internet of Things platform to generate centralized alarm information.
It realizes the centralized viewing and processing of alarm information of smart devices, improves the work efficiency of business personnel, has strong scalability, adapts to different business needs, reduces project implementation costs, and has low alarm generation delay, which can reduce security risks in a timely manner. .
Smart Images

Figure CN119357841A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a multi-source device alarm method, system, device and medium based on visualization rules. Background Art
[0002] When an intelligent device is abnormal or matches the set alarm conditions, an alarm message will be generated. The alarm message will be stored in the corresponding intelligent system. There are problems such as scattered alarm information and inability to view and process alarm information by type from a global perspective. In addition, alarms are also diverse based on different management requirements. At present, customized development is generally used to meet specific management demands. However, this solution lacks visualization-based configuration capabilities and cannot meet the differentiation of alarm needs. Therefore, a solution to this problem is needed. Summary of the invention
[0003] In view of the deficiencies in the prior art, the present invention proposes a multi-source device alarm method, device and medium based on visualization rules.
[0004] A first aspect of the present invention discloses a multi-source device alarm method based on visualization rules, the method comprising:
[0005] S1: Abstract and define the physical model of the access device, write a conversion program based on the analysis results of the access device, connect it to the IoT platform and collect data in real time;
[0006] S2: define the alarm rule template of the object model according to the business scenario, configure the alarm conditions and alarm contents for different business scenarios through the visualization platform, apply the alarm rule template to generate the alarm rule script, and store it in the database and cache;
[0007] S3: The IoT platform converts the collected data into standard structure data through the conversion program, and applies it to the alarm rule scripts in the database and cache to match the alarm conditions. If the alarm conditions match, centralized alarm information is generated and pushed to the visualization platform.
[0008] In an optional embodiment, the abstraction and definition of the physical model of the access device, writing a conversion program according to the analysis result of the access device, connecting it to the Internet of Things platform and collecting data in real time, includes:
[0009] S101: Analyze each access device, abstract it into a physical model and perform feature extraction;
[0010] S102: defining the physical model according to the characteristics of the physical model, wherein the physical model includes attributes and events;
[0011] S103: Analyze the communication protocol of the access device and write a protocol conversion program based on the communication protocol;
[0012] S104: Connect the access device to the Internet of Things platform, and collect and send data of the access device in real time.
[0013] In an optional embodiment, the alarm rule template of the object model is defined according to the business scenario, alarm conditions and alarm contents are configured for different business scenarios through a visualization platform, and applied to the alarm rule template to generate an alarm rule script, which is stored in a database and a cache, including:
[0014] S201: defining an alarm rule template for the object model attributes and events according to a business scenario;
[0015] S202: Selecting a business concern point from the attributes or events of the object model as an alarm condition through a WEB page, and inputting a concern value as an alarm matching value;
[0016] S203: Select an alarm type and input alarm information through a WEB page to generate alarm content;
[0017] S204: Apply the alarm condition and the alarm matching value to an alarm rule template, generate an alarm rule script, and store it in a database and a cache.
[0018] In an optional embodiment, the Internet of Things platform converts the collected data into standard structure data through the conversion program, applies the alarm rule script in the database and cache to match the alarm conditions, and if the alarm conditions match, generates centralized alarm information and pushes it to the visualization platform, including:
[0019] S301: The conversion program obtains the real-time operation and event data of the access device, converts the data into standard structure data based on the object model, and transmits the data to the Internet of Things platform;
[0020] S302: The rule engine loads the alarm rule script from the database and cache, and applies the standard structure data to the alarm rule script to match the alarm condition;
[0021] S303: If the alarm condition is matched, an alarm message is generated; if the alarm condition is not matched, the task is terminated.
[0022] The second aspect of the present invention discloses a multi-source device alarm system based on visualization rules, including: a data conversion module for abstracting and defining a physical model of an access device, writing a conversion program according to the analysis results of the access device, connecting it to an Internet of Things platform and collecting data in real time;
[0023] An alarm rule script generation module is used to define the alarm rule template of the object model according to the business scenario, configure the alarm conditions and alarm contents for different business scenarios through the visualization platform, and apply the alarm rule template to generate an alarm rule script, which is stored in the database and cache;
[0024] The alarm condition matching module is used to convert the collected data into standard structure data through the conversion program on the Internet of Things platform, and apply it to the alarm rule scripts in the database and cache to match the alarm conditions. If the alarm conditions match, centralized alarm information is generated and pushed to the visualization platform.
[0025] The third aspect of the present invention discloses a multi-source device alarm device based on visualization rules, comprising:
[0026] at least one processor, and
[0027] a memory communicatively connected to the at least one processor; wherein,
[0028] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a multi-source device alarm method based on visualization rules as disclosed in any one of the first aspects of the present invention.
[0029] The fourth aspect of the present invention discloses a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a multi-source device alarm method based on visualization rules as described in any one of the items disclosed in the first aspect of the present invention.
[0030] Compared with the prior art, the present invention has the following advantages:
[0031] The multi-source device alarm method disclosed in the present invention enables the alarm information of all devices to be centrally viewed and processed through the Internet of Things visualization platform, which can improve the work efficiency of business personnel; the visualization configuration adopts business language, and business personnel without any technical background can configure it according to the business scenario, completely getting rid of the dependence on technical personnel. In addition, the alarm conditions are based on the attributes and event configuration of the standard object model structure, and have strong scalability, which can adapt to changes in subsequent business needs, avoid subsequent customized development, and reduce project implementation costs. The generation of alarms is based on the real-time operation data and event data of the equipment, and the delay is very low, generally within 1s, which is very important for high-security scenarios, timely reducing safety hazards and protecting people’s lives and property. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0033] Figure 1 A flowchart of a multi-source device alarm method based on visualization rules disclosed in the first aspect of the present invention;
[0034] Figure 2 A schematic diagram of an application process of a multi-source device alarm method based on visualization rules disclosed in the first aspect of the present invention;
[0035] Figure 3 It is a structural schematic diagram of a multi-source device alarm system based on visualization rules disclosed in the second aspect of the present invention;
[0036] Figure 4 It is a structural schematic diagram of a multi-source device alarm device based on visualization rules disclosed in the third aspect of the present invention;
[0037] Figure 5 It is a structural schematic diagram of a computer storage medium disclosed in the fourth aspect of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0039] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0040] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0041] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0042] In the embodiments of the present invention, it is necessary to explain that:
[0043] Access devices: IoT devices that need to be accessed according to business needs. There are many types of IoT devices. If you want to achieve unified operation of devices, you must find out their commonalities and define standards based on the commonalities to make the platform compatible with more devices. Specifically, access devices are smart devices, which can be computers, smart phones, smart watches, smart bracelets or tablets, etc.
[0044] Physical model: Considering that a wide variety of IoT devices need to be connected to the IoT platform, it is necessary to describe the physical devices at the computer language level. In order for the system to recognize the device and be able to effectively manage the device, a virtualized entity existing in the computer is required, which is the physical model.
[0045] See also Figure 1-2 The embodiment of the present invention discloses a multi-source device alarm method based on visualization rules, including:
[0046] S1: Abstract and define the physical model of the access device, write a conversion program based on the analysis results of the access device, connect it to the IoT platform and collect data in real time;
[0047] In an optional embodiment, the abstraction and definition of the physical model of the access device, writing a conversion program according to the analysis result of the access device, connecting it to the Internet of Things platform and collecting data in real time, includes:
[0048] S101: Analyze each access device, abstract it into a physical model and perform feature extraction;
[0049] S102: defining the physical model according to the characteristics of the physical model, wherein the physical model includes attributes and events;
[0050] S103: Analyze the communication protocol of the access device and write a protocol conversion program based on the communication protocol;
[0051] S104: Connect the access device to the Internet of Things platform, and collect and send data of the access device in real time.
[0052] S2: define the alarm rule template of the object model according to the business scenario, configure the alarm conditions and alarm contents for different business scenarios through the visualization platform, apply the alarm rule template to generate the alarm rule script, and store it in the database and cache;
[0053] In an optional embodiment, the alarm rule template of the object model is defined according to the business scenario, alarm conditions and alarm contents are configured for different business scenarios through a visualization platform, and applied to the alarm rule template to generate an alarm rule script, which is stored in a database and a cache, including:
[0054] S201: defining an alarm rule template for the object model attributes and events according to a business scenario;
[0055] S202: Selecting a business concern point from the attributes or events of the object model as an alarm condition through a WEB page, and inputting a concern value as an alarm matching value;
[0056] S203: Select an alarm type and input alarm information through a WEB page to generate alarm content;
[0057] S204: Apply the alarm condition and the alarm matching value to an alarm rule template, generate an alarm rule script, and store it in a database and a cache.
[0058] S3: The IoT platform converts the collected data into standard structure data through the conversion program, and applies it to the alarm rule scripts in the database and cache to match the alarm conditions. If the alarm conditions match, centralized alarm information is generated and pushed to the visualization platform. This step realizes the centralized visualization of alarm information, so that business personnel can confirm and process the alarm information in a timely manner.
[0059] In an optional embodiment, the Internet of Things platform converts the collected data into standard structure data through the conversion program, applies the alarm rule script in the database and cache to match the alarm conditions, and if the alarm conditions match, generates centralized alarm information and pushes it to the visualization platform, including:
[0060] S301: The conversion program obtains the real-time operation and event data of the access device, converts the data into standard structure data based on the object model, and transmits the data to the Internet of Things platform;
[0061] S302: The rule engine loads the alarm rule script from the database and cache, and applies the standard structure data to the alarm rule script to match the alarm condition;
[0062] S303: If the alarm condition matches, an alarm message is generated; if the alarm condition does not match, the task is terminated. After the task is terminated, the method still continues the automatic alarm condition matching work, wherein the alarm rule script and the alarm condition matching run independently and do not affect each other with other components.
[0063] In the present invention, alarm information is automatically generated by alarm configuration that cooperates with alarm rule templates, alarm conditions and alarm contents, and generated alarm rule scripts, as well as data and event data generated during real-time operation of the equipment, so that all alarm information can be concentrated in the visualization platform of the business system, which better solves the problem of scattered alarm information of multi-source equipment; wherein, the alarm configuration is based on visualization rule configuration and adopts business language, which is convenient for business personnel. Therefore, when business needs change, business personnel only need to adjust the alarm configuration in time to adapt to changes in business needs, and obtain centralized alarm information in time through the visualization platform in the business system.
[0064] The multi-source device alarm method disclosed in the present invention enables the alarm information of all devices to be centrally viewed and processed through the Internet of Things visualization platform, which can improve the work efficiency of business personnel; the visualization configuration adopts business language, and business personnel without any technical background can configure it according to the business scenario, completely getting rid of the dependence on technical personnel. In addition, the alarm conditions are based on the attributes and event configuration of the standard object model structure, and have strong scalability, which can adapt to changes in subsequent business needs, avoid subsequent customized development, and reduce project implementation costs. The generation of alarms is based on the real-time operation data and event data of the equipment, and the delay is very low, generally within 1s, which is very important for high-security scenarios, timely reducing safety hazards and protecting people’s lives and property.
[0065] like Figure 2 As shown, the second aspect of the present invention discloses a multi-source device alarm system based on visualization rules, comprising:
[0066] The data conversion module is used to abstract and define the physical model of the access device, write a conversion program based on the analysis results of the access device, connect it to the Internet of Things platform and collect data in real time;
[0067] An alarm rule script generation module is used to define the alarm rule template of the object model according to the business scenario, configure the alarm conditions and alarm contents for different business scenarios through the visualization platform, and apply the alarm rule template to generate an alarm rule script, which is stored in the database and cache;
[0068] The alarm condition matching module is used to convert the collected data into standard structure data through the conversion program on the Internet of Things platform, and apply it to the alarm rule scripts in the database and cache to match the alarm conditions. If the alarm conditions match, centralized alarm information is generated and pushed to the visualization platform.
[0069] See also Figure 4 The third aspect of the present invention discloses a multi-source device alarm device based on visualization rules, comprising:
[0070] at least one processor, and
[0071] a memory communicatively connected to the at least one processor; wherein,
[0072] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a multi-source device alarm method based on visualization rules as disclosed in any one of the first aspects of the present invention.
[0073] The computer device may be a terminal, and the computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a parking property fee management method is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0074] See also Figure 5 The fourth aspect of the present invention discloses a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a multi-source device alarm method based on visualization rules as described in any one of the items disclosed in the second aspect of the present invention.
[0075] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments of the parking property fee management method. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0076] Alternatively, if the above modules of the present invention are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.
[0077] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-source device alarm method based on visualization rules, characterized in that: The method comprises: S1: abstract and define the physical model of the access device, write a conversion program based on the analysis results of the access device, connect it to the IoT platform and collect data in real time; S2: define the alarm rule template of the object model according to the business scenario, configure the alarm conditions and alarm contents for different business scenarios through the visualization platform, apply the alarm rule template to generate the alarm rule script, and store it in the database and cache; S3: The IoT platform converts the collected data into standard structure data through the conversion program, and applies it to the alarm rule scripts in the database and cache to match the alarm conditions. If the alarm conditions match, centralized alarm information is generated and pushed to the visualization platform.
2. The multi-source device alarm method based on visualization rules according to claim 1 is characterized in that: The abstraction and definition of the physical model of the access device, writing a conversion program according to the analysis results of the access device, connecting it to the Internet of Things platform and collecting data in real time, includes: S101: Analyze each access device, abstract it into a physical model and perform feature extraction; S102: defining the physical model according to the characteristics of the physical model, wherein the physical model includes attributes and events; S103: Analyze the communication protocol of the access device and write a protocol conversion program based on the communication protocol; S104: Connect the access device to the Internet of Things platform, and collect and send data of the access device in real time.
3. The multi-source device alarm method based on visualization rules according to claim 2 is characterized in that: The alarm rule template of the object model is defined according to the business scenario, and the alarm conditions and alarm contents are configured for different business scenarios through the visualization platform, and applied to the alarm rule template to generate an alarm rule script, which is stored in the database and cache. include, S201: defining an alarm rule template for the object model attributes and events according to a business scenario; S202: Selecting a business concern point from the attributes or events of the object model as an alarm condition through a WEB page, and inputting a concern value as an alarm matching value; S203: Select an alarm type and input alarm information through a WEB page to generate alarm content; S204: Apply the alarm condition and the alarm matching value to an alarm rule template, generate an alarm rule script and store it in a database and a cache.
4. The multi-source device alarm method based on visualization rules according to claim 3 is characterized in that: The IoT platform converts the collected data into standard structure data through the conversion program, and applies the alarm rule scripts in the database and cache to match the alarm conditions. If the alarm conditions match, centralized alarm information is generated and pushed to the visualization platform. include, S301: The conversion program obtains the real-time operation and event data of the access device, converts the data into standard structure data based on the object model, and transmits the data to the Internet of Things platform; S302: The rule engine loads the alarm rule script from the database and cache, and applies the standard structure data to the alarm rule script to match the alarm condition; S303: If the alarm condition is matched, an alarm message is generated; if the alarm condition is not matched, the task is terminated.
5. A multi-source device alarm system based on visualization rules, characterized in that: include, The data conversion module is used to abstract and define the physical model of the access device, write a conversion program based on the analysis results of the access device, connect it to the Internet of Things platform and collect data in real time; An alarm rule script generation module is used to define the alarm rule template of the object model according to the business scenario, configure the alarm conditions and alarm contents for different business scenarios through the visualization platform, and apply the alarm rule template to generate an alarm rule script, which is stored in the database and cache; The alarm condition matching module is used to convert the collected data into standard structure data through the conversion program on the Internet of Things platform, and apply it to the alarm rule scripts in the database and cache to match the alarm conditions. If the alarm conditions match, centralized alarm information is generated and pushed to the visualization platform.
6. A multi-source device alarm device based on visualization rules, characterized in that: include: at least one processor, and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-source device alarm method based on visualization rules as described in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the multi-source device alarm method based on visualization rules as described in any one of claims 1 to 5.