Accidental touch prevention method and electronic device
By deploying transmitters and receivers on different sides of electronic devices, designing signal transmission modes based on posture, and combining multiple transmission status information to determine whether to turn on the anti-mistouch mode, the problem of misoperation of electronic devices is solved, the user experience is improved, and the detection delay and power consumption are reduced.
Patent Information
- Application Number
- PCT/CN2024/141473
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-12-17
- Filing Date
- 2024-12-23
- Publication Date
- 2025-09-25
AI Technical Summary
Existing electronic devices may suffer from misoperation problems caused by accidentally touching the screen when not in use, which affects the user experience.
By deploying transmitters and receivers on different sides of the electronic device, designing the signal transmission mode according to the device posture, sending and receiving signals to determine whether to turn on the anti-mistouch mode, and combining multiple transmission status information to determine whether to turn on the anti-mistouch mode.
Effectively prevent electronic devices from performing incorrect operations, improve user experience, and reduce detection delays and power consumption.
Smart Images

Figure CN2024141473_25092025_PF_FP_ABST
Abstract
Description
Method for preventing accidental touch and electronic device
[0001] This application claims priority to the Chinese patent applications filed with the State Intellectual Property Office on March 22, 2024, with application number 202410345678.7 and application name “Anti-accidental touch method and electronic device” and filed with the State Intellectual Property Office on December 17, 2024, with application number 202411870112.2 and application name “Anti-accidental touch method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to an anti-accidental-touch method and an electronic device. Background Art
[0003] Currently, for user convenience, more and more devices are equipped with touch screens, allowing users to control these devices to execute corresponding commands by tapping or sliding their fingers on the screen. However, if a user accidentally touches the device screen when the user is not using the device, the device may perform unexpected operations, affecting the user experience. For example, when the device is placed in a pocket or backpack, if the device screen contacts the skin or an object and there is relative movement, the device may perform the operation corresponding to the contact, such as unlocking the screen, opening an application, or making a call. Therefore, how to prevent devices with touch screens from performing accidental touch operations is currently an urgent problem that needs to be solved. Summary of the Invention
[0004] The present application provides an anti-misoperation method and an electronic device, which can effectively prevent the electronic device from performing misoperation.
[0005] To achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a method for preventing accidental touches is provided, which can be performed by an electronic device. The electronic device here can refer to the electronic device itself, or to a processor, circuit, module, logical node, chip, or chip system that implements the method in the electronic device. At least one transmitter is respectively deployed on the first side and the second side of the electronic device, and the first side is different from the second side. The at least one transmitter deployed on the first side of the electronic device includes a first transmitter, and the at least one transmitter deployed on the second side of the electronic device includes a second transmitter.
[0007] The method includes: determining the posture of the electronic device, determining a signal transmission mode based on the posture of the electronic device, transmitting a first signal based on the signal transmission mode, receiving a second signal, and determining whether to enable a false touch prevention mode based on the first signal and the second signal. The signal transmission mode includes transmitting the signal through a first transmitter, transmitting the signal through a second transmitter, or transmitting the signal through both the first transmitter and the second transmitter. The second signal includes a reflected signal of the first signal.
[0008] Based on the method provided in the first aspect above, the electronic device can use different signal transmission modes to send the first signal for different postures, and then determine whether to turn on the anti-false touch mode based on the first signal and the reflected signal of the first signal. In other words, the above method can design different signal transmission modes for different postures of the electronic device, which is more targeted. Therefore, the signal sent using the signal transmission mode is used to detect whether the anti-false touch mode is turned on, and a more accurate result can be obtained. Therefore, the above method can effectively prevent the electronic device from performing erroneous operations, thereby improving the user experience.
[0009] In a possible implementation, in the process of determining the signal transmission mode according to the posture of the electronic device, when the first side of the electronic device is facing downward, the signal transmission mode is to transmit the signal through the first transmitter.
[0010] In the process of determining whether to enable the anti-false touch mode based on the first signal and the second signal, the electronic device may send a third signal through the second transmitter if it is determined that the anti-false touch mode is not enabled based on the first signal and the second signal. The electronic device may receive a fourth signal, which includes a reflected signal of the third signal. The electronic device may also determine whether to enable the anti-false touch mode based on the first signal, the second signal, the third signal, and the fourth signal.
[0011] Based on the above possible implementation methods, when the first side of the electronic device is facing downward, the signal transmission mode is to send a signal through the first transmitter. At the same time, when the electronic device determines whether to turn on the anti-false touch mode based on the first signal and the second signal, it can first determine it based on the signal sent and the received signal by the first transmitter. If it is determined that the anti-false touch mode is not turned on based on the signal sent and the received signal by the first transmitter, a signal can be sent through the second transmitter. Finally, it is determined whether to turn on the anti-false touch mode based on the signal sent and the received signal by the first transmitter, and the signal sent and the received signal by the second transmitter.
[0012] In this way, when the electronic device determines to turn on the anti-false touch mode based on the first signal and the second signal, there is no need to switch the second transmitter to send and receive signals. This can reduce the detection delay and power consumption of the electronic device. When the electronic device determines not to turn on the anti-false touch mode based on the first signal and the second signal, it can combine the signals sent and received by the second transmitter on the other side to make a comprehensive determination. Thus, a more accurate result can be obtained. Therefore, the above method can effectively prevent the electronic device from performing erroneous operations, thereby improving the user experience.
[0013] If the confidence level is greater than the threshold, there is no need to switch the ultrasonic path, reducing the detection delay and power consumption; if the confidence level is less than the threshold, the signal from another speaker can be used for judgment, improving the detection accuracy.
[0014] In a possible implementation, in the process of determining the signal transmission mode according to the posture of the electronic device, when the first side of the electronic device is facing upward, the signal transmission mode is to transmit the signal through the second transmitter.
[0015] In the process of determining whether to turn on the anti-false touch mode based on the first signal and the second signal, the electronic device may send a third signal through the first transmitter if it is determined not to turn on the anti-false touch mode based on the first signal and the second signal.
[0016] The electronic device may receive a fourth signal, which includes a reflected signal of the third signal. The electronic device may also determine whether to enable a false touch prevention mode based on the first signal, the second signal, the third signal, and the fourth signal.
[0017] Based on the above possible implementation methods, when the electronic device is facing the first side, the signal transmission mode can be to send a signal through the second transmitter. At the same time, when the electronic device determines whether to turn on the anti-false touch mode based on the first signal and the second signal, it can first determine it based on the signal sent and the received signal from the second transmitter. If it is determined that the anti-false touch mode is not turned on based on the signal sent and the received signal from the second transmitter, the signal can be sent through the first transmitter. Finally, it is determined whether to turn on the anti-false touch mode based on the signal sent and the received signal from the first transmitter and the signal sent and the received signal from the second transmitter.
[0018] In this way, when the electronic device determines to turn on the anti-false touch mode based on the first signal and the second signal, there is no need to switch the first transmitter to send and receive signals. This can reduce the detection delay and power consumption of the electronic device. When the electronic device determines not to turn on the anti-false touch mode based on the first signal and the second signal, it can combine the signal sent and the signal received by the first transmitter on the other side to make a comprehensive determination. Thus, a more accurate result can be obtained. Therefore, the above method can effectively prevent the electronic device from performing erroneous operations, thereby improving the user experience.
[0019] In one possible implementation, the signal transmission mode is determined according to the posture of the electronic device, including: when the first side of the electronic device is facing upward, the signal transmission mode is to send the signal through the second transmitter; when the first side of the electronic device is facing downward, the signal transmission mode is to send the signal through the first transmitter; when the electronic device is placed horizontally, the signal transmission mode is to send the signal through the first transmitter and / or the second transmitter.
[0020] Based on the above possible implementation methods, different signal sending modes can be designed for when the first side of the electronic device is facing up, when the first side is facing down, and when the electronic device is placed horizontally. The signal sent by the electronic device can more accurately detect whether the anti-mistouch mode is turned on, thereby improving the user experience.
[0021] In one possible implementation, when the angle between the first direction and the second direction is greater than or equal to a first threshold, the first side of the electronic device is upward; when the angle between the first direction and the second direction is less than or equal to the second threshold, the first side of the electronic device is downward; when the angle between the first direction and the second direction is less than the first threshold and greater than the second threshold, the electronic device is placed horizontally; the first direction points from the second side of the electronic device to the first side of the electronic device; and the second direction is the direction of gravity.
[0022] Based on the above possible implementation manners, the posture of the electronic device can be classified according to the angle between the first direction and the second direction, and then the signal transmission mode can be determined according to the posture of the electronic device.
[0023] In one possible implementation, at least one receiver is respectively deployed on the first side and the second side, the at least one receiver deployed on the first side includes a first receiver, and the at least one receiver deployed on the second side includes a second receiver; receiving the second signal includes: receiving the second signal through the first receiver and / or the second receiver.
[0024] Based on the above possible implementations, the electronic device can receive the second signal through a receiver arranged on the first side and / or the second side. For example, when the first transmitter transmits the first signal, the second signal can be received through the first receiver. Since the first receiver and the first transmitter are both deployed on the first side of the electronic device and are very close to each other, the energy attenuation of the second signal received by the first receiver is relatively small relative to the first signal, which facilitates improving the accuracy of determining whether to turn on the anti-false touch mode. When the second transmitter transmits the first signal, the second signal can be received through the second receiver. Since the second receiver and the second transmitter are both deployed on the second side of the electronic device and are very close to each other, the energy attenuation of the second signal received by the second receiver is relatively small relative to the first signal, which facilitates improving the accuracy of determining whether to turn on the anti-false touch mode. When both the first transmitter and the second transmitter transmit the first signal, the second signal can be received through the first receiver and / or the second receiver.
[0025] In one possible implementation, determining whether to enable the anti-false touch mode based on the first signal and the second signal includes: determining transmission status information of the first signal based on the first signal and the second signal; and determining whether to enable the anti-false touch mode based on the transmission status information.
[0026] Based on the above possible implementation manner, whether to enable the false touch prevention mode can be determined according to the transmission status information of the first signal, thereby improving the user experience.
[0027] In one possible implementation, the transmission status information includes the time delay between the first signal and the second signal (hereinafter referred to as the first time delay); based on the transmission status information, determining whether to turn on the anti-false touch mode includes: when the first time delay is less than or equal to the first time length, turning on the anti-false touch mode; when the first time delay is greater than the first time length, not turning on the anti-false touch mode.
[0028] Based on the above possible implementation methods, it can be determined whether to turn on the anti-false touch mode according to the time delay between the first signal and the second signal. It can be understood that the first time delay is less than or equal to the first time length, which means that the first signal is received by the electronic device after being transmitted over a shorter distance. For example, the electronic device is in a pocket or a backpack, and the first signal is received by the electronic device after being reflected by the pocket or the backpack within the first time length. Therefore, when the first time delay is less than or equal to the first time length, the electronic device may be blocked, and the electronic device can turn on the anti-false touch mode. The first time delay is greater than the first time length, which means that the first signal is received by the electronic device after being transmitted over a longer distance, so the electronic device may not be blocked, and the electronic device may not turn on the anti-false touch mode.
[0029] In one possible implementation, the transmission status information includes a first time delay and the number of second signals received from different directions (hereinafter referred to as the first number); based on the transmission status information, determining whether to turn on the anti-false touch mode includes: when the first time delay is less than or equal to the first time length, and the first number is greater than or equal to the third threshold, turning on the anti-false touch mode; when the first time delay is greater than the first time length, or the first number is less than the third threshold, not turning on the anti-false touch mode.
[0030] Based on the above possible implementations, whether to enable the anti-false touch mode can be determined based on the time delay between the first and second signals, as well as the number of second signals received from different directions. That is, the electronic device can comprehensively consider multiple factors to determine whether to enable the anti-false touch mode, thereby improving the accuracy of the detection results. It will be understood that if the first time delay is less than or equal to the first duration, and the first number is greater than or equal to the third threshold, it means that the first signal was received by the electronic device after a relatively short transmission distance, and the first signal also experienced multiple reflections during the short transmission distance. For example, if the electronic device is in a pocket or backpack, the first signal may be received by the electronic device after multiple reflections from the pocket or backpack within the first duration. Therefore, when the first time delay is less than or equal to the first duration, and the first number is greater than or equal to the third threshold, the electronic device may be obscured and the anti-false touch mode can be enabled. If the first time delay is greater than the first duration, it means that the first signal was received by the electronic device after a relatively long transmission distance, so the electronic device may not be obscured and the anti-false touch mode may not be enabled. If the first number is less than the third threshold, it means that the first signal experienced fewer reflections and therefore the electronic device may not be obscured and the anti-false touch mode may not be enabled.
[0031] In one possible implementation, the transmission status information includes the percentage of the signal strength of the second signal to the signal strength of the first signal (hereinafter referred to as the first percentage); based on the transmission status information, determine whether to turn on the anti-mistouch mode, including: when the first percentage is greater than or equal to the fourth threshold, turn on the anti-mistouch mode; when the first percentage is less than the fourth threshold, do not turn on the anti-mistouch mode.
[0032] Based on the above possible implementation methods, it can be determined whether to turn on the anti-false touch mode based on the percentage of the signal strength of the second signal to the signal strength of the first signal, thereby improving the user experience. It can be understood that the first percentage being greater than or equal to the fourth threshold value indicates that the first signal attenuates less during transmission. For example, the electronic device is in a pocket or a backpack, and the first signal is reflected by the pocket or backpack after being transmitted over a short distance and is received by the electronic device, so the signal strength of the second signal received by the electronic device is not attenuated much compared to the first signal. Therefore, when the first percentage is greater than or equal to the fourth threshold value, the electronic device may be blocked, and the electronic device can turn on the anti-false touch mode. The first percentage being less than the fourth threshold value indicates that the first signal attenuates more during transmission, so the electronic device may not be blocked, and the electronic device does not turn on the anti-false touch mode.
[0033] In one possible implementation, the above-mentioned transmission status information includes a first percentage and a first quantity; based on the above-mentioned transmission status information, determining whether to turn on the anti-mistouch mode includes: when the first percentage is greater than or equal to the fourth threshold, and the first quantity is greater than or equal to the fifth threshold, turning on the anti-mistouch mode; when the first percentage is less than the fourth threshold, or the first quantity is less than the fifth threshold, not turning on the anti-mistouch mode.
[0034] Based on the above possible implementations, whether to enable the anti-false touch mode can be determined based on the percentage of the signal strength of the second signal to the signal strength of the first signal, as well as the number of second signals received from different directions. This means that the electronic device can determine whether to enable the anti-false touch mode based on a combination of multiple factors, thereby improving the accuracy of the detection results. It will be appreciated that a first percentage greater than or equal to the fourth threshold, and a first number greater than or equal to the fifth threshold, indicates that the first signal experienced minimal attenuation during transmission and that the first signal also experienced multiple reflections during transmission. For example, if the electronic device is in a pocket or backpack, the first signal is received by the electronic device after a relatively short transmission distance and is reflected multiple times by the pocket or backpack within that short transmission distance. Therefore, the signal strength of the received second signal is not significantly attenuated compared to the first signal. Therefore, when the first percentage is greater than or equal to the fourth threshold, and the first number is greater than or equal to the fifth threshold, the electronic device is likely obscured, and the anti-false touch mode is enabled. A first percentage less than the fourth threshold indicates that the first signal experienced significant attenuation during transmission, and therefore, the electronic device is likely not obscured, and the anti-false touch mode is disabled. A first number less than the fifth threshold indicates that the first signal experienced fewer reflections, and therefore, the electronic device is likely not obscured, and the anti-false touch mode is disabled.
[0035] In one possible implementation, determining whether to turn on the anti-false touch mode is based on the first signal and the second signal, including: turning on the anti-false touch mode when the signal strength of the second signal is greater than or equal to the first strength; the first strength is obtained based on the signal strength of the first signal.
[0036] Based on the above possible implementation methods, in some cases, such as when the first reflected signal of the first signal coincides with the direct signal, the signal strength of the second signal is larger, for example, it can be greater than or equal to 80% of the signal strength of the first signal, so the electronic device can directly determine that the electronic device is blocked, and then determine to turn on the anti-mistouch mode to simplify the operation of the electronic device.
[0037] In one possible implementation, the method further includes: executing steps 1 to 4 multiple times; and determining whether to enable the false touch prevention mode based on the first signal and the second signal obtained by executing steps 1 to 4 multiple times. Step 1: determining the posture of the electronic device; Step 2: determining a signal transmission mode based on the posture of the electronic device; the signal transmission mode includes transmitting the signal through the first transmitter, transmitting the signal through the second transmitter, or transmitting the signal through the first transmitter and the second transmitter; Step 3: transmitting the first signal according to the signal transmission mode; and Step 4: receiving the second signal.
[0038] Based on the possible implementations described above, it is possible to determine multiple times whether the electronic device needs to enable the accidental touch prevention mode, and then determine whether the accidental touch prevention mode is actually enabled based on the results of the multiple determinations. For example, if M of the N results indicate that the accidental touch prevention mode is enabled, then the electronic device 10 enables the accidental touch prevention mode. Where N is an integer greater than 1, and M is an integer greater than 0 and less than N. This method can obtain more accurate results.
[0039] In a possible implementation, the method further includes: determining a motion state of the electronic device; and determining a period of the first signal according to the motion state.
[0040] Based on the above possible implementations, the period of the first signal can be determined according to the motion state. For example, when the electronic device is in motion, the electronic device can shorten the period of the first signal or increase the frequency of the first signal to improve the success rate of detecting the direct signal and the reflected signal of the first signal; when the electronic device is in a stationary state, the electronic device can increase the period of the first signal or reduce the frequency of the first signal to reduce the power consumption of the electronic device. Optionally, the motion state of the electronic device can be obtained by an acceleration sensor and / or a gyroscope sensor.
[0041] In a possible implementation, the method further includes: determining noise in an environment in which the electronic device is located; and determining a transmission power of the first signal based on the noise.
[0042] Based on the above possible implementations, the electronic device can determine the transmission power of the first signal based on the ambient noise. For example, when the noise in the environment in which the electronic device is located is relatively high, the electronic device can increase the transmission power of the first signal to increase the success rate of detecting the reflected signal or direct signal of the first signal. When the noise in the environment in which the electronic device is located is relatively low, the electronic device can reduce the transmission power of the first signal to reduce the power consumption of the electronic device. Optionally, the electronic device can sense the noise through a microphone and / or a receiver deployed by the electronic device to determine the transmission power of the first signal.
[0043] In one possible implementation, after determining that the anti-mistouch mode is turned on, the above method also includes: performing a first operation, the first operation including at least one of the following: locking the screen, dimming the screen of the electronic device, stopping recognizing the user's physiological characteristics, stopping recognizing the user's gestures, stopping unlocking the screen, or stopping responding to the user's operations.
[0044] Based on the possible implementations described above, after the electronic device determines that the anti-mistouch mode is turned on, it may perform one or more of the above operations to avoid responding to user's erroneous operations.
[0045] In one possible implementation, when the electronic device determines whether to enable the false-touch prevention mode based on the first signal, the second signal, the third signal, and the fourth signal, the electronic device may determine the transmission status information of the first signal based on the first signal and the second signal, and determine the transmission status information of the third signal based on the third signal and the fourth signal. Subsequently, the electronic device may determine whether to enable the false-touch prevention mode based on the transmission status information of the first signal and the transmission status information of the third signal.
[0046] Based on the above possible implementation, whether to enable the anti-false touch mode can be comprehensively determined based on the transmission status information of the first signal and the transmission status information of the third signal, thereby improving the accuracy of determining whether to enable the anti-false touch mode and thus improving the user experience.
[0047] In one possible implementation, when the electronic device determines whether to enable the false touch prevention mode based on the first signal, the second signal, the third signal, and the fourth signal, the false touch prevention mode is enabled when the signal strength of the second signal is greater than or equal to the first strength and / or the signal strength of the fourth signal is greater than or equal to the second strength. The first strength is obtained based on the signal strength of the first signal, and the second strength is obtained based on the signal strength of the third signal.
[0048] Based on the above possible implementation methods, in some cases, such as when the first reflected signal of the first signal coincides with the direct signal, the signal strength of the second signal is relatively large, for example, it can be greater than or equal to 80% of the signal strength of the first signal, so the electronic device can directly determine that the electronic device is blocked. Similarly, when the first reflected signal of the third signal coincides with the direct signal, the signal strength of the fourth signal is relatively large, for example, it can be greater than or equal to 80% of the signal strength of the third signal, so the electronic device can also directly determine that the electronic device is blocked. Thus, by combining the signal strengths of the first signal and / or the third signal to determine that the electronic device is blocked, the accuracy of determining whether to turn on the anti-false touch mode can be improved, and the operation of the electronic device can be simplified.
[0049] In a second aspect, a chip is provided. The chip is deployed in an electronic device. At least one transmitter connected to the chip is respectively deployed on the first side and the second side of the electronic device, and the first side is different from the second side. The at least one transmitter deployed on the first side of the electronic device includes a first transmitter, and the at least one transmitter deployed on the second side of the electronic device includes a second transmitter. The chip can be used to perform the following operations: determine the posture of the electronic device, determine the signal sending mode according to the posture of the electronic device, control the first transmitter and / or the second transmitter to send a signal according to the signal sending mode, obtain the second signal, and determine whether to turn on the anti-false touch mode according to the first signal and the second signal. The signal sending mode includes sending a signal through the first transmitter, sending a signal through the second transmitter, or sending a signal through the first transmitter and the second transmitter. The second signal includes a reflected signal of the first signal.
[0050] In one possible implementation, the signal transmission mode is determined according to the posture of the electronic device, including: when the first side of the electronic device is facing upward, the signal transmission mode is to send the signal through the second transmitter; when the first side of the electronic device is facing downward, the signal transmission mode is to send the signal through the first transmitter; when the electronic device is placed horizontally, the signal transmission mode is to send the signal through the first transmitter and / or the second transmitter.
[0051] In one possible implementation, when the angle between the first direction and the second direction is greater than or equal to a first threshold, the first side of the electronic device is upward; when the angle between the first direction and the second direction is less than or equal to the second threshold, the first side of the electronic device is downward; when the angle between the first direction and the second direction is less than the first threshold and greater than the second threshold, the electronic device is placed horizontally; the first direction points from the second side of the electronic device to the first side of the electronic device; and the second direction is the direction of gravity.
[0052] In one possible implementation, at least one receiver connected to the chip is respectively deployed on the first side and the second side. The at least one receiver deployed on the first side includes a first receiver, and the at least one receiver deployed on the second side includes a second receiver. Obtaining the second signal includes: controlling the first receiver and / or the second receiver to receive the second signal, and obtaining the second signal from the first receiver and / or the second receiver.
[0053] In one possible implementation, determining whether to enable the anti-false touch mode based on the first signal and the second signal includes: determining transmission status information of the first signal based on the first signal and the second signal; and determining whether to enable the anti-false touch mode based on the transmission status information.
[0054] In one possible implementation, the transmission status information includes the time delay between the first signal and the second signal; based on the transmission status information, determining whether to turn on the anti-false touch mode includes: when the time delay is less than or equal to the first time length, turning on the anti-false touch mode; when the time delay is greater than the first time length, not turning on the anti-false touch mode.
[0055] In one possible implementation, the transmission status information includes the time delay between the first signal and the second signal, and the number of second signals received from different directions; based on the transmission status information, determining whether to turn on the anti-false touch mode includes: when the time delay is less than or equal to the first duration, and the number is greater than or equal to the third threshold, turning on the anti-false touch mode; when the time delay is greater than the first duration, or the number is less than the third threshold, not turning on the anti-false touch mode.
[0056] In one possible implementation, the transmission status information includes the percentage of the signal strength of the second signal to the signal strength of the first signal; based on the transmission status information, determining whether to turn on the anti-mistouch mode includes: when the percentage is greater than or equal to a fourth threshold, turning on the anti-mistouch mode; when the percentage is less than the fourth threshold, not turning on the anti-mistouch mode.
[0057] In one possible implementation, the transmission status information includes the percentage of the signal strength of the second signal to the signal strength of the first signal, and the number of second signals received from different directions; based on the transmission status information, determine whether to turn on the anti-mistouch mode, including: when the percentage is greater than or equal to the fourth threshold, and the number is greater than or equal to the fifth threshold, turn on the anti-mistouch mode; when the percentage is less than the fourth threshold, or the number is less than the fifth threshold, do not turn on the anti-mistouch mode.
[0058] In one possible implementation, determining whether to turn on the anti-false touch mode is based on the first signal and the second signal, including: turning on the anti-false touch mode when the signal strength of the second signal is greater than or equal to the first strength; the first strength is obtained based on the signal strength of the first signal.
[0059] In one possible implementation, the chip may perform steps 1 to 4 multiple times, and determine whether to enable the false-touch prevention mode based on the first and second signals obtained from performing steps 1 to 4 multiple times. Step 1: Determine the posture of the electronic device; Step 2: Determine a signal transmission mode based on the posture of the electronic device; The signal transmission mode includes sending a signal through a first transmitter, sending a signal through a second transmitter, or sending a signal through a first transmitter and a second transmitter; Step 3: Send a first signal based on the signal transmission mode; Step 4: Receive a second signal.
[0060] In a possible implementation, the chip may determine the motion state of the electronic device; and determine the period of the first signal according to the motion state.
[0061] In a possible implementation, the chip may determine the noise in the environment in which the electronic device is located; and determine the transmission power of the first signal according to the noise.
[0062] In one possible implementation, after determining that the accidental touch prevention mode is enabled, the chip may perform a first operation, wherein the first operation includes at least one of the following: locking the screen, dimming the screen of the electronic device, stopping recognizing the user's physiological characteristics, stopping recognizing the user's gestures, stopping unlocking the screen, or stopping responding to user operations.
[0063] In a third aspect, an electronic device is provided for implementing the above method. The electronic device may be the electronic device described in the first aspect. The electronic device includes modules, units, or means corresponding to implementing the above method. The modules, units, or means may be implemented in hardware, software, or by hardware executing corresponding software implementations. The hardware or software includes one or more modules or units corresponding to the above functions.
[0064] In one possible implementation, the electronic device may include a processing module and a transceiver module. The processing module may be configured to implement the processing functions described in any of the above aspects and any possible implementations thereof. The processing module may be, for example, a processor. The transceiver module, also referred to as a transceiver unit, may be configured to implement the transmitting and / or receiving functions described in any of the above aspects and any possible implementations thereof. The transceiver module may be comprised of a transceiver circuit, a transceiver, or a transceiver.
[0065] In a possible implementation, the transceiver module includes a sending module and a receiving module, which are respectively used to implement the sending and receiving functions in any of the above aspects and any possible implementations thereof.
[0066] In a fourth aspect, an electronic device is provided, comprising: a processor configured to execute a computer program (or computer-executable instructions) stored in a memory and / or a logic circuit, so that the electronic device performs the method described in the first aspect. The electronic device may be the electronic device described in the first aspect. Optionally, the number of the processors may be one or more.
[0067] In a possible implementation, the electronic device further includes a memory.
[0068] In a possible implementation, the processor and the memory are integrated together; or the memory is independent of the processor.
[0069] In one possible implementation, the electronic device is a chip or a chip system. Optionally, when the electronic device is a chip system, it can be composed of a chip or include a chip and other discrete devices.
[0070] In a fifth aspect, an electronic device is provided, comprising: a processor and an interface circuit; the interface circuit is configured to receive a computer program or instruction and transmit it to the processor; and the processor is configured to execute the computer program or instruction, thereby causing the electronic device to perform the method described in the first aspect. The electronic device may be the electronic device described in the first aspect. Optionally, the number of the processors may be one or more.
[0071] In one possible implementation, the electronic device is a chip or a chip system. Optionally, when the electronic device is a chip system, it can be composed of a chip or include a chip and other discrete devices.
[0072] In a sixth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, the computer can execute the method described in the first aspect.
[0073] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the first aspect above.
[0074] It can be understood that the technical effects brought about by any possible implementation method of the second to seventh aspects mentioned above can be referred to the technical effects brought about by different possible implementation methods of the first aspect or any aspect mentioned above, and will not be repeated here.
[0075] It is understandable that, provided that the solutions are not contradictory, the solutions in each aspect can be combined. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] FIG1 is a schematic diagram of the hardware structure of the electronic device provided in this application;
[0077] FIG2 is a flow chart of the first method for preventing accidental touches provided by the present application;
[0078] FIG3 is a schematic diagram of a three-dimensional coordinate system of a mobile phone provided in this application;
[0079] FIG4 is a first posture diagram of the electronic device 10 provided in this application;
[0080] FIG5 is a second posture diagram of the electronic device 10 provided in this application;
[0081] FIG6 is a third posture diagram of the electronic device 10 provided in this application;
[0082] FIG7 is a schematic diagram of the cross-correlation between the first signal and the second signal provided by the present application;
[0083] FIG8 is a second flow chart of the method for preventing accidental touches provided by the present application;
[0084] FIG9 is a schematic structural diagram of the electronic device provided in this application. DETAILED DESCRIPTION
[0085] In order to prevent devices with touch screens from performing accidental touch operations, the present application provides an anti-accidental touch method. The method can be applied to electronic devices with touch screens, or to processors, circuits, modules, logical nodes, chips, or chip systems in the electronic devices. For ease of description, the present application introduces the method as applied to an electronic device. The electronic device has at least one transmitter deployed on the first side and the second side, respectively. The first side is different from the second side. For example, the first side is the bottom of the electronic device and the second side is the top of the electronic device, or the first side is the left side of the electronic device and the second side is the right side of the electronic device. The at least one transmitter deployed on the first side includes a first transmitter, and the at least one transmitter deployed on the second side includes a second transmitter. In this method, the electronic device can determine its own posture and determine a signal transmission mode based on its posture. The signal transmission mode includes sending a signal through the first transmitter, sending a signal through the second transmitter, or sending a signal through the first transmitter and the second transmitter. Subsequently, the electronic device can send a first signal according to the signal transmission mode, receive a second signal (such as a reflected signal of the first signal), and determine whether to enable the anti-accidental touch mode based on the first signal and the second signal.
[0086] In the above method, the electronic device can use different signal transmission modes to send signals for different postures, and then determine whether to turn on the anti-false touch mode based on the sent signal and the received signal. In other words, the present application can design different signal transmission modes for different postures of the electronic device, which is more targeted. Therefore, the signal sent using this signal transmission mode is used to detect whether the anti-false touch mode is turned on, which can obtain more accurate results. Therefore, the above method can effectively prevent the electronic device from performing erroneous operations, thereby improving the user experience.
[0087] It is understood that the electronic device can be any device having a touch screen display and at least one transmitter disposed on different sides. Exemplarily, the electronic device is a handheld device or a wearable device. For example, the electronic device is a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), an ultra-mobile personal computer (UMPC), a satellite terminal, or a smartwatch. The structure of the electronic device is described below using the electronic device 10 shown in FIG. 1 as an example.
[0088] Please refer to Figure 1, which is a schematic diagram of the hardware structure of an electronic device provided in this application. The electronic device 10 in Figure 1 may specifically include: a processor 110, a display screen 120, a memory 130 and a sensor module 140. The electronic device 10 also includes at least one of a transmitter 151 or a transmitter 152, and at least one of a receiver 153 or a receiver 154. Optionally, the electronic device 10 also includes at least one of the following: a camera 160, an external memory interface 131, a universal serial bus (USB) interface 132, a charging management module 170, a power management module 171, a battery 172, an antenna 1, an antenna 2, a mobile communication module 180, a wireless communication module 181, an audio module 190, an indicator 191, or a subscriber identification module (SIM) card interface 192, etc. A detailed introduction is given below.
[0089] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0090] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface.
[0091] The memory 130 can be used to store computer executable program code, which includes instructions. The memory 130 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 10 (such as audio data, a phone book, etc.), etc. In addition, the memory 130 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 10 by running instructions stored in the memory 130 and / or instructions stored in a memory provided in the processor. The processor 110 and the memory 130 may be integrated together or deployed independently.
[0092] The external memory interface 131 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 10. The external memory card communicates with the processor 110 via the external memory interface 131 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0093] Transmitter 151 or transmitter 152 is used to send signals, such as sending sound wave signals. Receiver 153 or receiver 154 is used to receive signals, such as receiving sound wave signals. The sound wave can be an ultrasonic wave or an infrasound wave, etc. Based on the characteristics of sound waves, for example, line of sight (LoS) propagation, reflection or refraction at the interface of different media, etc., the processor 110 can control the transmitter 151 and / or transmitter 152 to transmit sound wave signals, and the receiver 153 and / or receiver 154 can receive the reflected signal of the sound wave signal, and then indicate the received sound wave signal to the processor 110. The processor 110 can determine whether the electronic device 10 needs to turn on the anti-mistouch mode based on the sent sound wave signal and the received sound wave signal, thereby improving the user experience.
[0094] Optionally, the transmitter 151 or the transmitter 152 may be a device such as a speaker of the electronic device 10 , and the receiver 153 or the receiver 154 may be a device such as a microphone of the electronic device 10 , without limitation.
[0095] FIG1 illustrates an example in which the transmitter 151 and the receiver 153 are located at the top of the electronic device 10, and the transmitter 152 and the receiver 154 are located at the bottom of the electronic device 10. In a specific application, the transmitter 151 and the receiver 153 may also be located on the left side of the electronic device 10, and the transmitter 152 and the receiver 154 may also be located on the right side of the electronic device 10, without limitation.
[0096] Sensor module 140 may include at least one sensor. For example, sensor module 140 may include a touch sensor and an accelerometer. Optionally, sensor module 140 may also include at least one of the following sensors: a gyroscope sensor, a proximity light sensor, an ambient light sensor, a distance sensor, or a fingerprint sensor. The following briefly describes the functions of each sensor.
[0097] A touch sensor, also known as a "touch control device," can be provided on the display screen 120. The touch sensor and the display screen 120 form a touch screen, also known as a "touch screen." The touch sensor is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 120. In other embodiments, the touch sensor can also be provided on the surface of the electronic device 10, at a location different from that of the display screen 120.
[0098] The accelerometer can detect the magnitude of acceleration of the electronic device 10 in all directions (generally three axes). When the electronic device 10 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0099] The gyroscope sensor can be used to determine the motion posture of the electronic device 10. In some embodiments, the gyroscope sensor can be used to determine the angular velocity of the electronic device 10 around three axes (ie, x, y, and z axes). The distance sensor is used to measure distance.
[0100] The electronic device 10 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 10 can use a distance sensor to measure the distance to achieve fast focusing. The proximity light sensor may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 10 emits infrared light outward through the light emitting diode. The electronic device 10 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 10. When insufficient reflected light is detected, the electronic device 10 can determine that there is no object near the electronic device 10. The electronic device 10 can use the proximity light sensor to detect that the user is holding the electronic device 10 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0101] The fingerprint sensor is used to collect fingerprints. The electronic device 10 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0102] The ambient light sensor is used to sense ambient light brightness. Electronic device 10 can adaptively adjust the brightness of display screen 120 based on the perceived ambient light. The ambient light sensor can also be used to automatically adjust the white balance when taking photos. The ambient light sensor can also work in conjunction with the proximity sensor to detect whether electronic device 10 is in a pocket to prevent accidental touches.
[0103] Electronic device 10 implements display functionality through a GPU, display screen 120, and an application processor. The GPU is a microprocessor for image processing that connects display screen 120 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0104] The display screen 120 is used to display images, videos, and the like. The display screen 120 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device 10 can include one or N display screens 120, where N is a positive integer greater than one.
[0105] The electronic device 10 can implement audio functions through the audio module 190 and the application processor, etc. For example, music playback, recording, etc. The audio module 190 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 190 can also be used to encode and decode audio signals. In some embodiments, the audio module 190 can be set in the processor 110, or some functional modules of the audio module 190 can be set in the processor 110. Optionally, the audio module 190 can be connected to one or more of a speaker, a receiver, a microphone or a headphone jack to implement audio functions, such as music playback, recording, etc.
[0106] The electronic device 10 can implement a shooting function through the camera 160, a video codec, a GPU, a display screen 120, and an application processor.
[0107] The camera 160 is used to capture still images or videos. In some embodiments, the electronic device 10 may include one or N cameras 160, where N is a positive integer greater than 1. If the electronic device 10 includes N cameras, one of the N cameras is a main camera.
[0108] The charging management module 170 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 170 can receive charging input from the wired charger via the USB interface 132. In some wireless charging embodiments, the charging management module 170 can receive wireless charging input via the wireless charging coil of the electronic device 10. While charging the battery 172, the charging management module 170 can also provide power to the electronic device via the power management module 171.
[0109] The power management module 171 is used to connect the battery 172, the charging management module 170, and the processor 110. The power management module 171 receives input from the battery 172 and / or the charging management module 170 and provides power to the processor 110, the memory 130, the display 120, the camera 160, and the wireless communication module 181. The power management module 171 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 171 can also be set in the processor 110. In other embodiments, the power management module 171 and the charging management module 170 can also be set in the same device.
[0110] The wireless communication function of the electronic device 10 can be implemented through the antenna 1, the antenna 2, the mobile communication module 180, the wireless communication module 181, the modem processor and the baseband processor.
[0111] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 10 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0112] The mobile communication module 180 can provide wireless communication solutions for the electronic device 10, including second generation (2G), third generation (3G), fourth generation (4G), and fifth generation (5G). The mobile communication module 180 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 180 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 180 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 180 can be located in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 180 can be located in the same device as at least some of the modules of the processor 110.
[0113] The wireless communication module 181 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 10. The wireless communication module 181 can be one or more devices that integrate at least one communication processing module. The wireless communication module 181 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 181 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0114] In some embodiments, antenna 1 of electronic device 10 is coupled to mobile communication module 180 , and antenna 2 is coupled to wireless communication module 181 , so that electronic device 10 can communicate with a network and other devices via wireless communication technology.
[0115] The indicator 191 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0116] SIM card interface 192 is used to connect a SIM card. A SIM card can be connected to and disconnected from electronic device 10 by inserting or removing it from SIM card interface 192. Electronic device 10 may support one or N SIM card interfaces, where N is a positive integer greater than 1. Electronic device 10 interacts with the network through the SIM card to implement functions such as call and data communications.
[0117] It is understandable that the composition structure shown in Figure 1 does not constitute a limitation on the electronic device. In addition to the components shown in Figure 1, the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0118] The electronic device in the following embodiment may include the components shown in FIG1 , which will not be described in detail.
[0119] It is understood that in this application, " / " can indicate that the objects associated with each other are in an "or" relationship, for example, A / B can mean A or B; "and / or" can be used to describe that there are three relationships between the associated objects, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, expressions similar to "at least one of A, B and C" or "at least one of A, B or C" are usually used to indicate any of the following: A exists alone; B exists alone; C exists alone; A and B exist at the same time; A and C exist at the same time; B and C exist at the same time; A, B and C exist at the same time. The above uses A, B and C as an example to illustrate the optional items of the item. When there are more elements in the expression, the meaning of the expression can be obtained according to the above rules.
[0120] In order to facilitate the description of the technical solutions of the present application, in the present application, words such as "first" and "second" may be used to distinguish between technical features with the same or similar functions. The words such as "first" and "second" do not limit the quantity and execution order, and the words such as "first" and "second" do not necessarily limit them to be different. In the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or design. The use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0121] It is understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It is understood that in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the present application.
[0122] It can be understood that in this application, "when...", "in the case of...", "if" and "if" all mean that corresponding processing will be taken under certain objective circumstances, and do not limit the time, nor do they require judgment actions when implementing them, nor do they mean that there are other limitations.
[0123] In this application, "greater than or equal to" can be replaced by "greater than" or "equal to"; "less than or equal to" can be replaced by "less than" or "equal to". For example, "A is greater than or equal to B" can be replaced by "A is greater than B" or "A is equal to B"; "A is less than or equal to B" can be replaced by "A is less than B" or "A is equal to B".
[0124] It is understood that some optional features in this application may, in certain scenarios, be implemented independently of other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects. In certain scenarios, they may also be combined with other features as needed. Accordingly, the electronic devices provided in this application may also implement these features or functions accordingly, which will not be described in detail here.
[0125] It is understandable that the same step or steps or technical features with the same function in different embodiments of the present application can be referenced to each other.
[0126] The following uses the electronic device 10 shown in FIG1 as an example to illustrate the method provided by this application, but this application does not limit the execution subject. For example, the electronic device 10 in the method provided below in this application can also be a chip, a chip system, or a processor (such as processor 110) that supports the electronic device 10 to implement the method, or can also be a logical node, a logical module, or software that can implement all or part of the functions of the electronic device 10.
[0127] It is understood that in the present application, the electronic device 10 may perform some or all of the steps in the present application. These steps are merely examples, and the present application may also perform other steps or variations of various steps. In addition, the steps may be performed in a different order than presented in the present application, and it is possible that not all of the steps in the present application need to be performed.
[0128] As shown in FIG2 , a method for preventing accidental touches provided by the present application may include the following steps:
[0129] S201 : The electronic device 10 determines the posture of the electronic device 10 .
[0130] In this application, at least one transmitter is respectively deployed on the first side and the second side of the electronic device 10, and the first side is different from the second side. The at least one transmitter deployed on the first side includes a first transmitter, and the at least one transmitter deployed on the second side includes a second transmitter. For example, the first transmitter is transmitter 151 shown in Figure 1, and the second transmitter is transmitter 152 shown in Figure 1. In addition to the transmitter, at least one receiver is also respectively deployed on the first side and the second side of the electronic device 10. The at least one receiver deployed on the first side includes a first receiver, and the at least one receiver deployed on the second side includes a second receiver. For example, the first receiver is receiver 153 shown in Figure 1, and the second receiver is receiver 154 shown in Figure 1.
[0131] In this application, the first side is different from the second side. For example, the first side is the top of the electronic device 10, and the second side is the bottom of the electronic device 10. Alternatively, the first side is the left side of the electronic device 10, and the second side is the right side of the electronic device 10. Alternatively, the first side is the top of the electronic device 10, and the second side is the right side of the electronic device 10. It is understood that the first side and the second side can have other positional relationships, and this application does not limit them.
[0132] In the present application, the posture of the electronic device 10 includes the first side of the electronic device 10 facing upward, the first side of the electronic device 10 facing downward, or the electronic device 10 being placed horizontally. Among them, "the first side of the electronic device 10 facing upward" can be replaced by "the second side of the electronic device 10 facing downward", and "the first side of the electronic device 10 facing downward" can be replaced by "the second side of the electronic device 10 facing upward".
[0133] In one possible design, when the angle between the first and second directions is greater than or equal to a first threshold, the first side of the electronic device 10 is facing upward; when the angle between the first and second directions is less than or equal to a second threshold, the first side of the electronic device 10 is facing downward; and when the angle between the first and second directions is less than the first threshold and greater than the second threshold, the electronic device 10 is placed horizontally. The first direction is from the second side of the electronic device 10 toward the first side of the electronic device 10, and the second direction is the direction of gravity.
[0134] Exemplarily, the first side is the top of the electronic device 10, the second layer is the bottom of the electronic device 10, and the electronic device 10 is a mobile phone. As shown in Figure 3, a three-dimensional coordinate system xyz is established with the center point of the mobile phone as the origin, where the positive direction of the x-axis is the direction from the left side of the mobile phone to the right side of the mobile phone, the positive direction of the y-axis (that is, the first direction mentioned above) is the direction from the bottom of the mobile phone to the top of the mobile phone, and the positive direction of the z-axis is the direction from the back of the mobile phone to the front of the mobile phone. It can be understood that the three-dimensional coordinate system is not fixed, but rotates as the posture of the mobile phone changes. Below, taking the angle between the first direction and the second direction as θ (θ∈[0,180°]) as an example, the above three postures are specifically described respectively.
[0135] Example 1: As shown in Figure 4, when θ is greater than or equal to a first threshold, the top of electronic device 10 is facing upward (or the bottom is facing downward). The first threshold can be an obtuse angle. Taking the first threshold of 135° as an example, when θ∈[135°,180°], the posture of electronic device 10 can be determined as facing upward.
[0136] Example 2: As shown in Figure 5, when θ is less than or equal to a second threshold, the top of electronic device 10 is facing downward (or the bottom is facing upward). The second threshold can be an acute angle. For example, if the second threshold is 45°, when θ∈[0,45°], the posture of electronic device 10 can be determined to be facing downward.
[0137] Example 3: As shown in Figure 6, when θ is less than a first threshold and greater than a second threshold, electronic device 10 is positioned horizontally. For example, taking the first threshold being 135° and the second threshold being 45° as an example, when θ∈[45°,135°], the posture of electronic device 10 can be determined to be positioned horizontally.
[0138] In one possible implementation, the electronic device 10 may use an acceleration sensor to determine the posture of the electronic device 10. For example, the acceleration sensor may obtain an angle between a first direction and a second direction, and the electronic device 10 may determine the posture of the electronic device 10 based on the angle.
[0139] It will be appreciated that in the above example, when the angle between the first direction and the second direction is equal to the first threshold, the electronic device 10 determines that the first side is upward; and when the angle between the first direction and the second direction is equal to the second threshold, the electronic device 10 determines that the first side is downward. In a specific application, when the angle between the first direction and the second direction is equal to the first threshold, the electronic device 10 may also determine that the electronic device 10 is placed horizontally. Similarly, when the angle between the first direction and the second direction is equal to the second threshold, the electronic device 10 may also determine that the electronic device 10 is placed horizontally.
[0140] S202 : The electronic device 10 determines a signal transmission mode according to the posture of the electronic device 10 .
[0141] In this application, the signal transmission mode is used to indicate which transmitter is deployed on which side to transmit the signal. For example, the signal transmission mode includes the electronic device 10 transmitting the signal through the transmitter deployed on the first side (such as the first transmitter), transmitting the signal through the transmitter deployed on the second side (such as the second transmitter), or transmitting the signal through the transmitter deployed on the first side (such as the first transmitter) and the transmitter deployed on the second side (such as the second transmitter).
[0142] It can be understood that the above-mentioned “the electronic device 10 sends a signal through the transmitter deployed on the first side” means “the electronic device 10 sends a signal through any one or more transmitters deployed on the first side”. Similarly, the above-mentioned “the electronic device 10 sends a signal through the transmitter deployed on the second side” means “the electronic device 10 sends a signal through any one or more transmitters deployed on the second side”. “The electronic device 10 sends a signal through the transmitter deployed on the first side and the transmitter deployed on the second side” means “the electronic device 10 sends a signal through any one or more transmitters deployed on the first side and any one or more transmitters deployed on the second side”. For ease of description, the following embodiments of the present application are explained by taking the signal sending mode including the electronic device 10 sending a signal through the first transmitter, sending a signal through the second transmitter, or sending a signal through the first transmitter and the second transmitter as an example.
[0143] It is understandable that the electronic device 10 is prone to performing false touch operations when it is blocked. Therefore, whether the operation detected by the electronic device 10 is a false touch operation can be determined by detecting whether the electronic device 10 is blocked. In a specific application, the electronic device 10 can determine whether the electronic device 10 is blocked based on the transmitted signal and the received reflected signal of the signal. For example, if the signal strength of the reflected signal is large, the electronic device 10 can determine that it is blocked; if the signal strength of the reflected signal is small, the electronic device 10 can determine that it is not blocked. When the electronic device 10 is in a semi-enclosed environment (such as a pocket or backpack), the side of the transmitter used by the electronic device 10 to send the signal will affect the accuracy of the detection result. Taking the example of an electronic device 10 in a pocket, if the electronic device 10 uses a transmitter located at the bottom of the pocket to send a signal, since the transmitter is blocked by the pocket, the reflected signal of the signal is large, and the electronic device 10 will determine that it is blocked. If the electronic device 10 uses a transmitter located at the top of the pocket to send a signal, since the transmitter may not be completely blocked by the pocket or may not be blocked by the pocket, the reflected signal of the signal is small, and the electronic device 10 will determine that it is not blocked, resulting in a missed detection. Therefore, in order to improve the accuracy of the detection results of the electronic device 10, the signal transmission mode of the electronic device 10 can be designed according to the posture of the electronic device 10.
[0144] In one possible implementation, when the first side of the electronic device 10 is facing upward, the signal sending mode is to send signals through the second transmitter; when the first side of the electronic device 10 is facing downward, the signal sending mode is to send signals through the first transmitter; when the electronic device 10 is placed horizontally, the signal sending mode is to send signals through the first transmitter and / or the second transmitter.
[0145] For example, let's take the case where electronic device 10 is in a pocket, with the first side being the top and the second side being the bottom. When the first side of electronic device 10 is facing upward, indicating that the top of electronic device 10 is facing upward, the first transmitter at the top may not be blocked or not completely blocked, while the second transmitter at the bottom is blocked. Therefore, electronic device 10 can use the second transmitter to transmit a signal to detect whether electronic device 10 is blocked. When the first side of electronic device 10 is facing downward, indicating that the top of electronic device 10 is facing downward, the second transmitter at the bottom may not be blocked or not completely blocked, while the first transmitter at the top is blocked. Therefore, electronic device 10 can use the first transmitter to transmit a signal to detect whether electronic device 10 is blocked. When electronic device 10 is placed horizontally, both the top and bottom of electronic device 10 may be blocked, so electronic device 10 can use the first transmitter and / or the second transmitter to transmit a signal. Of course, if power consumption of electronic device 10 is not a consideration, electronic device 10 can determine the signal transmission mode without determining the posture, and can instead transmit signals using both the first transmitter and the second transmitter at all times, without limitation.
[0146] S203: The electronic device 10 sends a first signal according to the signal sending mode.
[0147] It can be understood that if the signal sending mode is to send signals through the second transmitter, the electronic device 10 sends the first signal through the second transmitter; if the signal sending mode is to send signals through the first transmitter, the electronic device 10 sends the first signal through the first transmitter; if the signal sending mode is to send signals through the first transmitter and / or the second transmitter, the electronic device 10 sends the first signal through the first transmitter, or the electronic device 10 sends the first signal through the second transmitter, or the electronic device 10 sends the first signal through the first transmitter and the second transmitter.
[0148] In one possible implementation, electronic device 10 may determine the transmit power of the first signal and transmit the first signal using the transmit power. For example, electronic device 10 may determine the noise level in the environment in which electronic device 10 is located and determine the transmit power of the first signal based on the noise level. Subsequently, electronic device 10 transmits the first signal using the determined transmit power.
[0149] It is understandable that when the noise in the environment in which the electronic device 10 is located is large, the electronic device 10 may increase the transmission power of the first signal to increase the success rate of detecting the reflected signal or direct signal of the first signal. When the noise in the environment in which the electronic device 10 is located is small, the electronic device 10 may reduce the transmission power of the first signal to reduce the power consumption of the electronic device 10. Exemplarily, the electronic device 10 may sense the noise through a microphone and / or a receiver deployed by the electronic device 10 (for example, the receiver 153 or the receiver 154 shown in FIG. 1 ), thereby determining the transmission power of the first signal.
[0150] In a possible implementation, the electronic device 10 determines a motion state of the electronic device 10 , and determines a period of the first signal according to the motion state.
[0151] Optionally, when the electronic device 10 is in motion, the electronic device 10 may shorten the period of the first signal or increase the frequency of the first signal to improve the success rate of detecting the direct signal and the reflected signal of the first signal; when the electronic device 10 is stationary, the electronic device 10 may increase the period of the first signal or decrease the frequency of the first signal to reduce the power consumption of the electronic device 10. The motion state of the electronic device 10 can be obtained by an accelerometer and / or a gyroscope sensor.
[0152] For example, when the electronic device 10 is stationary, the period of the first signal is 500ms. After sensing that the electronic device 10 is in motion, the period of the first signal can be reduced to 300ms. The extent of the reduction in the period of the first signal is related to the speed of the change in the motion state of the electronic device 10 (such as the speed or acceleration of the electronic device 10).
[0153] S204: The electronic device 10 receives a second signal.
[0154] In one possible implementation, the electronic device 10 receives the second signal through any one or more receivers deployed on the first side and / or any one or more receivers deployed on the second side. For ease of description, the following embodiments of the present application are described using the example of the electronic device 10 receiving the second signal through the first receiver and / or the second receiver.
[0155] In the present application, the second signal includes a reflected signal of the first signal. Optionally, the second signal also includes a direct signal of the first signal. The direct signal of the first signal refers to a signal that is received by the receiver without reflection of the first signal sent by the transmitter, that is, the direct signal of the first signal is a signal transmitted from the transmitter to the receiver in line of sight. The reflected signal of the first signal refers to a signal that is received by the receiver after the first signal sent by the transmitter is reflected at least once. Taking the first transmitter sending a signal and the first receiver receiving a signal as an example, if the first signal sent by the first transmitter is received by the first receiver without reflection, then the signal received by the first receiver can be called the direct signal of the first signal. If the first signal sent by the first transmitter is received by the first receiver after being reflected by an obstruction, then the signal received by the first receiver is called the reflected signal of the first signal.
[0156] In one possible implementation, to improve the success rate of electronic device 10 detecting the second signal, electronic device 10 may receive the second signal via a receiver located on the same side as the transmitter that transmits the first signal. For example, if electronic device 10 transmits the first signal via a first transmitter, electronic device 10 receives the second signal via a first receiver; if electronic device 10 transmits the first signal via a second transmitter, electronic device 10 receives the second signal via a second receiver; and if electronic device 10 transmits the first signal via both the first transmitter and the second transmitter, electronic device 10 receives the second signal via the first receiver and / or the second receiver.
[0157] It can be understood that in addition to the receiver located on the same side of the transmitter that sends the first signal, the electronic device 10 can also receive the second signal through a receiver located on a different side of the transmitter that sends the first signal, so that the electronic device 10 combines the second signals received by the receivers on both sides to determine whether to turn on the anti-false touch mode, thereby improving the accuracy of the detection results.
[0158] S205: The electronic device 10 determines whether to enable the accidental touch prevention mode according to the first signal and the second signal.
[0159] In a possible implementation, the electronic device 10 determines transmission status information of the first signal according to the first signal and the second signal, and determines whether to enable the false touch prevention mode according to the transmission status information of the first signal.
[0160] In the present application, the transmission status information of the first signal includes at least one of a first delay or a first percentage. The first delay is the delay between the first signal and the second signal. The first percentage is the percentage of the signal strength of the second signal to the signal strength of the first signal.
[0161] Optionally, the transmission status information of the first signal also includes the number of second signals received from different directions. As described above, the second signal includes the direct signal of the first signal and the reflected signal of the first signal. The reflected signal of the second signal includes the signal after the first signal is reflected at least once, so the second signal received by the electronic device 10 is received from different directions. The "second signals received from different directions" here may refer to all second signals (or reflected signals of the first signal) received from different directions that the electronic device 10 can detect, or the second signals (or reflected signals of the first signal) received from different directions detected by the electronic device 10 within a period of time (such as a period of time from the start of sending the first signal, or a period of time from the start of receiving the first second signal).
[0162] It is understandable that the first delay can be the delay between the first signal and one or each of the multiple second signals received in different directions, or the average or weighted average of the delays between the first signal and the multiple second signals, etc., without limitation. Similarly, the first percentage can be the percentage of the signal strength of one or each of the multiple second signals to the signal strength of the first signal, or the percentage of the average or weighted average of the signal strengths of the multiple second signals to the signal strength of the first signal, without limitation. For example, the above-mentioned second signal can be the second signal received earliest or the second signal received latest by the electronic device 10, etc. In addition, the above-mentioned first percentage can also be replaced by other parameters related to the signal strength of the first signal and the signal strength of the second signal. For example, the first percentage can be replaced by the percentage of the signal strength of the first signal to the signal strength of the second signal, or the difference between the signal strength of the first signal and the signal strength of the second signal, or the difference between the signal strength of the second signal and the signal strength of the first signal, without limitation. The following embodiments of the present application are described as an example in which the first percentage is the percentage of the signal strength of the second signal to the signal strength of the first signal.
[0163] In one possible implementation, the electronic device 10 can obtain the transmission status information of the first signal through the cross-correlation between the first signal and the second signal. The cross-correlation between the first signal and the second signal can be understood as the similarity between the two signals. For example, x(t) represents the first signal and y(t) represents the second signal. The cross-correlation between the first signal and the second signal (R x,y (t)) can satisfy formula (1). Wherein, x(t) can represent the relationship between the amplitude and time of the first signal, y(t) can represent the relationship between the amplitude and time of the second signal, and τ is the time delay between the first signal and the second signal.
[0164] Please refer to Figure 7, which is a schematic diagram of the cross-correlation between the first and second signals. Figure 7 shows the direct signal of the first signal and the three reflected signals of the first signal. The peak corresponding to time t0 (which can be understood as the main lobe of the cross-correlation) corresponds to the direct signal of the first signal, and the peaks corresponding to times t1, t2, and t3 (which can be understood as the side lobes of the cross-correlation) correspond to the reflected signals of the first signal received from different directions. As can be seen from Figure 7, the cross-correlation value between the direct signal of the first signal and the first signal is the largest. This is because the direct signal of the first signal has the shortest transmission time and the least attenuation. As the delay increases, such as from time t0 to time t3, the peak values corresponding to different times become smaller. This is because as the delay increases, the transmission path of the first signal increases and the attenuation of the first signal also increases. Therefore, the later the reflected signal arrives at the receiver, the smaller the correlation with the first signal. The peak corresponding to time t1 corresponds to the reflected signal with the shortest transmission delay, and the same applies to the subsequent ones.
[0165] It is understandable that the electronic device 10 can determine the first delay based on at least one of t0, t1, t2, or t3 and the time when the first signal is transmitted. The electronic device 10 can determine the first percentage based on at least one of the signal strength corresponding to time t0, the signal strength corresponding to time t1, the signal strength corresponding to time t2, or the signal strength corresponding to time t3, and the signal strength of the first signal. According to Figure 7, the electronic device 10 can determine that the number of second signals received from different directions is 3.
[0166] It is understandable that the way in which the electronic device 10 determines whether to enable the false touch prevention mode based on the first signal and the second signal is related to the content of the transmission status information of the first signal.
[0167] Case 1: The transmission status information of the first signal includes a first delay.
[0168] In one possible implementation, when the first time delay is less than or equal to the first time length, the electronic device 10 turns on the anti-false touch mode; when the first time delay is greater than the first time length, the electronic device 10 does not turn on the anti-false touch mode.
[0169] It can be understood that when the first delay is less than or equal to the first duration, it means that the first signal is received by the electronic device 10 after being transmitted over a shorter distance. For example, the electronic device 10 is in a pocket or a backpack, and the first signal is received by the electronic device 10 after being reflected by the pocket or the backpack within the first duration. Therefore, when the first delay is less than or equal to the first duration, the electronic device 10 may be blocked, and the electronic device 10 can turn on the anti-false touch mode. The first delay is greater than the first duration, which means that the first signal is received by the electronic device 10 after being transmitted over a longer distance, so the electronic device 10 may not be blocked, and the electronic device 10 may not turn on the anti-false touch mode.
[0170] For example, taking the first delay as the delay between the second signal and the first signal corresponding to time t3 shown in Figure 7, and the first duration being 2 seconds (s), if the first delay is 1.5s, the electronic device 10 turns on the anti-mistouch mode; if the first delay is 3s, the electronic device 10 does not turn on the anti-mistouch mode.
[0171] It should be understood that when the first delay is equal to the first duration, the electronic device 10 may also determine to turn on the false touch prevention mode without restriction.
[0172] Case 2: The transmission status information of the first signal includes a first delay and the number of second signals received from different directions (hereinafter referred to as the first number).
[0173] In one possible implementation, when the first delay is less than or equal to the first duration and the first number is greater than or equal to the third threshold, the electronic device 10 turns on the anti-mistouch mode; when the first delay is greater than the first duration, or the first number is less than the third threshold, the electronic device 10 does not turn on the anti-mistouch mode.
[0174] It can be understood that the first time delay is less than or equal to the first time length, and the first number is greater than or equal to the third threshold value, which means that the first signal is received by the electronic device 10 after being transmitted over a shorter distance, and the first signal is also reflected multiple times during the transmission over a shorter distance. For example, the electronic device 10 is in a pocket or a backpack, and the first signal is received by the electronic device 10 after being reflected multiple times by the pocket or the backpack within the first time length. Therefore, when the first time delay is less than or equal to the first time length, and the first number is greater than or equal to the third threshold value, the electronic device 10 may be blocked, and the electronic device 10 can turn on the anti-false touch mode. The first time delay is greater than the first time length, which means that the first signal is received by the electronic device 10 after being transmitted over a longer distance, so the electronic device 10 may not be blocked, and the electronic device 10 may not turn on the anti-false touch mode. The first number is less than the third threshold value, which means that the first signal is reflected fewer times, so the electronic device 10 may not be blocked, and the electronic device 10 may not turn on the anti-false touch mode.
[0175] For example, taking the first delay as the delay between the second signal and the first signal corresponding to time t3 shown in Figure 7, the first time length is 2s, and the third threshold is 2 as an example, the number of reflected signals of the first signal shown in Figure 7 is 3, that is, the first number is 3. If the first delay is 1.5s, the electronic device 10 turns on the anti-false touch mode.
[0176] It should be understood that when the first delay is equal to the first duration, and / or the first number is equal to the third threshold, the electronic device 10 may not enable the false touch prevention mode and is not subject to restriction.
[0177] Case 3: The transmission status information of the first signal includes a first percentage.
[0178] In one possible implementation, when the first percentage is greater than or equal to a fourth threshold, the electronic device 10 turns on the false touch prevention mode; when the first percentage is less than the fourth threshold, the electronic device 10 does not turn on the false touch prevention mode.
[0179] It can be understood that the first percentage being greater than or equal to the fourth threshold value indicates that the first signal attenuates less during transmission. For example, when the electronic device 10 is in a pocket or a backpack, the first signal is transmitted over a short distance and is reflected by the pocket or the backpack and received by the electronic device 10, so the signal strength of the second signal received by the electronic device 10 is not attenuated much compared to the first signal. Therefore, when the first percentage is greater than or equal to the fourth threshold value, the electronic device 10 may be blocked, and the electronic device 10 may turn on the anti-false touch mode. The first percentage being less than the fourth threshold value indicates that the first signal attenuates more during transmission, so the electronic device 10 may not be blocked, and the electronic device 10 does not turn on the anti-false touch mode.
[0180] For example, taking the first percentage as the percentage of the signal strength of the second signal corresponding to time t3 shown in FIG7 to the signal strength of the first signal, and the fourth threshold as 40% as an example, if the first percentage is 50%, the electronic device 10 turns on the anti-false touch mode; if the first percentage is 10%, the electronic device 10 does not turn on the anti-false touch mode.
[0181] It should be understood that when the first percentage is equal to the fourth threshold, the electronic device 10 may not enable the false touch prevention mode and is not restricted.
[0182] Case 4: The transmission status information of the first signal includes a first percentage and a first quantity.
[0183] In one possible implementation, when the first percentage is greater than or equal to the fourth threshold and the first quantity is greater than or equal to the fifth threshold, the electronic device 10 turns on the anti-mistouch mode; when the first percentage is less than the fourth threshold, or the first quantity is less than the fifth threshold, the electronic device 10 does not turn on the anti-mistouch mode.
[0184] It can be understood that the first percentage is greater than or equal to the fourth threshold, and the first number is greater than or equal to the fifth threshold, which means that the first signal attenuates less during transmission and that the first signal undergoes multiple reflections during transmission. For example, when the electronic device is in a pocket or backpack, the first signal is received by the electronic device 10 after being transmitted over a shorter distance, and is reflected multiple times by the pocket or backpack within the shorter transmission distance, so the signal strength of the received second signal is not much attenuated compared to the first signal. Therefore, when the first percentage is greater than or equal to the fourth threshold, and the first number is greater than or equal to the fifth threshold, the electronic device 10 may be blocked, and the electronic device 10 turns on the anti-false touch mode. The first percentage is less than the fourth threshold, which means that the first signal attenuates more during transmission, so the electronic device 10 may not be blocked, and the electronic device 10 does not turn on the anti-false touch mode. The first number is less than the fifth threshold, which means that the first signal is reflected fewer times, so the electronic device 10 may not be blocked, and the electronic device 10 may not turn on the anti-false touch mode.
[0185] For example, taking the first percentage as the percentage of the signal strength of the second signal corresponding to time t3 shown in FIG7 to the signal strength of the first signal, the fourth threshold is 30%, and the fifth threshold is 4 as an example, the number of reflected signals of the first signal shown in FIG7 is 3, that is, the first number is 3. If the first percentage is 40%, the electronic device 10 turns on the anti-false touch mode.
[0186] For example, taking the first percentage as the percentage of the signal strength of the second signal corresponding to time t1 shown in FIG7 to the signal strength of the first signal, the fourth threshold is 30%, and the fifth threshold is 3 as an example, the number of reflected signals of the first signal shown in FIG7 is 3, that is, the first number is 3. If the first percentage is 20%, the electronic device 10 does not turn on the anti-false touch mode.
[0187] It should be understood that when the first percentage is equal to the fourth threshold, and / or the first quantity is equal to the fifth threshold, the electronic device 10 may not enable the false touch prevention mode and is not subject to restriction.
[0188] Case 5: The transmission status information of the first signal includes a first delay and a first percentage.
[0189] In one possible implementation, when the first delay is less than or equal to the second duration and the first percentage is greater than or equal to the sixth threshold, the electronic device 10 turns on the anti-mistouch mode; when the first delay is greater than the second duration, or the first percentage is less than the sixth threshold, the electronic device 10 does not turn on the anti-mistouch mode.
[0190] It can be understood that the first time delay is less than or equal to the second time length, and the first percentage is greater than or equal to the sixth threshold value, which means that the first signal is received by the electronic device 10 after being transmitted over a shorter distance, and the first signal attenuates less during the transmission process. Therefore, the electronic device 10 may be blocked, and the electronic device 10 turns on the anti-false touch mode. The first time delay is greater than the second time length, which means that the first signal is received by the electronic device 10 after being transmitted over a longer distance, so the electronic device 10 may not be blocked, and the electronic device 10 does not turn on the anti-false touch mode. The first percentage is less than the sixth threshold value, which means that the first signal attenuates less during transmission, so the electronic device 10 may not be blocked, and the electronic device 10 does not turn on the anti-false touch mode.
[0191] It is understandable that the electronic device 10 may also determine whether to enable the false touch prevention mode in combination with the first quantity. For example, when the first time delay is less than or equal to the second time duration, the first percentage is greater than or equal to the sixth threshold, and the first quantity is greater than or equal to the seventh threshold, the electronic device 10 enables the false touch prevention mode; when the first time delay is greater than the second time duration, or the first percentage is less than the sixth threshold, or the first quantity is less than the seventh threshold, the electronic device 10 does not enable the false touch prevention mode.
[0192] It should be understood that when the first delay is equal to the second time length, and / or the first percentage is equal to the sixth threshold, and / or the first quantity is equal to the seventh threshold, the electronic device 10 may also not turn on the anti-mistouch mode without restriction.
[0193] It is understandable that, in addition to the transmission status information of the first signal, the electronic device 10 can also determine whether to enable the anti-false touch mode based on the signal strength of the first signal and the signal strength of the second signal. For example, when the signal strength of the second signal is greater than or equal to the first strength, the electronic device 10 enables the anti-false touch mode. The first strength is obtained based on the signal strength of the first signal. For example, the first strength is the product of the signal strength of the first signal and a second percentage. The second percentage is, for example, 80% or 85%.
[0194] It is understandable that when electronic device 10 is obscured, such as when it is in a pocket or backpack, if the reflected signal with the smallest delay in the second signal experiences a very short reflection path, that is, the transmission distance is short and the transmission delay is also very small, that is, it appears on the cross-correlation image that it overlaps with the peak corresponding to the direct signal, the peak value of the first peak in the cross-correlation image will be relatively large (for example, greater than the first intensity). In this case, electronic device 10 can determine that it is obscured and thus determine to enable the anti-false touch mode.
[0195] It is understandable that when the electronic device 10 receives the second signal through a receiver located on a different side of the transmitter that sends the first signal, the electronic device 10 can determine whether to turn on the anti-false touch mode in combination with the second signal received by the first receiver and the second signal received by the second receiver. For example, the first transmitter deployed at the bottom of the electronic device 10 transmits the first signal, and the electronic device 10 determines whether to turn on the anti-false touch mode based on the signal strength. Since the first receiver and the first transmitter are on the same side and are both located at the bottom of the electronic device 10, the first receiver is closer to the first transmitter than the second receiver. When the electronic device 10 is in a pocket, the ratio of the signal strength of the direct signal in the second signal received by the first receiver to the signal strength of the direct signal in the second signal received by the second receiver is set to a first ratio. When the electronic device 10 is not in a pocket, the ratio of the signal strength of the direct signal in the second signal received by the first receiver to the signal strength of the direct signal in the second signal received by the second receiver is set to a second ratio. It should be understood that if the first ratio is greater than the second ratio, then whether electronic device 10 has enabled the false-touch prevention mode can be determined based on whether the ratio of the signal strength of the direct signal in the second signal received by the first receiver to the signal strength of the direct signal in the second signal received by the second receiver is greater than or equal to the first threshold. According to this method, electronic device 10 can determine whether to enable the false-touch prevention mode based on the second signals received by the receivers on both sides, thereby improving the accuracy of the detection results.
[0196] In one possible implementation, when the first side of the electronic device 10 is facing downward, the signal transmission mode is to transmit a signal through the first transmitter. In the process of determining whether to enable the anti-false touch mode based on the first and second signals, the electronic device 10 may transmit a third signal through the second transmitter if it is determined not to enable the anti-false touch mode based on the first and second signals. The electronic device 10 may receive a fourth signal, which is a reflected signal of the third signal. The electronic device 10 may also determine whether to enable the anti-false touch mode based on the first, second, third, and fourth signals.
[0197] That is, when the first side of the electronic device 10 is facing downward, the signal transmission mode may be to transmit a signal via the first transmitter. The first signal is the signal transmitted by the first transmitter, and the second signal is the reflected signal of the first signal. When the electronic device 10 determines whether to enable the false touch prevention mode based on the first signal and the second signal, it may first determine based on the signal transmitted by the first transmitter and the signal received.
[0198] Specifically, the electronic device 10 can determine the transmission status information of the first signal based on the first signal and the second signal, and determine whether to enable the false touch prevention mode based on the transmission status information of the first signal. As described above, the transmission status information of the first signal includes at least one of the first delay or the first percentage.
[0199] It should be noted that the specific implementation manner in which the electronic device 10 determines whether to enable the false touch prevention mode according to the transmission status information of the first signal is similar to the above embodiment and will not be repeated here.
[0200] Next, if the electronic device 10 determines not to enable the accidental touch prevention mode based on the signal sent and received by the first transmitter, it can send a signal through the second transmitter. Finally, based on the signal sent and received by the first transmitter and the signal sent and received by the second transmitter, it is determined whether to enable the accidental touch prevention mode.
[0201] That is, when the electronic device 10 determines not to enable the false touch prevention mode based on the signal sent by the first transmitter and the received signal, it obtains the third signal and the fourth signal, where the third signal is the signal sent by the second transmitter and the fourth signal is the reflected signal of the third signal. The electronic device 10 can comprehensively determine whether to enable the false touch prevention mode based on the first signal, the second signal, the third signal, and the fourth signal.
[0202] In this way, when the electronic device 10 determines to turn on the anti-false touch mode based on the first signal and the second signal, there is no need to switch the second transmitter to send and receive signals. This can reduce the detection delay and power consumption of the electronic device 10. When the electronic device 10 determines not to turn on the anti-false touch mode based on the first signal and the second signal, it can combine the signals sent and received by the second transmitter on the other side to make a comprehensive determination. Thus, a more accurate result can be obtained. Therefore, the above method can effectively prevent the electronic device 10 from performing erroneous operations, thereby improving the user experience.
[0203] In one possible implementation, when the first side of the electronic device 10 is facing upward, the signal transmission mode is to transmit the signal through the second transmitter. In the process of determining whether to enable the anti-false touch mode based on the first signal and the second signal, the electronic device 10 may transmit a third signal through the first transmitter if it is determined not to enable the anti-false touch mode based on the first signal and the second signal. The electronic device 10 may receive a fourth signal, which includes a reflected signal of the third signal. The electronic device 10 may also determine whether to enable the anti-false touch mode based on the first signal, the second signal, the third signal, and the fourth signal.
[0204] That is, when the electronic device 10 is facing sideways, the signal transmission mode is to transmit signals via the second transmitter. The first signal is the signal transmitted by the second transmitter, and the second signal is the reflected signal of the first signal. When the electronic device 10 determines whether to enable the false touch prevention mode based on the first and second signals, it can first determine based on the signals transmitted and received by the second transmitter.
[0205] Specifically, the electronic device 10 can determine the transmission status information of the first signal based on the first signal and the second signal, and determine whether to enable the false touch prevention mode based on the transmission status information of the first signal. As described above, the transmission status information of the first signal includes at least one of the first delay or the first percentage.
[0206] It should be noted that the specific implementation manner in which the electronic device 10 determines whether to enable the false touch prevention mode according to the transmission status information of the first signal is similar to the above embodiment and will not be repeated here.
[0207] Next, if the electronic device 10 determines not to enable the accidental touch prevention mode based on the signal sent and received by the second transmitter, it can send a signal through the first transmitter. Finally, based on the signal sent and received by the first transmitter and the signal sent and received by the second transmitter, it is determined whether to enable the accidental touch prevention mode.
[0208] That is, when the electronic device 10 determines not to enable the false touch prevention mode based on the signal sent by the second transmitter and the received signal, it obtains the third signal and the fourth signal, where the third signal is the signal sent by the first transmitter and the fourth signal is the reflected signal of the third signal. The electronic device 10 can comprehensively determine whether to enable the false touch prevention mode based on the first signal, the second signal, the third signal, and the fourth signal.
[0209] In this way, when the electronic device 10 determines to enable the anti-false touch mode based on the first signal and the second signal, there is no need to switch the first transmitter to send and receive signals. This can reduce the detection delay and power consumption of the electronic device 10. When the electronic device 10 determines not to enable the anti-false touch mode based on the first signal and the second signal, it can combine the signal sent and the signal received by the first transmitter on the other side to make a comprehensive determination. Thus, a more accurate result can be obtained. Therefore, the above method can effectively prevent the electronic device 10 from performing erroneous operations, thereby improving the user experience.
[0210] In some embodiments of the present application, when the electronic device 10 determines whether to enable the false-touch prevention mode based on the first signal, the second signal, the third signal, and the fourth signal, the transmission status information of the first signal can be determined based on the first signal and the second signal, and the transmission status information of the third signal can be determined based on the third signal and the fourth signal. Then, the electronic device 10 can determine whether to enable the false-touch prevention mode based on the transmission status information of the first signal and the transmission status information of the third signal.
[0211] In the present application, the transmission status information of the third signal includes at least one of a second delay or a second percentage. The second delay is the delay between the third signal and the fourth signal. The second percentage is the percentage of the signal strength of the fourth signal to the signal strength of the third signal.
[0212] Specifically, the electronic device 10 may determine whether to enable the false touch prevention mode based on at least one of the second time delay or the second percentage, and / or at least one of the first time delay or the first percentage.
[0213] Exemplarily, the transmission status information of the first signal includes a first delay, and the transmission status information of the third signal includes a second delay.
[0214] In one possible implementation, when the first delay is less than or equal to the first duration and / or the second delay is less than or equal to the second duration, the electronic device 10 activates the false touch prevention mode; when the first delay is greater than the first duration and / or the second delay is greater than the second duration, the electronic device 10 does not activate the false touch prevention mode. It should be noted that the embodiments of the present application do not specifically limit the values corresponding to the first duration and the second duration.
[0215] It should be noted that the embodiment of the present application does not limit the specific implementation method corresponding to determining whether to enable the anti-false touch mode based on the transmission status information of the first signal and the transmission status information of the third signal.
[0216] In this way, the electronic device 10 in the embodiment of the present application can comprehensively determine whether to enable the false-touch prevention mode based on the transmission status information of the first signal and the transmission status information of the third signal, thereby improving the accuracy of determining whether to enable the false-touch prevention mode and thereby improving the user experience.
[0217] In one possible implementation, the electronic device 10, in the process of determining whether to turn on the anti-false touch mode based on the first signal, the second signal, the third signal, and the fourth signal, turns on the anti-false touch mode when the signal strength of the second signal is greater than or equal to the first strength, and / or the signal strength of the fourth signal is greater than or equal to the second strength. The first strength is obtained based on the signal strength of the first signal, and the second strength is obtained based on the signal strength of the third signal. That is, the second strength can also be obtained based on the signal strength of the third signal, so that whether to turn on the anti-false touch mode is determined based on the signal strength of the third signal and the signal strength of the fourth signal.
[0218] Exemplarily, when the signal strength of the second signal is less than the first strength and the signal strength of the fourth signal is greater than or equal to the second strength, the false touch prevention mode is enabled.
[0219] Based on the above possible implementation methods, in some cases, such as when the first reflected signal of the first signal coincides with the direct signal, the signal strength of the second signal is relatively large, for example, it can be greater than or equal to 80% of the signal strength of the first signal, so the electronic device 10 can directly determine that the electronic device 10 is blocked. Similarly, when the first reflected signal of the third signal coincides with the direct signal, the signal strength of the fourth signal is relatively large, for example, it can be greater than or equal to 80% of the signal strength of the third signal, so the electronic device 10 can also directly determine that the electronic device 10 is blocked. Thus, by combining the signal strengths of the first signal and / or the third signal to determine that the electronic device 10 is blocked, the accuracy of determining whether to turn on the anti-false touch mode can be improved, and the operation of the electronic device 10 can be simplified.
[0220] In some embodiments of the present application, the electronic device 10 may determine whether to enable the false-touch prevention mode based on the transmission status information of the first signal when determining whether to enable the false-touch prevention mode based on the first signal and the second signal.
[0221] Exemplarily, the transmission status information of the first signal includes the first time delay. When the first time delay is less than or equal to the first time length, the electronic device 10 may enable the false touch prevention mode.
[0222] It should be noted that the specific implementation manner in which the electronic device determines to enable the anti-mistouch mode according to the first signal and the second signal is similar to the above embodiment and will not be repeated here.
[0223] It is understood that in specific applications, the electronic device 10 may also combine other information to determine whether to enable the accidental touch prevention mode to further improve the accuracy of the detection results. For example, the electronic device 10 may combine information sensed by a sensor to determine whether the electronic device 10 is blocked. If the electronic device 10 is blocked, the accidental touch prevention mode is enabled. The sensor may include at least one of the following: a proximity light sensor, an ambient light sensor, an infrared sensor, or a capacitive sensor.
[0224] It is understandable that after determining to enable the anti-mistouch mode, the electronic device 10 may not respond to the recognized command or the electronic device 10 may lock the screen to prevent the user from performing accidental touch operations. For example, the electronic device 10 may perform a first operation. The first operation includes at least one of the following: locking the screen, dimming the screen of the electronic device 10, stopping recognizing the user's physiological characteristics, stopping recognizing the user's gestures, stopping unlocking the screen, or stopping responding to the user's operations. The user's physiological characteristics may include at least one of the following: the user's fingerprint, the user's facial features, or the user's iris, etc.
[0225] Based on the method shown in Figure 2, the electronic device 10 can use different signal transmission modes to send a first signal according to different postures of the electronic device 10, and then determine whether to turn on the anti-false touch mode based on the first signal and the received second signal. Since the electronic device 10 is prone to performing false touch operations when it is blocked, it can be determined whether to turn on the anti-false touch mode by detecting whether the electronic device 10 is blocked. When the electronic device 10 is partially blocked (such as when the electronic device 10 is in a semi-enclosed environment such as a pocket or a backpack), sending a signal through the transmitter of the blocked part can more accurately detect whether the electronic device 10 is blocked. Therefore, designing different signal transmission modes for different postures of the electronic device 10 can obtain more accurate detection results. Therefore, the above method can effectively prevent the electronic device 10 from performing false operations, thereby improving the user experience.
[0226] Optionally, in a possible implementation, in order to improve the accuracy of the detection results, the electronic device 10 may execute S201 to S204 multiple times, and determine whether to turn on the anti-false touch mode based on the first signal and the second signal obtained by executing the above steps multiple times. Specifically, the electronic device 10 may determine whether to turn on the anti-false touch mode based on the first signal and the second signal obtained this time after each execution of S201 to S204. Subsequently, the electronic device 10 may finally determine whether to turn on the anti-false touch mode based on the results of multiple determinations, so as to avoid turning on the anti-false touch mode due to an accidental obstruction, or to avoid turning on the anti-false touch mode due to a short-term obstruction.
[0227] For example, as shown in FIG8 , the electronic device 10 may execute S201 to S205 N times, obtaining N execution results, and ultimately determining whether to enable the accidental touch prevention mode based on the N execution results. For example, if each result indicates that the accidental touch prevention mode is enabled, the electronic device 10 enables the accidental touch prevention mode; or, if M of the N results indicate that the accidental touch prevention mode is enabled, the electronic device 10 enables the accidental touch prevention mode. Where N is an integer greater than 1, and M is an integer greater than 0 and less than N.
[0228] In one possible implementation, the electronic device 10 may periodically execute S201 to S205 to periodically determine whether to enable the accidental touch prevention mode. Alternatively, the above S201 to S204 are periodically executed, and the electronic device 10 may determine whether to enable the accidental touch prevention mode based on the execution results of N cycles.
[0229] It is understood that the aforementioned period may be related to the motion state of the electronic device 10. In other words, the electronic device 10 may determine the aforementioned period based on the motion state of the electronic device 10. For example, when the electronic device 10 is in motion, the electronic device 10 may shorten the aforementioned period to improve the accuracy of the detection result; when the electronic device 10 is stationary, the electronic device 10 may increase the aforementioned period to reduce the power consumption of the electronic device 10.
[0230] It is understandable that the actions of the electronic device 10 in the above steps can be executed by the processor 110 in the electronic device 10 shown in Figure 1 calling the application code stored in the memory 130, and this application does not impose any limitation on this.
[0231] The present application also provides an electronic device, which may be the electronic device in the above-mentioned method embodiment, or a device comprising the above-mentioned electronic device, or a component that can be used for an electronic device. It is understandable that, in order to implement the above-mentioned functions, the above-mentioned electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithmic operations of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0232] The present application can divide the electronic device into functional modules according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software functional modules. It is understood that the division of modules in this application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.
[0233] For example, FIG9 shows a schematic diagram of the structure of an electronic device 90, where the functional modules are divided in an integrated manner. The electronic device 90 includes a processing module 901 and a transceiver module 902. The processing module 901, which may also be referred to as a processing unit, is configured to perform operations other than transceiver operations and may, for example, be a processing circuit or a processor. The transceiver module 902, which may also be referred to as a transceiver unit, is configured to perform transceiver operations and may, for example, be a transceiver circuit, a transceiver, or a transceiver. For example, the transceiver module 902 includes the first transmitter, the second transmitter, the first receiver, and the second receiver described above.
[0234] In some embodiments, the electronic device 90 may further include a storage module (not shown in FIG. 9 ) for storing program instructions and data.
[0235] Exemplarily, the electronic device 90 is used to implement the functions of an electronic device. The electronic device 90 is, for example, the electronic device described in the embodiment shown in FIG2 .
[0236] The processing module 901 is configured to determine the posture of the electronic device 90. For example, the processing module 901 may be configured to execute S201.
[0237] The processing module 901 is further configured to determine a signal transmission mode based on the posture of the electronic device 90. The signal transmission mode includes transmitting the signal through the first transmitter, transmitting the signal through the second transmitter, or transmitting the signal through the first transmitter and the second transmitter. For example, the processing module 901 may be configured to execute S202.
[0238] The transceiver module 902 is configured to send a first signal according to a signal sending mode. For example, the transceiver module 902 may be configured to execute S203.
[0239] The transceiver module 902 is further configured to receive a second signal, wherein the second signal includes a reflected signal of the first signal. For example, the transceiver module 902 may be configured to execute S204.
[0240] The processing module 901 is further configured to determine whether to enable the false touch prevention mode according to the first signal and the second signal. The processing module 901 can be configured to execute S205.
[0241] In one possible implementation, when the first side of the electronic device 90 is facing upward, the signal sending mode is to send signals through the second transmitter; when the first side of the electronic device 90 is facing downward, the signal sending mode is to send signals through the first transmitter; when the electronic device 90 is placed horizontally, the signal sending mode is to send signals through the first transmitter and / or the second transmitter.
[0242] In one possible implementation, when the angle between the first direction and the second direction is greater than or equal to a first threshold, the first side of the electronic device 90 is upward; when the angle between the first direction and the second direction is less than or equal to the second threshold, the first side of the electronic device 90 is downward; when the angle between the first direction and the second direction is less than the first threshold and greater than the second threshold, the electronic device 90 is placed horizontally; the first direction is from the second side of the electronic device 90 to the first side of the electronic device 90; and the second direction is the direction of gravity.
[0243] In a possible implementation, the transceiver module 902 is specifically configured to receive the second signal through the first receiver and / or the second receiver.
[0244] In one possible implementation, the processing module 901 is specifically used to determine the transmission status information of the first signal based on the first signal and the second signal; the processing module 901 is also specifically used to determine whether to turn on the anti-false touch mode based on the transmission status information of the first signal.
[0245] In one possible implementation, the transmission status information of the first signal includes the time delay between the first signal and the second signal; the processing module 901 is specifically used to turn on the anti-false touch mode when the above-mentioned time delay is less than or equal to the first time length; when the above-mentioned time delay is greater than the first time length, the anti-false touch mode is not turned on.
[0246] In one possible implementation, the transmission status information of the first signal includes the time delay between the first signal and the second signal, and the number of second signals received from different directions; the processing module 901 is specifically used to turn on the anti-false touch mode when the above-mentioned time delay is less than or equal to the first time length, and the number is greater than or equal to the third threshold; when the above-mentioned time delay is greater than the first time length, or the above-mentioned number is less than the third threshold, the anti-false touch mode is not turned on.
[0247] In one possible implementation, the transmission status information of the first signal includes the percentage of the signal strength of the second signal to the signal strength of the first signal; the processing module 901 is specifically used to turn on the anti-mistouch mode when the above percentage is greater than or equal to a fourth threshold; when the above percentage is less than the fourth threshold, the anti-mistouch mode is not turned on.
[0248] In one possible implementation, the transmission status information of the first signal includes the percentage of the signal strength of the second signal to the signal strength of the first signal, and the number of second signals received from different directions; the processing module 901 is specifically used to turn on the anti-false touch mode when the above percentage is greater than or equal to the fourth threshold, and the above number is greater than or equal to the fifth threshold; when the above percentage is less than the fourth threshold, or the above number is less than the fifth threshold, the anti-false touch mode is not turned on.
[0249] In a possible implementation, the processing module 901 is specifically configured to enable the false touch prevention mode when the signal strength of the second signal is greater than or equal to a first strength; the first strength is obtained according to the signal strength of the first signal.
[0250] In a possible implementation, the processing module 901 is further configured to determine a motion state of the electronic device 90 ; the processing module 901 is further configured to determine a period of the first signal according to the motion state.
[0251] In a possible implementation, the processing module 901 is further configured to determine the noise in the environment in which the electronic device 90 is located; and the processing module 901 is further configured to determine the power of the first signal according to the noise.
[0252] In one possible implementation, the processing module 901 is also used to perform a first operation, which includes at least one of the following: locking the screen, dimming the screen of the electronic device 90, stopping recognizing the user's physiological characteristics, stopping recognizing the user's gestures, stopping unlocking the screen, or stopping responding to the user's operations.
[0253] When used to implement the functions of an electronic device, for other functions that the electronic device 90 can implement, reference can be made to the relevant introduction of the embodiment shown in FIG2 , and no further details will be given.
[0254] In a simple embodiment, those skilled in the art can imagine that the electronic device 90 can adopt the form shown in Figure 1. For example, the processor 110 in Figure 1 can call the computer-executable instructions stored in the memory 130 to enable the electronic device 90 to perform the method described in the above method embodiment.
[0255] Exemplarily, the function / implementation process of the processing module 901 in Figure 9 can be implemented by the processor 110 in Figure 1 calling the computer execution instructions stored in the memory 130, and the function / implementation process of the transceiver module 902 in Figure 9 can be implemented by the transmitter 151, transmitter 152, receiver 153 and receiver 154 in Figure 1.
[0256] It is understandable that one or more of the above modules or units can be implemented by software, hardware or a combination of the two. When any of the above modules or units is implemented in software, the software exists in the form of computer program instructions and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor can be built into a system-on-a-chip (SoC) or ASIC, or it can be an independent semiconductor chip. In addition to the core for executing software instructions to perform calculations or processing within the processor, it can further include necessary hardware accelerators, such as field programmable gate arrays (FPGAs), programmable logic devices (PLDs) or logic circuits that implement dedicated logic operations.
[0257] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a digital signal processing (DSP) chip, a microcontroller unit (MCU), an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.
[0258] Optionally, the present application also provides a chip system, comprising: at least one processor and an interface, wherein the at least one processor is coupled to a memory via the interface, and when the at least one processor executes a computer program or instruction in the memory, the method in any of the above method embodiments is executed. In one possible implementation, the chip system also includes a memory. Optionally, the chip system can be composed of a chip, or can include a chip and other discrete devices, which is not specifically limited in this application.
[0259] Optionally, the present application also provides a computer-readable storage medium. All or part of the processes in the above-mentioned method embodiments can be completed by a computer program to instruct the relevant hardware, and the program can be stored in the above-mentioned computer-readable storage medium. When the program is executed, it may include the processes of the above-mentioned method embodiments. The computer-readable storage medium can be an internal storage unit of the electronic device of any of the aforementioned embodiments, such as a hard disk or memory of the electronic device. The above-mentioned computer-readable storage medium can also be an external storage device of the above-mentioned electronic device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above-mentioned electronic device. Furthermore, the above-mentioned computer-readable storage medium can also include both the internal storage unit of the above-mentioned electronic device and an external storage device. The above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned electronic device. The above-mentioned computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
[0260] Optionally, the present application also provides a computer program product. All or part of the processes in the above method embodiments may be completed by a computer program instructing related hardware. The program may be stored in the above computer program product, and when executed, the program may include the processes in the above method embodiments.
[0261] Optionally, the present application also provides a computer instruction. All or part of the process in the above method embodiment can be completed by the computer instruction to instruct the relevant hardware (such as a computer, processor or electronic device, etc.). The program can be stored in the above computer-readable storage medium or in the above computer program product.
[0262] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device can be divided into different functional modules to complete all or part of the functions described above.
[0263] In the several embodiments provided in this application, it should be understood that the disclosed methods and electronic devices can be implemented in other ways. For example, the electronic device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another electronic device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0264] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0265] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0266] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for preventing accidental touch, characterized in that: The method is applied to an electronic device, wherein at least one transmitter is respectively deployed on a first side and a second side of the electronic device, the first side being different from the second side; the at least one transmitter deployed on the first side includes a first transmitter, and the at least one transmitter deployed on the second side includes a second transmitter; the method comprises: Step 1: Determine the posture of the electronic device; Step 2: Determine a signal transmission mode according to the posture of the electronic device; the signal transmission mode includes sending a signal through the first transmitter, sending a signal through the second transmitter, or sending a signal through the first transmitter and the second transmitter; Step 3: Sending a first signal according to the signal sending mode; Step 4: Receive a second signal; the second signal includes a reflection signal of the first signal; Determine whether to enable a false touch prevention mode according to the first signal and the second signal.
2. The method according to claim 1, characterized in that The determining of the signal transmission mode according to the posture of the electronic device includes: When the first side of the electronic device is facing downward, the signal transmission mode is to transmit the signal via the first transmitter; The determining whether to enable the false touch prevention mode according to the first signal and the second signal includes: When it is determined that the false touch prevention mode is not to be enabled according to the first signal and the second signal, sending a third signal through the second transmitter; receiving a fourth signal, wherein the fourth signal includes a reflected signal of the third signal; Whether to enable a false touch prevention mode is determined according to the first signal, the second signal, the third signal, and the fourth signal.
3. The method according to claim 1, characterized in that The determining of the signal transmission mode according to the posture of the electronic device includes: When the first side of the electronic device is facing upward, the signal transmission mode is to transmit the signal through the second transmitter; The determining whether to enable the false touch prevention mode according to the first signal and the second signal includes: When it is determined that the false touch prevention mode is not to be enabled according to the first signal and the second signal, sending a third signal through the first transmitter; receiving a fourth signal, wherein the fourth signal includes a reflected signal of the third signal; Whether to enable a false touch prevention mode is determined according to the first signal, the second signal, the third signal, and the fourth signal.
4. The method according to claim 1, wherein The determining of the signal transmission mode according to the posture of the electronic device includes: When the first side of the electronic device is facing upward, the signal transmission mode is to transmit the signal through the second transmitter; When the first side of the electronic device is facing downward, the signal transmission mode is to transmit the signal through the first transmitter; When the electronic device is placed horizontally, the signal sending mode is to send the signal through the first transmitter and / or the second transmitter.
5. The method according to any one of claims 2 to 4, characterized in that: When the angle between the first direction and the second direction is greater than or equal to a first threshold, the first side of the electronic device is facing upward; When the angle between the first direction and the second direction is less than or equal to a second threshold, the first side of the electronic device is downward; When the angle between the first direction and the second direction is smaller than a first threshold value and larger than a second threshold value, the electronic device is placed horizontally; The first direction points from the second side of the electronic device to the first side of the electronic device; and the second direction is the direction of gravity.
6. The method according to claim 1 or 4, characterized in that At least one receiver is respectively deployed on the first side and the second side, wherein the at least one receiver deployed on the first side includes a first receiver, and the at least one receiver deployed on the second side includes a second receiver; The receiving the second signal includes: receiving the second signal through the first receiver and / or the second receiver.
7. The method according to any one of claims 1 to 6, characterized in that The determining whether to enable the false touch prevention mode according to the first signal and the second signal includes: determining transmission status information of the first signal according to the first signal and the second signal; Determine whether to enable a false touch prevention mode according to the transmission status information.
8. The method according to claim 7, characterized in that The transmission status information includes a time delay between the first signal and the second signal; The determining whether to enable the false touch prevention mode according to the transmission status information includes: When the time delay is less than or equal to the first time length, turning on the anti-false touch mode; When the time delay is greater than the first time length, the anti-false touch mode is not enabled.
9. The method according to claim 7, characterized in that The transmission status information includes a time delay between the first signal and the second signal, and a number of the second signals received from different directions; The determining whether to enable the false touch prevention mode according to the transmission status information includes: When the time delay is less than or equal to the first time length, and the number is greater than or equal to a third threshold, turning on the false touch prevention mode; When the time delay is greater than the first time length, or the number is less than a third threshold, the false touch prevention mode is not enabled.
10. The method according to claim 7, characterized in that The transmission status information includes a percentage of a signal strength of the second signal to a signal strength of the first signal; and determining whether to enable the false touch prevention mode based on the transmission status information includes: When the percentage is greater than or equal to a fourth threshold, turning on the false touch prevention mode; When the percentage is less than the fourth threshold, the false touch prevention mode is not enabled.
11. The method according to claim 7, characterized in that The transmission status information includes a percentage of the signal strength of the second signal to the signal strength of the first signal, and a number of the second signals received from different directions; The determining whether to enable the false touch prevention mode according to the transmission status information includes: When the percentage is greater than or equal to a fourth threshold, and the number is greater than or equal to a fifth threshold, turning on the false touch prevention mode; When the percentage is less than the fourth threshold, or the number is less than the fifth threshold, the false touch prevention mode is not enabled.
12. The method according to any one of claims 1 to 6, characterized in that The determining whether to enable the false touch prevention mode according to the first signal and the second signal includes: When the signal strength of the second signal is greater than or equal to the first strength, the false touch prevention mode is turned on; the first strength is obtained according to the signal strength of the first signal.
13. The method according to any one of claims 1 to 12, characterized in that The method further comprises: Execute steps 1 to 4 multiple times; The determining whether to enable the false touch prevention mode according to the first signal and the second signal includes: Determine whether to enable the false touch prevention mode according to the first signal and the second signal obtained by performing steps 1 to 4 multiple times.
14. The method according to any one of claims 1 to 13, characterized in that The method further comprises: determining a motion state of the electronic device; The period of the first signal is determined according to the motion state.
15. The method according to any one of claims 1 to 14, characterized in that The method further comprises: determining noise in an environment in which the electronic device is located; The transmission power of the first signal is determined according to the noise.
16. The method according to claim 2 or 3, characterized in that The determining whether to enable the false touch prevention mode according to the first signal, the second signal, the third signal, and the fourth signal includes: determining transmission status information of the first signal according to the first signal and the second signal; determining transmission status information of the third signal according to the third signal and the fourth signal; Whether to enable a false touch prevention mode is determined according to the transmission status information of the first signal and the transmission status information of the third signal.
17. The method according to claim 2 or 3, characterized in that The determining whether to enable the false touch prevention mode according to the first signal, the second signal, the third signal, and the fourth signal includes: When the signal strength of the second signal is greater than or equal to the first strength, and / or the signal strength of the fourth signal is greater than or equal to the second strength, the anti-false touch mode is turned on; the first strength is obtained based on the signal strength of the first signal, and the second strength is obtained based on the signal strength of the third signal.
18. The method according to any one of claims 1 to 17, characterized in that After determining to enable the accidental touch prevention mode, the method further includes: Execute a first operation, where the first operation includes at least one of the following: locking the screen, dimming the screen of the electronic device, stopping recognizing the user's physiological characteristics, stopping recognizing the user's gestures, stopping unlocking the screen, or stopping responding to the user's operations.
19. An electronic device, characterized in that: The method comprises a unit or module for performing the method according to any one of claims 1 to 18.
20. A chip, characterized in that: Deployed in an electronic device, at least one transmitter is respectively deployed on a first side and a second side of the electronic device, the first side being different from the second side; the at least one transmitter deployed on the first side of the electronic device includes a first transmitter, and the at least one transmitter deployed on the second side of the electronic device includes a second transmitter; the chip is configured to perform the following operations: determining a posture of the electronic device; determining a signal transmission mode according to the posture of the electronic device; the signal transmission mode including transmitting the signal through the first transmitter, transmitting the signal through the second transmitter, or transmitting the signal through the first transmitter and the second transmitter; controlling the first transmitter and / or the second transmitter to transmit a first signal according to the signal transmission mode; Acquire a second signal; the second signal includes a reflection signal of the first signal; Determine whether to enable a false touch prevention mode according to the first signal and the second signal.
21. An electronic device, characterized in that: include: A processor is coupled to a memory, wherein the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 18.
22. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instructions are executed, the computer is caused to perform the method according to any one of claims 1 to 18.
23. A computer program product, comprising computer program code, characterized in that: When the computer program code is run on a computer, the computer is caused to implement the method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Mistaken touch prevention method and electronic equipment
CN120692350A
Parameter configuration method and related product
CN107566161A
Terminal, terminal communication signal transmission adjusting method and electronic equipment
CN108206884A
Method for preventing mistaken touch and electronic equipment
CN114070928A
Control method applied to head-mounted device and head-mounted device
WO2017084253A1