Key control method and device, electronic equipment, storage medium and program product

CN122553897APending Publication Date: 2026-08-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-13
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0004]基于此,有必要针对上述因无法区分操作主体身份而导致的误触发的技术问题,提供一种按键控制方法、装置、电子设备、计算机可读存储介质和计算机程序产品

Benefits of technology

[0038] Compared to traditional home appliance buttons that rely solely on physical contact and capacitance changes for triggering, and traditional child lock functions that require manual activation and full-area blocking and cannot intelligently distinguish the triggering entity, the button control method provided in this embodiment achieves intelligent identification of the triggering entity by collecting multi-dimensional pressure characteristics and spatial dispersion analysis through a pressure sensor array. This eliminates the need for users to manually activate the child lock function, automatically identifying and blocking various unintended triggering behaviors such as accidental button touches at the edge, children pressing buttons while playing, and pets accidentally touching buttons. This fundamentally prevents accidental appliance startup and malfunctions, while accurately preserving effective pressing operations in the core adult area, balancing device safety and user convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122553897A_ABST
    Figure CN122553897A_ABST
Patent Text Reader

Abstract

This application relates to a button control method, device, electronic device, storage medium, and program product. Compared to traditional home appliance buttons that rely solely on physical contact and capacitance changes for triggering, and the shortcomings of traditional child lock functions that require manual activation and full-area blocking and cannot intelligently distinguish the triggering entity, the button control method provided in this embodiment achieves intelligent identification of the triggering entity by collecting multi-dimensional pressure characteristics and spatial dispersion analysis through a pressure sensor array. It eliminates the need for users to manually activate the child lock function, automatically identifying and blocking various unintended accidental triggering behaviors such as accidental button edge touches, children pressing buttons while playing, and pets accidentally touching buttons. This fundamentally prevents home appliances from malfunctioning due to accidental activation, while accurately retaining effective pressing operations in the core adult area, balancing device safety and user convenience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of key trigger control technology, and in particular to a key control method, device, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] Currently, most home appliances use touch-sensitive or capacitive buttons as their human-computer interaction interface, allowing users to select functions and set parameters by pressing or touching the buttons. The triggering mechanism of these buttons relies solely on physical contact or capacitive changes, making it impossible to distinguish the specific identity of the triggering object, such as a pet, child, or adult. In real-world usage scenarios, incidents such as pets accidentally touching buttons or children misoperating them while playing frequently occur, causing appliances to execute unexpected operating commands. For example, a microwave oven may start unexpectedly, an oven may overheat abnormally, or a washing machine may change its program mid-cycle, potentially leading to equipment damage, energy waste, or even personal injury.

[0003] With the development of technology, although "child lock" functions have been added to home appliances, this function usually requires users to manually press a button to activate it, and once activated, it blocks all operations, making it difficult to fundamentally prevent abnormal operation of home appliances due to accidental triggering. Summary of the Invention

[0004] Therefore, it is necessary to provide a button control method, device, electronic device, computer-readable storage medium, and computer program product to address the aforementioned technical problem of false triggering caused by the inability to distinguish the identity of the operator.

[0005] In a first aspect, this application provides a button control method, the method comprising:

[0006] Upon receiving a trigger signal from the target button, the pressure sensing value of the pressure sensing array is obtained. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors.

[0007] Based on the pressure sensing values, a central pressure sensor is determined from among the multiple pressure sensors.

[0008] When the central pressure sensor is located within the key range of the target key, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values.

[0009] When the spatial dispersion index meets the preset threshold range, the operation corresponding to the target key is responded to.

[0010] In one embodiment, the step of analyzing the spatial dispersion index by considering the distances from the remaining pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values ​​includes:

[0011] The pressure sensing values ​​of the remaining pressure sensors are relative to the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors.

[0012] The relative center distance of the remaining pressure sensors is obtained by calculating the distance between the coordinate positions of the remaining pressure sensors and the center coordinate position of the central pressure sensor.

[0013] Based on the relative pressure sensing values ​​and relative center distances of the other pressure sensors, the spatial dispersion index is obtained by analyzing the degree of pressure distribution dispersion.

[0014] In one embodiment, the analysis of pressure distribution dispersion based on the relative pressure sensing values ​​and relative center distances of the remaining pressure sensors to obtain a spatial dispersion index includes:

[0015] The relative pressure sensing values ​​of the remaining pressure sensors are multiplied by the relative center distance to obtain the dispersion contribution of the remaining pressure sensors.

[0016] The spatial dispersion index is obtained by weighting the contribution of the dispersion of the remaining pressure sensors based on the number of the remaining pressure sensors.

[0017] In one embodiment, the step of relativizing the pressure sensing values ​​of the remaining pressure sensors based on the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors includes:

[0018] The ratio of the pressure sensing values ​​of the other pressure sensors to the pressure sensing value of the central pressure sensor is used as the relative pressure sensing value of the other pressure sensors.

[0019] In one embodiment, the preset threshold range includes a lower limit for the discrete index and an upper limit for the discrete index;

[0020] When the spatial dispersion index meets a preset threshold range, controlling the execution of the operation corresponding to the target key includes:

[0021] When the spatial dispersion index is between the lower limit and the upper limit of the dispersion index, the operation corresponding to the target key is executed.

[0022] In one embodiment, determining the center pressure sensor from among the plurality of pressure sensors based on the pressure sensing values ​​includes:

[0023] From among the multiple pressure sensors, the pressure sensor with the largest pressure sensing value is determined as the central pressure sensor.

[0024] In one embodiment, the area of ​​the target button is set to be smaller than the projection area of ​​the target button on the pressure sensing array;

[0025] The method further includes:

[0026] When the center coordinate position of the central pressure sensor is within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values.

[0027] In one embodiment, the method further includes:

[0028] If the center coordinate position of the central pressure sensor is outside the key range of the target key, or if the spatial dispersion index does not meet the preset threshold range, the operation corresponding to the target key will not be responded to.

[0029] Secondly, this application also provides a button control device, the device comprising:

[0030] The pressure sensing value acquisition module is used to acquire the pressure sensing value of the pressure sensing array when a trigger signal of the target button is received. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors.

[0031] A center pressure sensor determination module is used to determine the center pressure sensor from among the plurality of pressure sensors based on the pressure sensing values;

[0032] The spatial dispersion index acquisition module is used to analyze the degree of pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values ​​when the central pressure sensor is located within the key range of the target key, and to obtain the spatial dispersion index.

[0033] An operation response module is used to respond to the operation corresponding to the target key when the spatial dispersion index meets a preset threshold range.

[0034] Thirdly, this application also provides an electronic device, including at least one button, with a pressure sensing array arranged below the button, and the arrangement range of the pressure sensing array being larger than the projection range of the button on the pressure sensing array, the pressure sensing array including multiple pressure sensors.

[0035] It also includes a controller, which is electrically connected to the button and each of the pressure sensors, and the controller is used to implement the button control according to the steps of the method described above.

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

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

[0038] Compared to traditional home appliance buttons that rely solely on physical contact and capacitance changes for triggering, and traditional child lock functions that require manual activation and full-area blocking and cannot intelligently distinguish the triggering entity, the button control method provided in this embodiment achieves intelligent identification of the triggering entity by collecting multi-dimensional pressure characteristics and spatial dispersion analysis through a pressure sensor array. This eliminates the need for users to manually activate the child lock function, automatically identifying and blocking various unintended triggering behaviors such as accidental button touches at the edge, children pressing buttons while playing, and pets accidentally touching buttons. This fundamentally prevents accidental appliance startup and malfunctions, while accurately preserving effective pressing operations in the core adult area, balancing device safety and user convenience. Attached Figure Description

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

[0040] Figure 1 This is a schematic diagram showing the distribution of buttons and pressure sensor array in one embodiment;

[0041] Figure 2 This is a schematic block diagram of the electronic device in one embodiment;

[0042] Figure 3 This is a flowchart illustrating a button control method in one embodiment;

[0043] Figure 4 This is a flowchart illustrating the steps for obtaining the spatial discreteness index in one embodiment;

[0044] Figure 5 This is a flowchart illustrating the step of obtaining the spatial discreteness index in another embodiment;

[0045] Figure 6 This is a structural block diagram of the button control device in one embodiment;

[0046] Figure 7 This is a flowchart illustrating the button control method in another embodiment;

[0047] Figure 8 This is a diagram of the internal structure of an electronic device in one embodiment;

[0048] Figure 9 This is a diagram of the internal structure of an electronic device in another embodiment. Detailed Implementation

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

[0050] As described in the background section, most household appliances currently use touch-sensitive or capacitive buttons as their human-computer interaction interface, allowing users to select functions and set parameters by pressing or touching the buttons. The triggering mechanism of these buttons relies solely on physical contact or capacitive changes, failing to distinguish the specific identity of the triggering object, such as a pet, child, or adult. In real-world usage scenarios, incidents such as pets accidentally touching buttons or children misoperating them while playing frequently occur, causing appliances to execute unexpected operating commands. Examples include microwave ovens starting unexpectedly, ovens overheating abnormally, or washing machines changing programs mid-cycle. This can lead to equipment damage, energy waste, and even personal injury, posing safety hazards.

[0051] With the development of technology, although "child lock" functions have been added to home appliances, this function usually requires users to manually press a button to activate it, and once activated, it blocks all operations, making it difficult to fundamentally prevent abnormal operation of home appliances due to accidental triggering.

[0052] Based on this, this application achieves intelligent identification of the triggering entity by collecting multi-dimensional pressure characteristics and spatial dispersion analysis through a pressure sensor array. Without requiring manual activation of the child lock function, it can automatically identify and block various unintended triggering behaviors such as accidental button touches, children pressing buttons while playing, and pets accidentally touching buttons, fundamentally preventing appliances from malfunctioning due to accidental start-up. Simultaneously, it accurately retains effective pressing operations in the core areas for adults, balancing device safety and user convenience.

[0053] The button control method provided in this application embodiment can be applied to, for example... Figure 1 and Figure 2 The illustrated electronic device includes at least one button 110. A pressure sensor array 120 is disposed below the button 110, and the distribution area of ​​the pressure sensor array 120 is larger than the projection area of ​​the button 110 onto the pressure sensor array. The pressure sensor array 120 includes multiple pressure sensors 121. Furthermore, the electronic device includes a controller 130, which is electrically connected to the button 110 and each pressure sensor 121. A data storage system can store the data that the controller 130 needs to process. The data storage system can be integrated into the controller 130 or placed in the cloud or on another network server.

[0054] The electronic device can be any type of household appliance or electronic product. The button 110 is a physical operating component on the electronic device used for user interaction, and is usually a pressable structure that generates a trigger signal when pressed. In this embodiment, the button can be any one of the following: a general-purpose tactile button, a capacitive sensing button, or a membrane button. Its shape can be round, rectangular, or any other arbitrary shape to adapt to the assembly requirements of the control panels of various household appliances such as microwave ovens, ovens, washing machines, and rice cookers.

[0055] In one example, the number of buttons 110 can be set to one or more according to the functional requirements of the electronic device. Each button 110 independently corresponds to one or more control functions of the electronic device, such as start, pause, parameter adjustment, mode switching, etc.

[0056] The pressure sensor array 120 is a pressure sensing component located below the button 110. It is a sensor group consisting of multiple independent pressure sensors 121 arranged in a certain geometric pattern (such as rectangular grid, ring, honeycomb, etc.). Each pressure sensor can independently detect the pressure at its location and output it as a digital or analog signal.

[0057] It is understandable that the overall coverage area of ​​the pressure sensor array 120 is larger than the vertical projection area of ​​the corresponding button 110 on the plane of the pressure sensor array 120. In other words, the array size covers at least a certain area around the button, so that the pressure sensor is not only located below the button, but also extends beyond the edge of the button. With this design, when the operating object (such as a finger, pet paw, foreign object, etc.) presses the button, the pressure distribution is not limited to the area directly below the button, but also spreads to the surrounding area. This ensures that the entire trigger area of ​​the button 110 is within the sensing coverage of the pressure sensor array 120, while reserving a surrounding pressure sensing area to completely collect the full-area pressure distribution data when the button 110 is triggered.

[0058] For example, the pressure sensor 121 can be a high-precision miniature pressure sensing element, such as a thin-film piezoresistive pressure sensor, a capacitive pressure sensor, a resistive pressure sensor, a piezoelectric pressure sensor, or a microelectromechanical system (MEMS) pressure sensor. It has the ability to acquire pressure values ​​and pressure duration in real time, converting physical pressure signals into recognizable electrical signals and transmitting them synchronously to the controller 130. Multiple pressure sensors 121 arranged in an array can form a planar pressure sensing area, unlike single-point pressure detection, enabling the acquisition of complete pressure distribution characteristic data.

[0059] Specifically, when the controller 130 receives a trigger signal from the target button, it acquires the pressure sensing value of the pressure sensing array 120. The layout range of the pressure sensing array 120 is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors. Based on the pressure sensing value, a central pressure sensor is determined from the multiple pressure sensors 121. If the central pressure sensor is located within the button range of the target button, the controller analyzes the pressure distribution dispersion based on the distance from each of the other pressure sensors 121 in the pressure sensing array 120 to the central pressure sensor and the pressure sensing value, and obtains a spatial dispersion index. If the spatial dispersion index meets a preset threshold range, the controller responds to the operation corresponding to the target button.

[0060] The controller 130 can be a control chip or control circuit board mounted on an electronic device, or it can be an external control system implemented based on wireless communication. The external control system can be implemented through devices such as terminals or servers. Terminals can be, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0061] In one exemplary embodiment, such as Figure 3 As shown, a button control method is provided, which is applied to... Figure 2 Taking controller 130 as an example, the explanation includes the following steps S202 to S208. Wherein:

[0062] Step S202: Upon receiving a trigger signal from the target button, obtain the pressure sensing value of the pressure sensing array. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors.

[0063] Specifically, the controller can monitor the operating status of each button on the electronic device in real time. When any target button is touched or pressed and generates a valid trigger signal, the controller immediately triggers the pressure data acquisition process. The target button is any button that currently generates the trigger signal.

[0064] In one example, the trigger signal could be an electrical signal generated when a key is pressed (such as a level transition or interrupt request), or a signal generated when a capacitive key detects a touch.

[0065] It is understandable that the overall deployment area of ​​the pressure sensor array is larger than the vertical projection area of ​​the target button on the array plane. This allows the pressure sensor array to cover not only the area directly below the button but also the surrounding area, enabling the collection of pressure data across the entire area and providing a data foundation for subsequent spatial distribution analysis. The pressure sensor array consists of multiple pressure sensors arranged in an array, with each sensor independently collecting pressure values.

[0066] Furthermore, after receiving the trigger signal from the target button, the controller synchronously sends data read commands to all pressure sensors in the pressure sensor array to obtain the pressure sensor values ​​synchronously sampled by all pressure sensors. In one example, the pressure sensor values ​​can be obtained by reading the voltage or resistance change value of each pressure sensor through an analog-to-digital converter (ADC) interface and converting it into the corresponding pressure value (the unit can be Newtons or grams). The acquisition method can be to scan (polulate) all pressure sensors round by round, or to directly read the pre-stored most recently sampled data (if an interrupt-triggered sampling mode is used).

[0067] In one example, the controller immediately initiates a high-speed ADC sampling within the button-triggered interrupt service routine, completing the readings of all pressure sensors (e.g., a 64x64 array) within 1 millisecond and storing them in a memory array. Furthermore, to reduce noise interference, the collected pressure sensor values ​​can be filtered, for example using low-pass filtering, median filtering, or Kalman filtering, to obtain stable pressure sensor values.

[0068] Correspondingly, after obtaining the pressure sensing values ​​from the pressure sensor array, the controller can also generate a pressure dataset containing the coordinate positions of all pressure sensors and their corresponding pressure sensing values, and cache it. Specifically, the coordinate positions of each pressure sensor can be determined by constructing a corresponding coordinate system within the controller after the pressure sensor array is deployed, thus assigning and labeling the corresponding coordinate position to each pressure sensor.

[0069] In one example, the coordinate position of each pressure sensor in a row-and-column array can be represented as (Xn, Yn). Here, Xn is the row number of the nth pressure sensor in the pressure sensor array, and Yn represents the column number of the nth pressure sensor in the pressure sensor array.

[0070] Step S204: Based on the pressure sensing values, determine the central pressure sensor from among multiple pressure sensors.

[0071] It is understandable that effective manual button presses involve concentrated force applied to the fingertip, with the pressure peak concentrated in a single sensor or a very small area. In contrast, touches by pets or accidental presses by children often involve scattered force over a large area or uniform force applied at multiple points, without a clear center of pressure peak. Therefore, by identifying the pressure sensor that represents the center of pressure distribution, the trigger force characteristics can be preliminarily distinguished.

[0072] Specifically, the center pressure sensor is the sensor that best represents the center of the current pressing pressure distribution.

[0073] There is more than one way to determine the center pressure sensor. One approach is to select the pressure sensor with the highest pressure sensing value (i.e., the peak sensor) as the center pressure sensor. Another approach is to calculate the pressure centroid by measuring the pressure sensing values, and then select the sensor closest to or contributing the most to the pressure centroid as the center pressure sensor. Yet another approach can preset a minimum effective pressure threshold. If the pressure sensing values ​​of all sensors are below this threshold, a center pressure sensor cannot be selected, and the contact is considered invalid and does not proceed to the next analysis step.

[0074] In an exemplary embodiment, step S204 includes: determining the pressure sensor with the largest pressure sensing value from a plurality of pressure sensors as the center pressure sensor.

[0075] Specifically, the controller iterates through all the pressure sensor values ​​collected this time, compares and filters out the peak values, and marks the pressure sensor with the largest pressure sensor value as the center pressure sensor. At the same time, it records the coordinate position of the center pressure sensor, which is used to determine whether the pressure distribution is concentrated within the button area and to calculate the spatial dispersion index of the pressure distribution.

[0076] For example, if there are multiple pressure sensors with the same and largest pressure sensing values, the pressure sensor whose coordinate position is closest to the geometric center of the target button can be selected as the central pressure sensor, or a pressure sensor can be randomly selected as the central pressure sensor.

[0077] In an exemplary embodiment, step S204 includes: calculating the coordinate position of the pressure centroid based on the pressure sensor values; calculating the centroid distance between the coordinate position of each pressure sensor and the coordinate position of the pressure centroid; and then selecting the pressure sensor with the smallest centroid distance as the central pressure sensor.

[0078] Specifically, the coordinate position of the pressure centroid can be calculated based on the following formula:

[0079]

[0080] Where, p i x i y i Let x and y represent the pressure readings and coordinates of the i-th pressure sensor, respectively. Then, calculate the coordinates (x, y) of each pressure sensor. i y i ) and the position of the centroid (x) c y cThe center-of-gravity distance is calculated, and the sensor with the smallest center-of-gravity distance is selected as the central pressure sensor. It can be understood that if multiple pressure sensors with the same center-of-gravity distance exist, the pressure sensor whose coordinate position is closest to the geometric center of the target button can be selected as the central pressure sensor, or a pressure sensor can be randomly selected as the central pressure sensor.

[0081] Step S206: When the central pressure sensor is located within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensing values.

[0082] Specifically, the controller can pre-store the button range of each button, that is, the coordinate position information of each button and the pressure sensor. The button range can be understood as the area where the button is effectively triggered. The button range of the target button can directly correspond to the geometric area of ​​the button shape, and be set as the projection area of ​​the target button on the pressure sensor array. For example, if the button is circular, the button range is the area inside the circle with the geometric center of the button as the center and the radius of the button as the radius. The controller can pre-store the button range coordinate information corresponding to each button.

[0083] In one exemplary embodiment, the area of ​​the target button is set to be smaller than the projection area of ​​the target button on the pressure sensing array.

[0084] Specifically, the projection range of the target button on the pressure sensor array can be understood as the entire coverage area of ​​the target button's geometry (such as a circle or rectangle) on the pressure sensor array plane, usually consistent with the button's size. The button's actual range refers to the area used to determine whether the central pressure sensor is located within the button's effective area. This actual area can be a sub-region within the projection range of the target button on the pressure sensor array. For example, taking a button as a circle with a diameter of 12mm, the area within 8mm of the button's geometric center can be defined as the target button's actual range.

[0085] This design, by reducing the button's area, avoids misidentification as a valid trigger when the press position is slightly off-center from the button's geometric center (but still within the button's physical boundaries). For example, adult fingers typically press near the button's geometric center, while children or pets might press on the button's edge. This causes the center pressure sensor to fall within the projection area, but the pressure distribution pattern differs from that of a normal finger. By reducing the effective judgment area, the requirement for force concentration can be increased, further eliminating misjudgments caused by edge pressing or large-area pressing.

[0086] Furthermore, since the target button's location range represents the coordinate position information corresponding to the pressure sensor, the controller can determine whether the central pressure sensor is within the target button's location range and whether further discrete analysis and button trigger determination are needed by comparing the center coordinate position of the central pressure sensor with the target button's location range.

[0087] In one exemplary embodiment, step S206 includes: when the center coordinate position of the central pressure sensor is within the key range of the target button, performing a pressure distribution dispersion analysis based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensing values ​​to obtain a spatial dispersion index. In another example, when the center coordinate position of the central pressure sensor is outside the key range of the target button, the operation corresponding to the target button is not responded to.

[0088] It is understandable that if the center coordinates of the central pressure sensor are located outside the target button's area, it indicates that the center of force of the press is significantly off-center from the button. This can be considered an abnormal trigger, such as accidentally touching the edge or outside of the button. Correspondingly, in this case, it can be determined that no further discrete analysis or button trigger determination is needed, and the operation corresponding to the target button can be directly ignored to save computational resources.

[0089] If the center coordinates of the central pressure sensor are located within the range of the target button, the spatial dispersion index (SDI) is obtained by further analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensing values.

[0090] The Spatial Dispersion Index (SDI) is a quantitative indicator used to measure the degree of concentration or dispersion of pressure sensing values ​​from all pressure sensors in a pressure sensor array in terms of spatial distribution. The SDI is typically calculated based on the distance of each pressure sensor from the central pressure sensor and its corresponding pressure sensing value. A higher SDI indicates a more dispersed pressure distribution, similar to pressure from a large object, which is characteristic of accidental touches by pets or children. Conversely, a lower SDI indicates a more concentrated pressure distribution, similar to pressure from a small object like a fingertip, which is characteristic of human fingertip pressure.

[0091] Furthermore, to analyze the spatial dispersion of pressure distribution and obtain the Spatial Dispersion Index (SDI), one can retrieve the pressure sensor values ​​of all pressure sensors in the pressure sensor array except for the central pressure sensor. Then, the relative center distance between each of the remaining pressure sensors and the central pressure sensor, as well as the real-time pressure sensor value of each sensor, are obtained. Using the relative center distance as the weight and the pressure sensor value as the variable, the pressure deviation of all remaining pressure sensors is statistically analyzed through variance-weighted calculation, mean square error calculation, or spatial distribution standard deviation calculation. Finally, the spatial dispersion index corresponding to this button triggering behavior is quantified, comprehensively representing the spatial distribution characteristics of the pressure.

[0092] Step S208: If the spatial dispersion index meets the preset threshold range, respond to the operation corresponding to the target button.

[0093] The preset threshold range is a numerical interval corresponding to the Spatial Discreteness Index (SDI). It is used to determine whether the current pressure distribution belongs to normal human operation, such as determining whether it is a normal pressing operation of an adult finger or a false trigger caused by a pet paw, a child's palm, or a dropped object. The preset threshold range can be calibrated through a large amount of actual measurement data before the electronic device leaves the factory, or it can be dynamically adjusted according to the usage scenarios of different types of electronic devices (such as microwave ovens, ovens, and washing machines).

[0094] Specifically, if the calculated Spatial Discrete Index (SDI) falls within the preset threshold range, the button triggering behavior is determined to be a precise and effective manual button operation by the user. The controller responds normally to the device operation command corresponding to the target button and executes the corresponding functions such as device startup, parameter adjustment, and mode switching.

[0095] In one example, if the Spatial Discrete Index (SDI) does not meet a preset threshold range, the corresponding operation of the target button will not be responded to. Specifically, if the calculated SDI does not meet the preset threshold range, the button triggering behavior is determined to be an abnormal accidental triggering behavior such as that of a child or pet. The controller directly blocks the trigger signal of the target button and does not respond to any button operation, and the electronic device maintains its original operating state.

[0096] Compared to traditional home appliance buttons that rely solely on physical contact and capacitance changes for triggering, and traditional child lock functions that require manual activation and full-area blocking and lack the ability to intelligently distinguish the triggering entity, the button control method described in this embodiment achieves intelligent identification of the triggering entity by collecting multi-dimensional pressure characteristics and spatial dispersion analysis using a pressure sensor array. This eliminates the need for users to manually activate the child lock function, automatically identifying and blocking various unintended triggering behaviors such as accidental button touches at the edge, children pressing buttons while playing, and pets accidentally touching buttons. This fundamentally prevents accidental appliance startup and malfunctions, while accurately preserving effective pressing operations in the core adult area, balancing device safety and user convenience.

[0097] In an exemplary embodiment, prior to step S202, the button control method further includes: after receiving a button blocking activation signal, controlling the electronic device to enter a button blocking state. Further, step S202 includes: while in the button blocking state and receiving a trigger signal from a target button, acquiring the pressure sensing value of the pressure sensing array.

[0098] Specifically, a button-blocking activation signal refers to a command signal used to trigger an electronic device to enter a special operating mode. This button-blocking activation signal can be triggered actively by the user, for example, by long-pressing a specific key combination, remote control via a mobile app, or via voice command. It can also be triggered automatically by the electronic device, for example, when a child is detected approaching, the device is in standby mode, or a specific safety scenario is encountered.

[0099] It is understood that the button-disabled state is a working mode of electronic devices. In this mode, the electronic device does not completely prohibit all button operations like a traditional "child lock," but instead uses the intelligent recognition mechanism based on the spatial dispersion index described in this application. The button operation is only responded to when the pressure distribution corresponding to the trigger signal matches the characteristics of a human finger, i.e., the spatial dispersion index falls within a preset threshold range; otherwise, even if a trigger signal is received, the corresponding button operation function is not executed.

[0100] Correspondingly, the controller will only acquire the pressure sensing values ​​of the pressure sensor array and perform subsequent Spatial Discrete Index (SDI) analysis when the electronic device is currently in a button-disabled state and receives a trigger signal from the target button. If the electronic device is not currently in a button-disabled state, it can directly execute the corresponding operation of the target button upon receiving a trigger signal, without needing to acquire pressure sensing values ​​or perform SDI analysis, thus saving computational resources and maintaining a normal button usage experience.

[0101] In one example, after receiving a key blocking activation signal, the controller can set a status register to represent the key blocking state and feed this status back to the user via a display screen or indicator light (such as an LED flashing mode). Correspondingly, after receiving a trigger signal from the target key, the controller first reads the status register. If the status register indicates a key blocking state, steps S202 to S208 are executed. If the status register indicates a key blocking state, the corresponding operation for the target key is executed according to the trigger signal.

[0102] Furthermore, the key blocking state can continue until a key blocking cancellation signal is received, such as by pressing and holding the same key combination again. At this time, the controller will clear the status register representing the key blocking state and restore the normal direct response mode.

[0103] In one exemplary embodiment, such as Figure 4 As shown, step S206 involves analyzing the spatial dispersion index of pressure distribution based on the distances from the remaining pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values. This includes steps S302 to S306. Wherein:

[0104] Step S302: The pressure sensing values ​​of the remaining pressure sensors are relative to the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors.

[0105] Specifically, relativization refers to normalizing or scaling the pressure sensing values ​​of each pressure sensor to eliminate the influence of the absolute magnitude of different pressing forces on the discreteness analysis, thereby improving the algorithm's versatility and stability.

[0106] It is understandable that, since the pressure applied by different users or different triggering objects can vary greatly, directly using the raw pressure sensor values ​​would lead to inconsistent spatial dispersion indices calculated for the same distribution under different pressure levels. By scaling the pressure sensor values ​​relative to the central pressure sensor, the spatial dispersion index can be made to reflect only the shape characteristics of the pressure distribution, rather than the magnitude of the pressure.

[0107] Correspondingly, the relative pressure sensing values ​​of the other pressure sensors represent the pressure ratio of each of the other pressure sensors relative to the central pressure sensor. It should be noted that the relative pressure sensing value is a dimensionless value. Furthermore, since the central pressure sensor has the highest pressure sensing value, the relative pressure sensing value is typically between 0 and 1.

[0108] In an exemplary embodiment, step S302 includes: converting the pressure sensing values ​​p of the remaining pressure sensors... i The pressure sensing value p of the center pressure sensorcenter The ratio of this ratio is used as the relative pressure sensing value g of the remaining pressure sensors. i .

[0109] Specifically, the relative pressure sensing values ​​g of the other pressure sensors i The calculation method can be expressed by the following formula:

[0110]

[0111] Where i represents all pressure sensors except the central pressure sensor, and the pressure sensing values ​​p of each of the other pressure sensors can be individually converted. i The pressure sensing value p of the center pressure sensor center By performing ratio calculations, the relative pressure sensing values ​​g of the remaining pressure sensors are obtained. i .

[0112] Step S304: Calculate the distance between the center pressure sensor and the coordinates of the other pressure sensors to obtain the relative center distance between the other pressure sensors.

[0113] Specifically, the relative center distance refers to the spatial offset distance between each pressure sensor other than the central pressure sensor and the central pressure sensor, and is used to characterize the degree to which the other pressure sensors are spatially far away from the central pressure sensor.

[0114] For example, there is no single way to calculate distance; it can be done using Euclidean distance representation or Manhattan distance representation, and the method can be designed according to actual needs.

[0115] In this embodiment, the relative center distance is calculated using Euclidean distance to reflect the actual spatial distribution. The center coordinates of the central pressure sensor are assumed to be (x...). q y q The coordinate position of the i-th pressure sensor is (x... i y i If the relative center distance L is... i It can be calculated as:

[0116]

[0117] Step S306: Based on the relative pressure sensing values ​​and relative center distances of the other pressure sensors, analyze the degree of pressure distribution dispersion to obtain the spatial dispersion index.

[0118] Specifically, after obtaining the relative pressure sensing values ​​and relative center distances of the other pressure sensors, the spatial dispersion index can be calculated using the relative pressure sensing values ​​and relative center distances to quantify the degree of pressure diffusion in space.

[0119] The Spatial Dispersion Index (SDI) is a quantitative indicator used to measure the degree of concentration or dispersion of pressure sensing values ​​from all pressure sensors in a pressure sensing array in terms of spatial distribution. A higher SDI indicates a more dispersed pressure distribution, such as pressure from a large object, consistent with accidental touches by pets or children; a lower SDI indicates a more concentrated pressure distribution, such as pressure from a small object like a fingertip, consistent with human fingertip pressure.

[0120] In one exemplary embodiment, such as Figure 5 As shown, step S306 includes steps S402 to S404. Wherein:

[0121] Step S402: Multiply the relative pressure sensing values ​​of the remaining pressure sensors with the relative center distance to obtain the dispersion contribution of the remaining pressure sensors.

[0122] Specifically, the dispersion contribution represents the contribution of each non-central pressure sensor to the dispersion of the overall pressure distribution. This dispersion contribution is calculated by considering both the relative magnitude of the pressure sensor's sensing value and its distance from the center. The greater the distance from the center and the larger the relative pressure sensing value, the greater the dispersion contribution, indicating that the pressure at that sensor contributes to a more dispersed pressure distribution.

[0123] For the i-th non-central pressure sensor, its dispersion contribution C i The calculation is as follows:

[0124]

[0125] Among them, g i L is the relative pressure sensing value obtained in step S302. i The relative center distance is obtained in step S304.

[0126] It should be noted that the central pressure sensor itself does not participate in this calculation because its relative distance from its own center is 0, and therefore its contribution to the dispersion is also 0, which does not affect the result.

[0127] Step S404: The spatial dispersion index is obtained by weighting the dispersion contribution of the remaining pressure sensors based on the number of the remaining pressure sensors.

[0128] Specifically, the final contribution C of the dispersion of all non-central pressure sensors can be determined. i Sum the results and then divide by the number of non-central sensors (since the central pressure sensor is not included in the calculation) to obtain an average contribution, which is used as the final spatial dispersion index (SDI).

[0129] Assuming the number of all other non-central pressure sensors is n, that is, the total number of pressure sensors in the pressure sensor array excluding the central sensor, typically N-1, where N is the total number of pressure sensors in the pressure sensor array, then the formula for calculating the Spatial Discrete Index (SDI) can be expressed as:

[0130]

[0131] It is understandable that the above-mentioned weighted averaging method can eliminate the influence of different numbers of pressure sensors, making the Spatial Discrete Index (SDI) comparable.

[0132] In one example, to facilitate the setting of a preset threshold range, the Spatial Discrete Index (SDI) can be further normalized to the 0-1 range. For example, this can be done by dividing by the theoretically maximum possible value (when the pressure sensing values ​​of all non-center pressure sensors equal the pressure sensing value of the center pressure sensor, and the relative center distance is the radius of the area where the button is located), or by linearly scaling using an empirical value. In this embodiment, the above average value is directly used as the Spatial Discrete Index (SDI), and the preset threshold range can be obtained from experimental calibration to obtain the corresponding numerical range.

[0133] For example, the spatial dispersion index (SDI) described above can also be characterized using a pressure-weighted average, for example:

[0134]

[0135] Or the relative center distance L i Replace with Similar to the concept of variance, this emphasizes the contribution of remote sensors, based on relative pressure sensing values ​​g. i Distance L from the relative center i Any variation thereof, used to calculate the spatial discrete index (SDI), is within the scope of protection of this application.

[0136] In one exemplary embodiment, the preset threshold range includes a lower limit for the index of dispersion and an upper limit for the index of dispersion.

[0137] Specifically, the lower limit of the spatial dispersion index, SDI1, represents the minimum spatial dispersion index allowed for a valid operation. When the spatial dispersion index is lower than this lower limit, the pressure distribution is considered too concentrated (e.g., pressed by a small rigid body such as a sharp hard object, pen tip, or fingernail), which does not conform to the pressing characteristics of a normal human finger and is judged as a false trigger.

[0138] The upper limit of the spatial dispersion index, SDI2, represents the maximum spatial dispersion index allowed for a valid operation. When the spatial dispersion index exceeds this upper limit, the pressure distribution is considered too dispersed (e.g., pressure from a large object, such as a palm, a pet paw, or a dropped object), which also does not conform to the pressing characteristics of a normal human finger and is judged as a false trigger.

[0139] Correspondingly, the preset threshold range is a closed interval [SDI1, SDI2]. The controller considers the current trigger to be a normal human (usually an adult finger) operation only when the calculated spatial dispersion index SDI falls within this interval.

[0140] For example, the lower limit of the dispersion index SDI1 and the upper limit of the dispersion index SDI2 can be obtained through experimental calibration. For instance, a large number of samples of adults pressing different buttons with their index fingers are collected, and their spatial dispersion index SDI is calculated according to steps S402 to S404. The mean plus or minus a certain standard deviation is taken as the interval. For example, in this embodiment, it can be set to [10, 50], that is, the lower limit of the dispersion index SDI1 is 10 and the upper limit of the dispersion index SDI2 is 50.

[0141] In an exemplary embodiment, step S208, which involves controlling the execution of the target key operation when the spatial dispersion index meets a preset threshold range, includes: controlling the execution of the target key operation when the spatial dispersion index SDI is between the lower limit SDI1 and the upper limit SDI2 of the dispersion index.

[0142] Specifically, after obtaining the spatial discrete index SDI, the controller performs logical judgments with the lower limit of the discrete index SDI1 and the upper limit of the discrete index SDI2 respectively.

[0143] When the spatial dispersion index SDI is between the lower limit of the dispersion index SDI1 and the upper limit of the dispersion index SDI2, corresponding to the pressing characteristics of a normal human finger, the controller responds to the operation corresponding to the target button and executes the preset function of the button (such as starting the appliance, switching programs, etc.).

[0144] When the Spatial Discrete Index (SDI) is below the lower limit of SDI1, it indicates that the pressure distribution is too concentrated, typically caused by pressure from rigid small-area objects (such as pen tips, fingernails, key tips, or sharp metal objects) or extremely small-area fingers (such as a young child's fingertips). Such triggering poses a high safety risk; for example, sharp objects may damage the button surface or cause unexpected functional activation.

[0145] When the Spatial Dispersion Index (SDI) exceeds the upper limit SDI², it indicates that the pressure distribution is too dispersed, typically caused by pressure from large objects (such as an entire palm, a pet paw, a child's forearm, or a dropped object). Such triggers are common due to accidental touches by children or pet activity and can also lead to unexpected commands. For example, when the controller determines the trigger is invalid, it can emit a specific tone distinct from normal button responses via a buzzer or flash a specific color on the display / LED indicator to alert the user that an abnormally sharp object has been detected.

[0146] If the Spatial Discrete Index (SDI) is lower than the lower limit of the Discrete Index (SDI1), the controller determines the trigger as an invalid operation and does not respond to the operation corresponding to the target button. For example, while the controller determines the trigger as invalid, it can emit a softer prompt tone different from a normal press via a buzzer, or display "Accidental touch protection triggered" on the screen to inform the user that the operation has not been responded to. If the button is in a disabled state, it can also display that it is currently in a disabled state.

[0147] With this design, although the controller does not execute the function command corresponding to the target button when the spatial dispersion index SDI is higher than the upper limit of the dispersion index SDI2, and when the spatial dispersion index SDI is lower than the lower limit of the dispersion index SDI1, the difference lies in that the auxiliary action can be differentiated according to the different trigger types, so as to provide more targeted prompts to the user or system.

[0148] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

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

[0150] In one exemplary embodiment, such as Figure 6 As shown, a button control device is provided, including: a pressure sensor value acquisition module 101, a center pressure sensor determination module 102, a spatial dispersion index acquisition module 103, and an operation response module 104, wherein:

[0151] The pressure sensing value acquisition module 101 is used to acquire the pressure sensing value of the pressure sensing array when a trigger signal of the target button is received. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors.

[0152] The center pressure sensor determination module 102 is used to determine the center pressure sensor from multiple pressure sensors based on the pressure sensing values.

[0153] The spatial dispersion index acquisition module 103 is used to analyze the degree of pressure distribution dispersion based on the distance from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values ​​when the central pressure sensor is located within the range of the target button, and to obtain the spatial dispersion index.

[0154] The operation response module 104 is used to respond to the operation corresponding to the target key when the spatial dispersion index meets the preset threshold range.

[0155] In an exemplary embodiment, the spatial dispersion index acquisition module 103 is further configured to: relativize the pressure sensing values ​​of the remaining pressure sensors based on the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors; calculate the distance between the coordinate positions of the remaining pressure sensors and the center coordinate position of the central pressure sensor to obtain the relative center distance of the remaining pressure sensors; and perform pressure distribution dispersion analysis based on the relative pressure sensing values ​​and relative center distance of the remaining pressure sensors to obtain the spatial dispersion index.

[0156] In an exemplary embodiment, the spatial dispersion index acquisition module 103 is further configured to multiply the relative pressure sensing values ​​of the remaining pressure sensors with the relative center distance to obtain the dispersion contribution of the remaining pressure sensors; and to perform a weighted average of the dispersion contribution of the remaining pressure sensors based on the number of sensors of the remaining pressure sensors to obtain the spatial dispersion index.

[0157] In an exemplary embodiment, the spatial dispersion index acquisition module 103 is further configured to use the ratio of the pressure sensing values ​​of the remaining pressure sensors to the pressure sensing value of the central pressure sensor as the relative pressure sensing value of the remaining pressure sensors.

[0158] In one exemplary embodiment, the preset threshold range includes a lower limit for the dispersion index and an upper limit for the dispersion index;

[0159] The operation response module 104 is also used to control the execution of the operation corresponding to the target key when the spatial dispersion index is between the lower limit and the upper limit of the dispersion index.

[0160] In an exemplary embodiment, the center pressure sensor determination module 102 is further configured to determine the pressure sensor with the largest pressure sensing value from among the plurality of pressure sensors as the center pressure sensor.

[0161] In one exemplary embodiment, the area of ​​the target button is set to be smaller than the projection area of ​​the target button on the pressure sensing array;

[0162] The spatial dispersion index acquisition module 103 is also used to analyze the degree of pressure distribution dispersion based on the distance from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values ​​when the center coordinate position of the central pressure sensor is within the range of the target button.

[0163] In an exemplary embodiment, the operation response module 104 is further configured to not respond to the operation corresponding to the target button when the center coordinate position of the center pressure sensor is outside the button range of the target button.

[0164] In an exemplary embodiment, the operation response module 104 is further configured to not respond to the operation corresponding to the target key when the spatial dispersion index does not meet the preset threshold range.

[0165] Each module in the aforementioned button control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.

[0166] In one exemplary embodiment, such as Figure 1 and Figure 2 As shown, an electronic device is provided, including at least one button 110. A pressure sensor array 120 is arranged below the button 110, and the arrangement range of the pressure sensor array 120 is larger than the projection range of the button 110 on the pressure sensor array. The pressure sensor array 120 includes a plurality of pressure sensors 121. In addition, the electronic device also includes a controller 130, which is electrically connected to the button 110 and each pressure sensor 121.

[0167] The electronic device can be any type of household appliance or electronic product. The button 110 is a physical operating component on the electronic device used for user interaction, and is usually a pressable structure that generates a trigger signal when pressed. In this embodiment, the button can be any one of the following: a general-purpose tactile button, a capacitive sensing button, or a membrane button. Its shape can be round, rectangular, or any other arbitrary shape to adapt to the assembly requirements of the control panels of various household appliances such as microwave ovens, ovens, washing machines, and rice cookers.

[0168] In one example, the number of buttons 110 can be set to one or more according to the functional requirements of the electronic device. Each button 110 independently corresponds to one or more control functions of the electronic device, such as start, pause, parameter adjustment, mode switching, etc.

[0169] The pressure sensor array 120 is a pressure sensing component located below the button 110. It is a sensor group consisting of multiple independent pressure sensors 121 arranged in a certain geometric pattern (such as rectangular grid, ring, honeycomb, etc.). Each pressure sensor can independently detect the pressure at its location and output it as a digital or analog signal.

[0170] It is understandable that the overall coverage area of ​​the pressure sensor array 120 is larger than the vertical projection area of ​​the corresponding button 110 on the plane of the pressure sensor array 120. In other words, the array size covers at least a certain area around the button, so that the pressure sensor is not only located below the button, but also extends beyond the edge of the button. With this design, when the operating object (such as a finger, pet paw, foreign object, etc.) presses the button, the pressure distribution is not limited to the area directly below the button, but also spreads to the surrounding area. This ensures that the entire trigger area of ​​the button 110 is within the sensing coverage of the pressure sensor array 120, while reserving a surrounding pressure sensing area to completely collect the full-area pressure distribution data when the button 110 is triggered.

[0171] For example, the pressure sensor 121 can be a high-precision miniature pressure sensing element, such as a thin-film piezoresistive pressure sensor, a capacitive pressure sensor, a resistive pressure sensor, a piezoelectric pressure sensor, or a microelectromechanical system (MEMS) pressure sensor. It has the ability to acquire pressure values ​​and pressure duration in real time, converting physical pressure signals into recognizable electrical signals and transmitting them synchronously to the controller 130. Multiple pressure sensors 121 arranged in an array can form a planar pressure sensing area, unlike single-point pressure detection, enabling the acquisition of complete pressure distribution characteristic data.

[0172] Specifically, when the controller 130 receives a trigger signal from the target button, it acquires the pressure sensing value of the pressure sensing array 120. The layout range of the pressure sensing array 120 is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors. Based on the pressure sensing value, a central pressure sensor is determined from the multiple pressure sensors 121. If the central pressure sensor is located within the button range of the target button, the controller analyzes the pressure distribution dispersion based on the distance from each of the other pressure sensors 121 in the pressure sensing array 120 to the central pressure sensor and the pressure sensing value, and obtains a spatial dispersion index. If the spatial dispersion index meets a preset threshold range, the controller responds to the operation corresponding to the target button; otherwise, it does not respond to the operation corresponding to the target button.

[0173] In this embodiment, compared to traditional home appliance buttons that rely solely on physical contact and capacitance changes for triggering, and the shortcomings of traditional child lock functions that require manual activation and full-area blocking and cannot intelligently distinguish the triggering entity, the button control method provided in this embodiment achieves intelligent identification of the triggering entity by collecting multi-dimensional pressure characteristics and spatial dispersion analysis through a pressure sensor array. Without requiring the user to manually activate the child lock function, it can automatically identify and block various unintended accidental triggering behaviors such as accidental button edge touches, children pressing while playing, and pets accidentally touching the button. This fundamentally prevents home appliances from being accidentally started and causing abnormal operating states, while accurately retaining effective pressing operations in the core areas for adults, balancing device safety and user convenience.

[0174] In a specific embodiment, such as Figure 7 As shown, a button control method is provided, which can be applied to, for example... Figure 1 and Figure 2 In the electronic device shown.

[0175] Specifically, after the electronic device is powered on, the system first determines whether the user has initiated the device and entered a button-disabled state. If so, the pressure sensor array is activated to collect pressure sensing values. Upon receiving a trigger signal from the target button, a button operation is detected, and the collected pressure sensor array values ​​are further acquired to determine whether the triggering entity is a normal triggering entity. If so, the button operation is responded to; otherwise, the button operation is not responded to. If it is determined that the user has not initiated the device and entered a button-disabled state, but a trigger signal from the target button is received, and a button operation is detected, the button operation is responded to directly.

[0176] In one exemplary embodiment, an electronic device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8As shown, this electronic device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs in the non-volatile storage media to run. The database stores data such as pressure sensor values, spatial dispersion index, and preset threshold ranges. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network. When the computer program is executed by the processor, it implements a button control method.

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

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

[0179] In one exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0180] Upon receiving a trigger signal from the target button, the pressure sensing value of the pressure sensing array is obtained. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors.

[0181] Based on pressure sensing values, the central pressure sensor is determined from multiple pressure sensors;

[0182] When the central pressure sensor is located within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values.

[0183] When the spatial dispersion index meets the preset threshold range, respond to the operation corresponding to the target key.

[0184] In one exemplary embodiment, the processor further performs the following steps when executing the computer program:

[0185] The pressure sensing values ​​of the remaining pressure sensors are relative to the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors.

[0186] The relative center distance of the remaining pressure sensors is obtained by calculating the distance between the coordinate positions of the other pressure sensors and the center coordinate position of the central pressure sensor.

[0187] Based on the relative pressure sensing values ​​and relative center distances of the other pressure sensors, the spatial dispersion index is obtained by analyzing the degree of pressure distribution dispersion.

[0188] In one exemplary embodiment, the processor further performs the following steps when executing the computer program:

[0189] The relative pressure sensing values ​​of the remaining pressure sensors are multiplied by the relative center distance to obtain the dispersion contribution of the remaining pressure sensors.

[0190] The spatial dispersion index is obtained by weighting the contribution of the dispersion of the remaining pressure sensors based on the number of the remaining pressure sensors.

[0191] In one exemplary embodiment, the processor further performs the following steps when executing the computer program:

[0192] The ratio of the pressure sensing values ​​of the remaining pressure sensors to the pressure sensing value of the central pressure sensor is used as the relative pressure sensing value of the remaining pressure sensors.

[0193] In one exemplary embodiment, the processor further performs the following steps when executing the computer program:

[0194] When the spatial dispersion index is between the lower limit and the upper limit of the dispersion index, control the execution of the operation corresponding to the target key.

[0195] In one exemplary embodiment, the processor further performs the following steps when executing the computer program:

[0196] Among multiple pressure sensors, the pressure sensor with the highest pressure reading is determined as the central pressure sensor.

[0197] In one exemplary embodiment, the processor further performs the following steps when executing the computer program:

[0198] When the center coordinate position of the central pressure sensor is within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distance from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensing values.

[0199] In one exemplary embodiment, the processor further performs the following steps when executing the computer program:

[0200] If the center coordinate position of the central pressure sensor is outside the range of the target button, or if the spatial dispersion index does not meet the preset threshold range, the operation corresponding to the target button will not be responded to.

[0201] In one exemplary embodiment, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0202] Upon receiving a trigger signal from the target button, the pressure sensing value of the pressure sensing array is obtained. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors.

[0203] Based on pressure sensing values, the central pressure sensor is determined from multiple pressure sensors;

[0204] When the central pressure sensor is located within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values.

[0205] When the spatial dispersion index meets the preset threshold range, respond to the operation corresponding to the target key.

[0206] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0207] The pressure sensing values ​​of the remaining pressure sensors are relative to the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors.

[0208] The relative center distance of the remaining pressure sensors is obtained by calculating the distance between the coordinate positions of the other pressure sensors and the center coordinate position of the central pressure sensor.

[0209] Based on the relative pressure sensing values ​​and relative center distances of the other pressure sensors, the spatial dispersion index is obtained by analyzing the degree of pressure distribution dispersion.

[0210] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0211] The ratio of the pressure sensing values ​​of the remaining pressure sensors to the pressure sensing value of the central pressure sensor is used as the relative pressure sensing value of the remaining pressure sensors.

[0212] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0213] When the spatial dispersion index is between the lower limit and the upper limit of the dispersion index, control the execution of the operation corresponding to the target key.

[0214] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0215] Among multiple pressure sensors, the pressure sensor with the highest pressure reading is determined as the central pressure sensor.

[0216] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0217] When the center coordinate position of the central pressure sensor is within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distance from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensing values.

[0218] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0219] If the center coordinate position of the central pressure sensor is outside the range of the target button, or if the spatial dispersion index does not meet the preset threshold range, the operation corresponding to the target button will not be responded to.

[0220] In one exemplary embodiment, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0221] Upon receiving a trigger signal from the target button, the pressure sensing value of the pressure sensing array is obtained. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors.

[0222] Based on pressure sensing values, the central pressure sensor is determined from multiple pressure sensors;

[0223] When the central pressure sensor is located within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values.

[0224] When the spatial dispersion index meets the preset threshold range, respond to the operation corresponding to the target key.

[0225] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0226] The pressure sensing values ​​of the remaining pressure sensors are relative to the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors.

[0227] The relative center distance of the remaining pressure sensors is obtained by calculating the distance between the coordinate positions of the other pressure sensors and the center coordinate position of the central pressure sensor.

[0228] Based on the relative pressure sensing values ​​and relative center distances of the other pressure sensors, the spatial dispersion index is obtained by analyzing the degree of pressure distribution dispersion.

[0229] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0230] The ratio of the pressure sensing values ​​of the remaining pressure sensors to the pressure sensing value of the central pressure sensor is used as the relative pressure sensing value of the remaining pressure sensors.

[0231] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0232] When the spatial dispersion index is between the lower limit and the upper limit of the dispersion index, control the execution of the operation corresponding to the target key.

[0233] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0234] Among multiple pressure sensors, the pressure sensor with the highest pressure reading is determined as the central pressure sensor.

[0235] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0236] When the center coordinate position of the central pressure sensor is within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distance from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensing values.

[0237] In one exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0238] If the center coordinate position of the central pressure sensor is outside the range of the target button, or if the spatial dispersion index does not meet the preset threshold range, the operation corresponding to the target button will not be responded to.

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

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

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

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

Claims

1. A button control method, characterized in that, The method includes: Upon receiving a trigger signal from the target button, the pressure sensing value of the pressure sensing array is obtained. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors. Based on the pressure sensing values, a central pressure sensor is determined from among the multiple pressure sensors. When the central pressure sensor is located within the key range of the target key, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values. When the spatial dispersion index meets the preset threshold range, the operation corresponding to the target key is responded to.

2. The button control method according to claim 1, characterized in that, The step of analyzing the spatial dispersion index by considering the distances from each of the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values ​​includes: The pressure sensing values ​​of the remaining pressure sensors are relative to the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors. The relative center distance of the remaining pressure sensors is obtained by calculating the distance between the coordinate positions of the remaining pressure sensors and the center coordinate position of the central pressure sensor. Based on the relative pressure sensing values ​​and relative center distances of the other pressure sensors, the spatial dispersion index is obtained by analyzing the degree of pressure distribution dispersion.

3. The button control method according to claim 2, characterized in that, The spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the relative pressure sensing values ​​and relative center distances of the remaining pressure sensors, including: The relative pressure sensing values ​​of the remaining pressure sensors are multiplied by the relative center distance to obtain the dispersion contribution of the remaining pressure sensors. The spatial dispersion index is obtained by weighting the contribution of the dispersion of the remaining pressure sensors based on the number of the remaining pressure sensors.

4. The button control method according to claim 2, characterized in that, The step of relativizing the pressure sensing values ​​of the remaining pressure sensors based on the pressure sensing value of the central pressure sensor to obtain the relative pressure sensing values ​​of the remaining pressure sensors includes: The ratio of the pressure sensing values ​​of the other pressure sensors to the pressure sensing value of the central pressure sensor is used as the relative pressure sensing value of the other pressure sensors.

5. The button control method according to any one of claims 1 to 4, characterized in that, The preset threshold range includes the lower limit of the discrete index and the upper limit of the discrete index; When the spatial dispersion index meets a preset threshold range, controlling the execution of the operation corresponding to the target key includes: When the spatial dispersion index is between the lower limit and the upper limit of the dispersion index, the operation corresponding to the target key is executed.

6. The button control method according to claim 1, characterized in that, The step of determining the center pressure sensor from among the multiple pressure sensors based on the pressure sensing values ​​includes: From among the multiple pressure sensors, the pressure sensor with the largest pressure sensing value is determined as the central pressure sensor.

7. The button control method according to claim 1, characterized in that, The target button's location range is set to be smaller than the target button's projection range on the pressure sensor array; The method further includes: When the center coordinate position of the central pressure sensor is within the range of the target button, the spatial dispersion index is obtained by analyzing the pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values.

8. The button control method according to claim 7, characterized in that, The method further includes: If the center coordinate position of the central pressure sensor is outside the key range of the target key, or if the spatial dispersion index does not meet the preset threshold range, the operation corresponding to the target key will not be responded to.

9. A button control device, characterized in that, The device includes: The pressure sensing value acquisition module is used to acquire the pressure sensing value of the pressure sensing array when a trigger signal of the target button is received. The layout range of the pressure sensing array is larger than the projection range of the target button on the pressure sensing array. The pressure sensing array includes multiple pressure sensors. A center pressure sensor determination module is used to determine the center pressure sensor from among the plurality of pressure sensors based on the pressure sensing values; The spatial dispersion index acquisition module is used to analyze the degree of pressure distribution dispersion based on the distances from the other pressure sensors in the pressure sensor array to the central pressure sensor and the pressure sensor values ​​when the central pressure sensor is located within the key range of the target key, and to obtain the spatial dispersion index. An operation response module is used to respond to the operation corresponding to the target key when the spatial dispersion index meets a preset threshold range.

10. An electronic device, characterized in that, It includes at least one button, and a pressure sensor array is arranged below the button. The arrangement range of the pressure sensor array is larger than the projection range of the button on the pressure sensor array. The pressure sensor array includes multiple pressure sensors. It also includes a controller, which is electrically connected to the button and each of the pressure sensors, and the controller is used to implement the button control in the steps of the button control method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the key control method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the key control method according to any one of claims 1 to 8.