A water affairs monitoring center testing method, device and readable storage medium

By generating test data based on the pipe network simulation model and the preset event model, the problem that the water supply pipe network event monitoring center in the water industry needs to access a large number of real devices for testing is solved, thereby reducing test costs and improving test efficiency.

CN118094970BActive Publication Date: 2024-09-03SHENZHEN ANSO IOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410525176.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-09-03
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

The testing of the existing water supply pipe network event monitoring center in the water industry requires access to a large number of real devices, resulting in high investment costs for hardware equipment and expensive testing costs.

Method used

The test data is generated based on the pipe network simulation model and the preset event model, and the water monitoring center is tested through simulation equipment to obtain alarm results, avoiding the need for access to hardware equipment.

Benefits of technology

It reduces test costs, shortens test time, improves test efficiency, reduces performance pressure on the production environment, and enhances the reliability and accuracy of the monitoring center.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118094970B
    Figure CN118094970B
Patent Text Reader

Abstract

The present application provides a water affairs monitoring center testing method, device and readable storage medium. The method includes: based on the pipe network simulation model, according to the preset event model, generating test data, the test data includes various types of alarm event data; using the test data, testing the water affairs monitoring center to obtain the first alarm result output by the water affairs monitoring center. The present application realizes access to the simulation device, generates test data based on the simulation device to test the water affairs monitoring center, does not need to access the hardware device, does not need to invest in hardware costs, and reduces the testing cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of water technology, and in particular, relates to a water monitoring center testing method, device and readable storage medium. Background Art

[0002] At present, the test of the water supply network event monitoring center in the water industry is to connect the real equipment in the production environment to the monitoring center. The monitoring center monitors the data generated by each real device and performs alarm operations when equipment failure or other events are detected.

[0003] This testing method requires access to a large number of real pipeline network devices, which increases the investment cost of hardware equipment and leads to high testing costs. Summary of the invention

[0004] The embodiments of the present application provide a water monitoring center testing method, device, electronic device, readable storage medium and computer program product, which can solve the problem of needing to connect a large number of real pipe network devices to test the monitoring center.

[0005] In a first aspect, an embodiment of the present application provides a water affairs monitoring center testing method, comprising:

[0006] Based on the pipe network simulation model and according to the preset event model, test data is generated, wherein the test data includes various types of alarm event data;

[0007] The water affairs monitoring center is tested using the test data to obtain a first alarm result output by the water affairs monitoring center.

[0008] In one embodiment, the generating of test data based on the pipeline network simulation model and the preset event model includes:

[0009] Constructing the pipeline network simulation model according to the pipeline network sample data, wherein the pipeline network sample data includes the operation data of the pipeline network;

[0010] Establishing the preset event model according to the alarm event monitoring type of the water affairs monitoring center;

[0011] Based on the simulation equipment of the pipeline network simulation model and the pipeline network sample data, the test data is generated according to the preset event model.

[0012] In one embodiment, the preset event model is established according to the alarm event monitoring type of the water affairs monitoring center, including:

[0013] Determining data characteristics of each alarm event according to the alarm event monitoring type;

[0014] According to the data features of each of the alarm events, the preset event model is established, and the preset event model includes generation rules for each of the alarm events.

[0015] In one embodiment, the alarm event monitoring types of the water affairs monitoring center include alarm event monitoring in the field of tap water, alarm event monitoring in the field of direct drinking water, and alarm event monitoring in the field of DMA.

[0016] In one embodiment, the use of the test data to test the water affairs monitoring center to obtain the first alarm result output by the water affairs monitoring center includes:

[0017] Convert the format of the test data into a target format to obtain converted test data, wherein the target format is the data format of the water affairs monitoring center;

[0018] The converted test data is used to test the water affairs monitoring center to obtain the first alarm result output by the water affairs monitoring center.

[0019] In one embodiment, the method further comprises:

[0020] Acquire historical alarm data, wherein the historical alarm data includes historical alarm sample data of test history data and / or historical alarm sample data of pipe network sample data;

[0021] The water affairs monitoring center is tested using the historical alarm data to obtain a second alarm result output by the water affairs monitoring center.

[0022] In one embodiment, the method further comprises:

[0023] According to the preset alarm verification rule, the first alarm result and / or the second alarm result is analyzed to obtain an alarm event verification result, and the alarm event verification result is sent to an external device.

[0024] In a second aspect, an embodiment of the present application provides a water affairs monitoring center testing device, including:

[0025] A simulation data generation module generates test data based on a pipe network simulation model and a preset event model, wherein the test data includes various types of alarm event data;

[0026] The test module is used to test the water affairs monitoring center using the test data to obtain the first alarm result output by the water affairs monitoring center.

[0027] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method as described in any one of the above-mentioned first aspects when executing the computer program.

[0028] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described in any one of the above-mentioned first aspects is implemented.

[0029] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes any one of the methods described in the first aspect.

[0030] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0031] The embodiment of the present application generates test data based on a pipe network simulation model and a preset event model, and the test data includes various types of alarm event data. The test data is used to test the water monitoring center to obtain the first alarm result output by the water monitoring center, thereby accessing a simulation device and generating test data based on the simulation device to test the water monitoring center. There is no need to access hardware equipment, no need to invest in hardware costs, and thus lower testing costs.

[0032] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0034] Figure 1 This is a first flow chart of a water affairs monitoring center testing method provided by an embodiment of the present application;

[0035] Figure 2 This is a second flow chart of the water affairs monitoring center testing method provided in one embodiment of the present application;

[0036] Figure 3 This is a third flow chart of a water affairs monitoring center testing method provided in an embodiment of the present application;

[0037] Figure 4It is a structural schematic diagram of a water affairs monitoring center testing device provided in one embodiment of the present application;

[0038] Figure 5 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0039] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0040] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0041] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0042] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0043] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0044] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0045] The scope of water supply pipe event monitoring in the water industry includes the entire water supply process from the water source to the user. It specifically monitors the equipment alarms and data alarms of water quality, water quantity, water pressure, etc., to help timely discover and deal with various water supply problems and ensure the safety and stability of water supply.

[0046] At present, the water supply network event monitoring in the water industry mainly adopts a combination of online monitoring and remote monitoring. This method is to install various sensors and monitoring equipment on the water supply network to monitor the operation status of the water supply network in real time and transmit the data to the monitoring center in real time. The monitoring center then analyzes and processes the data, obtains alarm events, and promptly discovers water supply problems.

[0047] Under this monitoring method, the test of the water supply network event monitoring center in the water industry is to connect the real equipment in the production environment to the monitoring center. The monitoring center monitors the data generated by each real device and performs alarm operations when equipment failure or other events are detected.

[0048] This testing method requires access to a large number of real pipeline network devices, which increases the investment cost of hardware equipment and leads to high testing costs.

[0049] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the first flow chart of the water affairs monitoring center testing method provided by an embodiment of the present application. Figure 1 As shown, the method comprises:

[0050] S11: Generate test data based on the pipeline network simulation model and the preset event model.

[0051] The test data includes various types of alarm event data.

[0052] In a possible implementation, step S11 includes:

[0053] S111: constructing a pipeline network simulation model according to pipeline network sample data, where the pipeline network sample data includes operation data of the pipeline network;

[0054] In the application, the network sample data of the water supply network is obtained, and the network sample data includes the data generated by each real device. The network sample data is analyzed, extracted, cleaned and replaced to obtain the model data. A static model of the water supply network is generated based on the model data to obtain a network simulation model. The network simulation model is equipped with various simulation devices and parameters, the organizational structure to which the equipment belongs, DMA (District Metering Area), buildings, inlet water meters, outlet water meters, and assessment water meter relationships. Among them, the static model of the water supply network can simulate the millions of network devices in the production environment, providing a basis for testing without investing in hardware costs in network equipment.

[0055] It should be noted that the generated pipe network simulation model is a model that can characterize the actual water supply pipe network conditions and reflect the operation of the water supply pipe network. There is no need to fully simulate the real water supply pipe network, that is, there is no need to simulate based on the real situation of the water supply pipe network. It does not rely on the data information and information accuracy of the production environment, and reduces the situation where there is no real pipe network information and the corresponding model cannot be simulated.

[0056] S112: Establish a preset event model according to the alarm event monitoring type of the water affairs monitoring center.

[0057] In the application, the alarm events monitored by the water monitoring center to be tested are first obtained, and then the alarm mechanisms of these alarm events are analyzed to generate a preset event model. The preset event model involves the generation mechanism of each alarm event, so that the data that triggers the alarm can be generated later.

[0058] Among them, the water monitoring center can be a monitoring system, a monitoring platform or monitoring software, etc.

[0059] In a possible implementation, step S112 includes:

[0060] S1121: Determine data features of each alarm event based on the alarm event monitoring type.

[0061] In the application, the alarm event monitoring type provided by the water affairs monitoring center is determined, and then the alarm event monitoring type is analyzed to obtain the data characteristics of the corresponding alarm event.

[0062] S1122: Establishing a preset event model according to the data features of each alarm event, wherein the preset event model includes generation rules of each alarm event.

[0063] In the application, corresponding rules are configured according to data characteristics, including: warning calculation rules, warning thresholds, warning algorithms, etc., to establish a preset event model.

[0064] Because the preset event model is established according to the data characteristics of each alarm event, the preset event model can be set according to the alarm event monitoring type supported by the water monitoring center, and the detection scenario can be flexibly expanded according to actual needs to meet various test scenarios.

[0065] For example, the alarm event monitoring types of the water monitoring center include alarm event monitoring in the field of tap water, alarm event monitoring in the field of direct drinking water, and alarm event monitoring in the field of DMA.

[0066] Specifically, the alarm event monitoring in the tap water field includes tap water-remote transmission meter: empty pipe alarm, battery voltage alarm, communication interruption alarm, signal strength alarm, zero water consumption, flow reverse, instantaneous water volume deviation, interval water consumption mutation, hourly water consumption mutation, daily water consumption mutation, pressure deviation, abnormal quantity value, abnormal pressure value, abnormal pressure data, flow exceeding limit, power supply abnormality, flow change, equipment abnormality, pressure exceeding limit, displacement alarm, pressure change, valve abnormality, disassembly alarm and other hardware alarms.

[0067] Tap water - remote transmission small meter: weekly water consumption alarm, abnormal flow value, battery voltage alarm, communication interruption alarm, signal strength alarm, flow change, equipment abnormality, disassembly alarm and other hardware alarms.

[0068] Tap water - pressure monitoring meter: abnormal constant pressure, pressure tolerance, abnormal pressure value, battery voltage alarm, signal strength alarm, pressure over limit, communication alarm.

[0069] Alarm event monitoring in the direct drinking water field includes direct drinking water-computer room events: water quality monitoring meter (battery voltage alarm, signal strength alarm, TDS exceeding the standard, conductivity abnormality, pH value abnormality, residual chlorine content exceeding the standard, ozone content exceeding the standard, turbidity exceeding the standard); pressure monitoring meter (constant pressure abnormality, pressure difference, pressure value abnormality, battery voltage alarm, signal strength alarm, pressure exceeding the limit, communication alarm); liquid level meter (battery voltage alarm, signal strength alarm, liquid level exceeding the limit); water making equipment (battery voltage alarm, signal strength alarm, hardware fault signal alarm); valve (hardware fault signal alarm).

[0070] Direct drinking water-large meter events: empty pipe alarm, battery voltage alarm, communication interruption alarm, signal strength alarm, zero water consumption, flow reverse, instantaneous water volume deviation, interval water consumption mutation, hourly water consumption mutation, daily water consumption mutation, pressure deviation, abnormal flow value, abnormal pressure value, pressure over limit, and multiple hardware alarms.

[0071] Direct drinking water-small meter events: weekly water consumption alarm, abnormal flow value, battery voltage alarm, communication interruption alarm, signal strength alarm, and various hardware alarms.

[0072] Alarm event monitoring in the DMA field DMA event alarm: incremental alarm, inventory alarm, total difference alarm, data alarm, various equipment hardware alarms, net cumulative loss, instantaneous flow loss.

[0073] Partition event alarm: total difference alarm, inventory alarm, increment alarm, data alarm, multiple equipment hardware alarms, net cumulative loss, instantaneous flow loss.

[0074] The water monitoring center supports 165 types of alarm events.

[0075] S113: Generate test data based on the simulation equipment and pipeline network sample data of the pipeline network simulation model and the preset event model.

[0076] In the application, the information and parameters of various equipment (remote transmission large meters, remote transmission small meters, pressure monitoring meters, equipment in the machine room, etc.) are obtained from the sample data of the pipeline network, and the simulation data of each simulation device within the set period is generated according to the generation rules of the preset event model to obtain the test data.

[0077] It should be noted that some alarm events are realized by detecting data differences within a time period, and the test data includes daily data and data that causes alarms.

[0078] S12: Using the test data, the water affairs monitoring center is tested to obtain a first alarm result output by the water affairs monitoring center.

[0079] In the application, the test data is input into the water affairs monitoring center, which processes the test data and triggers various alarm events in seconds. It can concurrently monitor alarm events in multiple scenarios.

[0080] In a possible implementation, the test data may be pushed to the water monitoring center at a preset frequency.

[0081] In one possible implementation, in order for the water monitoring center to better identify the test data and better test the water monitoring center, the format of the test data is processed according to the format requirements of the connected water monitoring center so that the test data is compatible with the water monitoring center.

[0082] Step S12 includes:

[0083] S121: Convert the format of the test data to a target format to obtain the converted test data, where the target format is the data format of the water affairs monitoring center.

[0084] In the application, according to the format requirements of the connected water monitoring center, based on the mapping relationship between the test data format and the format of the connected water monitoring center, the format of the test data is converted and adapted to obtain the converted test data.

[0085] S122: Using the converted test data, the water affairs monitoring center is tested to obtain a first alarm result output by the water affairs monitoring center.

[0086] In the application, the water monitoring center identifies the converted test data and performs alarm testing. This ensures that the water monitoring center can better identify the test data, improves the efficiency of docking with the water monitoring center, is compatible with various monitoring centers, and reduces the development and maintenance costs required for docking.

[0087] In addition, it is understandable that a large number of sensors and monitoring equipment need to be installed due to the wide distribution of water supply equipment and the large number of monitoring points in the water supply network. When the monitoring center is tested, this will increase the test verification cost and the difficulty of maintenance. However, by generating test data based on the preset event model based on the pipe network simulation model, and using the test data to test the water monitoring center, it is not necessary to connect a large number of sensors and monitoring equipment during the test process, reducing the test verification cost and the difficulty of maintenance. At the same time, there is no need to connect to the real equipment in the production environment, which will not cause additional performance pressure on the production environment.

[0088] When the monitoring center is connected to the hardware equipment for testing, there may be data security risks. Using test data to test the water monitoring center can reduce the risks that may occur when connecting to the hardware equipment for testing, so that the test can be carried out in a safe environment, and the monitoring center's ability to correctly determine the event warning rules and timely warn can be better tested.

[0089] Also, when the monitoring center is testing, it connects to real equipment in the production environment, but real equipment does not often have equipment failures and other events, which prolongs the test verification time and affects the coverage of event samples involving alarms. By generating test data based on the preset event model based on the pipeline simulation model, it is possible to generate data for each alarm event and simulate various alarm events without waiting for the actual occurrence of the alarm event, shortening the test verification time, improving test efficiency, optimizing operation, and reducing test costs. It can also generate alarm event data as needed, increase the number of event samples and event sample coverage, and reduce the situation where the types of test alarms are limited due to access to real equipment. At the same time, it improves the reliability and accuracy of the monitoring center.

[0090] This embodiment generates test data based on the pipeline simulation model and according to the preset event model. The test data includes various types of alarm event data. The test data is used to test the water monitoring center to obtain the first alarm result output by the water monitoring center, and access to the simulation device is achieved. Test data is generated based on the simulation device to test the water monitoring center. There is no need to access hardware equipment, no hardware cost is required, and the testing cost is reduced.

[0091] In one embodiment, in order to further shorten the test time, the test of the water affairs monitoring center is implemented by playing back the historical alarm data.

[0092] Please refer to Figure 2 , Figure 2 This is a second flow chart of the water affairs monitoring center testing method provided by an embodiment of the present application. Figure 2 As shown, the method further includes:

[0093] S21: Get historical alarm data.

[0094] The historical alarm data includes historical alarm sample data of test history data and / or pipe network sample data.

[0095] In the application, the required test data can be obtained from the historical test, and the test history data can be obtained. The sample data that caused the alarm can be obtained from the pipe network sample data, and the historical alarm samples can be obtained.

[0096] S22: Using the historical alarm data, the water affairs monitoring center is tested to obtain a second alarm result output by the water affairs monitoring center.

[0097] In the application, the historical alarm data is input into the water affairs monitoring center, which processes the historical alarm data and triggers various alarm events within seconds.

[0098] In one possible implementation, an event at a specific time may be simulated, that is, historical alarm data may be input into a water affairs monitoring center at a characteristic time to test whether the water affairs monitoring center triggers an alarm event in a timely manner.

[0099] This embodiment obtains historical alarm data and uses the historical alarm data to test the water monitoring center to obtain the second alarm result output by the water monitoring center. There is no need to generate a preset event model to wait for similar events to occur again, which saves waiting events, shortens time and improves efficiency.

[0100] Please refer to Figure 3 , Figure 3 FIG. 1 is a third flow chart of a water affairs monitoring center testing method provided in an embodiment of the present application. Figure 3 As shown, the method further includes:

[0101] S13: Analyze the first alarm result and / or the second alarm result according to the preset alarm verification rule, obtain the alarm event verification result, and send the alarm event verification result to the external device.

[0102] In the application, the first alarm result and / or the second alarm result is compared with the preset alarm verification rule to quickly obtain the alarm event verification result.

[0103] Specifically, based on the preset alarm verification rules, it is possible to check whether the alarm event is accurate, whether the critical value alarm is correct, whether there are any false alarms, and whether the red, yellow and blue level markings are correct.

[0104] And when the data is adapted to the format of the water monitoring center, it is possible to check more quickly whether the alarm event is accurate.

[0105] After obtaining the alarm event verification result, the alarm event verification result is sent to the external device so that relevant personnel can receive and process the alarm event verification result in time, shortening the test time and the test manpower investment cost.

[0106] In a possible implementation, the format of the alarm event verification result can be set to HTML format, which can be easily sent to an external device and displayed on the target software.

[0107] In a possible implementation, a timed automatic test verification may be set to shorten the waiting time.

[0108] This embodiment analyzes the first alarm result and / or the second alarm result according to preset alarm verification rules, obtains the alarm event verification result, and sends the alarm event verification result to an external device. It can quickly verify the alarm event and shorten the verification time. It can also verify multiple alarm events in parallel, and can quickly confirm the integrity of the event type generated and determine the event type that failed to successfully alarm.

[0109] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0110] Corresponding to the method described in the above embodiment, for the convenience of explanation, only the part related to the embodiment of the present application is shown.

[0111] Please refer to Figure 4 , Figure 4 Schematic diagram of the structure of a water affairs monitoring center test device provided in one embodiment of the present application. Figure 4 As shown, the device comprises:

[0112] The simulation data generation module 10 generates test data based on the pipeline network simulation model and according to the preset event model. The test data includes various types of alarm event data.

[0113] The test module 11 is used to test the water affairs monitoring center using the test data to obtain the first alarm result output by the water affairs monitoring center.

[0114] In one embodiment, the simulation data generation module is specifically used to construct a pipeline network simulation model based on pipeline network sample data, the pipeline network sample data including the operation data of the pipeline network; establish a preset event model according to the alarm event monitoring type of the water conservancy monitoring center; based on the simulation equipment of the pipeline network simulation model and the pipeline network sample data, generate test data according to the preset event model.

[0115] In one embodiment, the simulation data generation module is specifically used to determine the data characteristics of each alarm event according to the alarm event monitoring type; and to establish a preset event model according to the data characteristics of each alarm event, wherein the preset event model includes generation rules for each alarm event.

[0116] In one embodiment, the test module is specifically used to convert the format of the test data to the target format to obtain the converted test data, and the target format is the data format of the water monitoring center; the water monitoring center is tested using the converted test data to obtain the first alarm result output by the water monitoring center.

[0117] In one embodiment, the test module is also used to obtain historical alarm data, which includes historical alarm sample data of test history data and / or pipe network sample data; the water monitoring center is tested using the historical alarm data to obtain a second alarm result output by the water monitoring center.

[0118] In one embodiment, the test module is further used to analyze the first alarm result and / or the second alarm result according to a preset alarm verification rule, obtain an alarm event verification result, and send the alarm event verification result to an external device.

[0119] Figure 5 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 5 As shown, the electronic device 2 of this embodiment includes: at least one processor 20 ( Figure 5 Only one is shown in the figure), a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, wherein the processor 20 implements the steps of any of the above-mentioned method embodiments when executing the computer program 22.

[0120] The electronic device 2 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device 2 may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 2 and does not constitute a limitation on the electronic device 2. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0121] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0122] In some embodiments, the memory 21 may be an internal storage unit of the electronic device 2, such as a hard disk or memory of the electronic device 2. In other embodiments, the memory 21 may also be an external storage device of the electronic device 2, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 2. Further, the memory 21 may also include both an internal storage unit and an external storage device of the electronic device 2. The memory 21 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 21 may also be used to temporarily store data that has been output or is to be output.

[0123] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0124] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0125] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0126] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some cases, the computer-readable medium cannot be an electric carrier signal and a telecommunication signal.

[0128] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0129] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0130] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A water affairs monitoring center testing method, characterized in that: include: Based on the pipe network simulation model and according to the preset event model, test data is generated, wherein the test data includes various types of alarm event data; Using the test data, testing the water affairs monitoring center to obtain a first alarm result output by the water affairs monitoring center; Wherein, the generating of test data based on the pipeline network simulation model and the preset event model includes: Analyze, extract, clean and replace the pipe network sample data to obtain model data; Generate a static model of the water supply network according to the model data to obtain the network simulation model, wherein the network sample data includes data generated by each real device, and the generated network simulation model does not need to fully simulate the real water supply network; Determining data characteristics of each alarm event according to the alarm event monitoring type; According to the data features of each of the alarm events, the preset event model is established, wherein the preset event model includes generation rules of each of the alarm events; Based on the simulation equipment of the pipeline network simulation model and the pipeline network sample data, the test data is generated according to the preset event model.

2. The method according to claim 1, characterized in that: The alarm event monitoring types of the water affairs monitoring center include alarm event monitoring in the field of tap water, alarm event monitoring in the field of direct drinking water and alarm event monitoring in the field of DMA.

3. The method according to claim 1, characterized in that The step of testing the water affairs monitoring center by using the test data to obtain a first alarm result output by the water affairs monitoring center includes: Convert the format of the test data into a target format to obtain converted test data, wherein the target format is the data format of the water affairs monitoring center; The converted test data is used to test the water affairs monitoring center to obtain the first alarm result output by the water affairs monitoring center.

4. The method according to any one of claims 1 to 3, characterized in that: Also includes: Acquire historical alarm data, wherein the historical alarm data includes historical alarm sample data of test history data and / or historical alarm sample data of pipe network sample data; The water affairs monitoring center is tested using the historical alarm data to obtain a second alarm result output by the water affairs monitoring center.

5. The method according to claim 4, characterized in that Also includes: According to the preset alarm verification rule, the first alarm result and / or the second alarm result is analyzed to obtain an alarm event verification result, and the alarm event verification result is sent to an external device.

6. A water affairs monitoring center testing device, characterized in that: include: A simulation data generation module, used to generate test data based on a pipe network simulation model and a preset event model, wherein the test data includes various types of alarm event data; A testing module, used to test the water affairs monitoring center using the test data to obtain a first alarm result output by the water affairs monitoring center; Among them, the simulation data generation module is specifically used to analyze, extract, clean and replace the pipe network sample data to obtain model data; generate a static model of the water supply pipe network according to the model data to obtain the pipe network simulation model, the pipe network sample data includes data generated by each real device, and the generated pipe network simulation model does not need to fully simulate the real water supply pipe network; determine the data characteristics of each alarm event according to the alarm event monitoring type; According to the data features of each of the alarm events, the preset event model is established, and the preset event model includes generation rules for each of the alarm events; based on the simulation equipment of the pipeline simulation model and the pipeline sample data, the test data is generated according to the preset event model.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.