Self-checking positioning method and device for abnormal power consumption of water meter, medium and product

By obtaining the deployment information of the water meter module, creating initialization functions and self-test programs, the problem of low detection efficiency of water meter power consumption is solved, fast and accurate positioning and detection is achieved, and system stability and detection efficiency are improved.

CN118936604APending Publication Date: 2024-11-12BEIJING JOYO SMART WATER METER
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411128560.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The prior art is difficult to detect and locate water meter power consumption abnormalities quickly and accurately, resulting in inefficient detection, increasing operating costs and affecting data accuracy.

Method used

By obtaining the deployment information of the water meter module, creating an initialization function, setting the function module number, designing a self-test program, enabling the module exception self-test program to quickly and accurately locate the power consumption abnormal module.

Benefits of technology

It saves professional inspection time, improves the efficiency of water meter power consumption abnormality detection, enhances system stability and reliability, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118936604A_ABST
    Figure CN118936604A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of abnormity positioning, in particular to a self-checking positioning method and device for water meter power consumption abnormity, a medium and a product. The method comprises the steps that initialization functions are created based on water meter module deployment information, and the initialization function corresponding to each function module is determined, and performing serial number setting based on the initialization function corresponding to each function module, and determining a function serial number corresponding to each initialization function. Then, based on the initialization function corresponding to each function module and the corresponding function number, self-checking program design is carried out, and a module exception self-checking program is obtained. And then, controlling the water meter to start a module exception self-checking program to carry out self-checking exception positioning, and determining a power consumption exception module. The module abnormity self-checking program can quickly and accurately position the abnormal power consumption module when the power consumption of the water meter is abnormal, so that the step-by-step troubleshooting time of professionals is saved, and the power consumption abnormity detection efficiency of the water meter is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of abnormality positioning, and in particular to a self-checking positioning method, device, medium and product for abnormal power consumption of a water meter. Background Art

[0002] With the continuous development of electronic equipment technology, its application in water supply management and water resources monitoring is becoming more and more extensive. However, in actual applications, the problem of abnormal power consumption of water meters occurs from time to time, which not only increases the operating costs of water supply companies, but also may affect the normal operation and data accuracy of water meters, causing inconvenience and losses to users.

[0003] There are many reasons for abnormal power consumption of water meters, including but not limited to unreasonable circuit design, aging of components, interference from environmental factors, and improper use. Traditional detection methods often rely on manual inspections and regular maintenance, and it is difficult to accurately determine the specific location of abnormal power consumption, resulting in low efficiency in detecting abnormal power consumption of water meters.

[0004] Therefore, how to solve the above technical problems is an urgent problem to be solved by technical personnel in this field. Summary of the invention

[0005] The purpose of this application is to provide a self-detection and positioning method, device, medium and product for abnormal power consumption of a water meter, so as to solve at least one of the above technical problems.

[0006] The above invention objectives of the present application are achieved through the following technical solutions: In a first aspect, the present application provides a self-checking and positioning method for abnormal power consumption of a water meter, which adopts the following technical solution: A self-checking and positioning method for abnormal power consumption of a water meter, comprising: Obtain water meter module deployment information, create an initialization function based on the water meter module deployment information, and determine the initialization function corresponding to each functional module; Perform numbering on the initialization function corresponding to each functional module, and determine the function number corresponding to each initialization function; Based on the initialization function corresponding to each functional module and the corresponding function number, a self-checking program is designed to obtain a module abnormality self-checking program; The module abnormality self-checking program is deployed to the water meter, and the water meter is controlled to enable the module abnormality self-checking program to perform self-checking abnormality positioning to determine the power consumption abnormality module.

[0007] By adopting the above technical solution, an initialization function is created based on the water meter module deployment information, the initialization function corresponding to each functional module is determined, and the numbering is set based on the initialization function corresponding to each functional module, and the function number corresponding to each initialization function is determined. Then, a self-checking program is designed based on the initialization function corresponding to each functional module and the corresponding function number to obtain a module abnormality self-checking program. Then, the module abnormality self-checking program is enabled to perform self-checking abnormality positioning on the water meter to determine the power consumption abnormality module. When the water meter has power consumption abnormality, the module abnormality self-checking program can quickly and accurately locate the abnormal power consumption module with abnormality, saving the time for professionals to gradually check and improving the efficiency of water meter power consumption abnormality detection.

[0008] In a preferred example, the present application may be further configured as follows: the numbering is performed based on the initialization function corresponding to each functional module, and the function number corresponding to each initialization function is determined, including: Perform dependency analysis based on the initialization function corresponding to each of the functional modules to determine function dependencies; Perform abnormal risk assessment based on each of the functional modules and determine the risk assessment result; Based on the function dependency and the risk assessment result, each of the initialization functions is numbered and a function number corresponding to each of the initialization functions is determined.

[0009] In a preferred example, the present application can be further configured as follows: the self-checking program is designed based on the initialization function corresponding to each functional module and the corresponding function number to obtain the module abnormality self-checking program, including: A traversal mechanism is set based on the initialization function corresponding to each functional module and the function number corresponding to each initialization function, and resource switching is matched for the traversal mechanism to obtain a module abnormality self-checking program.

[0010] In a preferred example, the present application can be further configured as follows: the control water meter enables the module abnormality self-checking program to perform self-check abnormality positioning and determine the power consumption abnormality module, including: Obtaining a target initialization function of a target function number in a module abnormality self-checking program, performing a self-check on the water meter based on the target initialization function, and determining a target current value, wherein the target function number is a function number with the smallest value in the module abnormality self-checking program; Loop execution: the objective function number is incremented, and the water meter is self-checked based on the initialization function corresponding to the incremented objective function number to determine the target current value; until the incremented objective function number is not in the module abnormality self-check program; Current anomaly analysis is performed based on each target current value to determine the power consumption abnormality module.

[0011] In a preferred example, the present application may be further configured as follows: the control water meter enables the module abnormality self-checking program to perform self-checking abnormality positioning, and before determining the power consumption abnormality module, it also includes: Acquire target power consumption data and a power consumption prediction model, perform power consumption prediction based on the power consumption prediction model and the target power consumption data, and determine power consumption prediction data within a target period; Acquire standard power consumption data, perform power consumption diagnosis based on the power consumption prediction data and the standard power consumption data, and obtain a power consumption diagnosis result; When the power consumption diagnosis result is abnormal, the module abnormality self-checking program is enabled to perform self-check abnormality positioning on the water meter to determine the power consumption abnormality module; otherwise, the water meter is controlled to maintain normal operation.

[0012] In a preferred example, the present application may be further configured as follows: the control water meter enables the module abnormality self-checking program to perform self-check abnormality positioning, and after determining the power consumption abnormality module, it also includes: Performing an abnormality analysis based on the power consumption abnormality module, determining the abnormality cause, and storing the abnormality cause in a water meter abnormality cause database; Generate abnormal maintenance information and send the abnormal maintenance information to the maintenance personnel terminal so that the maintenance personnel can locate the abnormal function module and reduce the troubleshooting time; Based on all abnormal causes in the water meter abnormal cause database, preventive analysis is performed to determine water meter optimization information so as to improve water meter performance.

[0013] In a second aspect, the present application provides an electronic device, which adopts the following technical solution: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the above-mentioned self-detection and positioning method for abnormal power consumption of a water meter.

[0014] In a third aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium stores a computer program, which, when executed in a computer, causes the computer to execute the above-mentioned self-checking and positioning method for abnormal power consumption of a water meter.

[0015] In a fourth aspect, the present application provides a computer program product, which adopts the following technical solution: A computer program product includes a computer program, and when the computer program is executed by a processor, the self-checking and positioning method for abnormal power consumption of a water meter is implemented.

[0016] In summary, the present application includes at least one of the following beneficial technical effects: An initialization function is created based on the water meter module deployment information, the initialization function corresponding to each functional module is determined, and the numbering is set based on the initialization function corresponding to each functional module, and the function number corresponding to each initialization function is determined. Then, a self-checking program is designed based on the initialization function corresponding to each functional module and the corresponding function number to obtain a module abnormality self-checking program. Furthermore, the module abnormality self-checking program is enabled to perform self-checking abnormality positioning on the water meter to determine the power consumption abnormality module. When the water meter has power consumption abnormality, the module abnormality self-checking program can quickly and accurately locate the abnormal power consumption module with abnormality, saving the time for professionals to conduct step-by-step investigation and improving the efficiency of water meter power consumption abnormality detection.

[0017] Based on the initialization function corresponding to each functional module, a dependency analysis is performed to determine the function dependency. Then, based on each functional module, an abnormal risk assessment is performed to determine the risk assessment result. Finally, based on the function dependency and risk assessment result, each initialization function is numbered and the function number corresponding to each initialization function is determined. Performing dependency analysis avoids startup failures or runtime errors caused by improper dependency handling, and improves the overall stability and reliability of the water meter. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flow chart of a method for self-checking and locating abnormal power consumption of a water meter according to one embodiment of the present application; Figure 2 It is a structural schematic diagram of a self-checking and positioning device for abnormal power consumption of a water meter according to one embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device according to one embodiment of the present application. DETAILED DESCRIPTION

[0019] The following combination Figures 1 to 3 This application is described in further detail.

[0020] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, a person skilled in the art may make non-creative modifications to the present embodiment as needed, but such modifications are protected by the patent law as long as they are within the scope of the present application.

[0021] In order to make the purpose, technical scheme and advantages of the embodiment of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application. It should be noted that in the optional embodiments of the present application, the object information and other related data involved, when the embodiments in the present application are applied to specific products or technologies, need to obtain the permission or consent of the object, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if the data related to the object is involved in the embodiment of the present application, it needs to be obtained through the authorization and consent of the object, the authorization and consent of the relevant departments, and in accordance with the relevant laws, regulations and standards of the country and region. If personal information is involved in the embodiment, the acquisition of all personal information needs to obtain the consent of the individual. If sensitive information is involved, the separate consent of the information subject needs to be obtained, and the embodiment also needs to be implemented with the authorization and consent of the object.

[0022] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0023] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0024] The embodiment of the present application provides a self-checking and positioning method for abnormal power consumption of a water meter, which is executed by an electronic device, such as Figure 1 As shown, the method includes step S101, step S102 and step S103, wherein: Step S101: Acquire water meter module deployment information, create an initialization function based on the water meter module deployment information, and determine the initialization function corresponding to each functional module.

[0025] For the embodiment of the present application, the water meter module deployment information is obtained. The water meter module deployment information is used to characterize the key elements of the water meter in actual application, such as hardware configuration, network settings, sensor parameters, data processing logic, and installation environment, so that accurate initialization configuration and function startup can be performed according to the water meter module deployment information. Then, an initialization function is created based on the water meter module deployment information, and a corresponding initialization function is created for each functional module. The initialization function is used to recharge the water meter to a known stable state. Each initialization function is used to detect whether there is an abnormality in the functional module in the water meter, which is convenient for subsequent abnormal location of the water meter. The initialization function includes, but is not limited to: power management initialization function, microcontroller initialization function, communication interface initialization function, sensor interface initialization function, storage initialization function, display initialization function, key input initialization function, analog / digital converter initialization function.

[0026] For the creation of initialization functions, the function naming, parameter list setting, self parameter setting, object attribute initialization, logic processing and other information are specified. The above information together constitutes the blueprint of the initialization function. Function naming is usually related to the name of the functional module, making the code of the initialization function more readable and maintainable. For example, the function name of the initialization function corresponding to the storage initialization function is: EEPROM_int(); the function name of the initialization function corresponding to the analog / digital converter initialization function is: ADC_int(). The initialization function also has a parameter list. The parameter list is a set of key parameters used by the initialization function to configure or specify the initialization behavior. Different initialization functions may have different parameter lists to meet different initialization requirements. For example, the parameter list of the initialization function corresponding to the power management initialization function includes but is not limited to: enableAutoShutdown (whether to enable the automatic shutdown function), a Boolean value used to control whether to enable the automatic shutdown function of the power management module; shutdownThreshold (automatic shutdown threshold), when the battery power is lower than this threshold, the system will automatically shut down to protect the battery and the device; wakeupDelay (wakeup delay time), the delay time required to wait after the device wakes up from the sleep state to avoid increased power consumption caused by frequent wake-ups; defaultMode (default power mode), the default power mode adopted after the system is started or reset. The self parameter setting is used to control the reference of the current object, allowing access to the object's properties and other methods within the function. Object property initialization is usually an assignment operation to the object's properties. In addition to simple property assignment, the initialization function can also contain more complex logic processing, such as conditional judgment, looping, or calling other methods. These logic processing can set the initial state of the object or perform necessary initialization steps as needed.

[0027] Step S102: performing numbering based on the initialization function corresponding to each functional module, and determining the function number corresponding to each initialization function.

[0028] For the embodiments of the present application, numbering is performed based on the initialization function corresponding to each functional module. The numbering is used to ensure that the initialization function corresponding to each functional module can be executed in a predetermined order during the water meter self-test process, thereby optimizing the self-test process and improving system stability and reliability. There are many ways to implement the numbering. In one achievable method, dependency analysis is performed based on the initialization function corresponding to each functional module to determine the function dependency; abnormal risk assessment is performed based on each functional module to determine the risk assessment result; execution time assessment is performed based on the initialization function corresponding to each functional module to determine the time assessment result; based on the function dependency, risk assessment result and time assessment result, each initialization function is numbered to determine the function number corresponding to each initialization function. In another achievable method, the initialization function is randomly matched with a number so that the initialization function and the function number are uniquely corresponding, so that each initialization function can be called and executed normally when the self-test abnormality is located later.

[0029] Step S103: Design a self-check program based on the initialization function corresponding to each functional module and the corresponding function number to obtain a module abnormality self-check program; deploy the module abnormality self-check program to the water meter, and control the water meter to enable the module abnormality self-check program to perform self-check abnormality positioning and determine the power consumption abnormality module.

[0030] For the embodiment of the present application, for the design of the self-check program, a traversal mechanism is set based on the initialization function corresponding to each functional module and the function number corresponding to each initialization function, and resource switching is matched for the traversal mechanism to obtain a module abnormality self-check program. The traversal mechanism is set to control the abnormal self-check program to start the initialization function one by one according to the function number to perform the initialization operation of the corresponding functional module on the water meter, and the resource switching is used to close the initialization function corresponding to the previous function number and start the initialization function corresponding to the current function number when executing the initialization function.

[0031] Then, the module abnormality self-checking program is enabled to perform self-checking abnormality positioning on the water meter and determine the power consumption abnormality module. The implementation process of self-checking abnormality positioning is as follows: obtain the target initialization function of the target function number in the module abnormality self-checking program, perform self-checking on the water meter based on the target initialization function, and determine the target current value, wherein the target function number is the function number with the smallest value in the module abnormality self-checking program; loop execution: increment the target function number, and perform self-checking on the water meter based on the current initialization function corresponding to the incremented target function number to determine the target current value; until the incremented target function number is not in the module abnormality self-checking program; perform current abnormality analysis based on each target current value to determine the power consumption abnormality module. The module abnormality self-checking program can automatically check the initialization status of each functional module during the startup or operation of the water meter, so that when the water meter has power consumption abnormality, it can quickly and accurately locate the abnormal power consumption abnormality module, saving the time for professionals to gradually check and improve the efficiency of water meter power consumption abnormality detection.

[0032] It can be seen that in the embodiment of the present application, an initialization function is created based on the water meter module deployment information, the initialization function corresponding to each functional module is determined, and the numbering is set based on the initialization function corresponding to each functional module, and the function number corresponding to each initialization function is determined. Then, a self-check program is designed based on the initialization function corresponding to each functional module and the corresponding function number to obtain a module abnormality self-check program. Furthermore, the module abnormality self-check program is enabled to perform self-check abnormality positioning on the water meter to determine the power consumption abnormality module. The module abnormality self-check program can quickly and accurately locate the abnormal power consumption module when the water meter has power consumption abnormality, saving the time for professionals to gradually check and improving the efficiency of water meter power consumption abnormality detection.

[0033] Furthermore, in order to improve the overall stability and reliability of the water meter, in the embodiment of the present application, the initialization function corresponding to each functional module is numbered and set, and the function number corresponding to each initialization function is determined, including: Perform dependency analysis based on the initialization function corresponding to each functional module to determine the function dependency; Conduct abnormal risk assessment based on each functional module and determine the risk assessment results; Based on function dependencies and risk assessment results, each initialization function is numbered and the function number corresponding to each initialization function is determined.

[0034] For the embodiment of the present application, the initialization process of the water meter often includes multiple interdependent functional modules. If the execution order of the initialization function is wrong, the module that depends on the functional module will fail when trying to access resources. Therefore, the dependency analysis is performed based on the initialization function corresponding to each functional module to determine the function dependency, thereby avoiding startup failure or runtime errors caused by improper processing of the dependency, and improving the overall stability and reliability of the water meter. That is, the dependency between the initialization functions is analyzed, including but not limited to: direct dependency and indirect dependency, and the dependency graph can be used to visualize the dependency. At the same time, an abnormal risk assessment is performed based on each functional module to determine the risk assessment result, that is, for each functional module, the abnormal type and source that may be found are analyzed, the abnormal risk point unique to each functional module is identified, and the degree of influence of each abnormal risk point on the normal operation of the water meter is evaluated. The impact assessment includes but is not limited to: evaluating the possibility of abnormal occurrence, the impact of abnormality on system stability, the impact of abnormality on user experience, and the impact of abnormality on data security. Through comprehensive evaluation, the risk level corresponding to each functional module is determined. In order to make the impact assessment result accurate, a set of risk assessment standards is pre-stored in the electronic device, which specifies in detail the specific assessment indicators of multiple dimensions such as the probability of abnormal occurrence, the severity of abnormal impact, and the difficulty of abnormal handling. The specific indicator values ​​in the risk assessment standard are no longer limited in the embodiment of the application. The risk assessment results include but are not limited to: the correspondence between each functional module and the risk level.

[0035] Then, based on the function dependency and the risk assessment results, each initialization function is numbered and set, and the function number corresponding to each initialization function is determined. That is, the initialization functions in the function dependency are sorted using a topological sorting algorithm to obtain a linear function list, in which each initialization function is after its dependency, and the sorting operation is used to ensure that all initialization functions can be correctly sorted according to the function dependency. Then, based on the function dependency, the function list is fine-tuned according to the risk assessment results. Initialization functions with high risk levels should be executed first so that they can be discovered and processed as soon as possible when an exception occurs. The execution of the fine-tuning operation also needs to be balanced with the dependency to ensure that the original dependency will not be destroyed due to the adjustment order. Finally, each initialization function is numbered based on the fine-tuned function list, and the function number corresponding to each initialization function is determined, wherein the function number is small for the initialization function that needs to be executed first. Preferably, the order of the fine-tuned function list is: power management initialization function, microcontroller initialization function, storage initialization function, analog / digital converter initialization function, communication interface initialization function, sensor interface initialization function, display initialization function, key input initialization function.

[0036] It can be seen that in the embodiment of the present application, dependency analysis is performed based on the initialization function corresponding to each functional module to determine the function dependency, and then, abnormal risk assessment is performed based on each functional module to determine the risk assessment result. Finally, based on the function dependency and risk assessment result, each initialization function is numbered and the function number corresponding to each initialization function is determined. Performing dependency analysis avoids startup failures or runtime errors caused by improper dependency processing, and improves the overall stability and reliability of the water meter.

[0037] Furthermore, in order to make the power consumption abnormality location operation of the water meter simpler and more efficient, in the embodiment of the present application, a self-checking program is designed based on the initialization function corresponding to each functional module and the corresponding function number to obtain a module abnormality self-checking program, including: A traversal mechanism is set based on the initialization function corresponding to each functional module and the function number corresponding to each initialization function, and resource switching is matched for the traversal mechanism to obtain a module abnormality self-checking program.

[0038] For the embodiment of the present application, the module abnormality self-checking program needs to enable the initialization functions with corresponding numbers one by one according to the function numbers, and detect whether the functional module has abnormal power consumption based on the current value output by the serial port when the initialization function is started. In order to realize the operation of enabling the initialization functions one by one, a traversal mechanism is set based on the initialization function corresponding to each functional module and the function number corresponding to each initialization function. The traversal mechanism is set to control the abnormality self-checking program to start the initialization function one by one according to the function number to perform the initialization operation of the corresponding functional module on the water meter. The resource switching is used to close the initialization function corresponding to the previous function number and start the initialization function corresponding to the current function number when executing the initialization function. The module abnormality self-checking program makes the power consumption abnormality positioning operation of the water meter simpler and more efficient, and no longer requires professionals to manually check the working status of each functional module.

[0039] It can be seen that in the embodiment of the present application, a traversal mechanism is set based on the initialization function corresponding to each functional module and the function number corresponding to each initialization function, and resource switching is matched for the traversal mechanism to obtain a module abnormality self-checking program. The module abnormality self-checking program makes the power consumption abnormality positioning operation of the water meter simpler and more efficient, and no longer requires professionals to manually check the working status of each functional module.

[0040] Furthermore, in order to quickly and accurately locate the abnormal power consumption module with abnormality and improve the efficiency of water meter power consumption abnormality detection, in the embodiment of the present application, the water meter is controlled to enable the module abnormality self-check program to perform self-check abnormality positioning and determine the power consumption abnormality module, including: Obtain a target initialization function of the target function number in the module abnormality self-checking program, perform self-check on the water meter based on the target initialization function, and determine the target current value, wherein the target function number is the function number with the smallest value in the module abnormality self-checking program; Loop execution: the target function number is incremented, and the water meter is self-checked based on the initialization function corresponding to the incremented target function number to determine the target current value; until the incremented target function number is not in the module abnormality self-check program; Current anomaly analysis is performed based on each target current value to determine the power consumption abnormality module.

[0041] For the embodiment of the present application, the function number specifies the calling order of the initialization function. Calling the initialization function in the order of the function number can optimize the self-check process and improve the stability and reliability of the system. Therefore, the target initialization function of the target function number in the module abnormal self-check program is obtained, wherein the target function number is the function number with the smallest value in the module abnormal self-check program, usually the target function number is 1, and the target initialization function is the power management initialization function. Then, the water meter is self-checked based on the target initialization function to determine the target current value, wherein the target current value is the target current value output by the serial port when the water meter executes the target initialization function. Then, the loop is executed: the target function number is incremented, and the water meter is self-checked based on the current initialization function corresponding to the incremented target function number to determine the target current value; until the incremented target function number is not in the module abnormal self-check program. The target function number is incremented, and the corresponding initialization function is called to self-check the water meter, so as to realize the initialization operation of starting the initialization function one by one according to the function number to execute the corresponding functional module on the water meter. During the working process of the water meter, the current and power consumption are usually closely related in the circuit. The abnormal current can often reflect the abnormal power consumption of the water meter. That is, if the current of a certain functional module is too large or too small, it can be determined that the power consumption of the functional module is abnormal. Therefore, based on the current abnormality analysis based on each target current value, the power consumption abnormality module is determined, wherein the power consumption abnormality module is the functional module with an abnormal target current value. The water meter self-check operation is performed using the module abnormality self-check program, which can quickly and accurately locate the abnormal power consumption abnormality module with abnormality, thereby improving the efficiency of water meter power consumption abnormality detection. For the current abnormality analysis, the electronic device pre-stores the normal current value range that the serial port should output when the water meter executes each initialization function. If the current value output by the serial port is not within the normal current value range, the functional module is determined to be a power consumption abnormality module; otherwise, it indicates that the functional module is working normally.

[0042] It can be seen that in the embodiment of the present application, the water meter is self-checked based on the target initialization function to determine the target current value, and then the cycle is executed: the target function number is incremented, and the water meter is self-checked based on the initialization function corresponding to the incremented target function number to determine the target current value; until the incremented target function number is not in the module abnormality self-check program. Finally, the current abnormality analysis is performed based on each target current value to determine the power consumption abnormality module. Using the module abnormality self-check program to perform the water meter self-check operation can quickly and accurately locate the abnormal power consumption module with abnormalities, thereby improving the efficiency of water meter power consumption abnormality detection.

[0043] Further, in order to improve the diagnostic efficiency of power consumption abnormality positioning, optimize resource utilization and reduce the maintenance cost of abnormal positioning, in the embodiment of the present application, the water meter is controlled to enable the module abnormality self-checking program to perform self-check abnormality positioning, and before determining the power consumption abnormality module, it also includes: Obtain target power consumption data and a power consumption prediction model, perform power consumption prediction based on the power consumption prediction model and the target power consumption data, and determine power consumption prediction data within a target period; Acquire standard power consumption data, perform power consumption diagnosis based on the power consumption prediction data and the standard power consumption data, and obtain a power consumption diagnosis result; When the power consumption diagnosis result is abnormal, the module abnormality self-check program is enabled to perform self-check abnormality positioning on the water meter to determine the power consumption abnormality module; otherwise, the water meter is controlled to maintain normal operation.

[0044] For the embodiments of the present application, real-time or periodic self-checking for abnormality location will consume more resources. Therefore, using power consumption diagnosis as a prerequisite for self-checking for abnormality location can improve the diagnostic efficiency of power consumption abnormality location, optimize resource utilization and reduce the maintenance cost of abnormality location.

[0045] Therefore, the target power consumption data is obtained, and the target power consumption data includes but is not limited to: timestamp, actual power consumption value, water meter equipment status and environmental conditions, and the target power consumption data is preprocessed to extract features useful for power consumption prediction from the target power consumption data, such as timestamp, actual power consumption value and environmental parameters. Then, power consumption prediction is performed based on the power consumption prediction model and the target power consumption data. The power consumption prediction model outputs the power consumption prediction data within the target time period, wherein the power consumption prediction data is the power consumption of the water meter within the interval range with the current time as the starting point and the target time period as the length; the power consumption prediction model is a prediction model successfully trained by iteratively training the model using a large amount of historical power consumption data. Then, the standard power consumption data is obtained. The standard power consumption data is defined according to the specifications of the water meter and the industry standards, and represents the standard power consumption range of the water meter in the normal power consumption state. The standard power consumption data is pre-stored in the electronic device, and the user can also set it according to the actual situation. Furthermore, power consumption diagnosis is performed based on the power consumption prediction data and the standard power consumption data, that is, the difference between the power consumption prediction data and the standard power consumption data is calculated. If the difference is greater than the abnormal diagnosis threshold, the power consumption diagnosis result is determined to be abnormal; otherwise, the power consumption diagnosis result is determined to be normal, wherein the abnormal diagnosis threshold is set by professionals based on industry standards, technical restrictions, safety requirements and other factors, and is pre-stored in the electronic device. When the power consumption diagnosis result is abnormal, the module abnormality self-check program is enabled to self-check the abnormal location of the water meter and determine the power consumption abnormality module; otherwise, the water meter is controlled to maintain normal operation.

[0046] It can be seen that in the embodiment of the present application, power consumption prediction is performed based on the power consumption prediction model and the target power consumption data, the power consumption prediction data within the target time period is determined, and then power consumption diagnosis is performed based on the power consumption prediction data and the standard power consumption data to obtain the power consumption diagnosis result. When the power consumption diagnosis result is abnormal, the module abnormality self-check program is enabled to perform self-check abnormality positioning on the water meter to determine the power consumption abnormality module; otherwise, the water meter is controlled to maintain normal operation. Using power consumption diagnosis as a prerequisite for self-check abnormality positioning can improve the diagnostic efficiency of power consumption abnormality positioning, optimize resource utilization, and reduce the maintenance cost of abnormal positioning.

[0047] Further, in order to improve the maintenance response speed and efficiency and reduce the frequency of water meter failures, in the embodiment of the present application, the water meter is controlled to enable the module abnormal self-checking program to perform self-checking abnormal positioning, and after determining the power consumption abnormal module, it also includes: Perform abnormal analysis based on the power consumption abnormality module, determine the abnormal cause, and store the abnormal cause in the water meter abnormal cause database; Generate abnormal maintenance information and send it to the maintenance personnel terminal so that the maintenance personnel can locate the abnormal function module and reduce the troubleshooting time; Based on all abnormal causes in the water meter abnormality cause database, preventive analysis is performed to determine water meter optimization information in order to improve water meter performance.

[0048] For the embodiment of the present application, the power consumption abnormality module only determines the functional module with power consumption abnormality in the water meter, but does not give the abnormal reason causing the abnormality. In order to facilitate maintenance personnel to better understand the abnormal situation of the water meter and improve the maintenance response speed and efficiency. Therefore, an abnormal analysis is performed based on the power consumption abnormality module to determine the abnormal reason, and the abnormal reason is stored in the water meter abnormal reason database. The specific execution process of the abnormal analysis is: obtaining the power consumption data, environmental data and operation log corresponding to the power consumption abnormality before and after the water meter, comparing the power consumption data of the power consumption abnormality functional module in the normal working state and the abnormal state, identifying the specific abnormal performance of the water meter, such as sudden increase in power consumption, power consumption fluctuation, etc., and combining the environmental data and operation log, analyzing the correlation between the abnormal phenomenon and the environmental factors and the operation behavior. Then, based on the power consumption abnormality phenomenon, and the correlation between the environmental factors and the operation behavior, an abnormal analysis is performed to estimate the abnormal reason causing the abnormal power consumption of the water meter. The abnormal reason can be one, two or more, and the abnormal reason includes but is not limited to: hardware failure (for example, sensor damage, circuit board aging), software defects (for example, program errors, algorithm problems), design defects (for example, unreasonable circuit design, improper material selection), etc. Furthermore, based on the location of the abnormal power consumption module, the abnormal power consumption phenomenon and the abnormal cause, abnormal maintenance information is generated, and the abnormal maintenance information is in a format suitable for maintenance personnel to read and understand, including but not limited to: text description, charts, photos and other forms. After that, the abnormal maintenance information is sent to the maintenance personnel terminal so that the maintenance personnel can locate the abnormal function module and improve the maintenance response speed and efficiency.

[0049] The water meter abnormality cause database stores a large number of abnormal causes of water meter power consumption abnormalities. Classification and statistics are performed based on all abnormal causes in the water meter abnormality cause database, where the dimensions of classification and statistics include but are not limited to: statistics according to the dimensions of abnormal type, frequency of occurrence, degree of impact, etc. Then, use data analysis tools (such as data mining, machine learning algorithms, etc.) to conduct in-depth analysis of the classified and statistical data, identify common abnormal patterns and potential risk factors, and analyze the correlation between abnormal causes to determine whether there are systemic problems or design defects. Then, the root causes of the identified abnormal patterns and risk factors are traced to determine the root factors, including but not limited to: product design to be optimized, manufacturing process to be optimized, use environment to be adapted, etc., and based on the root factors, the corresponding water meter optimization information is determined, such as product design improvement, manufacturing process optimization, maintenance process improvement, etc. Performing preventive analysis and determining water meter optimization information can improve the overall performance and durability of water meters, reduce the frequency of water meter failures, and further improve user experience.

[0050] It can be seen that in the embodiment of the present application, an abnormal analysis is performed based on the power consumption abnormality module, the abnormal cause is determined, and the abnormal cause is stored in the water meter abnormal cause database. Then, abnormal maintenance information is generated and sent to the maintenance personnel terminal so that the maintenance personnel can locate the abnormal function module and improve the maintenance response speed and efficiency. Furthermore, based on all abnormal causes in the water meter abnormal cause database, preventive analysis is performed to determine the water meter optimization information, which can improve the overall performance and durability of the water meter, reduce the frequency of water meter failures, and further improve the user experience.

[0051] The above embodiment introduces a self-detection and positioning method for abnormal power consumption of a water meter from the perspective of a method flow, and the following embodiment introduces a self-detection and positioning device for abnormal power consumption of a water meter from the perspective of a virtual module or a virtual unit. For details, please refer to the following embodiment.

[0052] The present application embodiment provides a self-detection and positioning device for abnormal power consumption of a water meter, such as Figure 2 As shown, the self-detection and positioning device for abnormal power consumption of a water meter may specifically include: The function creation module 210 is used to obtain the water meter module deployment information, create the initialization function based on the water meter module deployment information, and determine the initialization function corresponding to each functional module; A number setting module 220, used to set the number based on the initialization function corresponding to each functional module, and determine the function number corresponding to each initialization function; The self-check abnormality locating module 230 is used to design a self-check program based on the initialization function corresponding to each functional module and the corresponding function number to obtain a module abnormality self-check program; deploy the module abnormality self-check program to the water meter, and control the water meter to enable the module abnormality self-check program to perform self-check abnormality locating and determine the power consumption abnormality module.

[0053] For the embodiment of the present application, an initialization function is created based on the water meter module deployment information, the initialization function corresponding to each functional module is determined, and the numbering is set based on the initialization function corresponding to each functional module, and the function number corresponding to each initialization function is determined. Then, a self-checking program is designed based on the initialization function corresponding to each functional module and the corresponding function number to obtain a module abnormality self-checking program. Furthermore, the module abnormality self-checking program is enabled to perform self-checking abnormality positioning on the water meter to determine the power consumption abnormality module. The module abnormality self-checking program can quickly and accurately locate the abnormal power consumption module when the water meter has power consumption abnormality, saving the time for professionals to conduct step-by-step investigation and improving the efficiency of water meter power consumption abnormality detection.

[0054] In a possible implementation of the embodiment of the present application, the number setting module 220, when performing number setting based on the initialization function corresponding to each functional module and determining the function number corresponding to each initialization function, is used to: Perform dependency analysis based on the initialization function corresponding to each functional module to determine the function dependency; Conduct abnormal risk assessment based on each functional module and determine the risk assessment results; Based on function dependencies and risk assessment results, each initialization function is numbered and the function number corresponding to each initialization function is determined.

[0055] In a possible implementation of the embodiment of the present application, the self-checking abnormality locating module 230 performs self-checking program design based on the initialization function corresponding to each functional module and the corresponding function number to obtain the module abnormality self-checking program, and is used to: A traversal mechanism is set based on the initialization function corresponding to each functional module and the function number corresponding to each initialization function, and resource switching is matched for the traversal mechanism to obtain a module abnormality self-checking program.

[0056] In a possible implementation of the embodiment of the present application, the self-check abnormality locating module 230 performs the self-check abnormality locating when executing the abnormal self-checking program of the water meter activation module and determining the power consumption abnormality module, and is used to: Obtain a target initialization function of the target function number in the module abnormality self-checking program, perform self-check on the water meter based on the target initialization function, and determine the target current value, wherein the target function number is the function number with the smallest value in the module abnormality self-checking program; Loop execution: the target function number is incremented, and the water meter is self-checked based on the initialization function corresponding to the incremented target function number to determine the target current value; until the incremented target function number is not in the module abnormality self-check program; Current anomaly analysis is performed based on each target current value to determine the power consumption abnormality module.

[0057] In a possible implementation manner of the embodiment of the present application, the self-detection and positioning device for abnormal power consumption of a water meter further includes: A power consumption diagnosis module, used to obtain target power consumption data and a power consumption prediction model, perform power consumption prediction based on the power consumption prediction model and the target power consumption data, and determine the power consumption prediction data within a target period; Acquire standard power consumption data, perform power consumption diagnosis based on the power consumption prediction data and the standard power consumption data, and obtain a power consumption diagnosis result; When the power consumption diagnosis result is abnormal, the module abnormality self-check program is enabled to perform self-check abnormality positioning on the water meter to determine the power consumption abnormality module; otherwise, the water meter is controlled to maintain normal operation.

[0058] In a possible implementation manner of the embodiment of the present application, the self-detection and positioning device for abnormal power consumption of a water meter further includes: An abnormality analysis module, used to perform abnormality analysis based on the power consumption abnormality module, determine the abnormality cause, and store the abnormality cause in the water meter abnormality cause database; Generate abnormal maintenance information and send it to the maintenance personnel terminal so that the maintenance personnel can locate the abnormal function module and reduce the troubleshooting time; Based on all abnormal causes in the water meter abnormality cause database, preventive analysis is performed to determine water meter optimization information in order to improve water meter performance.

[0059] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the self-detection and positioning device for abnormal power consumption of a water meter described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0060] An electronic device is provided in an embodiment of the present application, such as Figure 3 As shown, Figure 3 The electronic device 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.

[0061] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0062] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but it does not mean that there is only one bus or only one type of bus.

[0063] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0064] The memory 303 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the contents shown in the above method embodiment.

[0065] The electronic devices include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0066] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.

[0067] The embodiment of the present application provides a computer program product, which includes a computer program, which implements the method in any of the above embodiments when executed by a processor. Compared with the related art, the embodiment of the present application creates an initialization function based on the water meter module deployment information, determines the initialization function corresponding to each functional module, and sets the number based on the initialization function corresponding to each functional module, and determines the function number corresponding to each initialization function. Then, based on the initialization function corresponding to each functional module and the corresponding function number, a self-check program is designed to obtain a module abnormality self-check program. Then, the module abnormality self-check program is enabled to perform self-check abnormality positioning on the water meter to determine the power consumption abnormality module. The module abnormality self-check program can quickly and accurately locate the abnormal power consumption module when the water meter has power consumption abnormality, saving the time for professionals to gradually check and improving the efficiency of water meter power consumption abnormality detection.

[0068] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0069] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A self-checking and positioning method for abnormal power consumption of a water meter, characterized in that: include: Obtain water meter module deployment information, create an initialization function based on the water meter module deployment information, and determine the initialization function corresponding to each functional module; Perform numbering on the initialization function corresponding to each functional module, and determine the function number corresponding to each initialization function; Based on the initialization function corresponding to each functional module and the corresponding function number, a self-checking program is designed to obtain a module abnormality self-checking program; The module abnormality self-checking program is deployed to the water meter, and the water meter is controlled to enable the module abnormality self-checking program to perform self-checking abnormality positioning to determine the power consumption abnormality module.

2. The self-checking and positioning method for abnormal water meter power consumption according to claim 1 is characterized in that: The step of setting the number of the initialization function corresponding to each functional module to determine the function number corresponding to each initialization function includes: Perform dependency analysis based on the initialization function corresponding to each of the functional modules to determine function dependencies; Perform abnormal risk assessment based on each of the functional modules and determine the risk assessment result; Based on the function dependency and the risk assessment result, each of the initialization functions is numbered and a function number corresponding to each of the initialization functions is determined.

3. The self-checking and positioning method for abnormal power consumption of a water meter according to claim 1, characterized in that: The self-checking program is designed based on the initialization function corresponding to each functional module and the corresponding function number to obtain the module abnormality self-checking program, including: A traversal mechanism is set based on the initialization function corresponding to each functional module and the function number corresponding to each initialization function, and resource switching is matched for the traversal mechanism to obtain a module abnormality self-checking program.

4. The self-checking and positioning method for abnormal power consumption of a water meter according to claim 3, characterized in that: The control water meter enables the module abnormality self-checking program to perform self-checking abnormality positioning and determine the power consumption abnormality module, including: Obtaining a target initialization function of a target function number in a module abnormality self-checking program, performing a self-check on the water meter based on the target initialization function, and determining a target current value, wherein the target function number is a function number with the smallest value in the module abnormality self-checking program; Loop execution: the objective function number is incremented, and the water meter is self-checked based on the initialization function corresponding to the incremented objective function number to determine the target current value; until the incremented objective function number is not in the module abnormality self-check program; Current anomaly analysis is performed based on each target current value to determine the power consumption abnormality module.

5. The self-checking and positioning method for abnormal power consumption of a water meter according to claim 1, characterized in that: The control water meter enables the module abnormality self-checking program to perform self-checking abnormality positioning and before determining the power consumption abnormality module, it also includes: Acquire target power consumption data and a power consumption prediction model, perform power consumption prediction based on the power consumption prediction model and the target power consumption data, and determine power consumption prediction data within a target period; Acquire standard power consumption data, perform power consumption diagnosis based on the power consumption prediction data and the standard power consumption data, and obtain a power consumption diagnosis result; When the power consumption diagnosis result is abnormal, the module abnormality self-checking program is enabled to perform self-check abnormality positioning on the water meter to determine the power consumption abnormality module; otherwise, the water meter is controlled to maintain normal operation.

6. The self-checking and positioning method for abnormal power consumption of a water meter according to claim 1, characterized in that: The control water meter activates the module abnormality self-checking program to perform self-checking abnormality positioning, and after determining the power consumption abnormality module, it also includes: Performing an abnormality analysis based on the power consumption abnormality module, determining the abnormality cause, and storing the abnormality cause in a water meter abnormality cause database; Generate abnormal maintenance information and send the abnormal maintenance information to the maintenance personnel terminal so that the maintenance personnel can locate the abnormal function module and reduce the troubleshooting time; Based on all abnormal causes in the water meter abnormal cause database, preventive analysis is performed to determine water meter optimization information so as to improve water meter performance.

7. An electronic device, characterized in that: include: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the self-detection and positioning method for abnormal power consumption of a water meter as described in any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the self-checking and locating method for abnormal power consumption of a water meter according to any one of claims 1 to 6.

9. A computer program product, characterized in that The method comprises a computer program, wherein the computer program is executed by a processor to implement the self-checking and positioning method for abnormal power consumption of a water meter as claimed in any one of claims 1 to 6.

Citation Information

Cited By

  • Gas meter circuit board detection method, system, equipment and medium

    CN119375684A

  • Server hardware firmware vulnerability increment hot patching method and system

    CN121070677A