Key operation method and related apparatus

By integrating multiple sensors into the buttons of electronic devices and comprehensively analyzing multiple data to identify touch operations, the problems of button misjudgment and poor underwater user interaction are solved, and more efficient button operations and richer user interaction methods are achieved.

WO2025195314A1PCT designated stage Publication Date: 2025-09-25HUAWEI TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/082853
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-20
Filing Date
2025-03-17
Publication Date
2025-09-25

AI Technical Summary

Technical Problem

The buttons of existing electronic devices are prone to misjudgment when recognizing user operations, especially in underwater environments, resulting in poor user interaction experience and a lack of rich interaction methods.

Method used

It uses a combination of multiple sensors, such as pressure sensors, optical sensors, bioelectric sensors, and temperature sensors, to comprehensively analyze multiple data to identify touch operations on buttons, including pressing force, pressing duration, and sliding direction, thereby reducing misjudgment and supporting a variety of user interaction methods.

Benefits of technology

The accuracy and flexibility of key operations are improved, users can use it conveniently both underwater and above water, enhance the user experience of electronic devices, and support multiple function controls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025082853_25092025_PF_FP_ABST
    Figure CN2025082853_25092025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a key operation method and a related apparatus. A pressure sensor, an optical sensor, a bioelectric sensor and a temperature sensor can be disposed in a first key of an electronic device. By means of data detected by the sensors in the first key, the electronic device can accurately identify whether a touch-control operation acts on the first key, and can identify the type of the touch-control operation. In this way, the first key can support various types of touch-control operations (e.g., a short-press operation, a long-press operation, a light-press operation, a firm-press operation and swipe-up operation). By means of the method, a user can conveniently perform different types of touch-control operations on a first key, so as to control an electronic device to realize a plurality of functions.
Need to check novelty before this filing date? Find Prior Art

Description

Key operation method and related device

[0001] This application claims priority to the Chinese patent application with application number 202410325144.8 filed with the State Intellectual Property Office of China on March 20, 2024, and priority to the Chinese patent application with the invention name “Key operation method and related device”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a key operation method and related devices. Background Art

[0003] Many electronic devices currently have buttons. For example, buttons on mobile phones may include physical buttons such as the power button, volume up button, and volume down button. Buttons on smartwatches may also include physical buttons such as side buttons. In addition to physical buttons, buttons on electronic devices also include virtual buttons on the screen. Users can use these buttons to control electronic devices. Improving button performance and enhancing the user interaction experience are urgent issues to be addressed. Summary of the Invention

[0004] The present application provides a key operation method and related devices. Various types of sensors may be provided in the keys of an electronic device. For example, a pressure sensor, an optical sensor, a bioelectric sensor, and a temperature sensor. Based on the aforementioned various types of sensors, the electronic device can more accurately identify various types of touch operations acting on the keys. The keys can support a variety of user interaction methods. Users can control the electronic device to implement various functions by performing different types of touch operations on the keys. Furthermore, the keys support underwater interaction. Through the keys, users can conveniently use the electronic device both underwater and above water. This can enhance the user interaction experience of the keys.

[0005] In a first aspect, the present application provides a key operation method. This method can be applied to an electronic device including a first key. The electronic device can obtain multiple data from multiple sensors, where the multiple sensors are provided in the first key and include at least two of the following: a pressure sensor, a bioelectric sensor, an optical sensor, and a temperature sensor. The electronic device can determine a first touch operation performed on the first key based on the multiple data.

[0006] In some embodiments, determining the first touch operation acting on the first button based on multiple data may include: determining whether the first touch operation acts on the first button based on multiple data, and identifying the type of the first touch operation when the first touch operation acts on the first button.

[0007] The above method can reduce the situation where only a single type of sensor is used to misjudge the user's key press behavior, thereby improving the accuracy of touch operation detection. In addition, data from multiple sensors can be used to determine multiple states of the first button, for example, the state of a light press operation, the state of a hard press operation, the state of a short press operation, the state of a hard press operation, the state of a sliding operation such as an upward swipe operation. Therefore, based on the above multiple sensors, the first button can support a variety of user interaction methods. The user can control the electronic device to achieve multiple functions by performing different types of touch operations on the first button. This can improve the user experience of using the electronic device.

[0008] In some embodiments, the first button can be either a physical button or a virtual button. The fact that multiple types of sensors are provided in the virtual button can indicate that these multiple sensors are provided under the screen of the electronic device. When the first button is a virtual button, the above-mentioned first touch operation can be a touch operation acting on the screen of the electronic device. Since one or more sensors (such as pressure sensors, bioelectric sensors, optical sensors, and temperature sensors) provided in the first button are not easily affected by aqueous media, the electronic device can be used underwater. Users can conveniently use the electronic device both underwater and above water. This can enhance the user experience of using the electronic device.

[0009] In conjunction with the first aspect, in some embodiments, if multiple data from multiple sensors in the first button meet at least two of the following conditions, the electronic device may determine that a first touch operation has occurred on the first button:

[0010] The multiple sensors include a pressure sensor, the multiple data include pressure data of the pressure sensor, and the pressure data of the pressure sensor is greater than a first pressure threshold;

[0011] The multiple sensors include an optical sensor, the multiple data include a photocurrent signal of the optical sensor, and a signal strength of the photocurrent signal of the optical sensor is greater than a first signal strength threshold;

[0012] The plurality of sensors include a bioelectric sensor, the plurality of data include a bioelectric signal of the bioelectric sensor, and the bioelectric signal of the bioelectric sensor indicates that the bioelectric sensor is in electrical communication with another bioelectric sensor provided on the electronic device;

[0013] The multiple sensors include a temperature sensor, the multiple data include temperature data of the temperature sensor, and a change in the temperature data of the temperature sensor is greater than a temperature change threshold.

[0014] As can be seen, the electronic device can combine at least two sensors in the first button to detect whether a touch operation has been performed on the first button. This can reduce the possibility of misidentifying user key presses using only a single type of sensor. The above method can reduce the possibility of misidentifying accidentally touched keys as user touch operations and more accurately identify touch operations on the keys.

[0015] In combination with the first aspect, in some embodiments, the multiple sensors include an optical sensor. After determining that a first touch operation occurs on the first button, the electronic device can determine whether the type of the first touch operation is a press operation or a slide operation based on a photocurrent signal.

[0016] The optical sensor may include a plurality of light receivers.

[0017] If the photocurrent signal intensities of multiple photoreceivers in the first key show a trend of increasing and then decreasing simultaneously, the electronic device can determine that the touch operation on the first key is a pressing operation.

[0018] If there is a trend among the multiple light receivers of the first button that the photocurrent signal strength of one light receiver decreases while the photocurrent signal strength of another light receiver increases, the electronic device can determine that the touch operation on the first button is a sliding operation.

[0019] It can be seen that the electronic device can identify the pressing operation and sliding operation on the first button based on the optical sensor in the first button, and then perform the task corresponding to the corresponding touch operation. The above embodiment can improve the user interaction experience of the electronic device.

[0020] In conjunction with the first aspect, in some embodiments, the optical sensor includes multiple light receivers; the electronic device may determine the sliding direction of the first touch operation based on the positions of the multiple light receivers and the moments when the multiple light receivers detect photocurrent signals with signal strengths greater than a second signal strength threshold. The second signal strength threshold may be the same as or different from the first signal strength threshold.

[0021] The positions of the multiple light receivers can refer to the position distribution diagram shown in Figure 7 of the present application. The sliding direction of the first touch operation can include sliding to the left, sliding to the right, sliding upward, sliding downward, sliding diagonally to the left, sliding diagonally to the left, sliding diagonally to the right, sliding diagonally to the right, and so on.

[0022] In combination with the first aspect, in some embodiments, the electronic device may determine the pressing duration of the first touch operation based on the photocurrent signal; or, the electronic device may determine the pressing force of the first touch operation based on the photocurrent signal.

[0023] According to the pressing duration, the electronic device can determine the type of the first touch operation. The type of the first touch operation can include pressing operations with different pressing durations, such as a short press operation, a long press operation, and the like.

[0024] According to the pressing force, the electronic device can determine the type of the first touch operation. The type of the first touch operation can include pressing operations with different pressing forces, such as a light pressing operation, a heavy pressing operation, and the like.

[0025] In conjunction with the first aspect, in some embodiments, if the optical sensor in the first button detects a photocurrent signal having a signal strength greater than a second signal strength threshold twice within a preset time period, the electronic device may determine that the first touch operation includes two press operations and determine the press durations of the two press operations based on the photocurrent signal. Based on the press durations of the two press operations, the electronic device may determine the type of the first touch operation, for example, two consecutive short press operations, or a consecutive short press operation and a long press operation.

[0026] As can be seen, the electronic device can utilize the optical sensor in the first button to identify various types of touch operations on the first button. In this way, the first button can support a variety of user interaction methods. The user can perform various touch operations on the first button to access corresponding functions.

[0027] In combination with the first aspect, in some embodiments, the multiple sensors include a pressure sensor. After determining that a first touch operation is performed on the first button, the electronic device can determine whether the type of the first touch operation is a pressing operation or a sliding operation based on the pressure data.

[0028] Wherein, a plurality of pressure sensors may be provided in the first button.

[0029] If the pressure data of multiple pressure sensors on the first button show a trend of increasing and then decreasing simultaneously, the electronic device can determine that the touch operation on the first button is a pressing operation.

[0030] If there is a trend among the multiple pressure sensors of the first button that the pressure data of one pressure sensor decreases while the pressure data of another pressure sensor increases, the electronic device can determine that the touch operation on the first button is a sliding operation.

[0031] It can be seen that the electronic device can identify the pressing operation and sliding operation on the first button based on the pressure sensor in the first button, and then perform the task corresponding to the corresponding touch operation. The above embodiment can improve the user interaction experience of the electronic device.

[0032] In conjunction with the first aspect, in some embodiments, the pressure sensor includes multiple pressure sensors; the electronic device may determine the sliding direction of the first touch operation based on the positions of the multiple pressure sensors and the time when the multiple pressure sensors detect pressure data greater than a second pressure threshold. The second pressure threshold may be the same as or different from the first pressure threshold.

[0033] The positions of the multiple pressure sensors can refer to the position distribution diagram shown in FIG5 of the present application.

[0034] In combination with the first aspect, in some embodiments, the electronic device may determine the pressing duration of the first touch operation based on the pressure data; or, the electronic device may determine the pressing force of the first touch operation based on the pressure data.

[0035] In conjunction with the first aspect, in some embodiments, if a pressure sensor in a first button detects pressure data greater than a second pressure threshold twice within a preset time period, the electronic device may determine that the first touch operation includes two press operations and determine the press durations of these two press operations based on the pressure data. Based on the press durations of these two press operations, the electronic device may determine the type of the first touch operation, for example, two consecutive short press operations, or a consecutive short press and long press operation.

[0036] As can be seen, the electronic device can utilize the pressure sensor in the first button to identify various types of touch operations on the first button. In this way, the first button can support a variety of user interaction methods. The user can perform various touch operations on the first button to access corresponding functions.

[0037] In combination with the first aspect, in some embodiments, the multiple sensors include an optical sensor and a pressure sensor, and the electronic device can receive a first blood pressure detection operation, which is used to start blood pressure detection; the electronic device can detect a second touch operation based on the pressure sensor to press a first position on the first button; if the first position is not at the position corresponding to the optical sensor, the electronic device can output a first prompt, which is used to prompt the user to adjust the pressing position on the first button.

[0038] The first blood pressure detection operation can refer to the user operation on the start control 1011 shown in FIG. 10A of the present application.

[0039] The position corresponding to the optical sensor can be the position corresponding to the optical sensor on the touch surface of the first key. The position corresponding to the optical sensor can refer to the positions of the light-transmitting area 1 and the light-transmitting area 2 shown in FIG. 3A of the present application.

[0040] The first prompt can refer to the prompt information in the user interface 1030 described in Figure 10C of this application.

[0041] As can be seen, when performing blood pressure testing, the electronic device can use the pressure sensor in the first button to detect whether the user has pressed the first button in the correct position. If the user has pressed the first button in the wrong position, the electronic device can prompt the user to adjust the position of the first button. This can improve the accuracy of blood pressure testing.

[0042] In combination with the first aspect, in some embodiments, the multiple sensors also include a bioelectric sensor. If the first position is at the position corresponding to the optical sensor, the electronic device can determine whether the signal quality of the PPG signal detected by the optical sensor meets the first quality indicator; if the signal quality of the PPG signal meets the first quality indicator, the electronic device can determine the user's blood pressure based on the PPG signal and the bioelectric signal of the bioelectric sensor; if the signal quality of the PPG signal does not meet the first quality indicator, the electronic device can output a second prompt, and the second prompt is used to prompt the user to remain stable when pressing the first button.

[0043] As can be seen, when performing blood pressure testing, the electronic device can also determine whether the signal quality of the PPG signal detected by the optical sensor in the first button meets the first quality criterion. If the user's finger pressed the first button in the correct position but the PPG signal quality did not meet the quality criterion, it indicates that the user may have unstable pressing, such as finger shaking, when pressing the first button. Therefore, if the PPG signal quality does not meet the first quality criterion, the electronic device can prompt the user to maintain steady pressure on the first button. This can improve the accuracy of blood pressure testing.

[0044] In combination with the first aspect, in some embodiments, the multiple sensors include a pressure sensor; the electronic device can also display a first interface, the first interface being used to prompt the user to press a first button and control the pressing force to a first force within a first duration; in response to detecting a third touch operation acting on the first button, the electronic device can also determine the pressing force and pressing duration of the third touch operation; the electronic device can also output a disease risk prompt based on the pressing force and pressing duration.

[0045] The first interface may refer to the user interface 1120 shown in FIG. 11B of the present application.

[0046] If the pressing force is less than the first force, or the fluctuation in the pressing force is greater than a force fluctuation threshold, the electronic device may output a disease risk warning. If the pressing force is less than the first force, the disease risk warning output by the electronic device may include: warning the user of the risk of peripheral nerve damage. If the fluctuation in the pressing force is greater than the force fluctuation threshold, the disease risk warning output by the electronic device may include: warning the user of the risk of Parkinson's disease or alcohol paralysis.

[0047] As can be seen, the electronic device can use the pressure sensor in the first button to quickly and easily detect whether the user has a limb control disorder. If the user is determined to have a limb control disorder, the electronic device can output a disease risk warning. The above embodiment can facilitate users to detect limb control disorders anytime and anywhere, helping users to better monitor their health.

[0048] In conjunction with the first aspect, in some embodiments, the first button does not include a touch sensor. The touch sensor may be a touch-activated switch, such as a capacitive touch sensor. If the first button is a virtual button, the fact that the first button does not include a touch sensor may indicate that a touch sensor is not required beneath the screen of the electronic device. The electronic device may detect touch operations on the screen using one or more of a pressure sensor, an optical sensor, a bioelectric sensor, and a temperature sensor located beneath the screen. Compared to touch sensors, pressure sensors, optical sensors, bioelectric sensors, and temperature sensors are less susceptible to the effects of aqueous media. Therefore, the presence of one or more of a pressure sensor, an optical sensor, a bioelectric sensor, and a temperature sensor beneath the screen may enable the screen to interact with the user underwater. This allows the user to conveniently use the electronic device both underwater and above water. This can enhance the user experience with the electronic device.

[0049] In a second aspect, the present application provides a key operation method. This method can be applied to an electronic device comprising a first key and an optical sensor, wherein the optical sensor is disposed in the first key. The electronic device can obtain a photocurrent signal from the optical sensor; the electronic device can determine a first touch operation performed on the first key based on the photocurrent signal.

[0050] As can be seen, since the photocurrent signal can be used to determine various states of the first button, such as a light press, a hard press, a short press, a hard press, or a sliding operation such as an upward swipe, the first button can support a variety of user interaction methods based on the optical sensor. Users can control various functions of the electronic device by performing different types of touch operations on the first button. This can enhance the user experience of the electronic device.

[0051] In combination with the second aspect, in some embodiments, if the signal strength of the photocurrent signal is greater than a first signal strength threshold, the electronic device may determine that a first touch operation is performed on the first button.

[0052] In combination with the second aspect, in some embodiments, after determining that a first touch operation is performed on the first button, the electronic device may determine whether the type of the first touch operation is a pressing operation or a sliding operation based on the photocurrent signal.

[0053] The optical sensor may include a plurality of light receivers.

[0054] If the photocurrent signal intensities of multiple photoreceivers in the first key show a trend of increasing and then decreasing simultaneously, the electronic device can determine that the touch operation on the first key is a pressing operation.

[0055] If there is a trend among the multiple light receivers of the first button that the photocurrent signal strength of one light receiver decreases while the photocurrent signal strength of another light receiver increases, the electronic device can determine that the touch operation on the first button is a sliding operation.

[0056] It can be seen that the electronic device can identify the pressing operation and sliding operation on the first button based on the optical sensor in the first button, and then perform the task corresponding to the corresponding touch operation. The above embodiment can improve the user interaction experience of the electronic device.

[0057] In combination with the second aspect, in some embodiments, the optical sensor includes multiple light receivers; the electronic device can determine the sliding direction of the first touch operation based on the positions of the multiple light receivers and the moment when the multiple light receivers detect a photocurrent signal with a signal strength greater than a second signal strength threshold.

[0058] The sliding direction of the first touch operation may include sliding to the left, sliding to the right, sliding upward, sliding downward, sliding diagonally to the left and downward, sliding diagonally to the left and upward, sliding diagonally to the right and downward, sliding diagonally to the right and upward, etc.

[0059] In combination with the second aspect, in some embodiments, the electronic device may determine the pressing duration of the first touch operation based on the photocurrent signal; or, the electronic device may determine the pressing force of the first touch operation based on the photocurrent signal.

[0060] According to the pressing duration, the electronic device can determine the type of the first touch operation. The type of the first touch operation can include pressing operations with different pressing durations, such as a short press operation, a long press operation, and the like.

[0061] According to the pressing force, the electronic device can determine the type of the first touch operation. The type of the first touch operation can include pressing operations with different pressing forces, such as a light pressing operation, a heavy pressing operation, and the like.

[0062] In conjunction with the second aspect, in some embodiments, if the optical sensor in the first button detects a photocurrent signal with a signal strength greater than a second signal strength threshold twice within a preset time period, the electronic device may determine that the first touch operation includes two press operations and determine the press durations of the two press operations based on the photocurrent signal. Based on the press durations of the two press operations, the electronic device may determine the type of the first touch operation, for example, two consecutive short press operations, or a consecutive short press operation and a long press operation.

[0063] As can be seen, the electronic device can utilize the optical sensor in the first button to identify various types of touch operations on the first button. In this way, the first button can support a variety of user interaction methods. The user can perform various touch operations on the first button to access corresponding functions.

[0064] In conjunction with the second aspect, in some embodiments, the first button does not include a touch sensor.

[0065] In a third aspect, the present application provides a key operation method. The method can be used in an electronic device comprising a first key, an optical sensor, and a pressure sensor, wherein the optical sensor and the pressure sensor are disposed in the first key. The electronic device can receive a first blood pressure detection operation, which is used to start a blood pressure detection operation; the electronic device can detect, based on the pressure sensor, a first touch operation pressing a first position on the first key; if the first position is not at a position corresponding to the optical sensor, the electronic device can output a first prompt, which is used to prompt the user to adjust the pressing position on the first key.

[0066] The first blood pressure detection operation can refer to the user operation on the start control 1011 shown in FIG. 10A of the present application.

[0067] The position corresponding to the optical sensor can be the position corresponding to the optical sensor on the touch surface of the first key. The position corresponding to the optical sensor can refer to the positions of the light-transmitting area 1 and the light-transmitting area 2 shown in FIG. 3A of the present application.

[0068] The first prompt can refer to the prompt information in the user interface 1030 described in Figure 10C of this application.

[0069] As can be seen, when performing blood pressure testing, the electronic device can use the pressure sensor in the first button to detect whether the user has pressed the first button in the correct position. If the user has pressed the first button in the wrong position, the electronic device can prompt the user to adjust the position of the first button. This can improve the accuracy of blood pressure testing.

[0070] In combination with the third aspect, in some embodiments, a bioelectric sensor is further provided in the first button. If the first position is at the position corresponding to the optical sensor, the electronic device can determine whether the signal quality of the PPG signal detected by the optical sensor meets the first quality index; if the signal quality of the PPG signal meets the first quality index, the electronic device can determine the user's blood pressure based on the PPG signal and the bioelectric signal of the bioelectric sensor; if the signal quality of the PPG signal does not meet the first quality index, the electronic device can output a second prompt, and the second prompt is used to prompt the user to remain stable when pressing the first button.

[0071] As can be seen, when performing blood pressure testing, the electronic device can also determine whether the signal quality of the PPG signal detected by the optical sensor in the first button meets the first quality criterion. If the user's finger pressed the first button in the correct position but the PPG signal quality did not meet the quality criterion, it indicates that the user may have unstable pressing, such as finger shaking, when pressing the first button. Therefore, if the PPG signal quality does not meet the first quality criterion, the electronic device can prompt the user to maintain steady pressure on the first button. This can improve the accuracy of blood pressure testing.

[0072] In conjunction with the third aspect, in some embodiments, the electronic device can obtain multiple data from multiple sensors, where the multiple sensors are located in the first button and include at least two of a pressure sensor, a bioelectric sensor, an optical sensor, and a temperature sensor. In the absence of blood pressure detection, the electronic device can determine a first touch operation on the first button based on the multiple data.

[0073] In some embodiments, determining the first touch operation acting on the first button based on multiple data may include: determining whether the first touch operation acts on the first button based on multiple data, and identifying the type of the first touch operation when the first touch operation acts on the first button.

[0074] It can be seen that in addition to being used for blood pressure detection, the first button can also be used to receive various types of touch operations. The above method can reduce the situation where only a single type of sensor is used to incorrectly judge the user's button behavior, and improve the accuracy of touch operation detection. And the data of multiple sensors can be used to determine the various states of the first button, for example, the state of a light press operation, the state of a heavy press operation, the state of a short press operation, the state of a heavy press operation, the state of an upward swipe operation and other sliding operations. Therefore, based on the above-mentioned multiple sensors, the first button can support a rich user interaction method. The user can control the electronic device to achieve various functions by performing different types of touch operations on the first button. This can improve the user experience of using the electronic device.

[0075] In conjunction with the third aspect, in some embodiments, if multiple data from multiple sensors in the first button meet at least two of the following conditions, the electronic device may determine that a first touch operation has occurred on the first button:

[0076] The multiple sensors include a pressure sensor, the multiple data include pressure data of the pressure sensor, and the pressure data of the pressure sensor is greater than a first pressure threshold;

[0077] The multiple sensors include an optical sensor, the multiple data include a photocurrent signal of the optical sensor, and a signal strength of the photocurrent signal of the optical sensor is greater than a first signal strength threshold;

[0078] The plurality of sensors include a bioelectric sensor, the plurality of data include a bioelectric signal of the bioelectric sensor, and the bioelectric signal of the bioelectric sensor indicates that the bioelectric sensor is in electrical communication with another bioelectric sensor provided on the electronic device;

[0079] The multiple sensors include a temperature sensor, the multiple data include temperature data of the temperature sensor, and a change in the temperature data of the temperature sensor is greater than a temperature change threshold.

[0080] As can be seen, the electronic device can combine at least two sensors in the first button to detect whether a touch operation has been performed on the first button. This can reduce the possibility of misidentifying user key presses when using only a single type of sensor. The above method can reduce the possibility of misidentifying accidentally touched keys as user touch operations and more accurately identify touch operations on the keys.

[0081] In combination with the third aspect, in some embodiments, the multiple sensors include an optical sensor. After determining that a first touch operation occurs on the first button, the electronic device can determine whether the type of the first touch operation is a press operation or a slide operation based on a photocurrent signal.

[0082] In conjunction with the third aspect, in some embodiments, the optical sensor includes multiple light receivers; the electronic device may determine the sliding direction of the first touch operation based on the positions of the multiple light receivers and the moments when the multiple light receivers detect photocurrent signals with a signal strength greater than a second signal strength threshold. The second signal strength threshold may be the same as or different from the first signal strength threshold.

[0083] In combination with the third aspect, in some embodiments, the electronic device may determine the pressing duration of the first touch operation based on the photocurrent signal; or, the electronic device may determine the pressing force of the first touch operation based on the photocurrent signal.

[0084] According to the pressing duration, the electronic device can determine the type of the first touch operation. The type of the first touch operation can include pressing operations with different pressing durations, such as a short press operation, a long press operation, and the like.

[0085] According to the pressing force, the electronic device can determine the type of the first touch operation. The type of the first touch operation can include pressing operations with different pressing forces, such as a light pressing operation, a heavy pressing operation, and the like.

[0086] As can be seen, the electronic device can utilize the optical sensor in the first button to identify various types of touch operations on the first button. In this way, the first button can support a variety of user interaction methods. The user can perform various touch operations on the first button to access corresponding functions.

[0087] In combination with the third aspect, in some embodiments, the multiple sensors include a pressure sensor. After determining that a first touch operation occurs on the first button, the electronic device can determine whether the type of the first touch operation is a pressing operation or a sliding operation based on the pressure data.

[0088] In conjunction with the third aspect, in some embodiments, the pressure sensor includes multiple pressure sensors; the electronic device may determine the sliding direction of the first touch operation based on the positions of the multiple pressure sensors and the time when the multiple pressure sensors detect pressure data greater than a second pressure threshold. The second pressure threshold may be the same as or different from the first pressure threshold.

[0089] The positions of the multiple pressure sensors can refer to the position distribution diagram shown in FIG5 of the present application.

[0090] In combination with the third aspect, in some embodiments, the electronic device may determine the pressing duration of the first touch operation based on the pressure data; or, the electronic device may determine the pressing force of the first touch operation based on the pressure data.

[0091] As can be seen, the electronic device can utilize the pressure sensor in the first button to identify various types of touch operations on the first button. In this way, the first button can support a variety of user interaction methods. The user can perform various touch operations on the first button to access corresponding functions.

[0092] In a fourth aspect, the present application provides a key operation method. This method can be applied to an electronic device comprising a first key and a pressure sensor, wherein the pressure sensor is disposed in the first key. The electronic device can display a first interface, the first interface being used to prompt the user to press the first key and control the pressing force to a first force within a first duration; in response to detecting a touch operation on the first key, the electronic device can determine the pressing force and pressing duration of the touch operation; based on the pressing force and pressing duration, the electronic device can output a disease risk prompt.

[0093] The first interface may refer to the user interface 1120 shown in FIG. 11B of the present application.

[0094] If the pressing force is less than the first force, or the fluctuation in the pressing force is greater than a force fluctuation threshold, the electronic device may output a disease risk warning. If the pressing force is less than the first force, the disease risk warning output by the electronic device may include: warning the user of the risk of peripheral nerve damage. If the fluctuation in the pressing force is greater than the force fluctuation threshold, the disease risk warning output by the electronic device may include: warning the user of the risk of Parkinson's disease or alcohol paralysis.

[0095] As can be seen, the electronic device can use the pressure sensor in the first button to quickly and easily detect whether the user has a limb control disorder. If the user is determined to have a limb control disorder, the electronic device can output a disease risk warning. The above embodiment can facilitate users to detect limb control disorders anytime and anywhere, helping users to better monitor their health.

[0096] In a fifth aspect, the present application provides an electronic device. The electronic device may include a first button, a memory, and a processor. The first button is provided with at least two sensors selected from the group consisting of a pressure sensor, a bioelectric sensor, an optical sensor, and a temperature sensor. The memory may be configured to store a computer program. The processor may be configured to invoke the computer program, causing the electronic device to execute any possible implementation method described in the first, second, third, or fourth aspects.

[0097] In a sixth aspect, the present application provides a key having one or more of the following sensors disposed therein: a pressure sensor, an optical sensor, a bioelectric sensor, and a temperature sensor. The pressure sensor is configured to detect pressure data. The optical sensor is configured to detect a photocurrent signal. The bioelectric sensor is configured to detect a bioelectric signal. The temperature sensor is configured to detect temperature data.

[0098] In some embodiments, the first button does not include a touch sensor.

[0099] In a seventh aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables the electronic device to execute any possible implementation method in the first aspect, the second aspect, the third aspect, or the fourth aspect.

[0100] In an eighth aspect, the present application provides a computer program product, which may include computer instructions. When the computer instructions are run on an electronic device, the electronic device executes any possible implementation method in the first aspect, the second aspect, the third aspect, or the fourth aspect.

[0101] In the ninth aspect, the present application provides a chip, which is applied to an electronic device, and the chip includes one or more processors, which are used to call computer instructions to enable the electronic device to execute any possible implementation method in the first aspect, the second aspect, the third aspect, or the fourth aspect.

[0102] It is understandable that the electronic device provided in the fifth aspect, the computer-readable storage medium provided in the seventh aspect, the computer program product provided in the eighth aspect, and the chip provided in the ninth aspect are all used to execute the methods provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0103] FIG1 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application;

[0104] FIG2 is a schematic structural diagram of another electronic device 100 provided in an embodiment of the present application;

[0105] 3A and 3B are schematic diagrams of a key provided in an embodiment of the present application;

[0106] FIG3C is a schematic diagram of a pressure sensor provided in a first button under the action of an external force according to an embodiment of the present application;

[0107] FIG3D is a schematic diagram of an optical sensor in a first button detecting a photocurrent signal according to an embodiment of the present application;

[0108] FIG4 is a method for detecting an incorrect touch of a key provided in an embodiment of the present application;

[0109] FIG5 is a schematic diagram of the position distribution of pressure sensors in a first button provided by an embodiment of the present application;

[0110] 6A to 6C illustrate some methods for detecting touch operation types based on pressure data provided by embodiments of the present application;

[0111] 7 is a schematic diagram showing the position distribution of light emitters and light receivers included in the optical sensor of the first key provided in an embodiment of the present application;

[0112] 8A and 8B illustrate a method for detecting a touch operation type based on a photocurrent signal provided by an embodiment of the present application;

[0113] FIG9 is a method for performing blood pressure detection based on a first button provided in an embodiment of the present application;

[0114] 10A to 10D are schematic diagrams of some blood pressure detection scenarios provided by embodiments of the present application;

[0115] 11A to 11D are schematic diagrams of some scenarios of limb disability risk detection provided in embodiments of the present application. DETAILED DESCRIPTION

[0116] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0117] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0118] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0119] The present application provides a key operation method that can be applied to an electronic device including a first key. The first key can be a physical key, which can be provided with multiple sensors. The multiple sensors can include at least two of a pressure sensor, a bioelectric sensor, an optical sensor, and a temperature sensor. The electronic device can obtain multiple data from the multiple sensors in the first key and determine whether a first touch operation has been performed on the first key and the type of the first touch operation based on the multiple data.

[0120] The pressure sensor can be used to detect pressure data. The bioelectric sensor can be used to detect bioelectric signals of the human body. For example, the bioelectric sensor can be an electrocardiogram (ECG) sensor. The optical sensor can be used to detect photocurrent signals. The optical sensor can include a light emitter and a light receiver. The light emitter can be used to emit a light signal. The light receiver can be used to receive the light signal. The optical sensor can generate a photocurrent signal based on the light signal received by the light receiver. For example, the optical sensor can be a photoplethysmography (PPG) sensor. The temperature sensor can be used to detect temperature data.

[0121] As can be seen from the above method, the electronic device can combine data from multiple sensors in the first button to detect whether there is a touch operation on the first button. This can improve the accuracy of touch operation detection and reduce the situation where an accidental touch of the first button is recognized as a user's touch operation.

[0122] In the case where the first touch operation acts on the first button, the electronic device can determine the type of the first touch operation based on the data of the sensor in the first button. For example, the type of the first touch operation can be a press operation, or a slide operation. The present application does not limit the type of the first touch operation. For example, the electronic device can determine the pressing duration of the first touch operation based on the data of the sensor in the first button, and then determine that the first touch operation is a short press operation or a long press operation. Alternatively, the electronic device can determine the pressing force of the first touch operation based on the data of the sensor in the first button, and then determine that the first touch operation is a light press operation or a heavy press operation. Alternatively, the electronic device can determine the sliding direction of the first touch operation based on the data of the sensor in the first button, and then determine that the first touch operation is an upward slide operation, a downward slide operation, a left slide operation, a right slide operation or other sliding operations.

[0123] When the type of the first touch operation is identified, the electronic device can perform the task corresponding to the first touch operation. For example, the task corresponding to the first touch operation can be remote shooting, calling up a quick application, or controlling music playback. In this way, the user can perform different types of touch operations on the first button to achieve the corresponding function. The above-mentioned first button supports a variety of user interaction methods, which can enhance the user experience of the electronic device.

[0124] Not limited to the first button mentioned above, the electronic device may also include more buttons.

[0125] It should be noted that the keys involved in this application may include physical keys and virtual keys.

[0126] Physical keys may include physical keys and solid-state keys. Mechanical structures such as elastic elements are provided in the physical keys. When a finger presses the physical key, the elastic element in the physical key will deform, so that the key is recognized as being pressed. The physical key can provide clear key feedback when pressed, such as a "click" sound. Physical keys can also be called mechanical keys. Solid-state keys can be seamlessly integrated with the housing of an electronic device. Compared with physical keys, solid-state keys can make electronic devices more integrated, reduce gaps on electronic devices, and thus increase the waterproof, dustproof and other performance of electronic devices. The physical key operation method provided in the present application can be applied to both the above-mentioned physical keys and the above-mentioned solid-state keys.

[0127] In some embodiments, the physical key may be a key with a raised structure. Alternatively, the physical key may be a non-raised key. The embodiments of the present application do not limit the appearance design or mechanical structure design of the physical key.

[0128] Virtual keys may refer to keys such as keyboards, return buttons, touch icons displayed on the screen of an electronic device, which can be used to simulate the functions of physical keys. Compared with physical keys, virtual keys do not require the support of physical structures, but instead complete operations through the interaction of touching the screen. An electronic device can change the virtual keys displayed at a certain position on the screen. For example, an electronic device displays an APP icon on the screen. This APP icon can be a virtual key. In response to a click operation on this APP icon, the electronic device can display the user interface of the APP corresponding to this APP icon. The electronic device can display other virtual keys, such as a return control, at the position where this APP icon was originally displayed.

[0129] In some embodiments, one or more sensors such as a pressure sensor, an optical sensor, a bioelectric sensor, and a temperature sensor may be provided below the screen of the electronic device. The electronic device can detect whether there is a touch operation on a virtual key on the screen, as well as the type of touch operation on the virtual key, based on the key operation method provided in this application. Among them, one or more sensors such as a pressure sensor, an optical sensor, a bioelectric sensor, and a temperature sensor are provided below the screen, which can be equivalent to one or more sensors such as a pressure sensor, an optical sensor, a bioelectric sensor, and a temperature sensor being provided in the virtual key.

[0130] The first button can be a physical button or a virtual button. In the subsequent embodiments of this application, a physical button is used as an example for explanation.

[0131] It is understandable that the keys to which the key operation method in the present application is applicable may be distinguished from traditional touch screen keys. Traditional touch screen keys may be keys provided with a touch sensor. The above-mentioned touch sensor may refer to a switch activated by touch, such as a capacitive touch sensor. When contact is made with the surface of the touch sensor, the circuit inside the touch sensor is closed and current flows. When the contact is released, the circuit inside the touch sensor is disconnected and no current flows. For example, a touch sensor is provided under the screen of an electronic device. The virtual key displayed on the screen may be a touch screen key. The electronic device can detect touch operations on the virtual keys on the screen based on the touch sensor.

[0132] The above-mentioned touch sensors are easily affected by aqueous media. Therefore, traditional touch screen buttons cannot be operated underwater. The one or more sensors (such as pressure sensors, optical sensors, bioelectric sensors, and temperature sensors) provided in the buttons of the present application are not easily affected by aqueous media. Therefore, based on the buttons provided by the present application, users can control electronic devices underwater, for example, operating physical or virtual buttons of electronic devices underwater.

[0133] The structure of the electronic device 100 involved in this application is introduced below.

[0134] FIG1 exemplarily shows a structural diagram of an electronic device 100 .

[0135] 1 , the electronic device 100 may include a communication module 110 , a processor 120 , a memory 130 , a speaker 140 , a microphone 150 , a display 160 , a sensor 170 , a button 180 , etc. These components may be coupled via a bus.

[0136] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0137] The processor 120 may include one or more processing units. For example, the processor 120 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. In some embodiments, the processor 120 may be a system on chip (SOC).

[0138] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0139] Processor 120 may also include a memory for storing instructions and data. In some examples, the memory in processor 120 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 120. If processor 120 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces processor 120 latency, and thus improves system efficiency.

[0140] The communication module 110 can be used for the electronic device 100 to send and receive information. In some embodiments, the communication module 110 may include a mobile communication module. The mobile communication module can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module can receive electromagnetic waves from the antenna, and filter, amplify and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna. In some embodiments, the communication module 110 may also include a wireless communication module. The wireless communication module can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module can be one or more devices that integrate at least one communication processing module. The wireless communication module receives electromagnetic waves via an antenna, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 120. The wireless communication module can also receive signals to be sent from the processor 120, frequency modulate them, amplify them, and convert them into electromagnetic waves for radiation through the antenna.

[0141] The memory 130 can be used to store computer executable program codes, which include instructions. The processor 120 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 130. The internal memory 130 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 130 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0142] In the present application, the memory 130 may store a computer program for causing the controller part number processor 120 to implement the key operation method of the present application through an interface or protocol. For example, the computer program stored in the memory 130 may be used to: obtain data detected by one or more sensors such as a pressure sensor, an optical sensor, a bioelectric sensor, a temperature sensor, etc.; determine whether a touch operation has been performed on the key based on the data from the sensor in the key; detect the type of touch operation performed on the key based on the data from the sensor in the key; perform blood pressure testing; detect the risk of the user suffering from limb control diseases (such as Parkinson's syndrome, nerve ending damage, etc.); and so on.

[0143] The speaker 140 , also called a “speaker,” can be used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 140 .

[0144] The microphone 150 , also called a “microphone” or a “microphone”, can be used to convert sound signals into electrical signals.

[0145] The display screen 160 can be used to display images, videos, and the like. The display screen 160 may include a display panel. In some embodiments, the display screen 160 may also include a touch panel. The touch panel can be used to detect touch operations applied thereto. The touch panel can transmit the detected touch operations to the application processor to determine the type of touch event. In this way, a user can control the electronic device 100 by touching the display screen.

[0146] The sensor 170 may include an optical sensor 171 , a bioelectric sensor 172 , a pressure sensor 173 , a temperature sensor 174 , an acceleration sensor 175 , a gyro sensor 176 , and the like.

[0147] The optical sensor 171 can be used to detect photocurrent signals. The optical sensor 171 may include a light emitter and a light receiver. For example, the light emitter may be a light emitting diode (LED). The light receiver may be a photoelectric detector (PD). Alternatively, the light emitter may be a vertical cavity surface emitting laser (VCSEL). The light receiver may be a complementary metal-oxide semiconductor (CMOS). The CMOS may be a one-dimensional or two-dimensional array. The embodiments of the present application do not limit the types of the above-mentioned light emitters and light receivers. In some embodiments, the optical sensor 171 may be a PPG sensor. PPG can achieve non-invasive detection of changes in blood volume in blood vessels by photoelectric means. The electronic device 100 can determine the PPG signal based on the photocurrent signal detected by the light receiver in the PPG sensor, and then determine the user's heart rate, blood oxygen saturation and other data based on the PPG signal.

[0148] The bioelectric sensor 172 can be used to detect bioelectric signals from the human body. In some embodiments, the bioelectric sensor 172 may include ECG electrodes. The electronic device 100 can detect the user's heart rate, blood pressure, and other data based on the bioelectric signals. These bioelectric signals may also be referred to as ECG signals. In some embodiments, the electronic device 100 can combine the PPG and ECG signals to detect the user's blood pressure. This embodiment of the present application does not limit the above-mentioned method for detecting blood pressure.

[0149] The pressure sensor 173 can be used to sense pressure signals and convert pressure signals into electrical signals. In some embodiments, the pressure sensor 173 can be set on the display screen 160. The pressure sensor 173 can also be set on the button 180. There are many types of pressure sensors 173, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 173, the capacitance between the electrodes changes. The electronic device 100 determines the pressure data based on the change in capacitance. The resistive pressure sensor may include a resistance strain gauge. When a force acts on the pressure sensor 173, the resistance value of the resistance strain gauge will change as it deforms and be converted into a level signal. The electronic device 100 can determine the pressure data based on the level signal output by the pressure sensor 173.

[0150] The temperature sensor 174 can be used to detect temperature data. The temperature sensor 174 can include a negative temperature coefficient (NTC) thermistor. When the temperature near the temperature sensor 174 changes, the resistance value of the thermistor changes with the temperature. The electronic device 100 can determine the temperature data based on the resistance value of the thermistor. The embodiment of the present application does not limit the type of temperature sensor 174.

[0151] Accelerometer 175 can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. Accelerometer 175 can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0152] The gyroscope sensor 176 can be used to determine the motion posture of the electronic device 100. In some embodiments, the electronic device 100 can determine the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) through the gyroscope sensor 176. The gyroscope sensor 176 can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 176 detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 176 can also be used for navigation and somatosensory game scenes.

[0153] Not limited to the above sensors, the electronic device 100 may also include more or fewer sensors.

[0154] Button 180 can be a physical button or a virtual button. For example, if electronic device 100 is a smartwatch, button 180 can be a physical button located on the side of the smartwatch. For another example, if electronic device 100 is a mobile phone, button 180 can be a power button or a volume control button on the mobile phone. Electronic device 100 can detect a touch operation on button 180 and execute a task corresponding to the touch operation on button 180.

[0155] FIG2 exemplarily shows a structural diagram of another electronic device 100 .

[0156] As shown in Figure 2, the electronic device 100 includes a pressure detection module, an optical detection module, a bioelectric detection module, a temperature detection module, a heart rate detection module, a blood pressure detection module, and a key operation detection module. The electronic device 100 may also include a first key.

[0157] The key operation detection module can be used to detect whether a touch operation is performed on a key (such as the first key) of the electronic device 100, and the type of touch operation performed on the key. For example, the type of touch operation performed on the key may include but is not limited to: a short press operation, a long press operation, a light press operation, a hard press operation, an upward slide operation, a downward slide operation, a left slide operation, a right slide operation, a left oblique downward slide operation, a right oblique downward slide operation, a left oblique upward slide operation, a right oblique upward slide operation, two consecutive short press operations, consecutive short press operations, and a long press operation.

[0158] The pressure detection module may include the pressure sensor 173 shown in FIG. 1 . For example, the pressure detection module may include a pressure sensor disposed in a first button. When a user's finger presses on the first button, the pressure detection module may detect pressure data indicating a touch operation on the first button. In some embodiments, the pressure detection module may send the detected pressure data to the key operation detection module. Based on the pressure data, the key operation detection module may detect whether a touch operation has been performed on the first button. If a touch operation has been performed on the first button, the key operation detection module may detect one or more data items, such as the pressing position, pressing duration, pressing force, and number of presses, based on the pressure data, to determine the type of touch operation performed on the first button. For example, the key operation detection module may detect whether the pressure data exceeds a first pressure threshold. If the pressure data exceeds the first pressure threshold, a touch operation has been performed on the first button. Furthermore, the key operation detection module may determine the duration of the touch operation on the first button to determine whether the touch operation on the first button is a long press or a short press.

[0159] The optical detection module may include the optical sensor 171 shown in Figure 1 above. For example, the optical detection module may include an optical sensor provided in the first button. When the user's finger presses on the first button, the photocurrent signal detected by the optical detection module will change. In some embodiments, the optical detection module may send the detected photocurrent signal to the key operation detection module. Based on the above photocurrent signal, the key operation detection module can detect whether there is a touch operation on the first button. If there is a touch operation on the first button, the key operation detection module can detect one or more data such as the pressing position, pressing time, pressing strength, and number of pressings of the touch operation based on the photocurrent signal, and then determine the type of touch operation acting on the first button.

[0160] The bioelectric detection module may include the bioelectric sensor 172 shown in FIG. 1 . For example, the bioelectric detection module may include a bioelectric sensor disposed in the first button. The bioelectric detection module may also include another bioelectric sensor in the electronic device 100. The other bioelectric sensor may be located in an area other than the first button. For example, the electronic device 100 is a smartwatch. The first button is a side button of the smartwatch. A bioelectric sensor is disposed in the first button. Another bioelectric sensor is also disposed on the bottom wall of the smartwatch. When the smartwatch is worn, the bioelectric sensor disposed on the bottom wall is in close contact with the user's skin and can detect bioelectric signals. When the user presses the first button with their finger, the bioelectric sensor disposed in the first button can also detect a bioelectric signal. At this point, the bioelectric sensor disposed on the bottom wall and the bioelectric sensor disposed in the first button are in electrical contact. The bioelectric detection module may transmit the detected bioelectric signal to the key operation detection module. Based on the bioelectric signal, the key operation detection module may detect whether a touch operation has been performed on the first button. If a touch operation is performed on the first button, the button operation detection module may detect one or more data such as a pressing position, a pressing time, and a pressing number of times of the touch operation according to the bioelectric signal.

[0161] The temperature detection module may include the temperature sensor 174 shown in FIG. 1 . For example, the temperature detection module may include a temperature sensor disposed in a first button. When a user presses a finger on the first button, the temperature detection module may detect a temperature change. In some embodiments, the temperature detection module may send the detected temperature data to the button operation detection module. Based on the temperature data, the button operation detection module may detect whether a touch operation has been performed on the first button.

[0162] The heart rate detection module can be used to detect the user's heart rate. In some embodiments, the optical detection module can send a photocurrent signal to the heart rate detection module. The bioelectric detection module can also send a bioelectric signal to the heart rate detection module. The heart rate detection module can determine the user's heart rate based on the photocurrent signal and / or the bioelectric signal.

[0163] The blood pressure detection module can be used to detect the user's blood pressure. In some embodiments, the optical detection module can transmit a photocurrent signal to the blood pressure detection module. The bioelectric detection module can also transmit a bioelectric signal to the blood pressure detection module. The blood pressure detection module can determine the user's blood pressure based on the photocurrent signal and the bioelectric signal.

[0164] Not limited to the modules shown in FIG. 2 , the electronic device 100 may include more or fewer modules than those shown in FIG. 2 , or combine or separate some modules.

[0165] The electronic device 100 involved in this application may be a wearable device such as a smart watch, a smart bracelet, or a headset, or may be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of this application do not limit the specific type of the electronic device 100.

[0166] 3A and 3B exemplarily illustrate a key schematic diagram provided in the present application.

[0167] As shown in Figure 3A, the buttons of the electronic device 100 may include a first button. For example, the first button may be a physical button disposed on the side of the electronic device 100. The embodiment of the present application does not limit the position of the first button.

[0168] In some embodiments, a pressure sensor, a bioelectric sensor, an optical sensor, and a temperature sensor may be provided in the first button. The optical sensor may include the light emitter and the light receiver shown in FIG3A . The light emitter may also be referred to as a light emitter. The light receiver may also be referred to as a light receiver. The bioelectric sensor may include the ECG electrode shown in FIG3A . The pressure sensor and the optical sensor may be provided inside the first button. The temperature sensor and the ECG electrode may be provided on the touch surface of the first button. When the user's finger touches the first button, the temperature sensor may detect the temperature of the user's finger, and the ECG electrode may generate a bioelectric signal.

[0169] The touch surface of the first button may also include a light-transmitting area 1 and a light-transmitting area 2 as shown in Figure 3A. The light-transmitting area 1 can be located at a position corresponding to the light emitter on the first button. The light-transmitting area 2 can be located at a position corresponding to the light receiver on the first button. The light signal emitted by the light emitter can be transmitted through the light-transmitting area 1. After reflection, scattering, and absorption, the light signal can pass through the light-transmitting area 2 and be received by the light receiver. ECG electrodes can be arranged on the periphery of the light-transmitting area 1 and the light-transmitting area 2. When the user's finger covers the light-transmitting area 2, the light receiver can receive the light signal absorbed, reflected, and scattered by human tissue (such as human skin, blood, muscle, bone, etc.).

[0170] As can be seen from Figure 3A, the first button can be a physical button with a certain length. The position corresponding to the optical sensor on the first button may only occupy a part of the touch surface of the first button. For example, the light-transmitting area 1 and the light-transmitting area 2 are located in the lower half of the first button. When the user's finger presses the area outside the light-transmitting area 1 and the light-transmitting area 2 on the first button, the light signal received by the optical receiver is a light signal that has not been absorbed, reflected and scattered by human tissue, and cannot be used to detect the user's heart rate, blood pressure and other health data. Therefore, when performing health data detection such as blood pressure detection, the electronic device 100 can determine whether the position of the user's finger on the first button is appropriate, and prompt the user to adjust the finger position when the position of the user's finger is inappropriate, so as to improve the accuracy of health data detection such as blood pressure. The method of determining whether the position of the user's finger on the first button is appropriate during blood pressure detection will be introduced in subsequent embodiments. It will not be expanded here.

[0171] The optical sensor in the first button may include one or more light receivers and one or more light transmitters. The first button may include one or more pressure sensors.

[0172] Optionally, a temperature sensor may be disposed within the first button. For example, the temperature sensor may be disposed near the pressure sensor. In this way, the temperature sensor can detect the temperature of the environment in which the pressure sensor is located. Sudden temperature changes may cause the pressure reading of the pressure sensor to change significantly, resulting in errors in the pressure data. The electronic device 100 may correct the pressure data based on the temperature detected by the temperature sensor to reduce errors in the pressure data.

[0173] The positions of the temperature sensor, ECG electrode, optical receiver, optical transmitter, and pressure sensor in the first button shown in FIG3A are merely illustrative and should not be construed as limiting this application. The first button may be provided with more or fewer sensors, including pressure sensors, bioelectric sensors, optical sensors, and temperature sensors.

[0174] In the electronic device 100 , in addition to the bioelectric sensor provided in the first button, one or more bioelectric sensors may also be provided at other locations other than the first button.

[0175] As shown in FIG3B , the electronic device 100 may be a smartwatch, and an ECG electrode may be provided on the bottom wall of the electronic device 100. When the electronic device 100 is in a wearable state, the ECG electrode provided on the bottom wall can detect a bioelectric signal. If the user places a finger on the first button, the ECG electrode in the first button can also detect a bioelectric signal. When the ECG electrode in the first button and the ECG electrode provided on the bottom wall simultaneously detect a bioelectric signal, the electronic device 100 can determine that the ECG electrode in the first button and the ECG electrode provided on the bottom wall are in a conductive state.

[0176] FIG3C exemplarily shows a schematic diagram of the pressure sensor provided in the first button under the action of an external force.

[0177] The first button may be provided with one or more pressure sensors. For example, the pressure sensors provided in the first button may include pressure sensor 1 and pressure sensor 2 shown in FIG3C . Pressure sensor 1 and pressure sensor 2 may be resistive pressure sensors. Pressure sensor 1 and pressure sensor 2 may each include a resistance strain gauge.

[0178] As shown in Figure 3C, when no external force acts on the first button, neither pressure sensor 1 nor pressure sensor 2 is deformed. When an external force acts on the first button, the pressure sensor set in the first button will be deformed. For example, if the above-mentioned external force acts on the position corresponding to pressure sensor 1 on the first button, pressure sensor 1 will be deformed. The position where the above-mentioned external force acts is close to the position corresponding to pressure sensor 2. Therefore, pressure sensor 2 will also be deformed. It can be seen from Figure 3C that the deformation of pressure sensor 1 is greater than that of pressure sensor 2. The greater the external force applied to the pressure sensor, the greater the deformation of the pressure sensor, and therefore the greater the pressure data detected by the pressure sensor. That is, the electronic device 100 can determine the pressing force of the touch operation acting on the first button based on the pressure data of the pressure sensor in the first button.

[0179] Furthermore, when external forces continue to act, the resistive pressure sensor will continue to deform. Therefore, the electronic device 100 can determine the moment a touch operation is applied to the first button and the duration of the touch operation based on the pressure data. When multiple external forces act on the first button, the resistive pressure sensor will deform multiple times. Therefore, the electronic device 100 can determine the number of times the first button is pressed over a period of time based on the pressure data.

[0180] It can be seen that when multiple pressure sensors are provided in the first button, the electronic device 100 can determine the pressing position of the touch operation on the first button according to the pressure data detected by the multiple pressure sensors.

[0181] The pressure sensor in the first button is not limited to a resistive pressure sensor. Other types of pressure sensors may also be used. Based on the pressure data detected by these other types of pressure sensors, the electronic device 100 may also detect one or more data items, such as the pressing force, pressing time, pressing duration, number of presses, and pressing position, of the touch operation on the first button.

[0182] FIG3D exemplarily shows a schematic diagram of the optical sensor in the first key detecting a photocurrent signal.

[0183] An optical sensor is provided in the first button. The optical sensor may include a light emitter and a light receiver. The optical sensor may include one or more light receivers. For example, the optical sensor may include light receiver 1 and light receiver 2 as shown in FIG3D . The light emitter may emit a light signal. Light receivers 1 and 2 may receive reflected or scattered light signals and generate a photocurrent signal based on the received light signals.

[0184] When a finger touches the first button and covers the corresponding positions of the light emitter, light receiver 1, and light receiver 2, the light signal emitted by the light emitter can be absorbed, reflected, and scattered by the finger's skin, the blood in the finger's blood vessels, muscles, bones, and other tissues. The amount of light signal received by light receivers 1 and 2 after the finger touches the first button is different from the amount of light signal received by light receivers 1 and 2 when the first button is not touched. Specifically, the amount of light signal received by light receivers 1 and 2 increases when the finger touches the first button compared to when the first button is not touched. Therefore, when a touch operation is performed on the first button, the signal strength of the photocurrent signal detected by the optical sensor in the first button increases.

[0185] Furthermore, the volume of blood in blood vessels changes during cardiac contraction and diastole, and the optical signal absorbed by the blood in the vessels also changes. Therefore, when a finger touches the first key, the amount of optical signal received by optical receivers 1 and 2 changes with cardiac contraction and diastole. In other words, the signal strength of the photocurrent signal detected by the optical sensor in the first key changes with cardiac contraction and diastole.

[0186] It can be seen that when the touch operation continues to act on the first button, the light receiver in the optical sensor will continue to receive the light signal absorbed, reflected and scattered by human tissue (such as human skin, blood, muscle, bone, etc.), and the photocurrent signal intensity detected by the optical sensor will continue to be at a high state. Therefore, the electronic device 100 can determine the moment when the touch operation acts on the first button and the pressing duration of the touch operation based on the photocurrent signal. When the user touches the first button multiple times, the photocurrent signal intensity detected by the optical sensor will increase and then decrease multiple times. Therefore, the electronic device 100 can determine the number of times the first button is pressed within a period of time based on the photocurrent signal.

[0187] In some embodiments, a plurality of light receivers are provided in the optical sensor. For example, light receiver 1 and light receiver 2 are shown in FIG3D . When the position corresponding to light receiver 1 on the first key is touched by a finger before the position corresponding to light receiver 2 on the first key, light receiver 1 can receive the light signal absorbed, reflected and scattered by human tissue before light receiver 2. In other words, the amount of light signal received by light receiver 1 increases before the amount of light signal received by light receiver 2. The light signal that can reflect the user's heart rate received by light receiver 1 has a phase advance compared to the light signal that can reflect the user's heart rate received by light receiver 2. Therefore, the electronic device 100 can determine the pressing position of the touch operation on the first key based on the photocurrent signals detected by multiple light receivers.

[0188] In some embodiments, as the pressure applied by the touch operation on the first button changes, the photocurrent signal detected by the optical sensor also changes accordingly. Specifically, the smaller the pressure applied by the touch operation on the first button, the flatter the waveform of the photocurrent signal, and the weaker the signal strength of the photocurrent signal. The greater the pressure applied by the touch operation on the first button, the sharper the waveform of the photocurrent signal, and the stronger the signal strength of the photocurrent signal. Therefore, the electronic device 100 can determine the pressure applied by the touch operation on the first button based on the photocurrent signal.

[0189] In some embodiments, the electronic device 100 may combine multiple sensors provided in the first button to detect whether a touch operation is performed on the first button.

[0190] FIG4 exemplarily shows a method for detecting false touches of a key.

[0191] The sensor provided in the first button may include a pressure sensor, a bioelectric sensor, an optical sensor, and a temperature sensor. As shown in FIG4 , the false touch detection method may include steps S411 to S416.

[0192] S411: Determine whether the pressure data detected by the pressure sensor in the first button is greater than a pressure threshold.

[0193] When an external force acts on the first button, the pressure data detected by the pressure sensor in the first button will change. Compared to when the first button is accidentally touched or affected by ambient temperature changes, the pressure data detected by the pressure sensor when the first button is being touched will be more stable and will be greater than a preset pressure threshold during the time period of the touch operation. The electronic device 100 can determine whether the pressure data is greater than the pressure threshold to determine whether there is no touch operation on the first button.

[0194] If the pressure data detected by the pressure sensor in the first button is less than or equal to the pressure threshold, the electronic device 100 may execute step S416, that is, the electronic device 100 may determine that there is no touch operation on the first button.

[0195] In some embodiments, the pressure data used for false touch detection may be detected by the pressure sensor in the first button over a period of time. For example, the period of time may be 100 milliseconds (ms), 200 ms, etc. If the pressure data within this period of time is greater than the pressure threshold, the electronic device 100 may execute step S416. This can reduce the impact of sudden changes in pressure data caused by accidental contact with the first button or changes in ambient temperature on the accuracy of false touch detection.

[0196] In some embodiments, only one pressure sensor is provided in the first button. Then the above-mentioned pressure data may be detected by the only pressure sensor in the first button. Alternatively, multiple pressure sensors are provided in the first button. Then the above-mentioned pressure data may include pressure data detected by one or more pressure sensors among the multiple pressure sensors. For example, pressure sensor 1 and pressure sensor 2 are provided in the first button. The pressure data detected by pressure sensor 1 in the time period of 0-50ms is greater than the pressure threshold, while the pressure data detected in the time period of 51-100ms is less than the pressure threshold. The pressure data detected by pressure sensor 2 in the time period of 0-50ms is less than the pressure threshold, while the pressure data detected in the time period of 51-100ms is greater than the pressure threshold. The above situation can indicate that the pressure data detected by the pressure sensor in the first button in the time period of 0-100ms is greater than the pressure threshold.

[0197] The present application does not limit the value of the above pressure threshold. The above pressure threshold can be referred to as the first pressure threshold.

[0198] If the pressure data is greater than the pressure threshold, the electronic device 100 may execute the following step S412 , which can be combined with the bioelectric sensor in the first button to more accurately determine whether a touch operation has been performed on the first button.

[0199] S412: Determine whether another bioelectric sensor disposed outside the first button is electrically connected to the bioelectric sensor in the first button.

[0200] In some embodiments, the other bioelectric sensor disposed outside the first button may be a bioelectric sensor disposed on the bottom wall of the electronic device 100 (see FIG. 3B ). The present embodiment of the application does not limit the location of the other bioelectric sensor. When the other bioelectric sensor and the bioelectric sensor in the first button both contact the user's skin, the other bioelectric sensor and the bioelectric sensor in the first button can both detect bioelectric signals. That is, the other bioelectric sensor is electrically conductive to the bioelectric sensor in the first button.

[0201] For example, electronic device 100 is a smartwatch. A bioelectric sensor is disposed on the bottom wall of the smartwatch. When the smartwatch is worn, the bioelectric sensor disposed on the bottom wall of the smartwatch can detect a bioelectric signal. When a touch operation is performed on a first button, the bioelectric sensor in the first button can detect the bioelectric signal. Therefore, the bioelectric sensor disposed on the bottom wall of the smartwatch and the bioelectric sensor in the first button are electrically connected, indicating that a touch operation has been performed on the first button.

[0202] If the other bioelectric sensor is not electrically connected to the bioelectric sensor in the first button, the electronic device 100 may execute the following step S416 .

[0203] If the other bioelectric sensor is connected to the bioelectric sensor in the first button, the electronic device 100 may execute step S413. This may be achieved by combining the pressure sensor and the bioelectric sensor with the optical sensor in the first button to more accurately determine whether a touch operation has occurred on the first button.

[0204] It should be noted that the time at which the pressure data is collected in step S411 and the time at which the bioelectric signal used to determine whether the bioelectric sensor is conductive in step S412 is collected can be the same or similar. The aforementioned same or similar time periods can include two time periods being exactly the same or two time periods being interlaced and intersecting. In other words, both the pressure sensor and the bioelectric sensor in the first button can collect data in real time. When it is determined that the pressure data detected by the pressure sensor in the first button is greater than the pressure threshold, the electronic device 100 can obtain the bioelectric signal detected by the bioelectric sensor in the first button during the time period when the pressure data greater than the pressure threshold was detected. In this way, the electronic device 100 can determine whether both the conditions of the pressure sensor in the first button detecting pressure data greater than the pressure threshold and the bioelectric sensor in the first button being conductive with the other bioelectric sensor are simultaneously met. It will be appreciated that the simultaneous satisfaction of these two conditions can more accurately indicate that a touch operation has occurred on the first button.

[0205] S413: Determine whether the photocurrent signal intensity detected by the optical sensor in the first button is greater than a signal intensity threshold.

[0206] Because the signal strength of the photocurrent signal when the first button is being touched is greater than the signal strength of the photocurrent signal when the first button is not being touched, the electronic device 100 can determine whether a touch operation has been performed on the first button by determining whether the photocurrent signal strength is greater than a signal strength threshold. The present embodiment does not limit the value of the above-mentioned signal strength threshold. The above-mentioned signal strength threshold may be referred to as a first signal strength threshold.

[0207] If the photocurrent signal strength is less than or equal to the signal strength threshold, the electronic device 100 may execute the following step S416 .

[0208] If the photocurrent signal strength is greater than the signal strength threshold, the electronic device 100 may execute step S414. This may be achieved by combining the pressure sensor, bioelectric sensor, and optical sensor with the temperature sensor in the first button to more accurately determine whether a touch operation has occurred on the first button.

[0209] In some embodiments, the optical sensor in the first button may include only one light receiver. The above-mentioned photocurrent signal strength may be determined by the optical sensor based on the light signal received by its only light receiver. Alternatively, the optical sensor in the first button may include multiple light receivers. The above-mentioned photocurrent signal strength may be determined by the optical sensor based on the light signal received by one or more of its multiple light receivers. It will be understood that the amount of light signals received by these multiple light receivers may vary as the position of the touch operation on the first button changes. When it is determined that the photocurrent signal strength is greater than the signal strength threshold based on the light signals received by these multiple light receivers in multiple different time periods, the electronic device 100 can determine that the photocurrent signal strength detected by the optical sensor in the first button in these multiple different time periods is greater than the signal strength threshold.

[0210] It should be noted that the time at which the photocurrent signal intensity is collected in step S413 can be the same as or similar to the time at which the pressure data is collected in step S411 and the time at which the bioelectric signal used to determine whether the bioelectric sensor is conductive is collected in step S412. In other words, the pressure sensor, bioelectric sensor, and optical sensor in the first button can all collect data in real time. When it is determined that the pressure data detected by the pressure sensor in the first button is greater than the pressure threshold and that the bioelectric sensor in the first button is conductively connected to the other bioelectric sensor, the electronic device 100 can obtain the photocurrent signal detected by the optical sensor in the first button during the time period when the pressure data greater than the pressure threshold was detected or during the time period when the bioelectric sensor was conductively connected. In this way, the electronic device 100 can determine whether the three conditions are simultaneously met: the pressure data greater than the pressure threshold detected by the pressure sensor in the first button, the conductively connected bioelectric sensor in the first button and the other bioelectric sensor, and the photocurrent signal intensity detected by the optical sensor in the first button greater than the signal intensity threshold. It is understood that the simultaneous satisfaction of these three conditions can more accurately indicate that a touch operation has occurred on the first button.

[0211] S414: Determine whether the change in temperature data detected by the temperature sensor in the first button is greater than a temperature change threshold.

[0212] When a finger touches the first button, the temperature data detected by the temperature sensor in the first button will change due to the temperature of the finger. The electronic device 100 can obtain the temperature data detected by the temperature sensor in the first button over a period of time, and determine whether the change in the temperature data over this period of time is greater than the temperature change threshold. The change in the temperature data over this period of time can be the difference between the temperature data at the beginning and the temperature data at the end of this period of time. Alternatively, the change in the temperature data over this period of time can be the difference between the maximum temperature data and the minimum temperature data over this period of time. The embodiment of the present application does not limit the method for calculating the change in temperature data over this period of time.

[0213] If the change in the temperature data is less than or equal to the temperature change threshold, the electronic device 100 may execute the following step S416.

[0214] If the change in the temperature data is greater than the temperature change threshold, the electronic device 100 may execute the following step S415 .

[0215] It should be noted that the time when the temperature data is collected in step S414 can be the same as or similar to the time when the pressure data is collected in step S411, the time when the bioelectric signal used to determine whether the bioelectric sensor is conductive is collected in step S412, and the time when the photocurrent signal strength is collected in step S413. In other words, the pressure sensor, bioelectric sensor, optical sensor, and temperature sensor in the first button can all collect data in real time. When it is determined that the pressure data detected by the pressure sensor in the first button is greater than the pressure threshold, the bioelectric sensor in the first button is conductive with the other bioelectric sensor, and the photocurrent signal strength detected by the optical sensor in the first button is greater than the signal strength threshold, the electronic device 100 can obtain the temperature data detected by the temperature sensor in the first button during the time period when the pressure data greater than the pressure threshold is detected, or during the time period when the bioelectric sensor is conductive, or during the time period when the photocurrent signal with a signal strength greater than the signal strength threshold is detected. In this way, the electronic device 100 can determine whether four conditions are simultaneously met: the pressure sensor in the first button detects pressure data greater than a pressure threshold, the bioelectric sensor in the first button is electrically connected to the other bioelectric sensor, the photocurrent signal strength detected by the optical sensor in the first button is greater than a signal strength threshold, and the change in temperature data detected by the temperature sensor in the first button is greater than a temperature change threshold. In this understanding, the simultaneous satisfaction of these four conditions can more accurately indicate that a touch operation has occurred on the first button.

[0216] S415: Determine whether a touch operation is performed on the first button.

[0217] S416: Determine that it is an accidental touch event.

[0218] The embodiment of the present application does not limit the execution order of the above steps S411 to S414. Steps S411 to S414 can be executed simultaneously by the electronic device 100, or can be executed in sequence according to a preset sequence. For example, the electronic device 100 can first execute step S412, or can first execute step S413, or can first execute step S414. Optionally, the electronic device 100 can first execute one or more steps in steps S411 to S414, and then execute the remaining steps in steps S411 to S414 at the same time. Alternatively, the electronic device 100 can first execute one or more steps in steps S411 to S414 at the same time, and then execute the remaining steps in steps S411 to S414 in sequence according to a preset sequence.

[0219] One or more of steps S411 to S414 are optional. The electronic device 100 may determine that a touch operation has occurred on the first button when at least two of the following four conditions are met: the pressure sensor in the first button detects pressure data greater than a pressure threshold; the bioelectric sensor in the first button is electrically connected to the other bioelectric sensor; the photocurrent signal strength detected by the optical sensor in the first button is greater than a signal strength threshold; and the change in temperature data detected by the temperature sensor in the first button is greater than a temperature change threshold.

[0220] In some embodiments, the above-mentioned false touch detection method may not include step S414. That is, the electronic device 100 can use the pressure sensor, bioelectric sensor, and optical sensor in the first button to detect whether a touch operation is performed on the first button. The electronic device 100 can execute steps S411 to S413. When the pressure sensor in the first button detects pressure data greater than the pressure threshold, the bioelectric sensor in the first button is connected to the above-mentioned other bioelectric sensor, and the photocurrent signal intensity detected by the optical sensor in the first button is greater than the signal intensity threshold, the three conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above three conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0221] In some embodiments, the above-mentioned false touch detection method may not include step S413. That is, the electronic device 100 can use the pressure sensor, bioelectric sensor, and temperature sensor in the first button to detect whether a touch operation is performed on the first button. The electronic device 100 can execute steps S411, S412, and S414. When the pressure sensor in the first button detects pressure data greater than the pressure threshold, the bioelectric sensor in the first button is connected to the above-mentioned other bioelectric sensor, and the change in temperature data detected by the temperature sensor in the first button is greater than the temperature change threshold, these three conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above three conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0222] In some embodiments, the above-mentioned false touch detection method may not include step S412. That is, the electronic device 100 can use the pressure sensor, optical sensor, and temperature sensor in the first button to detect whether a touch operation is performed on the first button. The electronic device 100 can execute steps S411, S413, and S414. When the pressure sensor in the first button detects pressure data greater than the pressure threshold, the photocurrent signal intensity detected by the optical sensor in the first button is greater than the signal intensity threshold, and the change in temperature data detected by the temperature sensor in the first button is greater than the temperature change threshold, these three conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above three conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0223] In some embodiments, the above-mentioned false touch detection method may not include step S411. That is, the electronic device 100 can use the bioelectric sensor, optical sensor, and temperature sensor in the first button to detect whether a touch operation is performed on the first button. The electronic device 100 can execute steps S412 to S414. When the bioelectric sensor in the first button is connected to the above-mentioned other bioelectric sensor, the photocurrent signal intensity detected by the optical sensor in the first button is greater than the signal intensity threshold, and the change in temperature data detected by the temperature sensor in the first button is greater than the temperature change threshold, these three conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above three conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0224] In some embodiments, the above-mentioned false touch detection method may not include steps S413 and S414. The electronic device 100 can use the pressure sensor and bioelectric sensor in the first button to detect whether a touch operation is performed on the first button. That is, the electronic device 100 can execute steps S411 and S412. When the pressure sensor in the first button detects pressure data greater than the pressure threshold, and the bioelectric sensor in the first button is connected to the other bioelectric sensor mentioned above, these two conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above two conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0225] In some embodiments, the above-mentioned false touch detection method may not include steps S412 and S414. The electronic device 100 can use the pressure sensor and the optical sensor in the first button to detect whether a touch operation is performed on the first button. That is, the electronic device 100 can execute steps S411 and S413. When the pressure sensor in the first button detects pressure data greater than the pressure threshold, and the photocurrent signal intensity detected by the optical sensor in the first button is greater than the signal intensity threshold, these two conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above two conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0226] In some embodiments, the above-mentioned false touch detection method may not include steps S412 and S413. The electronic device 100 can use the pressure sensor and temperature sensor in the first button to detect whether a touch operation is performed on the first button. That is, the electronic device 100 can execute steps S411 and S414. When the pressure sensor in the first button detects pressure data greater than the pressure threshold, and the change in temperature data detected by the temperature sensor in the first button is greater than the temperature change threshold, these two conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above two conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0227] In some embodiments, the above-mentioned false touch detection method may not include steps S411 and S414. The electronic device 100 can use the optical sensor and the bioelectric sensor in the first button to detect whether a touch operation is performed on the first button. That is, the electronic device 100 can execute steps S412 and S413. When the bioelectric sensor in the first button is connected to the above-mentioned other bioelectric sensor, and the photocurrent signal intensity detected by the optical sensor in the first button is greater than the signal intensity threshold, these two conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above two conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0228] In some embodiments, the above-mentioned false touch detection method may not include steps S411 and S412. The electronic device 100 can use the optical sensor and the temperature sensor in the first button to detect whether a touch operation is performed on the first button. That is, the electronic device 100 can execute steps S413 and S414. When the photocurrent signal intensity detected by the optical sensor in the first button is greater than the signal intensity threshold, and the change in the temperature data detected by the temperature sensor in the first button is greater than the temperature change threshold, these two conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above two conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0229] In some embodiments, the above-mentioned false touch detection method may not include steps S411 and S413. The electronic device 100 can use the bioelectric sensor and temperature sensor in the first button to detect whether a touch operation is performed on the first button. That is, the electronic device 100 can execute steps S412 and S414. When the bioelectric sensor in the first button is connected to the above-mentioned other bioelectric sensor, and the change in the temperature data detected by the temperature sensor in the first button is greater than the temperature change threshold, these two conditions are met at the same time, the electronic device 100 can determine that a touch operation is performed on the first button. Otherwise, if any one of the above two conditions is not met, the electronic device 100 can determine that no touch operation is performed on the first button.

[0230] As can be seen from the above method, electronic device 100 can combine at least two sensors in a first button to detect whether a touch operation has been performed on the first button. This can reduce the possibility of misidentifying a user's key press behavior due to the use of only a single type of sensor. The above method can reduce the possibility of misidentifying an accidentally touched button as a user's touch operation and more accurately identify a touch operation on a button.

[0231] In some embodiments, when it is determined that a touch operation is performed on the first button, the electronic device 100 may further identify the type of the touch operation. The type of touch operation may include a press operation, a slide operation, and the like. Then, the electronic device 100 may perform the task corresponding to the touch operation according to the type of the touch operation. The electronic device 100 may use one or more of pressure data, photocurrent signals, and bioelectric signals to identify the type of the touch operation. For example, when the sensor used to determine that a touch operation is performed on the first button includes a pressure sensor, the electronic device 100 may identify the type of the touch operation based on the pressure data detected by the pressure sensor. When the sensor used to determine that a touch operation is performed on the first button includes an optical sensor, the electronic device 100 may identify the type of the touch operation based on the photocurrent signal detected by the optical sensor. When the sensor used to determine that a touch operation is performed on the first button includes a bioelectric sensor, the electronic device 100 may identify the type of the touch operation based on the bioelectric signal detected by the bioelectric sensor.

[0232] The following describes in detail the method for detecting touch operation types provided by this application.

[0233] In some embodiments, the electronic device 100 may detect the type of touch operation performed on the first button based on a pressure sensor provided in the first button.

[0234] FIG5 exemplarily shows a schematic diagram of the position distribution of pressure sensors in the first button.

[0235] As shown in Figure 5, the pressure sensors provided in the first button may include pressure sensor 1, pressure sensor 2, pressure sensor 3, pressure sensor 4, pressure sensor 5, and pressure sensor 6. Pressure sensors 1 to 6 may be arranged in three rows and two columns. Pressure sensor 1 and pressure sensor 2 may be located in the first row. Pressure sensor 3 and pressure sensor 4 may be located in the second row, respectively, in areas 3 and 4. Pressure sensor 5 and pressure sensor 6 may be located in the third row, respectively, in areas 5 and 6. The corresponding position of pressure sensor 1 on the first button may be located in area 1. The corresponding position of pressure sensor 2 on the first button may be located in area 2. The corresponding position of pressure sensor 3 on the first button may be located in area 3. The corresponding position of pressure sensor 4 on the first button may be located in area 4. The corresponding position of pressure sensor 5 on the first button may be located in area 5. The corresponding position of pressure sensor 6 on the first button may be located in area 6. Areas 1 to 6 may be areas on the touch surface of the first button.

[0236] The corresponding position of a pressure sensor on the first button can include the location where the pressure sensor detects a corresponding pressure value when the button is pressed. For a resistive pressure sensor, the corresponding position of a resistive pressure sensor on the first button can include the location where the resistive pressure sensor produces a corresponding deformation when the button is pressed. For example, the corresponding position of pressure sensor 1 on the first button is located in area 1. When a pressing operation is performed on area 1 of the first button, pressure sensor 1 can detect the pressure generated by the pressing operation.

[0237] The position distribution of the pressure sensors 1 to 6 is merely an example of the present invention and should not be construed as limiting the present invention. The first button may also include more or fewer pressure sensors, not limited to the pressure sensors 1 to 6.

[0238] FIG. 6A exemplarily shows a method for detecting a touch operation type based on pressure data.

[0239] S611 : k pressure sensors in the first button detect pressure data successively, and the pressure data is greater than a pressure threshold.

[0240] As can be seen from the pressure sensors shown in Figures 3C and 5 above, the pressure data detected by the pressure sensor in the first button is related to the location where the touch operation is performed on the first button. When the location where the touch operation is performed on the first button changes, the pressure data detected by the pressure sensor in the first button also changes accordingly.

[0241] For example, when the touch operation slides from area 1 to area 2 on the first button, pressure sensor 1 detects pressure data greater than the pressure threshold before pressure sensor 2. When the touch operation is pressed on area 1, the pressure data detected by pressure sensor 1 gradually increases. As the touch operation slides from area 1 to area 2, the pressure data detected by pressure sensor 1 gradually decreases, while the pressure data detected by pressure sensor 2 gradually increases.

[0242] In some embodiments, when k pressure sensors in the first button successively detect pressure data greater than a pressure threshold, the electronic device 100 may determine that the touch operation on the first button is a sliding operation, where k is an integer greater than 1.

[0243] If the pressure data detected by the pressure sensor of the first button is greater than the pressure threshold, it can indicate that there is a high probability that a touch operation has been performed on the first button, which can reduce the possibility of mis-touch of the first button being recognized as a touch operation by the user.

[0244] The pressure threshold in step S611 may be the same as or different from the pressure threshold in step S411 shown in FIG4 . This embodiment of the present application does not limit this. The pressure threshold in step S611 may be a second pressure threshold.

[0245] S612: Determine a sliding direction of the touch operation on the first button according to the position distribution of the k pressure sensors and the time when the k pressure sensors detect pressure data greater than a pressure threshold.

[0246] Based on the position distribution of the k pressure sensors and the moment when the k pressure sensors detect pressure data greater than the pressure threshold, the electronic device 100 can determine the positions of the user's sliding operations on the first button in sequence, and then determine the sliding direction of the sliding operation.

[0247] The above-mentioned sliding directions may include, but are not limited to: sliding to the left, sliding to the right, sliding upward, sliding downward, sliding in the left oblique downward direction, sliding in the left oblique upward direction, sliding in the right oblique downward direction, sliding in the right oblique upward direction, etc. Among them, sliding operations in different sliding directions can be used to trigger the electronic device 100 to perform different tasks. For example, a sliding operation of sliding to the left on the first button can be used to realize the task of controlling the mobile phone to take a remote photo. A sliding operation of sliding upward on the first button can be used to realize the task of controlling music playback. The embodiment of the present application does not limit the tasks corresponding to sliding operations in different sliding directions.

[0248] For example, the k pressure sensors mentioned above are pressure sensor 1, pressure sensor 3, and pressure sensor 5 shown in Figure 5. The moment when pressure sensor 1 detects pressure data greater than the pressure threshold is t1. The moment when pressure sensor 3 detects pressure data greater than the pressure threshold is t2. The moment when pressure sensor 5 detects pressure data greater than the pressure threshold is t3. t1 is earlier than t2, and t2 is earlier than t3. And the time difference between t1 and t2, and the time difference between t2 and t3 are both less than the preset time difference threshold. Based on the position distribution of pressure sensor 1, pressure sensor 3, and pressure sensor 5, as well as t1, t2, and t3, the electronic device 100 can determine that the sliding direction of the touch operation acting on the first button is a downward slide. That is, the touch operation acting on the first button is a sliding operation.

[0249] For another example, the k pressure sensors are pressure sensor 1, pressure sensor 3, and pressure sensor 5 shown in Figure 5. The moment when pressure sensor 1 detects pressure data greater than the pressure threshold is t4. The moment when pressure sensor 3 detects pressure data greater than the pressure threshold is t5. The moment when pressure sensor 5 detects pressure data greater than the pressure threshold is t6. t4 is later than t5, and t5 is later than t6. And the time difference between t4 and t5, and the time difference between t5 and t6 are both less than the preset time difference threshold. Based on the position distribution of pressure sensor 1, pressure sensor 3, and pressure sensor 5, as well as t4, t5, and t6, the electronic device 100 can determine that the sliding direction of the touch operation acting on the first button is an upward slide. That is, the touch operation acting on the first button is an upward slide operation.

[0250] It can be seen from the above method that when multiple pressure sensors are provided in the first button, the electronic device 100 can detect the sliding direction of the touch operation on the first button, and then perform a corresponding task according to the sliding direction.

[0251] In some embodiments, the electronic device 100 can identify whether the touch operation acting on the first button is a pressing operation or a sliding operation based on multiple pressure sensors in the first button. Among them, if the touch operation is a pressing operation, the position where the touch operation acts on the first button is usually only one. For example, the pressing operation presses on area 1 as shown in Figure 5, or on area 3, and so on. If the touch operation is a sliding operation, the position where the touch operation acts on the first button is variable, and there are multiple ones. For example, the sliding operation acts on area 1, area 3, and area 5 as shown in Figure 5 in sequence. Therefore, the changing trend of the pressure data of multiple pressure sensors when a pressing operation acts on the first button is different from the changing trend of the pressure data of multiple pressure sensors when a sliding operation acts on the first button.

[0252] When detecting that the pressure data from multiple pressure sensors on the first button show a trend of increasing and then decreasing simultaneously, the electronic device 100 can determine that the touch operation on the first button is a press operation. Optionally, the multiple pressure sensors can be adjacent pressure sensors on the first button.

[0253] When detecting a trend of decreasing pressure data from one pressure sensor in a first button and increasing pressure data from another pressure sensor, the electronic device 100 can determine that the touch operation on the first button is a sliding operation. Optionally, the one pressure sensor and the other pressure sensor can be adjacent pressure sensors in the first button. In other words, if the pressure data from multiple pressure sensors in the first button show opposite changing trends over a period of time, it can be indicated that a sliding operation has occurred on the first button.

[0254] It is understandable that when a pressing operation is performed on the first button, multiple pressure sensors in the first button are pressed and released simultaneously. Therefore, the pressure data of these multiple pressure sensors will show the same change trend at the same time. When a sliding operation is performed on the first button, multiple pressure sensors in the first button are pressed successively. When the sliding operation slides from the area corresponding to one pressure sensor to the area corresponding to another pressure sensor, the pressure data of one pressure sensor decreases, while the pressure data of the other pressure sensor increases. Therefore, the pressure data of these multiple pressure sensors will show opposite change trends within the same time period.

[0255] When it is determined that the touch operation on the first button is a pressing operation, the electronic device 100 can perform the task corresponding to the pressing operation. When it is determined that the touch operation on the first button is a sliding operation, the electronic device 100 can perform the task corresponding to the sliding operation. The task corresponding to the pressing operation and the task corresponding to the sliding operation may be different. Optionally, in the case where the touch operation is a sliding operation, the electronic device 100 can identify the type of sliding operation, that is, the sliding direction. For example, the electronic device 100 identifies the sliding direction of the sliding operation based on the pressure data (refer to the method shown in Figure 6A above). In the case where the touch operation is a pressing operation, the electronic device 100 can identify the type of pressing operation (such as a long press operation, a short press operation, a light press operation, a heavy press operation, etc.). Sliding operations in different sliding directions may correspond to different tasks. Different types of pressing operations may also correspond to different tasks.

[0256] As can be seen, based on the one or more sensors in the first button, the electronic device 100 can identify various types of touch operations on the first button. In this way, the first button supports a variety of user interaction methods. The user can perform various touch operations on the first button to access corresponding functions. The one or more sensors set in the first button are not affected by water. When a user carries the electronic device 100 underwater, the user can still control the electronic device 100 underwater using the first button.

[0257] In some embodiments, the electronic device 100 can determine the press duration of a touch operation on the first button based on pressure data detected by a pressure sensor in the first button. Based on the press duration, the electronic device 100 can determine the type of touch operation. The types of touch operations can include press operations with different press durations. For example, a short press operation, a long press operation, and so on. This application specifically describes the classification of touch operations into short press operations and long press operations based on press duration as an example.

[0258] FIG. 6B exemplarily shows another method for detecting the type of touch operation based on pressure data.

[0259] S621: The pressure sensor in the first button detects pressure data, and the pressure data is greater than a pressure threshold.

[0260] As can be seen from the above embodiments, if the pressure data is greater than the pressure threshold, it can be seen that the probability of a touch operation being performed on the first button is high, which can reduce the situation where an accidental touch of the first button is recognized as a user's touch operation.

[0261] S622: Determine whether the duration for which the pressure data is greater than the pressure threshold exceeds duration 1.

[0262] The electronic device 100 can determine the pressing duration of the touch operation based on the pressure data of the pressure sensor in the first button. The pressing duration of the touch operation is also the duration during which the pressure data is greater than the pressure threshold.

[0263] If the duration of the pressure data being greater than the pressure threshold exceeds duration 1, the electronic device 100 may execute the following step S623, that is, a long press operation is performed on the first button.

[0264] If the duration of the pressure data being greater than the pressure threshold does not exceed duration 1, the electronic device 100 may execute the following step S624: That is, a short press operation is performed on the first button.

[0265] The duration 1 may be preset. This application does not limit the value of the duration 1.

[0266] S623: Determine that the touch operation on the first button is a long press operation.

[0267] S624: Determine whether the touch operation on the first button is a short press operation.

[0268] S625: The pressure sensor in the first button detects pressure data for the second time within the preset time period, and the pressure data is greater than the pressure threshold.

[0269] In some embodiments, the touch operation on the first button can be a continuous double press operation. If the pressure sensor in the first button detects pressure data greater than a pressure threshold twice in a preset time period, the touch operation can be described as a continuous double press operation. The continuous detection of pressure data greater than the pressure threshold twice can include the pressure data detected by the pressure sensor in the first button first increasing to greater than the pressure threshold, then decreasing to less than the pressure threshold, and then increasing again to greater than the pressure threshold.

[0270] This application does not limit the value of the above-mentioned preset time period. For example, the preset time period can be 500ms, or 1s, etc.

[0271] S626: Determine whether the duration of the second detection of the pressure data being greater than the pressure threshold exceeds duration 1.

[0272] The electronic device 100 may determine, based on the pressure data from the pressure sensor in the first button, the duration of the first detection of the pressure data being greater than the pressure threshold and the duration of the second detection of the pressure data being greater than the pressure threshold. The electronic device 100 may determine whether the duration of the first detection of the pressure data being greater than the pressure threshold exceeds duration 1 (refer to step S622 above), and determine whether the duration of the second detection of the pressure data being greater than the pressure threshold exceeds duration 1.

[0273] If the duration of the second detected pressure data being greater than the pressure threshold exceeds duration 1, it can be determined that the second press in the touch operation was a long press. If the duration of the second detected pressure data being greater than the pressure threshold does not exceed duration 1, it can be determined that the second press in the touch operation was a short press.

[0274] If the first press in the touch operation is a short press (ie, step S624 above) and the second press is a long press, the electronic device 100 may execute step S627 below. That is, the first button is subjected to consecutive short presses and long presses.

[0275] If the first press in the touch operation is a short press and the second press is a short press, the electronic device 100 may execute step S628, that is, two consecutive short press operations are performed on the first button (for example, a double-click operation on the first button).

[0276] S627: Determine whether the touch operation on the first button is a continuous short press operation and a long press operation.

[0277] S628: Determine that the touch operation on the first button is two consecutive short press operations.

[0278] In some embodiments, the electronic device 100 can determine whether the touch operation on the first button is a press operation. In the case of a press operation during the touch operation, the electronic device 100 can determine the press duration of the touch operation according to the method shown in Figure 6B above, thereby determining whether the touch operation is a short press operation or a long press operation.

[0279] In some embodiments, the electronic device 100 can determine the pressing force of a touch operation on the first button based on pressure data detected by a pressure sensor in the first button. Based on the pressing force, the electronic device 100 can determine the type of touch operation. The types of touch operations can include pressing operations with different pressing forces. For example, a light press operation, a hard press operation, and so on. This application specifically describes the classification of touch operations into light press operations and hard press operations based on the pressing force as an example.

[0280] FIG. 6C exemplarily shows another method for detecting the type of touch operation based on pressure data.

[0281] S631: The pressure sensor in the first button detects pressure data.

[0282] S632: Determine, based on the magnitude of the pressure data, whether the touch operation on the first button is a light press operation or a heavy press operation.

[0283] The electronic device 100 can determine whether the pressure data belongs to the first pressure range or the second pressure range based on the magnitude of the pressure data. The first pressure range is smaller than the second pressure range. The first pressure range is greater than a preset pressure threshold. This can reduce the possibility of misidentifying the first button as a user's touch operation. The embodiments of the present application do not limit the magnitude and range of the first and second pressure ranges.

[0284] If the pressure data belongs to the first pressure range, the electronic device 100 may determine that the touch operation on the first button is a tap operation.

[0285] If the pressure data belongs to the second pressure range, the electronic device 100 may determine that the touch operation on the first button is a hard press operation.

[0286] Not limited to the first pressure range and the second pressure range, the electronic device 100 may further be divided into more pressure ranges to distinguish different levels of pressing operations according to the pressing intensity.

[0287] As can be seen from the method shown in Figures 6A to 6C above, the electronic device 100 can use the pressure sensor in the first button to identify various types of touch operations acting on the first button. In this way, the first button supports a variety of user interaction methods. The user can perform various touch operations on the first button to use the corresponding functions. The one or more sensors set in the first button may not be affected by the water medium. When the user carries the electronic device 100 underwater, the user can still control the electronic device 100 underwater through the first button.

[0288] In some embodiments, the electronic device 100 can detect the type of touch operation performed on the key based on an optical sensor provided in the key.

[0289] FIG7 exemplarily shows a schematic diagram of the position distribution of light emitters and light receivers included in the optical sensor in the first key.

[0290] An optical sensor may be provided in the first button. As shown in FIG7 , the optical sensor may include a light emitter, a light receiver 1, a light receiver 2, a light receiver 3, and a light receiver 4. Light receiver 1 and light receiver 2 may be distributed on one side of the light emitter. Light receiver 3 and light receiver 4 may be distributed on another layer of the light emitter. In some embodiments, the center distance between the light receiver and the light emitter included in the optical sensor may not exceed 15 mm. The embodiment of the present application does not limit the distance between the light receiver and the light emitter. The distance may depend on the power of the light emitter. The greater the power of the light emitter, the farther the light receiver can be from the light emitter. The optical sensor in the first button may include multiple light emitters. Not limited to the light receivers 1 to 4 shown in FIG7 , the optical sensor in the first button may include more or fewer light receivers.

[0291] In some embodiments, the optical transmitter can emit light with a wavelength greater than or equal to 940 nanometers (nm). Light with a wavelength greater than or equal to 940 nm is invisible to the naked eye. This prevents the optical signal emitted by the optical transmitter from affecting the user experience. The present embodiments do not limit the wavelength of the light emitted by the optical transmitter.

[0292] The position distribution of the optical transmitter and the optical receiver shown in FIG7 is merely an exemplary illustration of the present application and should not constitute a limitation to the present application.

[0293] FIG8A exemplarily shows a method for detecting the type of touch operation based on a photocurrent signal.

[0294] S811 , m optical receivers in the first key successively detect photocurrent signals whose signal strength is greater than a signal strength threshold.

[0295] As can be seen from the optical sensors shown in Figures 3D and 7 above, the amount of light signal received by the optical receiver in the first button is related to the location of the touch operation on the first button. When the location of the touch operation on the first button changes, the amount of light signal received by the optical receiver also changes. As the light signal changes, the intensity of the photocurrent signal also changes.

[0296] The photocurrent signal detected by an optical receiver may be a photocurrent signal determined based on the optical signal received by the optical receiver. The more optical signals an optical receiver receives, the stronger the signal strength of the photocurrent signal detected by the optical receiver.

[0297] Exemplarily, when the position where the touch operation acts on the first key slides from the position corresponding to light receiver 1 to the position corresponding to light receiver 2, light receiver 1 and light receiver 2 first receive the light signal absorbed, reflected, and scattered by human tissue. Light receiver 1 and light receiver 2 first detect a photocurrent signal having a signal strength greater than a signal strength threshold. When the touch operation is pressed on the position corresponding to light receiver 1 on the first key, the signal strength of the photocurrent signal detected by light receiver 1 gradually increases. As the touch operation slides from the position corresponding to light receiver 1 on the first key to the position corresponding to light receiver 2 on the first key, the signal strength of the photocurrent signal detected by light receiver 1 gradually decreases, and the signal strength of the photocurrent signal detected by light receiver 2 gradually increases.

[0298] In some embodiments, when m light receivers in the first button successively detect photocurrent signals with signal strengths greater than a signal strength threshold, the electronic device 100 may determine that the touch operation on the first button is a sliding operation, where m is an integer greater than 1.

[0299] The larger the signal strength of the photocurrent signal detected by the optical receiver in the first button, the higher the probability of a touch operation on the first button. This can reduce the possibility of mis-touch of the first button being recognized as a touch operation by the user.

[0300] The signal strength threshold in step S811 may be the same as or different from the signal strength threshold in step S413 shown in FIG4 . This embodiment of the present application does not limit this. The signal strength threshold in step S811 may be a second signal strength threshold.

[0301] S812: Determine a sliding direction of the touch operation on the first button according to the position distribution of the m light receivers and the time when the m light receivers detect the photocurrent signal with a signal strength greater than a signal strength threshold.

[0302] Based on the position distribution of the m optical receivers and the moment when the m optical receivers detect the photocurrent signal with a signal strength greater than the signal strength threshold, the electronic device 100 can determine the positions of the sliding operation on the first button in sequence, and then determine the sliding direction of the sliding operation.

[0303] For example, the m optical receivers described above may be optical receiver 1 and optical receiver 3 shown in FIG7 . Optical receiver 1 detects a photocurrent signal having a signal strength greater than a signal strength threshold at time t7. Optical receiver 3 detects a photocurrent signal having a signal strength greater than a signal strength threshold at time t8. t7 is earlier than t8, and the time difference between t7 and t8 is less than a preset time difference threshold. Based on the position distribution of optical receivers 1 and 3, as well as t7 and t8, electronic device 100 can determine that the sliding direction of the touch operation on the first button is a downward slide. That is, the touch operation on the first button is a downward slide.

[0304] It can be seen from the above method that when multiple light receivers are provided in the first button, the electronic device 100 can detect the sliding direction of the touch operation on the first button and then perform a corresponding task according to the sliding direction.

[0305] In some embodiments, the electronic device 100 can identify whether the touch operation on the first button is a press operation or a slide operation based on multiple light receivers in the first button. The changing trend of the photocurrent signal strength of the multiple light receivers when the first button is pressed is different from the changing trend of the photocurrent signal strength of the multiple light receivers when the first button is slided.

[0306] When detecting that the photocurrent signal strengths of multiple photoreceivers in the first key show a trend of increasing and then decreasing simultaneously, the electronic device 100 can determine that the touch operation on the first key is a press operation. Optionally, the multiple photoreceivers can be adjacent photoreceivers in the first key.

[0307] When detecting a trend of decreasing photocurrent signal strength at one optical receiver in the first key and increasing photocurrent signal strength at another optical receiver, the electronic device 100 can determine that the touch operation on the first key is a sliding operation. Optionally, the one optical receiver and the other optical receiver can be adjacent optical receivers in the first key. In other words, if the photocurrent signal strengths of multiple optical receivers in the first key show opposite changing trends over a period of time, it can be indicated that a sliding operation has occurred on the first key.

[0308] It is understandable that when a pressing operation is performed on the first button, multiple light receivers in the first button are pressed and released simultaneously. Therefore, the photocurrent signal intensities of these multiple light receivers will simultaneously show the same change trend. When a sliding operation is performed on the first button, multiple light receivers in the first button are pressed successively. When the sliding operation slides from the corresponding position of one light receiver on the first button to the corresponding position of another light receiver on the first button, the photocurrent signal intensity of the first light receiver decreases, while the photocurrent signal intensity of the other light receiver increases. Therefore, the photocurrent signal intensities of these multiple light receivers will show opposite change trends within the same time period.

[0309] It can be seen that the electronic device 100 can identify the pressing operation and sliding operation on the first button based on the optical sensor in the first button, and then perform the task corresponding to the corresponding touch operation. The above embodiment can improve the user interaction experience of the electronic device 100.

[0310] In some embodiments, the electronic device 100 can determine the pressing duration of the touch operation on the first button based on the photocurrent signal detected by the optical sensor in the first button. The photocurrent signal detected by the optical sensor may include a photocurrent signal detected by one or more light receivers included in the optical sensor. Based on the pressing duration, the electronic device 100 can determine the type of touch operation. The type of touch operation may include pressing operations with different pressing durations. For example, a short press operation, a long press operation, and the like. This application specifically illustrates the division of touch operations into short press operations and long press operations based on the pressing duration as an example.

[0311] FIG8B exemplarily shows another method for detecting the type of touch operation based on a photocurrent signal.

[0312] S821: The optical sensor in the first button detects a photocurrent signal, and the signal strength of the photocurrent signal is greater than a signal strength threshold.

[0313] As can be seen from the above embodiments, if the signal strength of the photocurrent signal is greater than the signal strength threshold, it can indicate that there is a high probability that a touch operation has been performed on the first key, which can reduce the situation where an accidental touch of the first key is recognized as a user's touch operation.

[0314] S822: Determine whether the duration during which the photocurrent signal intensity is greater than the signal intensity threshold exceeds duration 2.

[0315] The electronic device 100 can determine the touch operation pressing duration based on the photocurrent signal of the optical sensor in the first button. The touch operation pressing duration is the duration during which the signal strength of the photocurrent signal is greater than the signal strength threshold.

[0316] If the duration of the photocurrent signal strength being greater than the signal strength threshold exceeds duration 2, the electronic device 100 may execute the following step S823: That is, a long press operation is performed on the first button.

[0317] If the duration of the photocurrent signal strength being greater than the signal strength threshold does not exceed duration 2, the electronic device 100 may execute the following step S824: That is, a short press operation is performed on the first button.

[0318] The duration 2 may be preset. This application does not limit the value of the duration 2.

[0319] S823: Determine whether the touch operation on the first button is a long press operation.

[0320] S824: Determine whether the touch operation on the first button is a short press operation.

[0321] S825: The optical sensor in the first button detects for the second time within the preset time period that the signal strength of the photocurrent signal is greater than the signal strength threshold.

[0322] In some embodiments, the touch operation on the first button can be a continuous double press operation. If the optical sensor in the first button detects a photocurrent signal having a signal strength greater than a signal strength twice in a preset time period, it can be indicated that the touch operation is a continuous conjunction press operation. The above-mentioned two consecutive detections of a photocurrent signal having a signal strength greater than a signal strength threshold can include the photocurrent signal strength detected by the optical sensor in the first button first increasing to greater than the signal strength threshold, then decreasing to less than the signal strength threshold, and then increasing again to greater than the signal strength threshold.

[0323] This application does not limit the value of the above-mentioned preset time period. For example, the preset time period can be 500ms, or 1s, etc.

[0324] S826: Determine whether the duration of the second detection that the photocurrent signal intensity is greater than the signal intensity threshold exceeds duration 2.

[0325] The electronic device 100 may determine, based on the photocurrent signal of the optical sensor in the first key, the duration of the first detection of the photocurrent signal having a signal strength greater than the signal strength threshold and the duration of the second detection of the photocurrent signal having a signal strength greater than the signal strength threshold. The electronic device 100 may determine whether the duration of the first detection of the photocurrent signal having a signal strength greater than the signal strength threshold exceeds duration 2 (refer to step S822 above), and determine whether the duration of the second detection of the photocurrent signal having a signal strength greater than the signal strength threshold exceeds duration 2.

[0326] If the duration of the second detection of a photocurrent signal with a signal strength greater than the signal strength threshold exceeds duration 2, it can be determined that the second touch operation was a long press. If the duration of the second detection of a photocurrent signal with a signal strength greater than the signal strength threshold does not exceed duration 2, it can be determined that the second touch operation was a short press.

[0327] If the first press in the touch operation is a short press (ie, step S824 above) and the second press is a long press, the electronic device 100 may execute step S827 below. That is, the first button is subjected to consecutive short presses and long presses.

[0328] If the first press in the touch operation is a short press and the second press is a short press, the electronic device 100 may execute step S828, that is, two consecutive short press operations are performed on the first button (for example, a double-click operation on the first button).

[0329] S827: Determine whether the touch operation on the first button is a continuous short press operation and a long press operation.

[0330] S828: Determine that the touch operation on the first button is two consecutive short press operations.

[0331] In some embodiments, the electronic device 100 may determine whether the touch operation on the first button is a press operation. In the case of a press operation during the touch operation, the electronic device 100 may determine the press duration of the touch operation according to the method shown in FIG8B , thereby determining whether the touch operation is a short press operation or a long press operation.

[0332] In some embodiments, the electronic device 100 can determine the pressing force of a touch operation on the first button based on a photocurrent signal detected by an optical sensor in the first button. Based on the pressing force, the electronic device 100 can determine the type of touch operation. The type of touch operation can include pressing operations with different pressing forces, such as a light press, a hard press, and the like.

[0333] As can be seen from the optical sensor shown in Figure 3D above, the greater the pressure on the first button during the touch operation, the stronger the photocurrent signal intensity. The electronic device 100 can determine whether the photocurrent signal intensity belongs to the first signal intensity interval or the second signal intensity interval. The first signal intensity interval is smaller than the second signal intensity interval. The first signal intensity interval is greater than the preset signal intensity threshold. This can reduce the situation where an accidental touch of the first button is identified as a user's touch operation. The embodiment of the present application does not limit the size and range of the first signal intensity interval and the second signal intensity interval.

[0334] If the photocurrent signal strength belongs to the first signal strength range, the electronic device 100 may determine that the touch operation on the first button is a tap operation.

[0335] If the photocurrent signal strength belongs to the second signal strength range, the electronic device 100 may determine that the touch operation on the first button is a hard press operation.

[0336] Not limited to the first signal strength interval and the second signal strength interval, the electronic device 100 may further divide the signal strength intervals to distinguish pressing operations of different levels according to the pressing strength.

[0337] In some embodiments, since the greater the pressing force of the touch operation on the first button, the sharper the waveform of the photocurrent signal, the electronic device 100 can determine the pressing force of the touch operation based on the waveform of the photocurrent signal. The electronic device 100 can determine the sharpness of the waveform of the photocurrent signal. The greater the sharpness of the waveform, the sharper the waveform of the photocurrent signal. If the sharpness of the waveform of the photocurrent signal exceeds a preset sharpness threshold, the electronic device 100 can determine that a heavy press operation has occurred on the first button. If the sharpness of the waveform of the photocurrent signal does not exceed the preset sharpness threshold, the electronic device 100 can determine that a light operation has occurred on the first button.

[0338] As can be seen from the methods shown in FIG. 8A and FIG. 8B , the electronic device 100 can utilize the optical sensor in the first button to identify various types of touch operations on the first button. Thus, the first button supports a variety of user interaction methods. The user can perform various touch operations on the first button to access corresponding functions.

[0339] In some embodiments, the electronic device 100 can detect the type of touch operation performed on the key based on the bioelectric sensor set in the key.

[0340] As can be seen from step S412 shown in Figure 4 above, when a touch operation is performed on the first button, the bioelectric sensor in the first button can detect a bioelectric signal, and the bioelectric sensor in the first button is connected to another bioelectric sensor provided outside the first button. When it is determined that a touch operation is performed on the first button, the electronic device 100 can determine the pressing duration of the touch operation on the first button based on the bioelectric signal detected by the bioelectric sensor in the first button. Based on the pressing duration, the electronic device 100 can determine the type of touch operation. The type of touch operation can include pressing operations with different pressing durations. For example, a short press operation, a long press operation, and the like.

[0341] The pressing duration of the touch operation can be the duration of conduction between the bioelectric sensor in the first button and another bioelectric sensor provided outside the first button, that is, the duration of the bioelectric signal detected by the bioelectric sensor in the first button. The electronic device 100 can determine whether the pressing duration of the touch operation exceeds duration 3. If the pressing duration of the touch operation exceeds duration 3, the electronic device 100 can determine that the touch operation is a long press operation. If the pressing duration of the touch operation does not exceed duration 3, the electronic device 100 can determine that the touch operation is a short press operation.

[0342] This embodiment of the application does not limit the value of the above-mentioned duration 3.

[0343] Optionally, the electronic device 100 can detect whether the bioelectric sensor in the first button and another bioelectric sensor arranged outside the first button are turned on twice within a preset time period. The existence of the above two conductions can indicate that the touch operation acting on the first button is a continuous two-press operation. The electronic device 100 can detect the duration of the above two conductions. In the above two conductions, if the duration of the first conduction does not exceed duration 3, and the duration of the second conduction exceeds duration 3, the electronic device 100 can determine that there are continuous short press operations and long press operations on the first button. If the duration of the above two conductions does not exceed duration 3, the electronic device 100 can determine that there are two consecutive short press operations on the first button (for example, the operation of double-clicking the first button).

[0344] In some embodiments, the first button may be provided with multiple bioelectric sensors (e.g., multiple ECG electrodes). The electronic device 100 may determine whether the touch operation on the first button is a press operation or a slide operation based on the moment when the multiple bioelectric sensors detect the bioelectric signal. Optionally, if the touch operation on the first button is a slide operation, the electronic device 100 may further determine the slide direction of the slide operation based on the position distribution of the multiple bioelectric sensors.

[0345] When multiple bioelectric sensors in the first button simultaneously detect bioelectric signals and then simultaneously detect no bioelectric signals, the electronic device 100 can determine that the touch operation on the first button is a press operation. Optionally, the multiple bioelectric sensors can be adjacent bioelectric sensors in the first button.

[0346] When multiple bioelectric sensors on a first button successively detect bioelectric signals, electronic device 100 can determine that the touch operation on the first button is a slide operation. Based on the position distribution of the multiple bioelectric sensors and the time when the multiple bioelectric sensors detect the bioelectric signals, electronic device 100 can determine the position of the user's slide operation on the first button and further determine the sliding direction of the slide operation.

[0347] As can be seen from the above embodiments, the electronic device 100 can use any one of a pressure sensor, an optical sensor, and a bioelectric sensor to detect the type of touch operation on the first button.

[0348] Optionally, the electronic device 100 may also use multiple sensors among a pressure sensor, an optical sensor, and a bioelectric sensor to detect the type of touch operation on the first button. For example, the electronic device 100 uses the pressure sensor and the optical sensor in the first button to detect the type of touch operation on the first button. When it is determined based on the pressure data that a short press operation is performed on the first button, and it is determined based on the photocurrent signal that a short press operation is performed on the first button, the electronic device 100 may determine that a short press operation is performed on the first button. The embodiment of the present application does not limit the method by which the electronic device 100 uses multiple sensors among a pressure sensor, an optical sensor, and a bioelectric sensor to detect the type of touch operation on the first button.

[0349] In some embodiments, the first button can be used for blood pressure detection. When performing a blood pressure test, the user needs to touch the first button with a finger. The electronic device 100 can determine the user's blood pressure based on the PPG signal detected by the optical sensor in the first button and the bioelectric signal detected by the bioelectric sensor. Therefore, the position touched by the user's finger on the first button needs to cover the corresponding position of the optical sensor on the first button. As can be seen from the aforementioned Figure 3A, the first button is a physical button with a certain length. The position corresponding to the optical sensor on the first button may only occupy a partial area of ​​the touch surface of the first button, for example, the lower half of the first button. If the user places his finger on the first button in an inappropriate position when performing a blood pressure test, it may cause the blood pressure test to fail or the blood pressure test result to have a large error.

[0350] The electronic device 100 can use the pressure sensor in the first button to detect whether the user's finger is properly positioned during blood pressure testing. Optionally, if the user's finger is properly positioned, the electronic device 100 can also detect whether the PPG signal quality meets a preset quality indicator. If the PPG signal quality meets the preset quality indicator, the electronic device 100 can determine the user's blood pressure based on the PPG signal and bioelectric signal. This can improve the accuracy of blood pressure testing.

[0351] FIG9 exemplarily shows a method for performing blood pressure detection based on a first button.

[0352] As shown in FIG. 9 , the method may include steps S911 to S919 .

[0353] S911: Receive a user operation to start blood pressure detection.

[0354] The user operation of starting blood pressure detection may include calling an application for performing blood pressure detection on the electronic device 100 and triggering the electronic device 100 to start blood pressure detection. For example, the user operation of the blood pressure detection may be an operation performed on the screen of the electronic device 100. The embodiment of the present application does not limit the user operation of starting blood pressure detection.

[0355] In some embodiments, in response to a user operation to start a blood pressure test, the electronic device 100 may display an operation prompt for the blood pressure test on the screen. This operation prompt may be used to provide instructions on how to use the electronic device 100 to perform a blood pressure test. For example, the operation prompt may include prompting the user to place a finger on the first button. The present embodiment does not limit the content of this operation prompt.

[0356] S912: Determine whether the pressure sensor in the first button detects pressure data greater than a pressure threshold, where the first button is a button for performing blood pressure detection.

[0357] The electronic device 100 can obtain the pressure data detected by the pressure sensor in the first button and determine whether the pressure data is greater than the pressure threshold. It can be understood that the electronic device 100 can determine whether the user has pressed the finger on the first button by determining whether the pressure data is greater than the pressure threshold. Among them, if the pressure data is less than or equal to the pressure threshold, it can be said that the user has not yet pressed the finger on the first button. Therefore, the electronic device 100 can prompt the user to press the first button. If the pressure data is greater than the pressure threshold, it can be said that the user has already pressed the finger on the first button. Therefore, the electronic device 100 can detect whether the position where the user's finger presses on the first button is appropriate.

[0358] If the pressure data is less than or equal to the pressure threshold, the electronic device 100 may execute the following step S913.

[0359] If the pressure data is greater than the pressure threshold, the electronic device 100 may execute the following step S914.

[0360] S913: Prompt the user to press a designated position on the first button.

[0361] After blood pressure testing begins, if the pressure data detected by the pressure sensor on the first button is less than or equal to the pressure threshold, the electronic device 100 may prompt the user to press a designated location on the first button. The designated location may be the location corresponding to the optical sensor on the first button. For example, the designated location may be the location of light-transmitting area 1 and light-transmitting area 2 shown in FIG. 3A .

[0362] S914: Determine, based on the pressure data detected by the pressure sensor, whether the user presses the position corresponding to the optical sensor on the first button.

[0363] In some embodiments, the first button may be provided with multiple pressure sensors, and the electronic device 100 may detect the pressed position of the touch operation on the first button based on the pressure data detected by the multiple pressure sensors (refer to the introduction of the pressure sensors in FIG. 3C ).

[0364] If the pressing position of the touch operation on the first button is not the position corresponding to the optical sensor on the first button, the electronic device 100 may execute the following step S915.

[0365] If the pressed position of the touch operation on the first button is the position corresponding to the optical sensor on the first button, the electronic device 100 may execute the following step S916.

[0366] S915: Prompt the user to adjust the pressing position on the first button.

[0367] The electronic device 100 may display a prompt message for adjusting the pressing position. The prompt message may include information about the position corresponding to the optical sensor on the first button. This can help the user more clearly understand where the finger should be placed on the first button during blood pressure testing.

[0368] S916 : Detect the PPG signal using the optical sensor.

[0369] When the touch operation on the first button is performed at the position corresponding to the optical sensor on the first button, the light signal received by the optical receiver in the optical sensor is absorbed, reflected, and scattered by human tissue. The optical sensor determines a PPG signal based on the received light signal, which can reflect the user's health data such as heart rate and blood pressure.

[0370] S917: Determine whether the signal quality of the PPG signal meets the quality index.

[0371] In some embodiments, the electronic device 100 may acquire a PPG signal detected by the optical sensor and determine the signal quality of the PPG signal. Signal quality may include, but is not limited to, signal strength, signal noise, etc. The present embodiment of the application does not limit the method for determining the signal quality of the PPG signal.

[0372] If the signal quality of the PPG signal does not meet the quality index, it will cause errors in the blood pressure detection results. This application does not limit the value of the above quality index.

[0373] If the signal quality of the PPG signal does not meet the quality indicator, the electronic device 100 may execute the following step S918.

[0374] If the signal quality of the PPG signal meets the quality index, the electronic device 100 may execute the following step S919.

[0375] S918. Prompt the user to keep pressing the first button steadily.

[0376] If the user's finger presses the first button in the correct position but the PPG signal quality does not meet the quality criteria, this indicates that the user's finger may be shaking when pressing the first button, such as when the user is pressing the first button. The electronic device 100 may display a prompt on the screen to remind the user to maintain stability when pressing the first button.

[0377] S919. Measure blood pressure using the PPG signal and the bioelectric signal detected by the bioelectric sensor.

[0378] If the user's finger presses the first button at an appropriate position and the signal quality of the PPG signal meets the quality index, the electronic device 100 can measure blood pressure using the PPG signal and the bioelectric signal detected by the bioelectric sensor.

[0379] The above steps S917 and S919 are optional. When it is determined based on the pressure data that the user presses the position corresponding to the optical sensor on the first button, the electronic device 100 may execute steps S916 and S919.

[0380] As can be seen from the above method, electronic device 100 can use the pressure sensor and optical sensor in the first button to determine whether the user is performing blood pressure testing in accordance with the operating instructions. The above operation plan may include: pressing the position corresponding to the optical sensor on the first button and maintaining a stable pressure on the first button. The above method can improve the accuracy of blood pressure testing.

[0381] Furthermore, by comparing the method shown in FIG. 9 with the methods shown in FIG. 4 , FIG. 6A to FIG. 6C , FIG. 8A , and FIG. 8B , it can be seen that, in scenarios where blood pressure detection is not performed, the electronic device 100 can identify the type of touch operation on the first button and then perform a corresponding task based on the type of touch operation. In scenarios where blood pressure detection is performed, the electronic device 100 can obtain PPG signals and bioelectric signals based on the touch operation on the first button to determine the user's blood pressure.

[0382] 10A to 10D are schematic diagrams illustrating some blood pressure detection scenarios.

[0383] As shown in FIG10A , electronic device 100 may display user interface 1010. User interface 1010 may include a start control 1011. Start control 1011 may be used to trigger electronic device 100 to begin blood pressure measurement. In response to a user operation on start control 1011, electronic device 100 may display user interface 1020 as shown in FIG10B . The user operation on start control 1011 may be the user operation that initiated blood pressure measurement in step S911 shown in FIG9 .

[0384] As shown in Figure 10B, the user interface 1020 may include an operation prompt for blood pressure detection. The operation prompt can be used to prompt the user to press the first button. The embodiment of the present application does not limit the content of the operation prompt. In some embodiments, the electronic device 100 can obtain pressure data from the pressure sensor in the first button. When the pressure data is less than or equal to the pressure threshold, the electronic device 100 can continue to display the user interface 1020. When the pressure data is greater than the pressure threshold, the electronic device 100 can determine whether the user's pressing position on the first button is the position corresponding to the optical sensor on the first button based on the pressure data.

[0385] As shown in Figure 10C, the position pressed by the user on the first button is not the position corresponding to the optical sensor on the first button. The electronic device 100 can display a user interface 1030. The user interface 1030 may include prompt information for adjusting the pressing position. For example, the position corresponding to the optical sensor on the first button is located in the area of ​​the lower half of the first button. The operation prompt can prompt the user to keep the lower half of the first button in a pressed state. This can correct the user's pressing position on the first button and make the user press the position corresponding to the optical sensor on the first button. The embodiment of the present application does not limit the prompt information in the user interface 1030.

[0386] As shown in Figure 10D, the user adjusts the pressing position on the first button so that the position corresponding to the optical sensor on the first button is covered by the user's finger. The electronic device 100 can use the data detected by the optical sensor and biosensor in the first button to determine the user's blood pressure. During the blood pressure detection process, the electronic device 100 can display a user interface 1040. The user interface 1040 may include a prompt message indicating that the blood pressure test is in progress. This prompt message can be used to prompt the user to continue pressing the first button during the blood pressure detection process. This application does not limit the prompt message in the user interface 1040.

[0387] As can be seen from the scenarios in Figures 10A to 10D, electronic device 100 utilizes the pressure sensor and optical sensor in the first button to determine whether the user is performing blood pressure testing in accordance with the operating specifications. Furthermore, electronic device 100 can help the user adjust their blood pressure testing procedures if they are not performing the required procedures. This not only improves the user's blood pressure testing experience but also increases the accuracy of blood pressure testing.

[0388] In some embodiments, the electronic device 100 can detect a user's risk of limb control impairment using a first button equipped with a pressure sensor, and then provide a risk warning to the user. Such limb control impairments may include, but are not limited to, peripheral nerve damage, Parkinson's disease, and alcohol paralysis. Peripheral nerve damage can cause loss or abnormal sensation in the user. Parkinson's disease and alcohol paralysis can cause uncontrolled tremors in the user's fingers.

[0389] 11A to 11D exemplarily illustrate some schematic diagrams of scenarios for limb impairment risk detection.

[0390] As shown in FIG11A , electronic device 100 may display user interface 1110. User interface 1110 may include detection control 1111. Detection control 1111 may be used to trigger electronic device 100 to initiate limb control disorder detection. In response to user operation of detection control 1111, electronic device 100 may display user interface 1120 shown in FIG11B .

[0391] As shown in FIG. 11B , the user interface 1120 may include an operation prompt 1121 and pressure intensity information 1122 .

[0392] Operation prompt 1121 can be used to prompt the user on the operation method for detecting limb control disorders. For example, the content of operation prompt 1121 may include: Please press the first button and control the pressing force to 50g within 10s. The operation method described in the above operation prompt 1121 is only an exemplary description of this application and should not constitute a limitation on this application. For example, the operation method can also be to control the pressing force of pressing the first button within a preset pressure range within a preset time period.

[0393] The pressing force information 1122 can be used to present the pressing force of the touch operation on the first button in real time, so that the user can check whether the pressing force meets the requirements.

[0394] As shown in Figure 11C, the user presses the first button. Electronic device 100 can obtain pressure data from the pressure sensor on the first button and adjust the pressing force information 1122 based on the pressure data. For example, electronic device 100 adjusts the pressure reading in pressing force information 1122 to 21. This indicates that the user is currently pressing 21g on the first button.

[0395] As shown in Figure 11D, the user may increase the pressure on the first button. The pressure reading in the pressure information 1122 changes to 50, which indicates that the user is currently pressing 50g on the first button.

[0396] The electronic device 100 may obtain pressure data detected by the pressure sensor in the first button within a preset time period, and determine whether the user's pressing of the first button satisfies the operation method in the operation prompt 1121. The length of the preset time period may be the length of time (e.g., 10 seconds) that the operation method in the operation prompt 1121 instructs the user to press the first button.

[0397] If the user presses the first button within the preset time period and the operation method in the operation prompt 1121 is not satisfied, the electronic device 100 can output a disease risk prompt.

[0398] For example, if the pressure data within the preset time period are all less than a preset pressure value, the electronic device 100 may prompt the user that there is a risk of peripheral nerve damage. The preset pressure value may be the pressure (e.g., 50g) that the operation method instructs the user to press the first button in the operation prompt 1121.

[0399] The electronic device 100 can calculate the fluctuation of the pressure data within the preset time period. If the fluctuation of the pressure data within the preset time period exceeds a preset fluctuation threshold, the electronic device 100 can prompt the user that they are at risk for Parkinson's disease or alcohol paralysis. The fluctuation of the pressure data over a period of time can be reflected by indicators such as the variance or standard deviation of the pressure data. The present embodiment of the application does not limit the method by which the electronic device 100 calculates the fluctuation of the pressure data.

[0400] If the user presses the first button within a preset time period and satisfies the operation method in the operation prompt 1121, the electronic device 100 may prompt the user that they have no limb control impairment. For example, if the user can control the pressing force of the first button to 50g within 10 seconds, it can indicate that the user is in good health and is less likely to have limb control impairment.

[0401] The electronic device 100 is not limited to detecting peripheral nerve damage, Parkinson's disease, and alcohol paralysis. It can also detect whether the user has more other types of limb control disorders based on the above pressure data. Among them, the electronic device 100 can store a mapping table of pressure data characteristics and limb control disorders. The mapping table may contain mapping relationships between different pressure data characteristics and different limb control disorders. For example, the pressure data characteristics may include a fluctuation in pressure data greater than a preset fluctuation threshold. The pressure data characteristics have a mapping relationship with Parkinson's disease and alcohol paralysis. For another example, the pressure data characteristics may include pressure data less than a preset pressure value. The pressure data characteristics have a mapping relationship with peripheral nerve damage. The embodiment of the present application does not limit the content of the above pressure data characteristics. The electronic device 100 can search the mapping table of pressure data characteristics and limb control disorders to detect the risk of the user having limb control disorders.

[0402] It is understandable that the above embodiment is merely an auxiliary determination of whether the user has limb control disorder. If the user is determined to have limb control disorder based on the above pressure data, the electronic device 100 can provide the user with medical advice to prompt the user to go to the hospital for a more accurate diagnosis.

[0403] As shown in the scenarios shown in Figures 11A to 11D above, electronic device 100 can use the pressure sensor in the first button to quickly and easily detect whether the user has a limb control disorder. If a limb control disorder is determined to be present, electronic device 100 can output a disease risk warning. The above embodiments facilitate user limb control disorder detection anytime, anywhere, helping users better monitor their health.

[0404] It is understood that the various user interfaces described in the embodiments of this application are merely exemplary interfaces and do not limit the scope of this application. In other embodiments, the user interface may adopt a different interface layout, include more or fewer controls, and add or remove other functional options. As long as they are based on the same inventive concept provided by this application, they are all within the scope of protection of this application.

[0405] It should be noted that, without causing any contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.

[0406] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A key operation method, characterized in that: The method is applied to an electronic device including a first button, and the method includes: Acquire multiple data from multiple sensors, where the multiple sensors are arranged in the first button, and the multiple sensors include at least two sensors selected from the group consisting of a pressure sensor, a bioelectric sensor, an optical sensor, and a temperature sensor; A first touch operation acting on the first button is determined according to the plurality of data.

2. The method according to claim 1, characterized in that The determining the first touch operation on the first button according to the plurality of data specifically includes: If the plurality of data satisfy at least two of the following conditions, it is determined that the first touch operation has occurred on the first button: The plurality of sensors include a pressure sensor, and pressure data of the pressure sensor is greater than a first pressure threshold; The plurality of sensors include an optical sensor, wherein a signal strength of a photocurrent signal of the optical sensor is greater than a first signal strength threshold; The plurality of sensors include a bioelectric sensor, wherein a bioelectric signal of the bioelectric sensor indicates that the bioelectric sensor is electrically connected to another bioelectric sensor provided on the electronic device; The plurality of sensors include a temperature sensor, and a change in temperature data of the temperature sensor is greater than a temperature change threshold.

3. The method according to claim 2, characterized in that The multiple sensors include an optical sensor. After determining that the first touch operation is performed on the first button, the method further includes: The type of the first touch operation is determined to be a pressing operation or a sliding operation according to the photocurrent signal.

4. The method according to claim 3, characterized in that The optical sensor includes a plurality of light receivers; the method further includes: The sliding direction of the first touch operation is determined according to the positions of the multiple light receivers and the moments when the multiple light receivers detect the photocurrent signals whose signal strength is greater than a second signal strength threshold.

5. The method according to claim 3, characterized in that The method further comprises: Determine the pressing duration of the first touch operation according to the photocurrent signal; or, The pressing force of the first touch operation is determined according to the photocurrent signal.

6. The method according to claim 2, characterized in that The multiple sensors include a pressure sensor. After determining that the first touch operation is performed on the first button, the method further includes: The type of the first touch operation is determined to be a pressing operation or a sliding operation according to the pressure data.

7. The method according to claim 6, characterized in that The pressure sensor includes a plurality of pressure sensors; and the method further includes: The sliding direction of the first touch operation is determined according to the positions of the multiple pressure sensors and the moments when the multiple pressure sensors detect pressure data greater than a second pressure threshold.

8. The method according to claim 6, characterized in that The method further comprises: Determine the pressing duration of the first touch operation according to the pressure data; or, The pressing force of the first touch operation is determined according to the pressure data.

9. The method according to any one of claims 1 to 8, characterized in that The plurality of sensors include optical sensors and pressure sensors, and the method further includes: receiving a first blood pressure detection operation, wherein the first blood pressure detection operation is used to start blood pressure detection; detecting, by the pressure sensor, a second touch operation pressing a first position on the first button; If the first position is not at the position corresponding to the optical sensor, a first prompt is output, where the first prompt is used to prompt the user to adjust the pressing position on the first button.

10. The method according to claim 9, characterized in that The plurality of sensors further include a bioelectric sensor, and the method further includes: If the first position is at a position corresponding to the optical sensor, determining whether the signal quality of the PPG signal detected by the optical sensor meets a first quality indicator; If the signal quality of the PPG signal meets the first quality indicator, determining the user's blood pressure based on the PPG signal and the bioelectric signal of the bioelectric sensor; If the signal quality of the PPG signal does not meet the first quality indicator, a second prompt is output, where the second prompt is used to prompt the user to remain stable when pressing the first button.

11. The method according to any one of claims 1 to 10, characterized in that The plurality of sensors include a pressure sensor; the method further comprising: Displaying a first interface, wherein the first interface is used to prompt the user to press the first button and control the pressing force to a first force within a first duration; In response to detecting a third touch operation on the first button, determining a pressing force and a pressing duration of the third touch operation; A disease risk prompt is output based on the pressing force and the pressing duration.

12. The method according to any one of claims 1 to 11, characterized in that The first button does not include a touch sensor.

13. A key operation method, characterized in that: The method is applied to an electronic device including a first button and an optical sensor, wherein the optical sensor is disposed in the first button. The method includes: Acquiring a photocurrent signal from the optical sensor; A first touch operation acting on the first button is determined according to the photocurrent signal.

14. The method according to claim 13, characterized in that The determining, according to the photocurrent signal, the first touch operation acting on the first button specifically includes: If the signal strength of the photocurrent signal is greater than a first signal strength threshold, it is determined that a first touch operation has occurred on the first button.

15. The method according to claim 14, characterized in that After determining that the first touch operation is performed on the first button, the method further includes: The type of the first touch operation is determined to be a pressing operation or a sliding operation according to the photocurrent signal.

16. The method according to claim 15, characterized in that The optical sensor includes a plurality of light receivers; the method further includes: The sliding direction of the first touch operation is determined according to the positions of the multiple light receivers and the moments when the multiple light receivers detect the photocurrent signals whose signal strength is greater than a second signal strength threshold.

17. The method according to claim 15, characterized in that The method further comprises: Determine the pressing duration of the first touch operation according to the photocurrent signal; or, The pressing force of the first touch operation is determined according to the photocurrent signal.

18. A key operation method, characterized in that: The method is applied to an electronic device including a first button, an optical sensor, and a pressure sensor, wherein the optical sensor and the pressure sensor are arranged in the first button, and the method includes: receiving a first blood pressure detection operation, wherein the first blood pressure detection operation is used to start blood pressure detection; detecting, by the pressure sensor, a first touch operation pressing a first position on the first button; If the first position is not at the position corresponding to the optical sensor, a first prompt is output, where the first prompt is used to prompt the user to adjust the pressing position on the first button.

19. The method according to claim 18, characterized in that A bioelectric sensor is further provided in the first button, and the method further includes: If the first position is at a position corresponding to the optical sensor, determining whether the signal quality of the PPG signal detected by the optical sensor meets a first quality indicator; If the signal quality of the PPG signal meets the first quality indicator, determining the user's blood pressure based on the PPG signal and the bioelectric signal of the bioelectric sensor; If the signal quality of the PPG signal does not meet the first quality indicator, a second prompt is output, where the second prompt is used to prompt the user to remain stable when pressing the first button.

20. A key operation method, characterized in that: The method is applied to an electronic device including a first button and a pressure sensor, wherein the pressure sensor is disposed in the first button. The method includes: Displaying a first interface, wherein the first interface is used to prompt the user to press the first button and control the pressing force to a first force within a first duration; In response to detecting a touch operation on the first button, determining a pressing force and a pressing duration of the touch operation; A disease risk prompt is output based on the pressing force and the pressing duration.

21. An electronic device, characterized in that: The electronic device includes a first button, a memory and a processor, wherein the first button is provided with at least two sensors selected from the group consisting of a pressure sensor, a bioelectric sensor, an optical sensor and a temperature sensor, the memory is used to store a computer program, and the processor is used to call the computer program so that the electronic device executes the method described in any one of claims 1-12 or claims 13-17 or claims 18-19 or claim 20.

22. A button, characterized in that: The button is provided with one or more of the following sensors: a pressure sensor, an optical sensor, a bioelectric sensor, and a temperature sensor; the pressure sensor is used to detect pressure data, the optical sensor is used to detect a photocurrent signal, the bioelectric sensor is used to detect a bioelectric signal, and the temperature sensor is used to detect temperature data.

23. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 12, claims 13 to 17, claims 18 to 19, or claim 20.

24. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the method according to any one of claims 1 to 12, claims 13 to 17, claims 18 to 19, or claim 20.

Citation Information

Patent Citations

  • Key operation method and related device

    CN120686968A

  • Touch display device and pressure sensing touch method therefor

    CN105404423A

  • Terminal, and touch control responding method and device

    CN106462293A

  • Electronic device and storage medium

    CN108632427A

  • Pressure touch keyboard based on optical induction and method thereof

    CN108803882A