Electronic device and knock determination method

TWI937766BActive Publication Date: 2026-09-01COMPAL ELECTRONICS INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
TW114110979
Authority / Receiving Office
TW · TW
Patent Type
Patents
Current Assignee / Owner
Priority Date
2024-04-03
Filing Date
2025-03-24
Publication Date
2026-09-01
Estimated Expiration
2045-03-23

AI Technical Summary

Technical Problem

Current multimedia devices, such as voice assistants, are activated by voice or manual settings and lack flexibility in function provision, leading to security issues and limited functionality.

Method used

An electronic device equipped with an accelerometer and processor that calculates acceleration data to detect tapping events by determining amplitude values exceeding a threshold, allowing for adaptive activation and function execution.

Benefits of technology

Accurately determines tapping events for device activation, adapts detection parameters for improved accuracy, and performs identity and gaze recognition to provide tailored functions, enhancing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure TWG2TB001908754_001
    Figure TWG2TB001908754_001
  • Figure TWG2TB001908754_002
    Figure TWG2TB001908754_002
  • Figure TWG2TB001908754_003
    Figure TWG2TB001908754_003
Patent Text Reader

Abstract

This invention proposes an electronic device and a method for determining impact. The electronic device includes an accelerometer and a processor. The accelerometer generates acceleration data. The processor is coupled to the accelerometer and receives the acceleration data. The processor calculates the average value of the acceleration data as a static acceleration value. The processor subtracts multiple acceleration values ​​from the static acceleration value and takes the absolute value to generate multiple amplitude values. The processor determines whether each amplitude value exceeds a threshold to determine whether a knock event has occurred and records the number of knocks.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This invention relates to an apparatus, and more particularly to an electronic device and a method for determining tapping. [Previous Technology]

[0002] Most current multimedia devices, such as voice assistant devices, are activated or woken up by voice or manual settings, and can only provide fixed functions to users. Therefore, current multimedia devices often have security issues or can only provide a single function or mode. [Summary of the Invention]

[0003] The present invention provides an electronic device and a method for determining whether a knocking event has occurred.

[0004] The electronic device of the present invention includes an accelerometer and a processor. The accelerometer is used to generate acceleration numerical data. The processor is coupled to the accelerometer and receives the acceleration numerical data. The processor calculates the average value of the acceleration numerical data as a static acceleration value. The processor subtracts the static acceleration value from multiple acceleration values ​​of the acceleration numerical data and takes the absolute value to generate multiple amplitude values. The processor determines whether each of the multiple amplitude values ​​exceeds a threshold to determine whether a tapping event has occurred, and records the number of taps.

[0005] The tapping determination method of the electronic device of the present invention includes the following steps: generating acceleration numerical data through an accelerometer; receiving the acceleration numerical data through a processor and calculating the average value of the acceleration numerical data as a static acceleration value; subtracting the absolute value of the multiple acceleration values ​​of the acceleration numerical data from the static acceleration value through the processor to generate multiple amplitude values; and determining whether the multiple amplitude values ​​exceed a threshold through the processor to determine whether a tapping event has occurred, and recording the number of taps.

[0006] Based on the above, the electronic device and the knocking judgment method of the present invention can accurately determine whether a knocking event has occurred through the detection results of the accelerometer.

[0007] In order to make the above features and advantages of the present invention more apparent and understandable, specific embodiments are described below, and detailed descriptions are given in conjunction with the accompanying drawings.

Implementation Method

[0009] To make the contents of this invention more readily apparent, the following specific embodiments are provided as examples on which this invention can indeed be implemented. Furthermore, wherever possible, elements / components / steps using the same reference numerals in the drawings and embodiments represent the same or similar parts.

[0010] FIG1 is a schematic diagram of an electronic device according to an embodiment of the present invention. Referring to FIG1, the electronic device 100 includes a processor 110 and an accelerometer 120. The processor 110 is coupled to the accelerometer 120. In this embodiment, the electronic device 100 may be, for example, a voice assistant device, a smart speaker, an Internet of Things (IoT) device, a laptop computer, a tablet computer, or a related electronic product. In this embodiment, the electronic device 100 can implement a tap-to-wake function through the detection results of the accelerometer 120. In one embodiment, the electronic device 100 can also use the tap detection of the accelerometer 120 to execute related multimedia functions.

[0011] In this embodiment, the processor 110 may include, for example, a central processing unit (CPU), a microcontroller (MCU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSPs), programmable controllers, application-specific integrated circuits (ASICs), programmable logic devices (PLDs), other similar processing devices, or combinations of these devices.

[0012] Figure 2 is a flowchart of a tapping judgment method according to an embodiment of the present invention. Figure 3 is a schematic diagram of acceleration numerical data according to an embodiment of the present invention. Referring to Figures 1 to 3, the electronic device 100 can perform the following steps S210 to S240. In this embodiment, the user can tap the device body of the electronic device 100 or tap the area around the location of the non-flexible surface (e.g., a desktop, the ground, or any plane that can transmit vibration) where the electronic device 100 is placed, so that the accelerometer 120 can detect the vibration. In step S210, the electronic device 100 can generate acceleration numerical data 300 as shown in Figure 3 through the accelerometer 120. Figure 3 can show the curve of the change of acceleration value within a detection time interval. In step S220, the processor 110 can receive the acceleration numerical data 300 and calculate the average value of the acceleration numerical data 300 as a static acceleration value. In this embodiment, the static acceleration value can be, for example, 9.73.

[0013] In step S320, the processor 110 can subtract the absolute values ​​of multiple acceleration values ​​of the acceleration data 300 from the static acceleration value to generate multiple amplitude values. In step S240, the processor 110 can determine whether the multiple amplitude values ​​exceed the threshold Th to determine whether a knocking event has occurred, and record the number of knocks. As shown in Figure 3, the processor 110 can determine that the amplitude values ​​of multiple acceleration peaks 301~320 exceed the threshold Th, and therefore can mark multiple knocking events accordingly and record the number of knocks. In this embodiment, the threshold Th can be, for example, 0.1.

[0014] In this embodiment, when the processor 110 determines that two consecutive tapping events occur within a preset time range (hereinafter, in this embodiment, two consecutive tapping events within a preset time range will be referred to as tapping events), the processor 110 may decide to wake up the electronic device 100. For example, as shown in FIG3, the processor 110 may determine that two consecutive tapping events occur within a preset time range at two time points of acceleration peaks 302 and 303, and therefore will perform a wake-up operation. In this embodiment, the preset time range may be, for example, 0.2 seconds to 0.8 seconds. Therefore, the electronic device 100 of this embodiment can accurately determine whether the user taps the electronic device 100 body or its surroundings.

[0015] FIG4 is a schematic diagram of an electronic device according to another embodiment of the present invention. Referring to FIG4, the electronic device 400 includes a processor 410, an accelerometer 420, a camera 430, a speaker module 440, a microphone 450, and a storage device 460. The processor 410 is coupled to the accelerometer 420, the camera 430, the speaker module 440, the microphone 450, and the storage device 460. In one embodiment, the electronic device 400 may also exclude at least one of the camera 430, the speaker module 440, and the microphone 450.

[0016] In this embodiment, the storage device 460 may be, for example, Dynamic Random Access Memory (DRAM), Flash memory, or Non-Volatile Random Access Memory (NVRAM). In this embodiment, the storage device 460 may store the gaze detection module 461, the face recognition module 462, and the voice assistant module 463 for execution by the processor 410. The gaze detection module 461, the face recognition module 462, and the voice assistant module 463 may be implemented using artificial intelligence (AI) models, neural network models, language models, or multimodal models, respectively, and the present invention is not limited thereto.

[0017] In this embodiment, the processor 410 can capture a user's image through the camera 430 and input it to the gaze detection module 461. The gaze detection module 461 can be used to determine whether the user in the image is looking at the electronic device 400. To this end, the gaze detection module 461 can analyze and calculate the user's viewing angle and / or line of sight in the image, and determine whether the user is looking at the electronic device 400 by determining whether the user's viewing angle and / or line of sight passes through the electronic device 400 itself.

[0018] In this embodiment, the processor 410 can capture a user's image through the camera 430 and input it to the face recognition module 462. The face recognition module 462 can be used to identify whether the user in the image has been registered. In this embodiment, the processor 410 can be paired with a speaker module 440 and a microphone 450 to realize related voice control or voice interaction functions through a voice assistant module 463. In this embodiment, the camera 430 may include at least one of an RGB camera, a depth camera, and an infrared (IR) camera, and the present invention is not limited thereto.

[0019] In this embodiment, the storage device 460 may also store calculations and programs for implementing the relevant functions of the various embodiments of the present invention. In one embodiment, the gaze detection module 461, the face recognition module 462, and the voice assistant module 463 may also be set on a cloud server so that the electronic device 400 can access and use them through network communication.

[0020] Figure 5 is a flowchart of a knocking determination method according to another embodiment of the present invention. Referring to Figures 4 and 5, the electronic device 400 can perform the following steps S510 to S550. In this embodiment, the user can knock on the device body of the electronic device 400 or knock around the area where the electronic device 400 is placed on a non-flexible plane, so that the accelerometer 420 can detect the vibration. In step S510, the electronic device 400 can generate acceleration numerical data through the accelerometer 420. In step S520, the processor 410 can trim the acceleration numerical data. In step S530, the processor 410 can determine whether a knocking event has occurred based on the trimmed acceleration numerical data. In this embodiment, the processor 410 can calculate the average value of the trimmed acceleration numerical data as a static acceleration value. The processor 410 can subtract the absolute value of each of the multiple acceleration values ​​of the trimmed acceleration numerical data from the static acceleration value to generate multiple amplitude values. The processor 410 can determine whether multiple amplitude values ​​exceed a threshold to determine whether a tapping event has occurred, and records the number of taps. In step S540, the processor 410 can determine whether a tapping event has occurred based on the adjusted acceleration data. In this embodiment, when the processor 410 determines that the time interval between any two consecutive amplitude values ​​exceeding the threshold is within a preset time range, the processor 410 can determine that a tapping event has occurred, and records the number of taps. In step S550, the processor 410 can wake up the electronic device 400. In this embodiment, the electronic device 400 can accurately determine whether the user taps (twice consecutively) the electronic device 400 body or its surroundings to correspondingly activate the wake-up function.

[0021] Figure 6 is a flowchart of calculating the average value according to an embodiment of the present invention. Referring to Figures 4 and 6, in one embodiment, the method of adjusting the acceleration numerical data in step S520 above can be implemented as follows: steps S610 to S620. In step S610, the processor 110 can calculate multiple acceleration values ​​according to the adjustment averaging function to remove the portion within a preset extreme value ratio of the multiple acceleration values. In step S620, the processor 110 can calculate the average value based on the remaining portion. In one embodiment, the adjustment averaging function can be, for example, the TRIMMEAN function. The processor 110 can use the TRIMMEAN function to adjust the acceleration numerical data shown in Figure 3, for example, by removing 10% of the extreme values ​​of positive values ​​and 10% of the extreme values ​​of negative values, and then calculate the corrected average value. Therefore, the electronic device 400 of this embodiment can adaptively adjust the acceleration numerical data to improve the accuracy of subsequent tapping judgment.

[0022] Figure 7 is a flowchart of calculating the average value according to another embodiment of the present invention. Referring to Figures 4 and 7, in another embodiment, the method of adjusting the acceleration numerical data in step S520 above can also be implemented as in steps S710 to S750. In step S710, the processor 110 can calculate the multiple acceleration values ​​according to the adjustment averaging function to remove the portion within a preset extreme value ratio of the multiple acceleration values. In step S720, the processor 110 can calculate the adjusted average value based on the remaining portion. The processor 110 can adjust the acceleration numerical data shown in Figure 3 using the TRIMMEAN function, for example, by removing 10% of the extreme values ​​of positive values ​​and 10% of the extreme values ​​of negative values, and then calculate the corrected average value. In step S730, the processor 110 can determine whether the adjusted average value is between a first average threshold and a second average threshold. The first average threshold may be, for example, 9.7. The second average threshold may be, for example, 9.9. If so, in step S740, the processor 110 can use the adjusted average value as the new average value. If not, in step S750, the processor 110 can increase the preset extreme value ratio and recalculate the multiple acceleration values ​​according to the adjusted averaging function. Therefore, the electronic device 400 of this embodiment can adaptively adjust the acceleration value data to improve the accuracy of subsequent tapping judgment.

[0023] Figure 8 is a flowchart of the automatic adjustment of the judgment standard for knock detection according to an embodiment of the present invention. Referring to Figures 4 and 8, in one embodiment, in step S530 above, when the processor 410 does not detect any knock event, the processor 410 may further execute the following steps S810-S820 to re-determine whether a knock event has occurred. In step S810, when the processor 410 determines that multiple amplitude values ​​do not exceed the threshold, the threshold is subtracted from a preset difference to generate a new threshold. In step S820, the processor 410 may re-determine whether a knock event has occurred. In one embodiment, the preset difference may be, for example, 0.01. Therefore, the electronic device 400 of this embodiment can adaptively adjust the preset difference used to determine the amplitude value to improve the accuracy of subsequent knock detection.

[0024] Figure 9 is a flowchart of a tapping determination method according to an embodiment of the present invention. Referring to Figures 4 and 9, in one embodiment, the tapping determination in step S540 can be implemented as follows: steps S910 to S930. In step S910, the processor 410 can determine whether the time interval between any two consecutive amplitude values ​​exceeding a threshold is within a preset time range. If yes, in step S920, the processor 410 can determine that a tapping event has occurred and record the number of taps. If no, in step S930, the processor 410 can determine that a knocking event has occurred, but no tapping event has occurred. In this embodiment, when a tapping event occurs, the processor 410 can perform the wake-up function of the electronic device 400.

[0025] Figure 10 is a flowchart of an embodiment of the present invention for automatically adjusting a preset time range. Referring to Figures 4 and 10, in one embodiment, in step S920 above, when the processor 410 determines that a tapping event has occurred, the processor 410 may further execute the following steps S1010 to S1030. In step S1010, the processor 410 may calculate the time interval between any two consecutive tapping events, and calculate the average time interval and the accuracy rate. Herein, the accuracy rate is the value of the number of taps divided by the number of clicks. In step S1020, the processor 410 may adjust the preset time range, and calculate another number of taps based on the adjusted preset time range. Herein, the preset time range may be, for example, 0.2 seconds to 0.8 seconds. The processor 410 may, for example, adjust the preset time range to 0.5 seconds to 1.1 seconds. In this way, the processor 410 may re-determine whether a tapping event has occurred based on the adjusted preset time range, and recalculate another number of taps. The processor 410 can divide another number of taps by the total number of taps to obtain another accuracy rate. In step S1030, when the other accuracy rate is higher than the accuracy rate, the processor 410 can set the adjusted preset time range as the new preset time range. Conversely, the processor 410 can maintain the original preset time range. Therefore, the electronic device 400 of this embodiment can adaptively optimize the length of the preset time range to improve the accuracy of tap detection.

[0026] Figure 11 is a flowchart of automatically adjusting a preset time range or threshold according to an embodiment of the present invention. Referring to Figures 4 and 11, in one embodiment, in step S930 above, when the processor 410 determines that no tapping event has occurred, the processor 410 may further execute the following steps S1110 to S1120. In step S1110, the processor 410 may calculate the average time of a single tapping event and calculate the standard deviation of the average time of a single tapping event. In step S1120, the processor 410 may determine whether the value after subtracting the average time from the standard deviation of the average time is greater than the second difference limit of the accelerometer 420, so as to decide to adjust the preset time range or threshold.

[0027] Specifically, when the processor 410 determines that the time interval between any two consecutive amplitude values ​​exceeding a threshold is not within a preset time range, the processor 410 can calculate the average time of a single tapping event and calculate the standard deviation of the average time of the single tapping event. The processor 410 can then determine whether the value obtained by subtracting the average time from the standard deviation of the average time is greater than a second difference limit, in order to decide whether to adjust the preset time range or threshold. In one embodiment, the second difference limit may be, for example, 0.07 seconds.

[0028] Furthermore, when the processor 410 determines that the value obtained by subtracting the average time from the standard deviation of the average time is greater than the second difference limit, the processor 410 can further determine whether the average time is less than the lower limit of the preset time range or greater than the upper limit of the preset time range. When the processor 410 determines that the average time is less than the lower limit of the preset time range, the processor 410 can adjust the preset time range to a value between the average time and the standard deviation of the average time, and the upper limit of the preset time range. When the processor 410 determines that the average time is greater than the upper limit of the preset time range, the processor 410 can determine whether the value obtained by adding the average time and the standard deviation of the average time is greater than 2. When the processor 410 determines that the value obtained by adding the average time and the standard deviation of the average time is greater than 2, the processor 410 can adjust the preset time range to a value between the lower limit of the preset time range and the value obtained by adding the average time and the standard deviation of the average time. When the processor 410 determines that the value obtained by adding the average time and the standard deviation of the average time is less than or equal to 2, the processor 410 can adjust the preset time range to a value between the lower limit of the preset time range and 2. Finally, the processor 410 re-determines whether a tapping event has occurred. Therefore, the electronic device 400 of this embodiment can adaptively adjust the length of the preset time range to improve the accuracy of the tapping determination.

[0029] Figure 12 is a flowchart of an automatic voice assistant module according to an embodiment of the present invention. Referring to Figures 4 and 12, in one embodiment, in step S550 above, the processor 410 may further execute the following steps S1210-S1220 to wake up the electronic device 400. In step S1210, the processor 410 can wake up the electronic device 400. In this embodiment, the wake-up function may refer to waking up at least one of the camera 430, speaker module 440, microphone 450, and storage device 460 of the electronic device 100. Alternatively, the wake-up function may refer to waking up other functional circuits, other functional chips, peripheral components, operating system (OS), other functional circuits inside the processor 110, lighting up the display or lights, etc. of the electronic device 100, and the present invention is not limited thereto. In step S1220, the processor 410 may execute the voice assistant module 463 in conjunction with the microphone 450 and speaker module 440.

[0030] In one embodiment, after a user is awakened by tapping the electronic device 400 or its surroundings (within a distance range where the accelerometer 420 can detect the vibration), the voice assistant module 463 can perform simple voice assistant operations.

[0031] In one embodiment, the processor 410 can capture a user's image through the camera 430. When the processor 410 determines that a tapping event has occurred, the processor 410 can analyze the user's image through the gaze detection module 461 to detect whether the user is looking at the camera 430, and analyze the user's image through the facial recognition module 462 to determine whether the user has registered. Therefore, when the processor 410 detects that the user is looking at the camera 430 and the user has registered, the voice assistant module 463 can perform advanced voice assistant operations. When the processor 410 detects that the user is not looking at the camera 430 or the user has not registered, the voice assistant module 463 can perform simple voice assistant operations.

[0032] In the above embodiment, if the processor 410 determines that the user is looking at the camera 430 and the user has registered an identity (passed identity authentication), the voice assistant module 463 can perform advanced voice assistant operations.

[0033] In the above embodiment, if the processor 410 determines that the user is looking at the camera 430, but the user has not passed the identity authentication, the voice assistant module 463 can perform simple voice assistant operations.

[0034] In the above embodiment, if the processor 410 determines that the user is not looking at the camera 430, even though the user has registered an identity (passed identity authentication), the voice assistant module 463 still performs simple voice assistant operations.

[0035] In the above embodiment, if the processor 410 determines that the user is not looking at the camera 430 and the user has not passed the identity authentication, the voice assistant module 463 can perform simple voice assistant operations.

[0036] In the above embodiment, if the processor 410 determines that the user is not looking at the camera 430, the processor 410 may not execute the face recognition module 462 and instead execute a simple voice assistant operation.

[0037] In one embodiment, the advanced voice assistant operation may refer to the processor 410 executing preset or specific multimedia functions or other specific functions based on personal data or data with high privacy weight, but the present invention is not limited thereto. The simple voice assistant operation may refer to the processor 410 executing general multimedia functions, general data query functions, or other simple functions, but the present invention is not limited thereto.

[0038] In summary, the electronic device and tapping detection method of the present invention can accurately determine whether a user taps the electronic device body or its surroundings using an accelerometer in an attempt to wake up the electronic device or request it to perform a corresponding function. Furthermore, the electronic device and tapping detection method of the present invention can automatically adjust the tapping detection parameters to adaptively improve the accuracy of the detection. Moreover, the electronic device and tapping detection method of the present invention can automatically perform identity recognition and gaze detection to provide corresponding operational functions. Therefore, the electronic device and tapping detection method of the present invention also provide a good user experience.

[0039] Although the present invention has been disclosed above by way of embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make some modifications and refinements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims. [Simplified Explanation of the Diagram]

[0008] Figure 1 is a schematic diagram of an electronic device according to an embodiment of the present invention. Figure 2 is a flowchart of a tapping judgment method according to an embodiment of the present invention. Figure 3 is a schematic diagram of acceleration numerical data according to an embodiment of the present invention. Figure 4 is a schematic diagram of an electronic device according to another embodiment of the present invention. Figure 5 is a flowchart of a tapping judgment method according to another embodiment of the present invention. Figure 6 is a flowchart of calculating the average value according to an embodiment of the present invention. Figure 7 is a flowchart of calculating the average value according to another embodiment of the present invention. Figure 8 is a flowchart of automatically adjusting the judgment criteria for tapping judgment according to an embodiment of the present invention. Figure 9 is a flowchart of a tapping judgment method according to an embodiment of the present invention. Figure 10 is a flowchart of automatically adjusting a preset time range according to an embodiment of the present invention. Figure 11 is a flowchart of automatically adjusting a preset time range or threshold according to an embodiment of the present invention. Figure 12 is a flowchart of automatically executing a voice assistant module according to an embodiment of the present invention.

Claims

1. An electronic device comprising: An accelerometer is used to generate numerical acceleration data; The system also includes a processor coupled to the accelerometer and receiving the acceleration data. The processor calculates an average value of the acceleration data as a static acceleration value. The processor subtracts the static acceleration value from multiple acceleration values ​​of the acceleration data and takes the absolute value to generate multiple amplitude values. The processor determines whether each amplitude value exceeds a threshold to determine whether a tapping event has occurred and records the number of taps. When the processor determines that none of the amplitude values ​​exceed the threshold, the processor subtracts the threshold from a preset difference to generate a new threshold and re-determines whether the tapping event has occurred.

2. The electronic device of claim 1, wherein when the processor determines that the time interval between any two consecutive amplitude values ​​exceeding the threshold is within a preset time range, the processor determines that a tapping event has occurred and records a number of taps.

3. The electronic device of claim 2, wherein when the processor determines that the time interval between any two consecutive amplitude values ​​exceeding the threshold is within the preset time range, the processor calculates a time interval between any two consecutive tapping events, and calculates an average time interval and an accuracy rate, wherein the accuracy rate is the value of the number of taps divided by the number of knocks.

4. The electronic device as claimed in claim 2, wherein the processor adjusts the preset time range and calculates another number of taps based on the adjusted preset time range, wherein the processor divides the other number of taps by the number of taps to obtain another accuracy rate, wherein when the processor determines that the other accuracy rate is higher than the accuracy rate, the processor sets the adjusted preset time range as a new preset time range.

5. The electronic device as claimed in claim 2, wherein when the processor determines that the time interval between any two consecutive amplitude values ​​exceeding the threshold is not within a preset time range, the processor determines that the tapping event has occurred, but the knocking event has not occurred.

6. The electronic device of claim 2, wherein when the processor determines that the time interval between any two consecutive amplitude values ​​exceeding the threshold is not within the preset time range, the processor calculates an average time of a single tapping event and calculates an average time standard deviation of the single tapping event, wherein the processor determines whether the value obtained by subtracting the average time from the average time and the average time standard deviation is greater than a one-second difference limit, in order to decide to adjust the preset time range or the threshold.

7. The electronic device as claimed in claim 6, wherein when the processor determines that the value of the average time minus the average time standard deviation is greater than the second difference limit, the processor determines whether the average time is less than a preset time range lower limit or greater than a preset time range upper limit.

8. The electronic device of claim 7, wherein when the processor determines that the average time is less than the lower limit of the preset time range, the processor adjusts the preset time range to a value between the average time and the standard deviation of the average time, and the upper limit of the preset time range.

9. The electronic device of claim 7, wherein when the processor determines that the average time is greater than the upper limit of the preset time range, the processor determines whether the value of the sum of the average time and the standard deviation of the average time is greater than 2.

10. The electronic device of claim 9, wherein when the processor determines that the sum of the average time and the standard deviation of the average time is greater than 2, the processor adjusts the preset time range to a value between the lower limit of the preset time range and the sum of the average time and the standard deviation of the average time.

11. The electronic device of claim 9, wherein when the processor determines that the sum of the average time and the standard deviation of the average time is less than or equal to 2, the processor adjusts the preset time range to be between the lower limit of the preset time range and 2, wherein the processor re-determines whether the tapping event has occurred.

12. The electronic device as claimed in claim 2, further comprising: A microphone, coupled to the processor; The device also includes a speaker module coupled to the processor, wherein when the processor determines that the tapping event has occurred, the processor wakes up the electronic device and executes a voice assistant module in conjunction with the microphone and the speaker module.

13. The electronic device as claimed in claim 12, further comprising: A camera, coupled to the processor, is used to capture a user's image. When the processor determines that the tapping event has occurred, the processor analyzes the user's image through a gaze detection module to detect whether the user is looking at the camera, and analyzes the user's image through a facial recognition module to determine whether the user has registered.

14. The electronic device of claim 13, wherein when the processor detects that the user is looking at the camera and the user has registered, the voice assistant module performs an advanced voice assistant operation, wherein when the processor detects through the camera that the user is not looking at the camera or the user has not registered, the voice assistant module performs a simple voice assistant operation.

15. The electronic device of claim 1, wherein the processor calculates the acceleration values ​​according to a trimmed averaging function to remove a portion of the acceleration values ​​within a preset extreme value ratio, and calculates the average value based on the remaining portion.

16. The electronic device of claim 1, wherein the processor calculates the acceleration values ​​according to a trimmed averaging function to remove a portion of the acceleration values ​​within a preset extreme value ratio, and calculates a trimmed average value based on the remaining portion, wherein the processor determines whether the trimmed average value is between a first average threshold and a second average threshold.

17. The electronic device of claim 16, wherein when the processor determines that the adjusted average value is between the first average threshold and the second average threshold, the processor uses the adjusted average value as the new average value.

18. The electronic device of claim 16, wherein when the processor determines that the adjusted average value is not between the first average threshold and the second average threshold, the processor increases the preset extreme value ratio and recalculates the acceleration values ​​according to the adjusted average function.

19. A method for determining tapping in an electronic device, comprising: An acceleration value is generated through an accelerometer; The processor receives the acceleration data and calculates an average value of the acceleration data as a static acceleration value. The processor subtracts the static acceleration value from multiple acceleration values ​​of the acceleration data and takes the absolute value to generate multiple amplitude values. The processor determines whether each amplitude value exceeds a threshold to determine whether a tapping event has occurred and records the number of taps. When it is determined that none of the amplitude values ​​exceed the threshold, the processor subtracts the threshold from a preset difference to generate a new threshold and re-determines whether the tapping event has occurred.

20. An electronic device comprising: An accelerometer is used to generate numerical acceleration data; The system also includes a processor coupled to the accelerometer and receiving the acceleration data. The processor calculates an average value of the acceleration data as a static acceleration value. The processor subtracts the static acceleration value from multiple acceleration values ​​of the acceleration data and takes the absolute value to generate multiple amplitude values. The processor determines whether each amplitude value exceeds a threshold to determine whether a tapping event has occurred and records the number of taps. When the processor determines that the time interval between any two consecutive amplitude values ​​exceeding the threshold is within a preset time range, the processor determines that a tapping event has occurred and records the number of taps.

21. A method for determining tapping in an electronic device, comprising: An acceleration value is generated through an accelerometer; The processor receives the acceleration data and calculates an average value of the acceleration data as a static acceleration value. The processor subtracts the static acceleration value from multiple acceleration values ​​of the acceleration data and takes the absolute value to generate multiple amplitude values. The processor determines whether each amplitude value exceeds a threshold to determine if a tapping event has occurred and records the number of taps. When the time interval between any two consecutive amplitude values ​​exceeding the threshold is within a preset time range, the processor determines that a tapping event has occurred and records the number of taps.

Citation Information

Patent Citations

  • Electronic equipment and awakening method thereof

    CN104503569A

  • Electronic device and method

    EP4271122A2

  • Device wake-up technologies

    US20220329450A1