CN108562890B - Method and device for calibrating ultrasonic characteristic value and computer readable storage medium - Google Patents

Method and device for calibrating ultrasonic characteristic value and computer readable storage medium Download PDF

Info

Publication number
CN108562890B
CN108562890B CN201711498215.0A CN201711498215A CN108562890B CN 108562890 B CN108562890 B CN 108562890B CN 201711498215 A CN201711498215 A CN 201711498215A CN 108562890 B CN108562890 B CN 108562890B
Authority
CN
China
Prior art keywords
ultrasonic
characteristic value
frequency
mobile terminal
ultrasonic signal
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
Application number
CN201711498215.0A
Other languages
Chinese (zh)
Other versions
CN108562890A (en
Inventor
白金
郭佳良
孙丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711498215.0A priority Critical patent/CN108562890B/en
Publication of CN108562890A publication Critical patent/CN108562890A/en
Application granted granted Critical
Publication of CN108562890B publication Critical patent/CN108562890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/52Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S15/00
    • G01S7/52004Means for monitoring or calibrating

Abstract

The invention discloses a method and a device for calibrating an ultrasonic characteristic value and a computer readable storage medium, wherein the method for calibrating the ultrasonic characteristic value comprises the following steps: under the condition that the first ultrasonic signal is transmitted through the ultrasonic transmitter, determining whether the second ultrasonic signal reflected by the object can be received through the ultrasonic receiver; if the second ultrasonic signal can be received, calculating a characteristic value corresponding to the second ultrasonic signal; and adjusting the characteristic value corresponding to the second ultrasonic signal by adopting the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal to obtain an adjusted characteristic value, so as to judge the state that the object is far away from or approaches the mobile terminal according to the adjusted characteristic value. According to the invention, through the calibration of the ultrasonic characteristic value, the state that the object is far away from or approaches the mobile terminal is judged according to the calibrated ultrasonic characteristic value, and the accuracy of the mobile terminal in judging the state that the object is far away from or approaches is improved.

Description

Method and device for calibrating ultrasonic characteristic value and computer readable storage medium
Technical Field
The present invention relates to the field of mobile terminals, and in particular, to a method and apparatus for calibrating an ultrasonic characteristic value, and a computer readable storage medium.
Background
At present, the state that an object approaches or is far away from a mobile terminal can be judged through ultrasonic signals, specifically, in the motion process of the mobile terminal relative to the object, the mobile terminal sends out ultrasonic signals, receives ultrasonic signals returned through reflection of the object, calculates the amplitude difference between the received ultrasonic signals and the sent ultrasonic signals, and determines whether the object approaches or is far away from the mobile terminal through comparison of the amplitude difference and a certain threshold value. However, in each current mobile terminal, the threshold is set to be the same value, if the existing technical scheme is adopted to judge whether the object is far away from or approaches to the state of the mobile terminal, the judgment result is inaccurate.
Disclosure of Invention
The invention mainly aims to provide a calibration method and device of an ultrasonic characteristic value and a computer readable storage medium, and aims to solve the technical problem that an inaccurate judgment result of a mobile terminal is easily caused by the existing mode of judging whether an object is far away from or approaches to the state of the mobile terminal.
In order to achieve the above object, the present invention provides a method for calibrating an ultrasonic characteristic value, the method for calibrating an ultrasonic characteristic value comprising:
Under the condition that the first ultrasonic signal is transmitted through the ultrasonic transmitter, determining whether the second ultrasonic signal reflected by the object can be received through the ultrasonic receiver;
if the second ultrasonic signal can be received, calculating a characteristic value corresponding to the second ultrasonic signal;
and adjusting the characteristic value corresponding to the second ultrasonic signal by adopting the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal to obtain an adjusted characteristic value, so as to judge the state that the object is far away from or approaches the mobile terminal according to the adjusted characteristic value.
Optionally, when the characteristic value is the amplitude change rate of the ultrasonic signal, the step of calculating the characteristic value corresponding to the second ultrasonic signal if the second ultrasonic signal can be received includes:
if the second ultrasonic signal can be received, acquiring an ultrasonic amplitude corresponding to the second ultrasonic signal at the current moment, and acquiring an ultrasonic amplitude corresponding to the second ultrasonic signal at the previous moment;
and calculating the difference value of the ultrasonic amplitude at the current moment and the previous moment to obtain the amplitude change rate of the ultrasonic signal.
Optionally, when the characteristic value is a doppler effect area difference of the ultrasonic signal, the step of calculating the characteristic value corresponding to the second ultrasonic signal if the second ultrasonic signal can be received includes:
If the second ultrasonic signal can be received, acquiring and determining the receiving frequency of the second ultrasonic signal received by the ultrasonic receiver and the receiving frequency variation range of the second ultrasonic signal received by the ultrasonic receiver;
determining a frequency variation interval according to the receiving frequency and the receiving frequency variation range;
and calculating Doppler effect area difference of the ultrasonic signal according to the frequency change interval and the intensity change curve corresponding to the frequency change interval.
Optionally, the step of adjusting the characteristic value corresponding to the second ultrasonic signal by using the standard frequency response characteristic of the standard device and the frequency response characteristic of the mobile terminal to obtain the adjusted characteristic value includes:
acquiring a first amplitude corresponding to the frequency response characteristic of the mobile terminal, and acquiring a second amplitude corresponding to the standard frequency response characteristic of standard equipment;
comparing the first amplitude with the second amplitude;
and calculating a difference value corresponding to the two amplitude values according to the comparison result, and adjusting a characteristic value corresponding to the second ultrasonic signal according to the calculated difference value to obtain an adjusted characteristic value.
Optionally, the step of calculating a difference value corresponding to the two amplitude values according to the comparison result, and adjusting a feature value corresponding to the second ultrasonic signal according to the calculated difference value, so as to obtain an adjusted feature value includes:
When the first amplitude is larger than the second amplitude, subtracting the second amplitude from the first amplitude to obtain a difference value;
subtracting the difference value from the characteristic value corresponding to the second ultrasonic signal to obtain an adjusted characteristic value.
Optionally, the step of calculating a difference value corresponding to the two amplitude values according to the comparison result, and adjusting a feature value corresponding to the second ultrasonic signal according to the calculated difference value, so as to obtain an adjusted feature value further includes:
when the first amplitude value is smaller than the second amplitude value, subtracting the first amplitude value from the second amplitude value to obtain a difference value;
and adding the difference value to the characteristic value corresponding to the second ultrasonic signal to obtain an adjusted characteristic value.
Optionally, after the step of adjusting the characteristic value corresponding to the second ultrasonic signal by using the standard frequency response characteristic of the standard device and the frequency response characteristic of the mobile terminal to obtain the adjusted characteristic value, the method further includes:
inputting the adjusted characteristic values as input parameters into a preset Support Vector Machine (SVM) model to obtain output parameters through the SVM model;
determining a label corresponding to the output parameter according to a preset mapping relation between the output parameter and the label;
And determining the state of the object relative to the mobile terminal according to the determined label.
Optionally, the step of determining the state of the object relative to the mobile terminal according to the determined tag comprises:
if the label is the first identification, determining that the current object is close to the mobile terminal;
if the label is the second label, determining that the object is in a constant state relative to the mobile terminal;
if the label is the third label, determining that the current object is far away from the mobile terminal.
In addition, in order to achieve the above object, the present invention also provides an apparatus for calibrating an ultrasonic characteristic value, the apparatus including a memory, a processor, and a calibration program for an ultrasonic characteristic value stored in the memory and executable on the processor, the calibration program for an ultrasonic characteristic value implementing the steps of the method for calibrating an ultrasonic characteristic value as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a calibration program of ultrasonic characteristic values, which when executed by a processor, implements the steps of the method of calibrating ultrasonic characteristic values as described above.
According to the calibration method of the ultrasonic characteristic value, under the condition that the ultrasonic transmitter transmits the first ultrasonic signal, whether the ultrasonic receiver can receive the second ultrasonic signal reflected by the object or not is determined, if the ultrasonic receiver can receive the second ultrasonic signal, the characteristic value corresponding to the second ultrasonic signal is calculated, and the characteristic value corresponding to the second ultrasonic signal is adjusted by adopting the standard frequency response characteristic of standard equipment and the frequency response characteristic of the mobile terminal, so that the adjusted characteristic value is obtained, and the state that the object is far away from or approaches to the mobile terminal is judged according to the adjusted characteristic value. According to the invention, the ultrasonic characteristic value of the mobile terminal is adjusted according to the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal, and the adjusted ultrasonic characteristic value is different due to different frequency response characteristics of different mobile terminals, so that the state that an object approaches or is far away from the mobile terminal is judged through the ultrasonic characteristic value, the actual situation of the mobile terminal is more met, and the judging result is more accurate.
Drawings
FIG. 1 is a schematic diagram of a hardware architecture of an apparatus for implementing various embodiments of the present invention;
Fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention;
FIG. 3 is a flowchart of a calibration method for ultrasonic eigenvalues according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram of a mobile terminal connected to standard equipment to implement calibration of an ultrasonic characteristic value of the mobile terminal according to the present invention;
FIG. 5 is a schematic diagram of an external control device connecting a mobile terminal and a standard device to realize the calibration of the ultrasonic characteristic value of the mobile terminal;
FIG. 6 is a schematic diagram of a mobile terminal transmitting ultrasonic signals through an earpiece and receiving ultrasonic signals through a microphone in accordance with the present invention;
FIG. 7 is a schematic diagram of a first refinement procedure of step S20 in FIG. 3;
FIG. 8 is a schematic diagram of a second refinement procedure of step S20 in FIG. 3;
FIG. 9 is a schematic illustration of calculating a first area and a second area in accordance with an embodiment of the present invention;
FIG. 10 is a flowchart of a second embodiment of the method for calibrating an ultrasonic characteristic value according to the present invention;
FIG. 11 is a schematic diagram of a first refinement procedure of step S33 in FIG. 10;
FIG. 12 is a schematic diagram of a second refinement of step S33 in FIG. 10;
fig. 13 is a flowchart of a third embodiment of the method for calibrating an ultrasonic characteristic value according to the present invention.
The achievement of the object, functional features and advantages of the present invention will be described with reference to the embodiments with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
Mobile terminals may be implemented in a variety of forms. For example, mobile terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and stationary mobile terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type mobile terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic hardware structure of an apparatus implementing various embodiments of the present invention, the apparatus may be alternatively a mobile terminal, and the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division Synchronous Code Division Multiple Access, time division synchronous code division multiple access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution), and the like.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
In addition, in the mobile terminal shown in fig. 1, the memory 109 stores thereon a calibration program of the ultrasonic characteristic value running on the processor 110, and the mobile terminal calls the calibration program of the ultrasonic characteristic value stored in the memory 109 through the processor 110 and performs the steps of the ultrasonic characteristic value calibration method hereinafter.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the mobile terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the hardware structure of the device and the communication network system, various embodiments of the method for calibrating the ultrasonic characteristic value are provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating a first embodiment of a method for calibrating an ultrasonic characteristic value according to the present invention.
In this embodiment, the method for calibrating the ultrasonic characteristic value includes:
step S10, determining whether a second ultrasonic signal reflected by the object can be received by the ultrasonic receiver or not under the condition that the first ultrasonic signal is transmitted by the ultrasonic transmitter;
step S20, if the second ultrasonic signal can be received, calculating a characteristic value corresponding to the second ultrasonic signal;
and step S30, adjusting the characteristic value corresponding to the second ultrasonic signal by adopting the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal to obtain an adjusted characteristic value, so as to judge the state that the object is far away from or approaches the mobile terminal according to the adjusted characteristic value.
In this embodiment, the method for calibrating the ultrasonic characteristic value may be optionally applied to a device for calibrating the ultrasonic characteristic value, where the device may be selected from the mobile terminal shown in fig. 1, the mobile terminal may directly store a second amplitude corresponding to the standard frequency response characteristic of the standard device, and referring to fig. 4, the mobile terminal may be further connected to the standard device to obtain the second amplitude corresponding to the standard frequency response characteristic of the standard device, and both the mobile terminal and the standard device may be selected as smart phones. In this embodiment, the calibration device of the ultrasonic characteristic value may also be an external control device, referring to fig. 5, where the external control device may be connected to a mobile terminal and a standard device, both the mobile terminal and the standard device may be smart phones, and the external control device may be a PC side. That is, in this embodiment, the mobile terminal may calibrate its own ultrasonic characteristic value when the mobile terminal is connected to the standard device; the external control device can calibrate the ultrasonic characteristic value of the mobile terminal through the standard device under the condition that the external control device is connected with the mobile terminal and the standard device.
The following is a specific step for realizing calibration of the ultrasonic characteristic value in this embodiment:
Step S10, determining whether a second ultrasonic signal reflected by the object can be received by the ultrasonic receiver or not under the condition that the first ultrasonic signal is transmitted by the ultrasonic transmitter;
in this embodiment, the implementation manner of step S10 includes:
1) In the first mode, when the calibration device of the ultrasonic characteristic value is a mobile terminal, the mobile terminal determines whether to receive a second ultrasonic signal reflected by the object through the ultrasonic receiver when the mobile terminal transmits the first ultrasonic signal through the ultrasonic transmitter.
2) And when the calibration device of the ultrasonic characteristic value is an external control device, the external control device controls the ultrasonic transmitter of the mobile terminal to transmit a first ultrasonic signal, and under the condition of controlling the ultrasonic transmitter to transmit the first ultrasonic signal, the ultrasonic receiver is controlled to receive second ultrasonic information so as to determine whether the second ultrasonic signal reflected by the object can be received by the first ultrasonic signal through the ultrasonic receiver.
In the embodiment of the present invention, the mobile terminal may be used as an execution body, or the external control device may be used as an execution body, which is not particularly limited, and the mobile terminal is used as the execution body for the convenience of detailed description.
In this embodiment, in order to save the cost of the mobile terminal, the earpiece of the mobile terminal may be used as the ultrasonic transmitter and the microphone of the mobile terminal may be used as the ultrasonic receiver. Specifically, referring to fig. 6, fig. 6 is a schematic diagram of a mobile terminal according to an embodiment of the present invention, in which an ultrasonic signal is transmitted through an earpiece and received through a microphone. In other embodiments, an ultrasonic transmitter dedicated to transmitting ultrasonic signals and an ultrasonic receiver dedicated to receiving ultrasonic signals may be provided at the mobile terminal.
Step S20, if the second ultrasonic signal can be received, calculating a characteristic value corresponding to the second ultrasonic signal;
if the mobile terminal can receive the second ultrasonic signal through the ultrasonic receiver, calculating a feature value corresponding to the second ultrasonic signal, where in this embodiment, the feature value includes: doppler signal area difference, amplitude change rate and difference value between the amplitude change rate and Doppler signal area difference of the ultrasonic signal.
Specifically, the embodiment of step S20 includes:
1) When the characteristic value is the amplitude change rate of the ultrasonic signal, referring to fig. 7, the step S20 includes:
Step S21, if the second ultrasonic signal can be received, acquiring an ultrasonic amplitude corresponding to the second ultrasonic signal at the current moment, and acquiring an ultrasonic amplitude corresponding to the second ultrasonic signal at the previous moment;
step S22, calculating the difference value of the ultrasonic wave amplitude values at the current moment and the last moment to obtain the amplitude change rate of the ultrasonic wave signal.
That is, when the characteristic value is the amplitude change rate of the ultrasonic signal, the mobile terminal firstly acquires the ultrasonic amplitude corresponding to the second ultrasonic signal at the current moment and acquires the ultrasonic amplitude corresponding to the second ultrasonic signal at the previous moment, wherein the time interval between the previous moment and the current moment is not limited, and is optionally set to be 1S according to actual needs. It should be noted that, when the mobile terminal receives the ultrasonic signal through the ultrasonic receiver, the mobile terminal records the amplitude of the ultrasonic signal received at each moment of the ultrasonic signal. Then, after the ultrasonic amplitude at the current moment is acquired and the ultrasonic amplitude at the previous moment is acquired, the difference value of the ultrasonic amplitudes at the two moments can be calculated, and the difference value is used as the amplitude change rate of the ultrasonic signal.
In this embodiment, in the process of the relative movement between the mobile terminal and the object, the amplitude change rate of the ultrasonic signal is recorded, so that the amplitude change rate is used as an ultrasonic characteristic value, and the ultrasonic characteristic value is subsequently adjusted through the standard frequency response characteristic of the standard device and the frequency response characteristic of the mobile terminal, so that the calibration of the ultrasonic characteristic value is realized, and the accuracy of subsequently judging whether the object approaches or departs from the mobile terminal is improved.
2) When the characteristic value is the doppler effect area difference of the ultrasonic signal, referring to fig. 8, the step S20 includes:
step S23, if the second ultrasonic signal can be received, acquiring and determining the receiving frequency of the second ultrasonic signal received by the ultrasonic receiver and the receiving frequency variation range of the second ultrasonic signal received by the ultrasonic receiver;
step S24, determining a frequency variation interval according to the receiving frequency and the receiving frequency variation range;
step S25, calculating Doppler effect area difference of the ultrasonic signal according to the frequency variation interval and the intensity variation curve corresponding to the frequency variation interval.
That is, the mobile terminal determines the reception frequency of the ultrasonic signal transmitted by its ultrasonic receiver and the frequency variation range of the ultrasonic signal received by the ultrasonic receiver. In this embodiment, the variation range of the movement speed of most users when using the mobile terminal, such as 0.2-20 m/s (meters per second) or 0.085-17 m/s, can be determined by a finite number of tests, i.e. the speed range is the speed of most users when using the mobile terminal. According to the change range of the motion speed, the frequency change range can be determined through the Doppler effect, and the relationship between the speed and the frequency in the Doppler effect is as follows:
Where f is the reception frequency of the ultrasonic signal received by the ultrasonic receiver, f 0 The transmission frequency of the ultrasonic signal transmitted by the ultrasonic wave transmitting device is c, the propagation speed of the ultrasonic signal in the air is 340m/s (meters per second), and Deltav is the speed of the obstacle relative to the ultrasonic sound source, namely the speed when the user uses the mobile terminal; thereby, the frequency is changedWhen the transmission frequency of the ultrasonic signal is 40KHz, the speed of the obstacle relative to the ultrasonic sound source is changed between 0.085 and 17m/s, and the frequency change range is 10Hz to 20KHz. According to the sending frequency of the ultrasonic signal and the speed of most users when using the mobile terminal, the corresponding frequency change range is determined, so that the method can adapt to the requirements of most users.
According to the Doppler effect, when an object moves relative to the mobile terminal, if the mobile terminal and the object are close to each other, an ultrasonic signal is compressed, the wavelength of the ultrasonic signal becomes shorter, and the frequency becomes higher, namely, a blue shift phenomenon is generated; if the mobile terminal and the object are far away from each other, the opposite effect is generated, the wavelength of the ultrasonic signal becomes longer, and the frequency becomes lower, i.e. a red shift phenomenon is generated. It should be noted that the greater the speed of relative movement between the mobile terminal and the object, the greater the resulting blue-shift or red-shift effect. It can be understood that the object of this embodiment moves relative to the mobile terminal, and in this embodiment, when the user uses the mobile terminal, the user holds the mobile terminal close to the human body or far away from the human body, and the speed of the user holding the mobile terminal is considered to be changed within a certain range, so that the frequency change of the ultrasonic signal received by the ultrasonic receiver is also correspondingly within a certain range, that is, the frequency change range.
In the present embodiment, the areas involved in calculating the doppler effect area difference are referred to as a first area and a second area, respectively.
The frequency variation range of the ultrasonic signal includes an upper limit value and a lower limit value, and the increase and decrease of the transmission frequency depend on the difference of the transmission frequency and the frequency variation range relation.
The process of calculating the frequency change interval corresponding to the first area according to the transmitting frequency and the frequency change range is as follows: and determining a frequency change interval according to a relation between the transmitting frequency and the upper limit value and the lower limit value. Specifically, the interval is an interval in which the frequency of the ultrasonic signal received by the ultrasonic receiver is greater than the transmission frequency. The relation is to sum up the transmission frequency and the frequency fluctuation range, so as to enlarge the receiving frequency. For example, when the emission frequency is 40KHz and the frequency variation range is 10 Hz-20 KHz, the upper limit value is 20KHz, and the lower limit value is 10Hz, the first area corresponds to the relation between (40+20) KHz and (40+0.01) KHz, and the corresponding frequency variation range is (40+0.01) to (40+20) KHz.
The process of calculating the frequency change interval corresponding to the second area according to the transmitting frequency and the frequency change range is as follows: and determining a frequency change interval according to a relation between the transmitting frequency and the upper limit value and the lower limit value. Specifically, the interval is an interval in which the frequency of the ultrasonic signal received by the ultrasonic receiver is smaller than the transmission frequency, and the second area corresponds to a relational expression in which the transmission frequency and the upper limit value and the lower limit value of the frequency fluctuation range are subjected to difference calculation, so that the reception frequency is reduced. If the emission frequency is 40KHz, the frequency variation range is 10 Hz-20 KHz, the upper limit value is 20KHz, the lower limit value is 10Hz, the corresponding relation of the second area is (40-20) KHz and (40-0.01) KHz, and the corresponding frequency variation interval is (40-20) to (40-0.01) KHz.
Referring to fig. 9, after determining and calculating a frequency variation section corresponding to the first area, an intensity variation curve corresponding to the frequency variation section is determined. Wherein the intensity change curve is recorded during transmission of the ultrasonic signal. After the intensity change curve is determined, the intensity value of the Y-axis corresponding to the starting point and the ending point of the frequency change section is taken as a first area, the frequency change range on the X-axis of the section and the area of a closed area surrounded by the intensity change curve of the frequency change section are taken as a first area, and the size of the first area can be obtained by integrating the X-axis through the intensity change curve according to the upper limit value and the lower limit value of the frequency change section corresponding to the first area. It will be appreciated that the process of calculating the second area is identical to the process of calculating the first area, and will not be described in detail herein.
After obtaining the first area and the second area, the mobile terminal calculates and subtracts the second area from the first area to obtain an area difference between the first area and the second area, and the area difference is recorded as Doppler effect area difference of the ultrasonic wave.
In the process of relative movement of the mobile terminal and the object, the Doppler effect area difference of the ultrasonic signal is recorded, the Doppler effect area difference is used as an ultrasonic characteristic value, and the ultrasonic characteristic value is adjusted through the standard frequency response characteristic of standard equipment and the frequency response characteristic of the mobile terminal, so that the calibration of the ultrasonic characteristic value is realized, and the accuracy of judging whether the object is approaching or far away relative to the mobile terminal is improved.
3) When the characteristic value is a difference between the amplitude change rate and the doppler effect area difference, the step S20 includes:
if the second ultrasonic signal is received, calculating a difference value between the amplitude change rate and the Doppler effect area difference according to the amplitude change rate and the Doppler effect area difference of the second ultrasonic signal.
It should be noted that, the mobile terminal may use one eigenvalue value of the amplitude change rate, the doppler effect area difference, and the difference between the amplitude change rate and the doppler effect area difference of the ultrasonic signal as an input parameter of the SVM model, but in order to improve the accuracy of the detection result, a plurality of eigenvalues may also be used as input parameters of the SVM model.
And step S30, adjusting the characteristic value corresponding to the second ultrasonic signal by adopting the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal to obtain an adjusted characteristic value, so as to judge the state that the object is far away from or approaches the mobile terminal according to the adjusted characteristic value.
After the characteristic value corresponding to the second ultrasonic signal is calculated, the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal are obtained, the characteristic value corresponding to the second ultrasonic signal is adjusted according to the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal, so that the adjusted characteristic value is obtained, and then the state that the object is far away from or approaches to the mobile terminal can be judged according to the adjusted characteristic value.
According to the calibration method for the ultrasonic characteristic value, under the condition that the ultrasonic transmitter transmits the first ultrasonic signal, whether the ultrasonic receiver can receive the second ultrasonic signal reflected by the object or not is determined, if the ultrasonic receiver can receive the second ultrasonic signal, the characteristic value corresponding to the second ultrasonic signal is calculated, and the characteristic value corresponding to the second ultrasonic signal is adjusted by adopting the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal, so that the adjusted characteristic value is obtained, and the state that the object is far away from or approaches to the mobile terminal is judged according to the adjusted characteristic value. According to the invention, the ultrasonic characteristic value of the mobile terminal is adjusted according to the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal, and the adjusted ultrasonic characteristic value is different due to different frequency response characteristics of different mobile terminals, so that the state that an object approaches or is far away from the mobile terminal is judged through the ultrasonic characteristic value, the actual situation of the mobile terminal is more met, and the judging result is more accurate.
Further, a second embodiment of the calibration method of ultrasonic characteristic values of the present invention is proposed based on the first embodiment.
The second embodiment of the method for calibrating an ultrasonic characteristic value is different from the first embodiment of the method for calibrating an ultrasonic characteristic value in that, referring to fig. 10, the step S30 includes:
step S31, a first amplitude corresponding to the frequency response characteristic of the mobile terminal is obtained, and a second amplitude corresponding to the standard frequency response characteristic of standard equipment is obtained;
step S32, comparing the first amplitude with the second amplitude;
and step S33, calculating a difference value corresponding to the two amplitude values according to the comparison result, and adjusting a characteristic value corresponding to the second ultrasonic signal according to the calculated difference value to obtain an adjusted characteristic value.
The frequency response characteristic refers to a phenomenon in which when an audio signal output at a constant voltage is connected to a system, a sound pressure generated increases or decreases with a change in frequency, and a phase changes with the frequency, and a relationship between the sound pressure and the phase and the frequency is referred to as a frequency response characteristic.
In this embodiment, the implementation of step S31 includes:
1) In a first manner, the mobile terminal obtains a first amplitude corresponding to a local frequency response characteristic, and specifically, the step S10 includes: when receiving an adjustment instruction of the ultrasonic characteristic value, the mobile terminal acquires a first amplitude corresponding to the frequency response characteristic of the mobile terminal, and acquires a second amplitude corresponding to the standard frequency response characteristic of the connected standard equipment. The adjustment instruction may be that the user clicks a suspension button displayed in the display interface of the mobile terminal to trigger, or that the user inputs a preset touch operation or a preset gesture in the setting interface to trigger, and a specific triggering mode is not limited, and is specifically set according to an actual situation.
In this embodiment, the first amplitude may be an amplitude obtained by the mobile terminal at a set frequency, after the mobile terminal obtains the first amplitude, a second amplitude corresponding to a standard frequency response characteristic of the standard device is obtained, where the second amplitude is also an amplitude obtained at the set frequency, and a specific value of the set frequency is not limited and is selected according to an actual situation. In this embodiment, the standard device refers to a device that has completed testing in advance, where the frequency response characteristic corresponding to the device is a standard frequency response characteristic, and the second amplitude corresponding to the standard frequency response characteristic of the standard device may be stored in the mobile terminal in advance, so that the mobile terminal adjusts its own ultrasonic characteristic value through the stored second amplitude corresponding to the standard frequency response characteristic. In addition, the standard device is also optionally connected with the mobile terminal at present, and in the case of being connected with the mobile terminal, the mobile terminal acquires a second amplitude corresponding to the standard frequency response characteristic from the standard device so as to adjust the ultrasonic characteristic value of the mobile terminal.
2) And the external control equipment acquires a first amplitude corresponding to the frequency response characteristic of the mobile terminal and acquires a second amplitude corresponding to the standard frequency response characteristic of the standard equipment under the condition that the external control equipment establishes a connection relation with the mobile terminal and the standard equipment.
The first amplitude is also selected from the amplitudes acquired by the external control device under the set frequency, and after the first amplitude is acquired, a second amplitude corresponding to the standard frequency response characteristic of the standard device is acquired, wherein the second amplitude is also acquired under the set frequency, the specific numerical value of the set frequency is not limited, and the second amplitude is selected according to the actual situation. In this embodiment, the standard device refers to a device that has completed testing in advance, the frequency response characteristic corresponding to the device is a standard frequency response characteristic, and the external control device obtains a second amplitude corresponding to the standard frequency response characteristic from the standard device, so as to adjust the ultrasonic characteristic value of the mobile terminal.
3) In the third mode, the external control device establishes a connection relationship with the mobile terminal, and under the condition that the connection relationship is established with the mobile terminal, the external control device obtains a first amplitude corresponding to the frequency response characteristic of the mobile terminal and obtains a second amplitude corresponding to the standard frequency response characteristic of the pre-stored standard device. That is, in this embodiment, the second amplitude corresponding to the standard frequency response characteristic of the standard device is stored in the external control device in advance, and then, after the external control device obtains the first amplitude corresponding to the frequency response characteristic of the mobile terminal, the pre-stored second amplitude can be obtained, so that the ultrasonic characteristic value of the mobile terminal can be adjusted subsequently.
After the first amplitude value and the second amplitude value are obtained, the mobile terminal or the external control device can process the two amplitude values, and the processing process of the external control device is basically consistent with that of the mobile terminal, so that the mobile terminal is taken as an example for the convenience of explanation. That is, after acquiring a first amplitude corresponding to the frequency response characteristic of the mobile terminal and a second amplitude corresponding to the standard frequency response characteristic of the standard device, the mobile terminal compares the first amplitude with the second amplitude, and in this embodiment, the two amplitudes are compared, and optionally, the two amplitudes are subjected to a difference processing.
After the difference processing is carried out on the two amplitude values, a difference value corresponding to the two amplitude values is calculated according to the comparison result, and then the characteristic value corresponding to the second ultrasonic signal of the mobile terminal is adjusted according to the calculated difference value, so that the adjusted characteristic value is obtained. In this embodiment, the implementation of step S33A includes:
1) In the first embodiment, referring to fig. 11, the step S33 includes:
step S331, when the first amplitude is larger than the second amplitude, subtracting the second amplitude from the first amplitude to obtain a difference value;
Step S332, subtracting the difference from the characteristic value corresponding to the second ultrasonic signal to obtain an adjusted characteristic value.
In this embodiment, when the first amplitude is greater than the second amplitude, a difference between the first amplitude and the second amplitude is calculated, specifically, the first amplitude is subtracted from the second amplitude to obtain a difference, then a feature value corresponding to the second ultrasonic signal is obtained, then the difference is subtracted from the feature value corresponding to the second ultrasonic signal, and finally the adjusted feature value is obtained.
It can be understood that, since the ultrasonic frequency response characteristics of different mobile terminals are not completely consistent, the ultrasonic characteristic value needs to be adjusted according to each ultrasonic frequency response characteristic, firstly, one standard device is selected as a calibration reference, the frequency response characteristic on the mobile terminal is compared with the frequency response characteristic of the standard device, and if the frequency response of the mobile terminal is higher than the frequency response of the standard device by Xdb, the ultrasonic characteristic value of the mobile terminal is reduced by Xdb.
2) In a second aspect, referring to fig. 12, the step S30 includes:
step S333, when the first amplitude is smaller than the second amplitude, subtracting the first amplitude from the second amplitude to obtain a difference value;
Step S334, adding the difference to the characteristic value corresponding to the second ultrasonic signal to obtain an adjusted characteristic value.
In this embodiment, when the first amplitude is smaller than the second amplitude, a difference between the first amplitude and the second amplitude is calculated, specifically, the second amplitude is subtracted from the first amplitude to obtain a difference, then an ultrasonic characteristic value of the mobile terminal is obtained, and then the difference is added to a characteristic value corresponding to a second ultrasonic signal of the mobile terminal to obtain an adjusted characteristic value.
After the ultrasonic characteristic value of the mobile terminal is adjusted in the processing manner, the state that the object approaches or is far away from the mobile terminal can be judged through the adjusted ultrasonic characteristic value.
In this embodiment, the ultrasonic characteristic value of the mobile terminal is adjusted according to the frequency response characteristic of the mobile terminal and the standard frequency response characteristic of the standard device, and the corresponding ultrasonic characteristic values are different due to different frequency response characteristics of different mobile terminals, so that the state that the object approaches or is far away from the mobile terminal is judged through the ultrasonic characteristic value, the actual situation of the mobile terminal is also more met, and the judgment result is more accurate.
Further, a third embodiment of the calibration method of ultrasonic characteristic values of the present invention is proposed based on the first or second embodiment.
The third embodiment of the method for calibrating an ultrasonic characteristic value differs from the first or second embodiment of the method for calibrating an ultrasonic characteristic value in that, referring to fig. 13, after the step S30, the method further includes:
step S40, the adjusted characteristic values are used as input parameters to be input into a preset Support Vector Machine (SVM) model, so that output parameters are obtained through the SVM model;
step S50, determining a label corresponding to the output parameter according to a preset mapping relation between the output parameter and the label;
step S60, according to the determined label, determining the state of the object relative to the mobile terminal.
In this embodiment, after the adjusted feature value is obtained, the adjusted feature value is input as an input parameter into a preset support vector machine SVM model, so as to obtain an output parameter through the SVM model, after the output parameter is obtained, the obtained output parameter is compared with a pre-stored output parameter to determine a pre-stored output parameter corresponding to the output parameter, then a label corresponding to the output parameter is determined according to a mapping relation between the pre-stored output parameter and the label, and finally, the state of the object relative to the mobile terminal is determined according to the determined label. In this embodiment, the step S60 includes:
If the label is the first identification, determining that the current object is close to the mobile terminal;
if the label is the second label, determining that the object is in a constant state relative to the mobile terminal;
if the label is the third label, determining that the current object is far away from the mobile terminal.
Namely, the characteristic value corresponding to the ultrasonic signal is input into an SVM (Support Vector Machine ), the corresponding ultrasonic signal in the process of approaching an object and the corresponding ultrasonic signal in the process of keeping away from the object are trained by the SVM, so that a detection model for detecting the movement trend of the mobile terminal relative to the object is obtained, and the detection model obtained through training is stored. The SVM maps the sample space into a high-dimensional or even infinite-dimensional feature space (Hilbert space) through a nonlinear mapping p, so that the problem of nonlinear division in the original sample space is converted into the problem of linear division in the feature space. It can be understood that the characteristic value of the ultrasonic signal corresponding to the approaching object of the mobile terminal contains a first mark; and the characteristic value of the ultrasonic signal corresponding to the object which is far away from the mobile terminal contains a third mark. When the detection model detects that the input ultrasonic signal is not the ultrasonic signal corresponding to the approaching object of the mobile terminal or the ultrasonic signal corresponding to the moving terminal away from the object, the detection model confirms that the mobile terminal is in a constant state relative to the obstacle and outputs a detection result containing the second identifier.
It should be noted that, the mobile terminal may use one eigenvalue value of the amplitude change rate, the doppler effect area difference, and the difference between the amplitude change rate and the doppler effect area difference of the ultrasonic signal as an input parameter of the SVM model, but in order to improve the accuracy of the detection result, a plurality of eigenvalues may also be used as input parameters of the SVM model.
After the characteristic value is input into the SVM model, the state that the object is far away or approaching relative to the mobile terminal is judged according to the label of the output parameter, and the judgment accuracy of the mobile terminal is improved.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium is built in the mobile terminal shown in fig. 1, and the computer readable storage medium stores a calibration program of the ultrasonic characteristic value, and the calibration program of the ultrasonic characteristic value realizes the steps of the calibration method of the ultrasonic characteristic value when being executed by a processor.
The specific implementation manner of the computer readable storage medium of the present invention is basically the same as the above embodiments of the method for calibrating the ultrasonic characteristic value, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a mobile terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the scope of the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the scope of the invention as defined by the following description and drawings, or by direct or indirect application to other relevant art(s).

Claims (8)

1. The method for calibrating the ultrasonic characteristic value is characterized by comprising the following steps of:
under the condition that the first ultrasonic signal is transmitted through the ultrasonic transmitter, determining whether the second ultrasonic signal reflected by the object can be received through the ultrasonic receiver;
if the second ultrasonic signal can be received, calculating a characteristic value corresponding to the second ultrasonic signal, wherein the characteristic value comprises: the Doppler effect area difference, the amplitude change rate and the difference value of the Doppler effect area difference of ultrasonic waves;
adjusting the characteristic value corresponding to the second ultrasonic signal by adopting the standard frequency response characteristic of the standard equipment and the frequency response characteristic of the mobile terminal to obtain an adjusted characteristic value so as to judge the state that the object is far away from or approaches the mobile terminal according to the adjusted characteristic value;
when the characteristic value is the amplitude change rate of the ultrasonic signal, if the second ultrasonic signal can be received, the step of calculating the characteristic value corresponding to the second ultrasonic signal includes:
in the process of receiving ultrasonic signals through an ultrasonic receiver, recording the ultrasonic amplitude received by the ultrasonic signals at each moment;
Calculating the difference value of the ultrasonic amplitude values at the current moment and the previous moment to obtain the amplitude change rate of the ultrasonic signal;
when the characteristic value is the Doppler effect area difference of the ultrasonic signal, if the second ultrasonic signal can be received, the step of calculating the characteristic value corresponding to the second ultrasonic signal comprises the following steps:
if the second ultrasonic signal can be received, acquiring and determining the receiving frequency of the second ultrasonic signal received by the ultrasonic receiver and the receiving frequency variation range of the second ultrasonic signal received by the ultrasonic receiver;
determining a frequency variation interval according to the receiving frequency and the receiving frequency variation range;
calculating Doppler effect area difference of the ultrasonic signal according to the frequency change interval and an intensity change curve corresponding to the frequency change interval;
the user can generate a red shift phenomenon or a blue shift phenomenon in the process of picking up the terminal to be close to the human body or far away from the human body so as to change the frequency of the second ultrasonic wave, and the larger the relative movement speed of the mobile terminal and the object is, the larger the generated blue shift phenomenon or the red shift phenomenon is, so that the frequency change of an ultrasonic signal received by the ultrasonic receiver is correspondingly in a certain range, namely the receiving frequency change range;
The Doppler effect area difference is an area difference between a first area and a second area;
calculating a first frequency change interval corresponding to a first area according to the emission frequency and the frequency change range of the first ultrasonic wave, wherein the first frequency change interval specifically comprises the following steps: determining a first frequency change interval according to a relation between the transmitting frequency and the upper and lower limit values, wherein the first frequency change interval is an interval in which the receiving frequency is greater than the transmitting frequency;
determining a first intensity change curve based on the first frequency change interval, and taking the intensity value of the Y axis of the first intensity change curve corresponding to the starting point and the ending point of the first frequency change interval, wherein the area of a closed area surrounded by the frequency change range of the X axis of the first intensity change curve and the first intensity change curve as a first area;
calculating a second frequency variation interval corresponding to the second area according to the transmitting frequency and the frequency variation range, specifically: determining a second frequency change interval according to a relational expression between the transmitting frequency and the upper limit value and the lower limit value, wherein the second frequency change interval is an interval in which the frequency of an ultrasonic signal received by an ultrasonic receiver is smaller than the transmitting frequency;
Determining a second intensity change curve based on the second frequency change interval, and taking the intensity value of the Y axis of the second intensity change curve corresponding to the starting point and the ending point of the second frequency change interval, wherein the area of a closed area surrounded by the frequency change range of the X axis of the second intensity change curve and the second intensity change curve as a second area;
the calculation formula of the frequency variation range is as follows:
wherein Deltaf is the frequency variation range, deltav is the speed when the user uses the mobile terminal, f 0 A transmission frequency of the first ultrasonic signal transmitted by the ultrasonic transmission device.
2. The method for calibrating an ultrasonic characteristic value according to claim 1, wherein the step of adjusting the characteristic value corresponding to the second ultrasonic signal by using the standard frequency response characteristic of the standard device and the frequency response characteristic of the mobile terminal to obtain the adjusted characteristic value comprises:
acquiring a first amplitude corresponding to the frequency response characteristic of the mobile terminal, and acquiring a second amplitude corresponding to the standard frequency response characteristic of standard equipment;
comparing the first amplitude with the second amplitude;
and calculating a difference value corresponding to the two amplitude values according to the comparison result, and adjusting a characteristic value corresponding to the second ultrasonic signal according to the calculated difference value to obtain an adjusted characteristic value.
3. The method for calibrating an ultrasonic characteristic value according to claim 2, wherein the step of calculating a difference value corresponding to the two magnitudes according to the comparison result and adjusting the characteristic value corresponding to the second ultrasonic signal according to the calculated difference value to obtain the adjusted characteristic value comprises:
when the first amplitude is larger than the second amplitude, subtracting the second amplitude from the first amplitude to obtain a difference value;
subtracting the difference value from the characteristic value corresponding to the second ultrasonic signal to obtain an adjusted characteristic value.
4. The method for calibrating an ultrasonic characteristic value according to claim 2, wherein the step of calculating a difference value corresponding to the two magnitudes according to the comparison result and adjusting the characteristic value corresponding to the second ultrasonic signal according to the calculated difference value to obtain the adjusted characteristic value further comprises:
when the first amplitude value is smaller than the second amplitude value, subtracting the first amplitude value from the second amplitude value to obtain a difference value;
and adding the difference value to the characteristic value corresponding to the second ultrasonic signal to obtain an adjusted characteristic value.
5. The method for calibrating an ultrasonic characteristic value according to any one of claims 1 to 4, wherein after the step of adjusting the characteristic value corresponding to the second ultrasonic signal by using the standard frequency response characteristic of the standard device and the frequency response characteristic of the mobile terminal to obtain the adjusted characteristic value, the method further comprises:
Inputting the adjusted characteristic values as input parameters into a preset Support Vector Machine (SVM) model to obtain output parameters through the SVM model;
determining a label corresponding to the output parameter according to a preset mapping relation between the output parameter and the label;
and determining the state of the object relative to the mobile terminal according to the determined label.
6. The method of calibrating an ultrasonic characteristic value according to claim 5, wherein the step of determining a state of the object with respect to the mobile terminal based on the determined tag comprises:
if the label is the first identification, determining that the current object is close to the mobile terminal;
if the label is the second label, determining that the object is in a constant state relative to the mobile terminal;
if the label is the third label, determining that the current object is far away from the mobile terminal.
7. An ultrasound characteristic value calibration apparatus, characterized in that the apparatus comprises a memory, a processor and a calibration program of ultrasound characteristic values stored on the memory and executable on the processor, which when executed by the processor realizes the steps of the ultrasound characteristic value calibration method according to any one of claims 1 to 6.
8. A computer-readable storage medium, wherein a calibration program of ultrasonic eigenvalues is stored on the computer-readable storage medium, which when executed by a processor realizes the steps of the method of calibrating ultrasonic eigenvalues according to any of claims 1-6.
CN201711498215.0A 2017-12-29 2017-12-29 Method and device for calibrating ultrasonic characteristic value and computer readable storage medium Active CN108562890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711498215.0A CN108562890B (en) 2017-12-29 2017-12-29 Method and device for calibrating ultrasonic characteristic value and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711498215.0A CN108562890B (en) 2017-12-29 2017-12-29 Method and device for calibrating ultrasonic characteristic value and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108562890A CN108562890A (en) 2018-09-21
CN108562890B true CN108562890B (en) 2023-10-03

Family

ID=63530486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711498215.0A Active CN108562890B (en) 2017-12-29 2017-12-29 Method and device for calibrating ultrasonic characteristic value and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108562890B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113517935B (en) * 2019-07-31 2023-01-06 Oppo广东移动通信有限公司 Ultrasonic calibration method and device, mobile terminal and storage medium
CN110505341B (en) * 2019-07-31 2021-05-07 Oppo广东移动通信有限公司 Terminal control method and device, mobile terminal and storage medium
CN110515085B (en) * 2019-07-31 2021-09-14 Oppo广东移动通信有限公司 Ultrasonic processing method, ultrasonic processing device, electronic device, and computer-readable medium
CN112595352B (en) * 2020-11-16 2023-03-31 歌尔微电子股份有限公司 Calibration method, device and equipment of bone voiceprint sensor and readable storage medium
CN112835048B (en) * 2021-01-04 2023-12-15 海门市帕源路桥建设有限公司 Automatic positioning control method for construction space
CN114112134B (en) * 2021-11-26 2023-01-24 歌尔科技有限公司 Pressure detection method, electronic device and computer-readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5668806B2 (en) * 2013-07-22 2015-02-12 沖電気工業株式会社 Data processing apparatus, motion recognition system, motion discrimination method, and program
CN105046880B (en) * 2015-05-28 2017-10-20 西安交通大学 A kind of method that intelligent mobile terminal carries out hazards monitoring and early warning based on Doppler effect
CN105807923A (en) * 2016-03-07 2016-07-27 中国科学院计算技术研究所 Ultrasonic wave based volley gesture identification method and system
WO2017184181A1 (en) * 2016-04-22 2017-10-26 Chirp Micro, Inc. Ultrasonic input device
CN106385290B (en) * 2016-08-16 2019-07-09 北京小米移动软件有限公司 Ultrasonic wave calibration method and device
CN106301606B (en) * 2016-08-16 2019-02-19 北京小米移动软件有限公司 The ultrasonic wave calibration method and device of mobile device
CN107402387A (en) * 2017-08-31 2017-11-28 努比亚技术有限公司 Movement tendency based on ultrasonic wave determines method, apparatus and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN108562890A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN108196778B (en) Control method of screen state, mobile terminal and computer readable storage medium
CN108562890B (en) Method and device for calibrating ultrasonic characteristic value and computer readable storage medium
CN108391025B (en) Network access management method, mobile terminal and computer readable storage medium
CN109905907B (en) Network searching method and mobile terminal
CN108566479B (en) Screen state control method, mobile terminal and computer readable storage medium
CN108055412B (en) Method of controlling mobile terminal, and computer-readable storage medium
CN108234767B (en) Control method of screen state, mobile terminal and computer readable storage medium
CN107172702B (en) Mobile terminal and WiFi transmission power adjusting method and device thereof
CN108184023B (en) Screen state control method, mobile terminal and computer readable storage medium
CN110113779B (en) eSIM card testing method, system and medium
CN108226880B (en) Method and device for preventing interference in ultrasonic distance detection and storage medium
CN110611580B (en) Cell management method, terminal and network side equipment
WO2021114699A1 (en) Signal strength reporting method and apparatus, storage medium and terminal device
US20220110036A1 (en) Random access method and terminal
CN109890072B (en) Terminal power saving control method and device, mobile terminal and readable storage medium
CN109309953B (en) Power consumption detection method, device, terminal and readable storage medium
CN108512616B (en) Signal intensity display method, mobile terminal and computer readable storage medium
CN107465469B (en) Receiving sensitivity testing method, testing device and computer readable storage medium
CN111443818B (en) Screen brightness regulation and control method, equipment and computer readable storage medium
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN107728990B (en) Audio playing method, mobile terminal and computer readable storage medium
CN111225105B (en) Method for controlling screen work, mobile terminal and storage medium
CN107894958B (en) Junk information cleaning method, terminal, server and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN107734147B (en) Step recording method, mobile terminal and computer readable storage medium

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