A method for generating a calibration signal, an electronic device and a computer storage medium
By generating calibration signals, obtaining and judging trigger information, sending ultrasonic signals and receiving reflected signals for calibration, the false alarm problem of ultrasonic anti-accidental touch algorithm when state changes is solved, and the accuracy of anti-accidental touch mode is improved.
Patent Information
- Application Number
- CN202010968249.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-15
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2040-09-15
AI Technical Summary
Existing ultrasonic anti-mistouch algorithms are prone to abnormal results when the state of electronic devices changes, leading to false alarms of approaching or moving away from the state, resulting in low accuracy.
By generating calibration signals, trigger information is obtained and it is determined whether the trigger conditions are met. A transmission signal is sent and a reference signal is received. The ultrasonic signal is used for calibration to generate a calibration signal to improve accuracy.
The accuracy of the ultrasonic anti-accidental touch algorithm has been improved under different conditions, ensuring that electronic devices generate calibration signals in an unobstructed state, thereby increasing the success rate of the anti-accidental touch mode.
Smart Images

Figure CN114185446B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a calibration signal generation method, an electronic device and a computer storage medium. BACKGROUND
[0002] The "anti-mistouch mode" is a mode adopted to prevent the functions such as touch display screen, unlocking or application program of the electronic device from being triggered by mistake during use. At present, the "anti-mistouch mode" can be realized by an ultrasonic anti-mistouch algorithm. The ultrasonic anti-mistouch algorithm can solve the problem of ultrasonic low-power constant opening, so that an optical proximity sensor does not need to be set, and front holeless and top space reduction can be realized. However, when the state of the electronic device changes, the result of the ultrasonic anti-mistouch algorithm will be abnormal, and the problem of result false alarm will occur. SUMMARY
[0003] The present application provides a calibration signal generation method, an electronic device and a computer storage medium, which can improve the accuracy of the result of the ultrasonic anti-mistouch algorithm.
[0004] In a first aspect, an embodiment of the present application provides a calibration signal generation method, comprising
[0005] obtaining trigger information;
[0006] determining whether the trigger information meets a trigger condition;
[0007] if it is determined that the trigger information meets the trigger condition, sending a transmission signal and receiving a reference signal, wherein the reference signal comprises a reflection signal of the transmission signal, the transmission signal comprises an ultrasonic signal, and the reference signal comprises an ultrasonic signal;
[0008] generating a calibration signal according to the reference signal.
[0009] In a possible implementation, the method further comprises:
[0010] The trigger information comprises a holding pitch angle and a holding roll angle, and the trigger condition comprises that the holding pitch angle is less than a first pitch threshold value and greater than a second pitch threshold value, and the holding roll angle is less than a first roll threshold value and greater than a second roll threshold value.
[0011] In a possible implementation, the method further comprises that the trigger information comprises one or any combination of a display screen direction, a motion pitch angle, a motion roll angle and a motion yaw angle.
[0012] When the trigger information comprises the display screen direction, the trigger condition comprises that the display screen direction is upward.
[0013] When the trigger information comprises the motion pitch angle, the trigger condition comprises that the motion pitch angle is greater than a third pitch threshold value.
[0014] When the triggering condition comprises the motion roll angle, the triggering condition comprises that the motion roll angle is less than a third roll threshold value.
[0015] When the triggering condition comprises the motion yaw angle, the triggering condition comprises that the motion yaw angle is greater than a yaw threshold value.
[0016] In a possible implementation, the triggering information comprises an ambient light report value, and the triggering condition comprises that the ambient light report value is greater than an ambient light report threshold value.
[0017] In a possible implementation, the triggering information comprises a camera analysis result, and the triggering condition comprises that the camera analysis result is unobstructed.
[0018] In a possible implementation, the triggering information comprises a touch screen result, and the triggering condition comprises that the touch screen result is no touch point or the touch screen result is no change in a capacitance value.
[0019] In a possible implementation, the triggering information comprises a device unlocking result, and the triggering condition comprises that the unlocking result is unlocked.
[0020] In a possible implementation, the triggering information comprises a screen-on result, and the triggering condition comprises that the screen-on result is screen-on.
[0021] In a possible implementation, the method further comprises:
[0022] determining whether the calibration time interval is greater than an interval threshold value, the calibration time interval comprising a time interval between a current calibration time point and a last calibration time point;
[0023] If it is determined that the calibration time interval is greater than the interval threshold value, the method further comprises:
[0024] In a possible implementation, the method further comprises:
[0025] performing pulse compression processing on the received multiple frames of reference signals respectively to generate multiple frames of cross-correlation frequency domains, each frame of cross-correlation frequency domain comprising a group of sample arrays;
[0026] subtracting adjacent two groups of sample arrays in the multiple groups of sample arrays to generate multiple frames of difference values;
[0027] generating a difference variance according to the multiple frames of difference values;
[0028] determining whether the difference variance is less than a variance threshold value;
[0029] If it is determined that the difference variance is less than the variance threshold value, any one frame of difference value in the multiple frames of difference values is taken as a calibration signal.
[0030] In a possible implementation, the method further includes:
[0031] down-converting the reference signal to generate a complex baseband signal;
[0032] performing a fast Fourier transform on the complex baseband signal to generate a frequency domain signal;
[0033] obtaining a conjugate inverted signal of the transmission signal;
[0034] generating a cross-correlation frequency domain according to the frequency domain signal and the conjugate inverted signal.
[0035] In a possible implementation, the method further includes:
[0036] sending the transmission signal at a preset time interval.
[0037] In a second aspect, an embodiment of the present application provides an electronic device, which includes:
[0038] a display screen, one or more processors, a memory, a plurality of application programs, and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the following steps:
[0039] obtaining trigger information;
[0040] determining whether the trigger information satisfies a trigger condition;
[0041] if it is determined that the trigger information satisfies the trigger condition, sending a transmission signal and receiving a reference signal, wherein the reference signal includes a reflection signal of the transmission signal, the transmission signal includes an ultrasonic signal, and the reference signal includes the ultrasonic signal;
[0042] generating a calibration signal according to the reference signal.
[0043] In an optional implementation, the instructions, when executed by the device, cause the device to specifically perform the following steps:
[0044] determining whether a calibration time interval is greater than an interval threshold, the calibration time interval including a time interval between a current calibration time point and a last calibration time point;
[0045] if it is determined that the calibration time interval is greater than the interval threshold, continuing to perform the steps of sending the transmission signal and receiving the reference signal.
[0046] In an optional implementation, the instructions, when executed by the device, cause the device to specifically perform the following steps:
[0047] The received multiple frames of reference signals are respectively subjected to pulse compression processing to generate multiple frames of cross-correlation frequency domains, each frame of cross-correlation frequency domain including a group of sample arrays;
[0048] The adjacent two groups of sample arrays in the multiple groups of sample arrays are subtracted to generate multiple frames of difference values;
[0049] The difference variance is generated according to the multiple frames of difference values;
[0050] It is judged whether the difference variance is less than a variance threshold value;
[0051] If it is judged that the difference variance is less than the variance threshold value, any one frame of difference value in the multiple frames of difference values is taken as a calibration signal.
[0052] In an optional implementation, when the instructions are executed by the device, the device specifically performs the following steps:
[0053] The reference signal is subjected to down-conversion processing to generate a complex baseband signal;
[0054] The complex baseband signal is subjected to fast Fourier transform to generate a frequency domain signal;
[0055] The conjugate inversion signal of the transmission signal is acquired;
[0056] The cross-correlation frequency domain is generated according to the frequency domain signal and the conjugate inversion signal.
[0057] In an optional implementation, when the instructions are executed by the device, the device specifically performs the following steps:
[0058] The transmission signal is sent according to a preset time interval.
[0059] In a third aspect, an embodiment of the present application provides a computer storage medium applied to an electronic device, the computer storage medium is used for program code executed by the device, and the program code includes instructions for executing the method in the first aspect or any possible implementation manner of the first aspect.
[0060] In a fourth aspect, an embodiment of the present application provides a computer program product containing instructions, when the computer program product is run on a computer or any at least one processor, the computer is used for executing the instructions of the method in the first aspect or any possible implementation manner of the first aspect.
[0061] In the scheme of the embodiment of the present application, the trigger information is acquired, it is judged whether the trigger information satisfies the trigger condition, if it is judged that the trigger information satisfies the trigger condition, the emission signal is sent and the reference signal is received, the emission signal includes the ultrasonic signal, and the reference signal includes the ultrasonic signal; the calibration signal is generated according to the reference signal, which can ensure that the calibration signal is generated when the electronic device is in the unobstructed state, ensuring the accuracy of the calibration signal, and further improving the accuracy of the result of the anti-mis-touch algorithm. BRIEF DESCRIPTION OF DRAWINGS
[0062] Figure 1 A structural schematic diagram of an electronic device is provided for the embodiment of the present application.
[0063] Figure 2 A system architecture diagram of an electronic device is provided for the embodiment of the present application.
[0064] Figure 3 A flowchart of a calibration signal generation method is provided for the embodiment of the present application.
[0065] Figure 4 A flowchart of generating cross-correlation frequency domain is provided for the embodiment of the present application.
[0066] Figure 5 A frequency domain diagram of a single frame cross-correlation frequency domain with a sample point number of 960 is provided for the embodiment of the present application.
[0067] Figure 6 A frequency domain diagram when the electronic device is in the obstructed state is provided for the embodiment of the present application.
[0068] Figure 7 A frequency domain diagram when the electronic device is in the unobstructed state is provided for the embodiment of the present application.
[0069] Figure 8 A flowchart of another calibration signal generation method is provided for the embodiment of the present application.
[0070] Figure 9 A schematic diagram of the holding angle of an electronic device is provided for the embodiment of the present application.
[0071] Figure 10 A structural schematic diagram of a calibration signal generation device is provided for the embodiment of the present application. DETAILED DESCRIPTION
[0072] In order to better understand the technical solutions of the present application, the embodiments of the present application are described in detail below with reference to the drawings.
[0073] It should be understood that the term "and / or" used herein is merely an association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A existing alone, A and B existing together, and B existing alone. In addition, the character " / " herein generally represents an "or" relationship between the front and rear associated objects.
[0074] It should be understood that although the terms first, second, etc. can be used in embodiments of the present application to describe certain threshold values, these threshold values should not be limited to these terms. These terms are only used to distinguish the threshold values from each other. For example, the first threshold value can also be referred to as the second threshold value, and similarly, the second threshold value can also be referred to as the first threshold value, without departing from the scope of embodiments of the present application.
[0075] The "anti-mis-touch mode" is a mode adopted to prevent the functions such as touch display screen, unlocking or application program of the electronic device from being triggered by mistake during use. The "anti-mis-touch mode" of the electronic device can be applied in a call scenario, a low-power always-on scenario and a pocket mode scenario. The call scenario, the low-power always-on scenario and the pocket mode scenario will be introduced respectively as follows.
[0076] Call scenario: Taking the electronic device as a mobile phone for example, when the user uses the mobile phone to answer a call, the user's skin may contact the function keys on the touch display screen of the mobile phone due to the failure of the touch display screen to turn off in time, which may cause the problem of mistakenly hanging up the call, resulting in a poor user experience. In the related art, an optical proximity sensor can be used to detect the proximity distance between the mobile phone and the face, and when the detected proximity distance is less than a certain threshold, the touch display screen is controlled to turn off to prevent mis-triggering, thereby greatly improving the user experience.
[0077] Low-power always-on scenario: Taking the electronic device as a mobile phone for example, when the touch display screen of the mobile phone is on, the user's skin may contact the function keys on the touch display screen, which may cause the problem of mistakenly dialing a call or opening unnecessary application programs, consuming the power of the mobile phone and increasing the power consumption of the mobile phone. In the related art, the emitting part of the optical proximity sensor arranged above the mobile phone emits pulsed light, and when there is no obstacle in the close range, the pulsed light is not reflected, so if the receiving part of the optical proximity sensor does not receive the reflected light signal, the touch display screen of the mobile phone works normally. When there is an obstacle in the close range, the pulsed light emitted by the emitting part is reflected, and the receiving part receives the reflected light signal, indicating that there is an object in front of the mobile phone, and the mobile phone will close the touch function, that is, it will not respond to the functional instructions such as unlocking, always-on display (AOD), face recognition, etc., thereby reducing the power consumption and preventing the mobile phone from being triggered by mistake.
[0078] Pocket mode scenario: taking a mobile phone as an example, when the mobile phone is placed in a backpack or a pocket, the functional buttons displayed on the touch display screen are mistakenly triggered or the mobile phone is mistakenly unlocked due to capacitive factors such as skin, which brings public opinion and risk of returning the machine. In the related art, when the touch display screen of the mobile phone is mistakenly triggered and lights up, the optical proximity sensor will immediately detect the surrounding environment. If it is found that there are objects around, it is considered that the mobile phone is still in the pocket or backpack, and the touch display screen will be controlled to turn off, and the touch function will be turned off, thereby minimizing the probability of mistaken triggering.
[0079] The anti-mistaken triggering function can be triggered by a capacitive effect detection mode based on a touch panel (TP). In the related art, there are two capacitive effect detection modes based on the TP. The two capacitive effect detection modes based on the TP will be briefly introduced below.
[0080] The first detection mode: when an object moves towards the electronic device, whether the object is a conductor or not, due to the proximity of the object, the dielectric constant of the capacitor will change, thereby changing the capacitance, and then determining whether there is an object blocking. Specifically, if the capacitance changes, it indicates that there is an object approaching, and the anti-mistaken triggering function is triggered; if the capacitance does not change, it indicates that there is no object approaching, and the anti-mistaken triggering function is not triggered.
[0081] The second detection mode: detecting whether there is a touch point on the touch display screen. If a touch point is detected on the touch display screen, it indicates that there is an object blocking in front of the touch display screen, and the anti-mistaken triggering function is triggered; if no touch point is detected on the touch display screen, it indicates that there is no object blocking in front of the touch display screen, and the anti-mistaken triggering function is not triggered.
[0082] However, the detection distance of the capacitive effect detection mode based on the TP is relatively close, that is, the capacitance will only change when the object is close enough to the touch display screen, and the algorithm complexity of this detection mode is high, the operation time is long, and the timeliness is poor, thereby resulting in a low accuracy rate of triggering the anti-mistaken triggering function.
[0083] With the further improvement of the demand for full-screen mobile phones, reducing the front opening can effectively improve the screen ratio and improve the dustproof and waterproof performance. The current optical proximity sensor needs to be opened on the front of the touch display screen, and needs to be installed with optical devices, which will occupy the space at the top of the mobile phone, and cannot realize the planning demand of full-screen; moreover, the optical proximity sensor needs to meet the requirements of light emitting hole, light transmittance and silicone material performance, therefore, the cost is high; and in strong light and water mist state, the optical proximity sensor is easy to fail. Therefore, the "top-out proximity sensor" is proposed to replace the optical proximity sensor, but the "top-out proximity sensor" is prone to false alarm problems, and the device cost and failure feedback ratio (FFR) are high. In order to solve the false alarm problem of the "top-out optical proximity sensor", a "ultrasonic and optical fusion proximity detection solution" is proposed, which can meet the anti-mis-touch demand in the call scene, but cannot meet the anti-mis-touch demand in the pocket mode scene and the low-power always-on scene. Further, an ultrasonic anti-mis-touch algorithm is proposed, which specifically detects whether the mobile terminal is blocked by intermittent ultrasonic waves to determine whether to start the anti-mis-touch function, which can solve the low-power always-on requirement of ultrasonic waves, so as to realize the front non-hole and the reduction of the top space.
[0084] In the process of using the ultrasonic anti-mis-touch algorithm, if the state of the mobile phone changes (for example: installing a mobile phone shell for the mobile phone or replacing a mobile phone shell for the mobile phone), when the ultrasonic wave signal is transmitted, the algorithm result will be abnormal, resulting in false alarm of the proximity state or false alarm of the far away state. For example, the result of the ultrasonic anti-mis-touch algorithm is the object proximity state, then the mobile phone touch display screen is off, does not display the fingerprint icon and closes the touch function, while the actual situation is that the received ultrasonic wave signal is inaccurate due to the replacement of the mobile phone shell, at this time there is no object proximity. At present, the accuracy of the ultrasonic anti-mis-touch algorithm in triggering the anti-mis-touch mode is low. In order to solve the above problems, the embodiment of the present application provides a method for generating a calibration signal, so as to calibrate the reference signal of the ultrasonic anti-mis-touch algorithm, the reference signal can be used to judge whether the electronic equipment is in the shielding state, and the calibration of the reference signal can improve the accuracy of the reference signal, thereby improving the accuracy of triggering the anti-mis-touch mode.
[0085] The method for generating a calibration signal provided by the embodiment of the present application can be applied to an electronic device with a display screen, including but not limited to a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a wearable device, a head-mounted display, a reader device, a portable music player, a portable game console, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a phablet, a personal digital assistant (PDA), an augmented reality (AR) device, and a virtual reality (VR) device. Taking the mobile phone as an example, Figure 1 A structural schematic diagram of an electronic device is provided in the embodiment of the present application. As shown in the figure, the electronic device includes a main microphone 150, a secondary microphone 160, a power key 210, a receiver 140, a front camera 190a, a fingerprint key 220, and a display screen 170. Figure 1
[0086] The secondary microphone 160 is located at the top of the electronic device, and the main microphone 150 is located at the bottom of the electronic device. In order to achieve an aesthetic effect of the electronic device, the secondary microphone 160 and the main microphone 150 can be symmetrically arranged at the top and bottom of the electronic device in the shape of a small round hole. The electronic device is provided with two microphones, and the double-microphone noise reduction principle is used to maintain stable communication. The main microphone 150 is used to collect the sound of the communication, and the secondary microphone 160 is used to collect the noise around the communication environment. The sound of the communication and the noise around the communication environment are processed in opposite directions, so as to achieve the purpose of noise reduction. In the embodiment of the present application, as an optional solution, the secondary microphone 160 is also used to receive the reflected reference signal.
[0087] As shown in the figure, Figure 1 The power key 210 is located on the side of the electronic device. As an optional solution, the power key 210 is arranged on the side of the electronic device in the form of a protruding button, which is convenient for the user to hold and operate, does not need to occupy the front area of the display screen 170, and can further improve the screen-to-body ratio. The power key 210 can be used to control the electronic device, including screen-off, screen-on, opening, or closing functions. The specific functions can be set according to the user's needs. For example, when the electronic device is in an open state, the user long-presses the power key 210, and the electronic device enters a closed state; when the electronic device is in a screen-off state, the user short-presses the power key 210, and the electronic device turns on the screen.
[0088] The receiver 140, also referred to as a "earpiece", is located on the top of the electronic device and is used to convert an audio electrical signal into a sound signal and emit the emitted signal. When the electronic device answers a phone call or a voice message, the receiver 140 can be held close to the user's ear to answer the sound.
[0089] The front camera 190a is located on the top of the display screen 170 of the electronic device and is arranged adjacent to the receiver 140. The front camera 190a can be used to capture images or videos.
[0090] The fingerprint key 220 is used to collect a fingerprint. The electronic device can use the collected fingerprint characteristics to realize functions such as fingerprint unlocking, application lock access, fingerprint photographing, and fingerprint answering a call. As an optional solution, the fingerprint key 220 is arranged in the form of a recessed button on the back of the electronic device. This design not only facilitates user operation when holding the electronic device, but also does not need to occupy the front area of the display screen 170, thereby further improving the screen-to-body ratio.
[0091] The display screen 170 is located on the front of the electronic device and is used to display images or videos and receive touch instructions input by a user. The touch instructions include single-click, double-click, press, or swipe. The display screen 170 can be a curved screen with a curved side or a flat screen without a curved side. The display screen 170 includes a display panel, which includes 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 Mini LED, a Micro LED, a Micro-OLED, or a quantum dot light emitting diode (QLED). As an optional solution, the display screen 170 includes a touch display screen.
[0092] Figure 2 A system architecture diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 1. Figure 2As shown, the electronic device includes a memory 100, a processor 110, a communication module 120, a receiver 140, a primary microphone 150, a secondary microphone 160, a display screen 170, a sensor module 180, a camera 190, and an interaction module 200. Among them, the sensor module 180 includes one or any combination of an acceleration sensor 180a, a gyroscope sensor 180b, an ambient light sensor 180c, and a magnetometer sensor 180d, the camera 190 includes a front camera 190a and a rear camera 190b, and the communication module 120 includes a mobile communication module 120a and / or a wireless communication module 120b. The memory 100, the processor 110, and the interaction module 200 can communicate with each other through internal connection paths to transfer control and / or data signals. The memory 100 is configured to store a computer program, and the processor 110 is configured to call and run the computer program from the memory 100.
[0093] The memory 100 can be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), or other types of dynamic storage devices that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, and the like.
[0094] The processor 110 can include one or more processing units, for example: the processor 110 can include one or more of an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, a neural-network processing unit (NPU), or any combination thereof. Different processing units can be independent devices or integrated in one or more processors.
[0095] In the embodiments of the application, the processor 110 and the memory 100 can be combined into one processing device, and more commonly, they are independent components. The processor 110 is configured to execute program codes stored in the memory 100 to implement the above functions. In specific implementation, the memory 100 can be integrated in the processor 110, or independent of the processor 110.
[0096] In some embodiments, the processor 110 can include one or more interfaces. The interface can include one or any combination of 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 subscriber identity module (SIM) interface, and a universal serial bus (USB) interface.
[0097] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation on the system architecture of the electronic device. In other embodiments, the electronic device can also use different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
[0098] The communication module is connected with the processor 110, and the communication module is configured to transmit radio frequency signals.
[0099] The mobile communication module 120a can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device. The mobile communication module 120a can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. Further, the electronic device can further include a first antenna 130. The mobile communication module 120a can receive electromagnetic waves by the first antenna 130, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed signals to the modem processor for demodulation. The mobile communication module 120a can also amplify the signals modulated by the modem processor, and radiate the signals as electromagnetic waves through the first antenna 130. In some embodiments, at least part of the functional modules of the mobile communication module 120a can be arranged in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 120a and at least part of the modules of the processor 110 can be arranged in the same device.
[0100] The wireless communication module 120b can provide a solution for wireless communication including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device. The wireless communication module 120b can be one or more devices integrated with at least one communication processing module. Further, the electronic device can further include a second antenna 131. The wireless communication module 120b receives electromagnetic waves via the second antenna 131, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 120b can also receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on the signals, and radiate the signals as electromagnetic waves through the second antenna 131.
[0101] In the embodiments of the present application, the first antenna 130 is coupled with the mobile communication module 120a, and the second antenna 131 is coupled with the wireless communication module 120b, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TDSCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), Bei Dou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0102] The receiver 140 is connected with the processor 110, and the receiver 140 is configured to convert an audio electrical signal into an acoustic signal and emit an ultrasonic signal.
[0103] The main microphone 150 is connected with the processor 110, and the main microphone 150 is configured to collect a voice signal of a call and convert the voice signal into an electrical signal. When a user needs to make a call, send a voice signal, or trigger the electronic device to perform a certain function through a voice assistant, the user can approach the main microphone and make a sound for the main microphone 150 to collect a voice signal; the main microphone 150 is also configured to emit an emission signal, and the emission signal includes an ultrasonic signal.
[0104] The secondary microphone 160 is connected to the processor 110, and is used to collect noise around the call environment. The electronic device includes two microphones, the primary microphone 150 and the secondary microphone 160, so that sound signals can be collected and noise reduction can be achieved. In other embodiments, the electronic device can also be provided with three or four microphones to achieve the functions of collecting sound signals, noise reduction, identifying sound sources, and achieving directional recording. The secondary microphone 160 is also used to receive a reference signal, which is a reflected signal of the transmitted signal. The reference signal includes an ultrasonic signal.
[0105] The display screen 170 is connected to the processor 110, and is used to receive touch instructions input by a user, and send the touch instructions to the processor 110. The processor 110 retrieves a related interface according to the touch instructions and sends the related interface to the display screen 170. The display screen 170 displays the related interface.
[0106] The sensor module 180 is connected to the processor 110, and is used to collect state information of various sensors for processing by the processor 110. The acceleration sensor 180a is used to detect the gravity direction of the electronic device. The acceleration sensor 180a can output the holding pitch and roll of the electronic device to the processor 110. Specifically, the acceleration sensor 180a detects the small deformation caused by inertial force through micro-electro-mechanical system (MEMS) technology, and does not distinguish between gravitational acceleration and external acceleration during detection. Therefore, when the electronic device is moving at a variable speed in a three-dimensional space, the pitch and roll output by the acceleration sensor 180a to the processor 110 are not accurate enough, and the processor 110 needs to combine the first angular velocity around the x-axis and the second angular velocity around the y-axis output by the gyroscope sensor 180b to perform weighted calculation to obtain accurate pitch and roll. The gyroscope sensor 180b can be used to determine the motion posture of the electronic device. Specifically, the gyroscope sensor 180b outputs the first angular velocity around the x-axis and the second angular velocity around the y-axis of the electronic device to the processor 110. The ambient light sensor 180c is used to sense the ambient light brightness and send it to the processor 110. The magnetometer sensor 180d is used to locate the orientation of the electronic device. Specifically, the magnetometer sensor 180d outputs the included angle of the electronic device in the east, south, west, and north directions to the processor 110. The processor 110 calculates the direction of the display screen 170 through a fusion algorithm according to the holding pitch, holding roll, first angular velocity around the x-axis of the electronic device, second angular velocity around the y-axis of the electronic device, and included angle of the electronic device in the east, south, west, and north directions.
[0107] The camera 190 is connected with the processor 110, and is configured to capture pictures or videos. The camera 190 includes a front camera 190a and a rear camera 190b. Specifically, an object projects an optical image to a photosensitive element through a lens. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to an image signal processor (ISP) to convert the electrical signal into a digital image signal. The ISP outputs the digital image signal to a digital signal processor (DSP) to convert the digital image signal into an image signal in a standard RGB or YUV format.
[0108] The interaction module 200 is connected with the processor 110, and is configured to receive a long press operation or a short press operation of a power key by a user. The interaction module 200 is also configured to receive a fingerprint input by the user through the fingerprint key 220, and send the fingerprint to the processor 110 for processing by the processor 110.
[0109] It can be understood that, Figure 2 The system architecture diagram shown does not constitute a specific limitation on the system architecture of the electronic device. In other embodiments, the system architecture of the electronic device can include more or fewer components than those shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0110] Based on the system architecture of the electronic device described above, the embodiment of the present application further provides a method for generating a calibration signal. Figure 3 A flowchart of a method for generating a calibration signal provided by the embodiment of the present application is shown in Figure 3 The method includes the following steps:
[0111] In step 102, trigger information is acquired.
[0112] In the embodiment of the present application, each step is executed by the electronic device.
[0113] In the embodiment of the present application, the trigger information includes one or any combination of the following information of the electronic device: the direction of the display screen, the motion pitch angle, the motion roll angle, the motion yaw angle, the holding pitch angle, the holding roll angle, the ambient light report value, the camera analysis result, the touch screen result, the device unlocking result, and the screen-on result.
[0114] In step 104, it is determined whether the trigger information meets a trigger condition. If yes, step 106 is executed; if no, the flow ends.
[0115] As an optional solution, when the trigger information includes the holding pitch angle and the holding roll angle, the trigger condition includes that the holding pitch angle is less than a first pitch threshold value and greater than a second pitch threshold value, and the holding roll angle is less than a first roll threshold value and greater than a second roll threshold value.
[0116] In the embodiment of the present application, when the holding pitch angle is less than the first pitch threshold value and greater than the second pitch threshold value, and the holding roll angle is less than the first roll threshold value and greater than the second roll threshold value, it indicates that the electronic device is held by the user at this time, and the electronic device is currently in an unobstructed state.
[0117] As another optional solution, the trigger information includes one or any combination of the direction of the display screen, the motion pitch angle, the motion roll angle and the motion yaw angle. When the trigger information includes the direction of the display screen, the trigger condition includes that the direction of the display screen is upward. When the trigger information includes the motion pitch angle, the trigger condition includes that the motion pitch angle is greater than a third pitch threshold value. When the trigger information includes the motion roll angle, the trigger condition includes that the motion roll angle is less than a third roll threshold value. When the trigger information includes the motion yaw angle, the trigger condition includes that the motion yaw angle is greater than a yaw threshold value.
[0118] In the embodiment of the present application, when one or any combination of the direction of the display screen is upward, the motion pitch angle is greater than the third pitch threshold value, the motion roll angle is less than the third roll threshold value, and the motion yaw angle is greater than the yaw threshold value is satisfied, it indicates that the electronic device is picked up, and the electronic device is in an unobstructed state at this time.
[0119] As another optional solution, when the trigger information includes the ambient light report value, the trigger condition includes that the ambient light report value is greater than an ambient light report threshold value.
[0120] In the embodiment of the present application, when the ambient light report value is greater than the ambient light report threshold value, it indicates that the electronic device is currently in an unobstructed state.
[0121] As another optional solution, when the trigger information includes the camera analysis result, the trigger condition includes that the camera analysis result is unobstructed.
[0122] As another optional solution, when the trigger information includes the touch screen result, the trigger condition includes that the touch screen result is no touch point or the touch screen result is no change in the capacitance value.
[0123] In the embodiment of the present application, when the touch screen result is no touch point or the touch screen result is no change in the capacitance value, it indicates that there is currently no object approaching the electronic device and no user is touching the display screen of the electronic device, and the electronic device is currently in an unobstructed state.
[0124] As another alternative, when the trigger information includes the device unlocking result, the trigger condition includes that the device unlocking result is unlocked.
[0125] In the embodiment of the present application, when the device unlocking result is unlocked, it indicates that the electronic device is currently in an unobstructed state.
[0126] As another alternative, when the trigger information includes the screen-on result, the trigger condition includes that the screen-on result is screen-on.
[0127] In the embodiment of the present application, the display screen can be lit in one of the following ways: double-clicking the screen, the power button, or lifting the hand.
[0128] In the embodiment of the present application, the first pitch threshold, the second pitch threshold, the first roll threshold, the second roll threshold, the third pitch threshold, the third roll threshold, the yaw threshold, and the ambient light threshold are obtained based on user behavior analysis in big data. As an alternative, the ambient light threshold is 50 lux.
[0129] In this step, if it is determined that the trigger information meets the trigger condition, it indicates that the electronic device is currently in an unobstructed state and is suitable for generating a calibration signal, and the process continues to step 106; if it is determined that the trigger information does not meet the trigger condition, it indicates that the electronic device is currently in an obstructed state with a high probability and is not suitable for generating a calibration signal, and the process ends.
[0130] In the embodiment of the present application, calibration is performed when the electronic device is in a state that meets the trigger condition, which can ensure the accuracy of calibration and thus improve the success rate of false touch prevention.
[0131] Step 106, transmitting a transmission signal and receiving a reference signal, wherein the reference signal includes a reflection signal of the transmission signal.
[0132] In the embodiment of the present application, the transmission signal includes a signal transmitted when the electronic device is in an unobstructed state. Transmitting the transmission signal specifically includes transmitting the transmission signal at a preset time interval, wherein the preset time interval can be set according to actual conditions. As an alternative, the preset time interval is 150 milliseconds.
[0133] In the embodiment of the present application, the transmission signal includes an ultrasonic signal, and the ultrasonic signal includes a single-frequency continuous wave (CW), a linear frequency modulation (LFM) or a Zadoff-Chu sequence. By performing a frequency response test on the electronic device, a transmission signal with a specific frequency band is selected for transmission, and the specific frequency band includes a frequency band with a relatively high electro-acoustic conversion efficiency and a minimum noise interference on audio. The electro-acoustic conversion efficiency includes the ratio of the sound wave energy emitted by the receiver to the input electrical energy. The higher the sensitivity of the receiver, the higher the electro-acoustic conversion efficiency, and the stronger the response capability and resolution of the ultrasonic signal.
[0134] In the embodiment of the present application, the reference signal includes an ultrasonic signal received by the auxiliary microphone.
[0135] Taking a mobile phone as an example, the receiver transmits a transmission signal, the transmission signal is reflected, and a reference signal is reflected back. The auxiliary microphone located at the top of the mobile phone receives the reference signal. The reflection of the transmission signal back to the reference signal includes two reflection scenarios: in the first scenario, there is an object at a relatively short distance from the mobile phone. The receiver transmits a transmission signal, the transmission signal can hit the object at a relatively short distance from the mobile phone and then reflect a reference signal back to the auxiliary microphone. In the second scenario, the surrounding of the mobile phone is open, that is, there is no object at a relatively short distance from the mobile phone. The receiver transmits a transmission signal, the transmission signal is reflected by the mobile phone shell and / or the acoustic cavity, and a reference signal is reflected back to the auxiliary microphone. Since sound is a sound wave generated by object vibration, even if there is no obstruction outside the mobile phone, the transmission signal transmitted by the receiver will be transmitted from the outside of the mobile phone to the auxiliary microphone.
[0136] Step 108, generating a calibration signal according to the reference signal.
[0137] Specifically, the calibration signal is generated according to the received multiple frames of reference signals.
[0138] In the embodiment of the present application, step 108 specifically includes:
[0139] Step 1081, performing pulse compression processing on the received multiple frames of reference signals respectively to generate multiple frames of cross-correlation frequency domains, each frame of cross-correlation frequency domain includes a group of sample arrays, and the group of sample arrays includes multiple sample points.
[0140] In the embodiment of the present application, the transmission signal from the receiver to the auxiliary microphone will propagate through multiple paths, and the signals on each path are time-delayed versions of the transmission signal. The reference signal received at the auxiliary microphone is a linear superposition of the signals on each path. If there is an obstacle around the electronic device, there will be a relatively obvious reflection path.
[0141] Figure 4 The flowchart for generating the cross-correlation frequency domain provided by the embodiment of the present application is shown in FIG. 8, and specifically includes the following steps. Figure 4
[0142] Step 3002, down-conversion processing is performed on the reference signal to generate a complex baseband signal.
[0143] Specifically, the digitized reference signal is divided into a first signal and a second signal by a serial-to-parallel conversion circuit, where the first signal is the same as the second signal; the first signal is multiplied by a cosine wave cos(2πf c t) to generate a real part of the complex baseband signal, where f c is a carrier frequency, and t is a preset time interval; the second signal is multiplied by a sine wave -sin(2πf c t) to generate an imaginary part of the complex baseband signal; and the generated real part and imaginary part are combined to generate the complex baseband signal.
[0144] Step 3004, Fast Fourier Transform (FFT) is performed on the complex baseband signal to generate a frequency domain signal.
[0145] In the embodiment of the present application, when the FFT is performed on the complex baseband signal, the number of sampling points in a sampling array is first set. As an optional solution, the number of sampling points is set to 960. As another optional solution, the number of sampling points is set to 1024.
[0146] Step 3006, a conjugate inverse signal of the transmit signal is acquired.
[0147] In the embodiment of the present application, taking the ZC sequence as an example, the conjugate inverse signal of the transmit signal is
[0148] Step 3008, a cross-correlation frequency domain is generated according to the frequency domain signal and the conjugate inverse signal.
[0149] Specifically, the frequency domain signal is multiplied by the conjugate inverse signal to generate a convolution of a time domain signal; and Inverse Fast Fourier Transform (IFFT) is performed on the signal to generate the cross-correlation frequency domain. Figure 5 The frequency domain graph of a single frame cross-correlation frequency domain provided by the embodiment of the present application is shown in FIG. 9, taking the number of sampling points as 960 as an example. Figure 5 As shown in the figure, the x-axis of the frequency domain graph is a sample array, and the sample array includes 960 sample points; and the y-axis of the frequency domain graph is the absolute value of the cross-correlation. The frequency domain graph includes a main peak and a plurality of side lobes on both sides of the main peak. The position of the main peak is the relative time of arrival of the direct wave of the cross-correlation, and the main peak is the point with the maximum absolute value of the cross-correlation, that is, the point with the maximum absolute value of the cross-correlation is the 504th sample point, and the corresponding absolute value of the cross-correlation is 5567.3362587164. The absolute value of the cross-correlation of each side lobe in the plurality of side lobes is different, for example, the side lobe is the 550th sample point, and the corresponding absolute value of the cross-correlation is 1200.
[0150] In the embodiment of the application, the ZC sequence has the best cyclic autocorrelation characteristic, so when the ZC sequence is transmitted according to the time interval, the received pulse can be compressed into a very narrow time period by multiplying the frequency domain signal and the conjugate inversion signal of the ZC sequence.
[0151] Step 1082, subtracting adjacent two sample arrays in the plurality of sample arrays to generate a plurality of frames of difference values.
[0152] For example, there are five sample arrays, which are array 1, array 2, array 3, array 4 and array 5. Subtracting adjacent two sample arrays, that is, subtracting array 1 from array 2 to generate the first frame of difference values; subtracting array 2 from array 3 to generate the second frame of difference values; subtracting array 3 from array 4 to generate the third frame of difference values; subtracting array 4 from array 5 to generate the fourth frame of difference values, a total of four frames of difference values are generated.
[0153] Step 1083, generating a difference variance according to the plurality of frames of difference values.
[0154] In the embodiment of the application, each frame of difference values includes a plurality of sample points and a difference value corresponding to each sample point; a difference average value is generated according to the difference value corresponding to each sample point; and a difference variance is generated by calculating the difference value corresponding to each sample point and the difference average value through the variance formula s 2 = [(M-x1) 2 +(M-x2) 2 +(M-x3) 2 +...+(M-x n ) 2 ] / n. Wherein s2 is the difference variance, M is the difference average value, x n is the difference value corresponding to the nth sample point, and n is the number of sample points.
[0155] Since there are a plurality of frames of difference values, a plurality of difference variances are generated by calculating each frame of difference values.
[0156] Step 1084, judging whether the difference variance is less than a variance threshold value, if yes, executing step 1085; if no, the process is ended.
[0157] In this embodiment of the invention, the variance threshold can be set according to actual conditions. As an option, the variance threshold value is 40. As another option, the variance threshold value is 50.
[0158] In this embodiment of the invention, since there are multiple difference variances, determining whether a difference variance is less than a variance threshold specifically includes determining whether a specified number of difference variances are all less than the variance threshold. If yes, step 1085 is executed; otherwise, the process ends. The specified number can be set and adjusted according to actual conditions. As an optional scheme, the specified number is 1, that is: if any difference variance is determined to be less than the variance threshold, step 1085 is executed; if all difference variances are determined to be greater than or equal to the variance threshold, the process ends. In this embodiment of the invention, if the obtained trigger information of the electronic device meets the trigger condition, it indicates that the electronic device is likely in an unobstructed state, but the possibility of it still being in an obstructed state cannot be ruled out. Therefore, it is necessary to determine whether the difference variance is less than the variance threshold to rule out the possibility of it still being in an obstructed state. If the specified number of differential variances is less than the variance threshold, it indicates that the electronic device is in an unobstructed state, and step 1085 continues; if the specified number of differential variances is greater than or equal to the variance threshold, it indicates that the electronic device is in an obstructed state. If calibration is started at this time, the obtained calibration signal will be inaccurate, which will increase the failure rate of the anti-accidental touch function, and the process will end.
[0159] It's worth noting that the magnitude of the difference variance can also be derived from frequency domain plot analysis; when the peak height is high, the difference variance is large. Taking a sampling point count of 960 as an example... Figure 6 This invention provides a frequency domain diagram of an electronic device in an obstructed state, as shown in the embodiment of the invention. Figure 6 As shown, the x-axis of this frequency domain plot represents the sample array, which includes 960 sample points; the y-axis represents the absolute value of the cross-correlation. Figure 6 As shown, the frequency domain plot includes a main peak and multiple side peaks on both sides of the main peak. The main peak is the point with the largest absolute cross-correlation value, specifically the 504th sampling point, with a corresponding absolute cross-correlation value of 26687.804962882827, meaning the height of the main peak is 26687.804962882827. The absolute cross-correlation value of each side peak is different. For example, the 550th sampling point has a corresponding absolute cross-correlation value of 6000, meaning the height of the side peak is 6000, which is 20687.804962882827 higher than the height of the main peak, a relatively large difference.
[0160] Taking a sampling point count of 960 as an example, Figure 7This invention provides a frequency domain diagram of an electronic device in an unobstructed state, as shown in the embodiment of the invention. Figure 7 As shown, the x-axis of this frequency domain plot represents the sample array, which includes 960 sample points; the y-axis represents the absolute value of the cross-correlation. Figure 7 As shown, the frequency domain plot includes a main peak and multiple side peaks on both sides of the main peak. The main peak is the point with the largest absolute cross-correlation value, that is, the point with the largest absolute cross-correlation value is the 504th sampling point, with a corresponding absolute cross-correlation value of 5567.3362587164, that is, the height of the main peak is 5567.3362587164. The absolute cross-correlation value of each side peak is different. For example, the side peak is the 550th sampling point, with a corresponding absolute cross-correlation value of 1200, that is, the height of the side peak is 1200, and the height difference between the side peak and the main peak is 4367.3362587164, which is relatively small.
[0161] In summary, through Figure 6 and Figure 7 The comparison shows that when the electronic device is in a blocked state, the main peak of the frequency domain plot is higher, that is, the absolute value of the largest cross-correlation is larger; and the height difference between the main peak and the side peak is larger.
[0162] Step 1085: Use any one of the frame difference values from the multiple frames as the calibration signal.
[0163] In this embodiment of the invention, since the variance is determined to be less than the variance threshold, it indicates that the difference between the differences in each frame among the multi-frame difference values is small. Therefore, any one frame of difference values among the multi-frame difference values can be used as a calibration signal to generate a new reference signal for application in the anti-mistouch function. As an optional approach, the difference value of the first frame can be used as the calibration signal.
[0164] In the technical solution of the calibration signal generation method provided in this embodiment of the invention, trigger information is obtained; it is determined whether the trigger information meets the trigger condition; if it is determined that the trigger information meets the trigger condition, a transmission signal is sent and a reference signal is received, wherein the transmission signal includes an ultrasonic signal and the reference signal includes an ultrasonic signal; and a calibration signal is generated based on the reference signal. This ensures that the calibration signal is generated when the electronic device is in an unobstructed state, thus ensuring the accuracy of the calibration signal and improving the accuracy of the results of the anti-accidental touch algorithm.
[0165] Figure 8 A flowchart illustrating another method for generating a calibration signal according to an embodiment of the present invention is shown below. Figure 8 As shown, the method includes:
[0166] Step 200: Perform a full system calibration on the electronic equipment.
[0167] In this embodiment of the invention, each step is performed by an electronic device.
[0168] In the embodiment of the present application, the electronic device can be placed in an empty box for whole machine calibration.
[0169] Specifically, the receiver of the electronic device sends a transmission signal, the transmission signal is reflected through the mobile phone shell and / or the sound cavity to form a reference signal, and the reference signal is received by the auxiliary microphone of the electronic device; the electronic device calculates the reference signal to generate a calibration signal.
[0170] In the embodiment of the present application, the electronic device is placed in an empty box, which can keep the surrounding of the electronic device empty, thereby shielding external interference and ensuring that the electronic device is in an unobstructed state.
[0171] Step 202, obtaining trigger information.
[0172] In the embodiment of the present application, the trigger information includes one or any combination of the direction of the display screen of the electronic device, the motion pitch angle, the motion roll angle, the motion yaw angle, the holding pitch angle, the holding roll angle, the ambient light report value, the camera analysis result, the touch screen result, the device unlocking result and the screen-on result.
[0173] In the embodiment of the present application, the magnetometer sensor can detect the first azimuth angle of the electronic device in the east direction, the second azimuth angle of the electronic device in the south direction, the third azimuth angle of the electronic device in the west direction and the fourth azimuth angle of the electronic device in the north direction, and send the first azimuth angle, the second azimuth angle, the third azimuth angle and the fourth azimuth angle to the processor. The acceleration sensor detects the initial pitch angle and the initial roll angle of the electronic device, and sends the initial pitch angle and the initial roll angle to the processor. The gyroscope sensor detects the first angular velocity around the x axis and the second angular velocity around the y axis of the electronic device, and sends the first angular velocity and the second angular velocity to the processor. The processor calculates the direction of the display screen according to the initial pitch angle, the initial roll angle, the first angular velocity, the second angular velocity, the first azimuth angle, the second azimuth angle, the third azimuth angle and the fourth azimuth angle through a fusion algorithm. The fusion algorithm includes Oculus fusion algorithm, complementary filtering algorithm or Automatic Heading Reference System (AHRS) algorithm.
[0174] In the embodiment of the present application, when a user holds the electronic device, the acceleration sensor detects an initial pitch angle and an initial roll angle of the electronic device and sends the initial pitch angle and the initial roll angle to the processor. The gyroscope sensor detects a first angular velocity around the x-axis and a second angular velocity around the y-axis of the electronic device and sends the first angular velocity and the second angular velocity to the processor. The processor assigns a first weight to the first angular velocity, a second weight to the second angular velocity, a third weight to the initial pitch angle, and a fourth weight to the initial roll angle. The processor multiplies the first weight by the first angular velocity to calculate a first multiplication result, multiplies the third weight by the initial pitch angle to calculate a second multiplication result, and adds the first multiplication result and the second multiplication result to calculate a holding pitch angle. The processor multiplies the second weight by the second angular velocity to calculate a third multiplication result, multiplies the fourth weight by the initial roll angle to calculate a fourth multiplication result, and adds the third multiplication result and the fourth multiplication result to calculate a holding roll angle, so that the processor obtains the holding pitch angle and the holding roll angle.
[0175] In the embodiment of the present application, when a user picks up the electronic device, the electronic device generates a motion, the acceleration sensor detects an initial pitch angle, an initial roll angle, and an initial yaw angle of the electronic device and sends the initial pitch angle, the initial roll angle, and the initial yaw angle to the processor. The gyroscope sensor detects a first angular velocity around the x-axis, a second angular velocity around the y-axis, and a third angular velocity around the z-axis of the electronic device and sends the first angular velocity, the second angular velocity, and the third angular velocity to the processor. The processor assigns a fifth weight to the first angular velocity, a sixth weight to the second angular velocity, a seventh weight to the third angular velocity, an eighth weight to the initial pitch angle, a ninth weight to the initial roll angle, and a tenth weight to the initial yaw angle. The processor multiplies the fifth weight by the first angular velocity to calculate a fifth multiplication result, multiplies the eighth weight by the initial pitch angle to calculate a sixth multiplication result, and adds the fifth multiplication result and the sixth multiplication result to calculate a motion pitch angle. The processor multiplies the sixth weight by the second angular velocity to calculate a seventh multiplication result, multiplies the ninth weight by the initial roll angle to calculate an eighth multiplication result, and adds the seventh multiplication result and the eighth multiplication result to calculate a motion roll angle. The processor multiplies the seventh weight by the third angular velocity to calculate a ninth multiplication result, multiplies the tenth weight by the initial yaw angle to calculate a tenth multiplication result, and adds the ninth multiplication result and the tenth multiplication result to calculate a motion yaw angle, so that the processor obtains the motion pitch angle, the motion roll angle, and the motion yaw angle.
[0176] In the embodiment of the present application, the environment sensor detects an ambient light report value and sends the ambient light report value to the processor, so that the processor obtains the ambient light report value.
[0177] In the embodiment of the present application, the camera shoots a picture and sends the shot picture to the processor; the processor generates a camera analysis result by identifying and calculating the picture through a picture identification algorithm. The camera analysis result includes occlusion or no occlusion. If the camera analysis result is occlusion, it indicates that the electronic device is in an occluded state; if the camera analysis result is no occlusion, it indicates that the electronic device is in a non-occluded state.
[0178] In the embodiment of the present application, if the user touches the display screen, the display screen will detect the corresponding touch point, the touch screen result is a touch point, and the display screen sends the touch screen result of the touch point to the processor so that the processor acquires the touch screen result. If the user does not touch the display screen, the touch screen result is no touch point, and the display screen sends the touch screen result of no touch point to the processor so that the processor acquires the touch screen result. As an optional solution, if an object is close to the display screen, the display screen will detect that the capacitance value changes, the touch screen result is that the capacitance value changes, and the display screen sends the touch screen result of the capacitance value change to the processor so that the processor acquires the touch screen result. If there is no object close to the display screen, the display screen will detect that the capacitance value does not change, the touch screen result is that the capacitance value does not change, and the display screen sends the touch screen result of the capacitance value change to the processor so that the processor acquires the touch screen result.
[0179] In the embodiment of the present application, the interaction module can receive the user inputted unlocking operation and send the unlocking operation to the processor; the processor generates an unlocking result according to the unlocking operation. The device unlocking result includes unlocked or not unlocked, and the unlocking includes one of fingerprint unlocking, face unlocking, pattern unlocking or password unlocking.
[0180] In the embodiment of the present application, the interaction module can receive the user inputted screen-on operation and send the screen-on operation to the processor; the processor generates a screen-on result according to the screen-on operation. The screen-on result includes screen-on or not screen-on, and the screen-on includes one of power key screen-on, double-click screen-on or hand-raising screen-on.
[0181] Step 204, determine whether the trigger information meets the trigger condition, if yes, execute step 206; if no, the flow ends.
[0182] In this embodiment of the invention, the triggering information and the triggering conditions correspond. For example: when the triggering information includes a grip pitch angle and a grip roll angle, the corresponding triggering conditions include a grip pitch angle less than a first pitch threshold and greater than a second pitch threshold, and a grip roll angle less than a first roll threshold and greater than a second roll threshold; when the triggering information includes the orientation of the display screen, the triggering condition includes the display screen facing upwards; when the triggering information includes a motion pitch angle, the triggering condition includes the motion pitch angle being greater than a third pitch threshold; when the triggering information includes a motion roll angle, the triggering condition includes the motion roll angle. The trigger condition is less than the third roll threshold; when the trigger information includes a motion yaw angle, the trigger condition includes a motion yaw angle greater than the yaw threshold; when the trigger information includes an ambient light alarm value, the corresponding trigger condition includes being greater than the ambient light alarm threshold; when the trigger information includes a camera analysis result, the corresponding trigger condition includes no obstruction; when the trigger information includes a touch screen result, the corresponding trigger condition includes no touch point or no change in capacitance value; when the trigger information includes a device unlock result, the corresponding trigger condition includes unlocked; when the trigger information includes a screen-on result, the corresponding trigger condition includes screen-on.
[0183] Figure 9 This is a schematic diagram of the grip angle of an electronic device provided in an embodiment of the present invention, as shown below. Figure 9 As shown, taking a mobile phone as an example, a coordinate system is established with the center point of the phone (with the screen facing upwards) as the origin. The x-axis is parallel to the plane of the screen, with the direction closer to the power button defined as the positive x-axis. The y-axis is parallel to the plane of the screen and perpendicular to the x-axis, with the direction closer to the receiver defined as the positive y-axis. The z-axis is perpendicular to both the x and y axes, with upwards defined as the positive z-axis. When the phone rotates around the x-axis, the rotation angle is the pitch angle, with counter-clockwise rotation defined as positive and clockwise rotation as negative. When the phone rotates around the y-axis, the rotation angle is the roll angle, with counter-clockwise rotation defined as negative and clockwise rotation as positive.
[0184] Specifically, the processor determines whether the grip pitch angle is less than the first pitch threshold and greater than the second pitch threshold, and whether the grip roll angle is less than the first roll threshold and greater than the second roll threshold. If it is determined that the grip pitch angle is less than the first pitch threshold and greater than the second pitch threshold, and the grip roll angle is less than the first roll threshold and greater than the second roll threshold, it indicates that the trigger information meets the trigger conditions.
[0185] For example, the first pitch threshold value is 60 degrees clockwise rotation around the x-axis, the second pitch threshold value is 10 degrees clockwise rotation around the x-axis, the first roll threshold value is 30 degrees counterclockwise rotation around the y-axis, and the second roll threshold value is 30 degrees clockwise rotation around the y-axis, i.e., the pitch angle value range includes -60 degrees to -10 degrees, and the roll angle value range includes -30 degrees to 30 degrees.
[0186] For example, the first pitch threshold value is 50 degrees clockwise rotation around the x-axis, the second pitch threshold value is 10 degrees clockwise rotation around the x-axis, the first roll threshold value is 30 degrees counterclockwise rotation around the y-axis, and the second roll threshold value is 30 degrees clockwise rotation around the y-axis, i.e., the pitch angle value range includes -50 degrees to -10 degrees, and the roll angle value range includes -30 degrees to 30 degrees.
[0187] For example, the first pitch threshold value is 60 degrees clockwise rotation around the x-axis, the second pitch threshold value is 10 degrees clockwise rotation around the x-axis, the first roll threshold value is 20 degrees counterclockwise rotation around the y-axis, and the second roll threshold value is 20 degrees clockwise rotation around the y-axis, i.e., the pitch angle value range includes -60 degrees to -10 degrees, and the roll angle value range includes -20 degrees to 20 degrees.
[0188] As another alternative, the trigger information includes one or any combination of the display screen direction, the motion pitch angle, the motion roll angle, or the motion yaw angle. When the trigger information includes the display screen direction, the trigger condition includes the display screen direction being upward. When the trigger information includes the motion pitch angle, the trigger condition includes the motion pitch angle being greater than a third pitch threshold value. When the trigger information includes the motion roll angle, the trigger condition includes the motion roll angle being less than a third roll threshold value. When the trigger information includes the motion yaw angle, the trigger condition includes the motion yaw angle being greater than a yaw threshold value.
[0189] For example, the trigger information includes the display screen direction, the motion pitch angle, and the motion roll angle, and the trigger condition includes the display screen direction being upward, the motion pitch angle being greater than a third pitch threshold value, and the motion roll angle being less than a third roll threshold value. The third pitch threshold value is 30 degrees counterclockwise rotation around the x-axis or 30 degrees clockwise rotation around the x-axis, and the third roll threshold value is 10 degrees counterclockwise rotation around the y-axis.
[0190] As another alternative, the trigger information includes the display screen direction, the motion roll angle, and the motion yaw angle, and the trigger condition includes the display screen direction being upward, the motion roll angle being less than a third roll threshold value, and the motion yaw angle being greater than a yaw threshold value. The third roll threshold value is 10 degrees counterclockwise rotation around the y-axis, and the motion yaw angle is greater than 10 degrees around the z-axis.
[0191] As an alternative, when the triggering information includes the ambient light alarm value, the triggering condition includes the ambient light alarm value being greater than the ambient light alarm threshold value.
[0192] Specifically, the ambient light sensor in the electronic device can detect the ambient light level of the electronic device and send the ambient light level to the processor. The processor determines whether the ambient light level is greater than the ambient light threshold. If the ambient light level is greater than the ambient light threshold, it indicates that the triggering information meets the triggering conditions and the electronic device is in an unobstructed state.
[0193] For example, if the ambient light alarm threshold is 50 lux, and the ambient light alarm value sensed by the ambient light sensor is 60 lux, which is greater than the ambient light alarm threshold, it indicates that the trigger information meets the triggering conditions.
[0194] As an alternative, when the triggering information includes camera analysis results, the triggering condition includes that the camera analysis results are unobstructed.
[0195] Specifically, the camera captures an image and sends it to the processor. The processor uses an image recognition algorithm to perform recognition calculations on the image to generate a camera analysis result, thereby determining whether an object is obstructing the electronic device. If an object is found to be obstructing the electronic device, the camera analysis result is "obstructed," indicating that the triggering information does not meet the triggering conditions. If no object is found to be obstructing the electronic device, the camera analysis result is "unobstructed," indicating that the triggering information meets the triggering conditions.
[0196] As an alternative, when the trigger information includes the touch result, the trigger conditions include the touch result being no touch point or the touch result being no change in capacitance value.
[0197] Specifically, the touch screen result includes whether there is a touch point or not. If the touch screen result is that there is a touch point, it means that there is an object blocking the electronic device and the trigger information does not meet the triggering conditions; if the touch screen result is that there is no touch point, it means that there is no object blocking the electronic device and the trigger information meets the triggering conditions.
[0198] Specifically, the touch screen result includes whether the capacitance value changes or not. If the user does not touch the display screen, no touch point will be sensed on the display screen. If an object approaches the display screen at this time, the capacitance value of the display screen will change. If the touch screen result includes a change in capacitance value, it means that there is an object blocking the electronic device and the trigger information does not meet the trigger condition. If the touch screen result includes no change in capacitance value, it means that there is no object blocking the electronic device and the trigger information meets the trigger condition.
[0199] As an alternative, when the trigger information includes the device unlock result, the trigger condition includes the unlock result being "unlocked".
[0200] Specifically, the electronic device can be unlocked by an unlocking manner of fingerprint unlocking, pattern unlocking, password unlocking, or face recognition unlocking. If the electronic device is unlocked, it indicates that the trigger information meets the trigger condition.
[0201] For example, the unlocking manner includes password unlocking, the processor receives a password input by a user and matches the input password with a standard password stored locally, if the matching is successful, the electronic device is controlled to be unlocked, at this time, the trigger information meets the trigger condition; if the matching is not successful, the electronic device is controlled to be locked, at this time, the trigger information does not meet the trigger condition. The standard password includes a password set by the user for unlocking.
[0202] As another optional solution, when the trigger information includes the screen-on result, the trigger condition includes that the screen-on result is screen-on.
[0203] Specifically, the display screen can be lighted by a screen-on manner of double-click screen-on, power key screen-on, or hand-up screen-on. If the electronic device is screen-on, it indicates that the trigger information meets the trigger condition.
[0204] For example, the screen-on manner includes double-click screen-on, the processor judges whether a double-click instruction of the user is received, if the double-click instruction of the user is received, the electronic device is controlled to be screen-on, at this time, the trigger information meets the trigger condition; if the double-click instruction of the user is not received, the electronic device is controlled to be screen-off, at this time, the screen-on result obtained is screen-off, that is, the trigger information does not meet the trigger condition.
[0205] For example, the trigger information includes the screen-on result, when the screen-on result is screen-on, it indicates that the trigger information meets the trigger condition.
[0206] As another optional solution, when the trigger information includes the radio signal difference, the trigger condition includes that the radio signal difference is less than a difference threshold value.
[0207] In the embodiment of the application, the radio signal difference includes a difference value between the transmitted radio signal and the received radio signal.
[0208] Specifically, if the radio signal difference is greater than or equal to the difference threshold value, it indicates that the difference between the transmitted radio signal and the received radio signal is large, at this time, the electronic device is in the occlusion state, if the radio signal difference is less than the difference threshold value, it indicates that the difference between the transmitted radio signal and the received radio signal is small, at this time, the electronic device is in the non-occlusion state.
[0209] In the embodiment of the application, the difference threshold value can be set according to actual conditions. As an optional solution, the difference threshold value is 1db. As another optional solution, the difference threshold value is 2db.
[0210] It should be noted that when the trigger information is multiple, if each trigger information meets the corresponding trigger condition, it indicates that the trigger information meets the trigger condition. For example, the trigger information includes the direction of the display screen, the motion pitch angle, the motion roll angle, the holding angle and the ambient light report value. When the direction of the display screen is upward, the motion pitch angle is greater than the third pitch threshold value, the motion roll angle is less than the third roll threshold value, the holding angle is less than the holding threshold value, and the ambient light report value is greater than the ambient light report threshold value, it indicates that the trigger information meets the trigger condition. When a certain trigger information meets the corresponding trigger condition, it indicates that the electronic device has a certain probability of being in an unobstructed state. Therefore, when multiple trigger information is set and each trigger information meets the corresponding trigger condition, the electronic device has a high probability of being in an unobstructed state. At this time, the calibration is started to generate a calibration signal, which can further ensure the accuracy of the generated calibration signal, thereby improving the success rate of the anti-mis-touch.
[0211] For example, the trigger information includes the unlocking result, the holding pitch angle, the holding roll angle, the direction of the display screen, the motion pitch angle, the motion roll angle and the ambient light report value. When the unlocking result includes unlocking, the holding pitch angle is less than the first pitch threshold value and greater than the second pitch threshold value, the holding roll angle is less than the first roll threshold value and greater than the second roll threshold value, the direction of the display screen is upward, the motion pitch angle is greater than the third pitch threshold value, the motion roll angle is less than the third roll threshold value, and the ambient light report value is greater than the ambient light report threshold value, it indicates that the trigger information meets the trigger condition. Multiple trigger information is set, and the corresponding multiple trigger conditions are compared, which can further ensure the accuracy of the generated calibration signal, thereby improving the success rate of the anti-mis-touch.
[0212] In this step, if it is judged that the trigger information meets the trigger condition, it indicates that the electronic device is currently processing an unobstructed state, and is suitable for generating a calibration signal. Step 206 is continued to be executed; if it is judged that the trigger information does not meet the trigger condition, it indicates that the electronic device is currently in an obstructed state, and is not suitable for generating a calibration signal. The flow ends.
[0213] In the embodiment of the application, when the electronic device is in a state that meets the trigger condition, calibration is performed, which can ensure the accuracy of the calibration, thereby improving the success rate of the anti-mis-touch. If the calibration is performed when the electronic device is in a state that does not meet the trigger condition, the obtained calibration result is inaccurate, thereby reducing the success rate of the anti-mis-touch and reducing the user experience.
[0214] In step 206, it is judged whether the obtained calibration time interval is greater than the interval threshold value. The calibration time interval includes the time interval between the current calibration time point and the last calibration time point. If yes, step 208 is continued to be executed; if no, the flow ends.
[0215] In the embodiment of the present application, the current calibration time point comprises a current time point, and the last calibration time point comprises a calibration completion time point. The calibration completion time point can be obtained from a memory.
[0216] In the embodiment of the present application, the interval threshold value can be set according to actual conditions. The interval threshold value should not be set too long, otherwise, the calibration cannot be triggered for a long time, so that the failure rate of the anti-mis-touch is high. The interval threshold value should not be set too short, otherwise, the electronic device will frequently calculate and generate calibration signals, so that the load of the electronic device is increased and the calibration power consumption is increased. Therefore, the interval threshold value should be set at an appropriate time, which cannot trigger calibration for a long time, nor can it be calibrated frequently. As an optional solution, the interval threshold value is set to 1 hour. As another optional solution, the interval threshold value is set to 2 hours.
[0217] In the embodiment of the present application, if it is judged that the obtained calibration time interval is greater than the interval threshold value, it is indicated that the time from the last calibration is long, and the calibration operation can be performed again, and then step 208 is executed. If it is judged that the obtained calibration time interval is less than or equal to the interval threshold value, it is indicated that the time from the last calibration is short, and if the calibration operation is performed again, the calibration frequency will be too frequent, and the load of the electronic device will be increased, and then the process is ended.
[0218] For example, the interval threshold value is set to 1 hour, the last calibration time point is 12:20, and the current calibration time point is 15:14. The calibration time interval is 2 hours and 54 minutes. The calibration time interval is greater than the interval threshold value, and step 208 is executed.
[0219] In the embodiment of the present application, the interval threshold value is set to compare with the calibration time interval, so that the calibration frequency can be controlled, and the load of the electronic device and the calibration power consumption are reduced. If the interval threshold value is not set, the electronic device will be calibrated frequently, the calibration power consumption of the electronic device is increased, the load of the electronic device is too large, and in a serious case, the electronic device will be damaged to a certain extent.
[0220] In step 208, a transmission signal is sent and a reference signal is received, wherein the reference signal comprises a reflection signal of the transmission signal.
[0221] In the embodiment of the present application, the transmission signal comprises a signal transmitted when the electronic device is in an unobstructed state. The transmission signal is sent specifically at a preset time interval, and the preset time interval can be set according to actual conditions. As an optional solution, the preset time interval is 150 milliseconds.
[0222] In the embodiment of the present application, the transmitting signal comprises an ultrasonic signal, and the ultrasonic signal comprises a single-frequency continuous wave (CW), a linear frequency modulation (LFM) or a Zadoff-Chu sequence. By performing a frequency response test on the electronic device, a transmitting signal with a specific frequency band is selected for transmission, and the specific frequency band comprises a frequency band with a relatively high electro-acoustic conversion efficiency and a minimum noise interference on audio. The electro-acoustic conversion efficiency comprises a ratio of sound wave energy emitted by a receiver to input electrical energy, and the higher the sensitivity of the receiver, the higher the electro-acoustic conversion efficiency, and the stronger the reaction capability and resolution of the ultrasonic signal.
[0223] In the embodiment of the present application, the reference signal comprises an ultrasonic signal received by the auxiliary microphone.
[0224] Taking a mobile phone as an example, the receiver transmits a transmitting signal, the transmitting signal is reflected, and a reference signal is reflected back. The auxiliary microphone located at the top of the mobile phone receives the reference signal. The reflection of the transmitting signal back to the reference signal comprises two reflection scenarios: in the first scenario, there is an object at a relatively short distance from the mobile phone, the receiver transmits a transmitting signal, the transmitting signal can hit the object at a relatively short distance from the mobile phone and then reflect back a reference signal, and the reference signal is received by the auxiliary microphone; in the second scenario, the surrounding of the mobile phone is open, that is, there is no object at a relatively short distance from the mobile phone, the receiver transmits a transmitting signal, the transmitting signal is reflected by the mobile phone shell and / or the acoustic cavity, and a reference signal is reflected back, and the reference signal is received by the auxiliary microphone. Since sound is a sound wave generated by object vibration, even if there is no obstruction outside the mobile phone, the transmitting signal transmitted by the receiver will be transmitted from the outside of the mobile phone to the auxiliary microphone.
[0225] In step 210, a calibration signal is generated according to the reference signal.
[0226] In the embodiment of the present application, the description of the trigger information can refer to the above Figure 3 The description of the corresponding embodiment is not repeated here.
[0227] Further, after the calibration signal is generated, a calibration completion time point is recorded.
[0228] In the embodiment of the present application, after the calibration signal is generated, a calibration completion time point is recorded, and the calibration completion time point is stored in the storage, thereby providing a basis for determining whether to generate a calibration signal after triggering calibration next time.
[0229] The technical scheme of the method for generating a calibration signal provided in the embodiment of the application comprises the following steps: obtaining trigger information; determining whether the trigger information meets a trigger condition; if it is determined that the trigger information meets the trigger condition, transmitting a transmission signal and receiving a reference signal, the transmission signal comprising an ultrasonic signal, and the reference signal comprising an ultrasonic signal; and generating a calibration signal according to the reference signal, so that the calibration signal can be generated when the electronic device is in an unobstructed state, the accuracy of the calibration signal is ensured, and the accuracy of the result of the anti-mis-touch algorithm is improved.
[0230] In summary, the parts of the processor or processing units inside the processor 110 can cooperate to implement the previous method flow, and the corresponding software programs of the parts of the processor or processing units can be stored in the memory.
[0231] Figure 10 A structural diagram of a device for generating a calibration signal is provided in the embodiment of the application. Figure 10 As shown in the figure, the device comprises an obtaining unit 11, a first determining unit 12, a transceiving unit 13, and a generating unit 14.
[0232] The obtaining unit 11 is configured to obtain trigger information.
[0233] The first determining unit 12 is configured to determine whether the trigger information meets a trigger condition.
[0234] The transceiving unit 13 is configured to, if it is determined by the first determining unit 12 that the trigger information meets the trigger condition, transmit a transmission signal and receive a reference signal, wherein the reference signal comprises a reflection signal of the transmission signal.
[0235] The generating unit 14 is configured to generate a calibration signal according to the reference signal.
[0236] In the embodiment of the application, the device further comprises a second determining unit 15.
[0237] The second determining unit 15 is configured to determine whether a calibration time interval obtained is greater than an interval threshold value, the calibration time interval comprising a time interval between a current calibration time point and a last calibration time point; and if it is determined by the second determining unit 15 that the calibration time interval is greater than the interval threshold value, the transceiving unit 13 is triggered to continue to perform the steps of transmitting the transmission signal and receiving the reference signal.
[0238] In the embodiment of the application, the generating unit 14 is specifically configured to perform pulse compression processing on multiple frames of received reference signals respectively, generate multiple frames of cross-correlation frequency domains, each frame of cross-correlation frequency domain comprising a group of sample arrays; subtract adjacent two groups of sample arrays in the multiple groups of sample arrays to generate multiple frames of difference values; generate a difference variance according to the multiple frames of difference values; determine whether the difference variance is less than a variance threshold value; and if it is determined that the difference variance is less than the variance threshold value, take any one frame of difference value in the multiple frames of difference values as the calibration signal.
[0239] In the embodiment of the present application, the generating unit 14 is further specifically configured to perform down-conversion processing on the reference signal to generate a complex baseband signal; perform fast Fourier transform on the complex baseband signal to generate a frequency domain signal; obtain a conjugate inverted signal of the transmission signal; and generate a cross-correlation frequency domain according to the frequency domain signal and the conjugate inverted signal.
[0240] In the embodiment of the present application, the transceiving unit 13 is specifically configured to transmit the transmission signal according to a preset time interval.
[0241] In the technical scheme of the method for generating a calibration signal provided in the embodiment of the present application, the trigger information is obtained; it is determined whether the trigger information satisfies a trigger condition; if it is determined that the trigger information satisfies the trigger condition, a transmission signal is transmitted and a reference signal is received, the transmission signal includes an ultrasonic signal, and the reference signal includes an ultrasonic signal; and a calibration signal is generated according to the reference signal, which can ensure that the calibration signal is generated when the electronic device is in an unobstructed state, thereby ensuring the accuracy of the calibration signal and improving the accuracy of the result of the anti-mis-touch algorithm.
[0242] The present application also provides a computer storage medium, which stores instructions, when the instructions are run on a computer, cause the computer to execute each step in the method for generating a calibration signal as shown in the above Figure 3 or Figure 8 .
[0243] The present application also provides a computer program product containing instructions, when the computer program product is run on a computer or any at least one processor, cause the computer to execute each step in the method for generating a calibration signal as shown in the above Figure 3 or Figure 8 .
[0244] In each of the above embodiments, the processor 110 involved may, for example, include a central processing unit (CPU), a microprocessor, a microcontroller, or a digital signal processor, and can also include a GPU, an NPU, and an ISP, and the processor can also include necessary hardware accelerators or logic processing hardware circuits, such as an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the technical scheme of the present application, etc. In addition, the processor can have the function of operating one or more software programs, and the software programs can be stored in the memory.
[0245] The memory can be read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types of dynamic storage devices that can store information and instructions, electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), Blu-ray discs, and the like), magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, and the like.
[0246] In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. The "and / or" describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B, which can represent the cases of A alone, A and B together, and B alone. Wherein A and B can be singular or plural. The character " / " generally represents that the associated objects before and after it are in an "or" relationship. "At least one of the following" and the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, and c can be single or multiple.
[0247] Those of ordinary skill in the art can realize that the units and algorithm steps described in the embodiments disclosed herein can be implemented by electronic hardware, computer software, and a combination of electronic hardware and computer software. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0248] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.
[0249] In several embodiments provided by the present application, any function, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a computer storage medium. Based on such understanding, the technical solutions of the present application, in essence or the part that contributes to the prior art, or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0250] The above description is merely a specific implementation of the present application. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered by the protection scope of the present application. The protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for generating a calibration signal, characterized in that, Applied to electronic devices; the method includes: Get trigger information; Determine whether the trigger information meets the triggering conditions; If it is determined that the trigger information meets the trigger condition, a transmission signal is sent and a reference signal is received, wherein the reference signal includes the reflected signal of the transmission signal, the transmission signal includes an ultrasonic signal, and the reference signal includes an ultrasonic signal; The calibration signal is generated based on the reference signal; The step of generating the calibration signal based on the reference signal includes: The received multiple frames of the reference signal are subjected to pulse compression processing to generate multiple frames of cross-correlation frequency domain, and each frame of the cross-correlation frequency domain includes a set of sampling arrays; Subtracting adjacent two sets of sampling arrays from multiple sets of the sampling arrays generates multi-frame difference values; Based on the multi-frame difference values, a differential variance is generated; Determine whether the difference variance is less than the variance threshold value; If it is determined that the difference variance is less than the variance threshold, any one of the difference values among the multiple frames is used as the calibration signal.
2. The method according to claim 1, characterized in that, The triggering information includes grip pitch angle and grip roll angle. The triggering conditions include that the grip pitch angle is less than a first pitch threshold and greater than a second pitch threshold, and that the grip roll angle is less than a first roll threshold and greater than a second roll threshold.
3. The method according to claim 1, characterized in that, The triggering information includes one or any combination of the display screen orientation, motion pitch angle, motion roll angle, and motion yaw angle. When the trigger information includes the orientation of the display screen, the trigger condition includes the display screen being facing upwards; When the trigger information includes the pitch angle, the trigger condition includes the pitch angle being greater than the third pitch threshold. When the triggering condition includes the motion roll angle, the triggering condition includes the motion roll angle being less than the third roll threshold value; When the triggering condition includes the motion yaw angle, the triggering condition includes the motion yaw angle being greater than the yaw threshold value.
4. The method according to claim 1, characterized in that, The triggering information includes the ambient light alarm value, and the triggering condition includes the ambient light alarm value being greater than the ambient light alarm threshold value.
5. The method according to claim 1, characterized in that, The triggering information includes the camera analysis results, and the triggering condition includes the camera analysis results being unobstructed.
6. The method according to claim 1, characterized in that, The triggering information includes the touch screen result, and the triggering conditions include the touch screen result being no touch point or the touch screen result being no change in capacitance value.
7. The method according to claim 1, characterized in that, The trigger information includes the device unlock result, and the trigger condition includes the unlock result being that the device has been unlocked.
8. The method according to claim 1, characterized in that, The triggering information includes the screen-on result, and the triggering condition includes the screen-on result being that the screen is already on.
9. The method according to claim 1, characterized in that, Also includes: Determine whether the obtained calibration time interval is greater than the interval threshold, wherein the calibration time interval includes the time interval between the current calibration time point and the last calibration time point; If it is determined that the calibration time interval is greater than the interval threshold, the steps of sending the transmission signal and receiving the reference signal continue.
10. The method according to claim 1, characterized in that, The step of performing pulse compression processing on the received multiple frames of the reference signal to generate a multi-frame cross-correlation frequency domain includes: The reference signal is down-converted to generate a complex baseband signal; Perform a Fast Fourier Transform on the complex baseband signal to generate a frequency domain signal; Obtain the conjugate inverted signal of the transmitted signal; The cross-correlation frequency domain is generated based on the frequency domain signal and the conjugate inverted signal.
11. The method according to claim 1, characterized in that, The transmission of the signal includes: The transmission signal is sent at preset time intervals.
12. An electronic device, characterized in that, include: Display screen; One or more processors; Memory; Multiple applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs including instructions that, when executed by the device, cause the device to perform the following steps: Get trigger information; Determine whether the trigger information meets the triggering conditions; If it is determined that the trigger information meets the trigger condition, a transmission signal is sent and a reference signal is received, wherein the reference signal includes the reflected signal of the transmission signal, the transmission signal includes an ultrasonic signal, and the reference signal includes an ultrasonic signal; A calibration signal is generated based on the reference signal; The step of generating the calibration signal based on the reference signal includes: The received multiple frames of the reference signal are subjected to pulse compression processing to generate multiple frames of cross-correlation frequency domain, and each frame of the cross-correlation frequency domain includes a set of sampling arrays; Subtracting adjacent two sets of sampling arrays from multiple sets of the sampling arrays generates multi-frame difference values; Based on the multi-frame difference values, a differential variance is generated; Determine whether the difference variance is less than the variance threshold value; If it is determined that the difference variance is less than the variance threshold, any one of the difference values among the multiple frames is used as the calibration signal.
13. The electronic device according to claim 12, characterized in that, When the instruction is executed by the device, the device specifically performs the following steps: Determine whether the obtained calibration time interval is greater than the interval threshold, wherein the calibration time interval includes the time interval between the current calibration time point and the last calibration time point; If it is determined that the calibration time interval is greater than the interval threshold, the steps of sending the transmission signal and receiving the reference signal continue.
14. The electronic device according to claim 12, characterized in that, When the instruction is executed by the device, the device specifically performs the following steps: The reference signal is down-converted to generate a complex baseband signal; Perform a Fast Fourier Transform on the complex baseband signal to generate a frequency domain signal; Obtain the conjugate inverted signal of the transmitted signal; The cross-correlation frequency domain is generated based on the frequency domain signal and the conjugate inverted signal.
15. The electronic device according to claim 12, characterized in that, When the instruction is executed by the device, the device specifically performs the following steps: The transmission signal is sent at preset time intervals.
16. A computer storage medium, characterized in that, It includes computer instructions that, when executed on an electronic device, cause the electronic device to perform a method for generating a calibration signal as described in any one of claims 1 to 11.
17. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer or any at least one processor, it causes the computer to perform the method for generating a calibration signal as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Dynamic calibration method for ultrasonic fingerprint identification, device and electronic device
CN105893989A
Ultrasonic calibration method and device for mobile equipment
CN106546970A