Cabinet door control method and device of equipment and computer storage medium
By using vibration sensors to collect acceleration data to determine the movement status of the equipment, the cabinet door is accurately opened during the knocking process, which solves the problem of accidental door opening caused by non-knocking vibrations in the existing technology and improves control accuracy.
Patent Information
- Application Number
- CN202410989260.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-26
AI Technical Summary
Existing kitchen cabinet door vibration sensor switches are prone to accidentally opening the door due to vibrations not caused by knocking, resulting in insufficient control accuracy.
By collecting acceleration data using vibration sensors, the movement status of the equipment can be determined, and it can be confirmed whether the door is opened during the knocking process to avoid accidental opening of the door.
It improves the control accuracy of cabinet door sensor opening, avoiding accidental opening due to shaking or external collisions.
Smart Images

Figure CN119024725A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of kitchen appliance control, and in particular to a cabinet door control method, device and computer storage medium of an appliance. Background Art
[0002] With the development of smart home technology, the opening and closing method of kitchen cabinet doors has changed from traditional manual suction switches to vibration sensing switches; the vibration sensing switch method means that after the user knocks on a specified position, the cabinet door is automatically opened based on the knocking instruction; but in the prior art, the cabinet door is often opened by mistake due to vibrations caused by reasons other than knocking; for example, if the kitchenware is accidentally touched, the cabinet door will be opened by induction. Summary of the invention
[0003] In response to the above-mentioned problems in the prior art, the purpose of the present application is to determine the motion state of the device through the acceleration collected by the vibration sensor, so as to confirm whether to open the door based on the motion state of the device during the knocking process, avoid accidental opening of the cabinet door, and thereby improve the control accuracy of the cabinet door's induction opening.
[0004] In order to solve the above problem, the present application provides a cabinet door control method of a device, wherein a vibration sensor is provided on the cabinet door of the device, comprising:
[0005] When a knock signal of a current time node is detected, an acceleration corresponding to a target monitoring time node corresponding to the current time node is obtained; the target monitoring time node is the current time node, or a preset monitoring time node adjacent to the current time node and after the current time node; the knock signal and the acceleration are acquired based on the collection of the vibration sensor;
[0006] Solving for variables based on the acceleration corresponding to the target monitoring time node and the acceleration corresponding to the previous monitoring time node to obtain the acceleration variable parameter corresponding to the target monitoring time node;
[0007] Determining the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node;
[0008] In a knock detection time period after the current time node, when the motion state of the device is always static, the cabinet door of the device is controlled to open based on the knock signal; the knock detection time period includes at least one monitoring time node.
[0009] In an embodiment of the present application, the acceleration variable parameter includes a non-target direction variable parameter; the non-target direction includes a first direction and a second direction, and the first direction, the second direction and the target direction are orthogonal to each other; the determination of the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node includes:
[0010] Determine the variable parameter interval corresponding to the target monitoring time node based on the non-target direction variable parameter corresponding to the target monitoring time node;
[0011] Obtain variable parameter intervals corresponding to multiple historical monitoring time nodes, respectively; the multiple historical monitoring time nodes are multiple adjacent monitoring time nodes before the target monitoring time node;
[0012] When the variable parameter intervals corresponding to multiple consecutive monitoring time nodes are all first parameter intervals, the motion state of the target monitoring time node is determined to be a stationary state; the multiple consecutive monitoring time nodes include the target monitoring time node and at least one monitoring time node among the multiple historical monitoring time nodes; the parameter value within the first parameter interval is less than or equal to the first preset parameter threshold.
[0013] In an embodiment of the present application, determining the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node includes:
[0014] In the case where the variable parameter interval corresponding to the target monitoring time node is the second parameter interval, determining the current interval number; the current interval number is the number of nodes whose variable parameter intervals corresponding to each of the multiple monitoring historical time nodes are the second parameter interval; the parameter value within the second parameter interval is greater than the second preset parameter threshold and less than the third preset parameter threshold; the second preset parameter threshold is greater than the first preset parameter threshold;
[0015] In a case where the number of the current intervals is greater than or equal to the number of the target nodes, it is determined that the motion state of the target monitoring time node is a non-stationary state.
[0016] In an embodiment of the present application, determining the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node includes:
[0017] When the variable parameter interval corresponding to the target monitoring time node is the third parameter interval, it is determined that the motion state of the target monitoring time node is a non-stationary state; and the parameter value within the third parameter interval is greater than the third preset parameter threshold.
[0018] In an embodiment of the present application, determining the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node includes:
[0019] When the variable parameter interval corresponding to the target monitoring time node is the fourth parameter interval, obtaining the motion state corresponding to the previous monitoring time node; the parameter value in the fourth parameter interval is greater than the first preset parameter threshold and less than the second preset parameter threshold;
[0020] or,
[0021] When the variable parameter interval corresponding to the target monitoring time node is the first parameter interval and the number of the plurality of consecutive time nodes is less than the target continued number, obtaining the motion state corresponding to the previous monitoring time node;
[0022] or,
[0023] When the number of the current interval is less than the number of the target nodes, obtaining the motion state corresponding to the last monitoring time node;
[0024] The motion state corresponding to the previous monitoring time node is determined as the motion state corresponding to the target monitoring time node.
[0025] In an embodiment of the present application, in the case where the motion state of the device is always in a stationary state during the knock detection time period after the current time node, controlling the cabinet door of the device to open based on the knock signal includes:
[0026] Obtaining the motion state corresponding to each of the at least one monitoring time nodes;
[0027] When the motion states corresponding to the at least one monitoring time node are all static states, obtaining the number of tapping times within the tapping detection time period;
[0028] The cabinet door of the device is controlled to open based on the number of knocks.
[0029] In the embodiment of the present application, when the motion states corresponding to the multiple monitoring time nodes are all static states, obtaining the number of tapping times within the tapping detection time period includes:
[0030] Acquire a knocking time interval between a current knocking signal and a next knocking signal; the current knocking signal and the next knocking signal are both detected and acquired within the knocking detection time period;
[0031] In the case where the knocking time interval is less than the preset time interval, determining that the next knocking signal is a redundant knocking signal;
[0032] During the knock detection time period, the knock signals other than the redundant knock signals are counted to determine the number of knocks.
[0033] On the other hand, the present application also provides a cabinet door control device, wherein a vibration sensor is provided on the cabinet door of the device, and the device comprises:
[0034] An acceleration acquisition module, configured to acquire, when a knock signal at a current time node is detected, an acceleration corresponding to a target monitoring time node corresponding to the current time node; the target monitoring time node is the current time node, or a preset monitoring time node adjacent to the current time node and after the current time node; the knock signal and the acceleration are acquired based on the collection of the vibration sensor;
[0035] A variable parameter solving module, used to solve variables based on the acceleration corresponding to the target monitoring time node and the acceleration corresponding to the previous monitoring time node, to obtain the acceleration variable parameter corresponding to the target monitoring time node;
[0036] A motion state determination module, configured to determine the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node;
[0037] The cabinet door control module is used to control the cabinet door of the device to open based on the knock signal when the motion state of the device is always static during the knock detection time period after the current time node; the knock detection time period includes at least one monitoring time node.
[0038] On the other hand, the present application also provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement a cabinet door control method as the above-mentioned device.
[0039] On the other hand, the present application also provides a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement a cabinet door control method such as the above-mentioned device.
[0040] Due to the above technical solution, the cabinet door control method of a device described in this application has the following beneficial effects:
[0041] By obtaining the acceleration variable parameters corresponding to the target monitoring time node after the current time node, the motion state of the device at the target monitoring time node is determined, and the motion state of the target monitoring time node is used as the motion state of the current time node; and during the knock detection time period, when the motion state of the device is always static, the cabinet door of the device is controlled to open in response to the knock signal; thereby avoiding the device from opening the door when it detects the knock signal generated during the shaking process, thereby avoiding accidental opening of the cabinet door and improving the control accuracy of the cabinet door induction opening. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 It is a schematic flow chart of a cabinet door control method of a device provided in an embodiment of the present application;
[0044] Figure 2 It is a schematic diagram of the change of acceleration variable parameters of the X-axis in the cabinet door control method of the eye-red device provided in the embodiment of the present application when the device is in a non-stationary state and there is a knocking signal;
[0045] Figure 3 It is a schematic diagram of the change of acceleration variable parameters of the Y axis in the cabinet door control method of the eye-red device provided in an embodiment of the present application when the device is in a non-stationary state and there is a knocking signal;
[0046] Figure 4 It is a schematic diagram of the change of the acceleration variable parameter of the Z axis in the cabinet door control method of the eye-red device provided in the embodiment of the present application when the device is in a non-stationary state and there is a knocking signal;
[0047] Figure 5 It is a schematic diagram of the change of acceleration variable parameters of the X-axis in the cabinet door control method of the eye-red device provided in the embodiment of the present application when the device is in a stationary state and there is a knocking signal;
[0048] Figure 6 It is a schematic diagram of the change of acceleration variable parameters of the Y axis in the cabinet door control method of the eye-red device provided in the embodiment of the present application when the device is in a stationary state and there is a knocking signal;
[0049] Figure 7It is a schematic diagram of the change of the acceleration variable parameter of the Z axis in the cabinet door control method of the eye-red device provided in the embodiment of the present application when the device is in a stationary state and there is a knocking signal;
[0050] Figure 8 It is a schematic diagram of a static state determination process in a cabinet door control method of a device provided in an embodiment of the present application;
[0051] Fig. 9 It is a schematic diagram of a non-stationary state determination process in a cabinet door control method of a device provided in an embodiment of the present application;
[0052] Fig.10 It is a schematic diagram of the motion state inheritance process in a cabinet door control method of a device provided in an embodiment of the present application;
[0053] Fig.11 It is a schematic diagram of a cabinet door opening process in a cabinet door control method of a device provided in an embodiment of the present application;
[0054] Fig.12 It is a schematic diagram of a process for determining the number of knocks in a cabinet door control method of a device provided in an embodiment of the present application;
[0055] Fig.13 It is a schematic diagram of the structure of a cabinet door control device of a device provided in an embodiment of the present application;
[0056] Fig.14 It is a hardware structure block diagram of a cabinet door control method of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0058] The term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present application. In the description of the present application, it should be understood that the orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", "top", "bottom", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application. In addition, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may include one or more of the features explicitly or implicitly. Moreover, the terms "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here.
[0059] Combination Figure 1 , introduces a cabinet door control method of a device provided in an embodiment of the present application, wherein a vibration sensor is provided on the cabinet door of the device, and the method comprises:
[0060] S1001. When a knocking signal of a current time node is detected, the acceleration corresponding to a target monitoring time node corresponding to the current time node is obtained; the target monitoring time node is the current time node, or a preset monitoring time node adjacent to the current time node and after the current time node; the knocking signal and the acceleration are acquired based on the vibration sensor.
[0061] In an embodiment of the present application, a knock signal refers to a signal detected by a vibration sensor that may be a door-opening knocking instruction; specifically, the knock signal may be a signal generated by a user knocking on a preset position, a knock signal may be a signal generated by an external impact on the device, or a knock signal may be a signal generated by vibration during the operation of the device.
[0062] In an embodiment of the present application, during the operation of the device, the startup time node of the device is used as the initial monitoring time node, and multiple preset monitoring time nodes are set in sequence to monitor the motion state of the device; specifically, the time interval between two adjacent preset monitoring time nodes is the preset monitoring time interval; the preset monitoring time interval can be 2 to 5ms; preferably, the preset monitoring time interval is 2ms.
[0063] In a specific embodiment of the present application, it is assumed that the initial monitoring time node is set to the 0s time node, and the preset monitoring time interval is 2ms; then the device will monitor the device motion state at 0ms, 2ms, 4ms, 6ms,...; in a specific embodiment, a knock signal is detected at 3.5ms, then the current time node is 3.5ms, and the target monitoring time node is 4ms; in another specific embodiment, a knock signal is detected at 4ms, then the current time node is 4ms, and the target monitoring time node is the current time node 4ms.
[0064] S1002. Solve for variables based on the acceleration corresponding to the target monitoring time node and the acceleration corresponding to the previous monitoring time node to obtain acceleration variable parameters corresponding to the target monitoring time node.
[0065] In an embodiment of the present application, the previous monitoring time node is the previous preset monitoring time node of the target monitoring time node; for example, assuming that the initial monitoring time node is set to the 0s time node, and the preset monitoring time interval is 2ms; then the device will monitor the device motion state at 0ms, 2ms, 4ms, 6ms,...; if the target monitoring time node is 4ms, then the previous monitoring time node is 2ms.
[0066] In the embodiment of the present application, the acceleration variable parameter can characterize the magnitude of the acceleration change between two monitoring time nodes.
[0067] In a specific embodiment of the present application, the acceleration variable parameter may be the acceleration slope of two monitoring time nodes; specifically, a larger acceleration slope indicates a larger acceleration change between the two monitoring time nodes.
[0068] In other embodiments of the present application, the acceleration variable parameter may also be the acceleration difference between two monitoring time nodes; specifically, a larger acceleration difference indicates a larger acceleration change between the two monitoring time nodes.
[0069] S1003. Determine the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node.
[0070] In the embodiment of the present application, the motion state of the device includes a stationary state and a non-stationary state.
[0071] S1004. In a knock detection time period after the current time node, when the motion state of the device is always static, control the cabinet door of the device to open based on the knock signal; the knock detection time period includes at least one monitoring time node.
[0072] In an embodiment of the present application, the tap detection time period is a time period determined with the current time node as the starting point to detect the number of taps of the tap signal; specifically, the duration of the tap detection time period can be 800ms or 500ms.
[0073] In a preferred embodiment of the present application, the knock detection time period includes multiple monitoring time nodes; specifically, the more monitoring time nodes there are within the knock detection time period, the higher the control accuracy of the cabinet door induction opening.
[0074] In a specific embodiment of the present application, the duration of the tap detection time period is 1000ms, the preset monitoring time interval is 2ms, and then the relationship between multiple monitoring time nodes and acceleration variable parameters can be formed as follows: Figure 2-7 Waveform diagram of .
[0075] In an embodiment of the present application, the acceleration variable parameters corresponding to the target monitoring time node after the current time node are obtained to determine the motion state of the device at the target monitoring time node, and then the motion state at the target monitoring time node is used as the motion state of the current time node; and during the knock detection time period, when the motion state of the device is always in a stationary state, the cabinet door of the device is controlled to open in response to the knock signal; thereby avoiding the device from opening the door when it detects the knock signal generated during the shaking process, thereby avoiding accidental opening of the cabinet door and improving the control accuracy of the cabinet door sensing opening.
[0076] In a specific embodiment of the present application, the device may be a disinfection cabinet, a refrigerator, a dishwasher, etc.
[0077] In a specific embodiment of the present application, the device is a built-in disinfection cabinet.
[0078] In the embodiment of the present application, the acceleration variable parameter includes a non-target direction variable parameter; the non-target direction includes a first direction and a second direction, and the first direction, the second direction and the target direction are orthogonal to each other.
[0079] In a specific embodiment of the present application, if the first direction is the x-axis, the second direction is the y-axis, and the target direction is the z-axis, a three-axis coordinate system of the device can be constructed; then the acceleration variable parameters include the acceleration variable parameters in the x-axis direction, the acceleration variable parameters in the y-axis direction, and the acceleration variable parameters in the z-axis direction; among them, the acceleration variable parameters in the x-axis direction and the acceleration variable parameters in the y-axis direction are both non-target direction variable parameters.
[0080] In a specific embodiment of the present application, refer to Figure 2-4 , the acceleration variable parameter change diagram of the three axes in a non-stationary state; refer to Figure 5-7 , the acceleration variable parameter change diagram of the three axes in the static state.
[0081] In the embodiment of the present application, the target direction is the direction in which the user's touch action is reflected. For example, if the user controls the opening of the device door by touching the door or the front of the control panel, then the target direction is the direction perpendicular to the door or the control panel; specifically, the target direction is the detection direction of the knock signal.
[0082] refer to Figure 8 In the embodiment of the present application, S1003 includes:
[0083] S2001. Determine a variable parameter interval corresponding to a target monitoring time node based on a non-target direction variable parameter corresponding to a target monitoring time node.
[0084] In a specific embodiment of the present application, the non-target direction variable parameter includes a first direction acceleration variable parameter and a second direction acceleration variable parameter, and S2001 includes:
[0085] S20011. Determine the variable parameter intervals corresponding to the acceleration variable parameter in the first direction and the acceleration variable parameter in the second direction respectively.
[0086] S20012. Determine the variable parameter interval corresponding to the target monitoring time node based on the variable parameter intervals corresponding to the first direction acceleration variable parameter and the second direction acceleration variable parameter.
[0087] S2002, obtaining variable parameter intervals corresponding to each of a plurality of historical monitoring time nodes; the plurality of historical monitoring time nodes are a plurality of adjacent monitoring time nodes before a target monitoring time node.
[0088] In an embodiment of the present application, the number of multiple historical monitoring time nodes is a target preset number, and the target preset number can be 20 or 30.
[0089] In a specific embodiment of the present application, it is assumed that the initial monitoring time node is set to the 0s time node, and the preset monitoring time interval is 2ms; then the device will monitor the motion state of the device at 0ms, 2ms, 4ms, 6ms,...; assuming that the target monitoring time node is 60ms, and the target preset number is 20, then the multiple historical monitoring time nodes are 58ms, 56ms, 54ms,..., 20ms.
[0090] S2003. When the variable parameter intervals corresponding to multiple consecutive monitoring time nodes are all the first parameter intervals, determine that the motion state of the target monitoring time node is a static state; the multiple consecutive monitoring time nodes include the target monitoring time node and at least one monitoring time node among multiple historical monitoring time nodes; the parameter value within the first parameter interval is less than or equal to the first preset parameter threshold.
[0091] In an embodiment of the present application, the number of nodes of multiple consecutive monitoring time nodes is greater than the target existence number; the variable parameter intervals corresponding to the multiple consecutive monitoring time nodes are all the first parameter intervals, indicating that the variable parameters in the non-target direction are always small, and it can be determined that except for the target direction of touch and pressure, there is basically no excessive movement amplitude in other directions, and thus the movement state of the target monitoring time node can be determined to be a static state.
[0092] In a specific embodiment of the present application, the target number of remaining nodes may be 10 or 15.
[0093] In a specific embodiment of the present application, the first parameter interval includes a first parameter interval corresponding to the first direction and a first parameter interval corresponding to the second direction, and S20012 includes:
[0094] When the acceleration variable parameter in the first direction is within the first parameter interval corresponding to the first direction, and the acceleration variable parameter in the second direction is within the first parameter interval corresponding to the second direction, the variable parameter interval corresponding to the target monitoring time node is determined to be the first parameter interval.
[0095] In the specific embodiment of the present application, it is assumed that the first parameter interval includes the first parameter interval (0, X s ) and the first parameter interval (0, Y s ); Specifically, the first preset parameter threshold includes X s and Y s ; If the acceleration variable parameter of the first direction is located at (0, X s ), and the acceleration variable parameter of the second direction is located at (0, Y s ), then the variable parameter interval corresponding to the target monitoring time node is the first parameter interval.
[0096] In a specific embodiment of the present application, X s and Y s It can be 200mg.
[0097] In a specific embodiment of the present application, it is assumed that the initial monitoring time node is set to the 0s time node, and the preset monitoring time interval is 2ms; then the device will monitor the motion state of the device at 0ms, 2ms, 4ms, 6ms,...; assuming that the target monitoring time node is 60ms, and the target preset number is 20, then the multiple historical monitoring time nodes are 58ms, 56ms, 54ms,..., 20ms; assuming that the target continuous number is 10, then the multiple consecutive monitoring time nodes are 60ms, 58ms, 56ms,..., 40ms; when the multiple consecutive monitoring time nodes each correspond to the first parameter interval, it is determined that the motion state of the target monitoring time node is a stationary state.
[0098] In an embodiment of the present application, by determining that the motion state of the target monitoring time node is a stationary state when the variable parameter intervals corresponding to multiple consecutive monitoring time nodes are all the first parameter intervals, the accuracy of judging the motion state of the equipment is improved, thereby avoiding accidental opening of the cabinet door and improving the control accuracy of the cabinet door sensing opening.
[0099] refer to Fig. 9 In the embodiment of the present application, S1003 further includes:
[0100] S3001. When the variable parameter interval corresponding to the target monitoring time node is the second parameter interval, determine the current interval number; the current interval number is the number of nodes whose variable parameter intervals corresponding to multiple monitoring historical time nodes are the second parameter interval; the parameter value within the second parameter interval is greater than the second preset parameter threshold and less than the third preset parameter threshold; the second preset parameter threshold is greater than the first preset parameter threshold.
[0101] S3002: When the number of current intervals is greater than or equal to the number of target nodes, determine that the motion state of the target monitoring time node is a non-stationary state.
[0102] In an embodiment of the present application, the variable parameter interval corresponding to the target monitoring time node is the second parameter interval, which represents a change in the variable parameter in the non-target direction. At this time, there may be slight vibrations, but the cause of the vibration may be due to touch pressure. Therefore, it is necessary to combine the current number of intervals to determine whether there are multiple vibrations. In the case of multiple vibrations, it can be determined that the motion state of the target monitoring time node is a non-stationary state.
[0103] In a specific embodiment of the present application, the number of target monitoring time nodes can be 5 or 10.
[0104] In a specific embodiment of the present application, the second parameter interval includes a second parameter interval corresponding to the first direction and a second parameter interval corresponding to the second direction, and S20012 further includes:
[0105] When the acceleration variable parameter in the first direction is within the second parameter interval corresponding to the first direction, or the acceleration variable parameter in the second direction is within the second parameter interval corresponding to the second direction, the variable parameter interval corresponding to the target monitoring time node is determined to be the second parameter interval.
[0106] In the specific embodiment of the present application, it is assumed that the second parameter interval includes the second parameter interval (X) corresponding to the first direction. min , X max ) and the second parameter interval corresponding to the second direction (Y min , Y max ), where X min >X s , Y min >Y s ; If the acceleration variable parameter of the first direction is located at (X min , X max ), or the acceleration variable parameter of the second direction is located in (Y min , Y max ), then the variable parameter corresponding to the target monitoring time node is the second parameter interval.
[0107] In a specific embodiment of the present application, X min and Y min It can be 500mg, X max and Y max It can be 2000mg.
[0108] In a specific embodiment of the present application, it is assumed that the initial monitoring time node is set to the 0s time node, and the preset monitoring time interval is 2ms; then the device will monitor the motion state of the device at 0ms, 2ms, 4ms, 6ms,...; assuming that the target monitoring time node is 60ms, and the target preset number is 20, then the multiple historical monitoring time nodes are 58ms, 56ms, 54ms,..., 20ms; assuming that the number of target nodes is 3, the variable parameter interval corresponding to 60ms is the second parameter interval, and the variable parameter interval corresponding to 56ms, 28ms and 20ms is the second parameter interval, then the current interval number is 4> the target node number 3, therefore, it can be determined that the motion state of the target monitoring time node is a non-stationary state.
[0109] In an embodiment of the present application, when the variable parameter interval corresponding to the target monitoring time node is the second parameter interval and the current interval number is greater than the target node number, the motion state of the target monitoring time node is determined to be a non-stationary state, thereby avoiding the erroneous generation of knocking signals due to vibration, thereby improving the judgment accuracy of the motion state of the equipment, thereby avoiding the cabinet door from opening by mistake, and improving the control accuracy of the cabinet door induction opening.
[0110] In the embodiment of the present application, S1003 also includes:
[0111] When the variable parameter interval corresponding to the target monitoring time node is the third parameter interval, it is determined that the motion state of the target monitoring time node is a non-stationary state; and the parameter value within the third parameter interval is greater than the third preset parameter threshold.
[0112] In an embodiment of the present application, the variable parameter interval corresponding to the target monitoring time node is the third parameter interval, indicating that the variable parameter in the non-target direction is larger, which can be determined as the device being subjected to an external collision or impact, and further the motion state of the target monitoring time node can be determined to be a non-stationary state.
[0113] In a specific embodiment of the present application, the third parameter interval includes a third parameter interval corresponding to the first direction and a third parameter interval corresponding to the second direction, and S20012 includes:
[0114] When the acceleration variable parameter in the first direction is within the third parameter interval corresponding to the first direction, or the acceleration variable parameter in the second direction is within the third parameter interval corresponding to the second direction, the variable parameter interval corresponding to the target monitoring time node is determined to be the third parameter interval.
[0115] In the specific embodiment of the present application, it is assumed that the third parameter interval includes the third parameter interval (X) corresponding to the first direction. max ,∞) and the third parameter interval corresponding to the second direction (Y max ,∞); if the acceleration variable parameter of the first direction is located at (X max ,∞), or the acceleration variable parameter of the second direction is located at (Y max ,∞), then the variable parameter corresponding to the target monitoring time node is the third parameter interval.
[0116] In a specific embodiment of the present application, it is assumed that the initial monitoring time node is set to the 0s time node, and the preset monitoring time interval is 2ms; then the device will monitor the motion state of the device at 0ms, 2ms, 4ms, 6ms,...; assuming that the target monitoring time node is 60ms, and assuming that the variable parameter interval corresponding to 60ms is the third parameter interval, then it can be determined that the motion state of the target monitoring time node is a non-stationary state.
[0117] In an embodiment of the present application, when the variable parameter interval corresponding to the target monitoring time node is the third parameter interval, the motion state of the target monitoring time node is determined to be a non-stationary state, thereby avoiding the erroneous generation of knocking signals caused by external impact equipment, thereby improving the judgment accuracy of the motion state of the equipment, thereby avoiding the cabinet door from opening by mistake, and improving the control accuracy of the cabinet door induction opening.
[0118] In the embodiment of the present application, S1003 also includes:
[0119] S5001. When the variable parameter interval corresponding to the target monitoring time node is the fourth parameter interval, obtain the motion state corresponding to the previous monitoring time node; the parameter value in the fourth parameter interval is greater than the first preset parameter threshold and less than the second preset parameter threshold;
[0120] or,
[0121] When the variable parameter interval corresponding to the target monitoring time node is the first parameter interval and the number of consecutive time nodes is less than the target survival number, the motion state corresponding to the previous monitoring time node is obtained;
[0122] or,
[0123] When the number of current intervals is less than the number of target nodes, the motion state corresponding to the previous monitoring time node is obtained.
[0124] S5002: Determine the motion state corresponding to the previous monitoring time node as the motion state corresponding to the target monitoring time node.
[0125] In an embodiment of the present application, the variable parameter interval corresponding to the target monitoring time node is the fourth parameter interval, the variable parameter interval corresponding to the target monitoring time node is the first parameter interval, and the number of consecutive time nodes is less than the target continued number and the current interval number is less than the target node number, all of which can characterize that the non-target direction variable parameter is in a slight shaking, but this slight shaking may be caused by excessive touch and pressure force, or it may be the process of transition from a non-stationary state to a stationary state after the device shakes; therefore, the motion state corresponding to the previous monitoring time node is determined as the motion state corresponding to the target monitoring time node.
[0126] In a specific embodiment of the present application, S20012 also includes:
[0127] When the acceleration variable parameter corresponding to the target monitoring time node is not located in the first parameter interval, the second parameter interval, and the third parameter interval, the variable parameter interval corresponding to the target monitoring time node is the fourth parameter interval.
[0128] In a specific embodiment of the present application, when the variable parameter interval corresponding to the target monitoring time node is the fourth parameter interval, the variable parameter interval corresponding to the target monitoring time node is the first parameter interval, and the number of consecutive time nodes is less than the target continued number and the current interval number is less than the target node number, the motion state corresponding to the previous monitoring time node is determined as the motion state corresponding to the target monitoring time node, thereby taking into account the continuity of the motion, thereby improving the judgment accuracy of the motion state of the equipment, thereby avoiding accidental opening of the cabinet door, and improving the control accuracy of the cabinet door sensing opening.
[0129] In the embodiment of the present application, S1004 includes:
[0130] S6001. Obtain the motion state corresponding to at least one monitoring time node.
[0131] S6002: When the motion states corresponding to at least one monitoring time node are all static, obtain the number of tapping times within the tapping detection time period.
[0132] S6003. Control the cabinet door of the device to open based on the number of knocks.
[0133] In an embodiment of the present application, the door opening of the device is controlled by the number of knocks. Specifically, the number of knocks can correspond to the control logic such as the number and direction of cabinet doors; thereby improving the personalization of cabinet door opening.
[0134] In a specific embodiment of the present application, the device includes multiple cabinet doors, and different numbers of knocks correspond to the opening of different cabinet doors; for example, the device includes an upper cabinet door and a lower cabinet door. When the number of knocks is 1, the upper cabinet door is opened; when the number of knocks is 2, the lower cabinet door is opened; when the number of knocks is 3, the upper cabinet door and the lower cabinet door are opened at the same time.
[0135] In a specific embodiment of the present application, the vibration sensor is fixedly connected to the upper cabinet door by screws, which can improve the sensing accuracy when a user knocks on the upper cabinet door.
[0136] In the embodiment of the present application, S6002 includes:
[0137] S7001. Acquire the tapping time interval between the current tapping signal and the next tapping signal; the current tapping signal and the next tapping signal are both detected and acquired within a tapping detection time period.
[0138] S7002: When the tapping time interval is less than the preset time interval, determine that the next tapping signal is a redundant tapping signal.
[0139] S7003. During the knock detection period, count the knock signals other than the redundant knock signals to determine the number of knocks.
[0140] In a specific embodiment of the present application, the preset time interval is shorter than the duration of the tap detection time period. In a specific embodiment, the duration of the tap detection time period is 800 ms, and the preset time interval is 60 ms.
[0141] In the embodiment of the present application, by eliminating knocking signals with short time intervals, the influence of knocking signals caused by aftershocks on the opening of cabinet doors is avoided, thereby improving the accuracy of judging the motion state of the equipment, thereby avoiding accidental opening of cabinet doors and improving the control accuracy of cabinet door induction opening.
[0142] The cabinet door control method of the device in the embodiment of the present application has the following beneficial effects:
[0143] By obtaining the acceleration variable parameters corresponding to the target monitoring time node after the current time node, the motion state of the device at the target monitoring time node is determined, and the motion state of the target monitoring time node is used as the motion state of the current time node; and during the knock detection time period, when the motion state of the device is always static, the cabinet door of the device is controlled to open in response to the knock signal; thereby avoiding the device from opening the door when it detects the knock signal generated during the shaking process, thereby avoiding accidental opening of the cabinet door and improving the control accuracy of the cabinet door induction opening.
[0144] In an embodiment of the present application, the cabinet door control method of the device further includes:
[0145] During the tap detection time period after the current time node, if the running state of the device is not in a stationary state, keep the device turned off.
[0146] Determine that the knock signal is a redundant knock signal, thereby avoiding accidental activation.
[0147] The embodiment of the present application also provides a cabinet door control device, wherein a vibration sensor is provided on the cabinet door of the device, and the device comprises:
[0148] The acceleration acquisition module 101 is used to acquire the acceleration corresponding to the target monitoring time node corresponding to the current time node when a knocking signal of the current time node is detected; the target monitoring time node is the current time node, or a preset monitoring time node adjacent to the current time node and after the current time node; the knocking signal and acceleration are acquired based on the vibration sensor.
[0149] The variable parameter solving module 102 is used to solve the variables based on the acceleration corresponding to the target monitoring time node and the acceleration corresponding to the previous monitoring time node to obtain the acceleration variable parameter corresponding to the target monitoring time node.
[0150] The motion state determination module 103 is used to determine the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node.
[0151] The cabinet door control module 104 is used to control the cabinet door of the device to open based on the knocking signal when the motion state of the device is always static during the knocking detection time period after the current time node; the knocking detection time period includes at least one monitoring time node.
[0152] The motion state determination module includes:
[0153] The interval determination unit is used to determine the variable parameter interval corresponding to the target monitoring time node based on the non-target direction variable parameter corresponding to the target monitoring time node.
[0154] The history acquisition unit is used to obtain the variable parameter intervals corresponding to multiple historical monitoring time nodes; the multiple historical monitoring time nodes are multiple adjacent monitoring time nodes before the target monitoring time node.
[0155] A stationary determination unit is used to determine that the motion state of a target monitoring time node is a stationary state when the variable parameter intervals corresponding to multiple consecutive monitoring time nodes are all first parameter intervals; the multiple consecutive monitoring time nodes include the target monitoring time node and at least one monitoring time node among multiple historical monitoring time nodes; the parameter value within the first parameter interval is less than or equal to the first preset parameter threshold.
[0156] An interval quantity determination unit is used to determine the current interval quantity when the variable parameter interval corresponding to the target monitoring time node is the second parameter interval; the current interval quantity is the number of nodes whose variable parameter intervals corresponding to multiple monitoring historical time nodes are the second parameter interval; the parameter value within the second parameter interval is greater than the second preset parameter threshold and less than the third preset parameter threshold; the second preset parameter threshold is greater than the first preset parameter threshold.
[0157] The first non-stationary determination unit is used to determine that the motion state of the target monitoring time node is a non-stationary state when the number of current intervals is greater than or equal to the number of target nodes.
[0158] The second non-stationary determination unit is used to determine that the motion state of the target monitoring time node is a non-stationary state when the variable parameter interval corresponding to the target monitoring time node is a third parameter interval; and the parameter value within the third parameter interval is greater than a third preset parameter threshold.
[0159] The inheritance acquisition unit is used to acquire the motion state corresponding to the previous monitoring time node when the variable parameter interval corresponding to the target monitoring time node is the fourth parameter interval; the parameter value in the fourth parameter interval is greater than the first preset parameter threshold and less than the second preset parameter threshold;
[0160] or,
[0161] When the variable parameter interval corresponding to the target monitoring time node is the first parameter interval and the number of consecutive time nodes is less than the target survival number, the motion state corresponding to the previous monitoring time node is obtained;
[0162] or,
[0163] When the number of current intervals is less than the number of target nodes, the motion state corresponding to the previous monitoring time node is obtained.
[0164] The state inheritance unit is used to determine the motion state corresponding to the previous monitoring time node as the motion state corresponding to the target monitoring time node.
[0165] The door control module includes:
[0166] The state acquisition unit is used to acquire the motion state corresponding to at least one monitoring time node.
[0167] The number determination unit is used to obtain the number of tapping times within the tapping detection time period when the motion states corresponding to at least one monitoring time node are all static states.
[0168] An opening unit is used to control the opening of a cabinet door of the device based on the number of knocks.
[0169] The frequency determination unit includes:
[0170] The signal interval acquisition unit is used to acquire the tapping time interval between the current tapping signal and the next tapping signal; the current tapping signal and the next tapping signal are both detected and acquired within the tapping detection time period.
[0171] The redundant signal determination unit is used to determine that the next knocking signal is a redundant knocking signal when the knocking time interval is less than the preset time interval.
[0172] The number counting unit is used to count the knocking signals other than the redundant knocking signals within the knocking detection time period to determine the number of knocking times.
[0173] An embodiment of the present application also provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement a cabinet door control method of the device as described above.
[0174] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one hard disk storage device, a flash memory device or other volatile solid-state storage device. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0175] The method embodiments provided in the embodiments of the present application can be executed in electronic devices such as mobile terminals, computer terminals, servers or similar computing devices. Fig.14 is an electronic device provided in an embodiment of the present application. Fig.14 As shown, the electronic device 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 910 (the processor 910 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 930 for storing data, and one or more storage media 920 (such as one or more mass storage devices) for storing application programs 923 or data 922. Among them, the memory 930 and the storage medium 920 can be short-term storage or permanent storage. The program stored in the storage medium 920 may include one or more modules, and each module may include a series of instruction operations in the electronic device. Furthermore, the central processing unit 910 can be configured to communicate with the storage medium 920 to execute a series of instruction operations in the storage medium 920 on the electronic device 900. The electronic device 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input and output interfaces 940, and / or one or more operating systems 921, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0176] The input / output interface 940 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the electronic device 900. In one example, the input / output interface 940 includes a network adapter (NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 940 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0177] It can be understood by those skilled in the art that Fig.14 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.14 More or fewer components as shown, or with Fig.14 Different configurations are shown.
[0178] An embodiment of the present application also provides a storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement a cabinet door control method of the device as described above.
[0179] The above description has fully disclosed the specific implementation methods of the present application. It should be pointed out that any changes made by technicians familiar with the field to the specific implementation methods of the present application do not deviate from the scope of the claims of the present application. Accordingly, the scope of the claims of the present application is not limited to the above specific implementation methods.
Claims
1. A cabinet door control method for equipment, It is characterized in that The cabinet door of the device is provided with a vibration sensor, including: When a knock signal of a current time node is detected, an acceleration corresponding to a target monitoring time node corresponding to the current time node is obtained; the target monitoring time node is the current time node, or a preset monitoring time node adjacent to the current time node and after the current time node; the knock signal and the acceleration are acquired based on the collection of the vibration sensor; Solving for variables based on the acceleration corresponding to the target monitoring time node and the acceleration corresponding to the previous monitoring time node to obtain the acceleration variable parameter corresponding to the target monitoring time node; Determining the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node; In a knock detection time period after the current time node, when the motion state of the device is always static, the cabinet door of the device is controlled to open based on the knock signal; the knock detection time period includes at least one monitoring time node.
2. The cabinet door control method of the device according to claim 1, It is characterized in that The acceleration variable parameter includes a non-target direction variable parameter; the non-target direction includes a first direction and a second direction, and the first direction, the second direction and the target direction are orthogonal to each other; the determining of the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node includes: Determine the variable parameter interval corresponding to the target monitoring time node based on the non-target direction variable parameter corresponding to the target monitoring time node; Obtain variable parameter intervals corresponding to multiple historical monitoring time nodes, respectively; the multiple historical monitoring time nodes are multiple adjacent monitoring time nodes before the target monitoring time node; When the variable parameter intervals corresponding to multiple consecutive monitoring time nodes are all first parameter intervals, the motion state of the target monitoring time node is determined to be a stationary state; the multiple consecutive monitoring time nodes include the target monitoring time node and at least one monitoring time node among the multiple historical monitoring time nodes; the parameter value within the first parameter interval is less than or equal to the first preset parameter threshold.
3. The cabinet door control method of the device according to claim 2, It is characterized in that Determining the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node includes: In the case where the variable parameter interval corresponding to the target monitoring time node is the second parameter interval, determining the current interval number; the current interval number is the number of nodes whose variable parameter intervals corresponding to each of the multiple monitoring historical time nodes are the second parameter interval; the parameter value within the second parameter interval is greater than the second preset parameter threshold and less than the third preset parameter threshold; the second preset parameter threshold is greater than the first preset parameter threshold; In a case where the number of the current intervals is greater than or equal to the number of the target nodes, it is determined that the motion state of the target monitoring time node is a non-stationary state.
4. The cabinet door control method of the device according to claim 3, It is characterized in that Determining the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node includes: When the variable parameter interval corresponding to the target monitoring time node is the third parameter interval, it is determined that the motion state of the target monitoring time node is a non-stationary state; and the parameter value within the third parameter interval is greater than the third preset parameter threshold.
5. The cabinet door control method of the device according to claim 4, It is characterized in that Determining the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node includes: When the variable parameter interval corresponding to the target monitoring time node is the fourth parameter interval, obtaining the motion state corresponding to the previous monitoring time node; the parameter value in the fourth parameter interval is greater than the first preset parameter threshold and less than the second preset parameter threshold; or, When the variable parameter interval corresponding to the target monitoring time node is the first parameter interval and the number of the plurality of consecutive time nodes is less than the target continued number, obtaining the motion state corresponding to the previous monitoring time node; or, When the number of the current interval is less than the number of the target nodes, obtaining the motion state corresponding to the last monitoring time node; The motion state corresponding to the previous monitoring time node is determined as the motion state corresponding to the target monitoring time node.
6. The cabinet door control method of the device according to claim 1, It is characterized in that In the knock detection time period after the current time node, when the motion state of the device is always in a stationary state, controlling the cabinet door of the device to open based on the knock signal includes: Obtaining the motion state corresponding to each of the at least one monitoring time nodes; When the motion states corresponding to the at least one monitoring time node are all static states, obtaining the number of tapping times within the tapping detection time period; The cabinet door of the device is controlled to open based on the number of knocks.
7. The cabinet door control method of the device according to claim 6, It is characterized in that When the motion states corresponding to the plurality of monitoring time nodes are all static states, obtaining the number of knocks within the knock detection time period includes: Acquire a knocking time interval between a current knocking signal and a next knocking signal; the current knocking signal and the next knocking signal are both detected and acquired within the knocking detection time period; In the case where the knocking time interval is less than the preset time interval, determining that the next knocking signal is a redundant knocking signal; During the knock detection time period, the knock signals other than the redundant knock signals are counted to determine the number of knocks.
8. A control device for a cabinet door, It is characterized in that A vibration sensor is provided on the cabinet door of the device, and the device comprises: An acceleration acquisition module, configured to acquire, when a knock signal at a current time node is detected, an acceleration corresponding to a target monitoring time node corresponding to the current time node; the target monitoring time node is the current time node, or a preset monitoring time node adjacent to the current time node and after the current time node; the knock signal and the acceleration are acquired based on the collection of the vibration sensor; A variable parameter solving module, used to solve variables based on the acceleration corresponding to the target monitoring time node and the acceleration corresponding to the previous monitoring time node, to obtain the acceleration variable parameter corresponding to the target monitoring time node; A motion state determination module, configured to determine the motion state of the device at the target monitoring time node based on the acceleration variable parameter corresponding to the target monitoring time node; The cabinet door control module is used to control the cabinet door of the device to open based on the knock signal when the motion state of the device is always static during the knock detection time period after the current time node; the knock detection time period includes at least one monitoring time node.
9. A computer storage medium, It is characterized in that The storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the cabinet door control method of the device as described in any one of claims 1-7.
10. An electronic device, It is characterized in that The device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the cabinet door control method of the device as described in any one of claims 1-7.
