Online safety monitoring system and method based on MQTT and computer equipment

By MQTT -based online security monitoring systems, the problems of data sharing between equipment rooms in existing technologies have been solved, data sharing of different brands and manufacturers' equipment is realized, and the efficiency and accuracy of fire safety monitoring are improved.

CN119356179APending Publication Date: 2025-01-24JIANGSU SHAGANG HIGH-TECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411473709.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The existing fire safety monitoring system has low intelligence and small system coverage. The equipment of different brands and manufacturers adopts different protocols, resulting in the inability to realize data sharing, resulting in the widespread existence of data islands.

Method used

Provide an online security monitoring system based on MQTT. Each monitoring device is registered through the device registration service module, generating equipment information sets, and data sharing between different devices through the MQTT service module.

Benefits of technology

Realize the compatibility of different devices, realize real -time data sharing, break the barriers generated by different data protocols, and improve the efficiency and accuracy of online security monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356179A_ABST
    Figure CN119356179A_ABST
Patent Text Reader

Abstract

The invention relates to an online safety monitoring system and method based on MQTT, computer equipment and a storage medium. The system comprises an equipment registration service module which obtains and constitutes an equipment information set; information themes, which can be received by the MQTT service module, of different equipment types to which the registered monitoring equipment belongs are determined; each equipment monitoring data module collects a communication data packet of each corresponding registered monitoring equipment according to the equipment information set generated by the equipment registration service module, obtains an equipment monitoring data set and sends the equipment monitoring data set to the MQTT service module; the MQTT service module receives the equipment monitoring data set sent by the equipment monitoring data module, issues the equipment monitoring data set to the corresponding security monitoring background service module, generates a monitoring point location list and issues the monitoring point location list to the corresponding security monitoring background service module; and the security monitoring background service modules form an equipment monitoring data list. By adopting the system, real-time monitoring of fire safety can be realized, and barriers generated by different devices and different data protocols are overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fire safety technology, and in particular to an online safety monitoring system, method, computer device and storage medium based on MQTT. Background Art

[0002] In the field of fire safety, the existing monitoring and alarm systems on the market have many problems, such as low intelligence, small system coverage, and different protocols used by equipment from different brands and manufacturers, which makes it impossible to share data between different areas and different equipment. Due to differences in data formats and communication protocols between equipment from different manufacturers, data islands are common. With the continuous increase in equipment, the problem of incompatibility is becoming increasingly prominent. Summary of the invention

[0003] Based on this, it is necessary to provide an online safety monitoring system, method, computer equipment and storage medium based on MQTT (Message Queuing Telemetry Transport) that can be compatible with different devices and realize real-time data sharing when monitoring fire safety in response to the above technical problems.

[0004] In the first aspect, the present application provides an online security monitoring system based on MQTT, including a device registration service module, an MQTT service module, at least one device monitoring data module, and at least one security monitoring background service module:

[0005] The device registration service module is used to register each monitored device, obtain each registered monitoring device and its corresponding device information, and form a device information set; determine the information topics that can be received by the MQTT service module for different device types of the registered monitoring device;

[0006] Each device monitoring data module transmits data with the device registration service module and the MQTT service module respectively. The device monitoring data module collects the communication data packets of the corresponding registered monitoring devices according to the device information set generated by the device registration service module, obtains the current monitoring value through regular analysis, constitutes the device monitoring data set, and sends it to the MQTT service module;

[0007] The MQTT service module transmits data with the device registration service module, each device monitoring data module, and each security monitoring background service module respectively; receives the device monitoring data set sent by the device monitoring data module, and publishes it to the corresponding security monitoring background service module; the MQTT service module receives the information topic of each device type according to the device registration service module, obtains the monitoring point list of each registered monitoring device corresponding to each information topic in the device information set generated by the device registration service module, and publishes it to the corresponding security monitoring background service module;

[0008] Each security monitoring backend service module is used to obtain the monitoring value of each monitoring point of each registered monitoring device corresponding to the monitoring point list for the device monitoring data set and monitoring point list published by the MQTT service module, thereby forming a device monitoring data list.

[0009] In one of the embodiments, the system further includes a client for displaying target information of registered monitoring devices in an authorized area based on the device monitoring data list.

[0010] In one embodiment, the device information set generated by the device registration service module includes data parsing rules. The device monitoring data module collects the corresponding communication data packets of each registered monitoring device based on the device information set generated by the device registration service module, and obtains the current monitoring value through regular analysis. The device monitoring data set includes:

[0011] Acquire communication data packets from the corresponding registered monitoring devices, and obtain data parsing rules from the device registration service module. Perform real-time parsing of the communication data packets based on the data parsing rules to obtain the current monitoring values ​​of the corresponding registered monitoring devices to form a device monitoring data set.

[0012] In one embodiment, the device information set generated by the device registration service module includes the information subject and the corresponding tag ID of the registered monitoring device, and the communication data packet is parsed in real time based on the data parsing rules to obtain the current monitoring value of each corresponding registered monitoring device, and the device monitoring data set includes:

[0013] Obtain the information subject corresponding to the device type of the registered monitoring device and the tag ID corresponding to the monitoring point of the registered monitoring device from the device registration service module;

[0014] Use timestamp to record the acquisition time of the current monitoring value of each registered monitoring device;

[0015] A device monitoring data set is generated based on the information topic corresponding to the device type of the registered monitoring device, the tag ID corresponding to the monitoring point of the registered monitoring device, the current monitoring value and the acquisition time of the current monitoring value, where the device monitoring data set format is Json text.

[0016] In one of the embodiments, the device registration service module is further used to control the device information access function of the registered monitoring device through enabling and disabling operations.

[0017] In one of the embodiments, the security monitoring background service module is also used to receive the device monitoring data sets of all registered monitoring devices in the MQTT service module, and to aggregate and store the device monitoring data sets of all registered monitoring devices.

[0018] In one embodiment, the security monitoring background service module, while receiving the device monitoring data set of all registered monitoring devices in the MQTT service module, pushes the data that meets the alarm push requirements to the client with target permissions based on the device information set of the device registration service module.

[0019] In a second aspect, the present application further provides an online security monitoring method based on MQTT, the method using the online security monitoring system based on MQTT as provided in the first aspect, the method comprising:

[0020] Register each monitored device through the device registration service module, obtain each registered monitoring device and its corresponding device information, and form a device information set; determine the information topics that can be received by the MQTT service module for different device types of the registered monitoring device;

[0021] Each device monitoring data module transmits data with the device registration service module and the MQTT service module respectively. The device monitoring data module collects the corresponding communication data packets of each registered monitoring device based on the device information set generated by the device registration service module, obtains the current monitoring value through regular analysis, constitutes the device monitoring data set, and sends it to the MQTT service module;

[0022] Through the MQTT service module, data is transmitted with the device registration service module, each device monitoring data module, and each security monitoring background service module respectively; the device monitoring data set sent by the device monitoring data module is received, and it is published to the corresponding security monitoring background service module; the MQTT service module receives the information topic of each device type according to the device registration service module, obtains the monitoring point list of each registered monitoring device corresponding to each information topic in the device information set generated by the device registration service module, and publishes it to the corresponding security monitoring background service module;

[0023] Through each security monitoring background service module, for the device monitoring data set and monitoring point list published by the MQTT service module, the monitoring value of each monitoring point of each registered monitoring device corresponding to the monitoring point list is obtained to form a device monitoring data list.

[0024] In a third aspect, the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the functions of the above-mentioned MQTT-based online security monitoring system when executing the computer program.

[0025] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the functions of the above-mentioned MQTT-based online security monitoring system are implemented.

[0026] The above-mentioned online security monitoring system, method, computer equipment and storage medium based on MQTT register each monitored device through the device registration service module, obtain each registered monitoring device and its corresponding device information, and constitute a device information set; determine the information topics that can be received by the MQTT service module for different device types belonging to the registered monitoring device; each device monitoring data module transmits data with the device registration service module and the MQTT service module respectively, and the device monitoring data module collects the corresponding communication data packets of each registered monitoring device based on the device information set generated by the device registration service module, obtains the current monitoring value through regular analysis, constitutes a device monitoring data set, and sends it to the MQTT service module; the MQTT service module communicates with the device registration service module, each device monitoring data module, and each security monitoring background service module respectively Perform data transmission; receive the equipment monitoring data set sent by the equipment monitoring data module, and publish it to the corresponding security monitoring background service module; the MQTT service module receives the information topic of each device type according to the equipment registration service module, obtains the monitoring point list of each registered monitoring device corresponding to each information topic in the equipment information set generated by the equipment registration service module, and publishes it to the corresponding security monitoring background service module; each security monitoring background service module obtains the monitoring value of each monitoring point of each registered monitoring device corresponding to the monitoring point list for the equipment monitoring data set and monitoring point list published by the MQTT service module, constitutes the equipment monitoring data list, can realize real-time monitoring of fire-fighting equipment, break the barriers caused by different data protocols, realize real-time data sharing, and improve the efficiency and accuracy of online safety monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a system schematic diagram of an online security monitoring system based on MQTT in one embodiment;

[0028] Figure 2 is a data flow diagram of an online security monitoring system based on MQTT in one embodiment;

[0029] Figure 3 The figure is a flow chart of an online security monitoring method based on MQTT in an embodiment. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail 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 used to limit the present application.

[0031] In an exemplary embodiment, Figure 1 As shown, an online security monitoring system based on MQTT is provided, including a device registration service module 102, an MQTT service module 104, at least one device monitoring data module 106, and at least one security monitoring background service module 108. Among them:

[0032] The device registration service module 102 is used to register each monitored device, obtain each registered monitoring device and its corresponding device information, and form a device information set; determine the information topics of different device types to which the registered monitoring device belongs that can be received by the MQTT service module 104.

[0033] Exemplarily, the device registration service module 102 is used to manage the device information of the registered monitoring device. The device information set includes the device name, device type, device monitoring point, message subject, data monitoring frequency, device network, device location, region, workshop, branch, etc.

[0034] Furthermore, the device registration service module 102 manages the basic information and monitoring configuration of the registered monitoring device in a more detailed manner during the registration management process. The device information set also includes the device communication connection (network IP, port number or serial port number, baud rate, check bit, data bit, stop bit, etc.), monitoring point (point description, communication protocol, point rule, etc.). After the registered monitoring device is connected to the network, the configuration information is automatically loaded from the device registration service module 102, where the configuration information belongs to the content of the device information set.

[0035] Each device monitoring data module 106 transmits data with the device registration service module 102 and the MQTT service module 104 respectively. The device monitoring data module 106 collects the communication data packets of the corresponding registered monitoring devices based on the device information set generated by the device registration service module 102, obtains the current monitoring value through regular analysis, constitutes the device monitoring data set, and sends it to the MQTT service module 104.

[0036] For example, when the device monitoring data module 106 is running, it can obtain the device monitoring data set sent by the registered monitoring device in real time through the communication mode of TCP (Transmission Control Protocol), serial port and signal line connection.

[0037] Optionally, during the online monitoring of the fire alarm host device by the device monitoring data module 106, the fire alarm host is connected to the data acquisition industrial computer network through a TCP communication board, and the data acquisition industrial computer is installed with the device monitoring data module 106. During operation, the device monitoring data module 106 obtains the data parsing protocol of the fire alarm host from the device registration service module 102. The program parses and processes the acquired data into a unified formatted message in real time, including the device number, device monitoring value, timestamp, and publishing topic, and publishes it to the MQTT server in the networked MQTT service module 104.

[0038] Optionally, the device monitoring data module determines corresponding registered monitoring devices according to preset rules.

[0039] The MQTT service module 104 transmits data with the device registration service module 102, each device monitoring data module 106, and each security monitoring background service module 108 respectively; receives the device monitoring data set sent by the device monitoring data module 106, and publishes it to the corresponding security monitoring background service module 108; the MQTT service module 104 receives the information topic of each device type according to the device registration service module 102, obtains the monitoring point list of each registered monitoring device corresponding to each information topic in the device information set generated by the device registration service module 102, and publishes it to the corresponding security monitoring background service module 108.

[0040] Exemplarily, the MQTT service module 104 includes an MQTT server for providing communication services of the MQTT protocol. The device monitoring data module 106 needs to publish messages in independent message topics for each additional device type to be monitored, and multiple device monitoring data are uploaded simultaneously. The MQTT server provides data subscription sharing services to users, and the MQTT server simplifies the many-to-many data sharing relationship between users and devices.

[0041] Each security monitoring backend service module 108 is used to obtain the monitoring value of each monitoring point of each registered monitoring device corresponding to the monitoring point list for the device monitoring data set and monitoring point list published by the MQTT service module 104, thereby forming a device monitoring data list.

[0042] Exemplarily, the security monitoring background service module 108 obtains the configuration information in the device information set from the device registration service module 102, performs one-to-one matching between the received device monitoring data set and the device monitoring items in the device information set, and generates a device monitoring data list.

[0043] Optionally, the security monitoring background service module determines the corresponding device monitoring data module according to preset rules.

[0044] In the above-mentioned online security monitoring system based on MQTT, the device monitoring data module is used to realize the real-time acquisition of the monitoring data of the device and the data publishing and uploading functions; the MQTT service module realizes the connection, publishing and subscription functions of messages from the device monitoring data module, the device registration service module, the security monitoring background service module, and the MQTT client, and realizes the mutual transmission of data between producers and consumers; based on the publishing or subscription message mode of the MQTT protocol, it provides many-to-many message publishing, which can eliminate the problem of strong program coupling in traditional technology. As the middle layer of data exchange, the MQTT server solves the problem of many-to-many data transmission between the device monitoring data module (i.e., producer) and the security monitoring background service module (i.e., consumer). Each additional message producer or consumer needs to establish an independent TCP network connection with the MQTT server. The security monitoring background service module is used for the collection of monitoring data, monitoring data storage, alarm push and data sharing. Through the device monitoring data module, the MQTT service module, the device registration service module, and the security monitoring background service module, the function of obtaining the data of each device and each monitoring point from the MQTT server according to the device registration information and the association rules of the topic-device name-monitoring point in the monitoring data application process is realized. When the data is used, the equipment to which each point belongs, the area where the equipment is located, etc. can be obtained from the registration service configuration, that is, the equipment registration service module according to the equipment point-equipment-equipment location (including branch factories, workshops, and installation areas).

[0045] In an exemplary embodiment, Figure 1 As shown, the system also includes a client 110, which is used to display target information of registered monitoring devices in the authorized area based on the device monitoring data list.

[0046] Exemplarily, the client 110 of the MQTT-based online safety monitoring system is a user-oriented end, such as a web page, WeChat applet, or public account, which is used to display the status of fire monitoring points in the authorized area and real-time concentration information of gas monitoring.

[0047] In this embodiment, the client and the device monitoring data module, MQTT service module, device registration service module, and security monitoring background service module jointly implement the function of obtaining the data of each device and each monitoring point from the MQTT server according to the device registration information and the association rules of topic-device name-monitoring point during the monitoring data application process. When the user uses it, the monitoring data of the specified device can be accessed according to the monitoring area permissions granted by the user.

[0048] In an exemplary embodiment, Figure 1As shown, the device information set generated by the device registration service module 102 includes data analysis rules. The device monitoring data module 106 collects the communication data packets of the corresponding registered monitoring devices based on the device information set generated by the device registration service module 102, and obtains the current monitoring value through rule-based analysis. The device monitoring data set includes: obtaining communication data packets from the corresponding registered monitoring devices, and obtaining data analysis rules from the device registration service module 102, and performing real-time analysis on the communication data packets based on the data analysis rules to obtain the current monitoring value of the corresponding registered monitoring devices, thereby constituting the device monitoring data set.

[0049] Specifically, through the monitoring point configuration in the device registration service module 102, the names of all monitoring points of the device and the point data parsing rules are recorded.

[0050] Furthermore, when the device monitoring data module 106 is running, it can obtain the communication data packets sent by the registered monitoring device in real time by using the communication methods of TCP, serial port and signal line connection. The device monitoring data module 106 performs real-time analysis on the obtained communication data packets according to the data analysis rules preset in the device registration service module 102 to obtain the current monitoring value of the device.

[0051] In this embodiment, communication data packets are obtained from the corresponding registered monitoring devices, and data parsing rules are obtained from the device registration service module. The communication data packets are parsed in real time based on the data parsing rules to obtain the current monitoring values ​​of the corresponding registered monitoring devices, thereby forming a device monitoring data set. The monitoring data of the registered monitoring devices are processed and converted into data that conforms to the parsing rules, which facilitates unified and regularized processing, and further realizes the transmission of the current monitoring values ​​of the devices within the online security monitoring system based on MQTT.

[0052] In an exemplary embodiment, Figure 1 As shown, the device information set generated by the device registration service module 102 includes the information subject of the registered monitoring device and the corresponding tag ID. The communication data packet is parsed in real time based on the data parsing rules to obtain the current monitoring value of each corresponding registered monitoring device. The device monitoring data set includes:

[0053] Obtaining from the device registration service module 102 an information topic corresponding to the device type of the registered monitoring device and a tag ID (Identity document) corresponding to the monitoring point of the registered monitoring device;

[0054] Use timestamp to record the acquisition time of the current monitoring value of each registered monitoring device;

[0055] A device monitoring data set is generated based on the information topic corresponding to the device type of the registered monitoring device, the tag ID corresponding to the monitoring point of the registered monitoring device, the current monitoring value and the acquisition time of the current monitoring value, where the device monitoring data set format is Json text.

[0056] Specifically, when uploading monitoring data, the data needs to be processed in a unified and regular manner. The processing rules include: each device type has an independent message topic for publishing information, and the message topic is obtained from the device registration service module 102; each monitoring point of the device has an independent tag ID, and the tag ID is obtained from the device registration service module 102; the current monitoring value of the device is the latest data currently obtained; the timestamp records the latest time when the current data is obtained; the combined message format is Json text.

[0057] Furthermore, the device monitoring data module 106 obtains the current monitoring value of the device from the registered monitoring device in real time, processes it according to the rules, and sends it to the MQTT service module 104 .

[0058] In this embodiment, by regularizing the current monitoring values ​​of the device to obtain a device monitoring data set, it is beneficial to transmit the monitoring data of the registered monitoring device in the online security monitoring system based on MQTT, improve data consistency, reduce data redundancy, and simplify data update operations.

[0059] In an exemplary embodiment, Figure 1 As shown, the device registration service module 102 is also used to control the device information access function of the registered monitoring device through enabling and disabling operations.

[0060] Specifically, the device registration service module 102 provides device data access management and control, and controls the access function of the registration monitoring device data through activation and deactivation operations.

[0061] Furthermore, the device registration service module 102 stipulates that each device type data can be transmitted to the message topic of the MQTT server, and when users or other clients subscribe to data, they can obtain a unified message topic and a list of device monitoring points from the device registration service module 102.

[0062] In this embodiment, the device information access function of the registered monitoring device is controlled by the enable operation and disable operation of the device registration service module. The registered monitoring device connected to the MQTT-based online security monitoring system can be selected according to actual needs, thereby improving the flexibility of the system.

[0063] In an exemplary embodiment, Figure 1As shown, the security monitoring background service module 108 is also used to receive the device monitoring data sets of all registered monitoring devices in the MQTT service module, and to collect and store the device monitoring data sets of all registered monitoring devices.

[0064] Specifically, the security monitoring background service module 108 subscribes to the device monitoring data set of all devices in the MQTT service module 104, collects the data and keeps receiving the latest data. The security monitoring background service module 108 also provides a function of storing the latest monitoring values ​​of the registered monitoring devices in a database.

[0065] In this embodiment, the security monitoring background service module can not only realize the collection of monitoring data, but also realize data monitoring storage to ensure real-time updating of the latest monitoring data.

[0066] In an exemplary embodiment, Figure 1 As shown, in the process of receiving the device monitoring data set of all registered monitoring devices in the MQTT service module, the security monitoring background service module 108 pushes the data that meets the alarm push requirements to the client with target permissions based on the device information set of the device registration service module 102.

[0067] Specifically, after the registered monitoring device is installed and connected to the network, the device information needs to be registered in the device registration service module 102. The registration includes recording the device type, network address, communication port, data reception and parsing protocol, message subject, monitoring point, alarm configuration, installation location, region, workshop, branch, etc.

[0068] Furthermore, the security monitoring background service module 108 identifies all received data during the data receiving process, and pushes the data that meets the alarm prompt and alarm push requirements in the device registration service module 102 to the user end with corresponding permissions.

[0069] In this embodiment, in the process of receiving the device monitoring data set of all registered monitoring devices in the MQTT service module through the security monitoring background service module, the data that meets the alarm push requirements will be pushed to the client with target permissions based on the device information set of the device registration service module. When an abnormal situation is found, an early warning can be issued in time, thereby realizing the alarm function of the online security monitoring system based on MQTT.

[0070] Each module in the above-mentioned online security monitoring system based on MQTT can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0071] In an exemplary embodiment, Figure 2 As shown, the device monitoring data module collects data from the registered monitoring device to obtain the current monitoring value of the device. The registered monitoring device registers the device information through the device registration service module to obtain the device information set. The device monitoring data module combines the device registration service module to perform data regularization processing on the current monitoring value of the device to obtain the device monitoring data set. The device monitoring data set is sent to the MQTT service module, which provides publishing and subscription functions. The security monitoring background service module subscribes to the data in the MQTT service module and the device registration service module, performs data identification processing, and stores it in the database.

[0072] In an exemplary embodiment, Figure 3 As shown, an online security monitoring method based on MQTT is provided. The method uses the online security monitoring system based on MQTT in the above embodiment. The method includes:

[0073] Step 302, register each monitored device through the device registration service module, obtain each registered monitoring device and its corresponding device information, and form a device information set; determine the information topics of different device types to which the registered monitoring device belongs that can be received by the MQTT service module.

[0074] Among them, the equipment registration service module registers equipment data based on dimensions such as equipment name, equipment type, equipment monitoring point, message subject, data monitoring frequency, equipment network, equipment location, region, workshop, and branch. The equipment registration service module provides multi-user sharing functions such as equipment monitoring data module, security monitoring background service module, and client.

[0075] For example, after the registered monitoring device is installed and connected to the network, the device information needs to be registered in the device registration service module. The registration includes recording the device type, network address, communication port, data reception and parsing protocol, message subject, monitoring point, alarm configuration, installation location, area, workshop, branch, etc.

[0076] Furthermore, the device registration service module provides device status management, real-time monitoring of device networking, device operation, data reception and other status information. At the same time, the device registration service module provides device data access management and control, and controls the device data access function through start and stop operations.

[0077] Furthermore, through the monitoring point configuration in the device registration service module, all monitoring point names and point data parsing rules of the registered monitoring device are recorded. The device registration service module stipulates that each device type data can be transmitted to the message topic of the MQTT server. When users or other clients need to subscribe to data, they can obtain a unified message topic and device monitoring point list from the device registration service module.

[0078] Step 304, each device monitoring data module transmits data with the device registration service module and the MQTT service module respectively. The device monitoring data module collects the communication data packets of the corresponding registered monitoring devices based on the device information set generated by the device registration service module, obtains the current monitoring value through regular analysis, constitutes the device monitoring data set, and sends it to the MQTT service module.

[0079] Optionally, use IoT devices to establish communication connections with registered monitoring devices, convert the monitored device status, temperature, concentration and other data into unified format data messages, or install customized networking drivers in edge acquisition industrial computers, adapt various monitoring devices through TCP network connections, implement Modbus, OPC (OLE for Process Control), S7, MQTT protocol data collection, and convert them into unified format data messages and publish them to the MQTT server in the MQTT service module. Among them, IoT devices include smart gateways, PLCs (Programmable Logic Controllers), and smart meters.

[0080] Step 306, data is transmitted with the device registration service module, each device monitoring data module, and each security monitoring background service module respectively through the MQTT service module; the device monitoring data set sent by the device monitoring data module is received, and published to the corresponding security monitoring background service module; the MQTT service module receives the information topic of each device type according to the device registration service module, obtains the monitoring point list of each registered monitoring device corresponding to each information topic in the device information set generated by the device registration service module, and publishes it to the corresponding security monitoring background service module.

[0081] Specifically, the MQTT service module includes an MQTT server, and the MQTT server is responsible for receiving monitoring data of the fire alarm equipment.

[0082] Further, deploy an MQTT server. Optionally, an MQTT service program can be deployed in a Windows server. An MQTT server is a service program that provides functions such as MQTT data reception, publishing, and subscription. The service can be deployed and run in an IIS (Internet Information Services) environment, or it can be run as an independent program.

[0083] For example, the MQTT server is responsible for receiving monitoring data from fire protection, gas monitoring and other equipment.

[0084] Step 308, through each security monitoring background service module, for the device monitoring data set and monitoring point list published by the MQTT service module, obtain the monitoring value of each monitoring point of each registered monitoring device corresponding to the monitoring point list to form a device monitoring data list.

[0085] Among them, the deployment of security monitoring background service module subscribes to MQTT messages, subscribes to the registered message topic of the registered monitoring device, matches the received data with the device information in the device information set, and processes the monitoring information received in the MQTT service module, that is, the device monitoring data set, and stores it in the database after processing according to the association rule of topic-device name-monitoring point. Real-time monitoring of device status information is carried out, and the information in the device monitoring data set that meets the alarm prompt requirements is pushed to the user end with the specified authority.

[0086] Specifically, a security monitoring background service is established through the security monitoring background service module, and functions such as data subscription acquisition, data storage, and alarm data user push are implemented in the security monitoring background service module. Data subscription acquisition is based on the device configuration in the device registration service module. By subscribing to the message topic of each device, the monitoring point data of all devices is obtained, and a complete device monitoring data list is aggregated to maintain the integrity and real-time nature of the data. During the data storage process, the latest device monitoring data sets received from the MQTT service module for each device are continuously stored in the database.

[0087] Furthermore, all received data are identified during the data receiving process, and the data that meets the alarm prompt and alarm push requirements in the device registration service module are pushed to the user end with corresponding permissions.

[0088] Furthermore, the target information of the registered monitoring devices in the authorized area is displayed through the client based on the device monitoring data list.

[0089] Among them, after the user logs in to the MQTT-based online security monitoring system client, the real-time status information of the system access device is displayed according to the permission configuration, and the device properties are displayed and processed in the form of real-time values ​​and historical curve charts.

[0090] Specifically, when a user logs in to a web page, WeChat applet, or the device status monitoring page of a public account, the real-time status information of related devices within the scope of the permission will be dynamically displayed according to the permissions granted to the user.

[0091] The online security monitoring method based on MQTT provided in this embodiment realizes the function of obtaining the data of each device and each monitoring point from the MQTT server according to the device registration information and the association rules of topic-device name-monitoring point during the monitoring data application process; when the user uses it, the monitoring data of the specified device can be accessed according to the monitoring area permissions granted by the user.

[0092] Unless explicitly stated herein, these steps may be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages, which may be performed at different times and may be performed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.

[0093] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the functions of the above-mentioned system embodiments when executing the computer program.

[0094] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the functions of the above-mentioned system embodiments are realized.

[0095] The technical features of the above embodiments can be combined arbitrarily, and as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. For ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this application, which all belong to the protection scope of this application. Therefore, the protection scope of this application shall be based on the attached claims.

Claims

1. An online security monitoring system based on MQTT, characterized in that: It includes a device registration service module, an MQTT service module, at least one device monitoring data module, and at least one security monitoring background service module: The device registration service module is used to register each monitored device, obtain each registered monitoring device and its corresponding device information, and form a device information set; determine the information topics that can be received by the MQTT service module for different device types of the registered monitoring device; Each device monitoring data module transmits data with the device registration service module and the MQTT service module respectively. The device monitoring data module collects the communication data packets of the corresponding registered monitoring devices according to the device information set generated by the device registration service module, obtains the current monitoring value through regular analysis, constitutes the device monitoring data set, and sends it to the MQTT service module; The MQTT service module transmits data with the device registration service module, each device monitoring data module, and each security monitoring background service module respectively; receives the device monitoring data set sent by the device monitoring data module, and publishes it to the corresponding security monitoring background service module; The MQTT service module receives the information topics of each device type according to the device registration service module, obtains the monitoring point list of each registered monitoring device corresponding to each information topic in the device information set generated by the device registration service module, and publishes it to the corresponding security monitoring background service module; Each security monitoring backend service module is used to obtain the monitoring value of each monitoring point of each registered monitoring device corresponding to the monitoring point list for the device monitoring data set and monitoring point list published by the MQTT service module, thereby forming a device monitoring data list.

2. The system according to claim 1, characterized in that The system also includes a client, which is used to display target information of registered monitoring devices in the authorized area based on the device monitoring data list.

3. The system according to claim 2, characterized in that The device information set generated by the device registration service module includes data parsing rules. The device monitoring data module collects the corresponding communication data packets of each registered monitoring device according to the device information set generated by the device registration service module, and obtains the current monitoring value through regular analysis. The device monitoring data set includes: Acquire communication data packets from corresponding registered monitoring devices, and obtain data parsing rules from the device registration service module, perform real-time parsing on the communication data packets based on the data parsing rules, obtain current monitoring values ​​of corresponding registered monitoring devices, and form a device monitoring data set.

4. The system according to claim 3, characterized in that The device information set generated by the device registration service module includes the information subject of the registered monitoring device and the corresponding tag ID. The communication data packet is parsed in real time based on the data parsing rule to obtain the current monitoring value of each corresponding registered monitoring device, and the device monitoring data set includes: Acquire from the device registration service module the information subject corresponding to the device type of the registered monitoring device and the tag ID corresponding to the monitoring point of the registered monitoring device; Use timestamp to record the acquisition time of the current monitoring value of each registered monitoring device; A device monitoring data set is generated based on the information subject corresponding to the device type of the registered monitoring device, the tag ID corresponding to the monitoring point of the registered monitoring device, the current monitoring value and the acquisition time of the current monitoring value, wherein the device monitoring data set format is Json text.

5. The system according to claim 2, characterized in that The device registration service module is also used to control the device information access function of the registered monitoring device through enabling and disabling operations.

6. The system according to claim 2, characterized in that The security monitoring background service module is also used to receive the device monitoring data sets of all registered monitoring devices in the MQTT service module, and to collect and store the device monitoring data sets of all registered monitoring devices.

7. The system according to claim 6, characterized in that In the process of receiving the device monitoring data set of all registered monitoring devices in the MQTT service module, the security monitoring background service module pushes the data that meets the alarm push requirements to the client with target permissions based on the device information set of the device registration service module.

8. An online security monitoring method based on MQTT, characterized in that: The method uses the MQTT-based online security monitoring system as described in any one of claims 1 to 7, and the method comprises: Register each monitored device through the device registration service module, obtain each registered monitoring device and its corresponding device information, and form a device information set; determine the information topics that can be received by the MQTT service module for different device types of the registered monitoring device; Each device monitoring data module transmits data with the device registration service module and the MQTT service module respectively. The device monitoring data module collects the corresponding communication data packets of each registered monitoring device based on the device information set generated by the device registration service module, obtains the current monitoring value through regular analysis, constitutes the device monitoring data set, and sends it to the MQTT service module; Through the MQTT service module, data is transmitted with the device registration service module, each device monitoring data module, and each security monitoring background service module respectively; the device monitoring data set sent by the device monitoring data module is received, and it is published to the corresponding security monitoring background service module; the MQTT service module receives the information topic of each device type according to the device registration service module, obtains the monitoring point list of each registered monitoring device corresponding to each information topic in the device information set generated by the device registration service module, and publishes it to the corresponding security monitoring background service module; Through each security monitoring background service module, for the device monitoring data set and monitoring point list published by the MQTT service module, the monitoring value of each monitoring point of each registered monitoring device corresponding to the monitoring point list is obtained to form a device monitoring data list.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the functions of the system according to any one of claims 1 to 7 are realized.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the functions of the system according to any one of claims 1 to 7 are realized.