Cup quantity determination method, beverage machine, electronic equipment and storage medium

By judging whether the generation process of the target object has entered the constant pressure stage in the high-pressure brewing equipment and obtaining the corresponding cup quantity parameters, the problem of inaccurate cup quantity caused by inconstant pipeline pressure is solved, and a more accurate cup quantity calculation is achieved.

CN120226912APending Publication Date: 2025-07-01KALERM TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311867008.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-31
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In high-pressure brewing equipment, the pipeline pressure is not constant, resulting in inconsistent water replenishment during the pressure storage stage, affecting the accuracy of the actual cup quantity.

Method used

By determining whether the generation process of the target object has entered the constant pressure stage, the cup size parameters are obtained. This parameter represents the cup size corresponding to a pulse signal of the flowmeter in the constant pressure stage, and then the cup size generated by the target object is determined.

Benefits of technology

The cup quantity is calculated based on the pulse signal in the constant pressure stage, avoiding the influence of air pressure fluctuations and improving the calculation accuracy of cup quantity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120226912A_ABST
    Figure CN120226912A_ABST
Patent Text Reader

Abstract

The invention discloses a cup quantity determination method, a beverage machine, electronic equipment and a storage medium, and the method comprises the steps: judging whether the generation process of a target object enters a constant pressure stage or not, when the generation process of the target object enters the constant pressure stage, obtaining a cup quantity parameter which represents a cup quantity corresponding to a pulse signal of a flowmeter in the constant pressure stage, and then determining the cup amount generated by the target object based on the cup amount parameter. Due to the fact that the cup quantity parameter is the cup quantity corresponding to one pulse signal of the flowmeter in the constant-pressure stage, the cup quantity generated by the target object can be calculated based on the pulse signal in the constant-pressure stage, influence of air pressure fluctuation is avoided, and calculation of the cup quantity generated by the target object is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] When using a device to produce a target object that needs to be brewed with water, especially a device that needs to produce the target object through high-pressure brewing, the specific process of such a device for producing the target object includes a pressure accumulation stage and a constant pressure stage. Among them, the pressure accumulation stage is to increase the pressure in the brewing chamber of the device to the target pressure value, so as to enter the constant pressure stage and the device discharges the target object. In this process, the water intake of the device includes the makeup water for the pressure accumulation stage and the water output for the constant pressure stage. The makeup water is used to increase the pressure to the target pressure value, and the water output corresponds to the target cup volume.

[0003] In the related art, when using a device to produce a target object with a target cup volume, the makeup water for the pressure accumulation stage is determined according to the raw material amount of the target object. In other words, a fixed makeup water for the pressure accumulation stage corresponds to the raw material amount of a target object. For example, when making 40 g of coffee, the output amount in the constant pressure stage is 40 g. Among them, the makeup water for the pressure accumulation stage corresponding to the amount of coffee powder for making 40 g of coffee is 32 g, and the actual total water intake is 72 g.

[0004] However, the pipeline pressure in the device is not constant, so the makeup water for the pressure accumulation stage corresponding to the raw material amount of the same target object is also not constant. At this time, if the same raw material amount of the target object is still processed according to a fixed makeup water amount, the influence of the pipeline pressure is ignored, which affects the accuracy of determining the actual cup volume. Summary of the Invention

[0005] In view of this, the present application discloses a cup volume determination method, a beverage machine, an electronic device and a storage medium, which are used to solve the problem of inaccurate cup volume determination caused by the non-constant pipeline pressure in the pressure accumulation stage.

[0006] On the one hand, the present application provides a cup volume determination method, including:

[0007] Judging whether the generation process of the target object enters the constant pressure stage;

[0008] If so, obtaining a cup volume parameter, where the cup volume parameter represents the cup volume corresponding to one pulse signal of the flow meter in the constant pressure stage;

[0009] Based on the cup volume parameter, determining the cup volume of the generated target object.

[0010] In a possible embodiment, obtaining the cup volume parameter corresponding to the target object includes:

[0011] Calculating the ratio of the actual cup volume of the generated target object to the target cup volume of the generated target object;

[0012] Multiply the ratio by a preset parameter to obtain a cup volume parameter; where the preset parameter represents the cup volume corresponding to one pulse signal of the flowmeter.

[0013] In one possible embodiment, determining whether the generation process of the target object enters a constant pressure stage includes:

[0014] Obtain the flowmeter pulse signal corresponding to the generation process;

[0015] Based on the flowmeter pulse signal, determine whether the generation process of the target object enters a constant pressure stage.

[0016] In one possible embodiment, based on the flowmeter pulse signal, determining whether the generation process of the target object enters a constant pressure stage includes:

[0017] Determine the current pulse signal period corresponding to the flowmeter pulse signal;

[0018] When the current pulse signal period meets a preset condition, determine that the generation process of the target object enters a constant pressure stage.

[0019] In one possible embodiment, when the current pulse signal period meets a preset condition, determining that the generation process of the target object enters a constant pressure stage includes:

[0020] When the current pulse signal period is greater than the previous pulse signal period, use the current pulse signal period as the maximum pulse period; where the previous pulse signal period is the maximum pulse period determined based on the previously obtained flowmeter pulse signal; or

[0021] When the current pulse signal period is less than the previous pulse signal period, use the previous pulse signal period as the maximum pulse period;

[0022] Based on the maximum pulse period, determine that the generation process of the target object enters a constant pressure stage.

[0023] In one possible embodiment, based on the maximum pulse period, determining that the generation process of the target object enters a constant pressure stage includes:

[0024] When the maximum pulse period is greater than a preset period, adjust at least one parameter;

[0025] When there is one parameter among the adjusted at least one parameter that is greater than or equal to the preset threshold set for the parameter, determine that the generation process of the target object enters a constant pressure stage.

[0026] In one possible embodiment, based on the maximum pulse period, determining that the generation process of the target object enters a constant pressure stage includes:

[0027] When the maximum pulse period is greater than a first preset value, adjust a first parameter, a second parameter, and a third parameter; the first parameter, the second parameter, and the third parameter characterize the number of pulse signals currently acquired.

[0028] When the adjusted first parameter is greater than or equal to a first threshold, or the adjusted second parameter is greater than or equal to a second threshold, or the adjusted third parameter is greater than or equal to a third threshold, determine that the generation process of the target object enters a constant voltage stage.

[0029] In a possible embodiment, the method further includes:

[0030] When the maximum pulse period is less than or equal to the first preset value, determine whether the maximum pulse period is greater than a second preset value; wherein, the second preset value is less than the first preset value.

[0031] If so, adjust the second parameter and the third parameter.

[0032] When the first parameter is greater than or equal to the first threshold, or the adjusted second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, determine that the generation process of the target object enters a constant voltage stage.

[0033] In a possible embodiment, the method further includes:

[0034] When the maximum pulse period is less than or equal to the second preset value, determine whether the maximum pulse period is greater than a third preset value; wherein, the third preset value is less than the second preset value.

[0035] If so, adjust the third parameter.

[0036] When the first parameter is greater than or equal to the first threshold, or the second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, determine that the generation process of the target object enters a constant voltage stage.

[0037] In a possible embodiment, determining whether the maximum pulse period is greater than the second preset value includes: determining whether the maximum pulse period is greater than the second preset value and greater than an iteration parameter; determining whether the maximum pulse period is greater than the third preset value includes: determining whether the maximum pulse period is greater than the second preset value and greater than an iteration parameter.

[0038] In a possible embodiment, after determining that the generation process of the target object enters the constant voltage stage, it further includes:

[0039] Update the iteration parameter based on the maximum pulse period.

[0040] In a possible embodiment, determining the cup volume of the target object generated based on the cup volume parameter includes:

[0041] Count the number of pulse signals of the statistical flowmeter in the constant pressure stage;

[0042] Multiply the cup volume parameter by the number of pulse signals to obtain the cup volume generated by the target object.

[0043] On the one hand, an embodiment of the present application provides a beverage machine, which includes a water supply system, a flowmeter, a brewing system, and a control module; wherein,

[0044] The brewing system is used to gradually pressurize the brewing material to the constant pressure stage and form a beverage;

[0045] The control module is used to judge whether the generation process of the beverage enters the constant pressure stage; if so, obtain the cup volume parameter, where the cup volume parameter represents the cup volume corresponding to one pulse signal of the flowmeter in the constant pressure stage; based on the cup volume parameter, determine the cup volume of the generated beverage.

[0046] In a possible embodiment, the control module includes a judgment unit, an acquisition unit, and a calculation unit; wherein,

[0047] The judgment unit is used to determine whether the generation process of the beverage enters the constant pressure stage based on the flowmeter pulse signal after obtaining the flowmeter pulse signal corresponding to the generation process;

[0048] The acquisition unit is used to acquire the cup volume parameter and the flowmeter pulse signal in the constant pressure stage;

[0049] The calculation unit is used to determine the cup volume of the generated beverage based on the cup volume parameter.

[0050] In a possible embodiment, the calculation unit is further used to:

[0051] Calculate the ratio of the actual cup volume generated by the target object to the target cup volume generated by the target object;

[0052] Multiply the ratio by a preset parameter to obtain the cup volume parameter; wherein, the preset parameter represents the cup volume corresponding to one pulse signal of the flowmeter.

[0053] In a possible embodiment, the control module further includes a storage unit for storing the cup volume parameter in the constant pressure stage; then the calculation unit is used to calculate the number of pulse signals of the flowmeter that need to be acquired in the constant pressure stage according to the cup volume parameter and the target cup volume of the generated beverage; after acquiring the pulse signals with the number of pulse signals in the constant pressure stage, multiply the cup volume parameter by the number of pulse signals to obtain the cup volume generated by the target object.

[0054] On the one hand, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor is caused to execute the steps of any of the above cup volume determination methods.

[0055] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which includes program code. When the storage medium runs on an electronic device, the program code is used to cause the electronic device to execute the steps of any one of the above-mentioned cup volume determination methods.

[0056] The beneficial effects of the present application are as follows:

[0057] An embodiment of the present application provides a cup volume determination method, a beverage machine, an electronic device and a storage medium. It judges whether the generation process of the target object enters the constant pressure stage. When it is determined to enter the constant pressure stage, cup volume parameters are obtained. The cup volume parameters represent the cup volume corresponding to one pulse signal of the flowmeter in the constant pressure stage. Then, based on the cup volume parameters, the cup volume of the generated target object is determined. Since the cup volume parameters are the cup volume corresponding to one pulse signal of the flowmeter in the constant pressure stage, when calculating the cup volume of the generated target object, it can be realized based on the pulse signal in the constant pressure stage, and thus it is not affected by air pressure fluctuations, making the calculation of the cup volume of the target object more accurate.

[0058] Other features and advantages of the present application will be described in the following specification, and, in part, will be obvious from the specification, or will be understood by implementing the present application. The objectives and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written specification, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.

[0060] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application.

[0061] Figure 2 It is another schematic diagram of an application scenario provided by an embodiment of the present application.

[0062] Figure 3 It is a flowchart of the implementation of a cup volume determination method provided by an embodiment of the present application.

[0063] Figure 4A It is a schematic diagram of the pressure curve of the generation process of a target object provided by an embodiment of the present application.

[0064] Figure 4B It is a schematic diagram of the period of the pulse signal of the flowmeter provided by an embodiment of the present application.

[0065] Figure 5 The implementation flowchart of a constant pressure stage determination method provided by an embodiment of this application.

[0066] Figure 6 The implementation flowchart of another constant pressure stage determination method provided by an embodiment of this application.

[0067] Figure 7 The implementation flowchart of another constant pressure stage determination method provided by an embodiment of this application.

[0068] Figure 8 The schematic diagram of a coffee cup volume determination method provided by an embodiment of this application.

[0069] Figure 9 The schematic diagram of the structure of a control module provided by an embodiment of this application.

[0070] Figure 10 The schematic diagram of the structure of an electronic device provided by an embodiment of this application. Detailed implementation manners

[0071] In order to make the objectives, technical solutions, and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The specific circuits in the circuit embodiments can also be applied to the device embodiments. It should be noted that in the description of this application, "a plurality of" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The connection between A and B can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0072] It should be noted that specific details are set forth in the following description to facilitate a thorough understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar generalizations without departing from the connotation of this application. Therefore, this application is not limited by the specific implementation manners disclosed below. The subsequent description in the specification is the preferred implementation manner for implementing this application, but the description is for the purpose of explaining the general principles of this application and is not intended to limit the scope of this application. The protection scope of this application shall be defined by the appended claims.

[0073] Overview

[0074] The following briefly introduces the design concept of the embodiments of this application:

[0075] When using a device to produce a target object that needs to be brewed with water, especially a device that needs to produce the target object through high-pressure brewing, the specific process of producing the target object by such a device includes a pressure accumulation stage and a constant pressure stage. Among them, the pressure accumulation stage is to increase the pressure in the brewing chamber of the device to the target pressure value, so as to enter the constant pressure stage and the device discharges the target object. In this process, the water intake of the device includes the water replenishment amount for the pressure accumulation stage and the water output amount for the constant pressure stage. The water replenishment amount is used to increase the pressure to the target pressure value, and the water output amount corresponds to the target cup amount.

[0076] In the related art, when using a device to produce a target object with a target cup amount, the water replenishment amount in the pressure accumulation stage is determined according to the raw material amount of the target object. In other words, a fixed water replenishment amount in the pressure accumulation stage corresponds to the raw material amount of a target object. For example, when making 40g of coffee, the output amount in the constant pressure stage is 40g. Among them, the water replenishment amount in the pressure accumulation stage corresponding to the coffee powder amount for making 40g of coffee is 32g, so the actual total water intake is 72g.

[0077] However, the pipeline pressure in the device is not constant, so the water replenishment amount in the pressure accumulation stage corresponding to the raw material amount of the same target object is also not constant. At this time, if the same raw material amount of the target object is still processed according to a fixed water replenishment amount, the influence of the pipeline pressure is ignored, which affects the accuracy of determining the actual cup amount.

[0078] In view of this, the embodiments of the present application provide a cup amount determination method, a beverage machine, an electronic device and a storage medium, which determine whether the generation process of the target object enters the constant pressure stage. When it is determined that the constant pressure stage is entered, a cup amount parameter is obtained. The cup amount parameter represents the cup amount corresponding to a pulse signal of the flow meter in the constant pressure stage. Then, based on the cup amount parameter, the cup amount of the generated target object is determined. Since the cup amount parameter is the cup amount corresponding to a pulse signal of the flow meter in the constant pressure stage, when calculating the cup amount of the generated target object, it can be realized based on the pulse signal in the constant pressure stage, and thus it is not affected by air pressure fluctuations, making the calculation of the cup amount of the target object more accurate.

[0079] The following describes the preferred embodiments of the present application with reference to the accompanying drawings of the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. And without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0080] Exemplary Application Scenarios

[0081] The preferred embodiments of the present application will be described below in conjunction with the accompanying drawings of the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. And without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0082] As Figure 1 shown, it is a schematic diagram of an application scenario provided by an embodiment of the present application. The application scenario schematic diagram includes a device 101 for making a target object and a processor 102 disposed inside the device 101. Among them, when the target object is coffee, the device 101 is a coffee machine; when the target object is tea, the device 101 can be a tea extractor. The processor 102 determines whether the generation process of the target object enters a constant pressure stage, and when it is determined that the constant pressure stage is entered, obtains the cup volume parameter of the target object from the device 101, and determines the cup volume of the target object based on the cup volume parameter.

[0083] As Figure 2 shown, it is a schematic diagram of an application scenario provided by an embodiment of the present application. In this application scenario schematic diagram, it includes a server 201 and a terminal device 202. Among them, the server 201 and the terminal device 202 are connected through a communication network. Of course, the communication network can be a wired network or a wireless network.

[0084] The server 201 can be an independent physical server 201, or an edge device in the field of cloud computing, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, cloud functions, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (English name: Content Delivery Network, abbreviated as CDN), and big data and artificial intelligence platforms. The terminal device 202 is a device for making a target object, such as a coffee machine, a tea extractor, etc. Among them, the terminal device 202 can be installed with a client related to cup volume determination. The client can be software (for example, APP, browser, short video software, etc.), or a web page, a small program, etc. The user of the terminal device 202 can use the client through the terminal device 202 for human-computer interaction.

[0085] It should be noted that the power supply method in the embodiments of the present application can be executed independently by the server 201 or the terminal device 202, or jointly executed by the terminal device 202 and the server 201. For example, when jointly executed by the server 201 and the terminal device 202, the server 201 determines whether the generation process of the target object enters the constant pressure stage, and when it is determined that the constant pressure stage is entered, the server 201 instructs the terminal device 202 to obtain the cup volume parameter corresponding to the target object, where the cup volume parameter represents the cup volume corresponding to one pulse signal of the flowmeter; when the terminal device 202 obtains the cup volume parameter corresponding to the target object, the terminal device 202 transmits the cup volume parameter to the server 201; the server 201 then determines the cup volume of the generated target object based on the cup volume parameter.

[0086] Exemplary Method

[0087] Next, in combination with the above system architecture, the spool control method provided by the exemplary embodiment of the present application will be described with reference to the accompanying drawings. It should be noted that the above system architecture is only shown for the convenience of understanding the spirit and principle of the present application, and the embodiments of the present application are not limited in this regard.

[0088] As Figure 3 shown, it is a flowchart of the implementation of a cup volume determination method provided by an embodiment of the present application. Here, the processor shown in Figure 1 is used as the execution subject for introduction. The specific implementation process of this method is as follows:

[0089] S301, determine whether the generation process of the target object enters the constant pressure stage;

[0090] S302, if so, obtain the cup volume parameter, where the cup volume parameter represents the cup volume corresponding to one pulse signal of the flowmeter in the constant pressure stage;

[0091] S303, determine the cup volume of the generated target object based on the cup volume parameter.

[0092] In the embodiments of the present application, by determining whether the generation process of the target object enters the constant pressure stage, when it is determined that the constant pressure stage is entered, the cup volume parameter is obtained, where the cup volume parameter represents the cup volume corresponding to one pulse signal of the flowmeter in the constant pressure stage, and then the cup volume of the generated target object is determined based on the cup volume parameter. Since the cup volume parameter is the cup volume corresponding to one pulse signal of the flowmeter in the constant pressure stage, when calculating the cup volume of the generated target object, it can be achieved based on the pulse signal in the constant pressure stage, and thus it is not affected by air pressure fluctuations, making the calculation of the cup volume of the target object more accurate.

[0093] Based on this, one of the core points of the embodiments of the present application when obtaining the cup volume parameter. Among them, the specific way to obtain the cup volume parameter can be: calculating the ratio of the actual cup volume of the target object to the target cup volume generated in the constant pressure stage; multiplying the ratio by a preset parameter to obtain the cup volume parameter; where the preset parameter represents the cup volume corresponding to one pulse signal of the flow meter.

[0094] For example, when making coffee with a coffee machine, a k value (preset parameter) is set for the coffee machine, and the specific value of the k value is 0.1. Then, when making coffee with a target cup volume of 150 g through the coffee machine, but the actual cup volume of the obtained coffee is 120 g, the cup volume parameter is further obtained as 120 / 150 * 0.1 = 0.08, and this value is input into the coffee machine.

[0095] Through the above method, the cup volume parameter is obtained by using the ratio between the actual cup volume and the target cup volume generated in the constant pressure stage. Thus, through the cup volume parameter, the determination process of the cup volume generated by the target object can be transformed into the constant pressure stage, and thus it is not affected by air pressure fluctuations.

[0096] It should be noted that in a possible embodiment, the cup volume parameter corresponding to the target object can be obtained first, and then it is judged whether the generation process of the target object enters the constant pressure stage. When entering the constant pressure stage, based on the cup volume parameter, the cup volume generated by the target object is determined.

[0097] Considering that when using a device to make a target object, such as coffee, the external water source generally first passes through a flow meter, then enters a water pump, a boiler, and finally flows out through a brewer. In this process, the pressure in the brewing chamber inside the brewer generally needs to reach the target pressure value to flow out coffee. Among them, the target pressure value is determined according to the type and model of the device. For example, the target pressure value corresponding to a coffee machine is generally 7 bar, but there are also differences between the target pressure values of different coffee machines. Before flowing out the target object, it is necessary to pump water through the water pump for pressure accumulation until the pressure in the brewing chamber inside the brewer rises to 7 bar before coffee can flow out normally. And during the pressure accumulation stage, the pipeline pressure inside the entire device is in a fluctuating state. As Figure 4A shown is the pressure curve change during the generation process of the target object, Figure 4B is the period diagram of the flow meter pulse signal, where Figure 4A the relatively dense stage is the constant pressure stage, and after stretching it, the overall trend is basically similar to Figure 4B the basic one.

[0098] Based on this, when determining whether the manufacturing process of the target object enters the constant pressure stage, it can be achieved based on the flowmeter pulse signal, thus eliminating the need to add a pressure sensor and saving costs. First, obtain the flowmeter pulse signal corresponding to the generation process of the target object; then, based on the flowmeter pulse signal, determine whether the generation process of the target object enters the constant pressure stage. Specifically: determine the current pulse signal period corresponding to the flowmeter pulse signal; then, when the current pulse signal period meets the preset conditions, determine that the generation process of the target object enters the constant pressure stage, including:

[0099] When the current pulse signal period is greater than the previous pulse signal period, use the current pulse signal period as the maximum pulse period; where the previous pulse signal period is the maximum pulse period determined based on the previously obtained flowmeter pulse signal; or when the current pulse signal period is less than the previous pulse signal period, use the previous pulse signal period as the maximum pulse period; based on the maximum pulse period, determine that the generation process of the target object enters the constant pressure stage.

[0100] Among them, when the current pulse signal period is less than the previous pulse signal period, still use the previous pulse signal period as the maximum pulse period. This is because the pulse signal period has reached the maximum value, and the maximum value represents the period when approaching the maximum pressure. Other lower values that appear later are likely to be the pulse signal periods during the constant pressure stage. Therefore, only considering the maximum pulse period for judgment is more accurate.

[0101] It should be understood that during the pressure accumulation stage, the pulse signal period of the flowmeter shows an increasing trend. If it is determined from the change curve of the pulse signal period corresponding to the flowmeter pulse signal that the pulse signal period reaches the maximum value, it is considered that the manufacturing process of the target object is in the constant pressure stage; on the contrary, if it is determined from the change curve of the pulse signal period corresponding to the flowmeter pulse signal that the pulse signal period does not reach the maximum value and is still in an increasing trend, it is initially considered that the generation process of the target object is in the pressure accumulation stage. At this time, based on the maximum pulse period, it is necessary to further determine whether the generation process of the target object enters the constant pressure stage. The specific determination methods include:

[0102] When the maximum pulse period is greater than the preset period, adjust at least one parameter;

[0103] Among the adjusted at least one parameter, when there is a parameter greater than or equal to the preset threshold set for the parameter, determine that the generation process of the target object enters the constant pressure stage.

[0104] In this way, when the obtained maximum pulse period reaches the preset period, it is not directly determined to enter the constant pressure stage, but subsequent pulse signals are continuously obtained through at least one parameter, improving the accuracy of the constant pressure stage judgment.

[0105] Exemplarily, referring to Figure 5 , a constant pressure stage determination method provided by an embodiment of the present application, and the specific implementation method process includes the following steps:

[0106] S501, determine whether the maximum pulse period corresponding to the current pulse signal is greater than a first preset value;

[0107] Among them, before determining the maximum pulse period of the current pulse signal, it is necessary to first filter the acquired pulse signal to remove abnormal data.

[0108] Furthermore, determine whether the maximum pulse period is greater than the first preset value. Among them, the first preset value is determined according to the type of device and the signal type. In this application, the unit of the pulse signal period is millisecond (ms). The unit is omitted when describing the pulse period signal later. It can take a value of 120, or it can also take values such as 119 and 118. No specific limitation is made here. The specific value mainly depends on the pipeline difference in the device. If the pipeline pressure in the device is large, a larger value is taken; otherwise, a smaller value is taken. The first preset value represents the preset maximum pulse period. When the maximum value of the pulse signal period of the flowmeter appears, it can be considered that the subsequent stage is a constant pressure stage. Then, when the maximum pulse period corresponding to the current pulse signal is greater than the first preset value, it can be considered that the generation process of the current target object is close to the constant pressure stage. Whether to enter the constant pressure stage specifically still requires obtaining subsequent pulse signals for judgment.

[0109] S501, when the maximum pulse period is greater than the first preset value, adjust the first parameter, the second parameter, and the third parameter;

[0110] Among them, the first parameter, the second parameter, and the third parameter represent the number of currently acquired pulse signals. When adjusting the first parameter, the second parameter, and the third parameter, it can be to add a set value to the first parameter, the second parameter, and the third parameter respectively. For example: add 1. In the embodiment of the present application, the adjustment method of the first parameter, the second parameter, and the third parameter is not specifically limited.

[0111] S503, when the adjusted first parameter is greater than or equal to the first threshold, or the adjusted second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, determine that the generation process of the target object enters the constant pressure stage.

[0112] Among them, the first threshold, the second threshold, and the third threshold represent the preset number of pulse signals. The value of the first threshold can be 6. Of course, it can also take values such as 5 and 7; the value of the second threshold can be 12. Of course, it can also take values such as 11 and 13; the value of the third threshold can be 18. Of course, it can also take values such as 17 and 19. No specific limitation is made here for the values of the first threshold, the second threshold, and the third threshold.

[0113] When it is determined that the adjusted first parameter is greater than or equal to the first threshold, or the adjusted second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, it is determined that the generation process of the target object enters the constant pressure stage. In this way, after it is determined that the generation process of the target object is approaching the constant pressure stage, subsequent pulse signals are continuously obtained through the first parameter, the second parameter, or the third parameter, improving the accuracy of the determination in the constant pressure stage.

[0114] In a possible embodiment, referring to Figure 6 , Figure 6 the method shown also includes:

[0115] S601, when the maximum pulse period is less than or equal to the first preset value, determine whether the maximum pulse period is greater than the second preset value;

[0116] Wherein, the second preset value is less than the first preset value, and the second preset value is also determined according to the type of the device and the signal type. It can take the value of 110, or can also take the value of 109, 108, etc. No specific limitation is made here. The specific value mainly depends on the pipeline difference in the device. If the pipeline pressure in the device is large, the value is larger; otherwise, the value is smaller. The second preset value also represents the preset maximum pulse period. When the maximum value of the pulse signal period of the flowmeter appears, it can be considered that the subsequent stage is the constant pressure stage. Then, when the maximum pulse period corresponding to the current pulse signal is greater than the second preset value, it can be considered that the generation process of the current target object is approaching the constant pressure stage. Whether it specifically enters the constant pressure stage still needs to obtain subsequent pulse signals for judgment.

[0117] It should be noted that when determining whether the maximum pulse period is greater than the second preset value, another judgment step can be added: determine whether the maximum pulse period is greater than the iteration parameter Hmax. Then step S601 is essentially: when the maximum pulse period is less than or equal to the first preset value, determine whether the maximum pulse period is greater than the second preset value and greater than the iteration parameter.

[0118] Among them, after each determination of entering the constant pressure stage, the iterative parameter Hmax needs to be updated. The value of the iterative parameter Hmax is determined by the maximum pulse period of the previously generated target object. The specific calculation method is Hmax = (Tmax – X) / 10 * 10, where X takes the value of 20. Of course, it can also take values such as 18 or 19, and specific limitations are not made here. Tmax is the maximum pulse period. When the device generates the target object for the first time, the default value of Hmax can be equal to the minimum value among multiple preset pulse signal periods. For example, when there are only two preset maximum pulse periods, namely the first preset value and the second preset value, the default value of Hmax is equal to the second preset value; if there is another preset value smaller than the second preset value, the default value of Hmax is equal to the other preset value. After each generation of the target object and after turning off the water pump, the iterative parameter Hmax participates in numerical iteration. Of course, the default value of Hmax can also be smaller than the minimum value among multiple preset pulse signal periods, and specific limitations are not made here.

[0119] By continuously updating the value of the iterative parameter Hmax, not only can the judgment steps be reduced, but also the value of Hmax can continuously approach the pulse signal period under the actual maximum pressure, that is, it is closer to the pulse signal period in the constant pressure stage. At this time, the calculated cup volume is more accurate.

[0120] S602. When the maximum pulse period is greater than the second preset value, adjust the second parameter and the third parameter;

[0121] When it is determined that the maximum pulse period is greater than the second preset value (if the iterative parameter is considered, it is also necessary to determine that the maximum pulse period is greater than the iterative parameter), adjust the second parameter and the third parameter. The specific adjustment method can be to add a set value to the second parameter and the third parameter respectively. For example, add 1. In the embodiments of the present application, the adjustment method for the second parameter and the third parameter is not specifically limited.

[0122] S603. When the first parameter is greater than or equal to the first threshold, or the adjusted second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, determine that the generation process of the target object enters the constant pressure stage.

[0123] When it is determined that the first parameter is greater than or equal to the first threshold, or the adjusted second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, determine that the generation process of the target object enters the constant pressure stage. In this way, after it is determined that the generation process of the target object is approaching the constant pressure stage, subsequent pulse signals are continuously obtained through the first parameter, the second parameter, or the third parameter, improving the accuracy of the judgment in the constant pressure stage.

[0124] In a possible embodiment, refer toFigure 7 , Figure 7 The method shown also includes:

[0125] S701, when the maximum pulse period is less than or equal to a second preset value, determine whether the maximum pulse period is greater than a third preset value;

[0126] Among them, the third preset value is less than the second preset value, and the third preset value is also determined according to the type of device and the signal type. It can take a value of 100, or it can take a value of 99, 98, etc. There is no specific limitation here. The specific value mainly depends on the pipeline difference in the device. If the pipeline pressure in the device is large, the value is larger; otherwise, the value is smaller. The third preset value also represents the preset maximum pulse period. When the maximum value of the pulse signal period of the flowmeter appears, it can be considered that the subsequent is a constant pressure stage. Then, when the maximum pulse period corresponding to the current pulse signal is greater than the third preset value, it can be considered that the generation process of the current target object is close to the constant pressure stage. Whether to enter the constant pressure stage specifically still requires obtaining subsequent pulse signals for judgment.

[0127] It should be noted that when determining whether the maximum pulse period is greater than the third preset value, another judgment step can be added: determine whether the maximum pulse period is greater than the iteration parameter. Then, step S701 is essentially: when the maximum pulse period is less than or equal to the second preset value, determine whether the maximum pulse period is greater than the third preset value and greater than the iteration parameter.

[0128] S702, when the maximum pulse period is greater than the third preset value, adjust the third parameter;

[0129] When it is determined that the maximum pulse period is greater than the third preset value (if the iteration parameter is considered, it is also necessary to determine that the maximum pulse period is greater than the iteration parameter), adjust the third parameter. The specific adjustment method can be to add a set value to the third parameter, such as adding 1. In the embodiments of the present application, the adjustment method for the third parameter is not specifically limited.

[0130] S703, when the first parameter is greater than or equal to the first threshold, or the second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, determine that the generation process of the target object enters the constant pressure stage.

[0131] When it is determined that the first parameter is greater than or equal to the first threshold, or the second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, determine that the generation process of the target object enters the constant pressure stage. In this way, after it is determined that the generation process of the target object is close to the constant pressure stage, subsequent pulse signals are continuously obtained through the first parameter, the second parameter, or the third parameter, improving the accuracy of the constant pressure stage judgment.

[0132] After determining that the generation process of the target object has entered the constant pressure stage through the above method, further, step S303 is executed, that is, based on the cup volume parameter, the cup volume of the target object is determined. The specific determination method can be: counting the number of pulse signals of the flowmeter in the constant pressure stage; multiplying the cup volume parameter by the number of pulse signals to obtain the cup volume of the target object.

[0133] To elaborate on the above technical solution in more detail, the following will be illustrated through a specific coffee-making scenario. As Figure 8 shown, it is a schematic diagram of a method for determining the coffee cup volume.

[0134] In Figure 8 , the first preset value H1 is set to 120, the second preset value H2 is set to 110, the third preset value H3 is set to 100, the first threshold C1 is set to 6, the second threshold C2 is set to 12, the third threshold C3 is set to 18, and the default value of the iteration parameter Hmax is 100. The above values are all preset values of the coffee machine. Due to machine differences, the preset values of each coffee machine are not the same.

[0135] When determining the coffee cup volume, first collect the flowmeter pulse signal. According to the change trend of the pulse signal period, determine whether it is the pressure accumulation stage. When it is determined to be the pressure accumulation stage, after filtering the collected flowmeter pulse signal, obtain the value t of the current maximum pulse period Tmax, and first compare t with H1. Suppose the first Tmax is 50, then Tmax is less than H1, Tmax is less than H2, and Tmax is less than H3. At this time, the loop count is incremented by 1, and then the above steps are repeated until the determined maximum pulse period reaches 100.

[0136] When the maximum pulse period is above 100, taking 105 as an example, Tmax is less than H1, Tmax is less than H2, but Tmax is greater than H3, then the third parameter P3 is incremented by 1. At this time, the value of P3 is 1, and P3 is less than C3. At this time, the loop count is incremented by 1, and then the above steps are repeated. During the repeated process, the maximum pulse period that may be obtained is 100, but since the previously obtained maximum pulse period is 105, the judgment logic continues with 105 as the maximum pulse period.

[0137] Continue to collect the flowmeter pulse signal. When the maximum pulse period is above 110, taking 115 as an example, Tmax is less than H1, but Tmax is greater than H2, and Tmax is greater than H3, then the second parameter P2 is incremented by 1. At this time, the value of P2 is 1; on the basis of the value of P3 being 1, an additional number of acquisitions between 105 and 115 is added. For example, if the flowmeter pulse signal is acquired 2 times between 105 and 115, then P3 is incremented by 2. At this time, the value of P3 is 3.

[0138] Continue to collect the pulse signals of the flowmeter. When the maximum pulse period is above 120, taking 155 as an example, if Tmax is greater than H1, Tmax is greater than H2, and Tmax is greater than H3, then the first parameter P1 is incremented by 1. At this time, the value of P1 is 1. Based on the value of P2 being 1 and the value of P3 being 3, an additional number of acquisitions between 115 and 125 is added. For example, if 12 acquisitions are made between 115 and 125, then P2 and P3 are incremented by 12. At this time, the value of P2 is 13 and the value of P3 is 15. At this time, if P2 > 12, it is determined that the generation process of the target object enters the constant pressure stage, and the number of pulse signals in the constant pressure stage is calculated. Entering the constant pressure stage, the above judgment logic will not be repeated next time, and the number of pulse signals will be directly increased continuously until the required amount of coffee cups is obtained, then the water pump is turned off, and the iterative parameter Hmax = (Tmax - 20) / 10*10 is updated.

[0139] In the above process, H3 = 100. This value is generally designed to be relatively slightly lower to prevent some coffee machines from having a relatively small pressure due to process errors, and the maximum pulse period value when they reach the constant pressure stage is less than 100, resulting in the inability to find the constant pressure stage, that is, preventing the setting from being too high and unable to find the constant pressure stage, and then resulting in the inability to calculate the amount of coffee cups normally. Similarly, H1 = 120. This value is generally designed to be relatively slightly higher to prevent some coffee machines from having a relatively large pressure due to process errors. When the maximum pulse period value reaches the preset value, even after the above parameter adjustment, they still cannot reach the constant pressure stage, that is, prematurely determining to enter the constant pressure stage, and at this time it is still the pressure accumulation stage, resulting in the inability to obtain accurate cup quantity parameters, and then resulting in the inability to accurately calculate the amount of coffee cups.

[0140] Therefore, by setting H3 = 100, H2 = 110, and H1 = 120, a total of three gears are set to cover various pressure conditions of the coffee machine as much as possible, which helps to detect the maximum signal period during the constant pressure stage and more accurately determine the entry into the constant pressure stage. Additionally, by comparing the maximum pulse period Tmax with H1 first, then with H2, and finally with H3, the computational workload can be reduced. When Tmax is greater than H1, it must be greater than H2 and H3. Moreover, when the obtained maximum pulse period Tmax reaches H1 or H2 or H3, it does not directly determine the entry into the constant pressure stage. Instead, it continues to obtain the subsequent flowmeter pulse signals according to the parameters C1, C2, or C3. When the maximum pulse signal period Tmax is obtained, it is possible that the pressure will increase slightly before entering the constant pressure stage, or it may enter the constant pressure stage after decreasing and stabilizing. Therefore, it is necessary to obtain the subsequent pulse signals to better ensure that the coffee-making process enters the constant pressure stage. Finally, setting the Hmax value is to reduce logical judgments. For example, after making coffee for the first time, update the Hmax value to 110. Then, when it is detected as 115, only the first two judgment logics need to be judged, and the third judgment logic can be omitted. At this time, the pressure is closer to the actual maximum pressure of the coffee machine, and thus closer to the constant pressure stage, and the calculated coffee cup volume is more accurate.

[0141] The following uses a specific example of coffee making to illustrate.

[0142] First, obtain the cup volume parameter. Here, the cup volume parameter takes a value of 0.350 g / pulse. The meaning of the unit of the cup volume parameter is: the amount of water flowing through corresponding to each generated flowmeter pulse signal. Based on this cup volume parameter, to make a target coffee cup volume of 40 g, the number of flowmeter pulse signals to be collected during the constant pressure stage is pulse = 40 g / 0.350 g / single pulse = 114.28, and 115 is taken.

[0143] Next, start collecting the flowmeter pulse signals. It is determined that the current is in the pressure accumulation stage according to the pulse signal period. After filtering the flowmeter pulse signals, Tmax = 50 is obtained. Then, Tmax is less than H1, Tmax is less than H2, and Tmax is less than H3. The loop count is incremented, and it enters the second loop. In the second loop, it is still in the pressure accumulation stage, and Tmax = 60. Then, Tmax is less than H1, Tmax is less than H2, and Tmax is less than H3. The loop count is incremented, and it enters the third loop. In the third, fourth, and fifth loops, it is still in the pressure accumulation stage, and Tmax takes values of 70, 80, and 90 respectively. Then, Tmax is less than H1, Tmax is less than H2, and Tmax is less than H3. The loop count is incremented, and it enters the sixth loop.

[0144] In the sixth cycle, it is still the pressure accumulation stage, and Tmax = 105. Then Tmax is less than H1, Tmax is less than H2, Tmax is greater than H3. The value of P3 is incremented by 1. P3 is less than C3, and the cycle count is incremented. Then it enters the seventh cycle.

[0145] In the seventh cycle, it is still the pressure accumulation stage, and Tmax = 105. Then Tmax is less than H1, Tmax is less than H2, Tmax is greater than H3. The value of P3 is incremented to 2. P3 is less than C3, and the cycle count is incremented. Then it enters the eighth cycle. In the eighth cycle, it is still the pressure accumulation stage, and Tmax = 115. Then Tmax is less than H1, Tmax is greater than H2. The value of P2 is incremented to 1. The value of P3 is incremented to 3. P2 is less than C2, P3 is less than C3, and the cycle count is incremented. Then it enters the ninth cycle.

[0146] In the ninth, tenth, eleventh, twelfth, and thirteenth cycles, it is still the pressure accumulation stage, and Tmax is 115, 100, 105, 110, and 105 respectively, all of which do not exceed 115. Then in these five cycles, Tmax = 115 is taken in all cases. Then Tmax is less than H1, Tmax is greater than H2. The value of P2 is incremented to 6. The value of P3 is incremented to 8. Then P2 is less than C2, P3 is less than C3, and the cycle count is incremented. Then it enters the fourteenth cycle.

[0147] In the fourteenth cycle, it is still the pressure accumulation stage, and Tmax = 125. Then Tmax is greater than H1. The value of P1 is incremented to 1. The value of P2 is incremented to 7. The value of P3 is incremented to 9. Then P1 is less than C1, P2 is less than C2, P3 is less than C3, and the cycle count is incremented. Then it enters the fifteenth cycle.

[0148] In the fifteenth, sixteenth, seventeenth, eighteenth, and nineteenth cycles, it is still the pressure accumulation stage, and Tmax is 120, 121, 111, 122, and 120 respectively, all of which do not exceed 125. Then in these five cycles, Tmax = 125 is taken in all cases. Then Tmax is greater than H1. The value of P1 is incremented to 6. The value of P2 is incremented to 12. The value of P3 is incremented to 14. Then P2 is equal to C2. It is determined to enter the constant pressure stage, and the pulse count in the constant pressure stage is started to be recorded. Then it enters the twentieth to thirty-fifth cycles.

[0149] In the twentieth to one hundred and thirty-fifth cycles, it is the constant pressure stage. The pulse count is incremented to 115. The water pump is turned off, and Hmax = (Tmax – 20) / 10*10 = (125 – 20) / 10*10 = 105 is updated.

[0150] Exemplary Beverage Machine, Electronic Device, Storage Medium

[0151] Based on the same inventive concept, an embodiment of the present application provides a beverage machine, which includes a water supply system, a flow meter, a brewing system, and a control module; wherein,

[0152] The brewing system is used to gradually pressurize the brewing material to a constant pressure stage and form a beverage;

[0153] The control module is used to determine whether the generation process of the beverage enters the constant pressure stage; if so, obtain the cup volume parameter corresponding to the beverage, where the cup volume parameter represents the cup volume corresponding to one pulse signal of the flow meter; based on the cup volume parameter, determine the cup volume of the generated beverage.

[0154] In a possible embodiment, as Figure 9 shown, the control module includes a judgment unit 901, an acquisition unit 902, and a calculation unit 903; wherein,

[0155] The judgment unit 901 is used to, after obtaining the flow meter pulse signal corresponding to the generation process, determine whether the generation process of the beverage enters the constant pressure stage based on the flow meter pulse signal;

[0156] The acquisition unit 902 is used to acquire the cup volume parameter and the flow meter pulse signal in the constant pressure stage;

[0157] The calculation unit 903 is used to determine the cup volume of the generated beverage based on the cup volume parameter.

[0158] In a possible embodiment, the calculation unit 903 is further used to:

[0159] Calculate the ratio of the actual cup volume generated by the target object to the target cup volume generated by the target object;

[0160] Multiply the ratio by a preset parameter to obtain the cup volume parameter; wherein, the preset parameter represents the cup volume corresponding to one pulse signal of the flow meter.

[0161] In a possible embodiment, the control module further includes a storage unit, and the storage unit is used to store the cup volume parameter in the constant pressure stage; then the calculation unit 903 is used to calculate the number of pulse signals of the flow meter that need to be acquired in the constant pressure stage according to the cup volume parameter and the target cup volume of the generated beverage; after acquiring the pulse signals with the number of pulse signals in the constant pressure stage, multiply the cup volume parameter by the number of pulse signals to obtain the cup volume generated by the target object.

[0162] In specific implementation, the above modules and units can be implemented as independent entities, or can be combined arbitrarily to be implemented as the same or multiple entities. For the specific implementation of the above modules and units, reference can be made to the foregoing method embodiments, and the specific beneficial effects that can be achieved can also be referred to the beneficial effects in the foregoing method embodiments, which will not be elaborated herein.

[0163] Those skilled in the art to which the present application pertains will appreciate that various aspects of the present application can be implemented as a system, method, or program product. Therefore, various aspects of the present application 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".

[0164] In some possible implementation manners, the beverage machine according to the present application may at least include a processor and a memory. Among them, the memory stores program code, and when the program code is executed by the processor, the processor is caused to execute the steps in the cup volume determination method according to various exemplary implementation manners of the present application described in this specification. For example, the processor may execute steps such as Figures 3 - 7 any one of those shown in

[0165] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in an embodiment of the present application. In one embodiment, the electronic device may be a server. In this embodiment, the structure of the electronic device may be as shown in Figure 10 and includes a memory 1001, a communication module 1003, and one or more processors 1002.

[0166] The memory 1001 is used to store the computer program executed by the processor 1002. The memory 1001 may mainly include a program storage area and a data storage area. Among them, the program storage area may store an operating system and programs required to run the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0167] The memory 1001 may be a volatile memory, such as a random-access memory (RAM); the memory 1001 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or the memory 1001 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1001 may be a combination of the above memories.

[0168] The processor 1002 may include one or more central processing units (CPUs) or be a digital processing unit, etc. The processor 1002 is used to implement the above-mentioned cup quantity determination method when calling the computer program stored in the memory 1001.

[0169] The communication module 1003 is used to communicate with terminal devices and other servers.

[0170] In the embodiments of the present application, the specific connection medium between the above-mentioned memory 1001, communication module 1003, and processor 1002 is not limited. In the embodiments of the present application Figure 10 it is shown that the memory 1001 and the processor 1002 are connected through a bus 1004, and the bus 1004 is described in thick lines in Figure 10 For the connection methods between other components, only a schematic description is given, and it is not to be taken as a limitation. The bus 1004 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of description, Figure 10 only one thick line is used to describe it in

[0171] The memory 1001 stores a computer storage medium, and the computer storage medium stores computer-executable instructions for implementing the cup quantity determination method of the embodiments of the present application. The processor 1002 is used to execute the above-mentioned cup quantity determination method, as shown in Figures 3 - 7 any one of

[0172] In some possible implementation manners, each aspect of the cup quantity determination method provided by the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a computer device, the program code is used to cause the computer device to execute the steps in the cup quantity determination method according to various exemplary embodiments of the present application described above in this specification. For example, the computer device can execute the steps shown in Figures 3 - 7 any one of

[0173] The program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable signal medium can 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 with 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 fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0174] The program product of an embodiment of the present application can be a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a computing device (drink machine). However, the program product of the present application is not limited to this. In this document, a readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with a command execution system, device (drink machine), or component.

[0175] A readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium can also be any readable medium other than a readable storage medium, and this readable medium can send, propagate, or transmit a program for use by or in conjunction with a command execution system, device, or component.

[0176] The program code contained on a readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the above.

[0177] The program code for performing the operations of the present application can be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include 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 an independent 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 the case of 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 can be connected to an external computing device (for example, by using an Internet service provider to connect through the Internet).

[0178] It should be noted that although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of the two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided and embodied by multiple units.

[0179] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations 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.

[0180] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.

[0181] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they know the basic creative concept. Therefore, the appended claims are intended to be construed as including the preferred embodiments as well as all changes and modifications falling within the scope of the present application.

[0182] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these changes and modifications.

Claims

1. A method for determining cup volume, characterized in that, The method includes: Determining whether the generation process of the target object enters the constant pressure stage; If so, obtaining a cup volume parameter, where the cup volume parameter represents the cup volume corresponding to one pulse signal of the flowmeter in the constant pressure stage; Based on the cup volume parameter, determining the cup volume generated by the target object.

2. The method according to claim 1, wherein The obtaining of the cup volume parameter corresponding to the target object includes: Calculating the ratio of the actual cup volume generated by the target object to the target cup volume generated by the target object; Multiplying the ratio by a preset parameter to obtain the cup volume parameter; where the preset parameter represents the cup volume corresponding to one pulse signal of the flowmeter.

3. The method according to claim 1, characterized in that The determining whether the generation process of the target object enters the constant pressure stage includes: Obtaining the flowmeter pulse signal corresponding to the generation process; Based on the flowmeter pulse signal, determining whether the generation process of the target object enters the constant pressure stage.

4. The method according to claim 3, characterized in that The determining whether the generation process of the target object enters the constant pressure stage based on the flowmeter pulse signal includes: Determining the current pulse signal period corresponding to the flowmeter pulse signal; When the current pulse signal period meets a preset condition, determining that the generation process of the target object enters the constant pressure stage.

5. The method according to claim 4, wherein The determining that the generation process of the target object enters the constant pressure stage when the current pulse signal period meets a preset condition includes: When the current pulse signal period is greater than the previous pulse signal period, taking the current pulse signal period as the maximum pulse period; where the previous pulse signal period is the maximum pulse period determined based on the previously obtained flowmeter pulse signal; or When the current pulse signal period is less than the previous pulse signal period, taking the previous pulse signal period as the maximum pulse period; Based on the maximum pulse period, determining that the generation process of the target object enters the constant pressure stage.

6. The method according to claim 5, characterized in that The determining that the generation process of the target object enters the constant pressure stage based on the maximum pulse period includes: When the maximum pulse period is greater than a preset period, adjusting at least one parameter; When there is one parameter among the adjusted at least one parameter that is greater than or equal to the preset threshold set for the parameter, determining that the generation process of the target object enters the constant pressure stage.

7. The method according to claim 5, wherein The determining that the generation process of the target object enters the constant pressure stage based on the maximum pulse period includes: When the maximum pulse period is greater than a first preset value, adjusting a first parameter, a second parameter, and a third parameter; the first parameter, the second parameter, and the third parameter represent the number of pulse signals currently obtained; When the adjusted first parameter is greater than or equal to a first threshold, or the adjusted second parameter is greater than or equal to a second threshold, or the adjusted third parameter is greater than or equal to a third threshold, determining that the generation process of the target object enters the constant pressure stage.

8. The method according to claim 7, wherein The method further includes: When the maximum pulse period is less than or equal to the first preset value, determining whether the maximum pulse period is greater than a second preset value; where the second preset value is less than the first preset value; If so, adjust the second parameter and the third parameter; When the first parameter is greater than or equal to the first threshold, or the adjusted second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, it is determined that the generation process of the target object enters the constant pressure stage.

9. The method according to claim 8, wherein The method further includes: When the maximum pulse period is less than or equal to the second preset value, determine whether the maximum pulse period is greater than a third preset value; wherein, the third preset value is less than the second preset value; If so, adjust the third parameter; When the first parameter is greater than or equal to the first threshold, or the second parameter is greater than or equal to the second threshold, or the adjusted third parameter is greater than or equal to the third threshold, it is determined that the generation process of the target object enters the constant pressure stage.

10. The method according to claim 9, characterized in that, The determination of whether the maximum pulse period is greater than the second preset value includes: determining whether the maximum pulse period is greater than the second preset value and greater than the iteration parameter; the determination of whether the maximum pulse period is greater than the third preset value includes: determining whether the maximum pulse period is greater than the third preset value and greater than the iteration parameter.

11. The method according to claim 10, wherein After it is determined that the generation process of the target object enters the constant pressure stage, it further includes: Updating the iteration parameter based on the maximum pulse period.

12. The method according to claim 2, wherein The determination of the cup volume of the target object generated based on the cup volume parameter includes: Counting the number of pulse signals of the flow meter in the constant pressure stage; Multiplying the cup volume parameter by the number of pulse signals to obtain the cup volume of the target object generated.

13. A beverage machine, characterized in that, The beverage machine includes a water supply system, a flow meter, a brewing system, and a control module; wherein, The brewing system is used to gradually pressurize the brewing material to the constant pressure stage and form a beverage; The control module is used to determine whether the generation process of the beverage enters the constant pressure stage; if so, obtain a cup volume parameter, where the cup volume parameter represents the cup volume corresponding to one pulse signal of the flow meter in the constant pressure stage; and determine the cup volume of the beverage generated based on the cup volume parameter.

14. The beverage machine according to claim 13, characterized in that, The control module includes a judgment unit, an acquisition unit, and a calculation unit; wherein, The judgment unit is used to, after obtaining the flow meter pulse signal corresponding to the generation process, determine whether the generation process of the beverage enters the constant pressure stage based on the flow meter pulse signal; The acquisition unit is used to acquire the cup volume parameter and the flow meter pulse signal in the constant pressure stage; The calculation unit is used to determine the cup volume of the beverage generated based on the cup volume parameter.

15. The beverage machine according to claim 14, wherein, The calculation unit is further used for: Calculating the ratio of the actual cup volume of the target object generated to the target cup volume of the target object generated; Multiplying the ratio by a preset parameter to obtain the cup volume parameter; wherein, the preset parameter represents the cup volume corresponding to one pulse signal of the flow meter.

16. The beverage machine according to claim 14, characterized in that, The control module further includes a storage unit, which is used to store the cup volume parameter in the constant pressure stage; the calculation unit is used to calculate the number of pulse signals of the flow meter required to be obtained in the constant pressure stage according to the cup volume parameter and the target cup volume of the beverage; After the pulse signals of the number of pulse signals are obtained in the constant pressure stage, the cup volume parameter is multiplied by the number of pulse signals to obtain the cup volume generated by the target object.

17. An electronic device, characterized in that, The method comprises a processor and a memory, wherein the memory stores program codes, and when the program codes are executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 12.

18. A computer-readable storage medium, characterized in that, It includes program code. When the storage medium is run on an electronic device, the program code is used to enable the electronic device to execute the steps of any method described in claims 1 to 12.