Function triggering method for terminal device and terminal device
By detecting the user's movement attributes within the sensing area of the central control screen device, the problem of accidental screen activation when the central control screen device is close to the user is solved, improving the user experience and maintaining the accuracy of normal device function triggering.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-11-11
- Publication Date
- 2026-07-30
AI Technical Summary
The central control screen device is easily accidentally turned on when it is close to the user, which affects the user's sleep experience, especially when the user's movements such as turning over in bed are recognized as proximity operations.
The terminal device-based function triggering method detects the user's movement attributes, including movement distance, speed, or duration, within a first and second sensing area centered on the terminal device, to determine whether to trigger the function and avoid accidental operation.
It effectively reduces the chance of accidental screen activation when users are sleeping, improving the user experience without increasing costs or requiring a reduction in the field of view or screen activation distance threshold.
Smart Images

Figure CN2025134078_30072026_PF_FP_ABST
Abstract
Description
Terminal device function triggering method and terminal device
[0001] This application claims priority to Chinese patent application filed on January 24, 2025, with application number 202510124887.3 and entitled "Function Triggering Method and Terminal Device for Terminal Device", 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 method for triggering the function of a terminal device and a terminal device. Background Technology
[0003] Most central control screen devices in a whole-house smart system have a proximity-activated screen function. This means that when a user approaches the central control screen device, it can be triggered to turn on. When no one approaches the central control screen device, it can enter a screen-off state, thereby saving power consumption from constantly being on and extending the lifespan of the central control screen device.
[0004] However, if the central control screen is placed at the user's bedside, the user's movements while sleeping, such as turning over, will also be detected by the central control screen, which will assume that the user is close to the central control screen and thus the central control screen will be accidentally turned on. This will obviously affect the user's sleep experience. Summary of the Invention
[0005] This application provides a method for triggering functions in a terminal device and a terminal device in general, which can reduce the occurrence of accidental activation of functions in the terminal device, such as accidental screen activation, thereby improving the user experience.
[0006] To achieve the above objectives, the embodiments of this application provide the following technical solutions:
[0007] In a first aspect, a method for triggering a function of a terminal device is provided. The terminal device includes a first sensing area and a second sensing area centered on the terminal device, with the first sensing area surrounding the second sensing area. In this method, the terminal device first detects a user within the first sensing area, and then, in response to a first operation by the user within the first sensing area, the terminal device executes a first function. The first operation includes the user moving into the second sensing area, and the user's movement attributes satisfy a first preset condition. The movement attributes include at least one of the following: movement distance, movement speed, or movement duration.
[0008] In the above method, the user's movement toward the terminal device can be seen as the user moving from the peripheral sensing area of the terminal device to the internal sensing area. If the user's movement attributes meet the preset conditions, the terminal device can be triggered to execute the first function. This can effectively reduce the situation where the terminal device detects erroneous operations and triggers functions, because the extent of user erroneous operations is usually not too large, making it difficult for the user's movement attributes to meet the preset conditions. Especially in scenarios where the terminal device is installed near the bedside, the user's actions such as turning over in bed will not trigger the terminal device to execute functions such as turning on the screen, thereby reducing the impact on the user's rest at night and improving the user experience.
[0009] In one possible implementation of the first aspect, the second sensing area includes a third sensing area centered on the terminal device. In the above method, the terminal device detects that the user is within the third sensing area, and then, in response to a second operation by the user within the third sensing area, the terminal device executes a first function, wherein the second operation includes the user performing a preset action; the preset action includes at least one of the following: waving, kicking, turning around, shaking the head, the amplitude of the user's action being less than a preset amplitude, or the user breathing.
[0010] In the above implementation, the user can also trigger the first function by performing a specific action within the third perception area. If the first function is to light up the screen, then the effect of "waving to light up the screen" at close range can be achieved. The action of "waving to light up the screen" is not limited to waving, but can also be kicking, turning around, shaking the head, the user's action being smaller than the preset range (i.e., a small action), or the user breathing, etc.
[0011] In one possible implementation of the first aspect, the movement attribute includes movement distance; during the user's execution of the first operation, the terminal device acquires a first distance and a second distance between the starting point of the user's movement trajectory and the terminal device. If the difference between the first distance and the second distance is greater than or equal to a preset threshold, the user's movement attribute is determined to meet a first preset condition; if the difference between the first distance and the second distance is less than the preset threshold, the user's movement attribute is determined not to meet the first preset condition.
[0012] In the above implementation, the terminal device can determine the user's movement direction and distance by combining the user's movement trajectory, and then determine whether the user's movement attributes meet the preset conditions. Only when the movement direction and movement attributes meet certain conditions will the terminal device execute the first function, such as turning on the screen when the user is close. This provides the user with a more convenient device control experience and can also effectively reduce the situation where the user's accidental operation triggers the execution of the function, thereby improving the user experience.
[0013] In one possible implementation of the first aspect, the terminal device includes a display screen; the first function includes illuminating the screen.
[0014] In one possible implementation of the first aspect, the terminal device displays a first page, wherein the first page includes a first control corresponding to a proximity-to-wake function. In response to receiving a third operation from the user on the first control, the terminal device activates the proximity-to-wake function.
[0015] In the above implementation, after enabling the proximity-to-screen-light function, the terminal device can detect whether there is a user in the sensing area.
[0016] In one possible implementation of the first aspect, the terminal device performs a first function, including: controlling the screen to switch from a first state to displaying a screen saver page, wherein the first state includes a screen-off state or a screen-off AOD state; or, controlling the screen saver page displayed on the screen to switch to the desktop; or, controlling the screen to switch from the first state to displaying the desktop.
[0017] In one possible implementation of the first aspect, the terminal device is a central control screen or a switch panel.
[0018] In one possible implementation of the first aspect, the terminal device includes a smart light; the first function includes turning on the light.
[0019] In one possible implementation of the first aspect, the terminal device includes an alarm; the first function includes issuing an alarm.
[0020] In a second aspect, a terminal device is provided, including a memory and one or more processors; the memory is coupled to the processors; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the terminal device to perform the function triggering method of the terminal device as described in the first aspect and any of its implementable embodiments.
[0021] Thirdly, a computer-readable storage medium is provided, including computer instructions that, when executed on a terminal device, cause the terminal device to perform the function triggering method of the terminal device as described in the first aspect and any of its implementable embodiments.
[0022] Fourthly, a computer program product is provided that, when run on a computer, causes the computer to perform the function triggering method of the terminal device as described in the first aspect and any of its implementable methods.
[0023] The beneficial effects that the terminal equipment provided in the second aspect, the computer-readable storage medium provided in the third aspect, and the computer program product provided in the fourth aspect can achieve can be referred to the beneficial effects that can be achieved in the first aspect and any of its implementations, and will not be repeated here. Attached Figure Description
[0024] Figure 1 is a schematic diagram of the screen-on distance threshold of the switch panel provided in an embodiment of this application;
[0025] Figure 2 is a schematic diagram of the switch panel provided in the embodiment of this application installed at the head of the bed;
[0026] Figure 3 is a schematic diagram of angle constraint of the switch panel provided in an embodiment of this application;
[0027] Figure 4 is a schematic diagram of the structure of the terminal device provided in an embodiment of this application;
[0028] Figure 5 is a flowchart illustrating the function triggering method of the terminal device provided in an embodiment of this application;
[0029] Figure 6 is a schematic diagram of the sensing area of the switch panel provided in an embodiment of this application;
[0030] Figure 7 is a schematic diagram of the switch panel display page provided in an embodiment of this application;
[0031] Figure 8 is a schematic diagram of the user's movement trajectory provided in an embodiment of this application;
[0032] Figure 9 is a schematic diagram of the user's movement trajectory provided in an embodiment of this application;
[0033] Figure 10 is a schematic diagram of the user's movement trajectory provided in an embodiment of this application;
[0034] Figure 11 is a schematic flowchart of the function triggering method of the terminal device provided in the embodiment of this application;
[0035] Figure 12 is a second schematic diagram of the sensing area of the switch panel provided in an embodiment of this application;
[0036] Figure 13 is a flowchart illustrating the function triggering method of the terminal device provided in this embodiment of the application.
[0037] Figure 14 is a flowchart illustrating the function triggering method of the terminal device provided in this application embodiment;
[0038] Figure 15 is a schematic diagram of the switch panel providing the present application embodiment lighting up the screen;
[0039] Figure 16 is a schematic diagram of the detection results of different switch panels provided in the embodiments of this application;
[0040] Figure 17 is a schematic diagram of the structure of the terminal device provided in the embodiment of this application. Detailed Implementation
[0041] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can represent A or B. "And / or" in this application 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 alone, A and B simultaneously, and B alone, where A and B can be singular or plural. Furthermore, in the description of this application, unless otherwise stated, "multiple" refers to two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple. Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" are not necessarily different. Meanwhile, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is being used as an example, illustration, or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0042] Furthermore, the business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0043] The proximity-activated screen feature or proximity-activated screen function of devices such as central control screens and switch panels can be seen in Figures 1(a) and (b). In the scenarios shown in Figures 1(a) and (b), the switch panel has a corresponding screen-activated distance threshold. Once the distance between the user and the switch panel is less than the screen-activated distance threshold, the switch panel will activate. Furthermore, if the distance between the user and the switch panel remains less than the screen-activated distance threshold, then even a gesture such as waving will trigger the switch panel to activate.
[0044] Currently, the aforementioned proximity-to-screen-on feature primarily relies on millimeter wave (MMW) sensing technology and time-of-flight (TOF) sensing technology. To reduce costs and achieve a better proximity-to-screen-on experience, supporting both frontal and side proximity-to-screen-on, a relatively large field of view (FoV) is typically required. Therefore, the current mainstream technology and its evolution primarily employs MMW sensing technology to achieve proximity-to-screen-on. To save costs, a 1T1R MMW configuration is generally used, with an effective FoV of approximately ±90°. Here, 1T1R indicates that one antenna transmits the millimeter wave, and another antenna receives the returned millimeter wave.
[0045] However, if the switch panel is placed at the head of the user's bed, as shown in Figure 2, and the user is very close to the switch panel while sleeping, the user's movements while sleeping, such as turning over, shaking their head, stretching their hands, stretching their legs, etc., will also be detected by the switch panel. It will then assume that the user has approached the switch panel or performed a specific action, and the switch panel will be triggered to light up, thus affecting the user's rest at night.
[0046] Some technical solutions can reduce the risk of accidental touches when the switch panel is installed near the bedside by controlling the FoV (FoV) of the switch panel. For example, as shown in Figure 3, the switch panel only detects users within the angle constraint area. However, angle constraint is costly; for instance, MMW (Multi-Dimensional Wi-Fi) sensing technology requires at least 1T2R (1 Time-to-Reflection, 2 Rectification) to achieve angle constraint, and its angle measurement accuracy is relatively low. Furthermore, multiple T or R measurements increase costs. Also, if the FoV is too small after FoV control, while it reduces the risk of accidental screen activation, it also degrades the experience of activating the screen by approaching or waving.
[0047] In some technical solutions, the screen-on distance threshold can be reduced. If the screen-on distance threshold is reduced directly, the experience of getting close to the screen will be very poor in other scenarios where the switch panel is not installed at the head of the bed. Users will need to be almost touching the screen to trigger the screen to turn on.
[0048] Some technical solutions can directly disable the proximity-to-screen-on feature of the switch panel at night. However, since different users have different time periods when they need to disable the proximity-to-screen-on feature, this solution is difficult to personalize for each user.
[0049] Based on the above, this application provides a method for triggering a function of a terminal device. The terminal device includes a first sensing area and a second sensing area centered on the terminal device, with the first sensing area surrounding the second sensing area. In this method, the terminal device first detects a user within the first sensing area. Then, in response to a first operation by the user within the first sensing area, it executes a first function. The first operation includes the user moving into the second sensing area, and the user's movement attributes satisfy a first preset condition. The movement attributes include at least one of the following: movement distance, movement speed, or movement duration.
[0050] In the above method, the user's movement toward the terminal device can be seen as the user moving from the peripheral sensing area of the terminal device to the internal sensing area. If the user's movement attributes meet the preset conditions, the first function can be triggered, such as turning on the screen, turning on the light, or issuing an alarm. This can effectively reduce the situation where the terminal device recognizes a misoperation and executes a function, because the extent of the user's misoperation is usually not too large, making it difficult for the user's movement attributes to meet the preset conditions. Especially in the scenario where the terminal device is installed near the bedside, the user's actions such as turning over in bed will not trigger the terminal device to turn on the screen, thereby reducing the impact on the user's rest at night and improving the user experience.
[0051] Furthermore, in the above-described method in this application embodiment, there is no need to control the field of view (FoV) of the terminal device. The simplest 1T1R MMW sensing technology can achieve functions such as proximity-based screen activation and accidental touch-based screen activation without increasing costs.
[0052] In addition, the methods described in this application embodiment do not require reducing the screen-on distance threshold or disabling them at night to reduce accidental screen-on. This largely ensures the user experience of being able to get close to the screen and preventing accidental screen-on.
[0053] In some embodiments, as shown in Figure 4(a), when the terminal device is a central control screen or a switch panel, it may include a sensing sensor and a screen module.
[0054] For example, the sensing sensor may include a communication module, a signal transceiver, a signal and information processor, a memory, etc., connected by a communication bus. The sensing sensor emits electromagnetic waves to illuminate the user through the signal transceiver and receives the electromagnetic waves scattered by the user. The signal and information processor processes the transmitted and received electromagnetic wave signals to determine whether to perform a first function, such as turning on the screen, and sends the result of the determination and other information or instructions to the screen module through the communication module.
[0055] Among these, the sensing sensors can detect the user's distance, speed, and actions based on sensing technologies such as MMW and TOF. For example, the sensing sensors can be MMW sensors or TOF sensors.
[0056] For example, the screen module may include a screen (or display screen), a communication module, and a controller. The communication module can receive information or instructions sent by the communication module of the sensing sensor. The controller can control the screen to turn on and off according to the information or instructions. It can also respond to the user's operation and control the display of corresponding content or pages on the screen.
[0057] In other embodiments, referring to Figure 4(b), the terminal device may further include other modules that can communicate with the sensing sensors and the screen module. Exemplarily, these other modules may include a central processing unit (CPU), a graphics processing unit (GPU), a Bluetooth module, a wireless fidelity (WIFI) module, etc. Exemplarily, when the screen module controls the content displayed on the screen, it can use the CPU and / or GPU in the other modules to render the displayed content. Exemplarily, the terminal device can wirelessly communicate with other devices via Bluetooth, WIFI, etc., to control other devices, or to receive information or control commands sent by other devices.
[0058] In some embodiments, the terminal device can be a device in a whole-house smart system, such as a central control screen, a switch panel (or sensing panel) or other device with a display screen (or screen), or the terminal device can be a smart refrigerator, a smart air conditioner or other smart home device with a display screen (or screen), or the terminal device can be a mobile phone or other device with a display screen (or screen), or the terminal device can be a smart light, an alarm or other device.
[0059] The following uses a switch panel as an example to illustrate the function triggering method of the terminal device in this application embodiment. In some embodiments, referring to FIG5, the method may include the following steps S501-S502.
[0060] S501, the switch panel detects the user within the first sensing area.
[0061] The switch panel detects the user using sensors. The switch panel may include a first sensing area and a second sensing area centered on the switch panel, with the first sensing area surrounding the second sensing area. In some examples, the sensing areas of the switch panel can be determined based on the sensing range of the sensors installed in the switch panel, and the outermost edge of the first sensing area can represent the maximum range boundary that the sensors can detect. In some examples, the coverage of the first and second sensing areas is also related to the sensing field of view of the switch panel. For example, as shown in Figure 6, if the field of view of the switch panel is ±90°, then the second sensing area is a semi-circular area S2 centered on the switch panel, and the first sensing area is a semi-circular ring area S1 surrounding the second sensing area S2.
[0062] In some examples, the switch panel can detect whether the user is at the edge of the first sensing area, within the first sensing area, or entering the first sensing area from outside the first sensing area.
[0063] After the switch panel detects a user, it can continuously monitor the user's movements, obtain the user's movement trajectory, and determine information such as the direction, distance, and speed of the user's movement. Based on this information, it can then determine whether to turn on the screen.
[0064] In some examples, the proximity-to-wake function (or proximity-to-wake feature) of the switch panel can be enabled by default, enabled manually by the user, or enabled adaptively by the switch panel based on the current usage scenario (such as a nighttime scenario).
[0065] If the proximity-to-wake function is manually set by the user, the switch panel can respond to the user's trigger operation and display the first page, as shown in Figure 7(a). The first page includes the first control corresponding to the proximity-to-wake function. If the user wants to enable the proximity-to-wake function, they can perform a third operation on the first control, and the switch panel can respond to the third operation to enable the proximity-to-wake function. The third operation can be a single click, double click, or other similar operation.
[0066] Once the proximity-to-wake function is enabled, the switch panel can detect whether a user is present within the sensing area.
[0067] In some examples, the proximity-to-wake function can also be set as a function under the "bedside scene". For example, as shown in Figure 7(b), the control corresponding to the "bedside scene" can also be displayed on the first page. If the switch panel is installed at the head or foot of the user's bed, the user can perform a third operation on the control. The switch panel can also enable the proximity-to-wake function to reduce accidental touches of the wake function by the user's actions when lying in bed.
[0068] In some examples, the proximity-to-wake function can be set with different sensing distances. For example, as shown in Figure 7(c), if the switch panel is installed at the head or foot of the user's bed, the user can choose the option corresponding to the "near" sensing distance. In this case, the switch panel can more accurately identify some actions in the vicinity, thereby effectively reducing accidental touches of the screen-on function when the user is lying in bed. However, if the switch panel is installed in other locations, and the user chooses the option corresponding to the "medium" or "far" sensing distance, the accuracy of the switch panel in identifying some accidental operations in the vicinity may not be sufficient, but the user will still have the experience of proximity-to-wake.
[0069] It is understandable that the user's above-mentioned triggering operation could be the user's operation of selecting to enter the settings page on the switch panel, and correspondingly, the first page is the settings page.
[0070] In the example above, users can choose whether to enable the proximity-to-wake function according to their needs. Alternatively, users can choose a closer sensing distance for the switch panel according to their needs, which can improve the accuracy of the switch panel in recognizing accidental operations and reduce the situation where the screen is turned on due to some accidental operations.
[0071] S502, in response to the user's first operation within the first perception area, the switch panel lights up the screen.
[0072] The first operation includes the user moving into the second sensing area, and the user's movement attributes meet the first preset conditions. The movement attributes include at least one of the following: movement distance, movement speed, or movement duration.
[0073] In some examples, after the switch panel detects the user within the first sensing area, it can continue to detect the user's behavior. If the user moves within the first sensing area, the switch panel can detect the user's position and movement trajectory. If the movement trajectory determines that the user is moving towards the second sensing area, indicating that the user is approaching the switch panel, the switch panel can continue to determine whether the user's movement attributes meet the first preset condition based on the movement trajectory.
[0074] The movement attribute satisfying the first preset condition may include at least one of the following: movement distance satisfying a distance threshold, movement speed satisfying a speed threshold, and movement duration satisfying a duration threshold.
[0075] For example, when the movement attribute includes movement distance, the switch panel obtains a first distance and a second distance between the starting point of the user's movement trajectory and the switch panel during the user's first operation. If the difference between the first distance and the second distance is greater than or equal to a first preset threshold, it is determined that the user's movement distance meets the distance threshold, or that the user's movement distance meets the first preset condition; if the difference between the first distance and the second distance is less than the first preset threshold, it is determined that the user's movement distance does not meet the distance threshold, or that the user's movement distance does not meet the first preset condition.
[0076] The distance threshold can be a range, indicating that the distance the user moves cannot be too short. If the distance is too short, the switch panel will recognize it as an abnormal action or misoperation, and the screen will not light up.
[0077] Referring to Figure 8, the movement trajectory of a user moving from the first sensing area S1 (with an outer circular radius of R1) to the second sensing area S2 (with a radius of R2) can be L1. L1 starts at point A and ends at point B. The first distance between the starting point of the movement trajectory and the switch panel is RA (distance between point A and the switch panel), and the second distance is RB (distance between point B and the switch panel). If RA - RB ≥ Rgap (the first preset threshold), then the switch panel determines that the user has moved into the second sensing area, and the distance moved satisfies the first preset condition. If RA - RB < Rgap (the first preset threshold), then the switch panel determines that the user has not moved into the second sensing area, and the distance moved does not satisfy the first preset condition.
[0078] In some examples, the user's movement trajectory within the second sensing area can be varied. For instance, the trajectory from point A to point B shown in Figure 8, or the trajectory from point C to point D shown in Figure 9, or the trajectory from point F to point G shown in Figure 10, where the user moves from point E to point F before reaching point F. Regardless of the type of trajectory, the switch panel can determine whether the user's movement distance meets preset conditions based on the distances between the starting points of the trajectory and the switch surface.
[0079] Understandably, a user's movement may be a continuous process. The switch panel can continuously detect the user's position, and the movement trajectory is a path composed of multiple user positions. For example, the coordinate set of the position points of the movement trajectory L1 mentioned above is {Ri, i = A, ..., B}, where i represents multiple position points between point A and point B, and Ri represents the distance between each position point and the switch panel. Points B, D, F, G, etc., can all be position points during the user's movement. For example, when the switch panel detects that the distance the user has moved to point B meets the first preset condition, the switch panel can turn on the screen. Afterward, the user may continue to move, or they may not.
[0080] As shown in Figure 8 above, on the movement trajectory from point A to point B, the distance Ri between each location point and the switch panel decreases sequentially, indicating that the user is gradually approaching the switch panel.
[0081] As shown in Figure 9 above, on the movement trajectory from point C to point D, the distance Ri between each location point and the switch panel decreases sequentially, indicating that the user is gradually approaching the switch panel.
[0082] As shown in Figure 10 above, on the movement trajectory from point E to point G, the distance Ri between each location point and the switch panel first increases and then decreases sequentially, indicating that the user first moves away from the switch panel and then moves closer to it. After detecting the user's movement, the switch panel determines that the user is moving out of the second sensing area based on the distances between point E and the switch panel, and the distances between point F and the switch panel, so the switch panel will not light up the screen. Then, the switch panel determines that the user is moving into the second sensing area based on the distances between point F and the switch panel, and the distance of the user's movement meets the first preset condition, so the switch panel will light up the screen.
[0083] In the example above, the switch panel can determine the user's movement direction and distance by combining the user's movement trajectory, and then determine whether the distance the user moves meets the first preset condition. The switch panel will only light up the screen when the movement direction and distance meet certain conditions, as shown in Figure 11. This can achieve the effect of the screen lighting up when the user gets close, and can also effectively reduce the situation where the screen is lit up due to some accidental operation by the user, thus improving the user experience.
[0084] It is understood that the movement trajectories shown in Figures 8-10 above are only some examples. In other embodiments, users may also move in the sensing area of the switch panel along other trajectories. Furthermore, the user's movement direction may be closer to the switch panel or farther away from the switch panel. The user may be within the sensing area or may enter the sensing area from outside the sensing area.
[0085] For example, when the movement attribute includes movement speed, the switch panel acquires the movement speed corresponding to each trajectory point on the movement trajectory during the user's first operation. If the movement speed corresponding to each trajectory point on the movement trajectory is greater than or equal to a speed threshold, then it is determined that the user's movement speed meets the speed threshold, or that the user's movement speed meets a first preset condition; if there is a case where the movement speed corresponding to each trajectory point on the movement trajectory is less than the speed threshold, then it is determined that the user's movement speed does not meet the speed threshold, or that the user's movement speed does not meet the first preset condition.
[0086] The speed threshold can be a speed range, indicating that the user's movement speed cannot be too high or too low. If the movement speed is too high or too low, the switch panel will recognize it as an abnormal action or misoperation, and the screen will not light up.
[0087] For example, on the movement trajectory from point A to point B shown in Figure 8 above, the sign of the user's velocity Vi (i represents multiple position points between point A and point B) at each position point (or trajectory point) is negative (i.e., Vi < 0). Combined with the distance Ri between each position point and the switch panel, this indicates that the user is gradually approaching the switch panel.
[0088] As shown in Figure 9 above, on the trajectory from point C to point D, the sign of the user's velocity Vi (i represents multiple points between point C and point D) at each location is negative (i.e., Vi < 0). Combined with the distance Ri between each location and the switch panel, this indicates that the user is gradually approaching the switch panel.
[0089] On the trajectory from point E to point G shown in Figure 10 above, a portion of the user's velocity Vi (i represents multiple points between point E and point G) at each location point has a positive sign (i.e., Vi > 0), where VF-1 represents the location point before point F on the trajectory. Combined with the distance Ri between these location points and the switch panel, this indicates that the user first moves away from the switch panel. The other portion of the user's velocity at each location point (VF ... VG) has a negative sign (i.e., Vi < 0), which, combined with the distance Ri between these location points and the switch panel, indicates that the user moves away from the switch panel and then moves closer to it.
[0090] For example, when the movement attribute includes movement duration, the switch panel obtains the user's movement duration during the user's first operation. If the movement duration is greater than or equal to a duration threshold, it is determined that the user's movement duration meets the duration threshold, or that the user's movement duration meets a first preset condition; if the movement duration is less than the duration threshold, it is determined that the user's movement duration does not meet the duration threshold, or that the user's movement duration does not meet the first preset condition.
[0091] The duration threshold can be a range, indicating that the user's movement time cannot be too short. If the movement time is too short, the switch panel will recognize it as an abnormal action or misoperation, and the screen will not light up.
[0092] For another example, when the movement attributes include movement distance and movement speed, during the user's first operation, the switch panel obtains a first distance and a second distance between the starting point of the user's movement trajectory and the switch panel, respectively, and obtains the movement speed corresponding to each trajectory point on the movement trajectory. If the difference between the first distance and the second distance is greater than or equal to a first preset threshold, and the movement speed corresponding to each trajectory point on the movement trajectory is greater than or equal to a speed threshold, then it is determined that the user's movement distance and movement speed meet the first preset condition.
[0093] For another example, when the movement attributes include movement distance, movement speed, and movement duration, the switch panel, during the user's first operation, obtains the first distance and the second distance between the starting point of the user's movement trajectory and the switch panel, obtains the movement speed corresponding to each trajectory point on the movement trajectory, and obtains the user's movement duration. If the difference between the first distance and the second distance is greater than or equal to a first preset threshold, the movement speed corresponding to each trajectory point on the movement trajectory is greater than or equal to a speed threshold, and the movement duration is greater than or equal to a duration threshold, then it is determined that the user's movement distance, movement speed, and movement duration meet the first preset condition.
[0094] In the example above, the switch panel can combine the user's moving distance, moving speed, and moving time to determine whether to turn on the screen, thus making the switch panel more accurate in recognizing erroneous operations.
[0095] In some embodiments, the second sensing area may further include a third sensing area, which is a region in the second sensing area with a radius smaller than that of the second sensing area centered on the switch panel.
[0096] For example, see Figure 12, where S3 represents the third sensing region (radius R3).
[0097] In some examples, a user may be within the second sensing area but not the third sensing area. The switch panel can detect the user within the second sensing area. Then, the switch panel continues to monitor the user's behavior. If the user moves within the second sensing area, the switch panel can detect the user's position and trajectory. If the trajectory indicates the user is moving towards the switch panel, the switch panel can further determine whether the user's movement attributes meet a second preset condition. If the user's movement attributes meet the second preset condition, the switch panel lights up the screen; otherwise, if the user's movement attributes do not meet the second preset condition, the switch panel does not light up the screen.
[0098] In the above embodiments, the sensing area of the switch panel can be further divided into three areas. No matter which area the user is in when approaching the switch panel, if the movement attribute meets certain conditions, the switch panel can be triggered to light up the screen, thereby allowing the user to experience the effect of the screen lighting up when they approach.
[0099] Furthermore, the terminal device function triggering method in the aforementioned embodiments can not only effectively reduce the occurrence of accidental screen activation when the switch panel is installed at the bedside, but can also be applied to other installation scenarios. For example, if the switch panel is installed near a window, there may be plants (such as potted plants) in the sensing area of the switch panel. If the plants are blown by the wind, the switch panel can also eliminate the interference of the plants according to the above method, reducing the occurrence of accidental screen activation. As another example, if the switch panel is installed on an indoor wall, there may be animals or ornaments in the sensing area of the switch panel. If the animals move in the sensing area, or the ornaments move, the switch panel can also eliminate the interference of the animals or ornaments according to the above method, reducing the occurrence of accidental screen activation.
[0100] The second preset threshold can be the same as or different from the first preset threshold, and the second preset condition can be the same as or different from the first preset condition.
[0101] In some embodiments, when the switch panel includes the aforementioned third sensing area, if the user performs a specific action within the third sensing area, the screen can also be triggered to light up, as shown in Figure 13, thereby achieving the effect of "waving to light up the screen" at close range. The action of "waving to light up the screen" is not limited to waving, but can also be kicking, turning around, shaking the head, shaking the head, the user's action amplitude being less than a preset amplitude, or the user breathing, etc.
[0102] For example, the switch panel detects that the user is in the third sensing area. If the user performs a second operation in the third sensing area, the switch panel responds to the second operation by turning on the screen. The second operation includes the user making a preset action, which includes at least one of the following: waving, kicking, turning around, shaking the head, the amplitude of the user's action being less than a preset amplitude, or the user breathing.
[0103] In this way, the switch panel can not only eliminate accidental operation, but also allow users to experience the "wave to wake" operation at close range.
[0104] In some embodiments, the switch panel can also determine whether the detected moving target is a user, animal, plant, or object by measuring the amplitude (or energy) of the electromagnetic waves emitted and received during the sensing process. This allows for the identification of the user and the elimination of interference from animals, plants, objects, etc., approaching the screen or triggering a "wave to wake" gesture.
[0105] Based on the foregoing embodiments, the flow of the terminal device's function triggering method can also be seen in Figure 14. After the switch panel is installed near the bedside, the user activates the proximity-to-light-up function on the switch panel. The switch panel begins detecting the user within its sensing range and their actions, determining whether the user's actions meet the conditions for the switch panel to light up the screen. Specifically, if the user moves towards the switch panel and their movement attributes meet a first preset condition, the switch panel determines that the user's action meets the screen-light-up condition and then lights up the screen. If the user is detected in a third sensing area and performs a preset action, the switch panel determines that the user's action meets the screen-light-up condition and then lights up the screen. Otherwise, the switch panel determines that the user's actions are interference or misoperations, and the switch panel will not respond or light up the screen.
[0106] In some embodiments, the switch panel may include multiple states, such as working state, screen saver state, screen-off state, and always-on display (AOD) state. When the switch panel is in working state, it can display the desktop, allowing users to operate on the panel or display relevant content. When the switch panel is in screen saver state, it can display the saver page.
[0107] For example, as shown in Figure 15(a), when the switch panel lights up the screen, it can control the screen to switch from a first state to a display saver page, wherein the first state includes a screen-off state or a screen-off AOD state.
[0108] For example, as shown in Figure 15(b), when the switch panel lights up the screen, it can control the screensaver page displayed on the screen to switch to the desktop.
[0109] As another example, as shown in Figure 15(c), when the switch panel lights up the screen, it can control the screen to switch from the first state to displaying the desktop.
[0110] In some embodiments, the radius of the sensing area of the switch panel can be determined based on the sensing range of the sensing sensor in the switch panel. Specifically, R3, as mentioned above, can be a value between 0 and 0.5 m, such as 0.3 m, 0.4 m, or 0.5 m; and R2 can be a value between 0.6 m and 0.9 m, such as 0.6 m, 0.7 m, 0.8 m, or 0.9 m. R1 can represent the radius of the maximum sensing range that the sensing sensor can detect. Furthermore, the height of the switch panel relative to the ground is not less than 0.2 m.
[0111] During the actual test, the measurement comparison between the switch panel 1 using the function triggering method of the terminal device in this application embodiment and other switch panels 2 can be referred to Figure 16. Switch panel 1 and switch panel 2 are both installed in the same position near the head of the bed, and switch panel 1 includes the three sensing areas described in the previous embodiments.
[0112] In this test, various actions were performed on both switch panels 1 and 2 at the same detection directions of -45°, 0°, and 45°. It can be seen that the test results for switch panel 1 are more satisfactory than those for switch panel 2.
[0113] For switch panel 1 and switch panel 2, taking the detection at -45° as an example:
[0114] When a user approaches switch panel 1 and switch panel 2 from a distance, the proximity screen will be activated.
[0115] When the user shakes their head at a distance of 0.5m, the screen of switch panel 1 will not be triggered to light up during 10 tests, while the screen of switch panel 2 will be triggered to light up during 10 tests.
[0116] When a user shakes their body at a distance of 0.5m, the screen of switch panel 1 will not light up during 10 tests, while the screen of switch panel 2 will light up during 10 tests.
[0117] When a user waves their left hand from 0.5m away, the screen does not light up in any of the 10 tests conducted on switch panel 1, but it does light up in all 10 tests conducted on switch panel 2.
[0118] When a user waves their right hand from 0.5m away, the screen on switch panel 1 will not light up in 10 tests, while the screen on switch panel 2 will light up in 10 tests.
[0119] When the user stands at a distance of 0.5m and rotates the switch panel 2 twice, the screen does not light up during 10 tests, while the screen lights up during 10 tests of the switch panel 2.
[0120] When a user waves their hand once within 0.5m, there are instances where the screen does not light up during 10 tests of switch panel 1, and there are also instances where the screen does not light up during 10 tests of switch panel 2.
[0121] When a user waves their hand in a zigzag pattern within 0.5m, the screen on switch panel 1 will light up in all 10 test cycles, and the screen on switch panel 2 will also light up in all 10 test cycles.
[0122] The foregoing embodiments illustrate the application of the terminal device's function triggering method to a switch panel. In other embodiments, the above-mentioned approach can also be applied to various other fields or devices.
[0123] For example, in a smart light, the smart light includes a first sensing area and a second sensing area centered on the smart light, with the first sensing area surrounding the second sensing area. When the smart light detects a user within the first sensing area, it illuminates in response to a first operation by the user within the first sensing area. The first operation involves the user moving into the second sensing area, and the user's movement attributes satisfy a first preset condition. These movement attributes include at least one of the following: movement distance, movement speed, or movement duration.
[0124] Smart lights can also detect user actions and non-user actions through sensors. Furthermore, a smart light can include multiple sensing areas; when a user is detected approaching a certain area from a distance and their movement attributes meet preset conditions, the smart light illuminates. Additionally, the second sensing area of the smart light can include a third sensing area; when a user performs a preset action such as waving their hand while near the third sensing area, the smart light will also illuminate. Other objects, such as plants, curtains, fans, and robot vacuums, will not trigger the light to illuminate.
[0125] For example, in an alarm system, the alarm includes a first sensing area and a second sensing area centered on the alarm, with the first sensing area surrounding the second sensing area. When the alarm detects a user within the first sensing area, it sounds an alarm in response to a first action by the user within that area. The first action involves the user moving into the second sensing area, and the user's movement attributes satisfy a first preset condition. These movement attributes include at least one of the following: movement distance, movement speed, or movement duration.
[0126] The alarm can detect user actions and non-user actions through sensors. Furthermore, the alarm can include multiple sensing areas; when someone is detected approaching a certain area from a distance and their movement attributes meet preset conditions, the alarm will sound. Additionally, the second sensing area of the alarm can include a third sensing area; when a user performs a preset action such as waving their hand while near the third sensing area, the alarm will also sound. Other objects, such as plants or robot vacuums, will not trigger the alarm.
[0127] Understandably, when applying the above methods to smart lights and alarms, the division of the area for these devices needs to consider the actual application scenario. The radius of the area does not need to be the same as R1, R2, R3, etc., listed above. Similarly, the installation height of the smart lights and alarms also needs to consider the actual application scenario and does not need to be the same as the heights listed above.
[0128] It is understood that the user information used in the technical solution of this application, such as the user's location and the user's movement trajectory, is limited to information with the user's individual consent, including but not limited to notifying and reminding the user to read the relevant user agreement (notification) and sign the agreement (authorization) which includes the authorization of relevant user information before the user uses the proximity-to-wake function.
[0129] In some solutions, multiple embodiments of this application can be combined, and the combined solution can be implemented. Optionally, some operations in the processes of each method embodiment may be combined, and / or the order of some operations may be changed. Furthermore, the execution order between the steps of each process is merely exemplary and does not constitute a limitation on the execution order between steps; other execution orders are also possible. It is not intended to indicate that the execution order is the only possible order in which these operations can be performed. Those skilled in the art will conceive of various ways to reorder the operations described in the embodiments of this application. In addition, it should be noted that the process details involved in one embodiment of this application are also applicable to other embodiments in a similar manner, or different embodiments may be combined.
[0130] Furthermore, some steps in the method embodiments can be equivalently replaced with other possible steps. Alternatively, some steps in the method embodiments may be optional and can be deleted in certain use cases. Or, other possible steps may be added to the method embodiments.
[0131] Furthermore, the various method embodiments can be implemented individually or in combination.
[0132] It is understood that, in order to achieve the above functions, the aforementioned terminal device includes hardware and / or software modules corresponding to perform each function. Based on the algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0133] This embodiment can divide the terminal device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0134] This application also provides a terminal device. As shown in FIG17, the terminal device may include one or more processors 1701, memory 1702, and communication interface 1703.
[0135] The memory 1702, communication interface 1703, and processor 1701 are coupled together. For example, the memory 1702, communication interface 1703, and processor 1701 can be coupled together via bus 1704.
[0136] The communication interface 1703 is used for data transmission with other devices. The memory 1702 stores computer program code. The computer program code includes computer instructions, which, when executed by the processor 1701, cause the terminal device to perform the function triggering method of the terminal device in this embodiment.
[0137] The processor 1701 can be a processor or controller, such as a CPU, a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with this disclosure. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0138] Bus 1704 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Bus 1704 can be categorized as an address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used in Figure 17, but this does not indicate that there is only one bus or one type of bus.
[0139] This application also provides a computer-readable storage medium that includes computer instructions. When the computer instructions are executed on a terminal device, the terminal device performs the relevant method steps described in the above method embodiments.
[0140] This application also provides a computer program product that, when run on a computer, causes the computer to execute the relevant method steps described in the above method embodiments.
[0141] The terminal device, computer-readable storage medium, or computer program product provided in this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0142] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0143] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0144] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0145] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0146] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes, or all or part of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for triggering a function in a terminal device, characterized in that, The terminal device includes a first sensing area and a second sensing area centered on the terminal device, wherein the first sensing area surrounds the second sensing area; the method includes: The user was detected within the first sensing area; In response to a first operation by the user within the first sensing area, a first function is executed; the first operation includes the user moving to the second sensing area, and the user's movement attributes satisfy a first preset condition, the movement attributes including at least one of the following: movement distance, movement speed, or movement duration.
2. The method according to claim 1, characterized in that, The second sensing area further includes a third sensing area centered on the terminal device; the method further includes: The user was detected within the third sensing area; In response to a second operation by the user within the third sensing area, the first function is executed; the second operation includes the user performing a preset action; the preset action includes at least one of the following: waving, kicking, turning around, shaking the head, the amplitude of the user's action being less than a preset amplitude, or the user breathing.
3. The method according to any one of claims 1-2, characterized in that, The movement attribute includes the movement distance; during the user's execution of the first operation, the method further includes: The first distance and the second distance between the starting point of the user's movement trajectory and the terminal device are obtained respectively; If the difference between the first distance and the second distance is greater than or equal to a preset threshold, then it is determined that the user's movement distance meets the first preset condition; If the difference between the first distance and the second distance is less than a preset threshold, then it is determined that the user's movement distance does not meet the first preset condition.
4. The method according to any one of claims 1-3, characterized in that, The terminal device includes a display screen; the first function includes turning on the screen.
5. The method according to claim 4, characterized in that, The method further includes: Display the first page; the first page includes a first control corresponding to the proximity-to-wake function; In response to receiving a third operation from the user on the first control, the proximity-to-wake function is enabled.
6. The method according to claim 4 or 5, characterized in that, Perform the first function, including: Control the screen to switch from a first state to a display saver page; the first state includes a screen-off state or a screen-off AOD state; or, Controls the screensaver page displayed on the screen to switch to the desktop; or, Control the screen to switch from the first state to display the desktop.
7. The method according to any one of claims 4-6, characterized in that, The terminal device is a central control screen or a switch panel.
8. The method according to any one of claims 1-3, characterized in that, The terminal device includes a smart light; the first function includes turning on the light.
9. The method according to any one of claims 1-3, characterized in that, The terminal device includes an alarm; the first function includes issuing an alarm.
10. A terminal device, characterized in that, The device includes a memory and one or more processors; the memory is coupled to the processors; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the terminal device to perform the function triggering method of the terminal device as described in any one of claims 1-9.
11. A computer-readable storage medium, characterized in that, The method includes computer instructions that, when executed on a terminal device, cause the terminal device to perform the function triggering method of the terminal device as described in any one of claims 1-9.
12. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the function triggering method of the terminal device as described in any one of claims 1-9.