Calculation method and device for water selling amount and medium

By receiving signals to start and stop water sales, and combining water meter readings and configured flow rates, the water sales volume is calculated, which solves the problem of insufficient water sales volume calculation accuracy in the existing technology and achieves more accurate water measurement.

CN118609261APending Publication Date: 2024-09-06FOSHAN NANHAI DISTRICT HUACHENG JUNDA AGRI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410589053.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When the existing water sales system is used by multiple people, the flow rate is unstable and the water meter fails, causing the calculation accuracy of the water sales volume to be unable to be guaranteed, resulting in large deviations.

Method used

By receiving signals to start and stop water sales, and combining water meter readings, configured flow rates and pipe losses, the water sales volume is calculated to ensure calculation accuracy and avoid errors caused by water pressure fluctuations or water meter failures.

Benefits of technology

It improves the calculation accuracy of water sales, avoids water output calculation errors caused by water pressure fluctuations or water meter failures, and ensures measurement accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609261A
    Figure CN118609261A
Patent Text Reader

Abstract

The invention relates to the technical field of water supply, and discloses a water selling quantity calculation method and device and a medium, and the water selling quantity calculation method comprises the steps: receiving a first signal, and opening a water outlet valve based on the first signal; receiving the second signal and closing the water outlet valve based on the second signal; determining the water selling amount according to the receiving time of the first signal, the receiving time of the second signal, the water meter reading, the configuration flow velocity and the pipe loss; wherein the first signal is used for representing starting of water selling, and the second signal is used for representing stopping of water selling, so that the calculation precision of the water selling amount is improved, and the calculation error of the water outlet amount caused by water pressure fluctuation or water meter faults is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of water supply technology, and in particular to a method, device and medium for calculating the amount of water sold. Background Art

[0002] With the change of people's lifestyle, water selling (water delivery) systems have gradually entered people's lives. At present, large-caliber water selling systems on the market charge by time, but time-based billing can only guarantee accuracy when the flow rate is stable. The flow rate will be affected when multiple people use it. Therefore, the accuracy of the actual water sales flow cannot be guaranteed. On the other hand, when the water meter in the water sales system fails, the calculated water sales volume will also show large deviations. Summary of the invention

[0003] The present application provides a method, device and medium for calculating the amount of water sold to solve one or more technical problems existing in the prior art and at least provide a beneficial option or create conditions.

[0004] A method for calculating the water sales volume of a technical solution of one aspect of the present application includes the following steps: receiving a first signal, and opening a water outlet valve based on the first signal; receiving a second signal, and closing the water outlet valve based on the second signal; determining the water sales volume according to the reception time of the first signal, the reception time of the second signal, the water meter reading, the configured flow rate, and the pipe loss; wherein the first signal is used to indicate the start of water sales, and the second signal is used to indicate the stop of water sales.

[0005] Some technical solutions of the present application, before opening the water outlet valve based on the first signal, also include: obtaining a current water meter reading to obtain a first water outlet value.

[0006] Some technical solutions of the present application, after closing the water outlet valve based on the second signal, also include: obtaining a current water meter reading to obtain a second water outlet value.

[0007] Some technical solutions of the present application, which determine the water sales volume based on the reception time of the first signal, the reception time of the second signal, the water meter reading, the configured flow rate and the pipe loss, include: determining the water sales time through the reception time of the first signal and the reception time of the second signal; determining the first water sales volume through the water sales time and the configured flow rate; calculating the second water sales volume through the first water output value and the second water output value; and determining the actual water sales volume based on the first water sales volume and the second water sales volume.

[0008] Some technical solutions of the present application, wherein the first water sales volume is determined by the water sales time and the configured flow rate, comprising: obtaining the configured flow rate; calculating the product of the configured flow rate and the water sales time to obtain the first water sales volume; wherein the configured flow rate is determined according to the pipe diameter.

[0009] Some technical solutions of the present application, wherein determining the actual water sales volume based on the first water sales volume and the second water sales volume includes: calculating the difference between the first water sales volume and the second water sales volume; if the difference is less than a preset value, determining the actual water sales volume based on the second water sales volume; if the difference is greater than or equal to the preset value, determining the actual water sales volume based on the first water sales volume.

[0010] Some technical solutions of the present application, determining the actual water sales volume based on the second water sales volume, include: determining the pipe loss based on the configured flow rate and the valve closing time; calculating the sum of the pipe loss and the second water sales volume to obtain the actual water sales volume; wherein the valve closing time is the difference between the time when the second signal is received and the time when the valve is completely closed.

[0011] Some technical solutions of the present application, determining the pipe loss based on the configured flow rate and valve closing time, include: determining the pipe loss by a first formula, the first formula is expressed as: R = T*Ve / 2; wherein R represents the pipe loss, T represents the valve closing time, and Ve represents the configured flow rate.

[0012] Another aspect of the present application provides an electronic device according to a technical solution, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the method for calculating the water sales volume described in any of the above technical solutions when executing the computer program.

[0013] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by one or more processors, it can implement the steps of the method for calculating the water sales volume as described in any of the above technical solutions.

[0014] This application has at least the following beneficial effects:

[0015] The method for calculating the water sales volume of the present application receives a first signal and opens a water outlet valve based on the first signal; receives a second signal and closes the water outlet valve based on the second signal; determines the water sales volume according to the reception time of the first signal, the reception time of the second signal, the water meter reading, the configured flow rate, and the pipe loss; wherein the first signal is used to characterize the start of water sales, and the second signal is used to characterize the stop of water sales, thereby improving the calculation accuracy of the water sales volume and avoiding the calculation error of the water output volume caused by water pressure fluctuations or water meter failures.

[0016] It is understandable that the beneficial effects of the equipment and medium disclosed in the present application are the same as the beneficial effects of the method for calculating the water sales volume, and will not be repeated here.

[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0019] Figure 1 A flow chart of a method for calculating the water sales volume according to an embodiment of the present application;

[0020] Figure 2 Another schematic flow chart of the method for calculating the water sales volume according to an embodiment of the present application;

[0021] Figure 3 It is another flow chart of the method for calculating the water sales volume according to the embodiment of the present application;

[0022] Figure 4 A schematic block diagram of a module of a device for calculating water sales volume according to an embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0025] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0026] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

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

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

[0030] In order to make the inventive concept of the present application easy to understand, before describing the embodiments of the present application in detail, the English abbreviations (terms) / related concepts involved in the embodiments of the present application are first described. The English abbreviations (terms) / related concepts involved in the embodiments of the present application are subject to the following explanations.

[0031] Pipe loss: When the water valve is closed, it takes n seconds for the valve to open and close completely. The water flow rate during these n seconds is called pipe loss.

[0032] Flow velocity: the distance traveled by a flowing object per unit time, usually expressed in m3 / h.

[0033] Existing water vending systems often calculate water output according to a fixed flow rate, that is, when the system hardware is completed, the flow rate is determined not to change. However, the water output flow rate of the water vending system will fluctuate due to differences in the environment, the number of users, and the water supply pressure. If the water output is always calculated according to a fixed flow rate, errors will occur, resulting in deviations in the water output, which will cause economic losses in the long run. In addition, when the water meter of the water vending system fails, it often results in the inability to measure the water output or the inability to supply water.

[0034] In view of this, the present application proposes a method, device and medium for calculating the water sales volume. The scheme receives a first signal and opens a water outlet valve according to the first signal. Thereafter, it receives a second signal and closes the water outlet valve according to the second signal. Finally, the water sales volume is determined according to the reception time of the first signal, the reception time of the second signal, the water meter reading, the configured flow rate and the pipe loss. This improves the calculation accuracy of the water sales volume and avoids the calculation error of the water output caused by water pressure fluctuations or water meter failures.

[0035] A method for calculating the amount of water sold provided in an embodiment of the present application can be used in an existing water supply system or in water selling equipment, wherein the water supply system may include a drinking water supply system, a purified water supply system, and an irrigation water supply system, and the present application does not limit this. Water selling equipment can be divided into regional water selling equipment and small water selling equipment, and the present application does not limit this. The water supply system can sell water through chip cards, IC cards, contactless radio frequency identification cards, etc., or by scanning a code for payment, and the present application does not limit this. A method for calculating the amount of water sold provided in an embodiment of the present application supports water meters of various diameters and types.

[0036] The following will describe in detail the implementation steps of a method for calculating water sales volume provided in an embodiment of the present application in conjunction with the accompanying drawings.

[0037] Please refer to Figure 1 , Figure 1 This is a flow chart of the method for calculating the water sales volume of an embodiment of the present application. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flow chart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] The method of the embodiment of the present application comprises the following steps:

[0039] Step 1: First, a first signal is received, and the water outlet valve is controlled to open according to the received first signal;

[0040] Step 2: Afterwards, when the second signal is received, the water outlet valve is controlled to be closed according to the received second signal;

[0041] Step 3: Finally, the amount of water sold is determined by the time when the first signal is received, the time when the second signal is received, the reading of the water meter, the flow rate configured in the system, and the pipe loss;

[0042] The first signal is used to indicate the start of water sales, and the second signal is used to indicate the stop of water sales.

[0043] In steps 1 to 3 of the embodiment of the present application, a more accurate water output can be determined through the reception time of the first signal, the reception time of the second signal, the water meter reading, the configured flow rate, and the pipe loss.

[0044] In step 1 of some embodiments of the present application, first, a first signal is received, and the water outlet valve is controlled to open according to the received first signal. The first signal can be an electrical signal generated by an IC card contacting a card reader, or an electrical signal transmitted from a network end when a user scans a water sales QR code and pays a corresponding amount, or an electrical signal generated by a user pressing a water supply key or button, or an electrical signal generated by sliding an icon in a touch panel, or capturing a user's specific gestures and movements, or collecting a user's fingerprint or biometric information. When the system receives the electrical signal, the received electrical signal can generate a force to drive the water outlet valve to open, thereby controlling the water outlet valve to open.

[0045] In some embodiments, when the system receives the electrical signal, it also obtains the current water meter reading, wherein the method of obtaining the water meter reading varies according to different water meter models. The current water meter reading obtained can be recorded as the first water output value. It can be understood that the first water output value is the initial value of the water meter count in this water sales process.

[0046] In step 2 of some embodiments of the present application, when the water outlet valve is opened and the water output reaches the user's expectations, a second signal is received and the water outlet valve is controlled to be closed according to the received second signal.

[0047] In some embodiments, the second signal can be generated in the same way as the first signal, that is, when the first signal is generated by swiping an IC card, the second signal is also generated by swiping an IC card. If the first signal is generated by pressing a button, the second signal can also be generated by pressing a button, wherein the button can be a button, which is pressed to indicate the generation of the first signal, and is pressed again to pop up to indicate the generation of the second signal. The button can also be two buttons, which respectively represent the water supply button that generates the first signal and the water stop button that generates the second signal. When the user presses the button or swipes the IC card again, it usually indicates that the water output has reached the expected level. At this time, the water outlet valve is controlled to be closed according to the generated second signal, wherein the method for closing the water outlet valve varies according to the specific system.

[0048] In some embodiments, when the system receives the second signal, it will obtain the water meter reading again. The method of obtaining the water meter reading varies according to the different models of water meters. The water meter reading at this time can be recorded as the second water output value. It can be understood that the second water output value is the water meter count value after the end of this water sales process.

[0049] In the embodiments of the present application, the water sales volume measured by the water meter can be obtained by acquiring the reading values ​​of the water meter before and after the water sales are completed. At the same time, the water supply time can be obtained by receiving the first signal and the second signal. The actual water supply volume can be further determined based on the water supply time, which can be compared with the water supply volume measured by the water meter. In the event of a water meter failure, accurate water output data can be provided.

[0050] In step 3 of some embodiments of the present application, the amount of water sold is determined by the time when the first signal is received, the time when the second signal is received, the reading of the water meter, the flow rate configured in the system, and the pipe loss.

[0051] Optionally, the time used in selling water can be determined by the time when the first signal is received, that is, the time when the valve is opened; the time when the second signal is received, that is, the time when the valve is closed. Exemplarily, the total time used in selling water can be obtained by subtracting the time when the user swipes the card for the first time (the time when the user needs to buy water and swipes the card to start the valve to open the water supply) from the time when the user swipes the card for the second time (the time when the water has been discharged and the time when the card is swiped again). Afterwards, the first water sales volume can be determined by the total time used in selling water and the configured flow rate in the system. Among them, the first water sales volume is obtained based on the water supply time and the configured flow rate.

[0052] In some embodiments, the second water sales volume can be calculated by the first water output value and the second water output value. It can be understood that the first water output value is the initial value of the water meter count in the current water sales process, and the second water output value is the water meter count value after the current water sales process ends. Therefore, the water sales volume of this time can be obtained by subtracting the initial value of the water meter count in the current water sales process from the water meter count value after the current water sales process ends, which is recorded as the second water sales volume. The second water sales volume is obtained based on the water meter count.

[0053] In some embodiments, the actual water sales volume can be determined by the first water sales volume and the second water sales volume.

[0054] In some embodiments, the first water sales volume can be determined by first obtaining the flow rate configured by the system, and then calculating the product of the obtained configured flow rate and the determined water sales time, and this product can be used as the first water sales volume. It should be noted that the flow rate configured by the system is related to the pipe diameter used by the system. In some embodiments, the configured flow rate can also be calculated by the real-time monitored water pressure and the actual used pipe diameter. It should be noted that the monitored water pressure here does not refer to the pressure in the pipeline, but refers to the slope of the pressure drop in the pipe. The configured flow rate of the system is obtained by the pressure drop in the pipe and the pipe diameter of the pipe. Exemplarily, the flow rate (Q) can be calculated by the formula Q=VA, where V is the flow rate of the fluid (unit: m / s), and A is the cross-sectional area of ​​the object through which the fluid flows (unit: square meters). In addition, if the inner diameter D or radius R of the pipe is known, the cross-sectional area of ​​the pipe can also be calculated by the formula to obtain the flow rate. For example, the cross-sectional area A of the pipe can be calculated by the formula A=πD^2 / 4, where D is the inner diameter of the pipe.

[0055] In some embodiments, the actual water sales volume can be determined by calculating the difference between the first water sales volume and the second water sales volume. If the difference between the first water sales volume and the second water sales volume is less than a preset value, the actual water sales volume is determined based on the second water sales volume. In other words, there is a deviation between the water output calculated by the water meter and the water output calculated by configuring the flow rate and the water output time, and this deviation is within an acceptable range. This range can be determined by a pre-set numerical value (preset value). Then, the actual water sales volume can be determined based on the water output calculated by the water meter. Exemplarily, the acceptable deviation range can be determined by the maximum flow rate Q3 of the water meter, for example, 20% of Q3.

[0056] In some embodiments, if the difference between the first water sales volume and the second water sales volume is greater than a preset value, the actual water sales volume is determined based on the first water sales volume. In other words, there is a deviation between the water output volume calculated by the water meter and the water output volume calculated by configuring the flow rate and the water output time, and the deviation is large and has exceeded an acceptable range. This range can be determined by a pre-set value (preset value), then the actual water sales volume can be determined based on the water output volume calculated by configuring the flow rate and the water output time.

[0057] In some embodiments, the actual water sales volume can be determined based on the water output calculated by the water meter by first determining the pipe loss, and then determining the actual water sales volume by the pipe loss and the water output calculated by the water meter, wherein the pipe loss can be calculated by the configured flow rate and valve closing time, and the valve closing time is the difference between the time when the second signal is received and the time when the valve is completely closed. Optionally, the pipe loss can be calculated by the formula: R = T*Ve / 2, wherein R represents the pipe loss, T represents the valve closing time, and Ve represents the configured flow rate. Afterwards, the water output calculated by the water meter and the pipe loss are added to obtain the actual water sales volume.

[0058] Please refer to Figure 2 , Figure 2 Another flow chart of the method for calculating the water sales volume according to an embodiment of the present application is shown in FIG. Figure 2 The water selling scenario can be a multi-user group environment such as a school, hospital or community. For example, when a user needs to buy water, he or she touches the card reader with an IC card (tap the card). After that, the water supply system will read the current water meter reading, open the water valve, and the pipe will start to discharge water. If the water output reaches the user's expected amount, the user needs to swipe the card again (tap the card), and the water output valve will be closed. The system will compare the water output calculated by the water meter with the water output calculated by configuring the flow rate and water output time to see if the deviation between the two is within a reasonable range. If it is within a reasonable range, the pipe loss will be increased to obtain the actual water output, and the payment amount to be paid will be calculated; if the deviation exceeds a reasonable range, the water output calculation method will be switched to calculate the water output according to the water output time, and the actual amount to be paid will be calculated.

[0059] The above is a water selling scenario provided by the embodiment of the present application. The embodiment of the present application can also be used in another water selling scenario, such as Figure 3 As shown, Figure 3This is another flow chart of the method for calculating the water sales volume in an embodiment of the present application. For example, when a user needs to purchase water, he or she may not use a card as an information medium. Instead, he or she only needs to scan the QR code of the water supply equipment through the terminal, select the amount of water to be purchased and make payment. After the system receives the message of successful payment, it opens the water valve and water starts to flow out of the pipe. At this time, the water meter reading is read, and the water purchase volume corresponding to the user's payment amount is added to the initial reading of the water meter to obtain the target reading of the water meter (target water output). The real-time reading of the water meter is compared with the target reading to check whether the current reading of the water meter reaches the target reading. If the target reading is reached, the water valve is closed. If the target reading is not reached, the current flow rate of the monitoring system is within a reasonable fluctuation range. The system will read the reading of the water meter and calculate the real-time flow rate. If the real-time flow rate is within the fluctuation range, the current reading of the water meter will continue to be queried. If the real-time flow rate exceeds the fluctuation range, for example, the real-time flow rate is less than one-third of the system-configured flow rate for a long time (more than half a minute), the water output will be calculated according to time. After that, the water output will be calculated to see if the target water output is reached. If the target water output is not reached, the current flow rate will continue to be monitored. If the target water output is reached, the water valve will be closed. This method can save the cost of IC card production. When buying water, there is no need to carry an IC card specifically, which facilitates the process of users buying water. In addition, real-time payment and real-time water output can also avoid economic disputes that arise after users use IC cards to prepay in advance.

[0060] For the method for calculating the water sales volume provided above, the present application embodiment also provides a device for calculating the water sales volume, which is used to implement the method, such as Figure 4 As shown, Figure 4 This is a schematic block diagram of a module of a water sales volume calculation device according to an embodiment of the present application. The water sales volume calculation device includes:

[0061] An opening module, configured to control the water outlet valve to open according to the received first signal upon receiving the first signal;

[0062] A closing module, configured to control the water outlet valve to close according to the received second signal when receiving the second signal;

[0063] A determination module, used to determine the amount of water sold according to the time when the first signal is received, the time when the second signal is received, the reading of the water meter, the flow rate configured in the system, and the pipe loss;

[0064] The first signal is used to indicate the start of water sales, and the second signal is used to indicate the stop of water sales.

[0065] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0066] The present application also provides an electronic device, such as Figure 5 As shown, the electronic device includes a memory, one or more processors ( Figure 5 Only one is shown) and a computer program stored in the memory and executable on the processor. Wherein: the memory is used to store software programs and units, and the processor executes various functional applications and data processing by running the software programs and units stored in the memory to obtain the resources corresponding to the above-mentioned preset events. Specifically, the processor implements the above-mentioned method for calculating the water sales volume by running the above-mentioned computer program stored in the memory. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0067] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0068] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for calculating the water sales volume is implemented.

[0069] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0070] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0071] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, the steps of the method for calculating the water sales volume can be implemented.

[0072] It can be understood that the contents of the above method embodiments are all applicable to this computer program product, the functions specifically implemented by this computer program product embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0073] The method, device, electronic device, storage medium and computer program product for calculating the water sales volume provided in the embodiments of the present application can calculate the water output each time with high accuracy and small error. When the water pressure is unstable or the water meter equipment fails, the water output can be accurately calculated or switched to calculating the water output by time.

[0074] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0075] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.

[0076] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.

[0077] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.

[0078] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.

[0079] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages ​​include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages ​​or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.

[0080] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).

[0081] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.

Claims

1. A method for calculating the amount of water sold, It is characterized in that The following steps are involved: receiving a first signal, and opening a water outlet valve based on the first signal; receiving a second signal, and closing the water outlet valve based on the second signal; Determine the water sales volume according to the reception time of the first signal, the reception time of the second signal, the water meter reading, the configured flow rate, and the pipe loss; The first signal is used to indicate the start of water sales, and the second signal is used to indicate the stop of water sales.

2. The method for calculating the water sales volume according to claim 1, It is characterized in that Before opening the water outlet valve based on the first signal, the method further includes: Get the current water meter reading and obtain the first water output value.

3. The method for calculating the water sales volume according to claim 2, It is characterized in that After the water outlet valve is closed based on the second signal, the method further includes: Get the current water meter reading and obtain the second water output value.

4. The method for calculating the water sales volume according to claim 3, It is characterized in that The determining of the water sales volume according to the reception time of the first signal, the reception time of the second signal, the water meter reading, the configured flow rate and the pipe loss includes: Determine the water selling time according to the reception time of the first signal and the reception time of the second signal; Determine a first water sales volume according to the water sales time and the configured flow rate; Calculate a second water sales volume by using the first water output value and the second water output value; An actual water sales amount is determined based on the first water sales amount and the second water sales amount.

5. The method for calculating the water sales volume according to claim 4, It is characterized in that The determining the first water sales amount by the water sales time and the configured flow rate includes: Obtaining the configured flow rate; Calculating the product of the configured flow rate and the water selling time to obtain a first water selling amount; Wherein, the configured flow rate is determined according to the pipe diameter.

6. The method for calculating the water sales volume according to claim 4, It is characterized in that The determining the actual water sales amount based on the first water sales amount and the second water sales amount includes: Calculating a difference between the first water sales amount and the second water sales amount; If the difference is less than a preset value, determining the actual water sales volume according to the second water sales volume; If the difference is greater than or equal to the preset value, the actual water sales amount is determined according to the first water sales amount.

7. The method for calculating the water sales volume according to claim 6, It is characterized in that The determining the actual water sales volume according to the second water sales volume comprises: Determine the pipe loss according to the configured flow rate and valve closing time; Calculating the sum of the pipe loss and the second water sales volume to obtain the actual water sales volume; The valve closing time is the difference between the time when the second signal is received and the time when the valve is completely closed.

8. The method for calculating the water sales volume according to claim 7, It is characterized in that The determining of the pipe loss according to the configured flow rate and valve closing time includes: The pipe loss is determined by the first formula, which is expressed as: R = T*Ve / 2; Among them, R represents pipe loss, T represents valve closing time, and Ve represents configured flow rate.

9. An electronic device, It is characterized in that The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the method for calculating the water sales volume according to any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method for calculating the water sales volume according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • One-card and multi-meter multi-mode charging radio frequency card prepaid intelligent water meter and charging method

    CN105488913A

  • Control method and control device for water outlet flow of water selling equipment

    CN110889930A

  • Water quality and weighing real-time monitoring system of automatic water vending machine and monitoring method of water quality and weighing real-time monitoring system

    CN116222669A

  • System and method for accurately calculating water discharge amount of water purifier

    CN117688330A

  • Water-saving type automatic water vending machine

    CN214796062U