A door control method, device, equipment and storage medium
By detecting the acceleration and damping force of the refrigerator door closing operation, determining the closing time and triggering an alarm, the power consumption problem caused by the refrigerator door not being completely closed is solved, and user experience and energy efficiency are improved.
Patent Information
- Application Number
- CN202310088372.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-17
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2043-01-17
AI Technical Summary
When the existing refrigerator door is not completely closed, it will increase power consumption, and users fail to detect and close it in time, affecting energy efficiency and user experience.
By detecting the acceleration of the refrigerator door closing operation, determine the time required to close the door, and trigger an alarm event when the full closing is not reached, reminding the user to complete the closing operation and preventing increased power consumption.
It effectively prevents increased power consumption due to the incomplete closing of the refrigerator door, and improves user experience and the energy efficiency of the refrigerator.
Smart Images

Figure CN116067115B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of household appliance technology, and in particular, to a door control method, device, equipment and storage medium. Background Art
[0002] A refrigerator is a refrigeration device that keeps a constant low temperature. It is also a civilian product that keeps food or other items at a constant low temperature. Today's refrigerators have become large food storage cabinets. Different users may place different things in different storage layers of the refrigerator, such as eggs in the egg compartment on the upper layer of the refrigerator door, and beverages and other items in the lower layer of the refrigerator door. When users take and put items in different storage layers in the refrigerator, they need to open and close the refrigerator door. When the user closes the refrigerator door, if the refrigerator door is not completely closed and the user does not notice whether the refrigerator door is completely closed, the power consumption of the refrigerator will increase. Summary of the invention
[0003] In view of this, in order to solve the technical problem in the prior art that the power consumption of a refrigerator increases due to the refrigerator door not being closed, an embodiment of the present invention provides a door control method, device, equipment and storage medium.
[0004] In a first aspect, an embodiment of the present invention provides a door control method, comprising:
[0005] When the door body of the device is in the first position, detecting whether a door closing operation of the door body is triggered;
[0006] When a door closing operation is detected, the first moment of triggering the door closing operation and the target acceleration of the door are acquired;
[0007] Determining a target time for the door body to move from the first position to the second position according to the target acceleration;
[0008] Determine a second time at which the door moves to the second position according to the target duration and the first time;
[0009] When it is determined at the second moment that the door body has not moved to the second position, an alarm event of the door body is triggered.
[0010] In an optional embodiment, before executing the step of determining the target time for the door body to move from the first position to the second position according to the target acceleration, the method further includes:
[0011] Acquire a pre-stored first damping force of the rotating shaft of the door body, where the first damping force is determined by performing damping force detection on the rotating shaft at preset time intervals;
[0012] Determining a target time duration for the door body to move from the first position to the second position according to the target acceleration includes:
[0013] A target time duration for the door body to move from the first position to the second position is determined according to the target acceleration and the first damping force.
[0014] In an optional embodiment, when it is determined at the second moment that the door body has not moved to the second position, triggering an alarm event of the door body includes:
[0015] When it is determined at the second moment that the door body has not moved to the second position, determining the target positions of all items in the device;
[0016] When all the target positions do not meet the preset conditions, an alarm event of the door body is triggered, and the preset conditions include: the target position of the object exceeds the preset boundary of the storage layer where the object is placed.
[0017] In an optional embodiment, after executing the step of determining the target positions of all items in the device when it is determined at the second moment that the door body has not moved to the second position, the method further includes:
[0018] When at least one of all the target positions satisfies the preset condition, a homing prompt event is triggered.
[0019] In an optional embodiment, after executing the step of triggering an alarm event of the door body when all the target positions do not meet the preset conditions, the method further includes:
[0020] Detecting the damping force of the rotating shaft of the door body to determine the second damping force of the rotating shaft at present;
[0021] determining a deviation value of the second damping force from a target reference value;
[0022] When the deviation value is greater than a first preset threshold, a repair prompt event is triggered.
[0023] In an optional embodiment, a reset mechanism is provided in the rotating shaft of the door body;
[0024] When it is determined at the second moment that the door body has not moved to the second position, triggering an alarm event of the door body includes:
[0025] When it is determined at the second moment that the door body has not moved to the second position, controlling the reset mechanism to operate so that the door body moves to the second position;
[0026] During the process of the door body moving toward the second position, obtaining a target pressure of the door body;
[0027] When the target pressure exceeds a second preset threshold, the reset mechanism is controlled to stop working and an alarm event of the door body is triggered.
[0028] In an optional embodiment, determining a target time for the door body to move from the first position to the second position according to the target acceleration includes:
[0029] According to the target acceleration, the target duration for the door body to move from the first position to the second position is determined from the first association relationship, and the first association relationship stores a plurality of sets of correspondences between accelerations and durations.
[0030] In an optional embodiment, determining a target time for the door body to move from the first position to the second position according to the target acceleration and the first damping force includes:
[0031] According to the target acceleration and the first damping force, the target time for the door body to move from the first position to the second position is determined from a second association relationship, and the second association relationship stores a plurality of sets of correspondences among damping force, acceleration and time.
[0032] In a second aspect, an embodiment of the present invention provides a door control device, comprising:
[0033] A detection module, used for detecting whether a door closing operation of the door is triggered when the door of the device is in the first position;
[0034] An acquisition module, for acquiring a first moment of triggering the door closing operation and a target acceleration of the door body when detecting that the door closing operation is triggered;
[0035] a determination module, configured to determine a target time for the door body to move from the first position to the second position according to the target acceleration;
[0036] The determination module is further used to determine a second time when the door body moves to the second position according to the target duration and the first time;
[0037] A trigger module is used to trigger an alarm event of the door body when it is determined at the second moment that the door body has not moved to the second position.
[0038] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a door control program stored in the memory to implement the door control method as described above.
[0039] In a fourth aspect, an embodiment of the present invention provides a refrigerator, comprising: the electronic device as described above.
[0040] In a fifth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the door control method as described above.
[0041] A door control method provided by an embodiment of the present invention includes: when the door of the device is in a first position, detecting whether a door closing operation is triggered; when the door closing operation is detected, obtaining a first moment of triggering the door closing operation and a target acceleration of the door; determining a target time for the door to move from the first position to the second position according to the target acceleration; determining a second moment when the door moves to the second position according to the target time and the first moment; and triggering an alarm event for the door when it is determined that the door has not moved to the second position at the second moment. The embodiment of the present invention determines the door closing time required for the door to close by obtaining the acceleration of the door when closing the door, and determines that the door is not completely closed when the door closing time is reached, so as to issue an alarm to remind the user to close the door, thereby preventing the increase in power consumption of the refrigerator due to the door not being closed, and improving the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic flow chart of a door control method provided by an embodiment of the present invention;
[0043] Figure 2 A schematic flow chart of another door control method provided by an embodiment of the present invention;
[0044] Figure 3 A schematic flow chart of another door control method provided by an embodiment of the present invention;
[0045] Figure 4 A schematic flow chart of another door control method provided by an embodiment of the present invention;
[0046] Figure 5 A schematic diagram of the structure of a door control device provided by an embodiment of the present invention;
[0047] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0048] In the above attached figure:
[0049] 10. Detection module; 20. Acquisition module; 30. Determination module; 40. Trigger module;
[0050] 400, electronic device; 401, processor; 402, memory; 4021, operating system; 4022, application; 403, user interface; 404, network interface; 405, bus system. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.
[0053] refer to Figure 1 , Figure 1 A schematic flow chart of a door control method provided in an embodiment of the present invention. A door control method provided in an embodiment of the present invention is described in an embodiment with the device being a refrigerator and the door being a refrigerator door, and specifically includes the following steps:
[0054] S101: When the door of the device is in the first position, detecting whether a door closing operation is triggered.
[0055] In this embodiment, the first position may specifically refer to the position where the refrigerator door is opened. A magnetic switch and a mechanical switch may be provided in the refrigerator to detect whether the closing operation of the refrigerator door is triggered.
[0056] S102: When a door closing operation is detected, the first moment of triggering the door closing operation and the target acceleration of the door are obtained.
[0057] In this embodiment, an acceleration sensor is also provided in the refrigerator door for collecting the acceleration of the refrigerator door. When the closing operation of the refrigerator door is detected, it indicates that the user needs to close the refrigerator door. At this time, the closing acceleration of the refrigerator door (i.e., the target acceleration) is collected by the acceleration sensor in the refrigerator to determine whether the refrigerator door is completely closed according to the closing acceleration.
[0058] S103: Determine a target time for the door body to move from the first position to the second position according to the target acceleration.
[0059] In this embodiment, the second position may specifically refer to the position where the refrigerator door is completely closed. The target time for the refrigerator door to move from the first position to the second position may be determined in the following manner:
[0060] According to the target acceleration, the target time duration for the door body to move from the first position to the second position is determined from the first association relationship, and the first association relationship stores a plurality of sets of correspondences between accelerations and time durations.
[0061] Specifically, the first association relationship can be a query table. When the target acceleration of the refrigerator is obtained, the corresponding query table is queried according to the target acceleration to determine the closing time corresponding to the target acceleration, and the closing time is the time taken for the refrigerator door to move from the first position to the second position. The first association relationship is pre-set and stored, and can be updated according to a pre-built neural network model.
[0062] S104: Determine a second time when the door moves to a second position according to the target duration and the first time.
[0063] In this embodiment, the second moment is the moment when the refrigerator door is completely closed. After determining the target time required for the refrigerator door to move from the first position to the second position and detecting the first moment of triggering the closing operation of the refrigerator door, the second moment when the refrigerator door is completely closed can be determined. For example, when the target time is 3s and the first moment is 08:23:20 on June 6, 2022, the second moment is 08:23:23 on June 6, 2022. It should be noted that a timer is provided in the refrigerator to time the first moment and the second moment.
[0064] S105: When it is determined at the second moment that the door body has not moved to the second position, an alarm event of the door body is triggered.
[0065] In this embodiment, after determining the second moment when the refrigerator door moves to the second position, when the second moment is reached, it is judged whether the refrigerator door moves to the second position (i.e., it is judged whether the refrigerator door is completely closed). When it is determined that the refrigerator door has not moved to the second position at the second moment, the alarm event of the door body is triggered to perform an alarm reminder, so that the user manually closes the refrigerator door according to the alarm reminder. When it is determined that the refrigerator door moves to the second position at the second moment, no operation is required. Among them, a controllable light is provided in the refrigerator. When the refrigerator door is in the open state, the controllable light always maintains the lighting state. When the refrigerator door is in the closed state, the controllable light changes from the lighting state to the extinguished state. Therefore, it can be determined whether the refrigerator door moves to the second position at the second moment by detecting the state of the controllable light. It should be noted that a buzzer can be provided on the refrigerator for sound alarm reminder, and a microphone can also be provided on the refrigerator for voice alarm reminder. The alarm reminder method can be set according to actual needs. The specific method of the alarm reminder is not specifically limited in this embodiment.
[0066] In a possible implementation manner, in order to further determine the reason why the refrigerator door does not move to the second position at the second moment, refer to Figure 2 , step S105 specifically includes:
[0067] S1051: When it is determined at the second moment that the refrigerator door has not moved to the second position, determine the target positions of all items in the device.
[0068] S1052: Determine whether there is a target position that meets a preset condition among all target positions.
[0069] S1053: When all target positions do not meet the preset conditions, an alarm event of the door body is triggered.
[0070] S1054: When at least one target position among all target positions satisfies a preset condition, a homing prompt event is triggered.
[0071] Among them, the preset condition includes: the target position of the item exceeds the preset boundary of the storage layer where the item is placed, and the preset boundary is the frame of the storage layer in the refrigerator. When it is determined at the second moment that the refrigerator door has not moved to the second position, it may be caused by the obstruction of the items in the refrigerator that the refrigerator door has not moved to the second position at the second moment. Therefore, it is necessary to determine the target position of all items in the refrigerator door, and determine in turn whether the refrigerator door has not moved to the second position at the second moment due to the obstruction of the items. Specifically, in order to determine the target position of all items in the refrigerator, a camera can be set in the refrigerator to collect storage pictures in the refrigerator. By processing and analyzing the storage pictures, the target position of all items in the refrigerator door and the positional relationship between each target position and the preset boundary are determined. An infrared sensor can also be set in the refrigerator, and the target position of all items in the refrigerator and the positional relationship between each target position and the preset boundary are determined by the infrared sensor. More specifically, when all target positions do not meet the preset conditions, it is determined that the refrigerator door is not closed due to insufficient force of the user, so an alarm reminder is performed to enable the user to close the refrigerator door according to the alarm reminder. The specific method of the alarm reminder can refer to the above description, and this embodiment is not repeated here. When at least one target position among all target positions meets the preset conditions, it is determined that the refrigerator door is not closed due to obstruction by the items in the refrigerator, and a return reminder event is triggered to provide a return reminder. A microphone can be provided on the refrigerator for voice return reminders, or a display screen can be provided on the refrigerator to display corresponding messages for return reminders. The user can rearrange the items on the refrigerator door according to the return reminder to reliably close the refrigerator door.
[0072] In another possible implementation manner, in order to further determine the reason why the refrigerator door does not move to the second position at the second moment, refer to Figure 3 , step S105 specifically includes:
[0073] S1055: When it is determined at the second moment that the door body has not moved to the second position, controlling the reset mechanism in the rotating shaft of the door body to operate so that the door body moves to the second position;
[0074] S1056: Acquiring a target pressure of the door body during the process of the door body moving toward the second position;
[0075] S1057: When the target pressure exceeds the second preset threshold, the reset mechanism is controlled to stop working and an alarm event of the door body is triggered.
[0076] Among them, a reset mechanism can be set in the rotating shaft of the refrigerator, and the reset mechanism can be a non-powered one such as a spring, a telescopic rod, or a powered one such as a damping motor. Specifically, when it is determined at the second moment that the refrigerator door has not moved to the second position, it is not necessary to determine the target position of all the items in the refrigerator, and the reset mechanism can be controlled to work so that the refrigerator door moves to the second position through the reset mechanism provided. However, in the process of the refrigerator door moving to the second position, there may be an obstruction of the items in the refrigerator, so that the refrigerator door cannot move to the second position. If the reset mechanism is continued to be controlled to work, the refrigerator door may be damaged. Therefore, in the process of the refrigerator door moving to the second position, the target pressure of the refrigerator door needs to be obtained in real time, and the obtained target pressure is compared with the second preset threshold to determine whether the refrigerator door does not move to the second position due to the obstruction of the items. More specifically, a pressure sensor can be set on the refrigerator door, and the pressure sensor can collect the target pressure of the refrigerator door in real time. The second preset threshold can be set according to actual needs, and the specific value of the second preset threshold is not specifically limited in this embodiment. It should be noted that when the target pressure does not exceed the second preset threshold, it indicates that the refrigerator door can move to the second position.
[0077] After executing step S1053, in order to further determine the reason why the refrigerator door does not move to the second position at the second moment, a door control method provided in this embodiment continues to refer to Figure 2 , further comprising the following steps:
[0078] S106: Detect the damping force of the rotating shaft of the door body to determine the second damping force of the current rotating shaft.
[0079] S107: Determine a deviation value between the second damping force and the target reference value.
[0080] S108: When the deviation value is greater than a first preset threshold, a repair prompt event is triggered.
[0081] In this embodiment, for steps S105 to S107, when the target positions of all objects in the refrigerator do not meet the preset conditions, the damping force of the rotating shaft that drives the refrigerator door to move is detected to determine whether the rotating shaft needs to be repaired based on the damping force. Among them, the target reference value and the first preset threshold value can be set according to actual needs. In this embodiment, the specific values of the target reference value and the first preset threshold value are not specifically limited. A microphone can be set in the refrigerator for repair prompts. The user repairs the rotating shaft of the refrigerator door according to the repair prompts, so that the refrigerator door can be reliably closed later.
[0082] Specifically, in step S105, the damping force of the rotating shaft of the refrigerator door may be detected in the following manner to determine the second damping force of the current rotating shaft, as follows:
[0083] Controlling the door body to move to the second position;
[0084] applying a first target force to the door body;
[0085] Determine the door opening acceleration of the door body and the first time duration for the door body to move from the second position to the third position;
[0086] A second damping force of the current rotating shaft is determined according to the door opening acceleration, the first duration and the first target power.
[0087] In this embodiment, a reset mechanism can be set in the rotating shaft of the refrigerator door, and the refrigerator door is moved to the second position by controlling the reset mechanism. The specific form of the reset mechanism is as described above, and it is not repeated in this embodiment. A drive motor can also be set in the refrigerator door, and the refrigerator door is controlled to move to the second position by controlling the drive motor. In order to accurately detect the second damping force of the rotating shaft of the current refrigerator door, since the target position of all items in the refrigerator door does not meet the preset conditions, the refrigerator door can be controlled to move to the second position at this time. After the refrigerator door is completely closed, the refrigerator door is applied with a first target power by controlling the drive motor set in the refrigerator door. The first target power is the power applied instantaneously. The first target power indicates that under the target reference value (a damping force reference value), the refrigerator door is just or enough to move from the second position to the target position. The target position can specifically refer to the position corresponding to the refrigerator door opening to the maximum angle, and the target position can also refer to the position corresponding to the refrigerator door opening to the specified angle. The target position can be set according to actual needs, and the target position is not specifically limited in this embodiment. Among them, the third position is the position corresponding to when the refrigerator door stops, and the third position can be consistent with the second position, or the third position can be inconsistent with the second position. The first duration is the difference between the moment when the refrigerator door is at the third position and the moment when the first target force is applied to the refrigerator door. The door opening acceleration can be collected by an acceleration sensor provided in the refrigerator door. The weight of the refrigerator door can be stored in advance. The first motion force for opening the refrigerator door can be determined according to the weight of the refrigerator door, the door opening acceleration and the first duration. The second damping force of the current rotating shaft can be determined according to the difference between the first target force and the first motion force.
[0088] More specifically, in step S105, the damping force of the rotating shaft of the refrigerator door may be detected in the following manner to determine the second damping force of the current rotating shaft, as follows:
[0089] Control the door to move to the target position;
[0090] applying a second target force to the door body;
[0091] Determine the closing acceleration of the door body and the second time duration for the door body to move from the target position to the third position;
[0092] The second damping force of the current rotating shaft is determined according to the door closing acceleration, the second time duration and the second target power.
[0093] In this embodiment, a reset mechanism may be provided in the rotating shaft of the refrigerator door, and the refrigerator door is moved to the second position by controlling the reset mechanism. The specific form of the reset mechanism is as described above, and will not be described in detail in this embodiment. A drive motor may also be provided in the refrigerator door, and the refrigerator door is controlled to move to the second position by controlling the drive motor. In order to accurately detect the second damping force of the rotating shaft of the current refrigerator door, the refrigerator door is controlled to move to the target position, and the target position may specifically refer to the position corresponding to the refrigerator door opening to the maximum angle, and the target position may also refer to the position corresponding to the refrigerator door opening to the specified angle. The target position may be set according to actual needs, and the target position is not specifically limited in this embodiment. After the refrigerator door moves to the target position, the drive motor provided in the refrigerator door is controlled to apply a second target power to the refrigerator door, and the second target power is the power applied instantaneously. The second target power indicates that under the target reference value (a damping force reference value), the refrigerator door is just or sufficient to move from the target position to the second position, wherein the third position is the position corresponding to when the refrigerator door stops, and the third position may be consistent with the second position, or inconsistent with the second position. The second duration is the difference between the moment when the refrigerator door is at the third position and the moment when the second target force is applied to the refrigerator door. The door closing acceleration can be collected by an acceleration sensor provided in the refrigerator door. The weight of the refrigerator door can be stored in advance. The second movement force for closing the refrigerator door can be determined according to the weight of the refrigerator door, the door closing acceleration and the second duration. The second damping force of the current rotating shaft can be determined according to the difference between the second target force and the second movement force.
[0094] The present embodiment provides a door control method, which determines the closing time required for the door to close by acquiring the acceleration of the door when closing the door. When the closing time is reached, it is determined that the door is not completely closed, so as to issue an alarm to remind the user to close the door, thereby preventing the increase of power consumption of the refrigerator due to the door not being closed, thereby improving the user experience.
[0095] refer to Figure 4 , Figure 4 A flow chart of another door control method provided by an embodiment of the present invention. A door control method provided by an embodiment of the present invention comprises the following steps:
[0096] S201: When the door of the device is in the first position, detecting whether a door closing operation is triggered.
[0097] In this embodiment, step S201 is consistent with step S101, which will not be described in detail in this embodiment. For details, please refer to the above step S101.
[0098] S202: When a door closing operation is detected, a first moment of triggering the door closing operation, a target acceleration of the door, and a pre-stored first damping force of a rotating shaft of the door are acquired.
[0099] In this embodiment, an acceleration sensor is also provided in the refrigerator door for collecting the acceleration of the refrigerator door. When the closing operation of the refrigerator door is detected, it indicates that the user needs to close the refrigerator door. At this time, the closing acceleration of the refrigerator door (i.e., the target acceleration) is collected by the acceleration sensor in the refrigerator to determine whether the refrigerator door is completely closed based on the closing acceleration. The first damping force is determined by detecting the damping force of the rotating shaft at preset time intervals. The preset time can be set according to actual needs. In this embodiment, the specific value of the preset time is not specifically limited. The specific method of detecting the damping force of the rotating shaft can refer to the two detection methods described above, which will not be repeated in this embodiment. It should be noted that the first damping force is always one. After the damping force of a rotating shaft is obtained at preset time intervals, the first damping force is updated according to the obtained damping force.
[0100] S203: Determine a target time duration for the door body to move from the first position to the second position according to the target acceleration and the first damping force.
[0101] In this embodiment, the second position may specifically refer to the position where the refrigerator door is completely closed. The target time for the refrigerator door to move from the first position to the second position may be determined in the following manner:
[0102] According to the target acceleration and the first damping force, the target time for the door body to move from the first position to the second position is determined from the second association relationship, and the second association relationship stores multiple sets of corresponding relationships between damping force, acceleration and time.
[0103] Specifically, the second association relationship can be a query table. After the target acceleration and the first damping force of the refrigerator are obtained, the corresponding query table is queried according to the target acceleration and the first damping force to determine the closing time corresponding to the target acceleration and the first damping force. The closing time is the time taken for the refrigerator door to move from the first position to the second position. The second association relationship is pre-set and stored, and can be updated according to the pre-built neural network model.
[0104] S204: Determine a second time at which the refrigerator door moves to a second position according to the target duration and the first time;
[0105] S205: When it is determined at the second moment that the door body has not moved to the second position, an alarm event of the door body is triggered.
[0106] In this embodiment, step S204 is consistent with the above-mentioned step S104, and step S205 is consistent with the above-mentioned step S105. They are not described in detail in this embodiment, and the details can be referred to the above-mentioned step S104 and step S105.
[0107] The present embodiment provides a door control method, which determines the closing time required for the door to close by acquiring the acceleration of the door when closing the door. When the closing time is reached, it is determined that the door is not completely closed, so as to issue an alarm to remind the user to close the door, thereby preventing the increase of power consumption of the refrigerator due to the door not being closed, thereby improving the user experience.
[0108] refer to Figure 5 , Figure 5 A schematic diagram of the structure of a door control device provided in an embodiment of the present invention. A door control device provided in an embodiment of the present invention comprises: a detection module 10, an acquisition module 20, a determination module 30 and a trigger module 40. The detection module 10 is used to detect whether the door closing operation of the door is triggered when the door of the device is in the first position; the acquisition module 20 is used to acquire the first moment of triggering the door closing operation of the door and the target acceleration of the door when the door closing operation of the door is detected to be triggered; the determination module 30 is used to determine the target time for the door to move from the first position to the second position according to the target acceleration; the determination module 30 is also used to determine the second moment when the door moves to the second position according to the target time and the first moment; the trigger module 40 is used to trigger an alarm event of the door when it is determined at the second moment that the door has not moved to the second position.
[0109] In this embodiment, the acquisition module 20 is further used for:
[0110] A pre-stored first damping force of the rotating shaft of the door body is obtained, where the first damping force is determined by performing damping force detection on the rotating shaft at preset time intervals.
[0111] In this embodiment, the determination module 30 is further used for:
[0112] A target time duration for the door body to move from the first position to the second position is determined according to the target acceleration and the first damping force.
[0113] In this embodiment, the trigger module 40 is further used for:
[0114] When it is determined at the second moment that the door body has not moved to the second position, determining the target positions of all items in the device;
[0115] When all the target positions do not meet the preset conditions, an alarm event of the door body is triggered, and the preset conditions include: the target position of the object exceeds the preset boundary of the storage layer where the object is placed.
[0116] In this embodiment, the trigger module 40 is further used for:
[0117] When at least one of all the target positions satisfies the preset condition, a homing prompt event is triggered.
[0118] In this embodiment, the trigger module 40 is further used for:
[0119] Detecting the damping force of the rotating shaft of the door body to determine the second damping force of the rotating shaft at present;
[0120] determining a deviation value of the second damping force from a target reference value;
[0121] When the deviation value is greater than a first preset threshold, a repair prompt event is triggered.
[0122] In this embodiment, a reset mechanism is provided inside the rotating shaft of the door body.
[0123] In this embodiment, the trigger module 40 is further used for:
[0124] When it is determined at the second moment that the door body has not moved to the second position, controlling the reset mechanism to operate so that the door body moves to the second position;
[0125] During the process of the door body moving toward the second position, obtaining a target pressure of the door body;
[0126] When the target pressure exceeds a second preset threshold, the reset mechanism is controlled to stop working and an alarm event of the door body is triggered.
[0127] In this embodiment, the determination module 30 is further used for:
[0128] According to the target acceleration, the target duration for the door body to move from the first position to the second position is determined from the first association relationship, and the first association relationship stores a plurality of sets of correspondences between accelerations and durations.
[0129] In this embodiment, the determination module 30 is further used for:
[0130] According to the target acceleration and the first damping force, the target time for the door body to move from the first position to the second position is determined from a second association relationship, and the second association relationship stores a plurality of sets of correspondences among damping force, acceleration and time.
[0131] The present embodiment provides a door control device, which determines the closing time required for the door to close by acquiring the acceleration of the door when closing the door. When the closing time is reached, it is determined that the door is not completely closed, so as to issue an alarm to remind the user to close the door, thereby preventing the increase of power consumption of the refrigerator due to the door not being closed, thereby improving the user experience.
[0132] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 6 The electronic device 400 shown includes: at least one processor 401, a memory 402, at least one network interface 404 and other user interfaces 403. The various components in the electronic device 400 are coupled together via a bus system 405. It is understood that the bus system 405 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 405 is not shown in FIG. Figure 6 Various buses are labeled as bus system 405 .
[0133] The user interface 403 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0134] It can be understood that the memory 402 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 402 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0135] In some implementations, the memory 402 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 4021 and application programs 4022 .
[0136] The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 4022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 4022.
[0137] In an embodiment of the present invention, by calling a program or instruction stored in the memory 402, specifically, a program or instruction stored in the application 4022, the processor 401 is used to execute the method steps provided by each method embodiment, for example including: when the door body of the device is in the first position, detecting whether the door closing operation of the door body is triggered; when the door closing operation of the door body is detected, obtaining the first moment of triggering the door closing operation and the target acceleration of the door body; according to the target acceleration, determining the target time for the door body to move from the first position to the second position; according to the target time and the first moment, determining the second moment when the door body moves to the second position; when it is determined at the second moment that the door body has not moved to the second position, triggering an alarm event for the door body.
[0138] The method disclosed in the above embodiment of the present invention can be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 401 or the instruction in the form of software. The above processor 401 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and completes the steps of the above method in combination with its hardware.
[0139] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0140] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0141] The electronic device provided in this embodiment may be Figure 6 The electronic device shown in FIG. 1 may perform the following steps: Figure 1-4 All steps of the control method of the middle door body are realized Figure 1-4 For details, please refer to the technical effect of the door control method shown in Figure 1-4 For the sake of brevity, the relevant description is not repeated here.
[0142] An embodiment of the present invention further provides a refrigerator, which includes the electronic device as described above.
[0143] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0144] When one or more programs in the storage medium can be executed by one or more processors, the door control method executed on the control device side of the door is implemented.
[0145] The processor is used to execute the control program of the door body stored in the memory to implement the following steps of the door body control method executed on the control device side of the door body: when the door body of the device is in the first position, detecting whether the door closing operation of the door body is triggered; when the door closing operation of the door body is detected, obtaining the first moment of triggering the door closing operation and the target acceleration of the door body; according to the target acceleration, determining the target time for the door body to move from the first position to the second position; according to the target time and the first moment, determining the second moment when the door body moves to the second position; when it is determined at the second moment that the door body has not moved to the second position, triggering an alarm event for the door body.
[0146] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0147] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0148] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A door control method, characterized in that: include: When the door body of the device is in the first position, detecting whether a door closing operation of the door body is triggered; When a door closing operation is detected, the first moment of triggering the door closing operation and the target acceleration of the door are acquired; Determining a target time for the door body to move from the first position to the second position according to the target acceleration; Determine a second time at which the door moves to the second position according to the target duration and the first time; When it is determined at the second moment that the door body has not moved to the second position, triggering an alarm event of the door body includes: When it is determined at the second moment that the door body has not moved to the second position, determining the target positions of all items in the device; When all the target positions do not meet the preset conditions, an alarm event of the door body is triggered, and the preset conditions include: the target position of the object exceeds the preset boundary of the storage layer where the object is placed.
2. The method according to claim 1, characterized in that Before executing the step of determining the target time duration for the door body to move from the first position to the second position according to the target acceleration, the method further includes: Acquire a pre-stored first damping force of the rotating shaft of the door body, where the first damping force is determined by performing damping force detection on the rotating shaft at preset time intervals; Determining a target time duration for the door body to move from the first position to the second position according to the target acceleration includes: A target time duration for the door body to move from the first position to the second position is determined according to the target acceleration and the first damping force.
3. The method according to claim 1, characterized in that: After executing the step of determining the target positions of all items in the device when it is determined at the second moment that the door body has not moved to the second position, the method further includes: When at least one of all the target positions satisfies the preset condition, a homing prompt event is triggered.
4. The method according to claim 1, characterized in that: After executing the step of triggering an alarm event of the door body when all the target positions do not meet the preset conditions, the method further includes: Detecting the damping force of the rotating shaft of the door body to determine the second damping force of the rotating shaft at present; determining a deviation value of the second damping force from a target reference value; When the deviation value is greater than a first preset threshold, a repair prompt event is triggered.
5. The method according to claim 1, characterized in that A reset mechanism is arranged in the rotating shaft of the door body; When it is determined at the second moment that the door body has not moved to the second position, triggering an alarm event of the door body includes: When it is determined at the second moment that the door body has not moved to the second position, controlling the reset mechanism to operate so that the door body moves to the second position; During the process of the door body moving toward the second position, obtaining a target pressure of the door body; When the target pressure exceeds a second preset threshold, the reset mechanism is controlled to stop working and an alarm event of the door body is triggered.
6. The method according to claim 1, characterized in that Determining a target time duration for the door body to move from the first position to the second position according to the target acceleration includes: According to the target acceleration, a target duration for the door body to move from the first position to the second position is determined from a first association relationship, wherein the first association relationship stores a plurality of sets of correspondences between accelerations and durations.
7. The method according to claim 2, characterized in that Determining a target time for the door body to move from the first position to the second position according to the target acceleration and the first damping force includes: According to the target acceleration and the first damping force, the target time for the door body to move from the first position to the second position is determined from a second association relationship, and the second association relationship stores a plurality of sets of correspondences among damping force, acceleration and time.
8. A door control device, characterized in that: include: A detection module, used for detecting whether a door closing operation of the door body is triggered when the door body of the device is in the first position; An acquisition module, for acquiring a first moment of triggering the door closing operation and a target acceleration of the door body when a door closing operation is detected; a determination module, configured to determine a target time for the door body to move from the first position to the second position according to the target acceleration; The determination module is further used to determine a second time when the door body moves to the second position according to the target duration and the first time; A trigger module, configured to trigger an alarm event of the door body when it is determined at the second moment that the door body has not moved to the second position; The trigger module is further configured to determine the target positions of all items in the device when it is determined at the second moment that the door body has not moved to the second position; When all the target positions do not meet the preset conditions, an alarm event of the door body is triggered, and the preset conditions include: the target position of the object exceeds the preset boundary of the storage layer where the object is placed.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a door control program stored in the memory to implement the door control method according to any one of claims 1 to 8.
10. A refrigerator, characterized in that: Comprising the electronic device as claimed in claim 9.
11. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the door control method according to any one of claims 1 to 7.
