Method and device for controlling refrigerator, refrigerator and computer readable storage medium
By automatically determining the user's intention to print the label in a smart refrigerator and connecting the label printer to the screen without any sense, the problem of long wait time for users is solved and the user experience is improved.
Patent Information
- Application Number
- CN202311716186.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2025-06-13
AI Technical Summary
When using a label printer in a smart refrigerator, the label printer is not always turned on due to energy saving needs, which causes users to manually select the connected label printer when printing the food label, which has a long wait time and poor user experience.
By setting up a display screen and a label printer in the refrigerator, and using the environmental parameters and operating parameters around the refrigerator to determine whether the user has the intention to print a label. If the user is determined to have the intention, the display screen is automatically controlled to connect to the label printer to achieve sensorless connection.
It reduces user waiting time, improves user experience, realizes sensorless connection between the label printer and the screen, and saves user operation time.
Smart Images

Figure CN120141050A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of smart home appliances, for example, to a method and device for controlling a refrigerator, a refrigerator, and a computer-readable storage medium. Background Art
[0002] At present, with the continuous improvement of living standards, people pay more and more attention to diet health. A refrigerator is a refrigeration device that maintains a constant low temperature, and it is also a household appliance product that keeps food or other items in a constant low-temperature cold state. However, in line with the progress of social civilization, people have higher and higher requirements for the functionality of daily necessities and prefer a high-tech lifestyle, making the living environment and daily operations reflect a high degree of modernity, comfort, and pleasure. During the process of cooking dishes, it is often necessary to refer to a recipe. The traditional solution is to buy relevant recipe books and operate according to the steps described in the book when cooking. In this way, the requirements can be basically met, but the use process is inconvenient. It is necessary to operate while looking at the book, and the process is cumbersome and cramped. There are often interferences between the reference and execution actions, delaying the cooking time and resulting in cooking failure.
[0003] The related technology discloses an intelligent refrigerator and a method for realizing recipe recommendation. It solves the problem that the existing refrigerator cannot provide functions such as ingredient management and recipe recommendation. The intelligent refrigerator includes a main controller disposed inside the refrigerator body. The main controller is controlled and connected to a touch control display screen disposed on the surface of the refrigerator body. The main controller is controlled and connected to a network transmission port. The network transmission port is wirelessly connected to a remote server through a wireless network. The main controller is controlled and connected to an infrared barcode scanner. The main controller is controlled and connected to a barcode printer. The method for realizing recipe recommendation includes: an ingredient entry step, a recipe recommendation step, and an ingredient deletion step. The present invention adds the functions of ingredient electronic information management and electronic recipe recommendation on the refrigerator body, and can also upload self-created dishes for more users to refer to, thereby expanding the number of recipe references for dish making, facilitating the making and quality standardization of dishes, and improving the comfort and pleasure of kitchen operations.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related technology:
[0005] When using the related technology label printer to print ingredient labels, it needs to be connected to the screen terminal. In the actual application process, due to energy conservation needs, the label printer is not always in an on state. This results in that when the user prints ingredient labels, the user needs to manually select the label printer to be connected on the screen terminal. However, it takes a long time from the label printer being turned on to establishing a connection with the screen terminal, resulting in a long waiting time for the user and poor user experience.
[0006] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present application, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0007] To have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important constituent elements or delineate the scope of protection of these embodiments, but rather serves as a preamble to the subsequent detailed description.
[0008] Embodiments of the present disclosure provide a method and device for controlling a refrigerator, a refrigerator, and a computer-readable storage medium, so as to achieve a seamless connection between a label printer and a screen terminal when a user prints a food ingredient label, avoid long waiting times for the user, and improve the user experience.
[0009] In some embodiments, the refrigerator includes a display screen and a label printer; the method includes: when the duration between the time when the user last used the label printer and the current time is greater than a first duration threshold, controlling the label printer to shut down; when the label printer shuts down, determining whether the user has an intention to print a label according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator; when it is determined that the user has an intention to print a label, controlling the display screen to connect to the label printer.
[0010] Optionally, determining whether the user has an intention to print a label according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator includes: obtaining the location information of the user and / or the voice information of the user and / or the interface information of the display screen; when the location information of the user and / or the voice information of the user and / or the interface information of the display screen meet preset conditions, determining that the user has an intention to print a label.
[0011] Optionally, the preset conditions include: the user is within a set range; and / or, the user emits a voice with an intention to print; and / or, the display screen enters a printing interface.
[0012] Optionally, the refrigerator includes a detection device for detecting the location of the user, and the detection device includes a first detection device and a second detection device spaced apart by a set height; the method for determining whether the user is within the set range is as follows: when the user is within the recognition range of the detection device, respectively obtain the first detection value of the first detection device and the second detection value of the second detection device; calculate the parameter difference between the first detection value and the second detection value; when the parameter difference is less than the error threshold, determine that the user is within the set range.
[0013] Optionally, the method for determining the set height is as follows: obtain the body information of the user; according to the preset correspondence between the body information and the set height, determine the set height corresponding to the body information.
[0014] Optionally, controlling the display screen to connect to the label printer includes: detecting whether the label printer is powered on; when the label printer is not powered on, controlling the printer to be powered on; when the label printer is powered on, controlling the display screen to connect to the label printer.
[0015] Optionally, controlling the display screen to connect to the label printer includes: determining the start connection time for the display screen to connect to the label printer according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator; when the start connection time is reached, controlling the display screen to start connecting to the label printer.
[0016] In some embodiments, the device includes: a processor and a memory storing program instructions, and the processor is configured to execute the above method for controlling the refrigerator when executing the above program instructions.
[0017] In some embodiments, the refrigerator includes:
[0018] A refrigerator body including a display screen and a label printer; and,
[0019] The above device for controlling the refrigerator is installed on the refrigerator body.
[0020] In some embodiments, the computer-readable storage medium stores program instructions, and the above program instructions, when running, execute the above method for controlling the refrigerator.
[0021] The method, device, refrigerator, and computer-readable storage medium for controlling the refrigerator provided by the embodiments of the present disclosure can achieve the following technical effects:
[0022] When the duration between the time when the user last used the label printer and the current time is greater than the first duration threshold, control the label printer to shut down. When the label printer shuts down, judge whether the user has the intention to print labels according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator. When it is determined that the user has the intention to print labels, control the display screen to connect to the label printer. When the label printer shuts down to save energy, identify the user's intention based on the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator, so as to establish a connection between the label printer and the screen terminal in advance before the user prints labels, realizing a seamless connection between the label printer and the screen terminal. Thus, when the user needs to print food ingredient labels, the situation of long waiting time for the user is avoided, improving the user experience.
[0023] The above general description and the following description are only exemplary and explanatory, and are not used to limit this application. Description of the Drawings
[0024] One or more embodiments are exemplarily illustrated by corresponding drawings. These exemplary illustrations and the drawings do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation, and wherein:
[0025] Figure 1 is a schematic diagram of a method for controlling a refrigerator provided by an embodiment of the present disclosure;
[0026] Figure 2 is a schematic diagram of another method for controlling a refrigerator provided by an embodiment of the present disclosure;
[0027] Figure 3 is a schematic diagram of another method for controlling a refrigerator provided by an embodiment of the present disclosure;
[0028] Figure 4 is a schematic diagram of another method for controlling a refrigerator provided by an embodiment of the present disclosure;
[0029] Figure 5 is a schematic diagram of a device for controlling a refrigerator provided by an embodiment of the present disclosure;
[0030] Figure 6 is a schematic diagram of a refrigerator provided by an embodiment of the present disclosure. Detailed Description of the Embodiment
[0031] In order to be able to understand the features and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure will be described in detail below with reference to the drawings. The attached drawings are for reference and illustration only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a sufficient understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, well-known structures and devices can be shown in a simplified manner.
[0032] In the description of the embodiments of the present disclosure, the terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so as to implement the embodiments of the present disclosure described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion.
[0033] Unless otherwise specified, the term "plurality" means two or more.
[0034] In the embodiments of the present disclosure, the character " / " indicates that the objects before and after are in an "or" relationship. For example, A / B means: A or B.
[0035] The term "and / or" describes the relationship between objects and indicates that there can be three relationships. For example, A and / or B means: A or B, or, the three relationships of A and B.
[0036] The term "corresponding" can refer to an association relationship or a binding relationship. That A corresponds to B means that there is an association relationship or a binding relationship between A and B.
[0037] In the embodiments of the present disclosure, an intelligent household appliance device refers to a household appliance product formed by introducing microprocessor, sensor technology, and network communication technology into household appliance devices, which has the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of intelligent household appliance devices often depends on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, an intelligent household appliance device can be connected to an electronic device to realize remote control and management of the intelligent household appliance device by the user.
[0038] In the disclosed embodiments, a terminal device refers to an electronic device with wireless connection function. The terminal device can be communicatively connected to the intelligent household appliance device as described above by connecting to the Internet, or can also be communicatively connected to the intelligent household appliance device as described above directly through Bluetooth, Wi-Fi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or an in-vehicle device built in a hover car, etc., or any combination thereof. The mobile device can include, for example, a mobile phone, a smart home device, a wearable device, a smart mobile device, a virtual reality device, etc., or any combination thereof, wherein the wearable device includes, for example: a smart watch, a smart bracelet, a pedometer, etc.
[0039] At present, with the continuous improvement of living standards, people pay more and more attention to diet health. A refrigerator is a refrigeration device that maintains a constant low temperature, and it is also a household electrical appliance product that keeps food or other items in a constant low-temperature cold state. However, with the progress of social civilization, people have higher and higher requirements for the functionality of daily necessities and tend to a high-tech lifestyle, making the living environment and daily operations reflect a high degree of modernity, comfort, and pleasure. During the process of cooking dishes, it is often necessary to refer to recipes. The traditional solution is to buy relevant recipe books and operate according to the steps introduced in the books when cooking. In this way, the requirements can be basically met, but the use process is not convenient. It is necessary to operate while looking at the book, and the process is cumbersome and cramped. There are often interferences between the reference and execution actions, delaying the cooking time and resulting in cooking failures. Related technologies have disclosed an intelligent refrigerator and a method for realizing recipe recommendations. It solves the problem that existing refrigerators cannot provide functions such as ingredient management and recipe recommendations. The intelligent refrigerator includes a main controller disposed inside the refrigerator body. The main controller is controlled and connected to a touch control display screen disposed on the refrigerator body surface. The main controller is controlled and connected to a network transmission port. The network transmission port is connected to a remote server through a wireless network. The main controller is controlled and connected to an infrared barcode scanner, and the main controller is controlled and connected to a barcode printer. The method for realizing recipe recommendations includes: an ingredient entry step, a recipe recommendation step, and an ingredient deletion step. The present invention adds functions of electronic information management of ingredients and electronic recipe recommendations on the refrigerator body, and can also upload self-created dishes for more users to refer to, thereby expanding the number of recipe references for dish making, facilitating the making and quality standardization of dishes, and enhancing the comfort and pleasure of kitchen operations. When using the related technology label printer to print ingredient labels, it needs to be connected to the screen terminal. In the actual application process, due to energy conservation needs, the label printer is not always in an on state, which results in that when the user prints ingredient labels, the user needs to manually select the label printer to be connected on the screen terminal. However, it takes a long time from the label printer being turned on to establishing a connection with the screen terminal, resulting in a long waiting time for the user and a poor user experience.
[0040] The embodiments of the present disclosure disclose a refrigerator, including a display screen, a label printer, a communication module, a voice recognition module, a human sensing module, and a processor. The human sensing module includes a detection device for detecting the user's position. The detection device includes a first detection device and a second detection device spaced at a set height. Among them, the first detection device and the second detection device can be radio frequency sensors. The processor is electrically connected to the above-mentioned electrical components and is used to control the above-mentioned electrical components to perform actions.
[0041] Based on the structure of the refrigerator as described above, as Figure 1 shown, the embodiments of the present disclosure provide a method for controlling a refrigerator, including:
[0042] S01. When the duration between the time when the user last used the label printer and the current time is greater than the first duration threshold, the processor controls the label printer to turn off.
[0043] S02. When the label printer is turned off, based on the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator, the processor determines whether the user has the intention to print a label.
[0044] S03. When it is determined that the user has the intention to print a label, the processor controls the display screen to connect to the label printer.
[0045] Among them, the first duration threshold can be any duration, for example, 10 minutes, 11 minutes, or 12 minutes, etc. Specifically, the first duration threshold can be determined according to the power consumption and battery level of the label printer. The greater the power consumption and the lower the battery level, the smaller the first duration threshold; conversely, the larger it is.
[0046] Using the method for controlling a refrigerator provided by the embodiments of the present disclosure, when the duration between the time when the user last used the label printer and the current time is greater than the first duration threshold, for energy conservation, the processor controls the label printer to turn off. When the label printer is turned off, based on the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator, it is determined whether the user has the intention to print a label. When it is determined that the user has the intention to print a label, the display screen is controlled to connect to the label printer. When the label printer is turned off for energy conservation, the user's intention is recognized based on the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator, so that before the user prints a label, the connection between the label printer and the screen terminal is established in advance, realizing a seamless connection between the label printer and the screen terminal. Thus, when the user prints a food ingredient label, the situation of the user waiting for a long time is avoided, and the user experience is improved.
[0047] Based on the above structure of the refrigerator, as Figure 2 shown, the embodiments of the present disclosure provide a method for controlling a refrigerator, including:
[0048] S01. When the duration between the time when the user last used the label printer and the current time is greater than the first duration threshold, the processor controls the label printer to turn off.
[0049] S21. When the label printer is turned off, the processor obtains the user's location information and / or the user's voice information and / or the interface information of the display screen.
[0050] S22. When the user's location information and / or the user's voice information and / or the interface information of the display screen meet the preset conditions, the processor determines that the user has the intention to print a label.
[0051] S03. When it is determined that the user has the intention to print a label, the processor controls the display screen to connect to the label printer.
[0052] When using the method for controlling a refrigerator provided by the embodiments of the present disclosure, when the label printer is turned off, the label printer is in a power-saving state. It is necessary to judge in advance whether the user has a printing intention, so as to judge whether to connect the screen terminal and the label printer in advance. Therefore, the processor obtains the location information of the user and / or the voice information of the user and / or the interface information of the display screen. When the location information of the user and / or the voice information of the user and / or the interface information of the display screen meet the preset conditions, the processor determines that the user has the intention to print a label.
[0053] Optionally, the preset conditions include: the user is within the set range; and / or, the user emits a voice with a printing intention; and / or, the display screen enters the printing interface.
[0054] In this way, when the user is within the set range, the user is relatively close to the refrigerator screen terminal and has the intention to print food ingredient labels. When the user issues a voice command to print food ingredient labels or the display screen enters the printing interface, it indicates that the user clearly has the intention to print food ingredient labels. Therefore, when the user is within the set range and / or the user emits a voice with a printing intention and / or the display screen enters the printing interface, it can be determined that the user has the intention to print food ingredient labels.
[0055] Optionally, as Figure 3 shown, the processor judges whether the user is within the set range according to the following method:
[0056] S31. When the user is within the recognition range of the detection device, the processor respectively obtains the first detection value of the first detection device and the second detection value of the second detection device.
[0057] S32. The processor calculates the parameter difference between the first detection value and the second detection value.
[0058] S33. When the parameter difference is less than the error threshold, the processor determines that the user is within the set range.
[0059] Wherein, the first detection device and the second detection device are spaced apart by a set height. Since the body proportions of different users are different, some have long legs, some have short legs, some have long upper bodies, and some have short upper bodies. By spacing the set height, the detection parameters of the two detection devices can be adapted to the body conditions of different users, so that the detection results can be more accurate.
[0060] In this way, when the user is within the recognition range of the detection device, the first detection value of the first detection device and the second detection value of the second detection device are respectively obtained, and the parameter difference between the first detection value and the second detection value is calculated. Finally, when the parameter difference is less than the error threshold, the user is determined to be within the set range based on the first detection value and the second detection value. By setting two detection devices and comparing the consistency of the detection values of the two detection devices, it is possible to accurately identify whether the moving object within the recognition range is only the user. This reduces the interference of the movable device on the detection device when identifying the user, thereby improving the accuracy of user identification.
[0061] Optionally, the processor determines the set height according to the following method: The processor obtains the body information of the user; The processor determines the set height corresponding to the body information according to the preset correspondence between the body information and the set height.
[0062] Among them, the correspondence can be determined by looking up a table, introducing expert knowledge, or determined by developers.
[0063] In this way, determining the set height based on the body information of the user can make the set height match the user's figure.
[0064] Optionally, the processor determines the error threshold according to the following method: The processor obtains the first height of the first detection device and the second height of the second detection device; The processor determines the error threshold according to the first height and the second height.
[0065] In this way, since the detection devices are placed at different heights and the recognition ranges may be different, resulting in reasonable errors in the detection results of each parameter, the processor determines the error threshold through the first height and the second height, which can make the error threshold more accurate.
[0066] Optionally, the processor determines the error threshold according to the first height and the second height, including: The processor calculates the height difference between the first height and the second height; The processor determines the error threshold corresponding to the height difference according to the preset correspondence between the height difference and the error threshold.
[0067] In this way, since the difference between the first height and the second height can affect the interval between the recognition ranges of the first detection device and the second detection device, the processor determines the error threshold according to the preset height difference, which can further improve the accuracy of the error threshold.
[0068] Optionally, the processor determines the first height according to the following method: The processor obtains the size information of the movable device in the user's home; The processor determines the first height according to the size information of the movable device; where the first height is less than the second height.
[0069] Among them, the dimension information includes information such as the length, width, and height of the movable device. The first height is greater than the height of the movable device.
[0070] In this way, in order to avoid the interference of the movable device to the detection device, it is necessary to make the height of the effective recognition range of the first detection device greater than the height of the movable device, so that the first detection device cannot detect the movable device, thereby reducing the interference of the movable device in the home. Therefore, determining the first height according to the dimension information of the movable device can make the first height more accurate and improve the accuracy of user recognition.
[0071] Based on the above structure of the refrigerator, as Figure 4 shown, the embodiments of the present disclosure provide a method for controlling a refrigerator, including:
[0072] S01, when the duration between the time when the user last used the label printer and the current time is greater than the first duration threshold, the processor controls the label printer to shut down.
[0073] S02, when the label printer shuts down, the processor determines whether the user has the intention to print a label according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator.
[0074] S41, when it is determined that the user has the intention to print a label, the processor detects whether the label printer is powered on.
[0075] S42, when the label printer is not powered on, the processor controls the printer to be powered on.
[0076] S43, when the label printer is powered on, the processor controls the display screen to be connected to the label printer.
[0077] By using the method for controlling a refrigerator provided by the embodiments of the present disclosure, when it is determined that the user has the intention to print a label, the processor detects whether the label printer is powered on to determine whether the label printer can be normally started. When the label printer is not powered on, the processor controls the printer to be powered on so that the label printer can be normally started. When the label printer is powered on, the processor controls the display screen to be connected to the label printer, so that the user can control the label printer to print a label through the display screen.
[0078] Optionally, the processor controls the display screen to be connected to the label printer, including: the processor determines the start connection time for the display screen to be connected to the label printer according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator; when the start connection time arrives, the processor controls the display screen to start connecting to the label printer.
[0079] Among them, the processor determines the start connection time for the display screen to connect to the label printer according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator. Specifically, the duration required for the user to reach the screen end from entering the recognition range of the detection device and start using the label printer to print food ingredient labels under the current environmental parameters and / or operating parameters can be determined through a preset corresponding relationship. Thus, the processor can calculate and determine the start connection time based on the required duration and the current time. For example, when the user is within the set range, or when the user issues a voice command with the intention of printing, the processor adds the duration required to reach the screen end and start using the label printer to print food ingredient labels to the current time, and then subtracts the duration required for the label printer to connect to the display screen, thereby obtaining the start connection time; when the display screen enters the printing interface, the processor directly uses the current time as the start connection time for the display screen to connect to the label printer, etc. The start connection time can be any time, as long as the label printer is connected to the display screen when the user reaches the screen end to use the label printer, and there is no limitation here. The duration required for the label printer to connect to the display screen can be specifically determined by querying through a preset corresponding relationship according to the model of the label printer and the signal of the refrigerator.
[0080] In this way, the processor determines the start connection time for the display screen to connect to the label printer according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator. When the start connection time is reached, the processor controls the display screen to start connecting to the label printer, so that the start connection time of the label printer and the display screen matches the time when the user reaches the screen end, thereby enabling the user to use the label printer when they need to print food ingredient labels, reducing the waiting time of the user.
[0081] Combined with Figure 5 As shown, an apparatus 800 for controlling a refrigerator provided by an embodiment of the present disclosure includes a processor 801 and a memory 802. Optionally, the apparatus may further include a communication interface 803 and a bus 804. Among them, the processor 801, the communication interface 803, and the memory 802 can complete communication with each other through the bus 804. The communication interface 803 can be used for information transmission. The processor 801 can call the logical instructions in the memory 802 to execute the method for controlling the refrigerator in the above embodiment.
[0082] In addition, when the logical instructions in the above-mentioned memory 802 are implemented in the form of a software functional unit and sold or used as an independent product, they can be stored in a computer-readable storage medium.
[0083] The memory 802, being a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as the program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor 801 executes functional applications and data processing by running the program instructions / modules stored in the memory 802, that is, implements the method for controlling the refrigerator in the above embodiments.
[0084] The memory 802 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory 802 may include high-speed random access memory and may also include non-volatile memory.
[0085] Combined Figure 6 As shown, the embodiments of the present disclosure provide a refrigerator 900, including: a refrigerator body, and the above-mentioned device 700(800) for controlling the refrigerator. The device 700(800) for controlling the refrigerator is installed on the refrigerator body. The installation relationship described here is not limited to being placed inside the refrigerator, but also includes installation connections with other components of the refrigerator, including but not limited to physical connections, electrical connections, or signal transmission connections, etc. Those skilled in the art can understand that the device 700(800) for controlling the refrigerator can be adapted to a feasible refrigerator body, thereby implementing other feasible embodiments.
[0086] The embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are set to execute the above-mentioned method for controlling the refrigerator.
[0087] The technical solutions of the embodiments of the present disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The foregoing storage medium may be a non-transitory storage medium, including: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical disks, etc., which are various media that can store program codes.
[0088] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure, enabling those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process, and other changes. Embodiments only represent possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terms used in this application are only for describing embodiments and do not limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to also include the plural forms. Similarly, as used in this application, the term "and / or" refers to any and all possible combinations including one or more of the associated listed items. Additionally, when used in this application, the term "comprise" and its variants "comprises" and / or "comprising" etc. mean the presence of the stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or groups of these. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, or device comprising the element. Herein, each embodiment may focus on the differences from other embodiments, and the same or similar parts among the embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, the relevant parts may refer to the description of the method part.
[0089] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner may depend on the specific application and design constraints of the technical solution. The skilled person may use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the embodiments of the present disclosure. The skilled person can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0090] In the embodiments disclosed in this article, the disclosed methods, products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms. The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. Additionally, in the embodiments of this disclosure, the various functional units can be integrated in one processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0091] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the block can occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks can also occur in a different order than that disclosed in the description. Sometimes, there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. Each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for controlling a refrigerator, characterized in that, the refrigerator includes a display screen and a label printer; the method includes: When the duration between the time when the user last used the label printer and the current time is greater than the first duration threshold, control the label printer to shut down; When the label printer is shut down, judge whether the user has the intention to print labels according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator; When it is determined that the user has the intention to print labels, control the display screen to connect to the label printer.
2. The method according to claim 1, characterized in that, judging whether the user has the intention to print labels according to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator includes: Obtain the location information of the user and / or the voice information of the user and / or the interface information of the display screen; When the location information of the user and / or the voice information of the user and / or the interface information of the display screen meet the preset conditions, determine that the user has the intention to print labels.
3. The method according to claim 2, characterized in that, the preset conditions include: The user is within the set range; and / or, The user emits a voice with the intention of printing; and / or, The display screen enters the printing interface.
4. The method according to claim 3, characterized in that, the refrigerator includes a detection device for detecting the user's location, and the detection device includes a first detection device and a second detection device spaced at a set height; judge whether the user is within the set range according to the following method: When the user is within the recognition range of the detection device, obtain the first detection value of the first detection device and the second detection value of the second detection device respectively; Calculate the parameter difference between the first detection value and the second detection value; When the parameter difference is less than the error threshold, determine that the user is within the set range.
5. The method according to claim 4, characterized in that, determine the set height according to the following method: Obtain the physical information of the user; According to the preset corresponding relationship between the physical information and the set height, determine the set height corresponding to the physical information.
6. The method according to any one of claims 1 to 5, characterized in that, controlling the display screen to connect to the label printer includes: Detect whether the label printer is powered; When the label printer is not powered, control the printer to be powered; When the label printer is powered, control the display screen to connect to the label printer.
7. The method according to claim 6, characterized in that, controlling the display screen to connect to the label printer includes: According to the environmental parameters around the refrigerator and / or the operating parameters of the refrigerator, determine the start connection time for the display screen to connect to the label printer; When the start connection time is reached, control the display screen to start connecting to the label printer.
8. A device for controlling a refrigerator, including a processor and a memory storing program instructions, characterized in that, the processor is configured to execute the method for controlling a refrigerator according to any one of claims 1 to 7 when running the program instructions.
9. A refrigerator, characterized in that, including: The refrigerator body includes a display screen and a label printer; and, The device for controlling a refrigerator according to claim 8 is installed on the refrigerator body.
10. A computer-readable storage medium stores program instructions, characterized in that, when the program instructions are running, they are used to cause a computer to execute the method for controlling a refrigerator according to any one of claims 1 to 7.