Power supply control method and device, storage medium and electronic device for self-powered water meter
By predicting the load electricity consumption and adjusting the power supply strategy, the unreasonable power supply of self-generated water meter when there is no water use for a long time is solved, the reasonable power supply of self-generated water meter and the extended working time is achieved without power generation, and the power supply reliability of intelligent functions is improved.
Patent Information
- Application Number
- CN202510588281.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-05-08
AI Technical Summary
When the self-generated water meter does not use water for a long time, the power supply strategy of the self-generated water meter is unreasonable, which affects the power supply of its intelligent functions.
By predicting the difference between the theoretical value of the total load electricity consumption and the stored electricity, adjusting the data upload method and the load operation method, including the switching method in priority order, sending power alarm information in a timely manner or connecting to an external power supply, ensuring the reasonable power supply of the self-generated water meter.
During the period when users do not use water, extend the working time of the self-generated water meter and improve the rationality and reliability of its intelligent functions of power supply.
Smart Images

Figure CN120109968B_ABST
Abstract
Description
Background Art
[0002] As an instrument mainly used to measure water flow, water meters are widely used in various water usage scenarios. With the integration of technologies, in order to enhance the intelligence of water meters, self-powered water meters have emerged as the times require.
[0003] For self-powered water meters, there may be a situation where users do not use water for a long time. In this case, the self-powered water meter is affected by the lack of water flow and the power supply for its intelligent functions is affected. For this, there is currently no good power supply strategy.
[0004] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure. Therefore, it may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0005] The purpose of the present disclosure is to provide a power supply control method and device, a storage medium, and an electronic device for a self-powered water meter, so as to at least to some extent overcome the problem that the power supply strategy of the self-powered water meter is unreasonable due to the long-term non-use of water by users.
[0006] According to the first aspect of the present disclosure, there is provided a power supply control method for a self-powered water meter, including: receiving information of a target time period, where the target time period is the time period when the user of the self-powered water meter does not use water after the current time, and the target time period is obtained in response to a time setting operation for a client corresponding to the self-powered water meter; obtaining historical power consumption data of multiple electrical loads in the self-powered water meter, and predicting a theoretical value of the total load power consumption in the target time period according to the historical power consumption data of the multiple electrical loads; obtaining the current stored power of the self-powered water meter, and determining the power difference between the theoretical value of the total load power consumption and the stored power; if the power difference is greater than a first threshold and less than a second threshold, determining a target data upload method corresponding to the power difference and the duration of the target time period for the self-powered water meter, and applying the target data upload method within the target time period; where the data upload method includes the type of data to be uploaded and the data upload time interval, and different data upload methods have different types of data to be uploaded and / or different data upload time intervals; if the power difference is greater than or equal to the second threshold and less than or equal to the third threshold, determining a target load operation method corresponding to the power difference and the duration of the target time period for the self-powered water meter, and applying the target load operation method within the target time period; where the load operation method includes a switching method configured for each electrical load according to the priority order of each electrical load, and different load operation methods have different switching methods for each electrical load; if the power difference is greater than the third threshold, sending a power warning message to the client.
[0007] Optionally, predicting the theoretical value of the total load power consumption in the target time period based on the historical power consumption data of multiple electrical loads includes: predicting the power consumption of each electrical load in the target time period according to the historical power consumption data of each electrical load; adding up the power consumption of each electrical load to obtain the theoretical value of the power consumption.
[0008] Optionally, the multiple electrical loads include a target electrical load; predicting the power consumption of the target electrical load in the target time period according to the historical power consumption data of the target electrical load includes: obtaining the power consumption data of the target electrical load at multiple historical moments, and determining the power consumption feature vectors at each historical moment according to the power consumption data at each historical moment; for the first historical moment farthest from the current among the multiple historical moments, using the power consumption feature vector of the first historical moment as the input of the long short-term memory network for feature processing to obtain the power consumption analysis result of the first historical moment; for the m-th historical moment among the multiple historical moments, using the power consumption feature vector of the m-th historical moment and the power consumption analysis result of the (m - 1)-th historical moment as the input of the long short-term memory network for feature processing to obtain the power consumption analysis result of the m-th historical moment; where m is a positive integer greater than 1; using a fully connected layer to comprehensively process the power consumption analysis results at each historical moment to obtain the predicted value of the power consumption of the future target electrical load.
[0009] Optionally, the multiple electrical loads of the self-powered water meter include a display load, a communication load, a sensing load, and a data analysis and control load.
[0010] Optionally, when the power difference is greater than the third threshold, the power supply control method further includes: sending a battery installation prompt message to the client; where the battery installation prompt message is used to instruct the user to install a battery for the self-powered water meter.
[0011] Optionally, when the power difference is greater than the third threshold, the power supply control method further includes: sending a request instruction to access the user power system to the client; in response to the instruction to access the user power system, turning on the switch for the self-powered water meter to access the user power system so that the user power system supplies power to the self-powered water meter.
[0012] Optionally, the power supply control method further includes: statistically analyzing the power consumption generated by the self-powered water meter in the time dimension and generating an electricity bill; sending the electricity bill to the client.
[0013] According to a second aspect of the present disclosure, a power supply control device for a self-generating water meter is provided, comprising: a time period receiving module, for receiving information of a target time period, the target time period being a time period during which the user of the self-generating water meter does not use water after the current time period, the target time period being obtained in response to a time setting operation of a client corresponding to the self-generating water meter; a power consumption prediction module, for obtaining historical power consumption data of a plurality of power loads in the self-generating water meter, and predicting a theoretical value of the total load power consumption within the target time period based on the historical power consumption data of the plurality of power loads; a power difference determination module, for obtaining the current stored power of the self-generating water meter, and determining a power difference between the theoretical value of the total load power consumption and the stored power; a first control module, for determining the power difference between the self-generating water meter and the target time period if the power difference is greater than a first threshold value and less than a second threshold value The target data upload mode corresponds to the duration of the target time period, and the target data upload mode is applied within the target time period; wherein the data upload mode includes the upload data type and the data upload time interval, and the upload data types and / or data upload time intervals of different data upload modes are different; a second control module is used to determine the target load operation mode of the self-generating water meter corresponding to the power difference and the duration of the target time period if the power difference is greater than or equal to the second threshold and less than or equal to the third threshold, and apply the target load operation mode within the target time period; wherein the load operation mode includes a switching mode configured for each power load according to the priority order of each power load, and the switching mode of each power load of different load operation modes is different; a third control module is used to send power alarm information to the client if the power difference is greater than the third threshold.
[0014] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the power supply control method of the self-generating water meter is implemented.
[0015] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; the processor is configured to implement a power supply control method for a self-generating water meter by executing the executable instructions.
[0016] In the technical solutions provided in some embodiments of the present disclosure, a power supply strategy including regulating the data upload method and the load operation mode is configured by determining the difference between the theoretical value of the total load power consumption of the self-generating water meter during the period when the user does not use water and the stored power. This can achieve a reasonable power supply plan for the self-generating water meter when the user does not use water. While meeting the needs as much as possible, the power supply mode of the self-generating water meter for its own power load is gradually adjusted, which can extend the working time of the self-generating water meter when it is not generating electricity as much as possible, further improving the intelligence of the self-generating water meter.
[0017] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.
[0019] Figure 1 A system framework diagram of the power supply control scheme of the self - generating water meter showing an exemplary embodiment of the present disclosure is schematically illustrated.
[0020] Figure 2 A flowchart of the power supply control method of the self - generating water meter showing an exemplary embodiment of the present disclosure is schematically illustrated.
[0021] Figure 3 A schematic diagram showing the process of predicting the load power consumption of an embodiment of the present disclosure is schematically illustrated.
[0022] Figure 4 A block diagram of the power supply control device of the self - generating water meter showing an embodiment of the present disclosure is schematically illustrated.
[0023] Figure 5 A block diagram of an electronic device showing an exemplary embodiment according to the present disclosure is schematically illustrated. DETAILED DESCRIPTION
[0024] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art. The features, structures, or characteristics described can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well - known technical solutions are not shown or described in detail to avoid obscuring the various aspects of the present disclosure.
[0025] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0026] The flowcharts shown in the accompanying drawings are only exemplary illustrations and do not necessarily include all steps. For example, some steps can be further decomposed, while some steps can be combined or partially combined. Therefore, the actual execution order may change according to the actual situation. Additionally, all the following terms "first", "second", "third", etc. are only for the purpose of distinction and should not be construed as a limitation of the content of the present disclosure.
[0027] Figure 1 The system framework diagram of the power supply control scheme of the self - generating water meter showing an exemplary embodiment of the present disclosure is schematically illustrated.
[0028] Reference Figure 1 , first, the client 11 determines the time period during which the user will not use water after the current time in response to the user's time - setting operation. In the embodiment of the present disclosure, this time period is denoted as the target time period. Next, the client 11 sends the target time period to the self - generating water meter 12.
[0029] It should be understood that, on the one hand, the client 11 can be configured on the terminal device in the form of an application program. The present disclosure places no restrictions on the type of the terminal device. For example, it can be a smart phone, a tablet computer, a personal computer, etc. On the other hand, the self - generating water meter 12 in the embodiment of the present disclosure has data - processing capabilities. That is to say, a processing unit can be configured therein to implement the data - processing process on the side of the self - generating water meter 12 in the present disclosure. Additionally, in the process of the client 11 sending the target time period to the self - generating water meter 12, for the data transmission between devices, it is the terminal device installed with the client 11 that sends the information of the target time period to the processing unit of the self - generating water meter 12.
[0030] The self - generating water meter 12 can respond to the information of the target time period to obtain the historical power - consumption data of multiple electrical loads therein, and predict the theoretical value of the total load power consumption during the target time period based on the historical power - consumption data of the multiple electrical loads. Additionally, the current stored power of the self - generating water meter 12 itself can be obtained, denoted as the stored power. Next, the self - generating water meter 12 can determine the power difference between the theoretical value of the total load power consumption and the stored power. It can be understood that this power difference can be positive, negative, or even zero under extreme conditions. The present disclosure places no restrictions on this.
[0031] Then, the self - generating water meter 12 can configure a self - power supply strategy including a regulation data upload method and a load operation method in combination with this power difference.
[0032] To more clearly describe the power supply control scheme of the present disclosure, the power supply control method of the self - generating water meter in the embodiments of the present disclosure will be described below. It can be understood that, without special instructions, each step of the following power supply control method is executed by the self - generating water meter.
[0033] Figure 2 Schematically shows a flowchart of the power supply control method of the self - generating water meter according to an exemplary embodiment of the present disclosure. Refer to Figure 2 , the power supply control method of the self - generating water meter may include the following steps:
[0034] S22. Receive information of a target time period, where the target time period is a time period when the user of the self - generating water meter does not use water after the current time, and the target time period is obtained in response to a time setting operation for the client corresponding to the self - generating water meter.
[0035] First, the client can determine the target time period in response to the user's time setting operation. Among them, the time setting operation may be a user's handwritten input operation, voice input operation, etc., and the present disclosure does not limit this. That is to say, in the intelligent self - generating water meter solution of the present disclosure, the client provides a function for the user to input the time period when water is not used after the current time.
[0036] Next, the client can send the information including the target time period to the self - generating water meter.
[0037] S24. Obtain the historical power consumption data of multiple electrical loads in the self - generating water meter, and predict the theoretical value of the total load power consumption in the target time period according to the historical power consumption data of the multiple electrical loads.
[0038] According to some embodiments of the present disclosure, first, the self - generating water meter can predict the load power consumption of each electrical load in the target time period according to the historical power consumption data of each electrical load; next, the self - generating water meter can add up the load power consumption of each electrical load to obtain the theoretical value of the load power consumption.
[0039] That is to say, for the process of predicting the load power consumption, the load power consumption of each electrical load can be predicted separately, and then the sum of the load power consumption of all electrical loads can be statistically calculated to obtain the theoretical value of the load power consumption.
[0040] For the convenience of description, the determination of the load power consumption of one electrical load will be described, and the processing process of other electrical loads is similar.
[0041] Multiple electrical loads may include a target electrical load, which may be any one of the multiple electrical loads. Specifically, the electrical loads may include a display load, a communication load, a sensing load, a data analysis and control load, etc. within a self-powered water meter. In this case, the target load may be any one of the display load, the communication load, the sensing load, and the data analysis and control load within the self-powered water meter. It should be noted that these loads all belong to the self-powered water meter itself, that is to say, the electrical loads mentioned in this disclosure are all load units included inside the self-powered water meter. Among them, the display load is used to display information related to the water meter or water inflow and outflow through the display screen of the self-powered water meter. The communication load is used to transmit data for data communication with other devices. The sensing load corresponds to various sensors of the water meter, such as a flow sensor, a pressure sensor, etc. The data analysis and control load is used to process and analyze various data of the self-powered water meter and perform corresponding control operations according to the analysis results.
[0042] First, electrical consumption data of a target electrical load at multiple historical moments can be obtained, and an electrical consumption feature vector for each historical moment can be determined based on the electrical consumption data at each historical moment.
[0043] Specifically, multiple historical moments can be determined within a predetermined time period from the history to the current time. For example, multiple historical moments can be determined within one month from the current time, or multiple historical moments can be determined within one quarter from the current time. This disclosure does not limit this.
[0044] Next, for the 1st historical moment that is the farthest from the current time among these historical moments, the electrical consumption feature vector corresponding to the 1st historical moment can be used as the input of a Long Short-Term Memory (LSTM) network for feature processing to obtain an electrical consumption analysis result for the 1st historical moment.
[0045] In addition, for other historical moments except the 1st historical moment, specifically, for the mth historical moment, where m is a positive integer greater than 1, the electrical consumption feature vector of the mth historical moment and the electrical consumption analysis result of the (m - 1)th historical moment can be used as the input of the LSTM network for feature processing to obtain an electrical consumption analysis result for the mth historical moment.
[0046] Then, a fully connected layer can be used to comprehensively integrate the electrical consumption analysis results of each historical moment to obtain a predicted value of the load electrical consumption of the future target electrical load.
[0047] Figure 3 Schematically shows a schematic diagram of the process of predicting load electrical consumption according to an embodiment of the present disclosure. Refer to Figure 3, first, use the LSTM network to process the power consumption feature vector at the first historical moment to obtain the power consumption analysis result at the first historical moment. Then, use the LSTM network to perform feature processing on the combined data of the power consumption analysis result at the first historical moment and the power consumption feature at the second historical moment to obtain the power consumption analysis result at the second historical moment, and so on, until the power consumption analysis results at all historical moments are determined. Subsequently, these results can be integrated and analyzed using a fully connected layer to determine the predicted value of the load power consumption of the target electrical load.
[0048] The present disclosure does not limit the specific network structure and training process of the above LSTM network.
[0049] In addition, the ARIMA model can also be used to predict the load power consumption of each electrical load, and the present disclosure does not limit this.
[0050] S26. Obtain the stored power of the current self-generated power water meter and determine the power difference between the theoretical value of the total load power consumption and the stored power.
[0051] Specifically, the self-generated power water meter can obtain its current stored power from its own energy storage unit and calculate the power difference between the theoretical value of the total load power consumption determined in step S24 and the stored power.
[0052] S28. Provide a power supply strategy in combination with the power difference.
[0053] According to some embodiments of the present disclosure, if the power difference is greater than the first threshold and less than the second threshold, determine the target data upload method corresponding to the power difference and the duration of the target time period of the self-generated power water meter, and apply the target data upload method within the target time period.
[0054] Specifically, the data upload method includes the data upload type and the data upload time interval. The data upload types and / or data upload time intervals of different data upload methods are different. Among them, the data type may include the data collected by each sensor in the self-generated power water meter, and each type of data corresponds to one data type. The data upload time interval may include 12h, 24h, 48h, etc. These different combination methods construct the different data upload methods described in the embodiment solution of the present disclosure.
[0055] In addition, the first threshold may be, for example, 0, and the second threshold may be configured as the maximum value of the power savings that can be achieved through the regulation of the data upload method or a value associated with the maximum value. The present disclosure does not limit its specific value.
[0056] In addition, if the power difference is less than or equal to the first threshold, it indicates that the electric energy stored in the self - generating water meter itself can meet the power consumption of the load within the target time period. At this time, there is no need to adjust the power supply strategy.
[0057] According to some other embodiments of the present disclosure, if the power difference is greater than or equal to the second threshold and less than or equal to the third threshold, the target load operation mode corresponding to the power difference and the duration of the target time period of the self - generating water meter is determined, and the target load operation mode is applied within the target time period.
[0058] Specifically, the load operation mode includes the switching modes configured for each electrical load according to the priority order of each electrical load. The switching modes of each electrical load in different load operation modes are different. Among them, the priorities of each electrical load are pre - configured, and the priority represents the importance degree of the electrical load. For example, the higher the priority, the higher the importance degree of the electrical load, and the more it needs to be turned on; the lower the priority, the lower the importance degree of the electrical load, and the more it can be turned off. For example, the priority of sensor A is higher than that of sensor B. In some cases, sensor B can be turned off while sensor A is kept on.
[0059] In addition, the third threshold can be configured as the maximum value of the electric energy that can be saved through the regulation of the load operation mode or a value associated with the maximum value. The present disclosure does not limit its specific value.
[0060] According to still some other embodiments of the present disclosure, if the power difference is greater than the third threshold, a power warning message is sent to the client to prompt the user that the self - generating water meter will have a complete power outage situation within the target time period.
[0061] In view of this situation, in some embodiments, the self - generating water meter can send a battery installation prompt message to the client, and the battery installation prompt message is used to instruct the user to install a battery for the self - generating water meter to ensure the continuous power supply of the self - generating water meter.
[0062] In some other embodiments, the self - generating water meter can send a request instruction to access the user's power system to the client. When the user agrees to the request, the self - generating water meter can respond to the instruction to access the user's power system and turn on the switch for the self - generating water meter to access the user's power system, so that the user's power system supplies power to the self - generating water meter. Among them, the user's power system mentioned in the embodiments of the present disclosure can be consistent with the municipal power supply accessed by the user scenario. That is, at this time, in some scenarios, the self - generating water meter can be powered by the municipal power supply method.
[0063] In addition, the self - generating water meter can also perform statistical analysis on the electric energy consumption generated by the self - generating water meter in the time dimension, generate an electricity bill, and send the electricity bill to the client so that the user can understand the power consumption situation of the self - generating water meter in this case.
[0064] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that these steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.
[0065] Furthermore, in the present exemplary embodiment, a power supply control device for a self - generating water meter is also provided.
[0066] Figure 4 The block diagram of the power supply control device for the self - generating water meter according to the exemplary embodiment of the present disclosure is schematically shown. Referring to Figure 4 , the power supply control device 4 for the self - generating water meter according to the exemplary embodiment of the present disclosure may include a time period receiving module 401, a power consumption prediction module 403, a power difference determination module 405, a first control module 407, a second control module 409, and a third control module 411.
[0067] Specifically, the time period receiving module 401 may be configured to receive information about the target time period, where the target time period is the time period when the user of the self - generating water meter does not use water after the current time, and the target time period is obtained in response to a time setting operation for the client corresponding to the self - generating water meter; the power consumption prediction module 403 may be configured to obtain the historical power consumption data of multiple electrical loads in the self - generating water meter, and predict the theoretical value of the total load power consumption during the target time period based on the historical power consumption data of the multiple electrical loads; the power difference determination module 405 may be configured to obtain the stored power of the current self - generating water meter, and determine the power difference between the theoretical value of the total load power consumption and the stored power; the first control module 407 may be configured to, if the power difference is greater than the first threshold and less than the second threshold, determine the target data upload method corresponding to the power difference and the duration of the target time period for the self - generating water meter, and apply the target data upload method during the target time period; wherein, the data upload method includes the type of data to be uploaded and the data upload time interval, and the types of data to be uploaded and / or the data upload time intervals of different data upload methods are different; the second control module 409 may be configured to, if the power difference is greater than or equal to the second threshold and less than or equal to the third threshold, determine the target load operation method corresponding to the power difference and the duration of the target time period for the self - generating water meter, and apply the target load operation method during the target time period; wherein, the load operation method includes the switching methods configured for each electrical load according to the priority order of each electrical load, and the switching methods of each electrical load for different load operation methods are different; the third control module 411 may be configured to, if the power difference is greater than the third threshold, send a power warning message to the client.
[0068] According to an exemplary embodiment of the present disclosure, the power consumption prediction module 403 may be configured to: predict the load power consumption of each electrical load within a target time period based on the historical power consumption data of each electrical load; add up the load power consumptions of each electrical load to obtain a theoretical value of the load power consumption.
[0069] According to an exemplary embodiment of the present disclosure, the multiple electrical loads include a target electrical load. The power consumption prediction module 403 may be configured to: obtain the power consumption data of the target electrical load at multiple historical moments, and determine the power consumption feature vectors at each historical moment based on the power consumption data at each historical moment; for the first historical moment that is the farthest from the current among the multiple historical moments, use the power consumption feature vector of the first historical moment as the input of the long short-term memory network for feature processing to obtain the power consumption analysis result of the first historical moment; for the m-th historical moment among the multiple historical moments, use the power consumption feature vector of the m-th historical moment and the power consumption analysis result of the (m - 1)-th historical moment as the input of the long short-term memory network for feature processing to obtain the power consumption analysis result of the m-th historical moment; where m is a positive integer greater than 1; use a fully connected layer to perform feature synthesis on the power consumption analysis results at each historical moment to obtain a predicted value of the load power consumption of the future target electrical load.
[0070] According to an exemplary embodiment of the present disclosure, the multiple electrical loads of the self-powered water meter include a display load, a communication load, a sensing load, and a data analysis and control load.
[0071] According to an exemplary embodiment of the present disclosure, the third control module 411 may also be used to send a battery installation prompt message to the client when the power difference is greater than a third threshold; where the battery installation prompt message is used to instruct the user to install a battery for the self-powered water meter.
[0072] According to an exemplary embodiment of the present disclosure, the third control module 411 may also be used to send a request instruction to access the user power system to the client when the power difference is greater than a third threshold; in response to the instruction to access the user power system, turn on the switch for the self-powered water meter to access the user power system so that the user power system supplies power to the self-powered water meter.
[0073] According to an exemplary embodiment of the present disclosure, the third control module 411 may also be used to perform statistics on the power consumption generated by the self-powered water meter in the time dimension and generate an electricity bill; send the electricity bill to the client.
[0074] Since each functional module of the power supply control device of the self-powered water meter in the embodiment of the present disclosure is the same as that in the above method embodiment, it will not be described in detail here.
[0075] In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, on which a program product capable of implementing the above methods of this specification is stored. In some possible implementation manners, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.
[0076] The program product for implementing the above method according to an embodiment of the present disclosure may be a portable compact disc read-only memory (CD-ROM) and includes program code, and may run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium may be any tangible medium that contains or stores a program, and this program may be used by or in combination with an instruction execution system, apparatus, or device.
[0077] The program product may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical disc, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0078] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the readable storage medium, and this readable medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device.
[0079] The program code contained on the readable medium may be transmitted by any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0080] Program code for performing the operations of the present disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or, alternatively, can be connected to an external computing device (e.g., by connecting through the Internet using an Internet service provider).
[0081] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0082] Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, a method, or a program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to herein as "circuitry", "module", or "system".
[0083] The following refers to Figure 5 to describe the electronic device 500 according to this embodiment of the present disclosure. Figure 5 The illustrated electronic device 500 is merely an example and should not impose any limitation on the functions and scope of use of the embodiments of the present disclosure.
[0084] As Figure 5 shown, the electronic device 500 is presented in the form of a general-purpose computing device. The components of the electronic device 500 may include, but are not limited to: at least one of the above-mentioned processing units 510, at least one of the above-mentioned storage units 520, a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510), and a display unit 540.
[0085] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 510, so that the processing unit 510 executes the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification. For example, the processing unit 510 can execute each step of the power supply control method of the self-powered water meter according to the embodiment of the present disclosure.
[0086] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202, and may further include a read-only storage unit (ROM) 5203.
[0087] The storage unit 520 may also include a program / utilities 5204 having a set (at least one) of program modules 5205. Such program modules 5205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment.
[0088] The bus 530 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus structures.
[0089] The electronic device 500 may also communicate with one or more external devices 600 (such as a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 500, and / or may communicate with any device that enables the electronic device 500 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be carried out through an input / output (I / O) interface 550. Moreover, the electronic device 500 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 560. As shown in the figure, the network adapter 560 communicates with other modules of the electronic device 500 through the bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0090] Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0091] In addition, the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, rather than for limiting purposes. It is easy to understand that the processes shown in the above-mentioned drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easy to understand that these processes can be executed synchronously or asynchronously, for example, in multiple modules.
[0092] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more of the above-mentioned modules or units can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0093] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the content disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.
[0094] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A power supply control method for a self - generating water meter, characterized in that, Including: Receiving information of a target time period, where the target time period is a time period during which the user of the self-powered water meter does not use water after the current time, and the target time period is obtained in response to a time setting operation for a client corresponding to the self-powered water meter; Obtaining historical power consumption data of multiple electrical loads in the self-powered water meter, and predicting a theoretical value of the total load power consumption during the target time period according to the historical power consumption data of the multiple electrical loads; Obtaining the stored power of the self-powered water meter currently, and determining a power difference between the theoretical value of the total load power consumption and the stored power; If the power difference is greater than a first threshold and less than a second threshold, determining a target data upload method corresponding to the power difference and the duration of the target time period of the self-powered water meter, and applying the target data upload method during the target time period; wherein, the data upload method includes an upload data type and a data upload time interval, and the upload data types and / or data upload time intervals of different data upload methods are different; If the power difference is greater than or equal to the second threshold and less than or equal to a third threshold, determining a target load operation method corresponding to the power difference and the duration of the target time period of the self-powered water meter, and applying the target load operation method during the target time period; wherein, the load operation method includes a switching method configured for each of the electrical loads according to the priority order of each of the electrical loads, and the switching methods of each of the electrical loads of different load operation methods are different; If the power difference is greater than the third threshold, sending a power warning message to the client.
2. The power supply control method according to claim 1, wherein Predicting the theoretical value of the total load power consumption during the target time period according to the historical power consumption data of the multiple electrical loads includes: Predicting the load power consumption of each of the electrical loads during the target time period according to the historical power consumption data of each of the electrical loads; Adding up the load power consumptions of each of the electrical loads to obtain a theoretical value of the load power consumption.
3. The power supply control method according to claim 2, wherein The multiple electrical loads include a target electrical load; Predicting the load power consumption of the target electrical load during the target time period according to the historical power consumption data of the target electrical load includes: Obtaining the power consumption data of the target electrical load at multiple historical moments, and determining the power consumption feature vectors at each historical moment according to the power consumption data at each historical moment; For the first historical moment that is the farthest from the current among the multiple historical moments, using the power consumption feature vector of the first historical moment as the input of the long short-term memory network for feature processing to obtain the power consumption analysis result of the first historical moment; For the mth historical moment among the multiple historical moments, using the power consumption feature vector of the mth historical moment and the power consumption analysis result of the (m - 1)th historical moment as the input of the long short-term memory network for feature processing to obtain the power consumption analysis result of the mth historical moment; where m is a positive integer greater than 1; Using a fully connected layer to perform feature synthesis on the power consumption analysis results at each historical moment to obtain a predicted value of the load power consumption of the future target electrical load.
4. The power supply control method according to claim 1, characterized in that The multiple electrical loads of the self - generating water meter include a display load, a communication load, a sensing load, and a data analysis and control load.
5. The power supply control method according to any one of claims 1 to 4, characterized in that When the power difference is greater than the third threshold, the power supply control method further includes: Sending battery installation prompt information to the client; Wherein, the battery installation prompt information is used to instruct the user to install a battery for the self - generating water meter.
6. The power supply control method according to any one of claims 1 to 4, characterized in that When the power difference is greater than the third threshold, the power supply control method further includes: Sending a request instruction to access the user's power system to the client; In response to the instruction to access the user's power system, opening the switch for the self - generating water meter to access the user's power system, so that the user's power system supplies power to the self - generating water meter.
7. The power supply control method according to claim 6, wherein The power supply control method further includes: Statistically analyzing the power consumption generated by the self - generating water meter in the time dimension and generating an electricity bill; Sending the electricity bill to the client.
8. A power supply control device for a self-powered water meter, characterized in that, Including: A time - period receiving module, configured to receive information on a target time period, where the target time period is a time period when the user of the self - generating water meter does not use water after the current time, and the target time period is obtained in response to a time - setting operation for the client corresponding to the self - generating water meter; A power consumption prediction module, configured to obtain historical power consumption data of multiple electrical loads in the self - generating water meter, and predict a theoretical value of the total load power consumption in the target time period according to the historical power consumption data of the multiple electrical loads; A power difference determination module, configured to obtain the stored power of the self - generating water meter currently and determine the power difference between the theoretical value of the total load power consumption and the stored power; A first control module, configured to, if the power difference is greater than a first threshold and less than a second threshold, determine a target data upload method corresponding to the power difference and the duration of the target time period of the self - generating water meter, and apply the target data upload method within the target time period; wherein, the data upload method includes the type of data to be uploaded and the data upload time interval, and different data upload methods have different types of data to be uploaded and / or different data upload time intervals; A second control module, configured to, if the power difference is greater than the second threshold and less than the third threshold, determine a target load operation method corresponding to the power difference and the duration of the target time period of the self - generating water meter, and apply the target load operation method within the target time period; wherein, the load operation method includes a switching method configured for each electrical load according to the priority order of each electrical load, and different load operation methods have different switching methods for each electrical load; A third control module, configured to, if the power difference is greater than the third threshold, send power warning information to the client.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the power supply control method of the self - generating water meter according to any one of claims 1 to 7.
10. An electronic device, characterized in that, Including: A processor; And A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to implement the power supply control method of the self - generating water meter according to any one of claims 1 to 7 by executing the executable instructions.
Citation Information
Patent Citations
FLUID MEASURING DEVICE
BR102018072543A2
Self-power-generation low-power-consumption water meter design and implementation method
CN103940476A