Device door body control method and device door body control apparatus

By analyzing the acceleration changes in each direction of the equipment door, the direction of the knocking is identified and matched to control the equipment door, thus solving the problem of accidental door opening and achieving highly reliable and low-cost door opening and closing control.

CN122169695APending Publication Date: 2026-06-09NINGBO FOTILE KITCHEN WARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
NINGBO FOTILE KITCHEN WARE CO LTD
Filing Date
2024-12-09
Publication Date
2026-06-09

Smart Images

  • Figure CN122169695A_ABST
    Figure CN122169695A_ABST
Patent Text Reader

Abstract

The application provides a device door control method and device door control device, comprising: obtaining initial acceleration variation of each direction when current knocking is generated and current acceleration variation of each direction; comparing the size of initial acceleration variation of each direction and current acceleration variation of each direction respectively, updating initial acceleration variation of each direction according to the size comparison result; performing numerical analysis based on target acceleration variation of each direction to obtain target peak acceleration variation, and determining the direction corresponding to target peak acceleration variation as the current knocking direction; matching the current knocking direction and a preset direction, and controlling the device door according to the matching result. By determining the direction of the current knocking, the accuracy of identifying the knocking direction and the reliability of the device door opening and closing control are enhanced, the complexity and manufacturing cost of the device structure are reduced, the intelligence and timeliness of the door opening and closing control are ensured, and the use convenience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of door opening and closing control technology, specifically relating to a method and device for controlling equipment doors. Background Technology

[0002] Users are increasingly demanding greater convenience from their home appliances. For appliances with doors, users expect to control the door opening and closing with quick actions, such as knocking on the door to make it open and close automatically, without requiring users to manually open and close the appliance door. This would save users time spent on opening and closing the appliance door and allow them to perform other more important operations.

[0003] Current methods for controlling device doors typically involve using sensors to detect knocks and setting thresholds for the knocks detected by the sensors. When the sensor reading reaches the threshold, the door opens. However, this method has several drawbacks. For example, if a user unintentionally applies excessive force to a part of the device while performing other operations, the device may misinterpret this force as a knock, causing the door to open and close uncontrollably, inconveniencing the user. To avoid such accidental touches, a specific touch area is usually set at a specific location on the device. The relevant operation is only executed when both a touch signal and a knock are received simultaneously. However, this requires the user to operate on a specific touch area. If the touch area is too small, precise control is difficult, resulting in poor user-friendliness, complex structure, and high equipment cost.

[0004] Therefore, there is an urgent need for a control method that can accurately control the opening and closing of equipment doors by sensing taps, and that is highly controllable, can effectively avoid accidental touches, and is low in cost. Summary of the Invention

[0005] To address the aforementioned technical problems, this application provides a method and device for controlling equipment doors.

[0006] On the one hand, this application proposes a method for controlling equipment doors, the method comprising:

[0007] The initial acceleration change in each direction and the current acceleration change in each direction are obtained when the current tap occurs; the current acceleration change in each direction is the difference between the historical acceleration value generated by the previous tap and the current acceleration value generated by the current tap in each direction, wherein each direction includes the current tapping direction;

[0008] The magnitudes of the initial acceleration changes and the current acceleration changes in each direction are compared. Based on the comparison results, the initial acceleration changes in each direction are updated to obtain the target acceleration changes in each direction.

[0009] Numerical analysis is performed based on the target acceleration change in each direction to obtain the target peak acceleration change, and the direction corresponding to the target peak acceleration change is determined as the current striking direction.

[0010] The current striking direction is matched with a preset direction, and the door of the device is controlled according to the matching result; the preset direction is the direction that can trigger the door opening operation.

[0011] In some possible implementations, the target acceleration change in each direction includes a first target value and a second target value in each direction, wherein the second target value in each direction is greater than the first target value in each direction. The step of performing numerical analysis based on the target acceleration change in each direction to obtain the target peak acceleration change includes:

[0012] If the number of consecutively detected tapping signals within a preset period is greater than a preset threshold, the difference between the first target value and the second target value in each direction is calculated to obtain the peak acceleration change in each direction.

[0013] The target peak acceleration change is obtained by comparing the magnitudes of the peak acceleration changes in each direction.

[0014] In some possible implementations, the directions include the preset direction and the interference direction, and the comparison of the magnitudes of the peak acceleration changes based on each direction to obtain the target peak acceleration change includes:

[0015] The change in peak acceleration corresponding to the direction of interference is amplified by a preset factor to obtain the change in peak acceleration of interference.

[0016] The magnitude of the change in the interference peak acceleration is compared with the magnitude of the change in the peak acceleration corresponding to the preset direction, and the target peak acceleration change is determined based on the comparison result.

[0017] In some possible implementations, after acquiring the initial acceleration changes in each direction and the current acceleration changes in each direction, the device door control method further includes:

[0018] The current change in acceleration in each direction is compared with a preset threshold to obtain the comparison results for each direction.

[0019] Obtain the new acceleration changes in each direction and use the new acceleration changes in each direction as the current acceleration changes in each direction.

[0020] Repeat the steps of comparing the current acceleration change in each direction with the preset threshold until the new acceleration change in each direction is used as the current acceleration change in each direction, until a preset period has elapsed;

[0021] Whether to perform a zeroing operation is determined based on the comparison results of several directions; the comparison results of several directions are obtained by accumulating the comparison results of each direction within the preset period.

[0022] In some possible implementations, the device door control method further includes:

[0023] If the comparison results in each direction indicate that the change in current acceleration in each direction is less than the preset threshold, the change in current acceleration in each direction will be reset to zero.

[0024] In some possible implementations, the device door control method further includes:

[0025] If the comparison results in each direction indicate that the change in current acceleration in each direction is greater than or equal to the preset threshold, numerical analysis is performed based on the change in current acceleration in each direction to obtain the change in target peak acceleration.

[0026] In some possible implementations, matching the current striking direction with a preset direction and controlling the device door based on the matching result includes:

[0027] The current tapping direction is matched with the preset direction, and the number of matches is recorded based on the matching results;

[0028] If the number of matching attempts equals a preset number, the device door is controlled to open.

[0029] The number of matching times refers to the number of matching results indicating that the current tapping direction matches the preset direction within the preset period.

[0030] In some possible implementations, the device door control method further includes:

[0031] Within the preset period, if the current striking direction does not match the preset direction, or if the number of matching is less than or greater than the preset number, the number of matching, the change in target acceleration in each direction, and the change in peak acceleration in each direction are reset to zero.

[0032] In some possible implementations, the interference direction includes a first interference direction and a second interference direction. Before amplifying the peak acceleration change corresponding to the interference direction by a preset factor, the device door control method further includes:

[0033] The peak acceleration change corresponding to the first interference direction and the peak acceleration change corresponding to the second interference direction are compared. Based on the comparison result, the peak acceleration change that is greater than the preset acceleration change threshold is taken as the peak acceleration change corresponding to the interference direction.

[0034] On the other hand, embodiments of this application provide a device for controlling a device for a device door, the device comprising:

[0035] The acquisition module is used to acquire the initial acceleration change in each direction and the current acceleration change in each direction when the current tap occurs; the current acceleration change in each direction is the difference between the historical acceleration value generated by the previous tap and the current acceleration value generated by the current tap in each direction, and each direction includes the current tapping direction;

[0036] The update module is used to compare the magnitude of the initial acceleration change in each direction with the magnitude of the current acceleration change in each direction, update the initial acceleration change in each direction based on the magnitude comparison results, and obtain the target acceleration change in each direction.

[0037] The direction analysis module is used to perform numerical analysis based on the target acceleration change in each direction, obtain the target peak acceleration change, and determine the direction corresponding to the target peak acceleration change as the current striking direction.

[0038] The door control module is used to match the current knocking direction with a preset direction and control the door of the device according to the matching result; the preset direction is the direction that can trigger the door opening operation.

[0039] The embodiments of the present invention have the following beneficial effects:

[0040] The equipment door control method and device provided by this invention process and analyze the magnitude of acceleration changes in various directions to determine the current direction of the knock, enhancing the accuracy of knock direction identification and preventing the equipment door from being unintentionally opened by knocks from other directions. This improves the reliability of equipment door opening and closing control and eliminates the need for additional touch areas or other components to prevent accidental touches, reducing the complexity of the equipment structure and manufacturing costs. By matching the current knock direction with a preset direction, the method determines whether the current knock direction is a direction that can trigger the door opening operation or an interference direction that cannot trigger the door opening operation, thereby controlling the equipment door to perform the door opening operation or remain closed. This ensures the intelligence and timeliness of door opening and closing control. By recognizing and controlling the equipment door based on the knock, the method saves the time of manual door opening and closing and improves ease of use. Attached Figure Description

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

[0042] Figure 1 This is a schematic diagram of the implementation environment of a device door control method provided in an embodiment of this application;

[0043] Figure 2 This is a flowchart illustrating a device door control method provided in an embodiment of this application. Figure 1 ;

[0044] Figure 3 This is a schematic diagram of the acceleration direction of a device provided in an embodiment of this application;

[0045] Figure 4 This is a logical illustration of a device door control method provided in an embodiment of this application. Figure 1 ;

[0046] Figure 5 This is a logical illustration of a device door control method provided in an embodiment of this application. Figure 2 ;

[0047] Figure 6 This is a block diagram of a device door control device provided in an embodiment of this application;

[0048] The following is supplementary explanation of the attached figures:

[0049] 1-Equipment; 2-Door body; 3-Sensor. Detailed Implementation

[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0051] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the present application described herein can be implemented in orders other than those illustrated or described herein. Thus, features defined with "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments, unless otherwise stated, "a plurality of" means two or more. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.

[0052] To make the objectives, technical solutions, and advantages disclosed in the embodiments of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of this application and are not intended to limit the embodiments of this application.

[0053] As appliances become more intelligent, they often come equipped with quick operation methods to facilitate certain actions. For example, in a home environment, kitchen appliances with doors may have a quick operation method that allows them to be opened by tapping. The process is as follows: tapping the appliance causes the sensor to reach a preset threshold, which in turn causes the door to open automatically.

[0054] Since kitchen appliances are often located near the kitchen countertop, when users perform operations such as cutting, chopping, and mashing on the countertop, the sensors in the appliances can easily detect the vibrations generated by these operations. When the vibration amplitude reaches a preset threshold, the appliance door will automatically open. It is evident that traditional control methods cannot identify the nature of a certain type of knock or distinguish whether the knock is intended to open the appliance door. Controlling the appliance door solely by identifying the vibration amplitude can lead to the appliance door being opened unintentionally.

[0055] To prevent accidental opening of devices with doors, common improvements include increasing the preset threshold and adding touch circuitry. Firstly, increasing the preset threshold can prevent interference from actions that produce minor vibrations, but this also requires greater force to open the door, which is inconvenient for users. Furthermore, if the vibration generated by the interfering action exceeds the preset threshold, it will also lead to accidental opening. Therefore, simply increasing the preset threshold does not solve the aforementioned technical problem. Secondly, adding touch circuitry and defining a touch area, with a touch sensor detecting the presence of a touch operation within that area, allows the door to open or close only when both a knock signal and a touch signal are detected simultaneously. This method can prevent accidental opening caused by operations outside the touch area, but users need to operate from a designated location, limiting the operating area and reducing user convenience. Adding touch circuitry also increases cost and manufacturing difficulty, thus failing to solve the aforementioned technical problem.

[0056] Therefore, this application provides a method for controlling the door of an equipment, which can effectively solve the above-mentioned technical problems. It can achieve accurate identification of knocks and precise control of the equipment door without increasing costs, enhance the ease of use of the knock-to-open function, and reduce the possibility of accidental touches.

[0057] Figure 1 This is a schematic diagram illustrating the implementation environment of a device door control method provided in an embodiment of this application. For example... Figure 1 As shown, the implementation environment may include at least a client 01 and a server 02. The client 01 and the server 02 may be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0058] Specifically, server 02 can be used to acquire the initial acceleration change in each direction and the current acceleration change in each direction at the time of the current tap; to compare the magnitudes of the initial acceleration change and the current acceleration change in each direction; to update the initial acceleration change in each direction based on the comparison results to obtain the target acceleration change in each direction; to perform numerical analysis based on the target acceleration change in each direction to obtain the target peak acceleration change; to determine the direction corresponding to the target peak acceleration change as the current tapping direction; to match the current tapping direction with a preset direction; and to send the matching result to the client. Optionally, server 02 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0059] Specifically, the client 01 can be used to receive matching results sent by the server and to control the device door based on the matching results. Optionally, the client 01 can be a smartphone, tablet, laptop, desktop computer, smart speaker, smart voice interaction device, smart home appliance, smartwatch, vehicle terminal, aircraft, etc., but is not limited to these. This application embodiment can be applied to various scenarios, including but not limited to rendering and displaying interactive information involved in various scenarios such as cloud technology and artificial intelligence.

[0060] It should be noted that, Figure 1 This is just one example. Other implementation environments may also be included in other scenarios.

[0061] Figure 2 This is a flowchart illustrating a device door control method provided in an embodiment of this application. Figure 1 This method can be used for Figure 1 In the implementation environment described in this specification, the method operation steps are as illustrated in the embodiments or flowcharts. However, based on conventional or non-inventive labor, more or fewer operation steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual system or server product execution, the method can be executed sequentially according to the embodiments or drawings, or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Specifically, as shown in the embodiments or drawings... Figure 2 As shown, the method may include:

[0062] S101: Obtain the initial acceleration change in each direction and the current acceleration change in each direction when the current tap occurs.

[0063] To better understand the technical solution of the present invention, a three-axis accelerometer is used as an example for explanation. The three-axis accelerometer can reflect acceleration in three directions. Optionally, the current tap refers to an effective tap that triggers the three-axis accelerometer to generate an acceleration change. An effective tap refers to a tap where the acceleration change generated by the tap is greater than a preset threshold.

[0064] Optionally, the initial acceleration change refers to the maximum and minimum values ​​among the existing acceleration changes in a certain direction.

[0065] Furthermore, the current acceleration change in each direction is the difference between the historical acceleration value generated by the previous strike and the current acceleration value generated by the current strike in each direction, where each direction includes the current striking direction. Specifically, the historical acceleration value and the current acceleration value are subtracted separately in each direction. For example, if the directions include directions a and b, and the historical acceleration value in direction a is 200, the historical acceleration value in direction b is 500, the current acceleration value in direction a is 500, and the current acceleration value in direction b is 600, then the current acceleration change in direction a is 300, and the current acceleration change in direction b is 100. The current acceleration changes in directions a and b are collectively referred to as the current acceleration change in each direction.

[0066] S103: Compare the initial acceleration changes and the current acceleration changes in each direction, update the initial acceleration changes in each direction based on the comparison results, and obtain the target acceleration changes in each direction.

[0067] Optionally, the target acceleration change refers to the maximum and minimum values ​​of the acceleration change in each direction. It should be noted that each time an acceleration value is generated, a set of current acceleration changes is generated. These current acceleration changes are then compared with the initial acceleration changes, and the larger and smaller values ​​are taken as the target acceleration changes, respectively.

[0068] It should be noted that the change in acceleration is obtained by subtracting two adjacent sets of acceleration values. The existence of the initial change in acceleration indicates that at least three sets of acceleration values ​​have been generated, and the initial change in acceleration is obtained by subtracting the three sets of acceleration values ​​that have been generated.

[0069] S105: Based on the change in target acceleration in each direction, perform numerical analysis to obtain the change in target peak acceleration, and determine the direction corresponding to the change in target peak acceleration as the current striking direction.

[0070] Optionally, the target peak acceleration change refers to the target value among the peak acceleration changes in each direction. For example, it can be the maximum value among the peak acceleration changes in each direction.

[0071] S107: Match the current striking direction with the preset direction, and control the device door according to the matching result;

[0072] Optionally, the preset direction is the direction that can trigger the door opening operation. For example, the three-axis accelerometer has three directions, and one of the three directions is set as the preset direction. When the current striking direction is the same as the preset direction, the door of the device is controlled. When the current striking direction is different from the preset direction, the door of the device is controlled in another way.

[0073] This invention, through processing and analyzing the magnitude of acceleration changes in various directions, determines the direction of the current tap, enhancing the accuracy of tap direction identification and preventing unintentional opening of the equipment door due to taps from other directions. This improves the reliability of door opening and closing control and eliminates the need for additional touch areas or other components to prevent accidental touches, reducing the complexity of the equipment structure and manufacturing costs. By matching the current tap direction with a preset direction, it determines whether the current tap direction is a direction that can trigger the door opening operation or an interference direction that cannot trigger the door opening operation. This allows for control of the equipment door, enabling it to either open or remain closed, ensuring the intelligence and timeliness of door opening and closing control. By recognizing and controlling the equipment door based on taps, it eliminates the time required for manual opening and closing, improving ease of use.

[0074] In some possible embodiments, the target acceleration change in each direction includes a first target value and a second target value in each direction, wherein the second target value in each direction is greater than the first target value in each direction. The step of performing numerical analysis based on the target acceleration change in each direction to obtain the target peak acceleration change includes:

[0075] If the number of consecutively detected tapping signals within a preset period exceeds a preset threshold, the difference between the first target value and the second target value in each direction is calculated to obtain the peak acceleration change in each direction.

[0076] Optionally, the duration of the preset period can be set as needed, for example, it can be any value within 1-20 seconds. The tap signal refers to the level signal emitted by the sensor inside the device after sensing a tap. The preset number threshold is the minimum number of tap signals detected within the preset period. For example, if there are 2 tap signals, the calculation is performed when the number of tap signals detected within the preset period is 3.

[0077] Optionally, the peak acceleration change refers to the peak-to-peak value of the acceleration change in one direction, and the first target value and the second target value are the maximum and minimum values ​​of the acceleration change in each direction, respectively. The peak acceleration change in each direction can represent the maximum amplitude of the acceleration change in each direction.

[0078] The target peak acceleration change is obtained by comparing the magnitudes of the peak acceleration changes in each direction.

[0079] It should be noted that the target peak acceleration change is the result of a lateral comparison between the peak acceleration changes in each direction. The target peak acceleration change is the maximum value among all peak acceleration changes, which can represent the current tapping direction and is used to determine whether the current tapping is the tapping that triggers the door opening operation, so as to achieve accurate control of the equipment door.

[0080] This invention uses a preset detection period. When a preset number of interrupt signals are continuously detected within the preset period, the acceleration change in each direction is calculated to obtain the peak acceleration change in each direction. By comparing the magnitudes, the maximum value is determined as the target peak acceleration change, thereby determining the current tapping direction. The current tapping direction is used as the criterion for determining whether the tapping can trigger the door opening operation, thus associating the tapping with the specific direction. This enriches the factors considered in door opening control. By determining the current tapping direction, the accuracy of door opening control can be improved. By changing the preset period and the preset number of tapping signals, the tapping behavior that triggers the door opening operation is made more in line with user habits, improving user convenience.

[0081] In some possible embodiments, the directions include the preset direction and the interference direction, and the comparison of the magnitudes of the peak acceleration changes based on each direction to obtain the target peak acceleration change includes:

[0082] The change in peak acceleration corresponding to the direction of interference is amplified by a preset factor to obtain the change in peak acceleration of interference.

[0083] Optionally, the interference direction is a direction other than the preset direction among the directions. The interference direction may include multiple directions. For example, please refer to [link to relevant documentation]. Figure 3 , Figure 3 This shows the direction of acceleration in the device, such as... Figure 3As shown, the device 1 with a door is provided with a door 2 and a shell. The door 2 may include an upper door and a lower door. The device is provided with a sensor 3, such as a triaxial accelerometer. The triaxial accelerometer can display acceleration values ​​including the x-axis, y-axis and z-axis. The y-axis is perpendicular to the side of the device, the x-axis is perpendicular to the upper and lower surfaces of the device, and the z-axis is perpendicular to the door of the device. The z-axis can be set to a preset direction, then the x-axis and y-axis are both interference directions.

[0084] Optionally, the preset multiplier can be 1x or a multiplier greater than 1x, such as any multiplier between 1x and 20x. It should be noted that a single tap may cause acceleration in all directions, including the current tapping direction. However, the acceleration in the current tapping direction will be much greater than the acceleration in other non-current tapping directions. Therefore, preferably, the peak acceleration change in the interference direction is amplified to more than 1x. If the amplified peak acceleration change is still less than the peak acceleration change in the preset direction, it conforms to the aforementioned relationship between the magnitudes of acceleration in the current tapping direction and other non-current tapping directions, further ensuring the accuracy of the judgment result.

[0085] The magnitude of the change in the interference peak acceleration is compared with the magnitude of the change in the peak acceleration corresponding to the preset direction, and the target peak acceleration change is determined based on the comparison result.

[0086] Optionally, if the change in peak acceleration of the interference peak is less than the change in peak acceleration of the preset direction, it indicates that the change in peak acceleration of the preset direction is much greater than the change in peak acceleration of the interference direction, and the change in peak acceleration of the preset direction is the target peak acceleration change. Conversely, the change in peak acceleration of the interference peak is the target peak acceleration change. The target peak acceleration change obtained from the above comparison results will be used to determine the current striking direction.

[0087] This invention assumes that the peak acceleration change in the current striking direction is much greater than that in other non-current striking directions. By amplifying the peak acceleration change in the interference direction by a preset factor and then comparing it with the peak acceleration change in the preset direction, the direction with the most significant and largest acceleration change can be accurately identified and determined as the current striking direction. This ensures that the analysis results correspond to the actual striking operation, improving the comprehensiveness and accuracy of striking identification and analysis, enhancing the controllability of equipment door opening control, and reducing the possibility of accidental touches.

[0088] In some possible embodiments, after acquiring the initial acceleration changes in each direction and the current acceleration changes in each direction, the device door control method further includes:

[0089] The current acceleration change in each direction is compared with a preset threshold to obtain the comparison results for each direction.

[0090] Optionally, the preset threshold is the minimum change in acceleration in each direction caused by an effective tap.

[0091] Obtain the new acceleration changes in each direction and use these new acceleration changes in each direction as the current acceleration changes in each direction.

[0092] Repeat the steps of comparing the current acceleration change in each direction with a preset threshold until the new acceleration change in each direction is used as the current acceleration change in each direction, until a preset period has elapsed.

[0093] Whether to perform a zeroing operation is determined based on the comparison results from several directions.

[0094] Optionally, the comparison results in each direction are obtained by accumulating the comparison results in each direction within the preset period.

[0095] This invention compares the current acceleration change in each direction within a preset period with a preset threshold. Based on the comparison results obtained within the preset period, it determines whether there is a valid tap within the preset period, and then performs a zeroing operation. By setting a preset threshold, the magnitude of the acceleration change is evaluated, and minor interferences that affect the device's acquisition effect are eliminated. This ensures that the judgment result in the next preset period is not affected by invalid taps in the previous preset period, preventing accidental touches and avoiding interference from invalid taps on the next tap judgment, thereby improving the reliability of the device's door opening and closing control.

[0096] In some possible embodiments, the device door control method further includes:

[0097] If the comparison results in each direction indicate that the change in current acceleration in each direction is less than the preset threshold, the change in current acceleration in each direction will be reset to zero.

[0098] Optionally, a preset threshold is used to determine whether a valid tap exists. Since the preset threshold represents the minimum change in acceleration in each direction caused by a valid tap, if the current change in acceleration in each direction is less than the preset threshold, it indicates that there is no valid tap. In reality, an action may occur near the device, causing a small change in the sensor values ​​within the device. However, this change in value is identified as interference after analysis. Furthermore, the interference values ​​are cleared, i.e., the current change in acceleration in each direction is cleared to zero.

[0099] In this embodiment of the invention, by comparing the current acceleration changes in all directions to be less than a preset threshold, it is determined that there is no valid tapping at present. The interference value is then cleared to ensure that the next tap is not disturbed, and also to prevent the interference value from causing the device door to open. This enhances the reliability of the device door control and reduces the probability of accidental touch.

[0100] In some possible embodiments, the device door control method further includes:

[0101] If the comparison results in each direction indicate that the change in current acceleration in each direction is greater than or equal to the preset threshold, numerical analysis is performed based on the change in current acceleration in each direction to obtain the change in target peak acceleration.

[0102] Optionally, if there is a current acceleration change greater than or equal to a preset threshold in each direction, it indicates that there is a valid tap. Preferably, limiting the aforementioned condition to greater than the preset threshold can further ensure that interference is not judged as a valid tap.

[0103] Furthermore, given the existence of valid taps and the satisfaction of a preset number of tap signals, numerical analysis can be performed based on the current acceleration changes in each direction to determine the target peak acceleration change. The preset number of tap signals refers to the number of tap signals detected within a preset period being greater than a preset number. Optionally, numerical analysis refers to obtaining the peak acceleration changes in each direction, and then obtaining the target peak acceleration change.

[0104] This invention, through comparison of the current acceleration changes in each direction being greater than or equal to a preset threshold, determines that a valid tap has occurred. Further numerical analysis is then performed on the current acceleration change to determine the relationship between the current tapping direction and a preset direction. This allows for the determination of how to control the device door, preventing interference values ​​from causing the door to open, thus enhancing the reliability of door control and reducing the probability of accidental touches.

[0105] In some possible embodiments, matching the current striking direction with a preset direction and controlling the device door based on the matching result includes:

[0106] The current tapping direction is matched with the preset direction, and the number of matches is recorded based on the matching results.

[0107] When the number of matching attempts equals the preset number, the device door is controlled to open.

[0108] The matching count refers to the number of matching results between the current tapping direction and the preset direction within a preset period. The preset count is the minimum number of matching counts required to open the door of the control device. The preset count can be 1, 2, or 3 times. Preferably, setting the preset count to 2 or more times can effectively prevent accidental tapping by the user from causing door control operations.

[0109] This invention improves the reliability of door opening control by recording the number of times the current tapping direction matches the preset direction within a preset period.

[0110] In some possible embodiments, the device door control method further includes:

[0111] Within the preset period, if the current striking direction does not match the preset direction, or if the number of matching is less than or greater than the preset number, the number of matching, the change in target acceleration in each direction, and the change in peak acceleration in each direction are reset to zero.

[0112] Optionally, if the current tapping direction does not match the preset direction, or if the number of matching times is less than or greater than the preset number, the device door remains closed.

[0113] This invention sets restrictions on door opening control, keeping the door closed when the tapping direction is other than a preset direction or when the number of matching attempts is less than a preset number. This effectively avoids accidental touches and improves the reliability of door control. Furthermore, by resetting the number of matching attempts, the change in target acceleration in each direction, and the change in peak acceleration in each direction to zero, the judgment in the next cycle is not affected by the values ​​in the current preset cycle, ensuring the accuracy and independence of each tapping judgment and further guaranteeing the reliability of door opening control.

[0114] In some possible implementations, the interference direction includes a first interference direction and a second interference direction. Before amplifying the peak acceleration change corresponding to the interference direction by a preset factor, the device door control method further includes:

[0115] The peak acceleration change corresponding to the first interference direction and the peak acceleration change corresponding to the second interference direction are compared. Based on the comparison result, the peak acceleration change that is greater than the preset acceleration change threshold is taken as the peak acceleration change corresponding to the interference direction.

[0116] Optionally, the interference direction may include multiple directions. For example, the direction of the z-axis is a preset direction, and the directions of the y-axis and x-axis are interference directions.

[0117] It is important to note that the principle of this invention is as follows: if the direction corresponding to the target peak acceleration change is a preset direction, then the door of the device is opened. The key is to compare the peak acceleration changes in the interference direction and the preset direction. Assuming there are several interference directions, the maximum value of the peak acceleration change in one of these directions is determined and used as the peak acceleration change corresponding to that direction. This peak acceleration change is a representative value for all interference directions. If the peak acceleration change in the corresponding direction is less than the peak acceleration change in the preset direction, it means that the peak acceleration changes in all interference directions are less than the peak acceleration change in the preset direction, indicating that the current striking direction is the preset direction.

[0118] This invention provides an embodiment that finds the maximum value among the peak acceleration changes in several interference directions as the peak acceleration change for the corresponding interference direction and compares it with the peak acceleration change for a preset direction. This eliminates the need to perform several comparisons with the peak acceleration change for each interference direction, saving comparison counts, program execution resources, and improving the judgment speed of the device's door opening control.

[0119] Please see Figure 4 , Figure 4 The present invention demonstrates part of the control logic in the device door control method provided by the present invention. The specific logic is as follows: obtain the current acceleration value and the initial acceleration change; calculate the acceleration change in each direction based on the current acceleration value; compare the initial acceleration change in each direction with the current acceleration change in each direction; update the initial acceleration change in each direction according to the comparison result; determine whether the acceleration change in each direction is less than a preset threshold within a preset period; if so, clear the current acceleration change in each direction to zero; if not, continue to obtain a new set of acceleration values ​​as the current acceleration value and obtain the updated initial acceleration change, and repeat the above process.

[0120] Please see Figure 5 , Figure 5 This invention demonstrates another part of the control logic in the device door control method provided by the present invention, the specific logic of which is as follows:

[0121] The peak acceleration change in each direction is calculated, and it is determined whether the peak acceleration change of the interference is greater than the peak acceleration change in the corresponding preset direction. If the peak acceleration change of the interference is greater than the peak acceleration change in the corresponding preset direction, it is determined that the current tapping direction does not match the preset direction. Otherwise, it is determined that the current tapping direction matches the preset direction. If the number of taps is equal to the preset number, for example, if the number of taps is 2, a double tap signal is output. If the number of taps is 3, a triple tap signal is output. Both double tap and triple tap signals can be used to control the opening of the device door.

[0122] Within the preset period, or when the number of matches is less than or greater than the preset number of matches, or after outputting a double-tap signal or after outputting a triple-tap signal, the number of matches, the change in target acceleration in each direction, and the change in peak acceleration in each direction are reset to zero.

[0123] Implementing the embodiments of the present invention has the following beneficial effects:

[0124] 1. This invention, through processing and analyzing the magnitude of acceleration changes in various directions, determines the direction of the current tap, enhancing the accuracy of tap direction identification and preventing unintentional opening of the equipment door due to taps from other directions. This improves the reliability of the equipment door's opening and closing control and eliminates the need for additional touch areas or other components to prevent accidental touches, reducing the complexity of the equipment structure and manufacturing costs. By matching the current tap direction with a preset direction, it determines whether the current tap direction is a direction that can trigger the door opening operation or an interference direction that cannot trigger the door opening operation, thereby controlling the equipment door to perform the opening operation or remain closed. This ensures the intelligence and timeliness of the door opening and closing control. By recognizing and controlling the equipment door based on the tap, it saves the time of manual opening and closing, improving ease of use.

[0125] 2. In this embodiment of the invention, a preset period is used as the detection period. When a preset number of interrupt signals are continuously detected within the preset period, the acceleration change in each direction is calculated to obtain the peak acceleration change in each direction. By comparing the magnitudes, the maximum value is determined as the target peak acceleration change, and then the current tapping direction is determined. The current tapping direction is used as the basis for judging whether the current tapping can trigger the door opening operation, thus associating the tapping with the specific direction and enriching the factors to consider in door opening control. By judging the current tapping direction, it is determined whether to control the opening of the equipment door, which can improve the accuracy of door opening control. By changing the preset period and the preset number of tapping signals, the tapping behavior that triggers the door opening operation is more in line with user habits, improving user convenience.

[0126] 3. This embodiment of the invention assumes that the peak acceleration change in the current striking direction is much greater than the peak acceleration change in other non-current striking directions. By amplifying the peak acceleration change in the interference direction by a preset factor and then comparing it with the peak acceleration change in the preset direction, the direction with the most obvious and largest acceleration change can be accurately identified and determined as the current striking direction. This makes the analysis results correspond to the actual striking operation, improves the comprehensiveness and accuracy of striking identification and analysis, enhances the controllability of equipment door opening control, and reduces the possibility of accidental touch.

[0127] 4. In this embodiment of the invention, the current acceleration change in each direction within a preset period is compared with a preset threshold. Based on the comparison results obtained in several directions within the preset period, it is determined whether there is a valid tap within the preset period, thereby performing a zeroing operation. By setting a preset threshold, the magnitude of the acceleration change is evaluated, and minor interferences affecting the device's acquisition effect are eliminated. This ensures that the judgment result in the next preset period is not affected by invalid taps in the previous preset period, preventing accidental touches and avoiding interference from invalid taps on the next tap judgment, thus improving the reliability of the device's door opening and closing control.

[0128] 5. In this embodiment of the invention, by comparing the current acceleration changes in all directions to be less than a preset threshold, it is determined that there is no valid tapping at present. The interference value is then cleared to ensure that the next tap is not disturbed, and also to prevent the interference value from causing the device door to open. This enhances the reliability of the device door control and reduces the probability of accidental touch.

[0129] 6. In this embodiment of the invention, by comparing the current acceleration change in each direction with a preset threshold, it is determined that there is a valid tap. Then, further numerical analysis is performed on the current acceleration change to determine the relationship between the current tapping direction and the preset direction, and then it is determined how to control the equipment door to avoid interference values ​​causing the equipment door to open, thereby enhancing the reliability of equipment door control and reducing the probability of accidental touch.

[0130] 7. In this embodiment of the invention, the number of times the current tapping direction matches the preset direction within a preset period is recorded to determine whether the tapping to open the door function is triggered. If the number of matching times is equal to the preset number, the door of the device is controlled to open, thereby improving the reliability of the door opening control.

[0131] 8. By setting restrictions on the door opening control, this embodiment of the invention keeps the door closed when the tapping direction is other than the preset direction or when the number of matching is less than the preset number. This effectively avoids accidental touches and improves the reliability of the door control. Furthermore, by resetting the number of matching, the change in target acceleration in each direction, and the change in peak acceleration in each direction to zero, the judgment in the next cycle is not affected by the values ​​in the current preset cycle, ensuring the accuracy and independence of each tapping judgment and further guaranteeing the reliability of the door opening control.

[0132] 9. In this embodiment of the invention, by finding the maximum value of the peak acceleration change in several interference directions as the peak acceleration change in the corresponding interference direction, and comparing it with the peak acceleration change in a preset direction, it is not necessary to compare the peak acceleration change in several interference directions with the peak acceleration change in the preset direction several times, thus saving the number of comparisons, saving program running resources, and improving the judgment speed of the door opening control of the equipment.

[0133] Figure 6 This is a block diagram illustrating a device door control apparatus according to an exemplary embodiment. Figure 6 As shown, the door control device of this equipment may include at least:

[0134] The acquisition module 201 is used to acquire the initial acceleration change in each direction and the current acceleration change in each direction when the current tap occurs; the current acceleration change in each direction is the difference between the historical acceleration value generated by the previous tap and the current acceleration value generated by the current tap in each direction, and each direction includes the current tapping direction;

[0135] The update module 203 is used to compare the magnitude of the initial acceleration change in each direction with the magnitude of the current acceleration change in each direction, update the initial acceleration change in each direction based on the magnitude comparison results, and obtain the target acceleration change in each direction.

[0136] The direction analysis module 205 is used to perform numerical analysis based on the target acceleration change in each direction, obtain the target peak acceleration change, and determine the direction corresponding to the target peak acceleration change as the current striking direction.

[0137] The door control module 207 is used to match the current knocking direction with a preset direction and control the door of the device according to the matching result; the preset direction is the direction that can trigger the door opening operation.

[0138] In some embodiments, the direction analysis module includes:

[0139] The difference analysis unit is used to calculate the difference between the first target value and the second target value in each direction when the number of consecutively detected knock signals within a preset period is greater than a preset threshold, so as to obtain the peak acceleration change in each direction.

[0140] The magnitude comparison unit is used to compare the magnitudes of peak acceleration changes in each direction to obtain the target peak acceleration change.

[0141] In some embodiments, the size comparison unit includes:

[0142] The amplification subunit is used to amplify the peak acceleration change corresponding to the interference direction by a preset factor to obtain the interference peak acceleration change.

[0143] The magnitude comparison subunit is used to compare the magnitude of the change in the interference peak acceleration with the magnitude of the change in the peak acceleration corresponding to the preset direction, and determine the target peak acceleration change based on the magnitude comparison result.

[0144] In some embodiments, the equipment door control device further includes:

[0145] The comparison module in each direction is used to compare the current change in acceleration in each direction with a preset threshold to obtain the comparison result in each direction.

[0146] The repeated acquisition module is used to acquire new acceleration changes in each direction and use these new acceleration changes in each direction as the current acceleration changes in each direction.

[0147] The repeat module is used to repeat the steps of comparing the current acceleration change in each direction with a preset threshold until the new acceleration change in each direction is used as the current acceleration change in each direction again, until a preset period has elapsed.

[0148] The zeroing judgment module is used to determine whether to perform a zeroing operation based on the comparison results of several directions; the comparison results of several directions are obtained by accumulating the comparison results of each direction within the preset period.

[0149] In some embodiments, the equipment door control device further includes:

[0150] The zeroing execution module is used to zero out the current acceleration change in each direction when the comparison results in each direction indicate that the change in current acceleration in each direction is less than the preset threshold.

[0151] In some embodiments, the equipment door control device further includes:

[0152] The numerical analysis module is used to perform numerical analysis based on the current acceleration change in each direction when the comparison results in each direction indicate that the change in current acceleration in each direction is greater than or equal to the preset threshold, so as to obtain the change in target peak acceleration.

[0153] In some embodiments, the door control module includes:

[0154] The recording module is used to match the current tapping direction with a preset direction and record the number of matches based on the matching results;

[0155] The door control module is used to control the opening of the device door when the number of matching times equals the preset number of times;

[0156] The number of matching times refers to the number of matching results indicating that the current tapping direction matches the preset direction within the preset period.

[0157] In some embodiments, the equipment door control device further includes:

[0158] The interference clearing module is used to clear the number of matches, the change in target acceleration in each direction, and the change in peak acceleration in each direction to zero within the preset period, when the current tapping direction does not match the preset direction, or when the number of matches is less than or greater than the preset number.

[0159] In some embodiments, the equipment door control device further includes:

[0160] The interference determination module is used to compare the peak acceleration change amount corresponding to the first interference direction and the peak acceleration change amount corresponding to the second interference direction. Based on the comparison result, the peak acceleration change amount that is greater than a preset acceleration change amount threshold is taken as the peak acceleration change amount corresponding to the interference direction.

[0161] It should be noted that the device embodiments provided in this application are based on the same inventive concept as the method embodiments described above.

[0162] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0163] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and server embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0164] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing the relevant hardware.

[0165] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for controlling a device door, characterized in that, The equipment door control method includes: The initial acceleration change in each direction and the current acceleration change in each direction are obtained when the current tap occurs; the current acceleration change in each direction is the difference between the historical acceleration value generated by the previous tap and the current acceleration value generated by the current tap in each direction, wherein each direction includes the current tapping direction; The magnitudes of the initial acceleration changes and the current acceleration changes in each direction are compared. Based on the comparison results, the initial acceleration changes in each direction are updated to obtain the target acceleration changes in each direction. Numerical analysis is performed based on the target acceleration change in each direction to obtain the target peak acceleration change, and the direction corresponding to the target peak acceleration change is determined as the current striking direction. The current striking direction is matched with a preset direction, and the door of the device is controlled according to the matching result; the preset direction is the direction that can trigger the door opening operation.

2. The equipment door control method according to claim 1, characterized in that, The change in target acceleration in each direction includes a first target value and a second target value in each direction, where the second target value is greater than the first target value. The numerical analysis based on the change in target acceleration in each direction yields the change in target peak acceleration, including: If the number of consecutively detected tapping signals within a preset period is greater than a preset threshold, the difference between the first target value and the second target value in each direction is calculated to obtain the peak acceleration change in each direction. The target peak acceleration change is obtained by comparing the magnitudes of the peak acceleration changes in each direction.

3. The equipment door control method according to claim 2, characterized in that, Each direction includes the preset direction and the interference direction. The step of comparing the magnitudes of the peak acceleration changes in each direction to obtain the target peak acceleration change includes: The change in peak acceleration corresponding to the direction of interference is amplified by a preset factor to obtain the change in peak acceleration of interference. The magnitude of the change in the interference peak acceleration is compared with the magnitude of the change in the peak acceleration corresponding to the preset direction, and the target peak acceleration change is determined based on the comparison result.

4. The equipment door control method according to claim 2, characterized in that, After acquiring the initial acceleration changes and current acceleration changes in each direction, the equipment door control method further includes: The current change in acceleration in each direction is compared with a preset threshold to obtain the comparison results for each direction. Obtain the new acceleration changes in each direction and use the new acceleration changes in each direction as the current acceleration changes in each direction. Repeat the steps of comparing the current acceleration change in each direction with the preset threshold until the new acceleration change in each direction is used as the current acceleration change in each direction, until a preset period has elapsed; Whether to perform a zeroing operation is determined based on the comparison results of several directions; the comparison results of several directions are obtained by accumulating the comparison results of each direction within the preset period.

5. The equipment door control method according to claim 4, characterized in that, The equipment door control method further includes: If the comparison results in each direction indicate that the change in current acceleration in each direction is less than the preset threshold, the change in current acceleration in each direction will be reset to zero.

6. The equipment door control method according to claim 5, characterized in that, The equipment door control method further includes: If the comparison results in each direction indicate that the change in current acceleration in each direction is greater than or equal to the preset threshold, numerical analysis is performed based on the change in current acceleration in each direction to obtain the change in target peak acceleration.

7. The equipment door control method according to claim 2, characterized in that, The step of matching the current striking direction with a preset direction and controlling the device door based on the matching result includes: The current tapping direction is matched with the preset direction, and the number of matches is recorded based on the matching results; If the number of matching attempts equals a preset number, the device door is controlled to open. The number of matching times refers to the number of matching results indicating that the current tapping direction matches the preset direction within the preset period.

8. The equipment door control method according to claim 7, characterized in that, The equipment door control method further includes: Within the preset period, if the current striking direction does not match the preset direction, or if the number of matching is less than or greater than the preset number, the number of matching, the change in target acceleration in each direction, and the change in peak acceleration in each direction are reset to zero.

9. The equipment door control method according to claim 3, characterized in that, The interference direction includes a first interference direction and a second interference direction. Before amplifying the peak acceleration change corresponding to the interference direction by a preset factor, the device door control method further includes: The peak acceleration change corresponding to the first interference direction and the peak acceleration change corresponding to the second interference direction are compared. Based on the comparison result, the peak acceleration change that is greater than the preset acceleration change threshold is taken as the peak acceleration change corresponding to the interference direction.

10. A device for controlling the door of an equipment, characterized in that, The equipment door control device includes: The acquisition module is used to acquire the initial acceleration change in each direction and the current acceleration change in each direction when the current tap occurs; the current acceleration change in each direction is the difference between the historical acceleration value generated by the previous tap and the current acceleration value generated by the current tap in each direction, and each direction includes the current tapping direction; The update module is used to compare the magnitude of the initial acceleration change in each direction with the magnitude of the current acceleration change in each direction, update the initial acceleration change in each direction based on the magnitude comparison results, and obtain the target acceleration change in each direction. The direction analysis module is used to perform numerical analysis based on the target acceleration change in each direction, obtain the target peak acceleration change, and determine the direction corresponding to the target peak acceleration change as the current striking direction. The door control module is used to match the current knocking direction with a preset direction and control the door of the device according to the matching result; the preset direction is the direction that can trigger the door opening operation.