Water quality monitoring system and method based on swan gap

By leveraging HarmonyOS distributed soft bus and device virtualization technology, a closed-loop water quality monitoring system was constructed, solving the problems of device compatibility and coordination in the water quality monitoring system, and improving system stability, data acquisition efficiency, adaptability, and cost-effectiveness.

CN121842226APending Publication Date: 2026-04-10XINGHONG (JIANGXI) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511974980.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-25
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing water quality monitoring systems lack dedicated adaptation, have insufficient equipment collaboration, and lack close data-equipment linkage, making it impossible to achieve autonomous scheduling and equipment virtualization. This results in poor system stability, high adaptation costs, low collaboration efficiency, and insufficient decision-making accuracy.

Method used

The system adopts a distributed soft bus and device virtualization technology based on HarmonyOS. It achieves compatibility of multiple source devices through a hardware adaptation layer, builds self-organizing network communication through a distributed core layer, establishes functional modules according to water quality monitoring requirements through a service customization layer, and provides multi-terminal interaction entry points through an application interaction layer, forming an end-to-end closed-loop water quality monitoring system.

Benefits of technology

It enables water quality monitoring equipment to be autonomously discovered, plug-and-play, and collaborate with low latency, improving data acquisition efficiency, system stability, and adaptability to business scenarios, while reducing deployment and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121842226A_ABST
    Figure CN121842226A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a water quality monitoring system and method based on a swan gap. The system comprises a hardware adaptation layer, a distributed core layer, a service customization layer and an application interaction layer, and the hardware adaptation layer is used for carrying out compatibility adaptation on underlying hardware and carrying out compatibility adaptation on a data transmission protocol; the distributed core layer is used for carrying out ad hoc network in a local area based on a swan-gap distributed architecture and establishing a communication network between the front-end equipment and the monitoring platform; the business customization layer is used for establishing corresponding function modules according to water quality monitoring business requirements, so as to realize the water quality monitoring business requirements based on the function modules; and the application interaction layer is used for providing an interaction entrance with the remote monitoring terminal and the local equipment and realizing interaction with the remote monitoring terminal and the local equipment. According to the scheme, a system with equipment distribution coordination, working condition dynamic sensing, unmanned operation and maintenance scheduling and safe, autonomous and controllable is constructed by deeply customizing a swan-gap distributed structure, and unmanned intelligent water quality monitoring is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of water quality monitoring, in particular to a water quality monitoring system and method based on Hongmeng. BACKGROUND

[0002] Water quality monitoring is a process of periodically or continuously detecting pollutants, microorganisms and other indicators in water bodies through physical, chemical and biological methods to assess water quality, ensure water safety and support water pollution prevention and control. Water quality monitoring technology is developing towards automation, intelligence and high precision. Through sensors, Internet of Things and AI, real-time monitoring and early warning are realized, and biological monitoring and remote sensing technology are integrated to provide more efficient and accurate data support for water environment management.

[0003] However, there are still a series of drawbacks in current water quality monitoring, for example, lack of water quality monitoring dedicated adaptation: general system does not integrate water quality working condition perception, pollutant monitoring parameter management and other dedicated modules, and needs to develop third-party plug-ins, resulting in poor system stability and high adaptation cost; unmanned scheduling logic is fixed: only supports preset time or fixed threshold to trigger device action, cannot dynamically adjust scheduling strategy according to real-time water quality working condition, and has weak adaptation ability to complex water body scenes; device cooperation depth is insufficient: only realizes basic networking and data uploading of devices, does not realize device virtualization and resource sharing (such as sensor data cross-device calling, operation and maintenance device cooperative action) based on Hongmeng distributed architecture, and has low cooperation efficiency; data and device linkage is not close: device state data and water quality monitoring data are stored and processed separately, which cannot provide complete data support for unmanned operation and maintenance scheduling, resulting in insufficient decision-making accuracy. SUMMARY

[0004] The embodiment of the present application provides a water quality monitoring system and method based on Hongmeng, which realizes the self-discovery, plug-and-play and low-delay cooperation of water quality monitoring, operation and maintenance, and security devices based on Hongmeng distributed soft bus and device virtualization technology.

[0005] According to an aspect of the present application, a water quality monitoring system based on Hongmeng is provided, which includes a hardware adaptation layer, a distributed core layer, a business customization layer and an application interaction layer;

[0006] The hardware adaptation layer is used for compatibility adaptation of the underlying hardware and compatibility adaptation of the data transmission protocol;

[0007] The distributed core layer is used for local area self-organizing network based on Hongmeng distributed architecture to form a communication network between front-end devices and monitoring platforms;

[0008] The business customization layer is used to establish corresponding function modules according to water quality monitoring business requirements to realize water quality monitoring business requirements based on each function module.

[0009] The application interaction layer is configured to provide an interaction entry for the remote monitoring terminal and the local device, and to realize interaction with the remote monitoring terminal and the local device.

[0010] According to an aspect of the present application, a water quality monitoring method based on the Hongmeng is provided. The method applies the water quality monitoring system based on the Hongmeng according to any of the above embodiments. The method comprises the following steps:

[0011] The hardware adaptation layer is configured to perform compatibility adaptation on the underlying hardware and to perform compatibility adaptation on the data transmission protocol.

[0012] The distributed core layer is configured to perform local area self-organizing networking based on the Hongmeng distributed architecture, and to establish a communication network between the front-end device and the monitoring platform.

[0013] The business customization layer is configured to establish corresponding function modules according to the water quality monitoring business requirements, and to realize the water quality monitoring business requirements based on the function modules.

[0014] The application interaction layer is configured to provide an interaction entry for the remote monitoring terminal and the local device, and to realize interaction with the remote monitoring terminal and the local device.

[0015] According to another aspect of the present application, an electronic device is provided. The electronic device comprises:

[0016] at least one processor; and

[0017] a memory in communication with the at least one processor; wherein

[0018] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the water quality monitoring method based on the Hongmeng according to any of the embodiments of the present application.

[0019] According to another aspect of the present application, a computer readable storage medium is provided. The computer readable storage medium stores computer instructions. The computer instructions are used to enable the processor to perform the water quality monitoring method based on the Hongmeng according to any of the embodiments of the present application.

[0020] According to another aspect of the present application, a computer program product is provided. The computer program product comprises a computer program. The computer program is executed by the processor to perform the water quality monitoring method based on the Hongmeng according to any of the embodiments of the present application.

[0021] The technical scheme of the embodiment of the application provides a water quality monitoring system based on a HongMeng, the system comprises a hardware adaptation layer, a distributed core layer, a service customization layer and an application interaction layer; the hardware adaptation layer is used for compatibility adaptation of a bottom layer hardware and compatibility adaptation of a data transmission protocol; the distributed core layer is used for local area self-organizing networking based on a HongMeng distributed architecture, and a communication network between a front-end device and a monitoring platform is established; the service customization layer is used for establishing corresponding function modules according to water quality monitoring service requirements, so as to realize water quality monitoring service requirements based on each function module; and the application interaction layer is used for providing an interactive entrance with a remote monitoring terminal and a local device, and realizing interaction with the remote monitoring terminal and the local device. The above scheme can realize autonomous discovery, plug and play and low-delay cooperation of water quality monitoring, operation and maintenance and security devices based on a HongMeng distributed soft bus and device virtualization technology, and solve the problem of protocol barriers of devices of different manufacturers. The hardware adaptation layer is used for realizing multi-source device compatibility and protocol unification, the distributed core layer is used for building a self-organizing networking communication link, the modular function design of the service customization layer is combined, and finally the application interaction layer provides a multi-terminal interactive entrance, so that an end-to-end water quality monitoring closed-loop system is formed, data acquisition efficiency, system stability and business scenario adaptability are significantly improved, and deployment and maintenance costs are reduced.

[0022] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.

[0024] Figure 1 A structure diagram of a water quality monitoring system based on a HongMeng provided by an embodiment of the application is shown in the following figure:

[0025] Figure 2 A structure diagram of a water quality monitoring system based on a HongMeng provided by another embodiment of the application is shown in the following figure:

[0026] Figure 3 A structure diagram of a water quality monitoring system based on a HongMeng provided by another embodiment of the application is shown in the following figure:

[0027] Figure 4 A structure diagram of a water quality monitoring system based on a HongMeng provided by an embodiment of the application is shown in the following figure:

[0028] Figure 5 A flowchart of a water quality monitoring method based on a Hongmeng provided by an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.

[0030] It should be noted that the terms "first", "second", "third", "fourth", "actual", "preset" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0031] In the technical solutions of the present application, the acquisition, storage, use, processing and the like of data comply with the relevant provisions of national laws and regulations. The data acquired is acquired with authorization and permission, and will not be disclosed without permission, will not be used for illegal purposes, purposes harmful to the interests of others, personalized analysis of others and product marketing, etc. It should be noted that in the embodiments of the present application, some industry existing solutions may be mentioned, such as software, components, models, etc. They should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present application, but it does not mean that the applicant has or will necessarily use the related content of the solution.

[0032] Figure 1 A structure diagram of a water quality monitoring system based on a Hongmeng provided by an embodiment of the present application, the embodiment of the present application can be applicable to the case of constructing a water quality monitoring system based on a Hongmeng to monitor water quality. As shown in the figure, Figure 1 The system comprises:

[0033] The system comprises a hardware adaptation layer 110, a distributed core layer 120, a business customization layer 130 and an application interaction layer 140;

[0034] The hardware adaptation layer 110 is used for compatibility adaptation of the underlying hardware and compatibility adaptation of the data transmission protocol.

[0035] The distributed core layer 120 is used for local area self-organizing network based on the distributed architecture of the Hongmeng, and the communication network between the front-end device and the monitoring platform is formed.

[0036] The business customization layer 130 is used to establish corresponding function modules according to the water quality monitoring business requirements, so as to realize the water quality monitoring business requirements based on each function module.

[0037] The application interaction layer 140 is used to provide an interactive interface with the remote monitoring terminal and the local device, and realize the interaction with the remote monitoring terminal and the local device.

[0038] For example, the hardware adaptation layer 110 can realize device driver loading and protocol adaptation, realize hardware adaptation and software adaptation of the operating system and the front-end device for water quality monitoring. The underlying hardware includes the driver library of sensors, controllers, chips such as turbidity sensors, automatic sample retention sensors, sampling pipeline cleaning devices, etc. The underlying hardware is replaced with the Hongmeng chip to support the running of the Hongmeng system and realize the self-organizing network based on the Hongmeng soft bus. At the software level, the main function is the adaptation of the data transmission protocol, including RS485, Modbus, MQTT, TCP, IP, etc. Industrial protocols and HJ212-2025 water quality data transmission standards, automatically identify device protocol types and complete adaptation, solve the compatibility problem of different manufacturers' devices. The distributed core layer 120 can realize self-organizing network of the near-field front-end device, form the communication network between the front-end device and the monitoring platform, so as to avoid transmitting data to the source end control terminal for processing and issuing instructions, based on the near-end interaction between the front-end devices and between the front-end device and the monitoring platform, improve the data transmission efficiency and improve the real-time performance of water quality monitoring. The business customization layer 130 can establish corresponding function modules according to the actual business requirements of water quality monitoring, for example, according to the requirements of water quality monitoring, turbidity monitoring function module, pollution monitoring function module, PH value monitoring function module, different working condition corresponding measure execution function module, etc. The application interaction layer 140 can realize the interaction with other devices, transmit and display the monitored data and water quality monitoring results through the interaction item other device.

[0039] The technical scheme of the embodiment of the application provides a water quality monitoring system based on a HongMeng, the system comprises a hardware adaptation layer, a distributed core layer, a service customization layer and an application interaction layer; the hardware adaptation layer is used for compatibility adaptation of a bottom layer hardware and compatibility adaptation of a data transmission protocol; the distributed core layer is used for local area self-organizing networking based on a HongMeng distributed architecture, and a communication network between a front-end device and a monitoring platform is established; the service customization layer is used for establishing corresponding function modules according to water quality monitoring service requirements, so as to realize water quality monitoring service requirements based on each function module; and the application interaction layer is used for providing an interactive entrance with a remote monitoring terminal and a local device, and realizing interaction with the remote monitoring terminal and the local device. The above scheme can realize self-discovery, plug-and-play and low-delay cooperation of water quality monitoring, operation and maintenance and security devices based on a HongMeng distributed soft bus and device virtualization technology, and solve the problem of protocol barriers of devices of different manufacturers. The hardware adaptation layer is used to realize multi-source device compatibility and protocol unification, the distributed core layer is used to build a self-organizing networking communication link, the modular function design of the service customization layer is combined, and finally the application interaction layer is used to provide a multi-terminal interactive entrance, so that an end-to-end water quality monitoring closed-loop system is formed, the data acquisition efficiency, system stability and business scenario adaptability are significantly improved, and the deployment and maintenance costs are reduced.

[0040] As a non-limiting implementation manner, the distributed core layer comprises a distributed soft bus module, a device virtualization module and a distributed data management module.

[0041] The distributed soft bus module is used for monitoring a newly added front-end device in real time, and connecting the newly added front-end device through a HongMeng soft bus in the case that the newly added front-end device exists; the distributed soft bus module monitors the newly added front-end device and connects the newly added front-end device through a zero-configuration network service or near field communication technology.

[0042] The device virtualization module is used for virtualizing the front-end device into a virtualized device on a monitoring platform, so as to operate the front-end device on the monitoring platform.

[0043] The distributed data management module is used for managing data generated by the front-end device; the data generated by the front-end device comprises monitoring data of the front-end device, running state data of the front-end device and operation and maintenance log data; and the management of the data comprises data storage, data transmission and data synchronization.

[0044] For example, Figure 2As shown, the distributed core layer includes a distributed soft bus module, a device virtualization module, and a distributed data management module. The distributed soft bus module is used to monitor newly added front-end devices in real time, and in the case of monitoring the presence of newly added front-end devices, the distributed soft bus module connects with the newly added front-end devices through the Hongmeng soft bus. The distributed soft bus module monitors and connects with the newly added front-end devices through zero-configuration network services or near-field communication technology. Specifically, the distributed soft bus module can customize the "device discovery-connection-data transmission" process based on the Hongmeng soft bus communication mechanism for water quality monitoring scenarios. After the front-end device running the Hongmeng system is powered on, it can automatically discover newly added front-end devices, establish a connection with the newly added front-end devices, build a low-latency communication link, and ensure the quality of device collaboration and the rapid transmission of monitoring data. In the process of sensing newly added front-end devices, the newly added front-end devices can be monitored and connected based on zero-configuration network services (mDNS for long distances) or near-field communication technology (NFC for short distances), thereby achieving automatic sensing and connection of near-field devices.

[0045] The device virtualization module is used to virtualize the front-end device as a virtualized device on the monitoring platform, so as to operate the front-end device on the monitoring platform. That is, a virtualized front-end device is built on the monitoring platform, and the operable functions are consistent with the functions that the front-end device can achieve. The operation and setting of the front-end device on the monitoring platform are realized. For example, operating to obtain the monitoring data of the front-end device on the monitoring platform controls the front-end device to transmit the monitoring data to the monitoring platform. Setting the parameters of the front-end device on the monitoring platform controls the front-end device to adjust the parameters. For example, the water quality analyzer, the cleaning module, the sample retention device, the camera, and the like can be virtualized as a "distributed resource" of the system, supporting cross-device resource calling, such as directly calling the sampling time data of the analyzer by the sample retention device to realize synchronous sampling.

[0046] The distributed data management module is used to manage the data generated by the front-end device. The data generated by the front-end device includes monitoring data of the front-end device, running state data of the front-end device, and operation and maintenance log data. The management of the data includes data storage, data transmission, and data synchronization. For example, the distributed data management module can manage the data generated by the front-end device, such as data storage, data transmission, and data synchronization of the monitoring data of the front-end device, the running state data of the front-end device, and the operation and maintenance log data. Unified management of monitoring data, running state data of the front-end device, and operation and maintenance log data, etc. adopts a "local cache + cloud synchronization" mode, ensures that data is not lost when offline, automatically supplements transmission after networking, and supports data association query.

[0047] The above solution, through the collaborative design of a distributed soft bus module, a device virtualization module, and a distributed data management module, constructs a modern water quality monitoring system with dynamic perception, intelligent control, and efficient governance capabilities. The distributed soft bus module integrates zero-configuration network services and near-field communication technology, enabling real-time discovery and second-level access of newly added front-end devices, completely eliminating the reliance on manual configuration inherent in traditional systems. The HarmonyOS soft bus protocol supports plug-and-play functionality for heterogeneous devices, making it particularly suitable for scenarios such as rivers and pipe networks where monitoring points need adjustment. The device virtualization module abstracts physical devices into platform-operable virtual entities, supporting remote parameter configuration, firmware upgrades, and fault diagnosis. The distributed data management module adopts an edge computing and cloud-based collaborative architecture to achieve intelligent classification and storage of monitoring data, operating status, and maintenance logs. The distributed design of the three modules forms a fault isolation mechanism, ensuring that an anomaly in any module does not affect the overall operation.

[0048] As a non-limiting implementation method, the business customization layer includes a water quality condition perception engine, an unmanned operation and maintenance scheduling engine, and a safety and energy efficiency management engine;

[0049] The water quality condition sensing engine is used to determine the water quality condition based on the data collected by the front-end equipment.

[0050] The unmanned operation and maintenance scheduling engine is used to generate differentiated collaborative working modes for front-end devices based on water quality conditions.

[0051] The safety and energy efficiency management engine is used for safety control and energy efficiency control.

[0052] For example, such as Figure 3 As shown, the business customization layer includes a water quality condition perception engine, an unmanned operation and maintenance scheduling engine, and a safety and energy efficiency management engine. The water quality condition perception engine is used to determine the water quality condition based on the data collected by the front-end equipment. In other words, the water quality condition perception engine can monitor the monitoring data collected by the front-end equipment in a certain way to determine the water quality condition.

[0053] The unmanned operation and maintenance scheduling engine is configured to generate a collaborative working mode of the differential front-end equipment according to the water quality condition. For example, in the case of different water quality conditions, different measures may be required for collection, and one specific manifestation of the different measures is that the collaborative working mode of the front-end equipment is different. For example, in the case of a high-turbidity water quality condition, that is, in the case where the water turbidity is higher than a preset turbidity, a collaborative working mode of "high-frequency cleaning of the sampling pipeline + intensive monitoring" can be triggered, that is, the frequency of cleaning the sampling pipeline is increased, and the sampling frequency of monitoring is increased to perform more intensive and strict monitoring. In the case of a high-pollution water quality condition, that is, in the case where the concentration of pollutants in the water is greater than a preset concentration, a collaborative working mode of "intensive monitoring + sample reservation + priority calibration" can be triggered, that is, the sampling frequency is increased, the collected water is reserved, and the corresponding front-end equipment is calibrated in priority to improve the monitoring accuracy.

[0054] The safety and energy efficiency control engine is configured to perform safety control and energy efficiency control. For example, the safety of the access of the front-end equipment, the access of the user, and the transmission of the data can be processed to improve the safety and implement the safety control. The front-end equipment is switched to a power consumption standby mode to implement the energy efficiency control and balance the monitoring effect and the energy consumption.

[0055] The above scheme builds a water quality monitoring business system with intelligent perception, autonomous decision-making, and dynamic optimization through the collaborative design of the water quality condition perception engine, the unmanned operation and maintenance scheduling engine, and the safety and energy efficiency control engine. The water quality condition perception engine can accurately identify the type, diffusion range, and influence degree of the pollution source based on the multi-dimensional data (such as pH value, dissolved oxygen, turbidity, etc.) collected by the front-end equipment and through real-time analysis of the water quality change trend by a machine learning algorithm. For example, in the case of a sudden pollution event, the water quality condition perception engine can complete water quality anomaly positioning within 5 minutes and generate a pollution diffusion model to provide a scientific basis for emergency response. At the same time, the water quality condition perception engine supports historical data backtracking analysis to help managers find potential pollution rules and improve long-term governance efficiency. The unmanned operation and maintenance scheduling engine dynamically adjusts the working mode of the front-end equipment according to the water quality condition to achieve optimal allocation of resources. The safety and energy efficiency control engine builds a safety protection system through safety control to achieve the safety of data access and data transmission. Through energy efficiency control, the monitoring accuracy and energy consumption are balanced. For example, during a low-pollution period, the engine can automatically shut down some monitoring points to reduce energy consumption, and during a high-pollution period, the engine starts multi-device collaborative monitoring to improve the data collection density. The modular design of the three engines supports flexible expansion of business functions, such as adding new algorithm models to improve the working condition perception accuracy or integrating a third-party operation and maintenance platform to expand the scheduling capability. In addition, the distributed architecture of the engine ensures that any module failure does not affect the overall operation.

[0056] As a non-limiting implementation, the water quality condition perception engine is specifically configured to:

[0057] The monitoring data collected by the front-end device is compared with a preset water quality working condition characteristic library, and the water quality working condition is determined according to the comparison result; wherein the preset water quality working condition characteristic library includes different water quality working conditions and corresponding water quality characteristic parameters.

[0058] Exemplarily, the preset water quality working condition characteristic library can be set in advance, which includes different water quality working conditions and corresponding water quality characteristic parameters, for example, the characteristic parameters corresponding to more than ten typical water quality working conditions such as high turbidity, high pollution and eutrophication. The core parameters such as turbidity, ammonia nitrogen and permanganate index are collected in real time, compared with the characteristic library to determine the working condition type and grade. The working condition characteristic parameters are automatically updated by the historical data clustering algorithm to adapt to the long-term water quality change of the monitoring station.

[0059] In addition, the collected monitoring data can also be feature extracted to obtain monitoring features, and the monitoring features are input into a pre-trained water quality monitoring model to determine the water quality working condition type and grade. The water quality monitoring model can be obtained by pre-training based on the preset water quality working condition characteristic library.

[0060] The water quality condition perception engine realizes accurate identification and dynamic evaluation of water quality state by intelligently comparing real-time monitoring data collected by the front-end device with the preset water quality condition feature library, integrates various typical water quality scenes (such as normal water body, slight pollution, severe pollution, sudden pollution, etc.) and their corresponding key feature parameters (such as pH value, dissolved oxygen, turbidity, heavy metal content, etc.). By comparing the monitoring data with the threshold range in the feature library in real time, the water quality condition perception engine can complete the water quality condition determination within seconds. For example, in a sudden chemical pollution event, the water quality condition perception engine can quickly identify abnormal parameter combinations and locate the pollution type, gaining valuable time for emergency response. The water quality condition perception engine supports continuous learning and updating of the feature library, and continuously optimizes the weights and association rules of the feature parameters by accumulating historical monitoring data and manual review results. For example, for the problem of seasonal algal blooms in a certain river basin, the water quality condition perception engine can automatically adjust the correlation threshold of chlorophyll a and dissolved oxygen to improve the identification accuracy of eutrophication conditions. The water quality condition perception engine can integrate physical, chemical and biological index data collected by the front-end device, and eliminate the misjudgment risk of a single indicator through multi-parameter correlation analysis. For example, when the turbidity increases but the microbial indicators are normal, the water quality condition perception engine can exclude the possibility of biological pollution and instead indicate silt scouring or industrial suspended matter discharge. This fusion analysis capability greatly improves the reliability of condition determination and provides a more solid basis for subsequent operation and dispatch decisions. The water quality condition perception engine not only outputs the water quality condition result, but also generates a detailed diagnosis report including the specific parameters triggering the alarm, the deviation degree and the possible causes. For example, when a sudden drop in pH value is detected, the report can indicate “acidic substance leakage risk, suggest checking the upstream industrial area”. This transparent output enables operation and maintenance personnel to quickly understand the system judgment logic, improving human-machine collaboration efficiency.

[0061] As a non-limiting implementation manner, the unmanned operation and dispatch engine is specifically used for:

[0062] determining a response operation for the water quality condition according to the water quality condition, and triggering the corresponding front-end device to perform the corresponding operation according to the response operation;

[0063] determining an operation dependency relationship between the front-end devices, and triggering the front-end devices to perform operations in order according to the operation dependency relationship;

[0064] In the master-slave backup front-end device architecture, the state of the front-end device is monitored through a heartbeat signal, and if the front-end device has a fault, the standby front-end device is started to replace the task of the front-end device.

[0065] The unmanned operation and scheduling engine is used to generate a cooperative working mode of the differential front-end equipment according to the water quality condition. For example, in the case of different water quality conditions, different measures may be needed for collection, and one specific manifestation of different measures is that the cooperative working mode of each front-end equipment is different. For example, in the case of high turbidity of water quality, that is, the turbidity of water is higher than the preset turbidity, the cooperative working mode of "high-frequency cleaning of sampling pipeline + encryption monitoring" can be triggered, that is, the frequency of cleaning the sampling pipeline is increased, and the sampling frequency of monitoring is increased to perform more intensive and strict monitoring. In the case of high pollution of water quality, that is, the concentration of pollutants of water is greater than the preset concentration, the cooperative working mode of "encryption monitoring + sample reservation + priority calibration" can be triggered, that is, the sampling frequency is increased, the collected water is reserved, and the corresponding front-end equipment is calibrated in priority to improve the monitoring accuracy.

[0066] In addition, the unmanned operation and scheduling engine can also determine the operation dependency relationship between the front-end equipments, and trigger the front-end equipments to perform ordered operations according to the operation dependency relationship. For example, the pipeline needs to be cleaned before calibration, so the cleaning of the pipeline is triggered before the calibration is performed. The video needs to be recorded synchronously when the sample is reserved, so the image collector is triggered to record and save the video of the sample reservation process at the same time.

[0067] Under the master-slave backup front-end equipment architecture, the unmanned operation and scheduling engine can also monitor the state of the front-end equipment through the heartbeat signal, and if the front-end equipment has a fault, the standby front-end equipment is started to replace the execution of the task of the front-end equipment.

[0068] The unmanned operation and scheduling engine realizes the automation and high efficiency of the whole process of water quality monitoring operation and maintenance through the intelligent decision and dynamic scheduling mechanism. Based on the output result of the water quality condition perception engine, the engine adaptively determines different response operations according to different water quality conditions, so as to trigger the corresponding execution of the front-end equipment and realize the effective intensive monitoring of the water quality condition. The unmanned operation and scheduling engine can automatically coordinate the start sequence of the front-end equipment to realize the ordered processing. The unmanned operation and scheduling engine monitors the state of the front-end equipment in real time through the heartbeat signal, and when the master device fails, the standby device is started to replace the task, thereby improving the disaster recovery function and stability of the system.

[0069] As a non-limiting implementation manner, the safety and energy efficiency control engine is specifically used for:

[0070] If there is a new front-end equipment, the new front-end equipment is connected to the safety verification, and if the verification is passed, the new front-end equipment is allowed to access;

[0071] The monitoring data collected by the front-end equipment is encrypted and then transmitted;

[0072] The operation permissions of the user are stored in a hierarchical manner, and the user is security checked based on the stored operation permissions in the case of user access;

[0073] The power consumption mode of the front-end device is adjusted according to the water quality condition.

[0074] The integrated distributed security framework of the Hongmeng supports device access authentication, data transmission encryption (SM4 algorithm), and hierarchical management of operation permissions, and guarantees the system security in the unattended scenario. The security and energy efficiency management engine monitors whether there is a new front-end device, and if so, performs security checking on the accessed new front-end device, such as checking the serial number and the device type of the front-end device. After the front-end device is determined to be safe through the checking, the new front-end device is allowed to access, avoiding the existence of an attacking front-end device to destroy the system.

[0075] The security and energy efficiency management engine can encrypt the monitoring data before transmission, enhancing the security in the data transmission process. The security and energy efficiency management engine can store the operation permissions of the user in a hierarchical manner, and if there is user access, the user is security checked based on the stored operation permissions. In the case of user access permission determined through the checking, the user is allowed to access, avoiding malicious destruction or data leakage by illegal users.

[0076] The security and energy efficiency management engine can adjust the power consumption mode of the front-end device according to the adaptability of the water quality condition, for example, controlling non-critical devices to enter a low-power standby mode in a stable condition, shutting down or hibernating the sampling pipeline cleaning device in a low turbidity condition, and switching to full load operation in an abnormal condition, balancing the monitoring effect and energy consumption.

[0077] The security and energy efficiency management engine builds a security barrier and a green operation system for the water quality monitoring system through multiple security protection and dynamic energy efficiency optimization mechanisms. The security and energy efficiency management engine performs bidirectional security verification on the newly added front-end devices, and only allows authorized devices to participate in the monitoring network, thereby significantly improving the overall security of the system. The security and energy efficiency management engine performs real-time encryption on the monitoring data collected by the front-end devices using the national encryption algorithm SM4, and realizes transmission channel protection in combination with the TLS 1.3 protocol, thereby improving the security of data transmission. The security and energy efficiency management engine builds a role-based access control (RBAC) model, divides user permissions into levels such as administrators, operators, auditors, and supports dynamic adjustment of permissions. For example, when a certain operator needs to temporarily adjust the sampling frequency, the security and energy efficiency management engine will check its operation permissions, and if it is unauthorized, it will automatically block and record logs. This function reduces the rate of misoperation, and at the same time realizes the whole-process tracing of data changes through the operation audit function. The security and energy efficiency management engine adjusts the power consumption mode of the front-end device in real time according to the water quality conditions. For example, during the low pollution period, the security and energy efficiency management engine can turn off unnecessary sensors and switch the device to sleep state; during the pollution peak period, the high-performance mode is started to improve the data acquisition frequency. Through actual deployment verification, this function reduces the daily energy consumption of a single device.

[0078] As a non-limiting implementation, the application interaction layer includes a remote interaction module, a local access module, and a data visualization module;

[0079] The remote interaction module is configured to connect with a remote access terminal, and display front-end device state data, water quality conditions, operation logs, and monitoring data of the front-end device to the remote access terminal in real time;

[0080] The local access module is configured to connect with a local device for access by the local device;

[0081] The data visualization module is configured to generate an unattended operation report for viewing and exporting.

[0082] As shown in Figure 4 The application interaction layer includes a remote interaction module, a local access module, and a data visualization module. The application interaction layer provides an interactive entrance for remote monitoring and local management, and supports an unattended mode with remote assistance;

[0083] Remote monitoring terminal: supports computer terminal and mobile terminal Harmony application access, and displays device state, condition level, operation log, and monitoring data in real time, and can remotely issue customized operation instructions (only for strategy failure);

[0084] Device local management interface: accessible by "touching" the device through the Hongmeng industrial PAD, supporting local operations such as device parameter configuration, working condition characteristic library update, and operation and maintenance strategy adjustment;

[0085] Data visualization report: automatically generate unattended operation report (including device operation state, working condition response record, and data integrity statistics), support export and traceability.

[0086] As a non-limiting implementation, the hardware adaptation layer is specifically configured to:

[0087] In the case of configuring a Hongmeng chip in the underlying hardware, running a Hongmeng system;

[0088] Standardizing and adapting the water quality data transmission protocols corresponding to the front-end devices of different sources to conform to the water quality data transmission standard.

[0089] As a non-limiting implementation, the hardware adaptation layer further includes a Hongmeng hardware abstraction layer for real-time collection of state data of the front-end device and monitoring of the running state of the front-end device.

[0090] For example, the hardware adaptation layer 110 can implement device driver loading and protocol adaptation, and implement hardware adaptation and software adaptation of the operating system and the front-end device for water quality monitoring. The underlying hardware includes driver libraries of sensors, controllers, and chips such as turbidity sensors, automatic sample holding sensors, and sampling pipeline cleaning devices. The underlying hardware is replaced with a Hongmeng chip to support running a Hongmeng system and realize ad hoc networking based on a Hongmeng soft bus. At the software level, the main function is to adapt the data transmission protocol, including industrial protocols such as RS485, Modbus, MQTT, and TCP / IP and the HJ212-2025 water quality data transmission standard. The device protocol type is automatically identified and adapted, and other water quality transmission protocols are converted into standardized water quality data transmission protocols, solving the compatibility problem of devices from different manufacturers.

[0091] Figure 5 A flowchart of a Hongmeng-based water quality monitoring method provided by the embodiments of the present application is not described in detail in the embodiments of the present application. As shown in Figure 5 The water quality monitoring method provided by the embodiments of the present application is applied to the water quality monitoring system described in any of the above embodiments, which includes:

[0092] S210, compatible adaptation of the underlying hardware and compatible adaptation of the data transmission protocol through the hardware adaptation layer.

[0093] S220, based on the Hongmeng distributed architecture, the distributed core layer performs local ad hoc networking to form a communication network between the front-end device and the monitoring platform.

[0094] S230, establishing a corresponding function module according to the water quality monitoring business demand through the business customization layer, so as to realize the water quality monitoring business demand based on each function module.

[0095] S240, providing an interaction entrance with the remote monitoring terminal and the local device through the application interaction layer, so as to realize the interaction with the remote monitoring terminal and the local device.

[0096] The technical scheme of the embodiment of the application, through the hardware adaptation layer, the compatibility of the underlying hardware is adapted, and the compatibility of the data transmission protocol is adapted; through the distributed core layer, the communication network between the front-end device and the monitoring platform is established based on the distributed architecture of the Hongmeng; through the business customization layer, the corresponding function module is established according to the water quality monitoring business demand, so as to realize the water quality monitoring business demand based on each function module; through the application interaction layer, the interaction entrance with the remote monitoring terminal and the local device is provided, so as to realize the interaction with the remote monitoring terminal and the local device. The above-mentioned scheme can realize the autonomous discovery, plug-and-play and low-delay collaboration of the water quality monitoring, operation and maintenance, and security and protection devices based on the distributed soft bus of the Hongmeng and the device virtualization technology, and solve the problem of protocol barrier of different manufacturers. Through the hardware adaptation layer, the multi-source device compatibility and protocol unification are realized, relying on the distributed core layer to build the self-organizing network communication link, combining the modular function design of the business customization layer, finally providing the multi-terminal interaction entrance through the application interaction layer, forming an end-to-end water quality monitoring closed-loop system, which significantly improves the data acquisition efficiency, system stability and business scene adaptability, and reduces the deployment and maintenance cost.

[0097] In the embodiment of the application, the distributed core layer comprises a distributed soft bus module, a device virtualization module and a distributed data management module.

[0098] The distributed soft bus module monitors the newly added front-end device in real time, and connects the newly added front-end device through the Hongmeng soft bus in the case that there is a newly added front-end device; the distributed soft bus module monitors the newly added front-end device and connects the newly added front-end device through the zero-configuration network service or the near field communication technology.

[0099] The device virtualization module virtualizes the front-end device as a virtualized device on the monitoring platform, so as to operate the front-end device on the monitoring platform.

[0100] The distributed data management module manages the data generated by the front-end device; the data generated by the front-end device includes the monitoring data of the front-end device, the running state data of the front-end device and the operation and maintenance log data; the management of the data includes data storage, data transmission and data synchronization.

[0101] In the embodiment of the present application, the service customization layer comprises a water quality working condition sensing engine, an unmanned operation and maintenance scheduling engine, and a safety and energy efficiency control engine.

[0102] The water quality working condition sensing engine determines the water quality working condition according to the data collected by the front-end device.

[0103] The unmanned operation and maintenance scheduling engine generates a cooperative working mode of the differentiated front-end device according to the water quality working condition.

[0104] The safety and energy efficiency control engine performs safety control and energy efficiency control.

[0105] In the embodiment of the present application, the water quality working condition sensing engine compares the monitoring data collected by the front-end device with a preset water quality working condition feature library, and determines the water quality working condition according to the comparison result; wherein the preset water quality working condition feature library comprises different water quality working conditions and corresponding water quality feature parameters.

[0106] In the embodiment of the present application, the unmanned operation and maintenance scheduling engine determines a coping operation for the water quality working condition according to the water quality working condition, and triggers the corresponding front-end device to perform the corresponding operation according to the coping operation.

[0107] The operation dependency relationship between each front-end device is determined, and each front-end device is triggered to perform the operation in order according to the operation dependency relationship.

[0108] Under the master-slave backup front-end device architecture, the state of the front-end device is monitored through a heartbeat signal, and if the front-end device has a fault, the standby front-end device is started to replace the execution of the task of the front-end device.

[0109] In the embodiment of the present application, if there is a new front-end device, the safety and energy efficiency control engine performs safety verification on the accessed new front-end device, and if the verification is passed, the new front-end device is allowed to access.

[0110] The monitoring data collected by the front-end device is encrypted and then transmitted.

[0111] The operation authority of the user is stored in a hierarchical manner, and the user is safety checked based on the stored operation authority in the case of user access.

[0112] The power consumption mode of the front-end device is adjusted according to the water quality working condition.

[0113] In the embodiment of the present application, the application interaction layer comprises a remote interaction module, a local access module, and a data visualization module.

[0114] The remote interaction module is connected with a remote access terminal, and the front-end device state data, the water quality working condition, the operation and maintenance log, and the monitoring data of the front-end device are displayed in real time to the remote access terminal.

[0115] The local access module is connected with the local device for access by the local device.

[0116] The data visualization module generates an unattended operation report for viewing and exporting.

[0117] In the embodiment of the present application, the hardware adaptation layer runs the Hongmeng system in the case of configuring the Hongmeng chip in the underlying hardware.

[0118] The water quality data transmission protocols corresponding to the front-end devices of different sources are standardized and adapted to conform to the water quality data transmission standard.

[0119] In the embodiment of the present application, the hardware adaptation layer further comprises a Hongmeng hardware abstraction layer, which collects state data of the front-end device in real time and monitors the running state of the front-end device.

[0120] It should be understood that the various forms of flow shown above can be used to reorder, add or delete steps. For example, each step described in the present application can be executed in parallel, sequentially or in a different order, as long as the desired information of the technical solution of the present application can be achieved, which is not limited herein.

[0121] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent replacement and improvement within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A water quality monitoring system based on the Hongmeng, characterized in that, The system comprises a hardware adaptation layer, a distributed core layer, a service customization layer and an application interaction layer; The hardware adaptation layer is configured to perform compatibility adaptation on underlying hardware and data transmission protocols; The distributed core layer is configured to perform local self-organizing networking based on a distributed architecture of the Hongmeng, and to establish a communication network between the front-end device and the monitoring platform; The service customization layer is configured to establish corresponding functional modules according to water quality monitoring service requirements, so as to realize water quality monitoring service requirements based on the functional modules; The application interaction layer is configured to provide an interactive interface with the remote monitoring terminal and the local device, and to realize interaction with the remote monitoring terminal and the local device.

2. The system of claim 1, wherein, The distributed core layer comprises a distributed soft bus module, a device virtualization module and a distributed data management module; The distributed soft bus module is configured to monitor newly added front-end devices in real time, and to connect the newly added front-end devices via the Hongmeng soft bus when the newly added front-end devices are detected; the distributed soft bus module monitors the newly added front-end devices and connects the newly added front-end devices via zero-configuration network services or near-field communication technology; The device virtualization module is configured to virtualize the front-end device as a virtualized device on the monitoring platform, so as to operate the front-end device on the monitoring platform; The distributed data management module is configured to manage data generated by the front-end device; the data generated by the front-end device includes monitoring data of the front-end device, running state data of the front-end device and operation and maintenance log data; the management of the data includes data storage, data transmission and data synchronization.

3. The system of claim 1, wherein, The service customization layer comprises a water quality condition perception engine, an unmanned operation and maintenance scheduling engine and a safety and energy efficiency control engine; The water quality condition perception engine is configured to determine a water quality condition according to data collected by the front-end device; The unmanned operation and maintenance scheduling engine is configured to generate a collaborative working mode of differentiated front-end devices according to the water quality condition; The safety and energy efficiency control engine is configured to perform safety control and energy efficiency control.

4. The system of claim 3, wherein, The water quality condition perception engine is specifically configured to: compare the monitoring data collected by the front-end device with a preset water quality condition feature library, and determine a water quality condition according to a comparison result; the preset water quality condition feature library includes different water quality conditions and corresponding water quality characteristic parameters.

5. The system of claim 3, wherein, The unmanned operation and maintenance scheduling engine is specifically configured to: determine a coping operation for the water quality condition according to the water quality condition, and trigger corresponding front-end devices to perform corresponding operations according to the coping operation; determine an operation dependency relationship between the front-end devices, and trigger the front-end devices to perform operations in an order according to the operation dependency relationship; under a master-slave backup front-end device architecture, monitor the state of the front-end device via a heartbeat signal, and if the front-end device has a fault, start a standby front-end device to take over the task of the front-end device.

6. The system of claim 3, wherein, The safety and energy efficiency control engine is specifically configured to: if there is a newly added front-end device, perform safety verification on the newly added front-end device that is accessed, and allow the newly added front-end device to access if the verification is passed; transmit the monitoring data collected by the front-end device after encryption; The operation permission of a user is stored hierarchically, and the user is security checked based on the stored operation permission in the case that the user accesses; The power consumption mode of the front-end equipment is adjusted according to the water quality condition.

7. The system of claim 1, wherein, The application interaction layer comprises a remote interaction module, a local access module and a data visualization module; The remote interaction module is configured to connect with a remote access terminal, and display front-end equipment state data, water quality conditions, operation and maintenance logs and monitoring data of the front-end equipment to the remote access terminal in real time; The local access module is configured to connect with a local device for access by the local device; The data visualization module is configured to generate an unattended operation report for viewing and exporting.

8. The system of claim 1, wherein, The hardware adaptation layer is specifically configured to: run a Hongmeng system in the case that a Hongmeng chip is configured in the underlying hardware; standardize and adapt water quality data transmission protocols corresponding to front-end equipment of different sources to conform to water quality data transmission standards.

9. The system of claim 1, wherein, The hardware adaptation layer further comprises a Hongmeng hardware abstraction layer configured to collect state data of the front-end equipment in real time and monitor the operation state of the front-end equipment. 10.A method for water quality monitoring based on a Hongmeng, characterized in that, The method applies the Hongmeng-based water quality monitoring system according to any one of claims 1-9, and the method comprises: compatibly adapting the underlying hardware and compatibly adapting data transmission protocols by the hardware adaptation layer; locally self-organizing a network by the distributed core layer based on a Hongmeng distributed architecture to form a communication network between the front-end equipment and the monitoring platform; establishing corresponding functional modules according to water quality monitoring business requirements by the business customization layer to achieve water quality monitoring business requirements based on each functional module; providing an interaction portal with a remote monitoring terminal and a local device by the application interaction layer to realize interaction with the remote monitoring terminal and the local device.