Terminal device control method and apparatus, device, and storage medium

By detecting offset signals, acceleration values, and displacement in wearable devices to identify tapping operations, the problem of the limited operation of rotating crowns is solved, enabling precise control when the touchscreen fails and improving the user experience.

WO2026091961A1PCT designated stage Publication Date: 2026-05-07HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-09-19
Publication Date
2026-05-07

AI Technical Summary

Technical Problem

The rotating crown operation method on existing wearable devices is too simple, resulting in a poor user experience.

Method used

The system identifies user tapping actions by detecting offset signals, acceleration values, and displacement. It uses gyroscopes, accelerometers, and orientation sensors to acquire signals and defines different function commands corresponding to different tapping counts.

Benefits of technology

When the touchscreen function fails, users can use the crown for precise control, reducing the difficulty of operation and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025122438_07052026_PF_FP_ABST
    Figure CN2025122438_07052026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a terminal device control method and apparatus, a device, and a storage medium, facilitating the control of a terminal device by a user. In embodiments of the present application, a terminal device detects a first operation on the basis of an offset signal, an acceleration value, and a displacement amount, and in response to the first operation, executes an instruction corresponding to the first operation, wherein the offset signal is used for representing a directional offset of the terminal device, the acceleration value is used for representing the acceleration of the terminal device, and the displacement amount is used for representing the displacement of a crown in a preset direction. In the present application, the user can control the terminal device by tapping the crown, the operation of tapping the crown does not rely on a touchscreen function, and therefore, when the touchscreen function is not working properly, the user can precisely control the terminal device by tapping the crown, reducing the operation difficulty of the terminal device, and ensuring user experience.
Need to check novelty before this filing date? Find Prior Art

Description

A terminal device control method, apparatus, equipment, and storage medium

[0001] This application claims priority to Chinese Patent Application No. 202411565460.9, filed with the State Intellectual Property Office of China on November 4, 2024, entitled “A Terminal Equipment Control Method, Apparatus, Device and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to a terminal device control method, apparatus, device and storage medium. Background Technology

[0003] With the development of technology, wearable devices (such as smartwatches and smart bracelets) have become increasingly widespread. Among related technologies, the rotating crown on wearable devices only supports rotation and pressing operations. This limited operation method results in a poor user experience. Summary of the Invention

[0004] The purpose of this application is to provide a terminal device control method, apparatus, device, and storage medium to solve the technical problems in the prior art.

[0005] In a first aspect, embodiments of this application provide a terminal device control method. The terminal device is equipped with a crown. The method includes: the terminal device detecting a first operation based on an offset signal, an acceleration value, and a displacement amount, wherein the first operation is a tapping operation of the crown, wherein the offset signal is used to characterize the directional offset of the terminal device, the acceleration value is used to characterize the acceleration of the terminal device, and the displacement amount is used to characterize the displacement of the crown in a preset direction; and in response to the first operation, executing an instruction corresponding to the first operation.

[0006] In this embodiment, the user can control the terminal device by tapping the crown. The operation of tapping the crown does not require the touch screen function. Therefore, when the touch screen function is not working properly, the user can accurately control the terminal device by tapping the crown, which reduces the difficulty of operating the terminal device and ensures the user experience.

[0007] In some possible embodiments, the first operation includes: a single tap operation, the single tap operation corresponding to a first instruction; and / or, the first operation includes: a double tap operation, the double tap operation corresponding to a second instruction; and / or, the first operation includes: a triple tap operation, the triple tap operation corresponding to a third instruction.

[0008] In this embodiment of the application, by defining different functions corresponding to different numbers of taps, the user can achieve precise control of the terminal device through the crown.

[0009] In some possible embodiments, if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, then it is determined that a tapping operation has been detected; or if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, then it is determined that a tapping operation has been detected.

[0010] In this embodiment, a tapping operation is only detected when the offset signal, acceleration value, and displacement are all within their respective threshold ranges. If any one of the three conditions is not met, it is determined to be a false touch. By setting multiple conditions, the possibility of the crown being tapped due to bumps or knocks is eliminated, which greatly improves the accuracy of tapping operation detection.

[0011] In some possible embodiments, if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period, then it is determined that one tapping operation has been detected; wherein, the first event is the displacement being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period, then it is determined that one tapping operation has been detected.

[0012] In this embodiment of the application, by setting a preset time period, misjudgment is avoided when the first operation includes multiple taps, thereby further improving the accuracy of tapping operation detection.

[0013] In some possible embodiments, the terminal device detects a double-click operation based on an offset signal, an acceleration value, and a displacement amount, including:

[0014] If it is determined that the offset signal is greater than or equal to the first offset threshold and less than or equal to the second offset threshold, the acceleration value is greater than or equal to the first acceleration threshold and less than or equal to the second acceleration threshold, the displacement is greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold, and the time interval between two detected first events is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, then a double-click operation is determined to have been detected; wherein, the first event is the displacement being greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold; or if it is determined that the offset signal is greater than or equal to the first offset threshold, the acceleration value is greater than or equal to the first acceleration threshold, the displacement is greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold, and the time interval between two detected first events is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, then a double-click operation is determined to have been detected.

[0015] In this embodiment of the application, when the offset signal and acceleration value meet their respective conditions, it is only necessary to verify the time interval between the two first events to accurately determine whether the user has tapped the crown twice, thus saving the resources consumed in the data processing process.

[0016] In some possible embodiments, if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a three-click operation is determined to have been detected; wherein, the first event is the displacement being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a three-click operation is determined to have been detected.

[0017] In this embodiment of the application, when the offset signal and acceleration value meet their respective conditions, it is only necessary to verify the time interval between the two adjacent first times in the three first events to accurately determine whether the user has tapped the crown three times, thus saving the resources consumed in the data processing process.

[0018] In some possible embodiments, the directional offset includes the angular velocity of the terminal device in three-dimensional directions.

[0019] In some possible embodiments, the offset signal is obtained based on a gyroscope in the terminal device itself, the acceleration value is obtained based on an accelerometer in the terminal device itself, and the displacement is obtained based on a direction sensor in the crown.

[0020] In this embodiment, the required signal can be obtained through the existing hardware in the terminal device without adjusting the terminal device, thereby improving the reuse rate of the gyroscope, accelerometer and orientation sensor in the terminal device.

[0021] In some possible embodiments, the preset direction is that the crown is perpendicular to the body of the terminal device.

[0022] In some possible embodiments, after detecting the first operation based on the offset signal, acceleration value, and displacement, the method further includes:

[0023] The motor in the control terminal device is vibrated.

[0024] In this embodiment of the application, motor vibration makes it easier for the user to perceive that the corresponding process has been executed based on the user's tapping operation.

[0025] In some possible embodiments, in response to the first operation, executing the instruction corresponding to the first operation includes: in response to the first operation, executing the instruction corresponding to the first operation based on the current interface, wherein the current interface is the interface currently being displayed on the terminal device.

[0026] In some possible embodiments, the first instruction is used to: select the next content corresponding to the target content, where the target content is the content selected on the current page, and the next content is the content on the current page in the direction specified by the target content; the current page is the interface being displayed on the terminal device; the second instruction is used to: enter the page corresponding to the target content;

[0027] The third instruction is used to return to the previous page of the current page.

[0028] In this embodiment, different functions are defined for different numbers of taps, enabling users to precisely control the terminal device via the crown.

[0029] Secondly, embodiments of this application also provide a terminal device control apparatus, wherein the terminal device is provided with a crown, and the apparatus includes:

[0030] The detection module is used by the terminal device to detect the first operation based on the offset signal, acceleration value and displacement amount. The first operation is the operation of tapping the crown. The offset signal is used to represent the directional offset of the terminal device, the acceleration value is used to represent the acceleration of the terminal device, and the displacement amount is used to represent the displacement of the crown in a preset direction.

[0031] The instruction execution module is used to execute the instruction corresponding to the first operation in response to the first operation.

[0032] In some possible embodiments, the first operation includes: a single tap operation, the single tap operation corresponding to a first instruction; and / or, the first operation includes: a double tap operation, the double tap operation corresponding to a second instruction; and / or, the first operation includes: a triple tap operation, the triple tap operation corresponding to a third instruction.

[0033] In some possible embodiments, the detection module is configured to: determine that a tapping operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or determine that a tapping operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold.

[0034] In some possible embodiments, the detection module is specifically configured to: determine that a tapping operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period; wherein, the first event is the displacement being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period, then it is determined that a tapping operation has been detected.

[0035] In some possible embodiments, the detection module is specifically configured to: determine that a double-click operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and the time interval between two detected first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold; wherein, the first event is the displacement being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and the time interval between two detected first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a double-click operation has been detected.

[0036] In some possible embodiments, the detection module is specifically configured to: determine that a triple-click operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold; wherein, the first event is the displacement being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a triple-click operation has been detected.

[0037] In some possible embodiments, the directional offset includes the angular velocity of the terminal device in three-dimensional directions.

[0038] In some possible embodiments, the offset signal is obtained based on the gyroscope of the terminal device, the acceleration value is obtained based on the accelerometer of the terminal device, and the displacement is obtained based on the orientation sensor of the terminal device.

[0039] In some possible embodiments, the preset direction is that the crown is perpendicular to the body of the terminal device.

[0040] In some possible embodiments, the instruction execution module is also used to control the motor in the terminal device to vibrate.

[0041] In some possible embodiments, the instruction execution module is specifically used to execute the instruction corresponding to the first operation based on the current interface in response to the first operation, wherein the current interface is the interface currently being displayed on the terminal device.

[0042] In some possible embodiments, the first instruction is used to: select the next content corresponding to the target content, where the target content is the content selected on the current page, and the next content is the content on the current page in the direction specified by the target content; the current page is the interface being displayed on the terminal device; the second instruction is used to: enter the page corresponding to the target content; and the third instruction is used to: return to the parent page of the current page.

[0043] Thirdly, another embodiment of this application also provides an electronic device, including at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform any of the methods provided in the first aspect embodiment of this application.

[0044] Fourthly, another embodiment of this application provides a computer-readable storage medium storing a computer program for causing a computer to perform any of the methods provided in the first aspect of this application.

[0045] Fifthly, another embodiment of this application also provides a computer program product, characterized in that the computer program product includes: computer program code, which, when run on a computer, causes the computer to perform any of the methods provided in the first aspect embodiment of this application. Attached Figure Description

[0046] Figure 1 is a schematic diagram of a smartwatch using a terminal device control method provided in an embodiment of this application;

[0047] Figure 2 is a schematic diagram of clicking on target content in a smartwatch according to a terminal device control method provided in an embodiment of this application;

[0048] Figure 3 is a schematic diagram of the overall process of a terminal device control method provided in an embodiment of this application;

[0049] Figure 4A is a schematic diagram showing the placement of the gyroscope, accelerometer and orientation sensor in a smartwatch according to a terminal device control method provided in an embodiment of this application.

[0050] Figure 4B is another schematic diagram showing the location of the orientation sensor in a smartwatch according to an embodiment of this application for a terminal device control method.

[0051] Figure 5 is a schematic diagram of the first processing flow of a terminal device control method provided in an embodiment of this application;

[0052] Figure 6 is a schematic diagram of the second processing flow of a terminal device control method provided in an embodiment of this application;

[0053] Figure 7 is a schematic diagram of the third processing flow of a terminal device control method provided in an embodiment of this application;

[0054] Figure 8 is a schematic diagram of a terminal device control method provided in an embodiment of this application;

[0055] Figure 9 is a schematic diagram of an electronic device for a terminal device control method provided in an embodiment of this application. Detailed Implementation

[0056] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0057] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0058] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0059] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0060] With the development of technology, wearable devices (such as smartwatches and smart bracelets) have become increasingly widespread. However, in this technology, the rotating crown on wearable devices only supports rotation and pressing operations, resulting in a limited user experience due to its simplistic operation.

[0061] As shown in Figure 1, the crown can only be rotated to enable up and down sliding. After selecting the target content (sound and vibration) in the display interface by rotating the crown, you need to click the target content or press the crown as shown in Figure 2 to confirm the operation and then enter the interface corresponding to the target content.

[0062] However, this method has a rather simplistic operation, resulting in a poor user experience.

[0063] To address the aforementioned problems, this application provides a terminal device control method, apparatus, device, and storage medium to solve these problems. In this application embodiment, the terminal device detects a first operation based on an offset signal, an acceleration value, and a displacement amount. The first operation is a tapping operation on a watch crown. The offset signal represents the directional offset of the terminal device, the acceleration value represents the acceleration of the terminal device, and the displacement amount represents the displacement of the watch crown in a preset direction. In response to the first operation, the terminal device executes the instruction corresponding to the first operation.

[0064] In this application, users can control the terminal device by tapping the crown. The operation of tapping the crown does not require the use of the touch screen function. Therefore, when the touch screen function is not working properly, users can accurately control the terminal device by tapping the crown, which reduces the difficulty of operating the terminal device and ensures the user experience.

[0065] For ease of understanding, a terminal device control method provided in this application embodiment will be described in detail below with reference to the accompanying drawings. In this application embodiment, the terminal device includes, but is not limited to, devices with a crown, such as smartwatches and smart bracelets. For ease of explanation, a smartwatch will be used as an example of the terminal device below:

[0066] Figure 3 shows a schematic flowchart of a terminal device control method provided in an embodiment of this application, wherein:

[0067] In step 301: The terminal device detects the first operation based on the offset signal, acceleration value and displacement amount. The first operation is the operation of tapping the crown.

[0068] In this embodiment, the presence or absence of a user striking the crown can be determined by acquiring the offset signal, acceleration value, and displacement amount. Once it is confirmed that the crown was struck, the user has triggered the first operation. The offset signal represents the directional offset of the terminal device, the acceleration value represents the acceleration of the terminal device, and the displacement amount represents the displacement of the crown in a preset direction. In practice, the offset signal can be acquired using a gyroscope in the terminal device, the acceleration value can be acquired using an accelerometer in the terminal device, and the displacement amount can be acquired using a direction sensor in the terminal device.

[0069] The aforementioned directional offset includes the angular velocity of the terminal device in three dimensions. That is, the angular velocity detected by the gyroscope is three-dimensional, including the angular velocities of the X, Y, and Z axes.

[0070] The preset direction is set so that the crown is perpendicular to the watch body, based on the relative position of the crown and the watch body.

[0071] As shown in Figure 4A, in this embodiment, a gyroscope, accelerometer, and orientation sensor are installed in the smartwatch. When the user taps the crown, the crown causes a slight change in acceleration and position angle to the watch body. Therefore, the gyroscope and accelerometer installed in the watch can be used to obtain the acceleration value and offset signal generated by the user's tapping operation, and the orientation sensor can be used to obtain the Y-axis data, i.e., the displacement, generated by the user's tapping operation. As shown in Figures 4A and 4B, the Y-axis refers to the direction in which the crown is perpendicular to the watch body.

[0072] It is understandable that the aforementioned offset signal, acceleration value, and displacement are detected by the terminal device within a preset detection time. That is, when the user taps the crown, the offset signal, acceleration value, and displacement will be detected within the preset detection time. It can also be understood that the offset signal, acceleration value, and displacement are detected simultaneously.

[0073] In step 302: the instruction corresponding to the first operation is executed in response to the first operation.

[0074] In some possible embodiments, in response to the first operation, the instruction corresponding to the first operation is executed. Specifically, in response to the first operation, the instruction corresponding to the first operation is executed based on the current interface, wherein the current interface is the interface currently displayed on the terminal device.

[0075] In some possible embodiments, to achieve multiple functions, the relationship between the number of taps and the corresponding instruction of the first operation can be defined to enable different functions based on different numbers of taps. For example, the first operation may include any of the following: a single tap, a double tap, or a triple tap, where a single tap corresponds to a first instruction, a double tap corresponds to a second instruction, and a triple tap corresponds to a third instruction. Thus, different functions can be achieved based on the number of times the user taps the crown. In this embodiment, by defining different functions corresponding to different numbers of taps, precise control of the terminal device by the user via the crown is achieved.

[0076] In some possible embodiments, the first instruction can be specifically implemented as: selecting the next content corresponding to the target content, where the target content is the content selected on the current page, and the next content is the content on the current page in the direction specified by the target content; the second instruction can be specifically implemented as: entering the page corresponding to the target content; the third instruction can be specifically implemented as: returning to the previous page of the current page.

[0077] The specified direction can be any of the following: above, below, left, or right. This application does not limit the specific implementation of the specified direction.

[0078] It should be understood that the specific implementation methods of the first, second, and third instructions shown in the embodiments of this application are merely illustrative examples for ease of understanding and are not intended to limit the specific implementation methods of the first, second, and third instructions. In specific implementation, the specific implementation method corresponding to each processing flow can be set according to the requirements. For example: the first instruction is: return to the previous page of the current page; the second instruction is: select the next content corresponding to the target content; and the third instruction is: enter the page corresponding to the target content.

[0079] For example: A single tap operation is predefined as the first instruction to enter the page corresponding to the target content; a double tap operation is the second instruction to enter the page corresponding to the target content; and a triple tap operation is the third instruction to return to the previous page, with the specified direction being downwards. As shown in Figure 5, on the current page, if the selected content is "Sound and Vibration," a single tap operation is triggered, and the next content corresponding to the target content is determined to be "File Management," then "File Management" is selected. As shown in Figure 6, on the current page, if the selected content is "Sound and Vibration," a double tap operation is triggered, then the interface corresponding to "Sound and Vibration" is entered. As shown in Figure 7, on the current page, if the selected content is "Sound and Vibration," a triple tap operation is triggered, then the previous page of the current page is entered, and if the previous page is determined to be the desktop, then the desktop is entered.

[0080] In some possible embodiments, when a user wears a smartwatch while walking or engaging in activities, it will cause changes in the watch's acceleration and position angle. Furthermore, during the user's walking process, the smartwatch's crown may collide with clothing or the user's legs, which will also generate displacement. Therefore, in order to avoid accidental touches, it is necessary to accurately determine whether the user has triggered the first operation and the specific type of the first operation triggered, which will be explained below.

[0081] In some possible embodiments, determining whether the terminal device has detected a tap operation based on the offset signal, acceleration value, and displacement amount can be implemented as follows: if the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, and the displacement amount is greater than or equal to a first displacement threshold, then it is determined that a tap operation has been detected; or, if the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, and the displacement amount is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, then it is determined that a tap operation has been detected.

[0082] In this embodiment, only lower limits (first offset threshold, first acceleration threshold, and first displacement threshold) can be set for the offset signal, acceleration value, and displacement amount, respectively. A tap operation is determined to have been detected when the offset signal, acceleration value, and displacement amount are each greater than or equal to their respective lower limits. In this embodiment, considering that large user movements can cause significant changes in the watch's acceleration and position angle, and that pressing the crown can cause a large change in displacement, upper limits (second offset threshold, second acceleration threshold, and second displacement threshold) can also be set for the offset signal, acceleration value, and displacement amount, respectively. A tap operation is determined to have been detected only when the offset signal, acceleration value, and displacement amount are each greater than or equal to their respective lower limits and less than or equal to their respective upper limits. If any one of the three conditions is not met, it is determined to be a false touch. By setting multiple conditions, the accuracy of tap operation detection can be greatly improved.

[0083] Since the offset signal includes angular velocities in three dimensions, the first offset threshold includes offset thresholds corresponding to the three dimensions respectively, namely the first sub-offset threshold corresponding to the X-axis, the second sub-offset threshold corresponding to the Y-axis, and the third sub-offset threshold corresponding to the Z-axis; the second offset threshold also includes offset thresholds corresponding to the three dimensions respectively, namely the fourth sub-offset threshold corresponding to the X-axis, the fifth sub-offset threshold corresponding to the Y-axis, and the sixth sub-offset threshold corresponding to the Z-axis.

[0084] In practical implementation, the first sub-offset threshold can be set to 0 rad / s (1 rad = 57.30°), the second sub-offset threshold can be set to 0 rad / s, the third sub-offset threshold can be set to 0 rad / s, and the first acceleration threshold can be set to 0.5 Gm / s. 2 (G is the acceleration due to gravity), the first displacement threshold can be set to 0 mm; the fourth sub-offset threshold can be set to 5 rad / s, the fifth sub-offset threshold can be set to 4 rad / s, the sixth sub-offset threshold can be set to 5 rad / s, and the second acceleration threshold can be set to 8 G m / s. 2 The second displacement threshold can be set to 1 mm.

[0085] It is understandable that when the first sub-offset threshold, the second sub-offset threshold, the third sub-offset threshold, and the first displacement threshold are all 0, the offset signal and the displacement amount must be greater than their respective thresholds.

[0086] It is important to understand that the specific values ​​of the first offset threshold, first acceleration threshold, first displacement threshold, second offset threshold, second acceleration threshold, and second displacement threshold given above are illustrative examples for ease of understanding and are not intended to limit these thresholds. In specific implementations, the first offset threshold, first acceleration threshold, first displacement threshold, second offset threshold, second acceleration threshold, and second displacement threshold can be selected within reasonable ranges. For example, the value range corresponding to the first offset threshold could be: first sub-offset threshold 0 rad / s - 1.5 rad / s, second sub-offset threshold 0 rad / s - 1.5 rad / s, and third sub-offset threshold rad / s - 1.5 rad / s; the value range corresponding to the first acceleration threshold could be: 0.3 G m / s. 2 -0.7 Gm / s 2 The first displacement threshold has a value range of 0 mm to 0.3 mm; the second offset threshold has a value range of 4 rad / s to 6 rad / s for the fourth sub-offset threshold, 4 rad / s to 6 rad / s for the fifth sub-offset threshold, and 4 rad / s to 6 rad / s for the sixth sub-offset threshold; the second acceleration threshold has a value range of 7 G m / s. 2 -9G meters / second 2 The second displacement threshold ranges from 0.9 mm to 1.1 mm.

[0087] In some possible embodiments, if multiple tap operations are defined in the terminal device, it can be ensured that the number of tap operations triggered by the user can be accurately determined. Therefore, after a tap operation is detected, it is necessary to wait for a first duration. If no tap operation is detected within the first duration, the process corresponding to the tap operation is then executed.

[0088] In some possible embodiments, when two tapping operations are detected, it is necessary to ensure that the time interval between the two tapping operations (i.e., the first duration) is greater than or equal to a first time threshold and less than or equal to a second time threshold. The first time threshold can be set to 1 millisecond, and the second time threshold can be set to 1000 milliseconds.

[0089] In the embodiments of this application, if the time interval between two taps is too long, it can be determined that the user has triggered two single taps, rather than a double tap.

[0090] In other possible embodiments, determining whether the terminal device has detected a tap operation based on the offset signal, acceleration value, and displacement amount can also be implemented as follows: if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement amount is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period, then it is determined that a tap operation has been detected; wherein, the first event is the displacement amount being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or, if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement amount is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period, then it is determined that a tap operation has been detected.

[0091] In this embodiment of the application, if the first event is detected by the orientation sensor in the terminal device, and signals that meet their respective conditions are collected by the gyroscope and accelerometer, and the first event is detected only once within a preset time period, then it is determined that the user has triggered a tap operation.

[0092] By setting a first offset threshold, a second offset threshold, a first acceleration threshold, a second acceleration threshold, a first displacement threshold, and a second displacement threshold, it can be determined whether a user has triggered a tapping operation. After determining that the user has triggered a tapping operation, the number of tapping operations detected within a preset time period is used to determine whether the user has triggered a single tapping operation. In this embodiment, the number of tapping operations can be determined by detecting the number of occurrences of a first event using a direction sensor, or by combining a direction sensor, a gyroscope, an accelerometer, etc., to determine the number of occurrences of the first event or the tapping event.

[0093] The preset time period can be set to 1000 milliseconds, meaning that a user is considered to have triggered a tap operation only if a first event is detected within 1000 milliseconds.

[0094] In some possible embodiments, determining whether a double-click operation is detected can be implemented as follows: if the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and the time interval between two detected first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a double-click operation is determined to be detected; wherein, the first event is the displacement being greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold; or if the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and the time interval between two detected first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a double-click operation is determined to be detected.

[0095] In this embodiment of the application, signals that meet their respective conditions are collected by the gyroscope, accelerometer and orientation sensor in the terminal device, and two first events are detected within a preset time period. That is, when the time interval between the two first events is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, it can be determined that the user has triggered a double-click operation.

[0096] The first interval threshold can be set to 1 millisecond, and the second interval threshold can be set to 1000 milliseconds.

[0097] It should be noted that the specific values ​​of the first and second interval thresholds given above are illustrative examples for ease of understanding and are not intended to limit the first and second interval thresholds. In actual implementation, the first and second interval thresholds can be selected within a reasonable range. For example, the value range of the first interval threshold is 1 millisecond to 10 milliseconds, and the value range of the second interval threshold is 800 milliseconds to 1000 milliseconds.

[0098] In this embodiment of the application, if two first events are detected within a preset time period, it means that the user has tapped the crown twice; if one first event is detected within the preset time period, it means that the user has tapped the crown once. By judging the offset signal, acceleration value, and offset amount, it is determined whether the user has tapped the crown and the number of times the user has tapped the crown, thus ensuring that the number of times the user has tapped the crown can be accurately determined.

[0099] Understandably, if a single tap and a double tap are defined in the terminal device, in order to ensure that the corresponding process is executed accurately according to the tap operation triggered by the user, if a first event is detected and then another first event is detected, and the time interval between the two first events is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, then the process corresponding to the double tap operation is executed. If a first event is detected and then the second interval threshold is exceeded without another first event being detected, then the process corresponding to the single tap operation is executed.

[0100] That is, even if the user only taps once, the corresponding operation needs to be performed after the second interval threshold, thus avoiding the situation where the user taps twice but the corresponding process for one tap is executed.

[0101] If the terminal device defines 1-tap, 2-tap, and 3-tap operations, then after detecting a first event, if the second first event is detected before the second interval threshold is exceeded, it is necessary to determine whether a third first event is detected after the second first event is detected before the second interval threshold is exceeded. If a third first event is detected, the process corresponding to the triple-tap operation is executed; if a third first event is not detected, the process corresponding to the double-tap operation is executed.

[0102] If only one-tap and two-tap operations are defined in the terminal device, after detecting a first event, it is determined whether a second first event is detected if the second interval threshold is not exceeded. If a second first event is detected, the process corresponding to the double-tap operation is executed; otherwise, the process corresponding to the one-tap operation is executed.

[0103] Secondly, the same signal acquisition cycle can be set for the gyroscope, accelerometer, and orientation sensor in the terminal device. The timestamp corresponding to each cycle serves as the timestamp of the signal acquired within that cycle. That is, the gyroscope, accelerometer, and orientation sensor acquisitions within the same cycle have the same timestamp. Therefore, the timestamp of the signal acquisition by the gyroscope, accelerometer, and orientation sensor triggered by each tap operation can be used as the timestamp of the first event. Based on this, the time interval between each first event can be determined according to the timestamp corresponding to each first event.

[0104] In some possible embodiments, determining whether three tap operations are detected can be implemented as follows: if the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a three-tap operation is determined to have been detected; wherein, the first event is the displacement being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a three-tap operation is determined to have been detected.

[0105] In this embodiment of the application, signals that meet their respective conditions are collected by the gyroscope, accelerometer and orientation sensor in the terminal device, and three first events are detected within a preset time interval. The time interval between two adjacent first events meets the preset condition, that is, the time interval between two adjacent first events is greater than or equal to the first interval threshold and less than or equal to the second interval threshold. Then it is determined that the user has triggered a triple-click operation.

[0106] In this embodiment of the application, if three first events are detected, and it is determined that the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then it indicates that the user has triggered a triple-click operation.

[0107] For example: the three detected first events are, in order: first event A, first event B, and first event C. If the time interval between first event A and first event B is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, and the time interval between first event B and first event C is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, it means that the user has triggered a triple-click operation.

[0108] If the time interval between the first event A and the first event B is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, and the time interval between the first event B and the first event C is greater than the second interval threshold, then it means that the user triggered a double-click operation and then triggered a single tap operation.

[0109] Understandably, given that the terminal device defines single-tap, double-tap, and triple-tap operations, to ensure accurate execution of the corresponding instruction based on the user's tapping action, after the user triggers a single tap, if a double tap is detected within a first interval threshold but not a second interval threshold, and a triple tap is detected again within the same interval threshold, then the third instruction corresponding to the triple-tap operation is executed. If the user triggers a single tap, and a double tap is detected within a first interval threshold but not a second interval threshold, and no triple tap is detected before the second interval threshold, then the second instruction corresponding to the double-tap operation is executed. If the user triggers a single tap, and no double tap is detected before the second interval threshold, then the first instruction corresponding to the single-tap operation is executed. In other words, even if a user performs only one tap, the corresponding operation is executed only after a second interval threshold has elapsed. This prevents situations where a user taps twice but only executes the first instruction corresponding to a single tap. Similarly, even if a user taps twice, the second instruction corresponding to a double-tap operation is executed only after a second interval threshold has elapsed following the two taps. This method avoids situations where the executed instruction does not match the number of taps performed by the user.

[0110] In some possible embodiments, to facilitate user awareness that a corresponding command has been executed based on the user's tapping action, the motor in the terminal device can be controlled to vibrate after detecting a tapping command triggered by the crown tapping action based on the offset signal, acceleration value, and displacement. The vibration duration of the motor can be set as needed, for example, the vibration duration of the motor can be set to 1 second.

[0111] It should be noted that the three methods for determining the number of taps given above are only three examples and are not intended to limit the number of taps or the corresponding instructions. In specific implementation, the correspondence between the number of taps and the execution instructions can be defined according to the requirements.

[0112] Based on the same inventive concept, after introducing a terminal device control method provided by an embodiment of this application, as shown in FIG8, a terminal device control device 800 provided by an embodiment of this application is described below. The device includes:

[0113] The detection module 10001 is used by the terminal device to detect a first operation based on the offset signal, acceleration value and displacement amount. The first operation is the operation of tapping the crown. The offset signal is used to represent the directional offset of the terminal device, the acceleration value is used to represent the acceleration of the terminal device, and the displacement amount is used to represent the displacement of the crown in a preset direction.

[0114] The instruction execution module 10002 is used to execute the instruction corresponding to the first operation in response to the first operation.

[0115] In some possible embodiments, the first operation includes: a single tap operation, the single tap operation corresponding to a first instruction; and / or, the first operation includes: a double tap operation, the double tap operation corresponding to a second instruction; and / or, the first operation includes: a triple tap operation, the triple tap operation corresponding to a third instruction.

[0116] In some possible embodiments, the detection module 10001 is configured to: determine that a tapping operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or determine that a tapping operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold.

[0117] In some possible embodiments, the detection module 10001 is specifically configured to: determine that a tapping operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period; wherein, the first event is the displacement being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period, then it is determined that a tapping operation has been detected.

[0118] In some possible embodiments, the detection module 10001 is specifically configured to: determine that a double-click operation has been detected if it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and the time interval between two detected first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold; wherein, the first event is the displacement being greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if it is determined that the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and the time interval between two detected first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a double-click operation has been detected.

[0119] In some possible embodiments, the detection module 10001 is specifically configured to: determine that a triple-click operation has been detected if the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold; wherein, the first event is a displacement greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold; or if the offset signal is greater than or equal to a first offset threshold, the acceleration value is greater than or equal to a first acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then a triple-click operation has been detected.

[0120] In some possible embodiments, the directional offset includes the angular velocity of the terminal device in three-dimensional directions.

[0121] In some possible embodiments, the offset signal is obtained based on the gyroscope of the terminal device, the acceleration value is obtained based on the accelerometer of the terminal device, and the displacement is obtained based on the orientation sensor of the terminal device.

[0122] In some possible embodiments, the preset direction is that the crown is perpendicular to the body of the terminal device.

[0123] In some possible embodiments, the instruction execution module 10002 is also used to control the motor in the terminal device to vibrate.

[0124] In some possible embodiments, the instruction execution module 10002 is specifically used to execute the instruction corresponding to the first operation based on the current interface in response to the first operation, wherein the current interface is the interface currently being displayed on the terminal device.

[0125] In some possible embodiments, the first instruction is used to: select the next content corresponding to the target content, where the target content is the content selected on the current page, and the next content is the content on the current page in the direction specified by the target content; the current page is the interface being displayed on the terminal device; the second instruction is used to: enter the page corresponding to the target content; and the third instruction is used to: return to the parent page of the current page.

[0126] Corresponding to the above embodiments, this application also provides an electronic device. Figure 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 900 may include: a processor 901, a memory 902, and a communication unit 903. These components communicate through one or more buses. Those skilled in the art will understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present invention. It can be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0127] The communication unit 903 is used to establish a communication channel, enabling the electronic device to communicate with other devices. It receives user data from other devices or sends user data to other devices.

[0128] The processor 901 serves as the control center of the electronic device, connecting various parts of the device via interfaces and lines. It executes software programs and / or modules stored in the memory 902, and calls data stored in the memory to perform various functions and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 901 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.

[0129] The memory 902 is used to store the execution instructions of the processor 901. The memory 902 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0130] When the execution instructions in memory 902 are executed by processor 901, the electronic device 900 is able to perform some or all of the steps in the embodiment shown in FIG3.

[0131] In a specific implementation, the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps of the various embodiments of the terminal device control method provided by the present invention. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0132] In some possible implementations, various aspects of the terminal device control method provided in this application can also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to cause the computer device to perform the steps in the terminal device control method according to the various exemplary embodiments of this application described above.

[0133] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0134] The program product for controlling a terminal device according to embodiments of this application may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on an electronic device. However, the program product of this application is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0135] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.

[0136] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

Claims

1. A terminal device control method, characterized in that, The terminal device is provided with a crown, and the method includes: The terminal device detects a first operation based on an offset signal, an acceleration value, and a displacement amount. The first operation is tapping the crown. The offset signal is used to characterize the directional offset of the terminal device, the acceleration value is used to characterize the acceleration of the terminal device, and the displacement amount is used to characterize the displacement of the crown in a preset direction. In response to the first operation, the instruction corresponding to the first operation is executed.

2. The method according to claim 1, characterized in that, The first operation includes: one tap operation, the one tap operation corresponding to a first instruction; and / or, The first operation includes: a double-click operation, the double-click operation corresponding to a second instruction; and / or, The first operation includes a triple-click operation, which corresponds to a third instruction.

3. The method according to claim 2, characterized in that, The terminal device detects a tapping operation based on the offset signal, acceleration value, and displacement, including: If it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, and the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, then it is determined that one tapping operation was detected; or If it is determined that the offset signal is greater than or equal to the first offset threshold, the acceleration value is greater than or equal to the first acceleration threshold, and the displacement is greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold, then it is determined that one tapping operation has been detected.

4. The method according to claim 2, characterized in that, The terminal device detects a tapping operation based on the offset signal, acceleration value, and displacement, including: If it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and only one first event is detected within a preset time period, then it is determined that one tapping operation has been detected; wherein, the first event is that the displacement is greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold; or If it is determined that the offset signal is greater than or equal to the first offset threshold, the acceleration value is greater than or equal to the first acceleration threshold, and the displacement is greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold, and the first event is detected only once within a preset time period, then it is determined that one tapping operation has been detected.

5. The method according to any one of claims 2-4, characterized in that, The terminal device detects a double-click operation based on the offset signal, acceleration value, and displacement, including: If it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, and the time interval between two detected first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then it is determined that a double-click operation has been detected; wherein, the first event is the displacement being greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold; or If it is determined that the offset signal is greater than or equal to the first offset threshold, the acceleration value is greater than or equal to the first acceleration threshold, the displacement is greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold, and the time interval between two detected first events is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, then it is determined that a double-click operation has been detected.

6. The method according to any one of claims 2-5, characterized in that, The terminal device detects a three-click operation based on the offset signal, acceleration value, and displacement, including: If it is determined that the offset signal is greater than or equal to a first offset threshold and less than or equal to a second offset threshold, the acceleration value is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold, the displacement is greater than or equal to a first displacement threshold and less than or equal to a second displacement threshold, three first events are detected, and the time interval between two adjacent first events is greater than or equal to a first interval threshold and less than or equal to a second interval threshold, then it is determined that a triple-click operation has been detected; wherein, the first event is the displacement being greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold; or If it is determined that the offset signal is greater than or equal to the first offset threshold, the acceleration value is greater than or equal to the first acceleration threshold, and the displacement is greater than or equal to the first displacement threshold and less than or equal to the second displacement threshold, and three of the first events are detected, and the time interval between two adjacent first events is greater than or equal to the first interval threshold and less than or equal to the second interval threshold, then it is determined that a triple-click operation has been detected.

7. The method according to any one of claims 1-6, characterized in that: The directional offset includes the angular velocity of the terminal device in three dimensions.

8. The method according to any one of claims 1-7, characterized in that, The offset signal is obtained based on the gyroscope of the terminal device, the acceleration value is obtained based on the accelerometer of the terminal device, and the displacement is obtained based on the orientation sensor of the terminal device.

9. The method according to any one of claims 1-8, characterized in that, The preset direction is the direction in which the crown is perpendicular to the body of the terminal device.

10. The method according to any one of claims 1-9, characterized in that, After detecting the first operation based on the offset signal, the acceleration value, and the displacement, the method further includes: The motor in the terminal device is controlled to vibrate.

11. The method according to any one of claims 1-10, characterized in that, The instruction to execute the first operation in response to the first operation includes: In response to the first operation, the instruction corresponding to the first operation is executed based on the current interface, wherein the current interface is the interface currently being displayed on the terminal device.

12. The method according to any one of claims 2-11, characterized in that, The first instruction is used to: select the next content corresponding to the target content, wherein the target content is the content selected on the current page, and the next content is the content on the current page in the direction specified by the target content; the current page is the interface currently being displayed on the terminal device; The second instruction is used to: access the page corresponding to the target content; The third instruction is used to: return to the previous page of the current page.

13. An electronic device, characterized in that, It includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to perform the method of any one of claims 1-12.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1-12.

15. A computer program product, characterized in that, The computer program product includes: computer program code, which, when run on a computer, causes the computer to perform the method described in any one of claims 1-12.

Citation Information

Patent Citations

  • Smart watch adjustment and control method and smart watch

    CN105117148A

  • Position selection method, electronic equipment and computer readable storage medium

    CN118672418A

  • Method and smart watch device for providing input-interface using recognizing tapping

    KR101639338B1

  • Virtualization of digital crown actions based on actions performed with an electronic pen

    US11989359B1

  • Finger control of wearable devices

    US20220083182A1