Beverage equipment and method and device for detecting lack of beans of beverage equipment

By employing a dual verification mechanism that monitors both the number of rotations of the coffee grinder and the thickness of the coffee pouch, the problem of misjudgment and increased costs associated with traditional coffee machine bean shortage detection is solved, achieving efficient and accurate bean shortage detection.

CN121890872APending Publication Date: 2026-04-21SUZHOU DR COFFEE SYST TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SUZHOU DR COFFEE SYST TECH CO LTD
Filing Date
2026-03-17
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Traditional coffee machine bean shortage detection methods are prone to misjudgment and require additional photoelectric sensors, leading to increased costs.

Method used

By periodically sampling the number of revolutions of the grinder and monitoring the thickness of the coffee puck after tamping, a dual verification mechanism for detecting missing beans is achieved, eliminating the need for additional detection sensors.

Benefits of technology

It improves the accuracy and robustness of bean deficiency detection and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121890872A_ABST
    Figure CN121890872A_ABST
Patent Text Reader

Abstract

The invention relates to a bean lack detection method and device for beverage equipment and the beverage equipment. In response to a beverage making instruction, the number of rotation turns of a bean grinder in beverage equipment is periodically sampled according to a preset sampling period, the number of periodic sampling turns of the bean grinder is obtained, and in any bean grinding period corresponding to the beverage making instruction, the number of the periodic sampling turns of the bean grinder is calculated. According to the periodic sampling turns of the bean grinder, the powder pressing link after grinding is executed under the condition that it is determined that no empty grinding state exists in the bean grinder, the thickness of pressed powder is obtained, and under the condition that it is determined that the thickness of the pressed powder is smaller than a thickness threshold value, a first bean lacking prompt signal is sent out. According to the method, the number of turns of rotation of the bean grinder is dynamically monitored in the bean grinding stage, and bean lack detection is realized in combination with a dual verification mechanism for monitoring the thickness of the pressed powder in the powder pressing stage, so that the accuracy and robustness of bean lack detection can be remarkably improved, and the cost of arranging a detection sensor in a bean storage bin is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of coffee grinder technology, and in particular to a method, apparatus, beverage equipment, computer-readable storage medium, and computer program product for detecting insufficient coffee beans in a beverage device. Background Technology

[0002] In fully automatic coffee machines and other smart beverage making equipment, to ensure beverage quality and user experience, a bean storage hopper (or bean box) is usually provided to store coffee beans. The coffee beans are then ground into powder by a grinding device before extraction. To prevent the extraction process from being accidentally started when there are no beans and only water is discharged, traditional equipment generally uses photoelectric through-beam sensors to detect whether there are coffee beans in the bean storage hopper.

[0003] The traditional detection method involves installing a pair of infrared transmitting and receiving sensors on the side wall of the bean storage hopper or at the bean inlet. When there are beans in the storage hopper, the beans will block the light path, and the receiver will not receive the signal, thus the system determines that "beans are present"; conversely, if the light path is unobstructed, it determines that "no beans are present", thereby prohibiting the start of the grinding and extraction process.

[0004] However, traditional detection methods are prone to false alarms when coffee bean fragments or bean oils adhering to the sensor window continuously block the light path. Furthermore, this physical detection method requires the additional installation of a photoelectric sensor, which increases costs. Summary of the Invention

[0005] Therefore, it is necessary to provide a method, apparatus, beverage equipment, computer-readable storage medium, and computer program product for detecting missing beans in beverage equipment that can improve detection accuracy and reduce costs, in order to address the above-mentioned technical problems.

[0006] Firstly, this application provides a method for detecting missing beans in a beverage device, the method comprising: In response to a beverage preparation instruction, the number of rotations of the coffee grinder in the beverage equipment is periodically sampled at a preset sampling period to obtain the periodic sampling number of the coffee grinder. In any grinding cycle corresponding to the beverage preparation instruction, if the number of periodic sampling cycles of the grinder determines that the grinder is not in an empty grinding state, the tamping step after grinding is performed to obtain the thickness of the tamped powder. If the thickness of the coffee puck is determined to be less than a thickness threshold, a first short bean alert signal is issued. The first short bean alert signal is used to indicate an abnormal coffee puck thickness, so as to remind the coffee storage bin corresponding to the coffee grinder of an abnormal coffee drop.

[0007] In one embodiment, the method further includes: during any grinding cycle, if it is determined that the grinder is in an empty grinding state based on the number of periodic sampling cycles of the grinder, controlling the grinder to stop grinding and issuing a second bean shortage warning signal, the second bean shortage warning signal being used to indicate that the grinder is grinding empty, so as to remind the bean storage bin corresponding to the grinder of an abnormal bean drop.

[0008] In one embodiment, after controlling the grinder to stop grinding, the method further includes: executing a non-extraction operation mode, which is used to wet press and remove residue from the ground powder.

[0009] In one embodiment, after obtaining the periodic sampling number of the coffee grinder, the method further includes: using a set number of sampling cycles as an evaluation period, obtaining the average sampling number of the coffee grinder within the evaluation period; in any given grinding cycle, real-time detecting the first average sampling number of the coffee grinder in the current evaluation period, and the second average sampling number of historical evaluation cycles prior to the current evaluation period and spaced apart by a set evaluation period; obtaining the difference in number of cycles between the first average sampling number and the second average sampling number; if all the differences in number of cycles are less than a number of cycles threshold in any given grinding cycle, determining that the coffee grinder is not in an empty grinding state; if there is a case in any given grinding cycle where the difference in number of cycles is greater than or equal to the number of cycles threshold, determining that the coffee grinder is in an empty grinding state.

[0010] In one embodiment, obtaining the average number of sampling cycles of the coffee grinder within the evaluation period, with a set number of sampling cycles as the evaluation period, includes: obtaining the sum of the number of sampling cycles of the coffee grinder within the set number of sampling cycles based on the set number of sampling cycles; calculating the quotient of the sum of the number of sampling cycles and the set number of sampling cycles, wherein the quotient is used to characterize the average number of sampling cycles of the coffee grinder within the evaluation period.

[0011] In one embodiment, the method further includes: if the thickness of the powder cake is determined to be greater than or equal to the thickness threshold, performing an extraction step after pressing the powder to complete the beverage preparation corresponding to the current grinding cycle.

[0012] In one embodiment, the method further includes: when it is determined that the thickness of the powder cake is less than a thickness threshold, executing a non-extraction operation mode, wherein the non-extraction operation mode is used to perform wet pressing and slag removal treatment on the pressed powder cake.

[0013] In one embodiment, the thickness threshold is the thickness of the powder cake measured when the beverage device makes a beverage with the minimum grinding amount, the coarsest grinding setting, and the maximum tamping force.

[0014] In one embodiment, the step of pressing powder after grinding to obtain the thickness of the powder cake after pressing includes: determining a basic pressing stroke according to the beverage preparation instruction, the basic pressing stroke being used to characterize the stroke of the pressing execution component from the pressing ready position to the pressing end position; performing the pressing powder after grinding to obtain the actual pressing stroke during the pressing process, the actual pressing stroke being used to characterize the stroke of the pressing execution component from the pressing ready position to the pressing completed position; and obtaining a first stroke difference between the basic pressing stroke and the actual pressing stroke, the first stroke difference being used to characterize the thickness of the powder cake after pressing.

[0015] In one embodiment, determining the basic tamping stroke according to the beverage preparation instruction includes: determining the basic tamping stroke from configuration parameters according to the beverage preparation instruction; or, controlling the tamping execution component to enter a self-testing phase according to the beverage preparation instruction, and obtaining the basic tamping stroke detected by the tamping execution component based on the self-testing phase.

[0016] In one embodiment, obtaining the basic tamping stroke detected by the tamping execution component based on the self-test step includes: obtaining the full stroke and tamping-ready stroke of the tamping execution component collected by the tamping execution component based on the self-test step, wherein the full stroke is used to characterize the stroke of the tamping execution component from the starting position to the ending position; the tamping-ready stroke is used to characterize the stroke of the tamping execution component from the starting position to the tamping-ready position; and obtaining a second stroke difference between the full stroke and the tamping-ready stroke, wherein the second stroke difference is used to characterize the basic tamping stroke.

[0017] In one embodiment, the powder pressing actuation component is a brewer chamber or a moving piston that cooperates with the brewer chamber to perform powder pressing.

[0018] Secondly, this application also provides a bean shortage detection device for beverage equipment, the device comprising: The sampling module is configured to perform periodic sampling of the number of rotations of the coffee grinder in the beverage equipment in response to the beverage making instruction, at a preset sampling period, to obtain the periodic sampling number of the coffee grinder. The powder thickness acquisition module is configured to perform the tamping step after grinding in any grinding cycle corresponding to the beverage preparation instruction, based on the periodic sampling number of the grinder to determine that the grinder is not in an empty grinding state, and to acquire the powder thickness after tamping. The notification module is configured to, when determining that the thickness of the coffee puck is less than a thickness threshold, issue a first low-bean notification signal, the first low-bean notification signal being used to indicate an abnormal coffee puck thickness; or, during any grinding cycle, if it is determined that the coffee grinder is in an empty grinding state based on the periodic sampling cycle of the coffee grinder, control the coffee grinder to stop grinding and issue a second low-bean notification signal, the second low-bean notification signal being used to indicate that the coffee grinder is grinding empty, to remind the coffee storage bin corresponding to the coffee grinder of an abnormal coffee drop.

[0019] Thirdly, this application also provides a beverage device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.

[0020] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.

[0021] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.

[0022] The aforementioned beverage equipment's method, apparatus, beverage equipment, computer-readable storage medium, and computer program product for detecting insufficient beans involve the beverage equipment responding to a beverage preparation instruction by periodically sampling the number of rotations of the grinder within a preset sampling period. Within any grinding cycle corresponding to the beverage preparation instruction, if the periodic sampling number of the grinder indicates that it is not in an empty grinding state, the equipment performs the tamping stage after grinding, obtaining the thickness of the tamped coffee pouch. If the thickness of the pouch is determined to be less than a thickness threshold, a first insufficient bean warning signal is issued to alert the corresponding bean storage bin to an abnormal bean drop. This dual verification mechanism, combining dynamic monitoring of the grinder's rotation number during the grinding stage with monitoring of the pouch thickness during the tamping stage, significantly improves the accuracy and robustness of insufficient bean detection and saves the cost of installing detection sensors in the bean storage bin. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1This is a flowchart illustrating a method for detecting missing beans in a beverage device in one embodiment; Figure 2 This is a flowchart illustrating the steps for determining the empty mill state in one embodiment; Figure 3 This is a flowchart illustrating the step of obtaining the thickness of the pressed powder in one embodiment; Figure 4 This is a schematic diagram illustrating the acquisition of powder thickness in another embodiment; Figure 5 This is a flowchart illustrating the method for detecting missing beans in a beverage device in another embodiment; Figure 6 This is a structural block diagram of a bean shortage detection device for a beverage equipment in one embodiment; Figure 7 This is an internal structural diagram of a beverage device in one embodiment. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0026] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0027] In one exemplary embodiment, such as Figure 1 As shown, a method for detecting insufficient coffee beans in a beverage device is provided. This method is applied to beverage devices, which can be coffee machines or other multi-functional beverage machines with a coffee grinding function. The method may include the following steps: Step 102: In response to the beverage preparation instruction, periodically sample the number of rotations of the coffee grinder in the beverage equipment at a preset sampling period to obtain the periodic sampling number of the coffee grinder.

[0028] The beverage preparation instruction can be a command or instruction used to control the beverage equipment to prepare a beverage. For example, taking a coffee machine as an example, the beverage preparation instruction can be a command given to the coffee machine to make coffee, which may specifically include the corresponding flavor, such as "Italian Dark Roast" or "Latte". This instruction can be issued through the control buttons on the coffee machine, through the touch screen on the coffee machine, or through a voice assistant; this embodiment does not limit this.

[0029] A coffee grinder is a component in beverage equipment used to grind raw materials such as coffee beans. The coffee grinder is equipped with a bean storage bin that is connected to it, which is used to store the raw materials to be ground, such as coffee beans.

[0030] For example, when a user has a beverage preparation request, they can send a beverage preparation command to the beverage device. The beverage device then responds to the command and controls the bean storage compartment to dispense coffee beans into the grinder. The grinder then starts grinding the corresponding raw material, such as coffee beans, to a set particle size for subsequent brewing and extraction to complete the beverage preparation.

[0031] To prevent the coffee grinder from grinding dry due to an empty bean storage bin or poor bean feeding, which could result in insufficient powder for brewing and extraction and thus abnormal beverages, this embodiment of the beverage equipment can also periodically sample the number of rotations of the coffee grinder during normal grinding (such as the stabilization period 1 second after the grinder starts) at a preset sampling period. This allows for obtaining the periodic sampling number of the grinder's rotations, and subsequent steps are used to determine whether the grinder is grinding dry.

[0032] The preset sampling period can be a pre-set time period for sampling the number of revolutions of the coffee grinder. Specifically, it can be set based on the power of the coffee grinder. For example, when the coffee grinder has higher power, the preset sampling period can be set shorter, and when the coffee grinder has lower power, the preset sampling period can be set longer. For instance, the preset sampling period can be set to 300ms, 400ms, or 500ms, etc., but this embodiment does not limit it to this.

[0033] The periodic sampling number is the number of rotations in each sampling period, obtained by sampling the number of rotations of the coffee grinder based on a preset sampling period. This number of rotations can be calculated from the pulse signal output by the encoder mounted on the grinder motor shaft. For example, taking a preset sampling period of 400ms as an example, the first sampling period is 0-400ms, and the number of rotations of the coffee grinder in this period is sampled to obtain the number of rotations of the coffee grinder in this period, which is the periodic sampling number A1; the second sampling period is 401-800ms, and the number of rotations of the coffee grinder in this period is sampled to obtain the number of rotations of the coffee grinder in this period, which is the periodic sampling number A2; the third sampling period is 801-1200ms, and the number of rotations of the coffee grinder in this period is sampled to obtain the number of rotations of the coffee grinder in this period, which is the periodic sampling number A3. Similarly, within any grinding cycle corresponding to the beverage preparation instruction, the number of rotations of the grinder can be periodically sampled based on a preset sampling period to obtain the number of periodic sampling rotations of the grinder in each sampling cycle.

[0034] It's understandable that one grinding cycle refers to the complete grinding cycle corresponding to the preparation of one beverage. The beverage preparation instruction can be based on the preparation of a single beverage or on the preparation of multiple beverages. Typically, under a beverage preparation instruction based on multiple beverages, the beverage equipment can control the operation of each component in a cycle to prepare the corresponding beverage one by one, thus each beverage preparation corresponds to one grinding cycle.

[0035] Step 104: In any grinding cycle corresponding to the beverage preparation instruction, if the grinder is not in an empty grinding state as determined by the periodic sampling number of the grinder, perform the tamping step after grinding and obtain the thickness of the tamped powder.

[0036] The "empty grinding state" refers to a situation where no raw materials enter the grinder due to an empty bean storage bin or obstructed bean flow, causing the grinder to run empty without any raw materials to grind.

[0037] Typically, during a stable grinding process, the number of revolutions of a coffee grinder within each sampling cycle is relatively stable. Furthermore, when there are raw materials being ground, the amount of coffee grounds produced is positively correlated with the number of revolutions; that is, the amount of coffee grounds produced per revolution is relatively consistent. However, when the grinder transitions from grinding with raw materials to grinding without them, the resistance it experiences decreases, causing the grinder to rotate faster. Consequently, the number of revolutions within the corresponding sampling cycle also increases. This trend can be detected to determine whether the grinder is grinding without materials. Based on this, within each grinding cycle, the beverage equipment can determine whether the grinder is grinding without materials based on the periodic sampling number of revolutions. If it is determined that the grinder is not grinding without materials, the tamping process is performed, and the thickness of the tamped coffee puck is obtained.

[0038] Step 106: If the thickness of the powder is determined to be less than the thickness threshold, a first insufficient powder warning signal is issued.

[0039] The thickness threshold can be the thickness after grinding and tamping the minimum amount of raw materials required for the flavor specified in the beverage preparation instruction. For example, to avoid false alarms about abnormal powder thickness during normal beverage preparation when the threshold is set too high, the thickness threshold can be the powder thickness measured after grinding the minimum amount of raw materials required for the flavor specified in the beverage preparation instruction (i.e., the minimum grinding amount) at the coarsest grinding setting (i.e., the coarsest powder particles produced at that setting) and tamping with the maximum tamping force (i.e., the maximum tamping force applied during the tamping process), depending on the beverage equipment. This thickness is understood to be the minimum thickness required for normal beverage preparation under the corresponding flavor. Therefore, different thickness thresholds can be configured based on different beverage equipment and beverage flavors.

[0040] In this embodiment, after grinding and tamping, the beverage equipment can determine whether the cake thickness is abnormal based on the relationship between the tamped cake thickness and the corresponding thickness threshold. For example, if the cake thickness is less than the thickness threshold for the corresponding flavor, it indicates an abnormal cake thickness. In this scenario, the beverage equipment responds to the cake thickness being less than the thickness threshold by issuing a first short bean alert signal to indicate an abnormal bean drop in the bean storage bin corresponding to the grinder, such as insufficient bean drop, poor slope, or partial blockage, allowing staff to promptly investigate.

[0041] In the aforementioned method for detecting insufficient coffee beans in beverage equipment, the equipment responds to beverage preparation instructions by periodically sampling the number of rotations of the grinder at a preset sampling period. Within any grinding cycle corresponding to the beverage preparation instruction, if the grinder is confirmed to be not in an empty grinding state based on the periodic sampling number, the tamping stage is performed, and the thickness of the tamped coffee pouch is obtained. If the pouch thickness is determined to be less than a thickness threshold, a first insufficient coffee bean warning signal is issued to alert the coffee bean storage bin corresponding to the grinder of an abnormality in coffee bean distribution. This dual verification mechanism, combining dynamic monitoring of the grinder's rotation number during the grinding stage with monitoring of the pouch thickness during the tamping stage, significantly improves the accuracy and robustness of insufficient coffee bean detection and saves the cost of installing detection sensors in the coffee bean storage bin.

[0042] In one exemplary embodiment, such as Figure 2 As shown, after obtaining the number of periodic sampling cycles of the coffee grinder in step 102, the above method may further include the following steps: Step 202: Using the set number of sampling cycles as the evaluation period, obtain the average number of sampling cycles of the coffee grinder within the evaluation period.

[0043] The evaluation period is the time interval used to assess whether the coffee grinder is in an empty grinding state. The set sampling number is a pre-defined number of times the grinder's rotation count will be periodically sampled. Since the periodic sampling of the grinder's rotation count is based on the preset sampling period, one sampling period corresponds to one sample. For example, if the sampling number is set to N times, the corresponding evaluation period is N sampling periods. The average number of rotations sampled is the average of the number of rotations obtained from the grinder within the evaluation period, i.e., the N sampling periods.

[0044] For example, based on a set number of sampling times, the sum of the number of sampling revolutions of the coffee grinder within the set number of sampling times can be obtained, and the quotient of the sum of the sampling revolutions and the set number of sampling times can be calculated. This quotient represents the average number of sampling revolutions of the coffee grinder within the evaluation period. For example, if the set number of sampling times is 3, the corresponding evaluation period is 3 sampling periods. For each sampling period, the number of rotations of the coffee grinder in the corresponding sampling period can be obtained, i.e., the periodic sampling revolutions. By calculating the sum of the number of rotations of the coffee grinder in the 3 sampling periods and calculating its average value, the average number of sampling revolutions of the coffee grinder within the evaluation period can be obtained.

[0045] Step 204: In any grinding cycle, the first average number of sampling cycles of the grinder in the current evaluation cycle and the second average number of sampling cycles in historical evaluation cycles before the current evaluation cycle and at intervals of set evaluation cycles are detected in real time.

[0046] Typically, a single grinding cycle for making a beverage can include multiple evaluation cycles. Among these, historical evaluation cycles are those that precede the current evaluation cycle in terms of time.

[0047] In this embodiment, within any grinding cycle, the beverage device can periodically sample the number of revolutions of the grinder based on a preset sampling period, and calculate the average number of sampling revolutions of the grinder in each evaluation period, using a set number of sampling times as the evaluation period. For example, the first average number of sampling revolutions of the grinder in the current evaluation period and the second average number of sampling revolutions in historical evaluation periods prior to the current evaluation period and spaced apart by a set evaluation period can be detected in real time. The set evaluation period can be a pre-defined period interval between the current evaluation period and historical evaluation periods for comparison, and this period interval is at least 1. That is, there is at least one evaluation period between the current evaluation period and the historical evaluation period.

[0048] Step 206: Obtain the difference in the number of laps between the first average sampling laps and the second average sampling laps.

[0049] For example, if the first average number of sampling cycles in the current evaluation period is M, and the second average number of sampling cycles in the historical evaluation period before the current evaluation period and at intervals of set evaluation periods is L, then the difference in the number of cycles is |ML| (i.e., the absolute value of the difference between M and L).

[0050] Step 208: If, within any grinding cycle, the difference in the number of all revolutions is less than the revolution threshold, it is determined that the grinder is not in an empty grinding state.

[0051] The number of revolutions threshold can be a pre-set reference value used to judge the empty grinding state of the coffee grinder. This number of revolutions threshold can be obtained based on experimental testing. For example, the number of revolutions threshold can be 3 revolutions.

[0052] In this embodiment, if the difference in the number of revolutions is less than the revolutions threshold in any grinding cycle, it means that the speed of the grinder is always stable in that grinding cycle. Therefore, it can be preliminarily determined that the grinder does not have an empty grinding state in that grinding cycle.

[0053] For example, the tamping process is only performed after the grinder has been confirmed to have no empty grinding state throughout a grinding cycle. This process obtains the thickness of the tamped coffee pouch, and the pouch thickness is monitored to detect missing beans. This avoids missed detections due to grinder status detection failures, thus improving the accuracy of missing bean detection.

[0054] Step 210: If, during any grinding cycle, there is a situation where the difference in the number of revolutions is greater than or equal to the number of revolutions threshold, it is determined that the grinder is in an empty grinding state.

[0055] For example, if, within any grinding cycle, the difference in the number of revolutions is greater than or equal to a certain threshold, it indicates a significant change in the grinder's rotation speed within that cycle. Therefore, it can be determined that the grinder is in an empty grinding state during that cycle, and the grinder should be stopped. Since an empty grinding state occurs when the grinder runs without grinding raw materials or due to insufficient raw materials, detecting an empty grinding state within a grinding cycle indicates a change from a state with beans to a state lacking beans. Therefore, the subsequent puck thickness detection step can be skipped, and a second low-bean warning signal can be issued directly. For instance, the user interface can be used to alert the grinder to the empty grinding state, prompting staff to address the low-bean issue promptly.

[0056] For example, taking a sampling frequency of 3 times as an example, three consecutive samplings constitute an evaluation cycle. The number of sampling cycles within each evaluation cycle is summed and divided by 3 to obtain the average number of sampling cycles for the corresponding evaluation cycle. Then, within any grinding cycle, the first average number of sampling cycles for the current evaluation cycle is calculated in real time, and the second average number of sampling cycles for the historical evaluation cycles prior to the current evaluation cycle and at intervals of a set evaluation cycle (e.g., 1 evaluation cycle) is obtained. The difference between the two is calculated as ΔR = |first average number of sampling cycles -second average number of sampling cycles|. If, within any grinding cycle, ΔR ≥ the preset number of cycles threshold (e.g., 3 cycles), the grinder is determined to be in an empty grinding state (i.e., no beans or poor bean feeding causing abnormally high speed), and the subsequent puck thickness detection step is not required; conversely, if all ΔR values ​​are < the number of cycles threshold, it is determined that there is no empty grinding state, and the subsequent process continues.

[0057] In the above embodiments, based on the set number of samplings as the evaluation period, the average number of sampling cycles of the grinder within the evaluation period is obtained. Within a grinding cycle, the first average number of sampling cycles of the grinder in the current evaluation period and the second average number of sampling cycles in historical evaluation periods before the current evaluation period and at intervals of the set evaluation period are detected in real time. Based on the relationship between the difference in the number of cycles of the two and the number of cycles threshold, it is determined whether the grinder is in an empty grinding state in the current grinding cycle, so as to improve the accuracy of detecting the empty grinding state of the grinder.

[0058] In an exemplary embodiment, the method may further include: during any grinding cycle, if it is determined that the grinder is in an empty grinding state based on the periodic sampling number of the grinder, then the grinder is controlled to stop grinding and a second bean shortage warning signal is issued. The second bean shortage warning signal indicates that the grinder is grinding empty, thus alerting the corresponding bean storage bin to an abnormal bean drop. Since an empty grinding state is when the grinder runs without grinding any raw materials, indicating that there are no beans in the corresponding bean storage bin or that bean drop is abnormal, the beverage equipment can control the grinder to stop grinding in this scenario to reduce ineffective grinding and motor overheating caused by empty grinding, while simultaneously issuing the second bean shortage warning signal to remind staff to check promptly.

[0059] In an exemplary embodiment, after controlling the coffee grinder to stop grinding, the method may further include: executing a non-extraction operation mode. This non-extraction operation mode is used for wet pressing and residue removal of the ground powder. Since the coffee grinder is triggered by a lack of beans and stopped during a grinding cycle due to an empty grinding state, meaning the grinder has not yet completed a full grinding cycle, the amount of ground powder is insufficient to meet the needs of beverage preparation. Therefore, to maintain the consistency of mechanical operation and not affect subsequent beverage preparation, the ground powder needs to be removed. Specifically, the beverage equipment can be controlled to execute a non-extraction operation mode to wet press and remove residue from the ground powder. This involves controlling the beverage equipment to wet and press the ground powder into cakes, skipping the cake thickness detection and extraction stages, and directly driving the residue-scraping mechanism to scrape the residue into the residue box, thereby improving the reliability of the beverage equipment.

[0060] In one exemplary embodiment, such as Figure 3 As shown, in step 104, the powder pressing step is performed after grinding to obtain the thickness of the powder cake after pressing. Specifically, this may include the following steps: Step 302: Determine the basic tamping process according to the beverage preparation instructions.

[0061] The basic tamping stroke characterizes the travel distance of the tamping actuator from the tamping-ready position to the tamping-end position. The tamping-ready position is the coffee-receiving position in the brewer chamber, such as the "ready" position, after each beverage is made and the brewer discharges the grounds, it returns to the "ready" position to prepare for the next coffee grinding. The tamping-end position refers to the endpoint of the maximum travel distance that the tamping actuator can extend.

[0062] For example, the beverage equipment can determine the basic tamping stroke from the configuration parameters based on the beverage preparation instruction. The basic tamping stroke refers to the travel distance of the tamping actuator from the tamping-ready position to the end position, where the end position is the endpoint of the maximum travel distance the tamping actuator can make. This position is fixed when there is no coffee grounds in the brewer chamber; the tamping-ready position, which is the coffee-receiving position in the brewer chamber when preparing to grind coffee (e.g., the "ready" position), is also fixed. Therefore, the travel distance from the tamping-ready position to the end position, i.e., the basic tamping stroke, is also fixed. Based on this, to improve the processing efficiency of the beverage equipment, the basic tamping stroke can be pre-stored in the configuration parameters. Then, after the beverage equipment receives the beverage preparation instruction, it can directly determine the basic tamping stroke from the configuration parameters for subsequent calculation of the coffee pouch thickness, thereby improving calculation speed.

[0063] In one scenario, the beverage equipment can also control the tamping component to enter a self-test phase based on the beverage preparation instructions. This allows the tamping component to obtain a basic tamping stroke based on real-time detection during the self-test. This avoids stroke errors caused by long-term use of the tamping component and improves the accuracy of subsequent calculations of the powder thickness.

[0064] Step 304: Perform the grinding and pressing process to obtain the actual pressing stroke during the pressing process.

[0065] The actual pressing stroke characterizes the distance traveled by the pressing actuator from the pressing-ready position to the pressing-complete position, i.e., the distance the pressing actuator moves in its direction of motion during the pressing process. Typically, the pressing actuator is equipped with an encoder to record the number of rotations of its screw during its movement. In this embodiment, the number of screw rotations during the pressing process, from the pressing-ready position to the pressing-complete position, represents the actual pressing stroke. Since the distance traveled per screw rotation is fixed, the number of screw rotations can be converted into a travel distance.

[0066] Step 306: Obtain the first stroke difference between the basic tamping stroke and the actual tamping stroke. This first stroke difference is used to characterize the thickness of the powder cake after tamping.

[0067] Specifically, a first stroke difference is obtained by calculating the difference between the basic tamping stroke and the actual tamping stroke, and this first stroke difference is used to characterize the thickness of the powder cake after tamping.

[0068] In an exemplary embodiment, the acquisition of the basic tamping stroke of the tamping execution component based on the self-test step may specifically include: acquiring the full stroke and tamping-ready stroke of the tamping execution component collected during the self-test step, and acquiring a second stroke difference between the full stroke and the tamping-ready stroke, which is used to characterize the basic tamping stroke. The full stroke characterizes the stroke of the tamping execution component from the starting position to the ending position. Since there is no powder in the brewer chamber during the self-test, the full stroke is the maximum stroke that the tamping execution component can move. The tamping-ready stroke characterizes the stroke of the tamping execution component from the starting position to the tamping-ready position.

[0069] For example, the tamping actuation component may be a brewer chamber or a moving piston that works in conjunction with the brewer chamber to perform tamping, depending on the specific beverage equipment.

[0070] In a scenario, such as Figure 4As shown, for a beverage device whose powder-pressing execution component is a brewer chamber, a fixed piston 40 is fixedly installed at one end of its full stroke. During powder pressing, the powder is pressed by the movement of the brewer chamber 41 towards the fixed piston. Since there is no powder in the brewer chamber 41 at the initial stage, the fixed piston 40 is in contact with the bottom of the brewer chamber 41. If the contact point, i.e., h1, is taken as the end position (in this embodiment, the end position is determined based on the direction of movement during powder pressing), then in the self-testing stage, the beverage device can control the brewer chamber 41 to move from the end position h1 to the starting position h2 (this position is the endpoint of the maximum stroke that the brewer chamber 41 can move) to perform a self-test, and based on this, determine the full stroke S1 of the brewer chamber 41, i.e., the stroke from h1 to h2.

[0071] The tamping-ready position, or "ready" position, is typically located between the start and end points of the entire tamping stroke. If the tamping-ready position is set at h3, the beverage equipment can control the brewing chamber 41 to move from the start position h2 to the tamping-ready position h3 for self-checking and determine the tamping-ready stroke S2, which is the stroke from h2 to h3. By calculating the difference (S1-S2) between the full stroke S1 and the tamping-ready stroke S2, the basic tamping stroke S3 can be obtained, i.e., S3 = S1-S2. This stroke is the stroke from the tamping-ready position h3 to the end position h1.

[0072] At this point, the brewer chamber 41 is located at the powder-ready position h3. When powder is received and powder is pressed, the brewer chamber 41 moves towards the fixed piston 40, allowing the fixed piston 40 to contact the powder in the brewer chamber 41 and press it. Since the fixed piston 40 is fixed, the upward movement of the brewer chamber 41 until it contacts the fixed piston 40 differs depending on whether there is powder in the chamber or not. If there is no powder, the brewer chamber 41 can continue to the end position h1, while if there is powder, the thickness of the powder prevents the brewer chamber 41 from reaching the end position h1. Therefore, if the brewer chamber 41 is located at h4 when powder pressing is completed, and its actual pressing stroke is S4, this stroke is the stroke between the powder-ready position h3 and the position h4 after pressing is completed. Based on this, the thickness S5 of the pressed powder can be obtained as the difference between the base pressing stroke S3 and the actual pressing stroke S4, i.e., S5 = S3 - S4.

[0073] In one scenario, the pressing component can also be a moving piston that works in conjunction with the brewer chamber to press the powder. In this scenario, during the pressing process, the brewer chamber only oscillates and does not move up and down; the moving piston moves into the brewer chamber to press the powder. It is understandable that the calculation of the powder thickness in this scenario is related to... Figure 4 The embodiments shown are similar, and this embodiment is not limited thereto.

[0074] In one exemplary embodiment, the method may further include: if the thickness of the coffee pouch is determined to be greater than or equal to a thickness threshold, performing an extraction step after tamping to complete the beverage preparation corresponding to the current grinding cycle. That is, beverage preparation is completed normally when the amount of coffee grounds is determined to be normal.

[0075] In an exemplary embodiment, the method may further include: executing a non-extraction operation mode when the thickness of the powder cake is determined to be less than a thickness threshold. The non-extraction operation mode is used for wet pressing and slag removal of the pressed powder cake. That is, beverage preparation is not performed when the powder quantity is abnormal, thereby improving the reliability of the beverage equipment.

[0076] In one exemplary embodiment, such as Figure 5 As shown, the following further explains the method for detecting missing beans in the above-mentioned beverage equipment, which may specifically include the following steps: Step 502: In response to the beverage preparation instruction, periodically sample the number of rotations of the coffee grinder in the beverage equipment at a preset sampling period to obtain the periodic sampling number of the coffee grinder.

[0077] For details, please refer to... Figure 1 Step 102 shown in this embodiment will not be described again in detail.

[0078] Step 504: During any grinding cycle, determine whether the grinder is in an empty grinding state based on the number of periodic sampling cycles of the grinder.

[0079] For specific determination of whether a dry-running state exists, please refer to... Figure 2 The embodiments shown are not described in detail here.

[0080] If it is determined that there is no empty grinding state, proceed to step 506; if it is determined that there is an empty grinding state, proceed to step 514.

[0081] Step 506: Perform the pressing process after grinding to obtain the thickness of the pressed powder cake.

[0082] Specifically, if it is determined in step 504 that the grinder is not in an empty grinding state, the dry coffee powder that has been ground and entered the brewer chamber is subjected to a tamping process to obtain the thickness of the tamped coffee pouch, and the thickness of the coffee pouch is used to further detect whether there are missing beans.

[0083] The process of obtaining the thickness of the pressed powder can be referred to Figure 3 , Figure 4 The embodiments shown are not described in detail here.

[0084] Step 508: Determine whether the thickness of the pressed powder is less than the thickness threshold.

[0085] Specifically, if the thickness of the pressed powder is determined to be greater than or equal to the thickness threshold, step 510 is executed; if the thickness of the pressed powder is determined to be less than the thickness threshold, step 512 is executed.

[0086] Step 510: Perform the extraction process after tamping the beans to complete the beverage preparation corresponding to the current grinding cycle.

[0087] Specifically, if the thickness of the powder cake is determined to be greater than or equal to the thickness threshold based on step 508, normal extraction is performed to complete the beverage preparation corresponding to the current grinding cycle.

[0088] Step 512: Issue the first bean shortage warning signal.

[0089] Specifically, if step 508 determines that the cake thickness is less than a thickness threshold, a first short bean alert signal is issued. This first short bean alert signal is used to indicate an abnormal cake thickness, to alert the coffee grinder's corresponding bean storage compartment of an abnormal bean drop. Then, step 516, the no-extraction operation mode, is executed.

[0090] Step 514: Control the grinder to stop grinding beans and issue a second bean shortage warning signal.

[0091] Specifically, if step 504 determines that the coffee grinder is in an empty grinding state, the grinder is controlled to stop grinding and a second low-bean warning signal is issued. This second low-bean warning signal is used to indicate that the grinder is grinding empty, to remind the corresponding bean storage bin of an abnormal bean drop. Then, step 516, the no-extraction operation mode, is executed. It can be understood that since the grinder being in an empty grinding state indicates that it is low on beans, if the grinder is already detected to be grinding empty, there is no need to perform steps 506 and 508 to monitor and judge the puck thickness; instead, it can be directly determined that there are low beans.

[0092] Step 516: Execute the no-extraction operation mode.

[0093] If the cake thickness is determined to be less than a thickness threshold, a no-extraction operation mode is executed to perform wet pressing and residue removal on the pressed cake. Similarly, after the grinder stops grinding, a no-extraction operation mode is executed to perform wet pressing and residue removal on the ground powder.

[0094] The above method dynamically monitors the number of revolutions of the coffee grinder during the grinding stage to determine its grinding status. If the grinder is found to be grinding empty during any grinding cycle, it indicates a shortage of coffee beans, triggering a corresponding warning signal. The grinder then executes a non-extraction mode for wet pressing and chaff removal, without needing to check the cake thickness. Conversely, if the grinder is not found to be grinding empty during any grinding cycle, the method further integrates cake thickness monitoring during the tamping stage to detect a shortage. If the cake thickness is detected to be less than a certain threshold, a shortage is detected, triggering a warning signal and executing a non-extraction mode for wet pressing and chaff removal. Only when the cake thickness is detected to be greater than or equal to the thickness threshold does the normal extraction process begin, completing the beverage preparation for the corresponding grinding cycle. It achieves bean shortage detection by combining dynamic monitoring of the number of rotations of the grinder and monitoring of the cake thickness during the tamping stage. This eliminates the need to install detection sensors in the bean storage hopper, saving not only the cost of bean shortage detection, but also significantly improving the accuracy and robustness of bean shortage detection through its dual verification mechanism.

[0095] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0096] Based on the same inventive concept, this application also provides a bean shortage detection device for implementing the bean shortage detection method for beverage equipment as described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations of one or more bean shortage detection device embodiments for beverage equipment provided below can be found in the limitations of the bean shortage detection method for beverage equipment described above, and will not be repeated here.

[0097] In one exemplary embodiment, such as Figure 6As shown, a bean shortage detection device for beverage equipment is provided, comprising: a sampling module 602, a powder cake thickness acquisition module 604, and a prompting module 606, wherein: The sampling module 602 is configured to perform periodic sampling of the number of rotations of the coffee grinder in the beverage equipment in response to a beverage making instruction, with a preset sampling period, to obtain the periodic sampling number of the coffee grinder. The powder thickness acquisition module 604 is configured to perform the tamping step after grinding in any grinding cycle corresponding to the beverage making instruction, based on the periodic sampling number of the grinder and to determine that the grinder is not in an empty grinding state, and to acquire the powder thickness after tamping. The prompting module 606 is configured to, when it is determined that the thickness of the coffee puck is less than a thickness threshold, issue a first short coffee puck prompt signal, the first short coffee puck prompt signal being used to indicate an abnormal coffee puck thickness; or, during any grinding cycle, if it is determined that the coffee grinder is in an empty grinding state based on the periodic sampling cycle of the coffee grinder, control the coffee grinder to stop grinding and issue a second short coffee puck prompt signal, the second short coffee puck prompt signal being used to indicate that the coffee grinder is grinding empty, so as to remind the coffee storage bin corresponding to the coffee grinder of an abnormal coffee puck drop.

[0098] In an exemplary embodiment, the prompting module is further configured to: during any grinding cycle, when it is determined that the grinder is in an empty grinding state based on the number of periodic sampling cycles of the grinder, control the grinder to stop grinding and issue a second bean shortage prompt signal, the second bean shortage prompt signal being used to indicate that the grinder is grinding empty, so as to remind the bean storage bin corresponding to the grinder of an abnormal bean drop.

[0099] In one exemplary embodiment, the device further includes an execution module configured to execute a non-extraction operation mode after controlling the grinder to stop grinding, the non-extraction operation mode being used for wet pressing and slag removal of the ground powder.

[0100] In an exemplary embodiment, the device further includes a state determination module configured to, after obtaining the periodic sampling number of the coffee grinder, acquire the average sampling number of the coffee grinder within the evaluation period, with a set number of sampling cycles as the evaluation period; within any given grinding cycle, detect in real time a first average sampling number of the coffee grinder in the current evaluation period and a second average sampling number of historical evaluation periods prior to the current evaluation period and spaced apart by a set evaluation period; acquire the difference in number of cycles between the first average sampling number and the second average sampling number; if all differences in number of cycles are less than a number of cycles threshold in any given grinding cycle, determine that the coffee grinder is not in an empty grinding state; if there is a case in any given grinding cycle where the difference in number of cycles is greater than or equal to the number of cycles threshold, determine that the coffee grinder is in an empty grinding state.

[0101] In an exemplary embodiment, the state determination module is further configured to perform: based on the set number of sampling cycles, obtain the sum of the number of sampling cycles of the coffee grinder within the set number of sampling cycles; calculate the quotient of the sum of the number of sampling cycles and the set number of sampling cycles, the quotient being used to characterize the average number of sampling cycles of the coffee grinder within the evaluation period.

[0102] In an exemplary embodiment, the execution module is further configured to perform: if it is determined that the thickness of the powder cake is greater than or equal to the thickness threshold, to perform the extraction step after pressing the powder, thereby completing the beverage preparation corresponding to the current grinding cycle.

[0103] In an exemplary embodiment, the execution module is further configured to perform: upon determining that the thickness of the powder cake is less than a thickness threshold, to execute a non-extraction operation mode, the non-extraction operation mode being used for wet pressing and slag removal of the pressed powder cake.

[0104] In one exemplary embodiment, the thickness threshold is the thickness of the powder cake measured when the beverage device makes a beverage with the minimum grinding amount, the coarsest grinding setting, and the maximum tamping force.

[0105] In an exemplary embodiment, the powder thickness acquisition module is further configured to perform: determining a basic tamping stroke according to the beverage preparation instruction, the basic tamping stroke being used to characterize the stroke of the tamping execution component from the tamping ready position to the end position; performing the tamping step after grinding, acquiring the actual tamping stroke during the tamping process, the actual tamping stroke being used to characterize the stroke of the tamping execution component from the tamping ready position to the tamping completed position; and acquiring a first stroke difference between the basic tamping stroke and the actual tamping stroke, the first stroke difference being used to characterize the powder thickness after tamping.

[0106] In an exemplary embodiment, the powder thickness acquisition module is further configured to: determine the basic tamping stroke from configuration parameters according to the beverage preparation instruction; or, control the tamping execution component to enter a self-testing phase according to the beverage preparation instruction, and acquire the basic tamping stroke detected by the tamping execution component based on the self-testing phase.

[0107] In an exemplary embodiment, the powder thickness acquisition module is further configured to perform: acquiring the full travel and powder-ready travel of the powder pressing execution component based on the self-test step, wherein the full travel is used to characterize the travel of the powder pressing execution component from the starting position to the ending position; the powder-ready travel is used to characterize the travel of the powder pressing execution component from the starting position to the powder-ready position; and acquiring a second travel difference between the full travel and the powder-ready travel, wherein the second travel difference is used to characterize the basic powder pressing travel.

[0108] In one exemplary embodiment, the powder pressing actuation component is a brewer chamber or a moving piston that cooperates with the brewer chamber to perform powder pressing.

[0109] The modules in the aforementioned beverage equipment's bean shortage detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0110] In one exemplary embodiment, a beverage device is provided, the internal structure of which can be shown in the following diagram. Figure 7As shown, the beverage device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a method for detecting missing beans in the beverage device. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the beverage device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the outer shell of the beverage device, or an external keyboard, touchpad, or mouse, etc.

[0111] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the beverage equipment to which the present application is applied. Specific beverage equipment may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0112] In one exemplary embodiment, a beverage device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0113] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0114] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0115] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0116] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0117] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0118] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for detecting missing beans in a beverage equipment, characterized in that, The method includes: In response to a beverage preparation instruction, the number of rotations of the coffee grinder in the beverage equipment is periodically sampled at a preset sampling period to obtain the periodic sampling number of the coffee grinder. In any grinding cycle corresponding to the beverage preparation instruction, if the number of periodic sampling cycles of the grinder determines that the grinder is not in an empty grinding state, the tamping step after grinding is performed to obtain the thickness of the tamped powder. If the thickness of the coffee puck is determined to be less than a thickness threshold, a first short bean alert signal is issued. The first short bean alert signal is used to indicate an abnormal coffee puck thickness, so as to remind the coffee storage bin corresponding to the coffee grinder of an abnormal coffee drop.

2. The method according to claim 1, characterized in that, The method further includes: During any given grinding cycle, if the number of periodic sampling cycles of the grinder indicates that the grinder is in an empty grinding state, the grinder is controlled to stop grinding and issue a second bean shortage warning signal. The second bean shortage warning signal is used to indicate that the grinder is grinding empty, so as to remind the bean storage bin corresponding to the grinder of an abnormal bean drop.

3. The method according to claim 2, characterized in that, After the method controls the coffee grinder to stop grinding coffee, it further includes: The non-extraction operation mode is executed, which is used to perform wet pressing and slag removal treatment on the ground powder.

4. The method according to claim 2, characterized in that, After obtaining the periodic sampling number of the coffee grinder, the method further includes: Using a set number of sampling cycles as the evaluation period, the average number of sampling cycles of the coffee grinder within the evaluation period is obtained; During any given grinding cycle, the first average number of sampling cycles of the grinder in the current evaluation cycle and the second average number of sampling cycles in historical evaluation cycles prior to the current evaluation cycle and at intervals of set evaluation cycles are detected in real time. Obtain the difference in the number of laps between the first average number of laps and the second average number of laps; If, during any given grinding cycle, the difference in the number of revolutions is less than the revolutions threshold, it is determined that the grinder is not in an empty grinding state. If, during any given grinding cycle, the difference in the number of revolutions is greater than or equal to the number of revolutions threshold, it is determined that the grinder is in an empty grinding state.

5. The method according to claim 4, characterized in that, The step of obtaining the average number of sampling cycles of the coffee grinder within the evaluation period, using a set number of sampling cycles as the evaluation period, includes: Based on the set number of sampling cycles, the sum of the number of sampling cycles of the coffee grinder within the set number of sampling cycles is obtained; Calculate the quotient of the sum of the sampling cycles and the set number of sampling cycles, whereby the quotient is used to characterize the average number of sampling cycles of the grinder during the evaluation period.

6. The method according to claim 1, characterized in that, The method further includes: If the thickness of the pressed powder is determined to be greater than or equal to the thickness threshold, the extraction step after pressing is performed to complete the beverage preparation corresponding to the current grinding cycle; or... If the thickness of the powder cake is determined to be less than the thickness threshold, an extraction-free operation mode is executed. The extraction-free operation mode is used to perform wet pressing and slag removal on the pressed powder cake.

7. The method according to any one of claims 1 to 6, characterized in that, The thickness threshold is the thickness of the powder cake measured when the beverage equipment makes beverages with the minimum grinding amount, the coarsest grinding setting, and the maximum pressing force.

8. The method according to any one of claims 1 to 6, characterized in that, The powder pressing step after grinding, to obtain the thickness of the powder cake after pressing, includes: According to the beverage preparation instructions, a basic tamping stroke is determined, which is used to characterize the travel of the tamping execution component from the tamping ready position to the end position; Perform the powder pressing step after grinding, and obtain the actual powder pressing stroke during the powder pressing process. The actual powder pressing stroke is used to characterize the stroke of the powder pressing execution component from the powder pressing ready position to the powder pressing completed position. Obtain a first stroke difference between the basic tamping stroke and the actual tamping stroke, the first stroke difference being used to characterize the thickness of the powder cake after tamping.

9. The method according to claim 8, characterized in that, The step of determining the basic tamping process according to the beverage preparation instructions includes: The basic tamping stroke is determined from the configuration parameters according to the beverage preparation instructions; or... According to the beverage preparation instructions, the tamping execution component is controlled to enter the self-testing stage to obtain the basic tamping stroke detected by the tamping execution component based on the self-testing stage.

10. The method according to claim 9, characterized in that, The step of obtaining the basic tamping stroke detected by the tamping execution component based on the self-test step includes: The full stroke and ready stroke of the powder pressing execution component are obtained based on the self-test process. The full stroke represents the stroke of the powder pressing execution component from the starting position to the ending position; the ready stroke represents the stroke of the powder pressing execution component from the starting position to the ready position. Obtain a second stroke difference between the full stroke and the tamping-ready stroke, the second stroke difference being used to characterize the basic tamping stroke.

11. A bean shortage detection device for beverage equipment, characterized in that, The device includes: The sampling module is configured to perform periodic sampling of the number of rotations of the coffee grinder in the beverage equipment in response to the beverage making instruction, at a preset sampling period, to obtain the periodic sampling number of the coffee grinder. The powder thickness acquisition module is configured to perform the tamping step after grinding in any grinding cycle corresponding to the beverage preparation instruction, based on the periodic sampling number of the grinder to determine that the grinder is not in an empty grinding state, and to acquire the powder thickness after tamping. The notification module is configured to, when determining that the thickness of the coffee puck is less than a thickness threshold, issue a first low-bean notification signal, the first low-bean notification signal being used to indicate an abnormal coffee puck thickness; or, during any grinding cycle, if it is determined that the coffee grinder is in an empty grinding state based on the periodic sampling cycle of the coffee grinder, control the coffee grinder to stop grinding and issue a second low-bean notification signal, the second low-bean notification signal being used to indicate that the coffee grinder is grinding empty, to remind the coffee storage bin corresponding to the coffee grinder of an abnormal coffee drop.

12. A beverage device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 10.