Popup window triggering method and device
By detecting the pointing rate and deflection angle of the mobile terminal, combined with UWB technology, the problem of UWB technology is solved, and more efficient pop-up triggering control is achieved, reducing the false triggering rate and improving the convenience of operation.
Patent Information
- Application Number
- CN202410033695.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2025-07-11
AI Technical Summary
In the prior art, the UWB technology is used to detect distances to trigger mobile phone pop-ups, and the probability of error triggering is high and the operation is inconvenient.
By detecting the directional action of the mobile terminal, the pop-up trigger of the mobile terminal is controlled based on the directional rate and the preset rate threshold, and combining the directional rate and bias angle detection to reduce the false trigger rate.
It greatly reduces the false triggering rate of pop-up windows, improves the accuracy and success rate of triggering, and reduces the complexity of operations.
Smart Images

Figure CN120301972A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automatic control, and particularly relates to a pop-up window triggering method and device. Background Art
[0002] With the continuous development of automatic control technology, more and more intelligent products appear in people's lives, such as smart home devices. During the use of smart home devices, usually the user needs to find and open the mobile phone APP (Application), find the control page of the home device to be controlled in the mobile phone APP, and then perform operations such as turning on, turning off, and parameter adjustment on the control page.
[0003] In order to improve the user experience, currently, NFC (Near Field Communication) technology is usually used. By "touching" the mobile phone with the home device to be controlled, the mobile phone is controlled to pop up the corresponding control page, shortening the time for the user to find the control page. However, the communication distance of NFC is relatively short, usually requiring communication within a range of 10 centimeters, with relatively strict distance limitations. Moreover, since near-field communication is easily interfered by surrounding wireless communication, it is necessary for the user to bring the mobile phone close to the home device to be controlled multiple times to trigger the mobile phone APP to pop up the corresponding control page. The operation is relatively inconvenient, and the effect of automatic control or automatic triggering of the pop-up window (i.e., popping up the control page) is poor. Another method is remote touch based on UWB (Ultra Wideband) technology (that is, using UWB technology, when the distance between the mobile phone and the home device to be controlled is less than a preset threshold, the mobile phone is controlled to trigger the pop-up window). The communication distance of UWB can reach 150 meters, and it is less affected by surrounding wireless communication. However, this method of using UWB technology for distance detection to trigger the mobile phone pop-up window has a certain probability of false triggering. For example, when the user is mopping the floor, the corresponding conditions for distance detection are met, resulting in false triggering of the pop-up window. Summary of the Invention
[0004] The present invention provides a pop-up window triggering method and device to solve the problem of a relatively high false triggering probability in the prior art when using UWB technology for distance detection to trigger the mobile phone pop-up window.
[0005] The present invention provides a pop-up window triggering method, including:
[0006] When a pointing action of the mobile terminal is detected, based on the time difference between the mobile terminal moving from the initial position to the current position, and the distance value from the initial position to the current position, obtain the pointing speed of the mobile terminal;
[0007] Based on the pointing rate and a preset rate threshold, perform pop-up trigger control on the mobile terminal.
[0008] Optionally, the step of obtaining the initial position includes:
[0009] Send an initial UWB signal to the mobile terminal according to a preset positioning period, where the initial UWB signal is used to instruct the mobile terminal to send an initial response UWB signal to the device to be controlled;
[0010] When the initial response UWB signal fed back by the mobile terminal is received, determine that the mobile terminal enters the detection range of the device to be controlled, and based on the initial response UWB signal, perform positioning on the mobile terminal to obtain the initial position of the mobile terminal.
[0011] Optionally, the step of obtaining the current position includes:
[0012] When it is determined that the mobile terminal enters the detection range of the device to be controlled, send a real-time UWB signal to the mobile terminal regularly according to the positioning period, where the real-time UWB signal is used to instruct the mobile terminal to send a real-time response UWB signal to the device to be controlled;
[0013] Based on the most recently received real-time response UWB signal, perform positioning on the mobile terminal to obtain the current position of the mobile terminal.
[0014] Optionally, the step of obtaining the time difference between the initial position and the current position of the mobile terminal includes:
[0015] Obtain a first time and a second time, where the first time is the time when the initial position is obtained, and the second time is the time when the current position is obtained;
[0016] Determine the difference between the second time and the first time as the time difference between the mobile terminal moving from the initial position to the current position.
[0017] Optionally, the step of performing pop-up trigger control on the mobile terminal based on the pointing rate and a preset rate threshold includes:
[0018] When the pointing rate is greater than or equal to the rate threshold, send a pop-up trigger instruction to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal.
[0019] Optionally, the step of performing pop-up trigger control on the mobile terminal based on the pointing rate and a preset rate threshold includes:
[0020] When it is determined that the movement path of the mobile terminal coincides with the target center line, based on the pointing rate and the rate threshold, perform pop-up trigger control on the mobile terminal; the movement path refers to the line connecting the initial position and the current position, and the target center line refers to the center line of the connection between the preset first UWB antenna and the second UWB antenna in the device to be controlled;
[0021] When it is determined that there is an offset between the movement path of the mobile terminal and the target center line, obtain a first deviation angle and a second deviation angle; the first deviation angle refers to the angle between the first line and the target center line, and the second deviation angle refers to the angle between the second line and the target center line. The first line refers to the line connecting the initial position and the midpoint of the target center line, and the second line refers to the line connecting the current position and the midpoint; based on the first deviation angle, the second deviation angle, the pointing rate, the rate threshold, and a preset deviation angle threshold range, perform pop-up trigger control on the mobile terminal.
[0022] Optionally, when it is determined that the movement path of the mobile terminal coincides with the target center line, the step of performing pop-up trigger control on the mobile terminal based on the pointing rate and the rate threshold includes:
[0023] When it is determined that the movement path of the mobile terminal coincides with the target center line and the pointing rate is greater than or equal to the rate threshold, send a pop-up trigger instruction to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal.
[0024] Optionally, the step of performing pop-up trigger control on the mobile terminal based on the first deviation angle, the second deviation angle, the pointing rate, the rate threshold, and a preset deviation angle threshold range includes:
[0025] When both the first deviation angle and the second deviation angle are within the deviation angle threshold range and the pointing rate is greater than or equal to the rate threshold, send a pop-up trigger instruction to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal.
[0026] Optionally, the step of obtaining the first deviation angle includes:
[0027] Based on the phase difference of the initial response UWB signal arriving at the first UWB antenna and the second UWB antenna, the first included angle and the second included angle are obtained; the initial response UWB signal refers to the signal fed back by the mobile terminal based on the initial UWB signal sent by the device to be controlled, the first included angle refers to the included angle between the third connection line and the target median line, the third connection line refers to the connection line between the initial position and the first UWB antenna, the second included angle refers to the included angle between the fourth connection line and the target median line, and the fourth connection line refers to the connection line between the initial position and the second UWB antenna;
[0028] Based on the first included angle, the second included angle, and the preset distance between the first UWB antenna and the second UWB antenna, the length of the third connection line and the length of the fourth connection line are obtained;
[0029] Based on the preset distance, the length of the third connection line, and the length of the fourth connection line, a first target distance is obtained, and the first target distance refers to the distance between the initial position and the target median line;
[0030] Based on the first target distance and the length of the first connection line, the first deviation angle is obtained.
[0031] Optionally, the steps for obtaining the second deviation angle include:
[0032] Based on the phase difference of the most recently received real-time response UWB signal arriving at the first UWB antenna and the second UWB antenna, a third included angle and a fourth included angle are obtained; the real-time response UWB signal refers to the signal fed back by the mobile terminal based on the real-time UWB signal sent by the device to be controlled, the third included angle refers to the included angle between the fifth connection line and the target median line, the fifth connection line refers to the connection line between the current position and the first UWB antenna, the fourth included angle refers to the included angle between the sixth connection line and the target median line, and the sixth connection line refers to the connection line between the current position and the second UWB antenna;
[0033] Based on the third included angle, the fourth included angle, and the preset distance between the first UWB antenna and the second UWB antenna, the length of the fifth connection line and the length of the sixth connection line are obtained;
[0034] Based on the preset distance, the length of the fifth connection line, and the length of the sixth connection line, a second target distance is obtained, and the second target distance refers to the distance between the current position and the target median line;
[0035] Based on the second target distance and the length of the second connection line obtained, the second deviation angle is obtained.
[0036] Optionally, when it is determined that there is an offset between the movement path of the mobile terminal and the target center line, the step of obtaining the distance value from the initial position to the current position includes:
[0037] Based on the cosine theorem, the first connection line, the second connection line, the first deflection angle, and the second deflection angle, obtain the distance value from the initial position to the current position;
[0038] The mathematical expression for obtaining the distance value from the initial position to the current position based on the cosine theorem, the first connection line, the second connection line, the first deflection angle, and the second deflection angle is:
[0039] CF = EC 2 + EF 2 - 2×EC×EF×cos(δ - γ)
[0040] Wherein, CF represents the distance value from the initial position to the current position, EF represents the first connection line, EC represents the second connection line, ∠δ represents the first deflection angle, and ∠γ represents the second deflection angle.
[0041] The present invention also provides a pop-up window triggering device, integrated in a device to be controlled, including:
[0042] A pointing rate acquisition module, configured to, when detecting a pointing action of a mobile terminal, obtain the pointing rate of the mobile terminal based on the time difference between the mobile terminal moving from the initial position to the current position and the distance value from the initial position to the current position;
[0043] A pop-up window triggering module, configured to perform pop-up window triggering control on the mobile terminal based on the pointing rate and a preset rate threshold.
[0044] The present invention also provides a device to be controlled, including:
[0045] A first UWB antenna, a second UWB antenna, and the pop-up window triggering device as described above, where the first UWB antenna and the second UWB antenna are respectively connected to the pop-up window triggering device.
[0046] The present invention also provides a pop-up window triggering method, including:
[0047] When receiving an initial UWB signal sent by a device to be controlled, send an initial response UWB signal to the device to be controlled; the initial response UWB signal is used to instruct the device to be controlled to obtain the initial position of the mobile terminal;
[0048] When receiving the real-time UWB signal sent by the device to be controlled, send a real-time response UWB signal to the device to be controlled; the real-time response UWB signal is used to indicate that the device to be controlled obtains the real-time position of the mobile terminal, where the real-time position obtained by the device to be controlled most recently is the current position of the mobile terminal; both the initial position and the current position are used to indicate that the device to be controlled detects the pointing action of the mobile terminal, and are used to indicate that when the device to be controlled detects the pointing action of the mobile terminal, based on the time difference between the movement of the mobile terminal from the initial position to the current position and the distance value from the initial position to the current position, obtain the pointing speed of the mobile terminal; based on the pointing speed and a preset speed threshold, perform pop-up window trigger control on the mobile terminal.
[0049] Optionally, it further includes: when receiving the pop-up window trigger instruction sent by the device to be controlled, trigger a corresponding pop-up window and display the pop-up window on the display interface of the mobile terminal; the pop-up window trigger instruction is sent by the device to be controlled when it determines that the pointing speed is greater than or equal to the speed threshold, or when it determines that the movement path of the mobile terminal coincides with the target midline and the pointing speed is greater than or equal to the speed threshold, or when it determines that the movement path of the mobile terminal deviates from the target midline, determines that both the first deflection angle and the second deflection angle are within the preset deflection angle threshold range, and determines that the pointing speed is greater than or equal to the speed threshold; the movement path refers to the connection line between the initial position and the current position, the target midline refers to the midline of the connection line between the preset first UWB antenna and the second UWB antenna in the device to be controlled; the first deflection angle refers to the included angle between the first connection line and the target midline, the second deflection angle refers to the included angle between the second connection line and the target midline, the first connection line refers to the connection line between the initial position and the midpoint of the target midline, and the second connection line refers to the connection line between the current position and the midpoint.
[0050] The present invention also provides a pop-up window trigger system integrated in a mobile terminal, including:
[0051] An initial response UWB signal sending module, configured to send an initial response UWB signal to the device to be controlled when receiving the initial UWB signal sent by the device to be controlled; the initial response UWB signal is used to indicate that the device to be controlled obtains the initial position of the mobile terminal.
[0052] A real-time response UWB signal sending module, which is used to send a real-time response UWB signal to the device to be controlled when receiving the real-time UWB signal sent by the device to be controlled; the real-time response UWB signal is used to indicate that the device to be controlled obtains the real-time position of the mobile terminal, wherein the real-time position obtained by the device to be controlled most recently is the current position of the mobile terminal; both the initial position and the current position are used to indicate that the device to be controlled detects the pointing action of the mobile terminal, and are used to indicate that when the device to be controlled detects the pointing action of the mobile terminal, based on the time difference between the mobile terminal moving from the initial position to the current position, and the distance value from the initial position to the current position, obtain the pointing rate of the mobile terminal; based on the pointing rate and a preset rate threshold, perform pop-up window trigger control on the mobile terminal.
[0053] The present invention also provides a mobile terminal, including:
[0054] A terminal UWB antenna and the pop-up window trigger system as described above, the terminal is used to receive the initial UWB signal and the real-time response UWB signal sent by the device to be controlled, and the terminal UWB antenna is connected to the pop-up window trigger device.
[0055] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, it implements the pop-up window trigger method as described in any one of the above.
[0056] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the pop-up window trigger method as described in any one of the above.
[0057] Advantages of the present invention: The pop-up window trigger method and device provided by the present invention, when detecting the pointing action of the mobile terminal, based on the time difference between the mobile terminal moving from the initial position to the current position, and the distance value from the initial position to the current position, obtain the pointing rate of the mobile terminal; the pointing action refers to the mobile terminal moving in the direction of the device to be controlled; the initial position refers to the position where the mobile terminal is located when it enters the detection range of the device to be controlled; the current position refers to the position of the mobile terminal obtained most recently; based on the pointing rate and a preset rate threshold, complete the pop-up window trigger control of the mobile terminal. This method triggers the mobile phone pop-up window by using the pointing rate detection method, greatly reducing the false trigger rate of the pop-up window, with strong feasibility and low cost. Description of the Drawings
[0058] To more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the attached drawings required in the description of the embodiments or the prior art. Obviously, the attached drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other attached drawings can also be obtained based on these attached drawings.
[0059] Figure 1 It is a schematic flowchart of the pop-up window triggering method provided by the present invention Figure 1 ;
[0060] Figure 2 It is a schematic diagram of the movement path of a mobile terminal in a case of the pop-up window triggering method provided by the present invention;
[0061] Figure 3 It is a schematic diagram of the movement path of a mobile terminal in another case of the pop-up window triggering method provided by the present invention;
[0062] Figure 4 It is a schematic diagram of the deflection angle calculation model in the pop-up window triggering method provided by the present invention;
[0063] Figure 5 It is a schematic structural diagram of the pop-up window triggering device provided by the present invention;
[0064] Figure 6 It is a schematic flowchart of the pop-up window triggering method provided by the present invention Figure 2 ;
[0065] Figure 7 It is a schematic structural diagram of the pop-up window triggering system provided by the present invention;
[0066] Figure 8 It is a schematic structural diagram of the electronic device provided by the present invention. Detailed implementation manners
[0067] To make the objectives, technical solutions and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention in conjunction with the attached drawings in the present invention. Obviously, the described embodiments are some but not all of the embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope protected by the present invention.
[0068] The following describes the pop-up window triggering method and device provided by the present invention in the form of embodiments, in conjunction with Figures 1 - 8 Describe the pop-up window triggering method and device provided by the present invention.
[0069] Please refer to Figure 1 , the pop-up window triggering method provided in this embodiment (the execution subject of the pop-up window triggering method in this embodiment is the device to be controlled), includes:
[0070] S110: When a pointing action of the mobile terminal is detected, based on the time difference between the movement of the mobile terminal from the initial position to the current position and the distance value from the initial position to the current position, obtain the pointing rate of the mobile terminal. The pointing action refers to the movement of the mobile terminal in the direction of the device to be controlled; the initial position refers to the position where the mobile terminal is located when it enters the detection range of the device to be controlled; the current position refers to the position of the mobile terminal obtained most recently.
[0071] When a pointing action of the mobile terminal is detected, determine the ratio between the distance value from the initial position to the current position and the time difference between the movement of the mobile terminal from the initial position to the current position as the pointing rate of the mobile terminal. By detecting the pointing action of the mobile terminal, it can help improve the accuracy of triggering the pop-up window in the mobile terminal. And by obtaining the pointing rate of the mobile terminal when a pointing action of the mobile terminal is detected, it can help perform pop-up window control on the mobile terminal based on the pointing rate later, so as to further improve the accuracy of pop-up window triggering.
[0072] The pointing action of the mobile terminal is determined based on the initial position and the current position of the mobile terminal. For example, when the distance between the initial position and the device to be controlled is greater than the distance between the current position and the device to be controlled, it is determined that a pointing action of the mobile terminal is detected.
[0073] The mobile terminal can be a movable terminal device such as a mobile phone. The device to be controlled can be a smart home device or other intelligent industrial devices, etc., which will not be elaborated here.
[0074] S120: Based on the pointing rate and a preset rate threshold, perform pop-up window trigger control on the mobile terminal.
[0075] By performing pop-up window trigger control on the mobile terminal based on the pointing rate and a preset rate threshold, the false trigger rate of the pop-up window of the mobile terminal can be greatly reduced, that is, in the way of rate detection, the false touch rate between the mobile terminal and the device to be controlled and the false trigger rate of the pop-up window of the mobile terminal are effectively reduced. The pop-up window trigger control on the mobile terminal refers to triggering the APP associated with the device to be controlled in the mobile terminal, and then displaying the control page of the device to be controlled in the display interface of the mobile terminal in the form of a pop-up window, so as to facilitate the user to perform operations such as turning on, turning off, and parameter adjustment on the device to be controlled based on the automatically popped-up control page.
[0076] The pop-up trigger method in this embodiment is based on UWB technology, which can reduce the false trigger rate while better improving the trigger distance of "proximity operation". Herein, "proximity operation" means that the mobile terminal approaches the device to be controlled, which is similar to the "tap" of NFC technology.
[0077] In some embodiments, the step of obtaining the initial position includes:
[0078] ① According to a preset positioning period, send an initial UWB signal to the mobile terminal, where the initial UWB signal is used to instruct the mobile terminal to send an initial response UWB signal to the device to be controlled.
[0079] Exemplarily, the positioning period can be set according to the actual situation, such as 1 second or 2 seconds, etc.
[0080] ② When receiving the initial response UWB signal fed back by the mobile terminal, determine that the mobile terminal enters the detection range of the device to be controlled, and based on the initial response UWB signal, position the mobile terminal to obtain the initial position of the mobile terminal.
[0081] By obtaining the initial position of the mobile terminal, it is convenient to subsequently determine whether the mobile terminal has a pointing action based on this initial position, and to obtain the pointing rate of the mobile terminal when a pointing action of the mobile terminal is detected.
[0082] In some embodiments, the step of obtaining the current position includes:
[0083] ① When it is determined that the mobile terminal enters the detection range of the device to be controlled, send a real-time UWB signal to the mobile terminal regularly according to the positioning period, where the real-time UWB signal is used to instruct the mobile terminal to send a real-time response UWB signal to the device to be controlled.
[0084] ② Based on the most recently received real-time response UWB signal, position the mobile terminal to obtain the current position of the mobile terminal.
[0085] By obtaining the current position of the mobile terminal, it is convenient to subsequently determine whether the mobile terminal has a pointing action based on this current position, and to obtain the pointing rate of the mobile terminal when a pointing action of the mobile terminal is detected.
[0086] In some embodiments, the step of obtaining the time difference between the mobile terminal moving from the initial position to the current position includes:
[0087] Obtain a first time and a second time, where the first time is the time when the initial position is obtained, and the second time is the time when the current position is obtained;
[0088] Determine the time difference between the second time and the first time as the time difference for the mobile terminal to move from the initial position to the current position.
[0089] By obtaining the time difference for the mobile terminal to move from the initial position to the current position, it is convenient to subsequently obtain the pointing rate of the mobile terminal based on this time difference.
[0090] In some embodiments, the steps of performing pop-up window trigger control on the mobile terminal based on the pointing rate and a preset rate threshold include:
[0091] When the pointing rate is greater than or equal to the rate threshold, send a pop-up window trigger instruction to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal. The method of triggering the pop-up window based on the pointing rate can, to a certain extent, reduce the false trigger rate of the pop-up window.
[0092] The above method of sending a pop-up window trigger instruction to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal when the pointing rate is greater than or equal to the rate threshold is one implementation manner of the pop-up window trigger method provided by the present invention. The present invention also provides another implementation manner to further reduce the false trigger rate of the pop-up window, that is, combining the pointing rate detection with the deviation angle detection to further reduce the false trigger rate of the pop-up window. The implementation manner of combining the pointing rate detection with the deviation angle detection will be specifically explained below.
[0093] In some embodiments, the steps of performing pop-up window trigger control on the mobile terminal based on the pointing rate and a preset rate threshold include:
[0094] When it is determined that the moving path of the mobile terminal coincides with the target center line, perform pop-up window trigger control on the mobile terminal based on the pointing rate and the rate threshold; the moving path refers to the line connecting the initial position and the current position, and the target center line refers to the center line of the connection between the preset first UWB antenna and the second UWB antenna in the device to be controlled.
[0095] When it is determined that the moving path of the mobile terminal coincides with the target center line, that is, when the mobile terminal moves along the target center line and shows a trend of approaching the device to be controlled, complete the pop-up window trigger control of the mobile terminal based on the pointing rate and the speed threshold. This method can achieve pop-up window trigger control in an ideal state, and the ideal state is the state where the moving path of the mobile terminal coincides with the target center line.
[0096] When it is determined that there is an offset between the moving path of the mobile terminal and the target center line, a first deviation angle and a second deviation angle are obtained; the first deviation angle refers to the angle between the first connection line and the target center line, and the second deviation angle refers to the angle between the second connection line and the target center line. The first connection line refers to the connection line between the initial position and the midpoint of the target center line, and the second connection line refers to the connection line between the current position and the midpoint; based on the first deviation angle, the second deviation angle, the pointing speed, the speed threshold, and a preset deviation angle threshold range, pop-up window trigger control is performed on the mobile terminal.
[0097] Considering that the condition of moving along the target center line in the display is relatively harsh, therefore, the above embodiments preferably take into account such a situation, that is, the situation where the moving path of the mobile terminal deviates from the target center line. When it is determined that the moving path of the mobile terminal deviates from the target center line, deviation angle detection is introduced to increase the success rate and rationality of pop-up window trigger control. The specific steps are as above. When it is determined that the moving path of the mobile terminal deviates from the target center line, a first deviation angle and a second deviation angle are obtained; and then, based on the first deviation angle, the second deviation angle, a preset deviation angle threshold range, the pointing speed, and the speed threshold, pop-up window trigger control of the mobile terminal is completed. In this way, the success rate and accuracy of pop-up window trigger control of the mobile terminal can be preferably improved, and the false trigger rate of the pop-up window can be effectively reduced.
[0098] Further, when it is determined that the moving path of the mobile terminal coincides with the target center line, the steps of performing pop-up window trigger control on the mobile terminal based on the pointing speed and the speed threshold include:
[0099] When it is determined that the moving path of the mobile terminal coincides with the target center line and the pointing speed is greater than or equal to the speed threshold, a pop-up window trigger instruction is sent to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal.
[0100] By sending a pop-up window trigger instruction to the mobile terminal when it is determined that the moving path of the mobile terminal coincides with the target center line and the pointing speed is greater than or equal to the speed threshold, pop-up window trigger control in such an ideal situation can be realized, and the accuracy is relatively high. The speed threshold can be set and adjusted according to the actual situation, such as 1 m / s or 1.5 m / s, etc.
[0101] Please refer to Figure 2 , Figure 2 In, the connection line between the initial position and the current position of the mobile terminal 220 is the moving path of the mobile terminal 220, and this moving path coincides with the target center line, that is, the mobile terminal 220 moves along the target center line and gradually approaches the device to be controlled.Figure 2 The distance value of the mobile terminal 220 from the initial position to the current position is L. Figure 2 A terminal UWB antenna 2201 is provided in the mobile terminal 220, and the device to be controlled is provided with a first UWB antenna 2101 and a second UWB antenna 2102. When the pointing action of the mobile terminal 220 is detected and it is determined that the moving path of the mobile terminal 220 coincides with the target center line, the ratio between the distance value of the mobile terminal 220 from the initial position to the current position and the time difference of the mobile terminal 220 moving from the initial position to the current position is determined as the pointing rate v, that is, v = L / T, where T represents the time difference of the mobile terminal 220 moving from the initial position to the current position. When v is greater than or equal to the preset rate threshold, a pop-up trigger instruction is sent to the mobile terminal 220 to pop up a corresponding pop-up window on the display interface of the mobile terminal 220. Wherein, the corresponding pop-up window refers to the pop-up window of the APP corresponding to the current device to be controlled 210.
[0102] In some embodiments, the steps of controlling the pop-up trigger of the mobile terminal based on the first deflection angle, the second deflection angle, the pointing rate, the rate threshold, and the preset deflection angle threshold range include:
[0103] When both the first deflection angle and the second deflection angle are within the deflection angle threshold range and the pointing rate is greater than or equal to the rate threshold, a pop-up trigger instruction is sent to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal.
[0104] By sending a pop-up trigger instruction to the mobile terminal when both the first deflection angle and the second deflection angle are within the deflection angle threshold range and the pointing rate is greater than or equal to the rate threshold, so as to pop up a corresponding pop-up window on the display interface of the mobile terminal, the success rate and accuracy of pop-up trigger can be improved to a certain extent, and the false trigger rate can be reduced.
[0105] The deflection angle threshold range can be set and adjusted according to the actual situation, such as 30 degrees to 60 degrees, etc., which will not be elaborated here.
[0106] In some embodiments, the steps of obtaining the first deflection angle include:
[0107] First, based on the phase difference between the initial response UWB signal arriving at the first UWB antenna and the second UWB antenna, a first included angle and a second included angle are obtained; the initial response UWB signal refers to the signal fed back by the mobile terminal based on the initial UWB signal sent by the device to be controlled, the first included angle refers to the included angle between the third connection line and the target median line, the third connection line refers to the connection line between the initial position and the first UWB antenna, the second included angle refers to the included angle between the fourth connection line and the target median line, and the fourth connection line refers to the connection line between the initial position and the second UWB antenna.
[0108] In this embodiment, the first included angle and the second included angle are obtained through the PDOA (Phase Difference of Arrival) ranging method, which helps to obtain the first deflection angle subsequently.
[0109] Secondly, based on the first included angle, the second included angle, and the preset distance between the first UWB antenna and the second UWB antenna, the lengths of the third connection line and the fourth connection line are obtained.
[0110] Specifically, according to the sine theorem, the first included angle, the second included angle, and the preset distance between the first UWB antenna and the second UWB antenna, the lengths of the third connection line and the fourth connection line are obtained.
[0111] Then, based on the preset distance, the length of the third connection line, and the length of the fourth connection line, a first target distance is obtained, where the first target distance refers to the distance between the initial position and the target median line.
[0112] Specifically, according to Heron's formula, the preset distance, the length of the third connection line, and the length of the fourth connection line, the first target distance can be obtained.
[0113] Finally, based on the first target distance and the length of the first connection line, the first deflection angle is obtained.
[0114] Specifically, the method for obtaining the length of the first connection line is: according to the Euclidean median theorem, the preset distance, and the lengths of the third connection line and the fourth connection line respectively, the length of the first connection line is obtained.
[0115] Similar to the steps for obtaining the first deflection angle, in some embodiments, the steps for obtaining the second deflection angle include:
[0116] First, based on the phase difference of the most recently received real-time response UWB signal when arriving at the first UWB antenna and the second UWB antenna, obtain a third included angle and a fourth included angle; the real-time response UWB signal refers to the signal fed back by the mobile terminal based on the real-time UWB signal sent by the device to be controlled, the third included angle refers to the included angle between the fifth connection line and the target median line, the fifth connection line refers to the connection line between the current position and the first UWB antenna, the fourth included angle refers to the included angle between the sixth connection line and the target median line, and the sixth connection line refers to the connection line between the current position and the second UWB antenna.
[0117] In this embodiment, by means of PDOA ranging, the third included angle and the fourth included angle are obtained, which can help to obtain the second deviation angle subsequently.
[0118] Secondly, based on the third included angle, the fourth included angle, and the preset distance between the first UWB antenna and the second UWB antenna, obtain the length of the fifth connection line and the length of the sixth connection line.
[0119] Specifically, according to the sine theorem, the third included angle, the fourth included angle, and the preset distance between the first UWB antenna and the second UWB antenna, obtain the length of the fifth connection line and the length of the sixth connection line.
[0120] Then, based on the preset distance, the length of the fifth connection line, and the length of the sixth connection line, obtain a second target distance, where the second target distance refers to the distance between the current position and the target median line.
[0121] Specifically, according to Heron's formula, the preset distance, and the length of the fifth connection line and the length of the sixth connection line, obtain the second target distance.
[0122] Finally, based on the second target distance and the length of the second connection line, obtain the second deviation angle.
[0123] Specifically, the method for obtaining the length of the second connection line is: according to the Euclidean median theorem, the preset distance, and the lengths of the fifth connection line and the sixth connection line respectively, obtain the length of the second connection line.
[0124] By obtaining the first deviation angle and the second deviation angle in the above manner, it is convenient to perform pop-up window trigger control based on the first deviation angle and the second deviation angle subsequently.
[0125] The determination method for whether the movement path of the mobile terminal coincides with the target center line can be carried out by the PDOA ranging method. Specifically, by using the PDOA strategy method, the first included angle, the second included angle, the third included angle, and the fourth included angle are obtained. When the first included angle is equal to the second included angle, and the third included angle is equal to the fourth included angle, it is determined that the movement path of the mobile terminal coincides with the target center line; otherwise, it is determined that there is an offset between the movement path of the mobile terminal and the target center line.
[0126] In some embodiments, when it is determined that there is an offset between the movement path of the mobile terminal and the target center line, the step of obtaining the distance value from the initial position to the current position includes:
[0127] Based on the cosine theorem, the first connection line, the second connection line, the first deviation angle, and the second deviation angle, the distance value from the initial position to the current position is obtained. Specifically, the square value of the length of the first connection line is determined as the first numerical value; the square value of the second connection line is determined as the second numerical value; the difference between the first deviation angle and the second deviation angle is determined as the angle difference; the cosine value of the angle difference is determined as the third numerical value; the product of 2, the length value of the first connection line, the length value of the second connection line, and the third numerical value is determined as the fourth numerical value; the sum value between the first numerical value and the second numerical value is determined as the fifth numerical value, and the difference between the fifth numerical value and the fourth numerical value is determined as the distance value.
[0128] The following further explains the steps of obtaining the pointing rate of the mobile terminal in the above embodiments when there is an offset between the movement path of the mobile terminal and the target center line through a specific embodiment.
[0129] Please refer to Figures 3 to 4 , as Figure 3 shown, the movement path of the mobile terminal 220 (i.e., the path formed from the initial position to the current position of the mobile terminal 220) has an offset from the target center line. In this case, by obtaining the first deviation angle and the second deviation angle, and based on the first deviation angle and the second deviation angle, subsequent pop-up window trigger control is carried out, which can reduce the false trigger rate of the pop-up window while improving the success rate of pop-up window triggering. Figure 4 The ∠δ in Figure 3 refers to the first deviation angle, Figure 4The ∠γ therein refers to the second deflection angle, A represents the point where the first UWB antenna 2101 is located, B represents the point where the second UWB antenna 2102 is located, E represents the midpoint of the target median line, C represents the point where the preset terminal UWB antenna 2201 of the mobile terminal 220 is located when the mobile terminal 220 is at the current position, F represents the point where the preset terminal UWB antenna 2201 of the mobile terminal 220 is located when the mobile terminal 220 is at the initial position, AB is known, and ED represents the distance from C to AB, that is, the distance from the mobile terminal 220 to the device to be controlled 210.
[0130] Figure 4 CF therein represents the distance value from the initial position to the current position. The steps for obtaining CF are as follows:
[0131] First, obtain the first deflection angle ∠δ and the second deflection angle ∠γ. Taking the steps for obtaining the second deflection angle ∠γ as an example:
[0132] ① According to the sine theorem, we get:
[0133]
[0134] ∠α + ∠β + ∠C = 180°
[0135] Among them, AB is known, ∠α represents the third included angle, ∠β represents the fourth included angle, and ∠α and ∠β are obtained through the PDOA ranging method (based on the phase difference of the most recently received real-time response UWB signal arriving at the first UWB antenna 2101 and the second UWB antenna 2102, the third included angle and the fourth included angle are obtained). Based on this, AC and BC are obtained by solving.
[0136] ② According to Heron's formula and the area formula of a triangle ED is obtained, that is, the second target distance.
[0137] ③ According to the Euclidean median theorem and we get
[0138] Similarly, the first deflection angle ∠δ and EF can be obtained.
[0139] Secondly, from the cosine theorem, we get:
[0140] CF = EC 2 + EF 2 - 2×EC×EF×cos(δ - γ)
[0141] Among them, CF represents the distance value from the initial position to the current position, EF represents the first connection line, EC represents the second connection line, ∠δ represents the first deflection angle, and ∠γ represents the second deflection angle.
[0142] Finally, the pointing rate v of the mobile terminal 220 is obtained as v = CF / T.
[0143] In some embodiments, the pop-up window triggering method in the above embodiments can also be combined with a bilateral DS-TWR (Double-Sided Two-Way Ranging) ranging algorithm to compensate for the error introduced by clock deviation during UWB communication and improve the accuracy of pop-up window triggering.
[0144] The pop-up window triggering device provided by the present invention will be described below. The pop-up window triggering device described below can be correspondingly referred to the pop-up window triggering method with the execution subject being the device to be controlled above.
[0145] Please refer to Figure 5 , the pop-up window triggering device provided in this embodiment includes:
[0146] A pointing rate acquisition module 510, configured to obtain the pointing rate of the mobile terminal based on the time difference between the mobile terminal moving from the initial position to the current position and the distance value from the initial position to the current position when a pointing action of the mobile terminal is detected; the pointing action refers to the mobile terminal moving in the direction of the device to be controlled; the initial position refers to the position where the mobile terminal is located when the mobile terminal enters the detection range of the device to be controlled; the current position refers to the position of the mobile terminal obtained most recently;
[0147] A pop-up window triggering module 520, configured to perform pop-up window triggering control on the mobile terminal based on the pointing rate and a preset rate threshold. The pointing rate acquisition module 510 is connected to the pop-up window triggering module 520. The pop-up window triggering device in this embodiment can greatly reduce the false triggering rate of pop-up windows in the mobile terminal, effectively improve the user experience, has a low cost, and is highly feasible.
[0148] In some embodiments, it further includes: an initial position acquisition module, configured to send an initial UWB signal to the mobile terminal according to a preset positioning period, where the initial UWB signal is used to instruct the mobile terminal to send an initial response UWB signal to the device to be controlled;
[0149] When the initial response UWB signal fed back by the mobile terminal is received, it is determined that the mobile terminal enters the detection range of the device to be controlled, and the mobile terminal is positioned based on the initial response UWB signal to obtain the initial position of the mobile terminal.
[0150] In some embodiments, it further includes: a current position acquisition module, configured to, when determining that the mobile terminal enters the detection range of the device to be controlled, regularly send a real-time UWB signal to the mobile terminal according to the positioning period, where the real-time UWB signal is used to instruct the mobile terminal to send a real-time response UWB signal to the device to be controlled;
[0151] Based on the most recently received real-time response UWB signal, position the mobile terminal to obtain the current position of the mobile terminal.
[0152] In some embodiments, it further includes: a time difference acquisition module, configured to acquire a first time and a second time, where the first time is the time when the initial position is obtained, and the second time is the time when the current position is obtained;
[0153] Determine the difference between the second time and the first time as the time difference for the mobile terminal to move from the initial position to the current position.
[0154] In some embodiments, the pop-up window trigger module 520 is specifically configured to send a pop-up window trigger instruction to the mobile terminal when the pointing rate is greater than or equal to the rate threshold, so as to pop up a corresponding pop-up window on the display interface of the mobile terminal.
[0155] In some embodiments, the pop-up window trigger module 520 is specifically configured to, when determining that the movement path of the mobile terminal coincides with the target center line, perform pop-up window trigger control on the mobile terminal based on the pointing rate and the rate threshold; the movement path refers to the connection line between the initial position and the current position, and the target center line refers to the center line of the connection line between a preset first UWB antenna and a second UWB antenna in the device to be controlled;
[0156] When determining that there is an offset between the movement path of the mobile terminal and the target center line, acquire a first deviation angle and a second deviation angle; the first deviation angle refers to the angle between a first connection line and the target center line, and the second deviation angle refers to the angle between a second connection line and the target center line, the first connection line refers to the connection line between the initial position and the midpoint of the target center line, and the second connection line refers to the connection line between the current position and the midpoint; perform pop-up window trigger control on the mobile terminal based on the first deviation angle, the second deviation angle, the pointing rate, the rate threshold, and a preset deviation angle threshold range.
[0157] In some embodiments, the pop-up window trigger module 520 is further specifically configured to send a pop-up window trigger instruction to the mobile terminal when it is determined that the movement path of the mobile terminal coincides with the target center line and the pointing rate is greater than or equal to the rate threshold, so as to pop up a corresponding pop-up window on the display interface of the mobile terminal.
[0158] In some embodiments, the pop-up window trigger module 520 is further specifically configured to send a pop-up window trigger instruction to the mobile terminal when both the first deflection angle and the second deflection angle are within the deflection angle threshold range and the pointing rate is greater than or equal to the rate threshold, so as to pop up a corresponding pop-up window on the display interface of the mobile terminal.
[0159] In some embodiments, the pop-up window trigger module 520 includes: a first deflection angle acquisition unit, configured to obtain a first included angle and a second included angle based on the phase difference between the initial response UWB signal arriving at the first UWB antenna and the second UWB antenna, where the initial response UWB signal refers to the signal fed back by the mobile terminal based on the initial UWB signal sent by the device to be controlled, the first included angle refers to the included angle between the third connection line and the target center line, the third connection line refers to the connection line between the initial position and the first UWB antenna, the second included angle refers to the included angle between the fourth connection line and the target center line, and the fourth connection line refers to the connection line between the initial position and the second UWB antenna;
[0160] Based on the first included angle, the second included angle, and the preset distance between the first UWB antenna and the second UWB antenna, obtain the lengths of the third connection line and the fourth connection line respectively;
[0161] Based on the preset distance and the lengths of the third connection line and the fourth connection line respectively, obtain a first target distance, where the first target distance refers to the distance between the initial position and the target center line;
[0162] Based on the first target distance and the length of the obtained first connection line, obtain the first deflection angle.
[0163] In some embodiments, the pop-up trigger module 520 further includes: a second deflection angle acquisition unit, configured to obtain a third angle and a fourth angle based on the phase difference between the real-time response UWB signal received most recently when arriving at the first UWB antenna and the second UWB antenna, where the real-time response UWB signal refers to the signal fed back by the mobile terminal based on the real-time UWB signal sent by the device to be controlled, the third angle refers to the angle between the fifth connection line and the target median line, the fifth connection line refers to the connection line between the current position and the first UWB antenna, the fourth angle refers to the angle between the sixth connection line and the target median line, and the sixth connection line refers to the connection line between the current position and the second UWB antenna;
[0164] Based on the third angle, the fourth angle, and the preset distance between the first UWB antenna and the second UWB antenna, obtain the lengths of the fifth connection line and the sixth connection line respectively;
[0165] Based on the preset distance, and the lengths of the fifth connection line and the sixth connection line respectively, obtain a second target distance, where the second target distance refers to the distance between the current position and the target median line;
[0166] Based on the second target distance and the length of the obtained second connection line, obtain the second deflection angle.
[0167] In some embodiments, the pop-up trigger module 520 further includes: a distance value acquisition unit, configured to obtain the distance value from the initial position to the current position based on the cosine theorem, the first connection line, the second connection line, the first deflection angle, and the second deflection angle.
[0168] This embodiment further provides a device to be controlled, including:
[0169] A first UWB antenna, a second UWB antenna, and the pop-up trigger device as described above, where the first UWB antenna and the second UWB antenna are respectively connected to the pop-up trigger device. The device to be controlled in this embodiment can achieve pop-up control of the mobile terminal and greatly reduce the false trigger rate of the pop-up window.
[0170] Please refer to Figure 6 , this embodiment further provides a pop-up trigger method (the execution subject of the pop-up trigger method in this embodiment is the mobile terminal), including:
[0171] S610: When receiving the initial UWB signal sent by the device to be controlled, send an initial response UWB signal to the device to be controlled; the initial response UWB signal is used to instruct the device to be controlled to obtain the initial position of the mobile terminal.
[0172] S620: When receiving the real-time UWB signal sent by the device to be controlled, send a real-time response UWB signal to the device to be controlled; the real-time response UWB signal is used to indicate the real-time position of the mobile terminal obtained by the device to be controlled; wherein, the most recent real-time position obtained by the device to be controlled is the current position of the mobile terminal; both the initial position and the current position are used to indicate the device to be controlled to detect the pointing action of the mobile terminal, and are used to indicate that when the device to be controlled detects the pointing action of the mobile terminal, based on the time difference between the movement of the mobile terminal from the initial position to the current position, and the distance value from the initial position to the current position, obtain the pointing speed of the mobile terminal; based on the pointing speed and a preset speed threshold, perform pop-up window trigger control on the mobile terminal. The pointing action refers to the mobile terminal moving in the direction of the device to be controlled. The pop-up window trigger method in this embodiment can greatly reduce the false trigger rate of the pop-up window on the mobile terminal, has strong rationality, strong feasibility, and low cost.
[0173] In some embodiments, it further includes:
[0174] When receiving the pop-up window trigger instruction sent by the device to be controlled, trigger the corresponding pop-up window and display the pop-up window on the display interface of the mobile terminal; the pop-up window trigger instruction is sent by the device to be controlled when it determines that the pointing speed is greater than or equal to the speed threshold, or when it determines that the movement path of the mobile terminal coincides with the target midline and the pointing speed is greater than or equal to the speed threshold, or when it determines that the movement path of the mobile terminal deviates from the target midline, determines that both the first deflection angle and the second deflection angle are within the preset deflection angle threshold range, and determines that the pointing speed is greater than or equal to the speed threshold; the movement path refers to the line connecting the initial position and the current position, the target midline refers to the midline of the connection between the preset first UWB antenna and the second UWB antenna in the device to be controlled; the first deflection angle refers to the angle between the first line and the target midline, the second deflection angle refers to the angle between the second line and the target midline, the first line refers to the line connecting the initial position and the midpoint of the target midline, and the second line refers to the line connecting the current position and the midpoint.
[0175] The pop-up window trigger system provided by the present invention will be described below. The pop-up window trigger system described below can be mutually corresponding and referred to with the pop-up window trigger method with the mobile terminal as the execution subject described above.
[0176] Please refer to Figure 7 , the pop-up window trigger system provided in this embodiment includes:
[0177] The initial response UWB signal sending module 710 is configured to send an initial response UWB signal to the device to be controlled when receiving an initial UWB signal sent by the device to be controlled; the initial response UWB signal is used to indicate that the device to be controlled obtains the initial position of the mobile terminal;
[0178] The real-time response UWB signal sending module 720 is configured to send a real-time response UWB signal to the device to be controlled when receiving a real-time UWB signal sent by the device to be controlled; the real-time response UWB signal is used to indicate that the device to be controlled obtains the real-time position of the mobile terminal, where the most recent real-time position obtained by the device to be controlled is the current position of the mobile terminal; both the initial position and the current position are used to indicate that the device to be controlled detects the pointing action of the mobile terminal, and are used to indicate that when the device to be controlled detects the pointing action of the mobile terminal, based on the time difference between the movement of the mobile terminal from the initial position to the current position and the distance value from the initial position to the current position, the pointing rate of the mobile terminal is obtained; based on the pointing rate and a preset rate threshold, pop-up trigger control is performed on the mobile terminal; the pointing action refers to the mobile terminal moving in the direction of the device to be controlled. The initial response UWB signal sending module 710 is connected to the real-time response UWB signal sending module 720. The pop-up trigger system in this embodiment can better reduce the false trigger rate of the mobile terminal pop-up and has a lower cost.
[0179] In some embodiments, it further includes: a pop-up trigger module, configured to trigger a corresponding pop-up window and display the pop-up window on the display interface of the mobile terminal when receiving a pop-up trigger instruction sent by the device to be controlled; the pop-up trigger instruction is sent by the device to be controlled when determining that the pointing rate is greater than or equal to the rate threshold, or when determining that the movement path of the mobile terminal coincides with the target midline and the pointing rate is greater than or equal to the rate threshold, or when determining that the movement path of the mobile terminal deviates from the target midline, determining that both the first deflection angle and the second deflection angle are within a preset deflection angle threshold range, and determining that the pointing rate is greater than or equal to the rate threshold; the movement path refers to the connection line between the initial position and the current position, the target midline refers to the midline of the connection line between a preset first UWB antenna and a second UWB antenna in the device to be controlled; the first deflection angle refers to the angle between the first connection line and the target midline, the second deflection angle refers to the angle between the second connection line and the target midline, the first connection line refers to the connection line between the initial position and the midpoint of the target midline, and the second connection line refers to the connection line between the current position and the midpoint.
[0180] This embodiment also provides a mobile terminal, including:
[0181] A terminal UWB antenna and the pop-up window triggering system as described above. The terminal is used to receive an initial UWB signal and a real-time response UWB signal sent by a device to be controlled, and the terminal UWB antenna is connected to the pop-up window triggering device. The mobile terminal in this embodiment can effectively reduce the false triggering rate of pop-up window triggering, has strong feasibility, and low cost.
[0182] Figure 8 An example of the physical structure diagram of an electronic device is shown as Figure 8 shown. The electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840. Among them, the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logical instructions in the memory 830 to execute the pop-up window triggering method.
[0183] In addition, when the logical instructions in the above-mentioned memory 830 are implemented in the form of a software functional unit and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that makes a contribution to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc that can store program codes.
[0184] On the other hand, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is used to execute the pop-up window triggering method provided by the above-mentioned various methods.
[0185] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0186] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0187] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A pop-up trigger method, characterized in that, Including: When a pointing action of the mobile terminal is detected, based on the time difference between the initial position and the current position of the mobile terminal and the distance value from the initial position to the current position, obtain the pointing rate of the mobile terminal; Based on the pointing rate and a preset rate threshold, perform pop-up window trigger control on the mobile terminal.
2. The pop-up window triggering method according to claim 1, wherein The step of obtaining the initial position includes: According to a preset positioning period, send an initial UWB signal to the mobile terminal, and the initial UWB signal is used to instruct the mobile terminal to send an initial response UWB signal to the device to be controlled; When the initial response UWB signal fed back by the mobile terminal is received, determine that the mobile terminal enters the detection range of the device to be controlled, and based on the initial response UWB signal, perform positioning on the mobile terminal to obtain the initial position of the mobile terminal.
3. The pop-up window triggering method according to claim 2, wherein The step of obtaining the current position includes: When it is determined that the mobile terminal enters the detection range of the device to be controlled, according to the positioning period, regularly send a real-time UWB signal to the mobile terminal, and the real-time UWB signal is used to instruct the mobile terminal to send a real-time response UWB signal to the device to be controlled; Based on the most recently received real-time response UWB signal, perform positioning on the mobile terminal to obtain the current position of the mobile terminal.
4. The pop-up window triggering method according to claim 3, wherein The step of obtaining the time difference between the initial position and the current position of the mobile terminal includes: Obtain a first time and a second time, where the first time is the time when the initial position is obtained, and the second time is the time when the current position is obtained; Determine the difference between the second time and the first time as the time difference between the mobile terminal moving from the initial position to the current position.
5. The pop-up window triggering method according to claim 1, wherein The step of performing pop-up window trigger control on the mobile terminal based on the pointing rate and a preset rate threshold includes: When the pointing rate is greater than or equal to the rate threshold, send a pop-up window trigger instruction to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal.
6. The pop-up window triggering method according to any one of claims 1 to 5, characterized in that The step of performing pop-up window trigger control on the mobile terminal based on the pointing rate and a preset rate threshold includes: When it is determined that the moving path of the mobile terminal coincides with the target midline, based on the pointing rate and the rate threshold, perform pop-up window trigger control on the mobile terminal; the moving path refers to the line connecting the initial position and the current position, and the target midline refers to the midline of the line connecting the preset first UWB antenna and the second UWB antenna in the device to be controlled; When it is determined that there is an offset between the movement path of the mobile terminal and the target center line, obtain a first deflection angle and a second deflection angle; the first deflection angle refers to the angle between the first connection line and the target center line, and the second deflection angle refers to the angle between the second connection line and the target center line. The first connection line refers to the connection line between the initial position and the midpoint of the target center line, and the second connection line refers to the connection line between the current position and the midpoint; based on the first deflection angle, the second deflection angle, the pointing rate, the rate threshold, and a preset deflection angle threshold range, perform pop-up trigger control on the mobile terminal.
7. The pop-up window triggering method according to claim 6, characterized in that, When it is determined that the movement path of the mobile terminal coincides with the target center line, the steps of performing pop-up trigger control on the mobile terminal based on the pointing rate and the rate threshold include: When it is determined that the movement path of the mobile terminal coincides with the target center line and the pointing rate is greater than or equal to the rate threshold, send a pop-up trigger instruction to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal.
8. The pop-up window triggering method according to claim 6, wherein The steps of performing pop-up trigger control on the mobile terminal based on the first deflection angle, the second deflection angle, the pointing rate, the rate threshold, and a preset deflection angle threshold range include: When both the first deflection angle and the second deflection angle are within the deflection angle threshold range and the pointing rate is greater than or equal to the rate threshold, send a pop-up trigger instruction to the mobile terminal to pop up a corresponding pop-up window on the display interface of the mobile terminal.
9. The pop-up window triggering method according to claim 6, characterized in that, The steps of obtaining the first deflection angle include: Based on the phase difference of the initial response UWB signal arriving at the first UWB antenna and the second UWB antenna, obtain a first included angle and a second included angle; the initial response UWB signal refers to the signal fed back by the mobile terminal based on the initial UWB signal sent by the device to be controlled. The first included angle refers to the angle between the third connection line and the target center line, and the third connection line refers to the connection line between the initial position and the first UWB antenna. The second included angle refers to the angle between the fourth connection line and the target center line, and the fourth connection line refers to the connection line between the initial position and the second UWB antenna; Based on the first included angle, the second included angle, and the preset distance between the first UWB antenna and the second UWB antenna, obtain the length of the third connection line and the length of the fourth connection line; Based on the preset distance, the length of the third connection line, and the length of the fourth connection line, obtain a first target distance; the first target distance refers to the distance between the initial position and the target center line; Based on the first target distance and the length of the first connection line, obtain the first deflection angle.
10. The pop-up window triggering method according to claim 6, wherein The steps of obtaining the second deflection angle include: Based on the phase difference between the first UWB antenna and the second UWB antenna when the most recently received real-time response UWB signal arrives, obtain a third included angle and a fourth included angle; the real-time response UWB signal refers to the signal fed back by the mobile terminal based on the real-time UWB signal sent by the device to be controlled, the third included angle refers to the included angle between the fifth connection line and the target median line, the fifth connection line refers to the connection line between the current position and the first UWB antenna, the fourth included angle refers to the included angle between the sixth connection line and the target median line, and the sixth connection line refers to the connection line between the current position and the second UWB antenna; Based on the third included angle, the fourth included angle, and the preset distance between the first UWB antenna and the second UWB antenna, obtain the length of the fifth connection line and the length of the sixth connection line; Based on the preset distance, the length of the fifth connection line, and the length of the sixth connection line, obtain a second target distance, where the second target distance refers to the distance between the current position and the target median line; Based on the second target distance and the length of the second connection line, obtain the second deviation angle.
11. The pop-up window triggering method according to claim 6, wherein When it is determined that there is an offset between the moving path of the mobile terminal and the target median line, the step of obtaining the distance value from the initial position to the current position includes: Based on the cosine theorem, the first connection line, the second connection line, the first deviation angle, and the second deviation angle, obtain the distance value from the initial position to the current position; The mathematical expression for obtaining the distance value from the initial position to the current position based on the cosine theorem, the first connection line, the second connection line, the first deviation angle, and the second deviation angle is: CF = EC 2 + EF 2 - 2 × EC × EF × cos(δ - γ) Where CF represents the distance value from the initial position to the current position, EF represents the first connection line, EC represents the second connection line, ∠δ represents the first deviation angle, and ∠γ represents the second deviation angle.
12. A pop-up trigger device, characterized in that, Integrated in the device to be controlled, including: A pointing speed acquisition module, configured to, when detecting a pointing action of the mobile terminal, obtain the pointing speed of the mobile terminal based on the time difference between the mobile terminal moving from the initial position to the current position and the distance value from the initial position to the current position; A pop-up window trigger module, configured to perform pop-up window trigger control on the mobile terminal based on the pointing speed and a preset speed threshold.
13. A device to be controlled and managed, characterized in that, Including: A first UWB antenna, a second UWB antenna, and the pop-up window trigger device as claimed in claim 12, where the first UWB antenna and the second UWB antenna are respectively connected to the pop-up window trigger device.
14. A pop-up window trigger method, characterized in that, Including: When receiving the initial UWB signal sent by the device to be controlled, send an initial response UWB signal to the device to be controlled; The initial response UWB signal is used to instruct the device to be controlled to obtain the initial position of the mobile terminal; When receiving the real-time UWB signal sent by the device to be controlled, send a real-time response UWB signal to the device to be controlled; The real-time response UWB signal is used to indicate that the device to be controlled obtains the real-time position of the mobile terminal, where the real-time position obtained by the device to be controlled most recently is the current position of the mobile terminal; both the initial position and the current position are used to indicate that the device to be controlled detects the pointing action of the mobile terminal, and are used to indicate that when the device to be controlled detects the pointing action of the mobile terminal, based on the time difference between the movement of the mobile terminal from the initial position to the current position and the distance value from the initial position to the current position, the pointing speed of the mobile terminal is obtained; based on the pointing speed and a preset speed threshold, pop-up window trigger control is performed on the mobile terminal.
15. The pop-up window triggering method according to claim 14, wherein It further includes: When receiving the pop-up window trigger instruction sent by the device to be controlled, trigger the corresponding pop-up window and display the pop-up window on the display interface of the mobile terminal; the pop-up window trigger instruction is sent by the device to be controlled when it determines that the pointing speed is greater than or equal to the speed threshold, or when it determines that the movement path of the mobile terminal coincides with the target midline and the pointing speed is greater than or equal to the speed threshold, or when it determines that the movement path of the mobile terminal deviates from the target midline, determines that both the first deflection angle and the second deflection angle are within the preset deflection angle threshold range, and determines that the pointing speed is greater than or equal to the speed threshold; the movement path refers to the connection line between the initial position and the current position, the target midline refers to the midline of the connection line between the preset first UWB antenna and the second UWB antenna in the device to be controlled; the first deflection angle refers to the angle between the first connection line and the target midline, the second deflection angle refers to the angle between the second connection line and the target midline, the first connection line refers to the connection line between the initial position and the midpoint of the target midline, and the second connection line refers to the connection line between the current position and the midpoint.
16. A pop-up trigger system, characterized in that, Integrated in the mobile terminal, it includes: An initial response UWB signal sending module, configured to send an initial response UWB signal to the device to be controlled when receiving the initial UWB signal sent by the device to be controlled; the initial response UWB signal is used to indicate that the device to be controlled obtains the initial position of the mobile terminal. A real-time response UWB signal sending module, which is configured to send a real-time response UWB signal to the device to be controlled when receiving the real-time UWB signal sent by the device to be controlled; the real-time response UWB signal is used to indicate that the device to be controlled obtains the real-time position of the mobile terminal, wherein the real-time position obtained by the device to be controlled most recently is the current position of the mobile terminal; both the initial position and the current position are used to indicate that the device to be controlled detects the pointing action of the mobile terminal, and are used to indicate that when the device to be controlled detects the pointing action of the mobile terminal, based on the time difference between the movement of the mobile terminal from the initial position to the current position, and the distance value from the initial position to the current position, the pointing speed of the mobile terminal is obtained; based on the pointing speed and a preset speed threshold, pop-up trigger control is performed on the mobile terminal.
17. A mobile terminal, characterized in that, It includes: A terminal UWB antenna and the pop-up trigger system as claimed in claim 16, the terminal is configured to receive an initial UWB signal and a real-time response UWB signal sent by the device to be controlled, and the terminal UWB antenna is connected to the pop-up trigger device.
18. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, When the processor executes the program, it implements the pop-up trigger method as claimed in any one of claims 1 to 11, or the pop-up trigger method as claimed in claim 14 or 15.
19. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the pop-up trigger method as claimed in any one of claims 1 to 11, or the pop-up trigger method as claimed in claim 14 or 15.