CN113517935B - Ultrasonic calibration method, device, mobile terminal and storage medium - Google Patents
Ultrasonic calibration method, device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN113517935B CN113517935B CN202110762251.3A CN202110762251A CN113517935B CN 113517935 B CN113517935 B CN 113517935B CN 202110762251 A CN202110762251 A CN 202110762251A CN 113517935 B CN113517935 B CN 113517935B
- Authority
- CN
- China
- Prior art keywords
- ultrasonic
- mobile terminal
- characteristic value
- moving state
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000005540 biological transmission Effects 0.000 claims abstract description 57
- 230000033001 locomotion Effects 0.000 claims abstract description 28
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 description 45
- 230000000694 effects Effects 0.000 description 26
- 238000001514 detection method Methods 0.000 description 23
- 230000006870 function Effects 0.000 description 17
- 230000008569 process Effects 0.000 description 12
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 5
- 230000007423 decrease Effects 0.000 description 4
- 238000001228 spectrum Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B11/00—Transmission systems employing sonic, ultrasonic or infrasonic waves
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/10—Monitoring; Testing of transmitters
- H04B17/11—Monitoring; Testing of transmitters for calibration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
Abstract
Description
技术领域technical field
本申请涉及移动终端技术领域,更具体地,涉及一种超声波校准方法、装置、移动终端及存储介质。The present application relates to the technical field of mobile terminals, and more specifically, to an ultrasonic calibration method and device, a mobile terminal and a storage medium.
背景技术Background technique
移动终端,例如手机、平板电脑等,已经成为人们日常生活中最常用的消费型电子产品之一。随着移动终端技术的日益发展,全面屏、曲面屏手机已经成为主流产品,由于需要节省移动终端的顶部空间,很多厂家在移动终端上采用超声波接近检测方案来代替传统的红外接近检测方案。但是,移动终端在使用一段时间之后,其内部的一些器件或者结构会发生微妙的变化,这些变化会影响到频谱特性,进而影响超声波接近检测方案的准确性。Mobile terminals, such as mobile phones and tablet computers, have become one of the most commonly used consumer electronic products in people's daily life. With the increasing development of mobile terminal technology, full-screen and curved-screen mobile phones have become mainstream products. Due to the need to save the top space of mobile terminals, many manufacturers use ultrasonic proximity detection solutions on mobile terminals to replace traditional infrared proximity detection solutions. However, after the mobile terminal is used for a period of time, some internal devices or structures of the mobile terminal will undergo subtle changes, and these changes will affect the spectrum characteristics, thereby affecting the accuracy of the ultrasonic proximity detection solution.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种超声波校准方法、装置、移动终端及存储介质,以改善上述问题。In view of the above problems, the present application proposes an ultrasonic calibration method, device, mobile terminal and storage medium to improve the above problems.
第一方面,本申请实施例提供了一种超声波校准方法,应用于移动终端,所述移动终端包括超声波发射模块以及超声波接收模块,所述方法包括:在所述移动终端与物体之间相对移动的移动状态下,通过所述超声波发射模块发送超声波信号,并通过所述超声波接收模块接收超声波信号在遇到物体后返回的超声波信号;获取超声波信号在传输过程中的超声波特征值;获取所述超声波特征值与目标特征值之间的差异值,所述目标特征值为标准终端在所述移动状态下检测的超声波信号在传输过程中的特征值;根据所述差异值,对所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整,以及对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整。In the first aspect, the embodiment of the present application provides an ultrasonic calibration method, which is applied to a mobile terminal, the mobile terminal includes an ultrasonic transmitting module and an ultrasonic receiving module, and the method includes: relatively moving between the mobile terminal and an object In the moving state, the ultrasonic signal is sent through the ultrasonic transmitting module, and the ultrasonic signal is received by the ultrasonic receiving module when the ultrasonic signal returns after encountering an object; the ultrasonic characteristic value of the ultrasonic signal in the transmission process is obtained; and the ultrasonic signal is obtained. The difference between the ultrasonic eigenvalue and the target eigenvalue, the target eigenvalue is the eigenvalue of the ultrasonic signal detected by the standard terminal in the moving state during transmission; according to the difference value, the mobile terminal In the moving state, the ultrasonic transmitting module adjusts the emission intensity of the ultrasonic signal each time it sends, and adjusts the ultrasonic characteristic value acquired by the mobile terminal in the moving state each time.
第二方面,本申请实施例提供了一种超声波校准装置,应用于移动终端,所述移动终端包括超声波发射模块以及超声波接收模块,所述装置包括:收发控制模块、特征获取模块、差异获取模块以及调整执行模块,其中,所述收发控制模块用于在所述移动终端与物体之间相对移动的移动状态下,通过所述超声波发射模块发送超声波信号,并通过所述超声波接收模块接收超声波信号在遇到物体后返回的超声波信号;所述特征获取模块用于获取超声波信号在传输过程中的超声波特征值;所述差异获取模块用于获取所述超声波特征值与目标特征值之间的差异值,所述目标特征值为标准终端在所述移动状态下检测的超声波信号在传输过程中的特征值;所述调整执行模块用于根据所述差异值,对所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整,以及对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整。In the second aspect, the embodiment of the present application provides an ultrasonic calibration device, which is applied to a mobile terminal. The mobile terminal includes an ultrasonic transmitting module and an ultrasonic receiving module. The device includes: a transceiver control module, a feature acquisition module, and a difference acquisition module and an adjustment execution module, wherein the transceiver control module is configured to send ultrasonic signals through the ultrasonic transmitting module and receive ultrasonic signals through the ultrasonic receiving module in a moving state of relative movement between the mobile terminal and the object The ultrasonic signal returned after encountering the object; the feature acquisition module is used to acquire the ultrasonic characteristic value of the ultrasonic signal during transmission; the difference acquisition module is used to obtain the difference between the ultrasonic characteristic value and the target characteristic value value, the target eigenvalue is the eigenvalue of the ultrasonic signal detected by the standard terminal in the moving state during the transmission process; the adjustment execution module is used to adjust the mobile terminal in the moving In this state, the ultrasonic transmitting module adjusts the emission intensity of each time the ultrasonic signal is sent, and adjusts the ultrasonic characteristic value acquired each time by the mobile terminal in the moving state.
第三方面,本申请实施例提供了一种移动终端,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的超声波校准方法。In a third aspect, the embodiment of the present application provides a mobile terminal, including: one or more processors; memory; one or more application programs, wherein the one or more application programs are stored in the memory and The one or more programs are configured to be executed by the one or more processors, and the one or more programs are configured to execute the ultrasonic calibration method provided in the first aspect above.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的超声波校准方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores program codes, and the program codes can be invoked by a processor to execute the ultrasonic wave provided by the first aspect above. Calibration method.
本申请提供的方案,在移动终端与物体之间相对移动的移动状态下,通过超声波发射模块发送超声波信号,并通过超声波接收模块接收超声波信号在遇到物体后返回的超声波信号,获取超声波信号在传输过程中的超声波特征值,获取超声波特征值与目标特征值之间的差异值,目标特征值为标准终端在移动状态下检测的超声波信号在传输过程中的特征值,根据差异值,对移动终端在移动状态下超声波发射模块每次发送超声波信号时的发射强度进行调整。因此,实现根据同一移动状态下获取的超声波特征值与标准终端获取的超声波特征值的差异值,对移动终端该移动状态下每次在发送超声波信号的发射强度进行调整,以及对每次获取的用于接近检测的超声波特征值进行调整,使得获取的超声波特征值能得到校准,从而使得移动终端检测出相对物体间的移动状态更加准确。In the solution provided by this application, in the mobile state of relative movement between the mobile terminal and the object, the ultrasonic signal is sent through the ultrasonic transmitting module, and the ultrasonic signal returned by the ultrasonic signal after encountering the object is received through the ultrasonic receiving module, and the ultrasonic signal is acquired. Ultrasonic eigenvalue in the transmission process, obtain the difference value between the ultrasonic eigenvalue and the target eigenvalue, the target eigenvalue is the eigenvalue of the ultrasonic signal detected by the standard terminal in the moving state during the transmission process, according to the difference value, the mobile When the terminal is in a moving state, the emission intensity of the ultrasonic transmitting module is adjusted each time the ultrasonic signal is sent. Therefore, according to the difference value between the ultrasonic characteristic value acquired in the same moving state and the ultrasonic characteristic value obtained by the standard terminal, the mobile terminal is in this moving state. The ultrasonic eigenvalues used for proximity detection are adjusted so that the acquired ultrasonic eigenvalues can be calibrated, so that the mobile terminal can detect the moving state between relative objects more accurately.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请实施例提供的超声波的传播路径的示意图。Fig. 1 shows a schematic diagram of an ultrasonic propagation path provided by an embodiment of the present application.
图2示出了根据本申请一个实施例的超声波校准方法流程图。Fig. 2 shows a flowchart of an ultrasonic calibration method according to an embodiment of the present application.
图3示出了根据本申请另一个实施例的超声波校准方法流程图。Fig. 3 shows a flowchart of an ultrasonic calibration method according to another embodiment of the present application.
图4示出了本申请实施例提供的音频数据频谱图。FIG. 4 shows a spectrum diagram of audio data provided by the embodiment of the present application.
图5示出了根据本申请又一个实施例的超声波校准方法流程图。Fig. 5 shows a flowchart of an ultrasonic calibration method according to yet another embodiment of the present application.
图6示出了根据本申请一个实施例的超声波校准装置的一种框图。Fig. 6 shows a block diagram of an ultrasonic calibration device according to an embodiment of the present application.
图7是本申请实施例的用于执行根据本申请实施例的超声波校准方法的移动终端的框图。Fig. 7 is a block diagram of a mobile terminal for performing an ultrasonic calibration method according to an embodiment of the present application according to an embodiment of the present application.
图8是本申请实施例的用于保存或者携带实现根据本申请实施例的超声波校准方法的程序代码的存储单元。Fig. 8 is a storage unit for storing or carrying program codes for implementing the ultrasonic calibration method according to the embodiment of the present application according to the embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
目前,随着移动终端技术的日益发展,曲面屏、全面屏的移动终端越来越多,为了节省移动终端的顶部空间,很多厂家在移动终端上采用超声波接近监测方案来替代传统的红外接近检测方案。目前,超声波接近监测方案为,移动终端通过超声波发送装置(如听筒、喇叭、专用超声波发射器等)发射超声波,一部分超声波通过空气传播直达超声波接收模块(拾音器)(如图1的路径1),一部分超声波通过空气传播与遮挡物形成反射后再到达超声波接收模块(如图1的路径2)。超声波接收模块拾取到的是直达声和反射声的叠加信号,经过A/D转换器转化为音频信号。通过算法处理音频数据得到遮挡物相对移动终端的运动状态,进而指导移动终端的显示屏处于亮屏状态或熄屏状态。At present, with the increasing development of mobile terminal technology, there are more and more mobile terminals with curved screens and full screens. In order to save the top space of mobile terminals, many manufacturers use ultrasonic proximity detection solutions on mobile terminals to replace traditional infrared proximity detection. Program. At present, the ultrasonic proximity monitoring scheme is that the mobile terminal emits ultrasonic waves through ultrasonic sending devices (such as earpieces, speakers, special ultrasonic transmitters, etc.), and part of the ultrasonic waves propagates through the air to the ultrasonic receiving module (pickup) (
发明人经过长时间的研究发现,多数移动终端在使用达到一定时间后,移动终端内部的器件或者结构会发生微妙的变化,例如移动终端的超声波的听筒、喇叭等超声波发射模块会发生变化,这些变化会影响到频谱特性,进而影响超声波检测方案的准确性。After a long period of research, the inventor found that after most mobile terminals have been used for a certain period of time, the internal devices or structures of the mobile terminals will undergo subtle changes, for example, the ultrasonic transmitting modules such as the ultrasonic earpieces and speakers of the mobile terminals will change. Variations can affect the spectral characteristics and, in turn, the accuracy of the ultrasonic inspection scheme.
针对上述问题,发明人提出了本申请实施例提供的超声波校准方法、装置、移动终端以及存储介质,通过获取同一移动状态下获取的超声波特征值与标准终端获取的超声波特征值的差异值,并根据该差异值对移动终端该移动状态下每次在发送超声波信号的发射强度进行调整,以及对每次获取的超声波特征值进行调整,使得获取的超声波特征值能得到校准,从而使得移动终端检测出相对物体间的移动状态更加准确。其中,具体的超声波校准方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor proposes the ultrasonic calibration method, device, mobile terminal and storage medium provided by the embodiment of the present application, by obtaining the difference value between the ultrasonic characteristic value obtained in the same moving state and the ultrasonic characteristic value obtained by the standard terminal, and According to the difference value, the emission intensity of the ultrasonic signal sent by the mobile terminal in this moving state is adjusted each time, and the ultrasonic characteristic value acquired each time is adjusted, so that the acquired ultrasonic characteristic value can be calibrated, so that the mobile terminal detects It is more accurate to show the movement state between relative objects. Wherein, the specific ultrasonic calibration method will be described in detail in the subsequent embodiments.
请参阅图2,图2示出了本申请一个实施例提供的超声波校准方法的流程示意图。所述超声波校准方法用于根据同一移动状态下获取的超声波特征值与标准终端获取的超声波特征值的差异值,对移动终端该移动状态下每次在发送超声波信号的发射强度进行调整,以及对每次获取的超声波特征值进行调整,使得获取的用于接近检测的超声波特征值能得到校准。在具体的实施例中,所述超声波校准方法应用于如图6所示的超声波校准装置400以及配置有所述超声波校准装置400的移动终端100(图7)。下面将以移动终端为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的移动终端可以为智能手机、平板电脑、穿戴式电子设备等,在此不做限定。其中,在本实施例中,该移动终端可以包括超声波发射模块以及超声波接收模块,下面将针对图2所示的流程进行详细的阐述,所述超声波校准方法具体可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 shows a schematic flowchart of an ultrasonic calibration method provided by an embodiment of the present application. The ultrasonic calibration method is used to adjust the emission intensity of the ultrasonic signal sent by the mobile terminal each time in the mobile state according to the difference between the ultrasonic characteristic value obtained in the same moving state and the ultrasonic characteristic value obtained by the standard terminal, and to adjust the The ultrasonic characteristic value acquired each time is adjusted, so that the acquired ultrasonic characteristic value used for proximity detection can be calibrated. In a specific embodiment, the ultrasonic calibration method is applied to the ultrasonic calibration device 400 shown in FIG. 6 and the mobile terminal 100 ( FIG. 7 ) equipped with the ultrasonic calibration device 400 . The following will take a mobile terminal as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the mobile terminal applied in this embodiment can be a smart phone, a tablet computer, a wearable electronic device, etc., and is not limited here. Wherein, in this embodiment, the mobile terminal may include an ultrasonic transmitting module and an ultrasonic receiving module. The process shown in FIG. 2 will be described in detail below, and the ultrasonic calibration method may specifically include the following steps:
步骤S110:在所述移动终端与物体之间相对移动的移动状态下,通过所述超声波发射模块发送超声波信号,并通过所述超声波接收模块接收超声波信号在遇到物体后返回的超声波信号。Step S110: In the mobile state of relative movement between the mobile terminal and the object, send an ultrasonic signal through the ultrasonic transmitting module, and receive an ultrasonic signal returned after the ultrasonic signal encounters the object through the ultrasonic receiving module.
在本申请实施例中,移动终端可以同时包括超声波发送模块和超声波接收模块。在超声波发送模块相对物体运动的过程中,其实质是移动终端相对物体运动,从而超声波接收模块也相对物体运动。根据多普勒效应,物体辐射的波长因为波源(移动终端)和观测者(物体)的相对运动而产生变化,多普勒效应公式如下:In the embodiment of the present application, the mobile terminal may include an ultrasonic sending module and an ultrasonic receiving module at the same time. During the movement of the ultrasonic sending module relative to the object, the essence is that the mobile terminal moves relative to the object, and thus the ultrasonic receiving module also moves relative to the object. According to the Doppler effect, the wavelength radiated by an object changes due to the relative motion between the wave source (mobile terminal) and the observer (object). The Doppler effect formula is as follows:
其中,f'为观察到的频率、f为发射源于该介质中的原始发射频率、v为波在该介质中的传播速度、v0为观察者移动速度,若观察者接近发射源则前方运算符号为+号,反之则为-号;vs为发射源移动速度,若物体接近观察者则前方运算符号为-号,反之则为+号。由多普勒效应公式可知,当发射源与观察者相对接近时,观察者接收到的信号频率会变大;当发射源与观察者相对远离时,观察者接收到的信号频率会变小;当发射源与观察者相对静止时,观察者接收到信号频率与发射源一致。Among them, f' is the observed frequency, f is the original emission frequency emitted from the medium, v is the propagation velocity of the wave in the medium, v 0 is the moving speed of the observer, if the observer is close to the emission source, the front The operation sign is + sign, otherwise it is - sign; vs is the moving speed of the emission source, if the object is close to the observer, the front operation sign is - sign, otherwise it is + sign. According to the Doppler effect formula, when the emission source is relatively close to the observer, the frequency of the signal received by the observer will increase; when the emission source is relatively far away from the observer, the frequency of the signal received by the observer will become smaller; When the emission source and the observer are relatively stationary, the frequency of the signal received by the observer is consistent with that of the emission source.
在本申请实施例中,移动终端可以对超声波检测功能进行校准,其中,超声波检测功能可以是利用移动终端获取的超声波特征值,进行移动终端与物体间的相对移动状态的确定。In the embodiment of the present application, the mobile terminal can calibrate the ultrasonic detection function, wherein the ultrasonic detection function can use ultrasonic characteristic values acquired by the mobile terminal to determine the relative movement state between the mobile terminal and the object.
在一些实施方式中,移动终端对超声波检测功能进行校准,可以是对移动终端在进行超声波检测功能时所需要的超声波特征值进行调准,以便用于进行确定移动终端与物体间的相对移动状态的超声波特征值更准确。In some embodiments, the mobile terminal calibrates the ultrasonic detection function, which may be to adjust the ultrasonic characteristic value required by the mobile terminal when performing the ultrasonic detection function, so as to determine the relative movement state between the mobile terminal and the object The ultrasonic eigenvalues are more accurate.
在一些实施方式中,移动终端可以在与物体之间相对移动的移动状态下,可以通过移动终端内置的超声波发送模块发送固定频率的超声波信号,可以理解的是,超声波发送模块发送的超声波信号中的一部分通过空气传播直达超声波接收模块,另一部分通过空气传播与遮挡物形成反射后再达到超声波接收模块,超声波接收模块拾取到的是直达声和反射声的叠加信号,经过A/D转换为音频信号,其中,该遮挡物可以包括人脸、人体等。例如,可以通过移动终端内置的听筒、喇叭或者专用超声波发射器发送固定频率的超声波信号,超声波信号的一部分通过空气传播直达拾音器,另一部分通过空气传播与遮挡物形成反射后再达到拾音器,拾音器是获取到的是直达声和反射声的叠加信号,经过A/D转换为音频信号。In some implementations, the mobile terminal can transmit a fixed-frequency ultrasonic signal through the ultrasonic sending module built in the mobile terminal in a moving state relative to the object. It can be understood that the ultrasonic signal sent by the ultrasonic sending module A part of it propagates through the air and directly reaches the ultrasonic receiving module, and the other part passes through the air and forms a reflection with the occluder to reach the ultrasonic receiving module. signal, wherein the occluder may include a human face, a human body, and the like. For example, a fixed-frequency ultrasonic signal can be sent through a mobile terminal built-in earpiece, speaker, or a dedicated ultrasonic transmitter. Part of the ultrasonic signal propagates through the air and reaches the pickup, and the other part passes through the air and reflects off an obstruction before reaching the pickup. The pickup is What is obtained is the superposition signal of the direct sound and the reflected sound, which is converted into an audio signal through A/D.
在本申请实施例中,上述移动终端与物体之间相对移动的移动状态,可以包括移动速度、移动方向等。该移动状态可以为移动终端与物体之间在一定速度下的靠近移动,也可以是移动终端与物体之间在移动速度下的远离移动,在此不作限定。In the embodiment of the present application, the relative movement state between the above-mentioned mobile terminal and the object may include a movement speed, a movement direction, and the like. The moving state may be an approaching movement between the mobile terminal and the object at a certain speed, or a moving away between the mobile terminal and the object at a moving speed, which is not limited herein.
在本申请实施例中,移动终端可以在与物体之间相对移动的移动状态下,可以通过超声波发送模块发送超声波信号,并通过超声波接收模块接收超声波信号在遇到物体后返回的超声波信号,或者从超声波接收模块接收到的超声波信号(直达声和反射声)中提取超声波信号在遇到物体后返回的超声波信号(反射声),在此不做限定。In the embodiment of the present application, the mobile terminal can send an ultrasonic signal through the ultrasonic sending module in a moving state relative to the object, and receive the ultrasonic signal returned by the ultrasonic signal after encountering the object through the ultrasonic receiving module, or The ultrasonic signal (reflected sound) returned by the ultrasonic signal after encountering an object is extracted from the ultrasonic signal (direct sound and reflected sound) received by the ultrasonic receiving module, which is not limited here.
步骤S120:获取超声波信号在传输过程中的超声波特征值。Step S120: Obtain ultrasonic characteristic values of the ultrasonic signal during transmission.
在一些实施方式中,移动终端可以获取超声波发送模块发送的超声波信号在传输过程中的超声波特征值。超声波信号在传输过程中的超声波特征值可以包括多普勒效应面积差、多普勒效应面积和、或者超声波幅度变化率绝对值,在此不做限定。In some implementation manners, the mobile terminal can obtain ultrasonic characteristic values during transmission of the ultrasonic signal sent by the ultrasonic sending module. The ultrasonic characteristic value during the transmission of the ultrasonic signal may include a Doppler effect area difference, a Doppler effect area sum, or an absolute value of an ultrasonic amplitude change rate, which is not limited herein.
步骤S130:获取所述超声波特征值与目标特征值之间的差异值,所述目标特征值为标准终端在所述移动状态下检测的超声波信号在传输过程中的特征值。Step S130: Obtain the difference between the ultrasonic characteristic value and the target characteristic value, the target characteristic value is the characteristic value of the ultrasonic signal detected by the standard terminal in the moving state during transmission.
在本申请实施例中,移动终端在获取到在上述移动状态下发送的超声波信号在传输过程中的超声波特征值之后,可以从标准终端在多种不同移动状态下检测的超声波信号在传输过程中的多个特征值中,确定与移动终端的移动状态所对应的特征值,其中,标准终端的多种不同移动状态与多个特征值一一对应,即每个不同移动状态对应一个特征值。移动终端的移动状态即步骤S110中移动终端在发送超声波信号和接收超声波信号时,移动终端与物体相对移动的移动状态。可以理解的,由多普勒效应公式可知,接收的超声波信号频率与声源相对物体的具体移动状态(速度和移动方向)有关,从而移动终端和标准终端在不同的移动状态下,所获取的超声波特征值不同。标准终端可以为一台各项指标和参数都达到最佳的移动终端,其超声波检测功能的准确性良好,具有参考意义。In the embodiment of the present application, after the mobile terminal obtains the ultrasonic characteristic value of the ultrasonic signal sent in the above-mentioned moving state during the transmission process, it can obtain the ultrasonic signal detected by the standard terminal in a variety of different moving states during the transmission process. Among the multiple eigenvalues, determine the eigenvalue corresponding to the mobile state of the mobile terminal, wherein the various different mobile states of the standard terminal correspond to the multiple eigenvalues one-to-one, that is, each different mobile state corresponds to one eigenvalue. The moving state of the mobile terminal is the moving state in which the mobile terminal moves relative to the object when the mobile terminal is sending and receiving ultrasonic signals in step S110. It can be understood that from the Doppler effect formula, the frequency of the received ultrasonic signal is related to the specific moving state (speed and moving direction) of the sound source relative to the object, so that the mobile terminal and the standard terminal are in different moving states. Ultrasonic characteristic values are different. The standard terminal can be a mobile terminal with the best indicators and parameters, and the accuracy of its ultrasonic detection function is good, which is of reference significance.
在一些实施方式中,移动终端中可以存储有标准终端在多种不同移动状态下检测的超声波信号在传输过程中的多个特征值,从而移动终端可以从标准终端的多种移动状态对应的多个特征值中,确定移动终端的移动状态对应的特征值,并将确定出的特征值作为目标特征值。In some implementations, the mobile terminal can store multiple characteristic values of the ultrasonic signals detected by the standard terminal in a variety of different moving states during the transmission process, so that the mobile terminal can learn from the multiple moving states of the standard terminal. Among the eigenvalues, determine the eigenvalue corresponding to the mobile state of the mobile terminal, and use the determined eigenvalue as the target eigenvalue.
在一些实施方式中,移动终端也可以根据其相对物体移动的移动状态,生成用于获取目标特征值的请求,并将该请求发送至服务器,服务器可以根据该请求,从标准终端的多种移动状态对应的多个特征值中确定相对物体移动的移动状态对应的特征值,并将确定出的特征值作为目标特征值发送至移动终端。In some implementations, the mobile terminal can also generate a request for obtaining the target feature value according to its moving state relative to the object, and send the request to the server. A feature value corresponding to a moving state that moves relative to the object is determined from the multiple feature values corresponding to the state, and the determined feature value is sent to the mobile terminal as a target feature value.
在本申请实施例中,移动终端在获取到目标特征值后,则可以计算超声波特征值与目标特征值的差值,并将计算得到的差值作为超声波特征值与目标特征值之间的差异值,以便移动终端根据差异值对超声波检测功能进行校准。In the embodiment of the present application, after the mobile terminal obtains the target feature value, it can calculate the difference between the ultrasonic feature value and the target feature value, and use the calculated difference as the difference between the ultrasonic feature value and the target feature value value, so that the mobile terminal can calibrate the ultrasonic detection function according to the difference value.
另外,上述超声波特征值对应的超声波信号的第一发射参数(例如发射强度、发射频率等)与目标特征值对应的超声波信号的第二发射参数相同,以使目标特征值具有较强参考性。第一发射参数为移动终端在获取超声波信号在传输过程中的超声波特征值时,发射超声波信号的发射参数;第二发射参数为目标终端在获取超声波信号在传输过程中的目标特征值时,发射超声波信号的发射参数。In addition, the first transmission parameters (such as transmission intensity, transmission frequency, etc.) of the ultrasonic signal corresponding to the above-mentioned ultrasonic characteristic value are the same as the second transmission parameters of the ultrasonic signal corresponding to the target characteristic value, so that the target characteristic value has strong reference. The first transmitting parameter is when the mobile terminal acquires the ultrasonic characteristic value of the ultrasonic signal in the transmission process, transmits the ultrasonic signal transmission parameter; The transmission parameters of the ultrasonic signal.
步骤S140:根据所述差异值,对所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整,以及对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整。Step S140: According to the difference value, adjust the emission intensity of the ultrasonic transmitting module when the mobile terminal is in the moving state each time when it sends an ultrasonic signal, and adjust the emission intensity of the mobile terminal in the moving state every time. Adjust the ultrasonic characteristic value acquired for the first time.
在本申请实施例中,移动终端获取到差异值,则可以获知到在上述移动终端相对物体移动的移动状态下获取的超声波特征值与标准终端在相同移动状态下获取的目标特征值的差异。移动终端可以根据该差异值,进行超声波检测功能的校准,以便移动终端最后用于确定相对物体的移动状态的超声波特征值的准确性高。In the embodiment of the present application, when the mobile terminal obtains the difference value, it can know the difference between the ultrasonic characteristic value obtained by the above-mentioned mobile terminal moving relative to the object and the target characteristic value obtained by the standard terminal in the same moving state. The mobile terminal can calibrate the ultrasonic detection function according to the difference value, so that the final ultrasonic characteristic value used by the mobile terminal to determine the moving state of the relative object has high accuracy.
在一些实施方式中,移动终端可以根据差异值,在移动终端在获取上述超声波特征值时的移动状态下,对每次发送超声波信号时的发射强度以及每次获取的超声波特征值进行调整,补偿上述差异值,从而使最后用于确定相对物体的移动状态的超声波特征值的更加准确。In some implementation manners, the mobile terminal can adjust the emission intensity when sending the ultrasonic signal and the ultrasonic characteristic value obtained each time in the mobile state when the mobile terminal obtains the ultrasonic characteristic value according to the difference value, and compensate The above difference value, so that the final ultrasonic characteristic value used to determine the moving state of the relative object is more accurate.
在一些实施方式中,移动终端在根据差异值,对移动终端在上述获取到超声波特征值的移动状态下每次发送超声波信号时的发射强度以及每次获取的超声波特征值进行调整,可以将上述差异值拆分为两部分,一部分差异值通过调整发送超声波信号时的发射强度来补偿,另一部分差异值通过调整获取的超声波特征值来补偿,使得最后用于确定相对物体的移动状态的超声波特征值,与标准设备所获取的目标特征值接近或相同,从而提升最后用于确定相对物体的移动状态的超声波特征值的准确性。校准后得到的用于确定相对物体的移动状态的超声波特征值,由于准确性高,因此根据校准后得到的超声波特征值,确定出的移动终端相对物体的移动状态也更加准确,提升移动终端根据相对物体的移动状态控制显示屏的亮屏和熄屏状态的准确性。In some implementations, the mobile terminal adjusts the transmission intensity of the ultrasonic signal and the ultrasonic characteristic value obtained each time when the mobile terminal is in the moving state where the ultrasonic characteristic value is obtained above, and the ultrasonic characteristic value obtained each time. The difference value is split into two parts, one part of the difference value is compensated by adjusting the emission intensity when sending the ultrasonic signal, and the other part of the difference value is compensated by adjusting the acquired ultrasonic characteristic value, so that the final ultrasonic characteristic used to determine the relative object's moving state The value is close to or the same as the target characteristic value obtained by the standard equipment, so as to improve the accuracy of the ultrasonic characteristic value finally used to determine the moving state of the relative object. The ultrasonic characteristic value obtained after calibration is used to determine the moving state of the relative object. Due to its high accuracy, the moving state of the mobile terminal relative to the object determined according to the ultrasonic characteristic value obtained after calibration is also more accurate, improving the mobile terminal based on The moving state of the relative object controls the accuracy of the on-screen and off-screen states of the display.
本申请实施例提供的超声波校准方法,通过获取同一移动状态下获取的超声波特征值与标准终端获取的超声波特征值的差异值,并根据该差异值对移动终端该移动状态下每次在发送超声波信号的发射强度进行调整,以及对每次获取的超声波特征值进行调整,使得获取的超声波特征值能得到校准,从而使得移动终端检测出相对物体间的移动状态更加准确。另外,通过部分差异值由调整超声波信号的发射强度进行补偿,可以避免增加移动终端的功耗较多的情况,也避免了直接对获取的超声波特征值利用差异值进行补偿,影响检测移动终端相对物体的移动状态的超声波检测算法的检测效果,从而使校准更加准确。The ultrasonic calibration method provided in the embodiment of the present application obtains the difference value between the characteristic value of the ultrasonic wave obtained in the same moving state and the characteristic value of the ultrasonic wave obtained by the standard terminal, and according to the difference value, the mobile terminal transmits the ultrasonic wave in the moving state each time. The emission intensity of the signal is adjusted, and the ultrasonic characteristic value acquired each time is adjusted, so that the acquired ultrasonic characteristic value can be calibrated, so that the mobile terminal can detect the moving state between relative objects more accurately. In addition, by adjusting the transmission intensity of the ultrasonic signal to compensate for part of the difference value, it is possible to avoid increasing the power consumption of the mobile terminal, and it also avoids directly using the difference value to compensate the acquired ultrasonic feature value, which affects the relative detection of the mobile terminal. The detection effect of the ultrasonic detection algorithm of the moving state of the object makes the calibration more accurate.
请参阅图3,图3示出了本申请另一个实施例提供的超声波校准方法的流程示意图。该方法应用于上述移动终端,该移动终端包括超声波发射模块以及超声波接收模块,下面将针对图3所示的流程进行详细的阐述,所述超声波校准方法具体可以包括以下步骤:Please refer to FIG. 3 , which shows a schematic flowchart of an ultrasonic calibration method provided in another embodiment of the present application. The method is applied to the above-mentioned mobile terminal. The mobile terminal includes an ultrasonic transmitting module and an ultrasonic receiving module. The process shown in FIG. 3 will be described in detail below. The ultrasonic calibration method may specifically include the following steps:
步骤S210:在所述移动终端与物体之间相对移动的移动状态下,通过所述超声波发射模块发送超声波信号,并通过所述超声波接收模块接收超声波信号在遇到物体后返回的超声波信号。Step S210: In the mobile state of relative movement between the mobile terminal and the object, send an ultrasonic signal through the ultrasonic transmitting module, and receive an ultrasonic signal returned after the ultrasonic signal encounters the object through the ultrasonic receiving module.
在本申请实施例中,步骤S210可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, for step S210, reference may be made to the content of the foregoing embodiments, which will not be repeated here.
步骤S220:获取超声波信号在传输过程中的超声波特征值。Step S220: Obtain ultrasonic characteristic values of the ultrasonic signal during transmission.
在本申请实施例中,超声波信号在传输过程中的第一特征值可以包括多普勒效应面积差、多普勒效应面积和、或者超声波幅度变化率绝对值,在此不做限定。In this embodiment of the present application, the first characteristic value of the ultrasonic signal during transmission may include a Doppler effect area difference, a Doppler effect area sum, or an absolute value of an ultrasonic amplitude change rate, which is not limited herein.
以多普勒效应面积差为例,对获取超声波信号在传输过程中的多普勒效应面积进行描述,获取超声波信号在传输过程中的多普勒效应面积的过程可以包括:Taking the Doppler effect area difference as an example, the acquisition of the Doppler effect area of the ultrasonic signal during transmission is described. The process of obtaining the Doppler effect area of the ultrasonic signal during transmission may include:
获取所述超声波发送模块发送的超声波信号的发送频率,以及所述超声波接收模块接收的超声波信号的频率范围;基于所述发送频率和所述频率范围确定第一频率变化区间以及第二频率变化区间;根据所述第一频率变化区间和所述第一频率变化区间对应的第一强度变化曲线,计算获得第一面积;根据所述第二频率变化区间和所述第二频率变化区间对应的第二强度变化曲线,计算获得第二面积;计算所述第一面积和所述第二面积之差,得到所述超声波信号在传输过程中的所述多普勒效应面积差。Obtain the sending frequency of the ultrasonic signal sent by the ultrasonic sending module, and the frequency range of the ultrasonic signal received by the ultrasonic receiving module; determine a first frequency change interval and a second frequency change interval based on the sending frequency and the frequency range ; According to the first frequency change interval and the first intensity change curve corresponding to the first frequency change interval, calculate and obtain the first area; according to the second frequency change interval and the second frequency change interval corresponding to the first area Two intensity change curves, calculating the second area; calculating the difference between the first area and the second area to obtain the Doppler effect area difference during the transmission of the ultrasonic signal.
在移动终端处于通话状态时,移动终端相对物体的相对运动状态,其实质为用户在使用移动终端的过程中,用户拿起移动终端靠近人体或远离人体的过程,考虑到用户拿起移动终端的速度在一定范围内变化,从而使超声波接收模块接收到的超声波信号的频率变化也相应在一定的范围内,即超声波信号的频率范围。When the mobile terminal is in a call state, the relative motion state of the mobile terminal relative to the object is essentially the process of the user picking up the mobile terminal to get close to or away from the human body during the process of using the mobile terminal. Considering that the user picks up the mobile terminal The speed changes within a certain range, so that the frequency of the ultrasonic signal received by the ultrasonic receiving module also changes within a certain range, that is, the frequency range of the ultrasonic signal.
在一些实施方式中,移动终端可以获取其内置的超声波发送模块发送的超声波信号的发送频率,以及获取其内置的超声波接收模块接收的超声波信号的频率范围。其中,该超声波发送模块发送的超声波信号的发送频率可以是固定频率,因此,移动终端可以基于已设定的超声波发送模块的超声波信号的发送参数获取该发送频率。另外,该超声波接收模块接收的超声波信号的频率范围和移动终端与物体的相对运动关系相关,因此,可以获取大多数用户在使用移动终端的过程中,其运动速度的变化范围,并根据其运动速度的变化范围确定超声波接收模块接收的超声波信号的频率范围。In some implementations, the mobile terminal can obtain the sending frequency of the ultrasonic signal sent by its built-in ultrasonic sending module, and obtain the frequency range of the ultrasonic signal received by its built-in ultrasonic receiving module. Wherein, the sending frequency of the ultrasonic signal sent by the ultrasonic sending module may be a fixed frequency, therefore, the mobile terminal may obtain the sending frequency based on the set sending parameters of the ultrasonic signal of the ultrasonic sending module. In addition, the frequency range of the ultrasonic signal received by the ultrasonic receiving module is related to the relative motion relationship between the mobile terminal and the object. Therefore, it is possible to obtain the variation range of the movement speed of most users in the process of using the mobile terminal, and based on their movement The variation range of the speed determines the frequency range of the ultrasonic signal received by the ultrasonic receiving module.
具体地,基于多普勒效应公式可知,f'为超声波接收模块接收到的物体反射的超声波信号的频率。f为超声波发送模块发送的超声波信号的发送频率。v为声音在空气中的传播速度,取340m/s。假设移动终端是静止的,则vs=0。如果物体相对终端的运动速度为v01,则多普勒效应公式中物体的移动速度为v0=2v01。假设超声波发送模块发送的超声波信号的发送频率为ultrasonic=22500Hz,超声波接收模块接收的超声波信号的频率范围为[22420Hz,22580Hz],则根据多普勒效应能够识别到的物体与移动终端最大相对速度为:Specifically, based on the Doppler effect formula, f' is the frequency of the ultrasonic signal reflected by the object received by the ultrasonic receiving module. f is the sending frequency of the ultrasonic signal sent by the ultrasonic sending module. v is the propagation speed of sound in the air, which is 340m/s. Assuming that the mobile terminal is stationary, then vs =0. If the moving speed of the object relative to the terminal is v 01 , then the moving speed of the object in the Doppler effect formula is v 0 =2v 01 . Suppose the sending frequency of the ultrasonic signal sent by the ultrasonic sending module is ultrasonic=22500Hz, and the frequency range of the ultrasonic signal received by the ultrasonic receiving module is [22420Hz, 22580Hz], then the maximum relative speed between the object and the mobile terminal that can be identified according to the Doppler effect for:
若进行傅里叶变换(fast Fourier Transform,DFT)变换的数据长度为fftlen=8192,音频数据采样率为fs=48kHz,则DFT结果的频率分辨率为: If the data length of the Fourier transform (fast Fourier Transform, DFT) transform is fftlen=8192, and the audio data sampling rate is fs=48kHz, then the frequency resolution of the DFT result is:
则由式和式则能够识别到的物体与移动终端最小相对速度为: then by the formula Japanese style Then the minimum relative speed between the recognized object and the mobile terminal is:
因此,在本实施例中,可以基于历史数据等获取移动终端与物体的最大相对速度和最小相对速度,并通过最大相对速度、最小相对速度以及上述公式反向推导获取该超声波接收模块接收的超声波信号的频率范围。Therefore, in this embodiment, the maximum relative velocity and the minimum relative velocity between the mobile terminal and the object can be obtained based on historical data, etc., and the maximum relative velocity, the minimum relative velocity, and the above formula can be reversely deduced to obtain the ultrasonic waves received by the ultrasonic receiving module The frequency range of the signal.
在一些实施方式中,在获取超声波发送模块发送的超声波信号的发送频率以及超声波接收模块接收到的超声波信号的频率范围后,可以基于该发送频率和频率范围确定频率变化区间。例如,如图4所示,图4示出了本申请实施例提供的音频数据频谱图,频谱为频率谱的简称,是频率的分布曲线,对于离散的音频数据采样点,可以通过离散傅里叶变换获得,于图4中,其为一段音频数据经过离散傅里叶变换得到的频谱图,横坐标的每个点各自对应一个现实中的频率值,纵坐标代表该频率的信号强度。In some implementations, after acquiring the sending frequency of the ultrasonic signal sent by the ultrasonic sending module and the frequency range of the ultrasonic signal received by the ultrasonic receiving module, the frequency change interval may be determined based on the sending frequency and the frequency range. For example, as shown in Figure 4, Figure 4 shows the audio data spectrogram provided by the embodiment of the present application. The spectrum is the abbreviation of the frequency spectrum, which is the distribution curve of the frequency. leaf transform, in Figure 4, it is a spectrogram obtained by discrete Fourier transform of a piece of audio data, each point on the abscissa corresponds to a frequency value in reality, and the ordinate represents the signal strength of the frequency.
在一些实施方式中,特征提取模块每次使用长度fftlen=8192的数据模块做DFT变换,得到相应的幅频向量X如图4所示,In some embodiments, the feature extraction module uses the data module of length fftlen=8192 to do DFT transformation each time, and obtains the corresponding amplitude-frequency vector X as shown in Figure 4,
实际频率fn与幅频向量X的第n个数据之间的关系如下:The relationship between the actual frequency f n and the nth data of the amplitude-frequency vector X is as follows:
其中,fs为采样率,fftlen为数据长度。则X[n]代表实际频率fn的强度。Among them, f s is the sampling rate, and fftlen is the data length. Then X[n] represents the strength of the actual frequency f n .
假设算法中考虑的关键频率有ultrasonic=22500Hz、f_min_low=22494Hz、f_min_up=22506Hz、f_low=22420Hz、f_up=22580Hz,则考虑的关键频率为:n1、n2、n3、n4和n5,n1为point_low,n2为point_mid_low,n3为point_mid,n4为point_mid_up,n5为point_up,其中,Suppose the key frequencies considered in the algorithm are ultrasonic=22500Hz, f_min_low=22494Hz, f_min_up=22506Hz, f_low=22420Hz, f_up=22580Hz, then the key frequencies considered are: n1, n2, n3, n4 and n5, n1 is point_low, n2 is point_mid_low, n3 is point_mid, n4 is point_mid_up, n5 is point_up, among them,
如图4所示,该超声波发送模块发送的超声波信号的发送频率为point_mid,发送频率对应的信号强度为ultrasonic_amp,该超声波接收模块接收到的超声波信号的频率范围为point_low到point_up,因此,可以确定该频率变化区间为point_low到point_mid_low以及point_min-up到point_up。As shown in Figure 4, the sending frequency of the ultrasonic signal sent by the ultrasonic sending module is point_mid, the signal strength corresponding to the sending frequency is ultrasonic_amp, the frequency range of the ultrasonic signal received by the ultrasonic receiving module is point_low to point_up, therefore, it can be determined The frequency change range is from point_low to point_mid_low and from point_min-up to point_up.
在一些实施方式中,基于发送频率和频率范围可以确定第一频率变化区间和第二频率变化区间。例如,如图4所示,该第一频率变化区间为point_low到point_mid_low,第二频率变化区间为point_min-up到point_up。In some implementations, the first frequency change interval and the second frequency change interval may be determined based on the sending frequency and the frequency range. For example, as shown in FIG. 4 , the first frequency change range is from point_low to point_mid_low, and the second frequency change range is from point_min-up to point_up.
在一些实施方式中,在获取频率变化区间后,可以基于频谱图获取该频率变化区间对应的强度变化曲线,并基于该频率变化区间和频率变化区间对应的强度变化曲线,计算该超声波信号在传输过程中的多普勒效应面积差。In some implementations, after the frequency change interval is obtained, the intensity change curve corresponding to the frequency change interval can be obtained based on the spectrogram, and based on the frequency change interval and the intensity change curve corresponding to the frequency change interval, the ultrasonic signal can be calculated. The Doppler effect area difference in the process.
具体地,在获取第一频率变化区间后,可以基于频谱图获取该第一频率变化区间对应的第一强度变化曲线,并基于该第一频率变化区间和第一频率变化区间对应的第一强度变化曲线,计算该超声波信号在传输过程中的第一面积,同时,在获取第二频率变化区间后,可以基于频谱图获取该第二频率变化区间对应的第二强度变化曲线,并基于该第二频率变化区间和第二频率变化区间对应的第二强度变化曲线,计算该超声波信号在传输过程中的第二面积。进一步地,计算第一面积和第二面积之差,例如,通过第一面积减去第二面积或者通过第二面积减去第一面积,则可以得到该超声波信号在传输过程中的多普勒效应面积差。Specifically, after the first frequency change interval is obtained, the first intensity change curve corresponding to the first frequency change interval can be obtained based on the spectrogram, and the first intensity change curve corresponding to the first frequency change interval can be obtained based on the first frequency change interval and the first intensity change corresponding to the first frequency change interval. change curve to calculate the first area of the ultrasonic signal during transmission, and at the same time, after obtaining the second frequency change interval, the second intensity change curve corresponding to the second frequency change interval can be obtained based on the spectrogram, and based on the first The second frequency change interval and the second intensity change curve corresponding to the second frequency change interval are used to calculate the second area of the ultrasonic signal during transmission. Further, by calculating the difference between the first area and the second area, for example, subtracting the second area from the first area or subtracting the first area from the second area, the Doppler value of the ultrasonic signal during transmission can be obtained. The effect area is poor.
同理,计算第一面积和第二面积之和,可以得到多普勒效应面积和。Similarly, the sum of the Doppler effect area can be obtained by calculating the sum of the first area and the second area.
以超声波幅度变化率绝对值为例,对获取超声波信号在传输过程中的超声波幅度变化率绝对值进行描述,获取超声波信号在传输过程中的超声波幅度变化率绝对值的过程可以包括:Taking the absolute value of the ultrasonic amplitude change rate as an example, the acquisition of the absolute value of the ultrasonic amplitude change rate during the transmission of the ultrasonic signal is described. The process of obtaining the absolute value of the ultrasonic amplitude change rate during the transmission of the ultrasonic signal may include:
获取所述超声波接收模块接收的超声波信号对应的第一超声波幅值,以及上一时刻的所述超声波接收模块接收的超声波信号对应的第二超声波幅值;获取所述第一超声波幅值与所述第二超声波幅值的差值的绝对值,得到所述超声波信号在传输过程中的超声波幅度变化率绝对值。Obtain the first ultrasonic amplitude corresponding to the ultrasonic signal received by the ultrasonic receiving module, and the second ultrasonic amplitude corresponding to the ultrasonic signal received by the ultrasonic receiving module at the last moment; obtain the first ultrasonic amplitude and the obtained The absolute value of the difference of the second ultrasonic amplitude value is obtained to obtain the absolute value of the ultrasonic amplitude change rate of the ultrasonic signal during transmission.
其中,第一特征值包括超声波幅度变化率绝对值时,移动终端可以采集当前时刻超声波接收模块接收的超声波信号对应的第一超声波幅值,并获取上一时刻的超声波接收模块接收的超声波信号的第二超声波幅值。其中,当前时刻与上一时刻的具体间隔不不作为限定,例如,可以为0.5S,0.75S等。在一些实施方式中,移动终端通过超声波接收模块接收到超声波信号时,可以将每个时刻接收的超声波信号的幅值进行记录。Wherein, when the first characteristic value includes the absolute value of the ultrasonic amplitude change rate, the mobile terminal can collect the first ultrasonic amplitude corresponding to the ultrasonic signal received by the ultrasonic receiving module at the current moment, and obtain the ultrasonic signal received by the ultrasonic receiving module at the previous moment. Amplitude of the second ultrasonic wave. Wherein, the specific interval between the current moment and the previous moment is not limited, for example, it may be 0.5S, 0.75S and so on. In some embodiments, when the mobile terminal receives the ultrasonic signal through the ultrasonic receiving module, it can record the amplitude of the received ultrasonic signal at each moment.
移动终端在获取到上述第一超声波幅值以及第二超声波幅值后,则可以计算第一超声波幅值与第二超声波幅值的差值,并取该差值的绝对值,从而得到超声波信号在传输过程中的超声波幅度变化率绝对值。After the mobile terminal obtains the first ultrasonic amplitude and the second ultrasonic amplitude, it can calculate the difference between the first ultrasonic amplitude and the second ultrasonic amplitude, and take the absolute value of the difference, so as to obtain the ultrasonic signal The absolute value of the rate of change of ultrasonic amplitude during transmission.
当然,具体获取超声波特征值的方式在本申请实施例中可以不作为限定。Certainly, the specific manner of obtaining the ultrasonic feature value may not be limited in this embodiment of the present application.
步骤S230:获取所述超声波特征值与目标特征值之间的差异值,所述目标特征值为标准终端在所述移动状态下检测的超声波信号在传输过程中的特征值。Step S230: Obtain the difference between the ultrasonic characteristic value and the target characteristic value, the target characteristic value is the characteristic value of the ultrasonic signal detected by the standard terminal in the moving state during transmission.
在本申请实施例中,步骤S230可以参阅前述实施例的内容,在此不再赘述。其中,目标终端获取特征值的方式,可以与移动终端获取超声波特征值的上述方式相同。In the embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S230, and details are not repeated here. Wherein, the manner in which the target terminal obtains the characteristic value may be the same as the foregoing manner in which the mobile terminal obtains the ultrasonic characteristic value.
步骤S240:判断所述差异值的绝对值是否大于预设阈值。Step S240: Determine whether the absolute value of the difference is greater than a preset threshold.
在本申请实施例中,移动终端在得到超声波信号在传输过程中的超声波特征值与标准终端的目标特征值之间的差异值之和,判断该差异值的绝对值是否大于预设阈值,以确定是否需要进行校准。如果该差异值的绝对值大于预设阈值,则表示移动终端目前的超声波检测效果不好,即获取的超声波特征值不准确,会影响判断移动终端相对物体的移动状态的准确性,因此后续需要进行校准;而如果该差异值的绝对值小于或者等于预设阈值,则表示当前获取的超声波特征值与目标特征值的差异在可接受范围内容,因此可以后续不进行校准,即不执行后续的步骤。其中,预设阈值的具体数值可以不作为限定,并且预设阈值与超声波特征值的具体类型有关,例如,多普勒效应面积差对应的预设阈值与超声波幅度变化率绝对值对应的预设阈值不同。另外,由于差异值可能为正,即超声波特征值大于目标特征值,差异值也可能为负,即超声波特征值小于目标特征值,因此,取差异值的绝对值与预设阈值进行比较,可以反应超声波特征值与目标特征值的差异大小。In the embodiment of the present application, the mobile terminal obtains the sum of the difference between the ultrasonic characteristic value of the ultrasonic signal during the transmission process and the target characteristic value of the standard terminal, and judges whether the absolute value of the difference is greater than the preset threshold value. Determine if calibration is required. If the absolute value of the difference is greater than the preset threshold, it means that the current ultrasonic detection effect of the mobile terminal is not good, that is, the acquired ultrasonic characteristic value is inaccurate, which will affect the accuracy of judging the mobile state of the mobile terminal relative to the object, so follow-up needs Calibrate; and if the absolute value of the difference is less than or equal to the preset threshold, it means that the difference between the currently acquired ultrasonic characteristic value and the target characteristic value is within an acceptable range, so subsequent calibration may not be performed, that is, subsequent step. Wherein, the specific value of the preset threshold may not be used as a limitation, and the preset threshold is related to the specific type of ultrasonic characteristic value, for example, the preset threshold corresponding to the Doppler effect area difference and the preset threshold corresponding to the absolute value of the ultrasonic amplitude change rate The thresholds are different. In addition, since the difference value may be positive, that is, the ultrasonic eigenvalue is greater than the target eigenvalue, the difference value may also be negative, that is, the ultrasonic eigenvalue is smaller than the target eigenvalue, therefore, taking the absolute value of the difference value and comparing it with the preset threshold value can be It reflects the difference between the ultrasonic eigenvalue and the target eigenvalue.
步骤S250:如果大于所述预设阈值,将所述差异值划分为第一差异值以及第二差异值,所述第一差异值与所述第二差异值之和为所述差异值。Step S250: If it is greater than the preset threshold, divide the difference value into a first difference value and a second difference value, and the sum of the first difference value and the second difference value is the difference value.
在本申请实施例中,如果步骤S240判断出差异值的绝对值大于预设阈值时,则需要进行校准。因此,可以根据差异值,在移动终端在获取上述超声波特征值时的移动状态下,对每次发送超声波信号时的发射强度以及每次获取的超声波特征值进行调整。In the embodiment of the present application, if it is determined in step S240 that the absolute value of the difference is greater than a preset threshold, calibration is required. Therefore, according to the difference value, in the moving state of the mobile terminal when acquiring the above-mentioned ultrasonic characteristic value, the emission intensity when sending the ultrasonic signal each time and the ultrasonic characteristic value obtained each time can be adjusted.
在一些实施方式中,移动终端在根据差异值,对每次发送超声波信号时的发射强度以及每次获取的超声波特征值进行调整时,可以将差异值进行划分,差异值可划分为第一差异值以及第二差异值,且第一差异值与第二差异值之和等于该差异值。其中,移动终端可以根据第一差异值对移动终端在该移动状态下每次获取的超声波特征值进行调整,实现对第一差异值的补偿;移动终端可以根据第二差异值对移动终端在该移动状态下每次发射超声波信号的发射强度进行调整,实现对第二差异值的补偿。In some embodiments, when the mobile terminal adjusts the emission intensity of each ultrasonic signal sent and the ultrasonic characteristic value acquired each time according to the difference value, the difference value can be divided into the first difference value value and the second difference value, and the sum of the first difference value and the second difference value is equal to the difference value. Wherein, the mobile terminal can adjust the ultrasonic characteristic value obtained by the mobile terminal each time in the moving state according to the first difference value, so as to realize the compensation for the first difference value; In the moving state, the transmission intensity of the ultrasonic signal transmitted each time is adjusted to realize compensation for the second difference value.
在一些实施方式中,需要通过调整每次获取的超声波特征值进行补偿的部分差异值可以占整个差异值的预设比例。移动终端可以获取差异值与预设比例的乘积,并将得到的乘积作为第一差异值;而另一部分差异值,则可以通过计算差异值与第一差异值的差值,得到的差值即可作为第二差异值。其中,预设比例的具体数值可以不作为限定,例如,预设比例可以为40%~50%,从而需要直接通过调整超声波特征值进行补偿的差异值将不会太大,避免影响超声波检测算法的效果;例如,预设比例可以为50%~60%,从而需要通过调整发射强度进行补偿的差异值不会太大,避免造成发生移动终端较大功耗的情况。In some implementations, the part of the difference that needs to be compensated by adjusting the ultrasonic characteristic value acquired each time may account for a preset proportion of the whole difference. The mobile terminal can obtain the product of the difference value and the preset ratio, and use the obtained product as the first difference value; and for the other part of the difference value, the difference obtained by calculating the difference between the difference value and the first difference value is Can be used as the second difference value. Wherein, the specific value of the preset ratio may not be limited. For example, the preset ratio may be 40% to 50%, so that the difference value that needs to be directly compensated by adjusting the ultrasonic characteristic value will not be too large, so as to avoid affecting the ultrasonic detection algorithm. effect; for example, the preset ratio can be 50% to 60%, so that the difference value that needs to be compensated by adjusting the emission intensity will not be too large, and the situation of large power consumption of the mobile terminal will be avoided.
当然,也可以是需要通过调整每次获取的超声波特征值进行补偿的部分差异值可以占整个差异值的第一比例,需要通过调整每次发射超声波信号的发射强度进行补偿的另一部分差异值可以占整个差异值的第二比例,第一比例与第二比例之和为1,通过将差异值与第一比例相乘,得到第一差异值,通过将差异值与第二比例相乘,得到第二差异值。Of course, it can also be that part of the difference value that needs to be compensated by adjusting the ultrasonic characteristic value acquired each time can account for the first proportion of the entire difference value, and another part of the difference value that needs to be compensated by adjusting the emission intensity of the ultrasonic signal transmitted each time can be Accounting for the second proportion of the entire difference value, the sum of the first proportion and the second proportion is 1, the first difference value is obtained by multiplying the difference value by the first proportion, and the difference value is obtained by multiplying the difference value by the second proportion Second difference value.
步骤S260:根据所述第一差异值,对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整。Step S260: According to the first difference value, adjust the ultrasonic feature value acquired each time by the mobile terminal in the moving state.
在本申请实施例中,移动终端根据第一差异值,对移动终端在该移动状态下每次获取的超声波特征值进行调整,可以包括:In the embodiment of the present application, the mobile terminal adjusts the ultrasonic characteristic value acquired each time in the mobile state according to the first difference value, which may include:
将所述移动终端在所述移动状态下每次获取的超声波特征值增大或者减小所述第一差异值的大小。Increasing or decreasing the size of the first difference value of the ultrasonic feature value acquired each time by the mobile terminal in the moving state.
其中,如果移动终端获取的超声波特征值与目标特征值的差异值为正时,此时表示移动终端在该移动状态下获取的超声波特征值大于标准终端在该移动状态下获取的目标特征值,因此可以将移动终端在移动状态下每次获取的超声波特征减小第一差异值的大小,以补偿第一差异值;反之,差异值为负时,因此可以将移动终端在移动状态下每次获取的超声波特征增大第一差异值的大小,以补偿第一差异值。Wherein, if the difference between the ultrasonic characteristic value obtained by the mobile terminal and the target characteristic value is positive, it means that the ultrasonic characteristic value obtained by the mobile terminal in this moving state is greater than the target characteristic value obtained by the standard terminal in this moving state, Therefore, the ultrasonic features acquired by the mobile terminal in the mobile state can be reduced by the first difference value each time to compensate for the first difference value; The acquired ultrasonic features increase the size of the first difference value to compensate for the first difference value.
步骤S270:根据所述第二差异值,获取目标调整强度,根据目标调整强度对所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整。Step S270: Obtain a target adjustment intensity according to the second difference value, and adjust the emission intensity of the ultrasonic transmitting module when the mobile terminal is in the moving state each time it transmits an ultrasonic signal according to the target adjusted intensity.
在本申请实施例中,移动终端根据第二差异值,对移动终端在该移动状态下每次发送超声波信号的发射强度进行调整,可以是根据第二差异值获取目标调整强度,该目标调整强度可以为每次需要调整的发射强度,移动终端在该移动状态下通过对超声波发射模块每次需要发送的发射强度调整目标调整强度。其中,目标调整强度由移动终端根据第二差异值获得,通过调整对发射强度调整目标调整强度,即可实现获取的超声波特征值能补偿第二差异值。In the embodiment of the present application, the mobile terminal adjusts the transmission intensity of the ultrasonic signal sent by the mobile terminal each time in the moving state according to the second difference value, which may be to obtain the target adjustment intensity according to the second difference value, and the target adjustment intensity For the emission intensity that needs to be adjusted each time, the mobile terminal adjusts the target adjustment intensity by adjusting the emission intensity that needs to be sent each time by the ultrasonic emission module in this moving state. Wherein, the target adjustment intensity is obtained by the mobile terminal according to the second difference value, and by adjusting the emission intensity and adjusting the target adjustment intensity, the acquired ultrasonic feature value can compensate for the second difference value.
在一些实施方式中,移动终端可以根据超声波信号的发射强度与发射频率的对应关系、多普勒效应公式以及所述第二差异值,计算得到与所述第二差异值对应的目标调整强度,然后再将所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度增大或者减小所述目标调整强度。可以理解的,超声波发射模块在发射超声波信号后,再通过超声波接收模块接收的超声波信号,超声波信号在传输过程中的超声波特征值会受到发射强度的影响,因此可以根据第二差异值以及多普勒效应公式,计算与第二差异值对应的发射频率,然后通过超声波信号的发射强度与发射频率的对应关系,获取到该计算得到的发射频率对应的发射强度。获取到的发射强度即可以作为目标调整强度,也就是说,目标调整强度可以对超声波特征值产生第二差异值的大小的影响,因此通过对每次超声波发射模块发射超声波信号的发射强度调整目标调整强度,即可对超声波特征值补偿第二差异值的大小。其中,差异值为正时,则可以将每次超声波发射模块发射超声波信号的发射强度减小目标调整强度,差异值为负时,则可以将每次超声波发射模块发射超声波信号的发射强度增大目标调整强度。In some implementation manners, the mobile terminal may calculate the target adjustment strength corresponding to the second difference value according to the corresponding relationship between the transmission intensity of the ultrasonic signal and the transmission frequency, the Doppler effect formula, and the second difference value, Then increase or decrease the target adjustment intensity for each time the ultrasonic transmitting module transmits an ultrasonic signal when the mobile terminal is in the moving state. It can be understood that after the ultrasonic transmitter module transmits the ultrasonic signal, it receives the ultrasonic signal through the ultrasonic receiving module. Calculate the emission frequency corresponding to the second difference value according to the Le effect formula, and then obtain the emission intensity corresponding to the calculated emission frequency through the corresponding relationship between the emission intensity of the ultrasonic signal and the emission frequency. The acquired transmission intensity can be used as the target adjustment intensity, that is to say, the target adjustment intensity can have an impact on the magnitude of the second difference value of the ultrasonic characteristic value, so the target is adjusted by the emission intensity of the ultrasonic signal transmitted by the ultrasonic transmission module each time. By adjusting the intensity, the size of the second difference value can be compensated for the ultrasonic characteristic value. Wherein, when the difference value is positive, the emission intensity of the ultrasonic signal transmitted by the ultrasonic transmitting module can be reduced by the target adjustment intensity, and when the difference value is negative, the emission intensity of the ultrasonic signal transmitted by the ultrasonic transmitting module can be increased each time. Target adjustment strength.
在本申请实施例中,移动终端可以根据校准后每次得到的超声波特征值,利用超声波检测算法,确定移动终端相对物体的移动状态,从而根据移动终端相对物体的移动状态,控制显示屏处于熄屏状态或者亮屏状态。其中,如果移动终端相对物体的移动状态为靠近状态,则控制显示屏处于熄屏状态;如果移动终端相对物体的移动状态为远离状态,则控制显示屏处于亮屏状态;如果移动终端相对物体的移动状态为静止状态,则控制显示屏保持当前的显示状态。In the embodiment of the present application, the mobile terminal can determine the moving state of the mobile terminal relative to the object by using the ultrasonic detection algorithm according to the ultrasonic characteristic value obtained each time after calibration, so as to control the display screen to be off according to the moving state of the mobile terminal relative to the object. screen status or bright screen status. Wherein, if the moving state of the mobile terminal relative to the object is close state, then the control display screen is in the off state; If the moving state is stationary, the control display will maintain the current display state.
本申请实施例提供的超声波校准方法,通过获取同一移动状态下获取的超声波特征值与标准终端获取的超声波特征值的差异值,将该差异值划分为第一差异值以及第二差异值,通过直接将移动终端处于该移动状态下每次获取的超声波特征值增大或者减小第一差异值,实现对获取的超声波特征值的第一差异值的补偿,通过将移动终端处于该移动状态下每次发射超声波信号的发射强度增加或者减小目标调整强度,使调整后的发射强度对每次获取的超声波特征值产生第二差异值的大小的影响,实现对获取的超声波特征值的第二差异值的补偿,从而实现了对每次获取的超声波特征值补偿差异值的大小,使得超声波特征值能得到校准,从而使得移动终端检测出相对物体间的移动状态更加准确。The ultrasonic calibration method provided in the embodiment of the present application obtains the difference value between the ultrasonic characteristic value obtained in the same moving state and the ultrasonic characteristic value obtained by the standard terminal, and divides the difference value into a first difference value and a second difference value. Directly increase or decrease the first difference value of the ultrasonic characteristic value obtained each time when the mobile terminal is in the moving state, so as to realize the compensation for the first difference value of the acquired ultrasonic characteristic value, by placing the mobile terminal in the moving state The transmission intensity of each transmitted ultrasonic signal increases or decreases the target adjustment intensity, so that the adjusted emission intensity has an influence on the size of the second difference value of the ultrasonic characteristic value acquired each time, and realizes the second difference value of the acquired ultrasonic characteristic value. The compensation of the difference value realizes the compensation of the size of the difference value for each acquired ultrasonic characteristic value, so that the ultrasonic characteristic value can be calibrated, so that the mobile terminal can detect the moving state between relative objects more accurately.
请参阅图5,图5示出了本申请又一个实施例提供的超声波校准方法的流程示意图。该方法应用于上述移动终端,该移动终端包括超声波发射模块以及超声波接收模块,下面将针对图5所示的流程进行详细的阐述,所述超声波校准方法具体可以包括以下步骤:Please refer to FIG. 5 , which shows a schematic flowchart of an ultrasonic calibration method provided in another embodiment of the present application. The method is applied to the above-mentioned mobile terminal. The mobile terminal includes an ultrasonic transmitting module and an ultrasonic receiving module. The process shown in FIG. 5 will be described in detail below. The ultrasonic calibration method may specifically include the following steps:
步骤S310:在所述移动终端与物体之间相对移动的移动状态下,通过所述超声波发射模块发送超声波信号,并通过所述超声波接收模块接收超声波信号在遇到物体后返回的超声波信号。Step S310: In the mobile state of relative movement between the mobile terminal and the object, send an ultrasonic signal through the ultrasonic transmitting module, and receive an ultrasonic signal returned after the ultrasonic signal encounters the object through the ultrasonic receiving module.
步骤S320:获取超声波信号在传输过程中的超声波特征值。Step S320: Obtain ultrasonic characteristic values of the ultrasonic signal during transmission.
步骤S330:获取所述移动终端与物体之间的相对移动速度。Step S330: Obtain the relative moving speed between the mobile terminal and the object.
在本申请实施例中,由多普勒效应公式可知,接收的超声波信号频率与声源相对物体的移动速度(速度和移动方向)有关,从而移动终端和标准终端在不同移动速度的移动状态下,所获取的超声波特征值不同。因此,移动终端在获取超声波特征值与目标特征值的差异值时,可以通过此时移动终端与物体之间的相对移动速度,获取标准终端在该相对移动速度下检测的特征值,以获取标准终端在与移动终端相同的移动状态下检测的目标特征值。In the embodiment of the present application, it can be seen from the Doppler effect formula that the frequency of the received ultrasonic signal is related to the moving speed (speed and moving direction) of the sound source relative to the object, so that the mobile terminal and the standard terminal are moving at different moving speeds. , the acquired ultrasonic eigenvalues are different. Therefore, when the mobile terminal obtains the difference value between the ultrasonic characteristic value and the target characteristic value, it can obtain the characteristic value detected by the standard terminal at the relative moving speed through the relative moving speed between the mobile terminal and the object at this time, so as to obtain the standard The target feature value detected by the terminal in the same moving state as the mobile terminal.
在一些实施方式中,移动终端获取移动终端与物体之间的相对移动速度,可以为移动终端通过内置的加速度传感器,根据加速度传感器检测的加速度与时间的关系,计算移动终端的移动速度,可以将计算的移动终端的移动速度作为移动终端与物体之间的相对移动速度。可以理解的,通常利用超声波检测移动终端相对物体的移动状态的场景是用于移动终端通话时的场景下控制显示屏的熄灭和点亮,而这种场景通常是移动终端靠近人脸,因此移动终端与物体之间的移动大多数是物体静止,而移动终端移动,因此可以通过检测移动终端的移动速度,而确定移动终端与物体之间的相对移动速度。In some implementations, the mobile terminal obtains the relative moving speed between the mobile terminal and the object. The mobile terminal may use a built-in acceleration sensor to calculate the moving speed of the mobile terminal according to the relationship between the acceleration detected by the acceleration sensor and time. The calculated moving speed of the mobile terminal is used as a relative moving speed between the mobile terminal and the object. It can be understood that the scene where ultrasonic waves are used to detect the moving state of the mobile terminal relative to the object is used to control the extinguishing and lighting of the display screen when the mobile terminal is talking. Most of the movement between the terminal and the object is that the object is stationary while the mobile terminal moves, so the relative moving speed between the mobile terminal and the object can be determined by detecting the moving speed of the mobile terminal.
步骤S340:计算所述超声波特征值与所述目标特征值的差值,得到所述移动终端在所述相对移动速度的移动状态下的差异值。Step S340: Calculate the difference between the ultrasonic feature value and the target feature value to obtain the difference value of the mobile terminal in the moving state of the relative moving speed.
在本申请实施例中,移动终端可以根据标准终端在多种相对移动速度下检测的超声波信号在传输过程中的多个特征值,其中相对移动速度为标准终端相对物体的移动速度,确定与上述移动终端检测的相对移动速度的移动状态所对应的特征值,并将确定出的特征值作为目标特征值。In the embodiment of this application, the mobile terminal can determine the above-mentioned The mobile terminal detects the feature value corresponding to the moving state of the relative moving speed, and uses the determined feature value as the target feature value.
进一步的,通过计算移动终端获取的超声波特征值与目标特征值的差值,即可得到移动终端在该相对移动速度的移动状态下的差异值。Further, by calculating the difference between the ultrasonic feature value obtained by the mobile terminal and the target feature value, the difference value of the mobile terminal in the moving state of the relative moving speed can be obtained.
步骤S350:获取所述移动终端在不同相对移动速度的多个移动状态下的多个差异值,其中,所述多个移动状态与所述多个差异值一一对应。Step S350: Obtain multiple difference values of the mobile terminal in multiple moving states with different relative moving speeds, wherein the multiple moving states correspond to the multiple difference values one by one.
在一些实施方式中,移动终端还可以通过步骤S310至步骤S340的方式,获取不同相对移动速度的多个移动状态下的多个差异值,以便移动终端每次使用超声波检测功能时,根据实际的相对移动速度,选取相应的差异值进行调整。In some embodiments, the mobile terminal can also obtain multiple difference values in multiple moving states with different relative moving speeds through steps S310 to S340, so that the mobile terminal can use the ultrasonic detection function each time, according to the actual Relative movement speed, select the corresponding difference value to adjust.
步骤S360:在每次对所述超声波发射模块的发射强度进行调整以及对所述移动终端获取的超声波特征值进行调整时,获取当前所述移动终端与物体之间的当前相对移动速度。Step S360: Obtain the current relative moving speed between the mobile terminal and the object each time the emission intensity of the ultrasonic transmitting module is adjusted and the ultrasonic characteristic value obtained by the mobile terminal is adjusted.
在一些实施方式中,移动终端在每次对超声波检测功能进行校准时,则可以获取移动终端当前与物体之间的当前相对移动速度,以便移动终端根据实际的相对移动速度选取相应的差异值进行校准。In some embodiments, the mobile terminal can obtain the current relative moving speed between the mobile terminal and the object each time the ultrasonic detection function is calibrated, so that the mobile terminal can select a corresponding difference value according to the actual relative moving speed calibration.
步骤S370:从所述多个差异值中,获取所述当前相对移动速度的移动状态对应的目标差异值。Step S370: Obtain a target difference value corresponding to the movement state of the current relative movement speed from the plurality of difference values.
在一些实施方式中,由于多个差异值与多个不同相对移动速度的移动状态为一一对应的关系,因此,移动终端可以从多个相对移动速度的移动状态对应的差异值中,获取与当前相对速度的移动状态对应的差异值,并将获取的差异值作为目标差异值。In some implementations, since there is a one-to-one correspondence between multiple difference values and multiple moving states with different relative moving speeds, the mobile terminal can obtain the corresponding The difference value corresponding to the movement state of the current relative speed, and use the obtained difference value as the target difference value.
在一些实施方式中,移动终端还可以将每次获取的不同相对移动速度的移动状态对应的差异值进行记录,从而可以记录到每个相对移动速度的移动状态所对应的不同时间获取的多个差异值。移动终端可以选取一个时间段内所获取的与当前相对移动速度对应的所有差异值,并计算所有差异值的平均值,将该平均值作为目标差异值。In some implementations, the mobile terminal can also record the difference values corresponding to the moving states of different relative moving speeds acquired each time, so as to record the multiple values obtained at different times corresponding to the moving states of each relative moving speed. difference value. The mobile terminal may select all difference values obtained within a period of time corresponding to the current relative moving speed, calculate an average value of all the difference values, and use the average value as the target difference value.
步骤S380:根据所述目标差异值,对所述移动终端在所述当前相对移动速度的移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整,以及对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整。Step S380: According to the target difference value, adjust the emission intensity of the ultrasonic transmitting module when the mobile terminal is in the moving state of the current relative moving speed each time when sending ultrasonic signals, and adjust the The ultrasonic characteristic value acquired each time in the moving state is adjusted.
在本申请实施例中,移动终端根据目标差异值,对移动终端在当前相对移动速度的移动状态下超声波发射模块每次发射的超声波信号时的发射强度进行调整以及对每次获取的超声波特征值进行调整的方式,可以参阅前述实施例的内容,在此不再赘述。In the embodiment of the present application, according to the target difference value, the mobile terminal adjusts the emission intensity of the ultrasonic signal transmitted by the ultrasonic transmitting module each time when the mobile terminal is in the moving state of the current relative moving speed, and adjusts the ultrasonic characteristic value obtained each time For the manner of adjustment, reference may be made to the contents of the foregoing embodiments, and details are not repeated here.
本申请实施例提供的方案,通过获取不同相对移动速度的移动状态下获取的超声波特征值与标准终端获取的超声波特征值的差异值,使移动终端在进行超声波功能的校准时,可以选取与当前相对移动速度的移动状态对应的目标差异值,并根据该目标差异值对移动终端该移动状态下每次在发送超声波信号的发射强度进行调整,以及对每次获取的超声波特征值进行调整,使得获取的超声波特征值能得到校准,从而使得移动终端检测出相对物体间的移动状态更加准确。In the solution provided by the embodiment of the present application, by obtaining the difference between the ultrasonic characteristic value obtained under different relative moving speeds and the ultrasonic characteristic value obtained by the standard terminal, the mobile terminal can select the same value as the current ultrasonic function when calibrating the ultrasonic function. The target difference value corresponding to the moving state of the relative moving speed, and according to the target difference value, adjust the emission intensity of the ultrasonic signal sent by the mobile terminal in this moving state each time, and adjust the ultrasonic characteristic value obtained each time, so that The acquired ultrasonic characteristic values can be calibrated, so that the mobile terminal can detect the moving state between relative objects more accurately.
请参阅图6,其示出了本申请实施例提供的一种超声波校准装置400的结构框图。该超声波校准装置400应用于上述移动终端,该移动终端包括超声波发射模块以及超声波接收模块。该超声波校准装置400包括:收发控制模块410、特征获取模块420、差异获取模块430以及调整执行模块440。其中,所述收发控制模块410用于在所述移动终端与物体之间相对移动的移动状态下,通过所述超声波发射模块发送超声波信号,并通过所述超声波接收模块接收超声波信号在遇到物体后返回的超声波信号;所述特征获取模块420用于获取超声波信号在传输过程中的超声波特征值;所述差异获取模块430用于获取所述超声波特征值与目标特征值之间的差异值,所述目标特征值为标准终端在所述移动状态下检测的超声波信号在传输过程中的特征值;所述调整执行模块440用于根据所述差异值,对所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整,以及对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整。Please refer to FIG. 6 , which shows a structural block diagram of an ultrasonic calibration device 400 provided by an embodiment of the present application. The ultrasonic calibration device 400 is applied to the above-mentioned mobile terminal, and the mobile terminal includes an ultrasonic transmitting module and an ultrasonic receiving module. The ultrasonic calibration device 400 includes: a transceiver control module 410 , a feature acquisition module 420 , a difference acquisition module 430 and an adjustment execution module 440 . Wherein, the transceiver control module 410 is used for sending ultrasonic signals through the ultrasonic transmitting module under the moving state of relative movement between the mobile terminal and the object, and receiving the ultrasonic signals through the ultrasonic receiving module when encountering the object. The ultrasonic signal returned afterward; the feature acquisition module 420 is used to acquire the ultrasonic feature value of the ultrasonic signal during transmission; the difference acquisition module 430 is used to acquire the difference value between the ultrasonic feature value and the target feature value, The target feature value is the feature value of the ultrasonic signal detected by the standard terminal in the moving state during the transmission process; the adjustment execution module 440 is used to adjust the mobile terminal in the moving state The following ultrasonic transmitting module adjusts the emission intensity of each ultrasonic signal sent, and adjusts the ultrasonic characteristic value acquired each time by the mobile terminal in the moving state.
在一些实施方式中,调整执行模块440可以包括差值判断单元以及特征值调整单元。差值判断单元用于判断所述差异值的绝对值是否大于预设阈值;特征值调整单元用于如果所述差异值的绝对值大于所述预设阈值,根据所述差异值,对所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整,以及对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整。In some implementations, the adjustment execution module 440 may include a difference judgment unit and a characteristic value adjustment unit. The difference value judging unit is used to judge whether the absolute value of the difference value is greater than a preset threshold; the characteristic value adjustment unit is used to adjust the When the mobile terminal is in the moving state, the ultrasonic transmitting module adjusts the emission intensity of the ultrasonic signal each time it sends, and adjusts the ultrasonic characteristic value acquired each time when the mobile terminal is in the moving state.
在一些实施方式中,调整执行模块440可以包括:差异值划分单元、第一调整单元以及第二调整单元。差异值划分单元用于将所述差异值划分为第一差异值以及第二差异值,所述第一差异值与所述第二差异值之和为所述差异值;第一调整单元用于根据所述第一差异值,对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整;第二调整单元用于根据所述第二差异值,获取目标调整强度,根据目标调整强度对所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整。In some implementations, the adjustment execution module 440 may include: a difference value division unit, a first adjustment unit, and a second adjustment unit. The difference value division unit is used to divide the difference value into a first difference value and a second difference value, and the sum of the first difference value and the second difference value is the difference value; the first adjustment unit is used to According to the first difference value, the ultrasonic feature value acquired by the mobile terminal in the moving state is adjusted each time; the second adjustment unit is used to obtain the target adjustment strength according to the second difference value, and according to the target Adjusting the intensity adjusts the emission intensity of the ultrasonic transmitting module when the mobile terminal is in the moving state each time it transmits an ultrasonic signal.
在该实施方式下,第二调整单元可以具体用于:根据超声波信号的发射强度与发射频率的对应关系、多普勒效应公式以及所述第二差异值,计算得到与所述第二差异值对应的目标调整强度;将所述移动终端在所述移动状态下所述超声波发射模块每次发送超声波信号时的发射强度增大或者减小所述目标调整强度。In this embodiment, the second adjustment unit may be specifically configured to: calculate and obtain the second difference value according to the corresponding relationship between the emission intensity of the ultrasonic signal and the emission frequency, the Doppler effect formula, and the second difference value Corresponding target adjustment intensity: increasing or decreasing the target adjustment intensity of the mobile terminal in the moving state when the ultrasonic transmitting module transmits an ultrasonic signal each time.
在该实施方式下,第一调整单元可以具体用于:将所述移动终端在所述移动状态下每次获取的超声波特征值增大或者减小所述第一差异值的大小。In this implementation manner, the first adjusting unit may be specifically configured to: increase or decrease the size of the first difference value of the ultrasonic feature value acquired each time by the mobile terminal in the moving state.
在该实施方式下,差异值划分单元可以具体用于:获取所述差异值与预设比例的乘积,将所述乘积作为第一差异值;获取所述差异值与所述第一差异值的差值,将所述差值作为第二差异值。In this embodiment, the difference value division unit may be specifically configured to: obtain the product of the difference value and a preset ratio, and use the product as the first difference value; obtain the difference between the difference value and the first difference value A difference value, using the difference value as a second difference value.
在一些实施方式中,差异获取模块430包括速度获取单元、特征值选取单元以及差异值计算单元。速度获取单元用于获取所述移动终端与物体之间的相对移动速度;特征值选取单元用于获取所述标准终端在所述相对移动速度的移动状态下检测到的目标特征值;差异值计算单元用于计算所述超声波特征值与所述目标特征值的差值,得到所述移动终端在所述相对移动速度的移动状态下的差异值。In some implementations, the difference acquisition module 430 includes a speed acquisition unit, a feature value selection unit, and a difference value calculation unit. The speed acquisition unit is used to obtain the relative moving speed between the mobile terminal and the object; the characteristic value selection unit is used to obtain the target characteristic value detected by the standard terminal in the moving state of the relative moving speed; difference value calculation The unit is used to calculate the difference between the ultrasonic feature value and the target feature value to obtain the difference value of the mobile terminal in the moving state of the relative moving speed.
在该实施方式下,差异获取模块430还用于获取所述移动终端在不同相对移动速度的多个移动状态下的多个差异值,其中,所述多个移动状态与所述多个差异值一一对应。In this embodiment, the difference obtaining module 430 is also used to obtain multiple difference values of the mobile terminal in multiple moving states with different relative moving speeds, wherein the multiple moving states and the multiple difference values One to one correspondence.
进一步的,调整执行模块440可以具体用于:在每次对所述超声波发射模块的发射强度进行调整以及对所述移动终端获取的超声波特征值进行调整时,获取当前所述移动终端与物体之间的当前相对移动速度;从所述多个差异值中,获取所述当前相对移动速度的移动状态对应的目标差异值;根据所述目标差异值,对所述移动终端在所述当前相对移动速度的移动状态下所述超声波发射模块每次发送超声波信号时的发射强度进行调整,以及对所述移动终端在所述移动状态下每次获取的超声波特征值进行调整。Further, the adjustment execution module 440 may be specifically configured to: acquire the current distance between the mobile terminal and the object each time the emission intensity of the ultrasonic emission module is adjusted and the characteristic value of the ultrasonic wave obtained by the mobile terminal is adjusted. the current relative moving speed between them; from the plurality of difference values, obtain the target difference value corresponding to the moving state of the current relative moving speed; In the moving state of the speed, the emission intensity of the ultrasonic transmitting module is adjusted each time the ultrasonic signal is sent, and the ultrasonic characteristic value acquired by the mobile terminal in the moving state is adjusted each time.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
综上所述,本申请提供的方案,在移动终端与物体之间相对移动的移动状态下,通过超声波发射模块发送超声波信号,并通过超声波接收模块接收超声波信号在遇到物体后返回的超声波信号,获取超声波信号在传输过程中的超声波特征值,获取超声波特征值与目标特征值之间的差异值,目标特征值为标准终端在移动状态下检测的超声波信号在传输过程中的特征值,根据差异值,对移动终端在移动状态下超声波发射模块每次发送超声波信号时的发射强度进行调整。因此,实现根据同一移动状态下获取的超声波特征值与标准终端获取的超声波特征值的差异值,对移动终端该移动状态下每次在发送超声波信号的发射强度进行调整,以及对每次获取的用于接近检测的超声波特征值进行调整,使得获取的超声波特征值能得到校准,从而使得移动终端检测出相对物体间的移动状态更加准确。To sum up, in the solution provided by this application, in the moving state between the mobile terminal and the object, the ultrasonic signal is sent through the ultrasonic transmitting module, and the ultrasonic signal is received by the ultrasonic receiving module after the ultrasonic signal encounters the object. , to obtain the ultrasonic eigenvalue of the ultrasonic signal during the transmission process, and to obtain the difference between the ultrasonic eigenvalue and the target eigenvalue, the target eigenvalue is the eigenvalue of the ultrasonic signal detected by the standard terminal in the moving state during the transmission process, according to The difference value is used to adjust the emission intensity of the ultrasonic transmitting module when the mobile terminal is in a moving state each time when it sends an ultrasonic signal. Therefore, according to the difference value between the ultrasonic characteristic value acquired in the same moving state and the ultrasonic characteristic value obtained by the standard terminal, the mobile terminal is in this moving state. The ultrasonic eigenvalues used for proximity detection are adjusted so that the acquired ultrasonic eigenvalues can be calibrated, so that the mobile terminal can detect the moving state between relative objects more accurately.
请参考图7,其示出了本申请实施例提供的一种移动终端的结构框图。该移动终端100可以是智能手机、平板电脑、电子书等能够运行应用程序的移动终端。本申请中的移动终端100可以包括一个或多个如下部件:处理器110、存储器120、显示屏130、超声波发送模块140、超声波接收模块150以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 7 , which shows a structural block diagram of a mobile terminal provided by an embodiment of the present application. The
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个移动终端100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行移动终端100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。Processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts in the entire
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area can also store data created by the terminal 100 during use (such as phonebook, audio and video data, chat record data) and the like.
显示屏130用于显示由用户输入的信息、提供给用户的信息以及所述移动终端100的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,该显示屏130可以为液晶显示器(Liquid Crystal Display,LCD),也可以为有机发光二极管(Organic Light-Emitting Diode,OLED),在此不做限定。The display screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the
超声波发射模块140用于发射超声波,超声波发射设备模块140可以是听筒、喇叭、专用超声波发射器等,在此不做限定。超声波接收模块150用于接收超声波,超声波接收设备模块150可以是拾音器等,在此不做限定。The ultrasonic emitting module 140 is used for emitting ultrasonic waves. The ultrasonic emitting device module 140 may be an earpiece, a horn, a dedicated ultrasonic emitter, etc., which is not limited here. The ultrasonic receiving module 150 is used for receiving ultrasonic waves. The ultrasonic receiving device module 150 may be a sound pickup or the like, which is not limited here.
请参考图8,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 8 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 800 has a storage space for
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110762251.3A CN113517935B (en) | 2019-07-31 | 2019-07-31 | Ultrasonic calibration method, device, mobile terminal and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110762251.3A CN113517935B (en) | 2019-07-31 | 2019-07-31 | Ultrasonic calibration method, device, mobile terminal and storage medium |
CN201910701488.3A CN110535535B (en) | 2019-07-31 | 2019-07-31 | Ultrasonic calibration method, device, mobile terminal and storage medium |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910701488.3A Division CN110535535B (en) | 2019-07-31 | 2019-07-31 | Ultrasonic calibration method, device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113517935A CN113517935A (en) | 2021-10-19 |
CN113517935B true CN113517935B (en) | 2023-01-06 |
Family
ID=68661710
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110762251.3A Active CN113517935B (en) | 2019-07-31 | 2019-07-31 | Ultrasonic calibration method, device, mobile terminal and storage medium |
CN201910701488.3A Active CN110535535B (en) | 2019-07-31 | 2019-07-31 | Ultrasonic calibration method, device, mobile terminal and storage medium |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910701488.3A Active CN110535535B (en) | 2019-07-31 | 2019-07-31 | Ultrasonic calibration method, device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN113517935B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11156714B2 (en) * | 2020-02-13 | 2021-10-26 | Tymphany Acoustic Technology (Huizhou) Co., Ltd. | Object movement detection based on ultrasonic sensor data analysis |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106385290A (en) * | 2016-08-16 | 2017-02-08 | 北京小米移动软件有限公司 | Ultrasonic calibration method and device |
CN108566479A (en) * | 2017-12-29 | 2018-09-21 | 努比亚技术有限公司 | screen state control method, mobile terminal and computer readable storage medium |
CN108562890A (en) * | 2017-12-29 | 2018-09-21 | 努比亚技术有限公司 | Calibration method, device and the computer readable storage medium of ultrasonic wave characteristic value |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9538982B2 (en) * | 2010-12-18 | 2017-01-10 | Massachusetts Institute Of Technology | User interface for ultrasound scanning system |
US8676438B2 (en) * | 2012-07-31 | 2014-03-18 | Ford Global Technologies | Method and system for implementing ultrasonic sensor signal strength calibrations |
US9667352B2 (en) * | 2015-01-09 | 2017-05-30 | Facebook, Inc. | Ultrasonic communications for wireless beacons |
US11125866B2 (en) * | 2015-06-04 | 2021-09-21 | Chikayoshi Sumi | Measurement and imaging instruments and beamforming method |
CN106546970B (en) * | 2016-10-19 | 2019-02-12 | 北京小米移动软件有限公司 | The ultrasonic wave calibration method and device of mobile device |
CN106546969B (en) * | 2016-10-19 | 2018-12-25 | 北京小米移动软件有限公司 | The method and device of ultrasonic wave calibration |
CN107991664A (en) * | 2017-11-30 | 2018-05-04 | 努比亚技术有限公司 | Calibration method, device and the computer-readable recording medium of ultrasonic wave threshold value |
CN108196778B (en) * | 2017-12-29 | 2021-08-10 | 努比亚技术有限公司 | Control method of screen state, mobile terminal and computer readable storage medium |
-
2019
- 2019-07-31 CN CN202110762251.3A patent/CN113517935B/en active Active
- 2019-07-31 CN CN201910701488.3A patent/CN110535535B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106385290A (en) * | 2016-08-16 | 2017-02-08 | 北京小米移动软件有限公司 | Ultrasonic calibration method and device |
CN108566479A (en) * | 2017-12-29 | 2018-09-21 | 努比亚技术有限公司 | screen state control method, mobile terminal and computer readable storage medium |
CN108562890A (en) * | 2017-12-29 | 2018-09-21 | 努比亚技术有限公司 | Calibration method, device and the computer readable storage medium of ultrasonic wave characteristic value |
Also Published As
Publication number | Publication date |
---|---|
CN113517935A (en) | 2021-10-19 |
CN110535535B (en) | 2021-08-17 |
CN110535535A (en) | 2019-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017947A1 (en) | Terminal control method and device, mobile terminal and storage medium | |
CN110502109B (en) | Information processing method, information processing device, electronic equipment and storage medium | |
US20230333205A1 (en) | Sound source positioning method and apparatus | |
WO2021017950A1 (en) | Ultrasonic processing method and apparatus, electronic device and computer-readable medium | |
CN111479011B (en) | Power adjustment method, device, storage medium and electronic equipment | |
EP3979611B1 (en) | Ultrasonic processing method and apparatus, electronic device, and computer-readable medium | |
US20220036588A1 (en) | Parameter obtaining method and terminal device | |
CN110865710B (en) | Terminal control method and device, mobile terminal and storage medium | |
WO2021017859A1 (en) | Screen state control method and apparatus, mobile terminal and storage medium | |
CN109274441B (en) | A tuning method and terminal device | |
CN110287755A (en) | Information processing method and device, electronic equipment and computer readable storage medium | |
CN105282320A (en) | Control method of terminal and terminal | |
WO2021017927A1 (en) | Method and device for controlling apparatus, electronic apparatus, and storage medium | |
CN110031860B (en) | Laser ranging method, device and mobile terminal | |
CN106843457B (en) | Gesture recognition system and gesture recognition method adopting same | |
WO2021017855A1 (en) | Ring processing method and apparatus, mobile terminal and storage medium | |
WO2021017851A1 (en) | Screen state control method and apparatus, mobile terminal and storage medium | |
CN113517935B (en) | Ultrasonic calibration method, device, mobile terminal and storage medium | |
CN107782250A (en) | A kind of depth information measuring method, device and mobile terminal | |
CN112256135A (en) | Device control method and device, device, and storage medium | |
CN109831583B (en) | Audio playing control method and terminal equipment | |
CN108107422B (en) | A kind of method for determining speed and mobile terminal of Moving Objects | |
CN114513573A (en) | Screen control method and device, electronic equipment and storage medium | |
CN110912284A (en) | A wireless charging control method and wireless charging assembly | |
CN116246645A (en) | Voice processing method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |