CN107290750A - Method and terminal that audio hole is blocked are detected in a kind of terminal - Google Patents
Method and terminal that audio hole is blocked are detected in a kind of terminal Download PDFInfo
- Publication number
- CN107290750A CN107290750A CN201710579907.1A CN201710579907A CN107290750A CN 107290750 A CN107290750 A CN 107290750A CN 201710579907 A CN201710579907 A CN 201710579907A CN 107290750 A CN107290750 A CN 107290750A
- Authority
- CN
- China
- Prior art keywords
- terminal
- audio hole
- ultrasonic
- echo
- ultrasonic sensor
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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
- G01S15/00—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
- G01S15/88—Sonar systems specially adapted for specific applications
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Physics & Mathematics (AREA)
- Transducers For Ultrasonic Waves (AREA)
Abstract
The embodiment of the present application discloses the method and terminal that audio hole is blocked of being detected in a kind of terminal, and methods described includes:The ultrasonic sensor set near audio hole is controlled outwards to launch ultrasonic wave along the audio hole;The ultrasonic sensor is controlled to receive the echo of the ultrasonic reflections;If the ultrasonic sensor receives echo, and the difference of the amplitude of the ultrasonic wave and echo is less than predetermined threshold value, it is determined that the audio hole is blocked by obstructions.In the embodiment of the present application, audio hole occlusion state is detected by ultrasonic wave and the echo of reflection, this detection method does not need the cooperation of audio signal, it is not required that take voice-grade channel;Terminal user can realize the detection of audio hole occlusion state while using audio-frequency function, can effectively lift the usage experience of terminal user.
Description
Technical field
The application is related in Audiotechnica field, more particularly to a kind of terminal the method and terminal that audio hole is blocked of detecting.
Background technology
With the development of terminal technology, the application of the technology related to audio in the terminal is also more and more extensive.In order to protect
That demonstrate,proves audio signal has effect spread, it is to avoid caused audio signal decay too fast by the stop of terminal enclosure, it usually needs at end
Audio hole is opened up on the shell at end.
By taking mobile phone as an example, loudspeaker sender corresponding with loudspeaker is typically provided with the shell of mobile phone, corresponding with receiver
Listening bore and microphone sound inlet corresponding with microphone.But, during the use of terminal, audio hole may be due to
Various the reason for and be blocked.For example, in a kind of application scenarios, in order to avoid the dust in external environment enters terminal
Enclosure interior, it is necessary to set Air Filter on audio hole.But, used with the long-time of terminal, dust is also easily accumulated
On Air Filter, when especially running into wet weather, dust can solidify on Air Filter so that be bonded in completely on Air Filter,
Audio hole is caused to block.In another application scenarios, user is when using mobile phone, if its holding area covers audio
Hole, will also result in audio hole and blocks.When audio hole is blocked, echo can be caused to increase, audio reduction has a strong impact on user's body
Test.
In view of the above-mentioned problems, possible design is in the prior art, by comparing not the acoustic pressure in audio hole in the same time
Change, acoustic resistance change or not magnitude of sound in the same time, to detect the occlusion state in audio hole, and take according to occlusion state
Corresponding indemnifying measure.But which kind of mode no matter to detect the occlusion state in audio hole by, it is required to matching somebody with somebody for audio signal
Close, can thus have the problem of taking voice-grade channel, reduce the usage experience of terminal user.For example, raised in detection
During sound device occlusion state, terminal user can not use loudspeaker;During receiver occlusion state is detected, eventually
End subscriber can not use receiver;During microphone occlusion state is detected, terminal user is can not to use microphone
's.
The content of the invention
Do not need audio signal cooperation just can detect the method whether audio hole is blocked this application provides a kind of, specifically
Ground provides the method and terminal that detection audio hole is blocked in a kind of terminal, to solve the above-mentioned problems in the prior art.
In a first aspect, the embodiment of the present application provides a kind of method that detection audio hole is blocked in terminal, methods described bag
Include:The ultrasonic sensor set near audio hole is controlled outwards to launch ultrasonic wave along the audio hole;Control is described super
Sonic sensor receives the echo of the ultrasonic reflections;If the ultrasonic sensor receives echo, and the ultrasonic wave
And the difference of the amplitude of echo is less than predetermined threshold value, it is determined that the audio hole is blocked by obstructions.
Second aspect, the embodiment of the present application provides a kind of method that detection audio hole is blocked in terminal, methods described bag
Include:The ultrasonic sensor set near audio hole is controlled outwards to launch ultrasonic wave along the audio hole;Control is described super
Sonic sensor receives the echo of the ultrasonic reflections;If the ultrasonic sensor receives echo, according to described super
The launch time of sound wave, the echo receive time and the velocity of sound calculate between the ultrasonic sensor and shelter away from
From;If the distance is less than predetermined threshold value, it is determined that the audio hole is blocked by obstructions.
The third aspect, the embodiment of the present application provides a kind of terminal, including audio hole, and the terminal is additionally included in audio hole
The ultrasonic sensor nearby set, for outwards launching ultrasonic wave along the audio hole, and receives the ultrasonic reflections
Echo;The terminal also includes memory and processor, and the ultrasonic sensor is connected with the processor communication;It is described
Memory is used for the execute instruction for storing the processor;The processor is configured as performing above-mentioned first aspect and/or
Method described in two aspects.
In the embodiment of the present application, it regard ultrasonic signal as the detection medium of audio hole occlusion state, supersonic sensing
Device is arranged near audio hole, and ultrasonic wave can be outwards launched along audio hole, and receives the echo of the ultrasonic reflections, is led to
Cross whether the distance between the difference or ultrasonic wave of the amplitude for judging ultrasonic wave and echo and shelter are less than predetermined threshold value to examine
Whether acoustic frequency hole is blocked.It is by ultrasonic wave and reflection compared with detection method of the prior art, in the application
Echo detects audio hole occlusion state, and this detection method does not need the cooperation of audio signal, it is not required that take audio
Passage.In other words, terminal user can realize the detection of audio hole occlusion state, Neng Gouyou while using audio-frequency function
The usage experience of effect lifting terminal user.For example, the process of loudspeaker occlusion state is being detected using the present processes
In, terminal user still can use loudspeaker to play music;Using the present processes in detection receiver occlusion state
During, terminal user still can use receiver to receive calls;Using the present processes shape is blocked in detection microphone
During state, terminal user still can use microphone input voice.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme of the application, letter will be made to the required accompanying drawing used in embodiment below
Singly introduce, it should be apparent that, for those of ordinary skills, without having to pay creative labor,
Other accompanying drawings can also be obtained according to these accompanying drawings.
A kind of structural representation in audio hole that Fig. 1 provides for the embodiment of the present application;
The structural representation in another audio hole that Fig. 2 provides for the embodiment of the present application;
The structural representation of speaker area in a kind of mobile phone that Fig. 3 provides for the embodiment of the present application;
The method flow schematic diagram that audio hole is blocked is detected in a kind of terminal that Fig. 4 provides for the embodiment of the present application;
Sound wave and the propagation schematic diagram of ultrasonic wave that Fig. 5 A and 5B provides for the embodiment of the present application;
The method flow schematic diagram that audio hole is blocked is detected in another terminal that Fig. 6 provides for the embodiment of the present application;
Fig. 7 for the embodiment of the present application provide it is a kind of be used for detect the terminal that terminal sound intermediate frequency hole is blocked.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, it is real below in conjunction with the application
The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation
Example only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, this area is common
The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to the application protection
Scope.
The invention relates to terminal include but is not limited to mobile phone, tablet personal computer, intelligent wristwatch, MP3 and MP4.This
Apply for that the audio hole being related to includes but is not limited to listening bore, loudspeaker sender and microphone sound inlet.The embodiment of the present application institute
The audio hole being related to can include the one or more of listening bore, loudspeaker sender and microphone sound inlet, wherein, listening bore
Acoustic signals for receiver to be sent are transmitted to exterior of terminal;Loudspeaker sender is used for the acoustic signals for sending loudspeaker
Transmit to exterior of terminal;Microphone sound inlet is used to transmit the acoustic signals of exterior of terminal to microphone, is being embodied
Cheng Zhong, listening bore, loudspeaker sender and microphone sound inlet can be independent according to the position of receiver, loudspeaker and microphone
Set, can also two-by-two be combined according to the position of receiver, loudspeaker and microphone or mode joined integrally be set to it is same
Hole, specifically, not elaborating in the present embodiment.
By taking mobile phone as an example, listening bore is typically opened on contact panel, and width is generally 1.0-1.3mm, length mostly 6-
12mm elongated runway hole.Be limited to current phone profile and loadspeaker structure form limited, loudspeaker sender have side go out sound and
Just going out sound two ways, side goes out sound mode and sender exactly is placed on into mobile phone bottom, and it is by loudspeaker sender just to go out sound
It is placed on the battery cover plane of mobile phone.When mobile phone speaker goes out sound using side, more using several apertures, aperture is more in 1.0-
1.6mm left and right;And using when just going out sound has the small dense holes in strip runway hole, multiple diameter 0.4-0.8mm or so etc. to go out sound side
Formula.Using the size as loudspeaker sender more than Mike's sound inlet, or the circular hole using diameter 0.8-1.2mm or so or race
Road hole.
A kind of structural representation in audio hole that Fig. 1 provides for the embodiment of the present application, housing is shown in Fig. 1 terminal
101 and audio hole 102.Wherein, audio hole 102 is opened on housing 101, and audio hole 102 and housing 101 are in same plane
Interior, receiver, loudspeaker and microphone are respectively positioned in housing 101, and audio hole 102 is located at the one of receiver, loudspeaker and microphone
On the device of kind or multiple combinations.
Fig. 2 is the structural representation in another audio hole that the embodiment of the present application is provided on Fig. 1 basis, in Fig. 2
Terminal in show housing 201, audio hole 202 and Air Filter 203.Wherein, audio hole 202 is opened on housing 201, and sound
Frequency hole 202 and housing 201 are in same plane, and Air Filter 203 is covered on audio hole 202, prevents the ash in external environment
Dirt enters inside housing 201.
In order to detect the occlusion state in audio hole, the embodiment of the present application sets supersonic sensing near the audio hole of terminal
Device, is not influenceed during due to ultrasound signal transmission by dustproof network structure, therefore the outflow audio hole of energy free of losses, and can quilt
The shelter reflection of large area, is the outstanding medium for detecting audio hole occlusion state.
Meanwhile, the invention relates to shelter the position of shelter can be judged according to specific detection.For example,
When accumulating dust on Air Filter, the shelter in audio hole is the laying dust on Air Filter, positioned at the inside of terminal;When on Air Filter
Free from dust is accumulated, and audio hole is blocked by user or other shelters, then shelter is located at the outside of terminal, such as:When audio hole is set
Put on the backboard of terminal, when the backplane of terminal is placed on the table, the shelter in audio hole is desktop, positioned at terminal
It is outside.
In a kind of optional embodiment, ultrasonic sensor can be positioned close to listening bore, loudspeaker sender
Or the position of microphone sound inlet, the position of receiver, loudspeaker or microphone can also be positioned close to.
In optional another embodiment, ultrasonic sensor can side by side be set with receiver, loudspeaker or microphone
Put.
The structural representation of speaker area in a kind of mobile phone that Fig. 3 provides for the embodiment of the present application, in figure 3 with mobile phone
Exemplified by, exemplarily illustrate the position relationship of loudspeaker, loudspeaker sender and ultrasonic sensor.
Figure 3 illustrates mobile phone battery cover 301 and mobile phone center 309, mobile phone center 309 is carried for structured install
Air Filter 302 is installed, the Air Filter 302 is covered on loudspeaker sender on body, mobile phone battery cover 301, loudspeaker 307 from
The sound that loudspeaker sender is sent is traveled to beyond mobile phone by ante-chamber 303 and Air Filter 302.With raising in mobile phone battery cover 301
Ultrasonic sensor 304 has been arranged side by side in sound device 307, and the ultrasonic sensor 304 is welded on print by surface-pasted mode
On circuit board 305 processed, printed circuit board 305 passes through in wire or cable connection to main circuit board.Loudspeaker 307 and printed circuit
Plate 305 is fixed in speaker chamber 310 by loudspeaker support 306, in the present embodiment, ultrasonic sensor 304 along
Loudspeaker sender outwards launches ultrasonic wave.There is acoustic aperture to connect loudspeaker 307 and back cavity 308 on loudspeaker support 306.Need to refer to
Go out, said structure is only a kind of specific implementation of the embodiment of the present application, those skilled in the art can be according to reality
Need to adjust accordingly, it should fall within the scope of the present application.
On the basis of said structure, the embodiment of the present application provides a kind of method that detection audio hole is blocked in terminal,
This method is applied blocks analyte detection in loudspeaker sender, and ultrasonic sensor is arranged side by side with loudspeaker in terminal, uses
In, to external emission ultrasonic wave, and receiving the echo of the ultrasonic reflections by loudspeaker sender.Fig. 4 is implemented for the application
The method flow schematic diagram that detection audio hole is blocked in a kind of terminal that example is provided, in the embodiment of the present application with shown in Fig. 2
Exemplified by audio pore structure, i.e., covered with being described in detail exemplified by Air Filter on audio hole.As shown in figure 4, its mainly include with
Lower step.
Step S401:Control ultrasonic sensor outwards launches ultrasonic wave along the audio hole.
In the embodiment of the present application, audio hole is loudspeaker sender, and ultrasonic sensor is arranged near audio hole, is had
Body, ultrasonic sensor is arranged side by side with loudspeaker, and ultrasonic sensor outwards launches ultrasonic wave along loudspeaker sender.
Step S402:The ultrasonic sensor is controlled to receive the echo of the ultrasonic reflections;
In the embodiment of the present application, ultrasonic sensor includes ultrasonic transmitter and ultrasonic receiver, and the two both may be used
It can also be separately designed with integrated design.In order to reach preferable Detection results, ultrasonic sensor is preferably normal to
The direction transmitting ultrasonic wave of Air Filter 302 shown in Fig. 3, and receive echo.Ultrasonic sensor by ultrasonic transmitter along
Loudspeaker sender outwards launches ultrasonic wave;When the ultrasonic wave launched runs into shelter, ultrasonic wave can pass through shelter
Echo is reflected, the echo is received by ultrasonic receiver.
Step S403:Judge whether the ultrasonic sensor receives echo, and the amplitude of the ultrasonic wave and echo
Difference be less than predetermined threshold value, if so, then enter step S404;Otherwise, into step S405.
A kind of Acoustic Wave Propagation schematic diagram that Fig. 5 A and 5B provides for the embodiment of the present application, hides in the absence of shelter in fig. 5
, there is shelter in figure 5b and block in gear.
As shown in Figure 5A, loudspeaker sends acoustic signals 501, and ultrasonic sensor sends ultrasonic wave 502, due in the absence of
Shelter is blocked, therefore acoustic signals 501 and ultrasonic wave 502 freely can spread to space.But, when there is shelter
When 503, as shown in Figure 5 B, the thing 503 that can be blocked of ultrasonic wave 502 is reflected, and the echo 504 of ultrasonic signal can be by ultrasonic wave
Sensor is received.It therefore, it can the echo using ultrasonic signal, determine the occlusion state in audio hole.It should be noted that sound
Ripple signal 501 is blocked due to shelter 503, the degradation of audio signal, audio can be caused impaired etc..
In application scenarios as shown in Figure 5 B, when loudspeaker sender is blocked, it is super that ultrasonic sensor is launched
Sound wave is also blocked, and is had differences between the amplitude of the echo of reflection and the amplitude of ultrasonic wave, therefore can be by the width of echo
The occlusion state of value reflection loudspeaker sender.In the specific implementation, after the echo of ultrasonic wave is received, extracting the amplitude of echo
Information, carries out mathematic interpolation by the amplitude of echo and the amplitude of ultrasonic wave, obtains the difference of the amplitude of ultrasonic wave and echo, afterwards,
The difference of the amplitude and predetermined threshold value are compared, if the difference of the amplitude is less than predetermined threshold value, into step S404;Otherwise,
Into step S405.
In general, the ultrasonic wave that ultrasonic sensor is launched in terminal can be all reflected back toward in most cases
Come, that is, receive the echo of reflection.Shelter away from ultrasonic sensor compared with shelter is close to ultrasonic sensor, echo
Attenuation degree it is more serious, correspondingly, the amplitude of echo can be smaller than the amplitude of ultrasonic wave more.For example, it is assumed that ultrasound
The amplitude of the ultrasonic wave of wave sensor transmitting is 1mV, and when shelter is apart from ultrasonic sensor 0.5cm, the amplitude of echo is
0.7mV, and the difference of ultrasonic amplitude is 0.3mV;When shelter is apart from ultrasonic sensor 0.1cm, the amplitude of echo is
0.9mV, and the difference of ultrasonic amplitude is 0.1mV.
If it should be noted that shelter is big to a certain extent with the distance between ultrasonic sensor, do not interfered with
The quality of audio signal, such case thinks that audio hole is not blocked.For example, when shelter is apart from ultrasonic sensor
During 10cm, the amplitude of echo is 0.1mV, and the difference of ultrasonic amplitude is 0.9mV, and now influence of the shelter to audio signal is micro-
Its is micro-, it might even be possible to ignore, therefore, it is considered that audio hole is not blocked, thing is blocked in this case.
In a kind of optional embodiment, predetermined threshold value is 0.5mV.
Step S404:Determine that the audio hole is blocked by obstructions.
For example, ultrasonic amplitude is 1mV, and echo amplitude is 0.6mV, and the difference of the two amplitude is 0.4mV, less than default
Threshold value 0.5mV, the result at this moment detected is blocked by the audio hole thing that is blocked.
Step S405:Determine that the audio hole is not blocked by obstructions.
For example, ultrasonic amplitude is 1mV, and echo amplitude is 0.3mV, and the difference of the two amplitude is 0.7mV, more than default
Threshold value 0.5mV, the result at this moment detected is blocked by the audio hole thing that is not blocked.
In the embodiment of the present application, ultrasonic signal is passed through into ultrasonic wave as the detection medium of audio hole occlusion state
And the echo of reflection detects audio hole occlusion state, it is not necessary to the cooperation of audio signal, it is not required that take voice-grade channel.
In other words, terminal user can realize the detection of audio hole occlusion state while using audio-frequency function, can effectively carry
Rise the usage experience of terminal user.
It is understood that if detection audio hole is blocked in the above-described embodiments, shelter had both been likely located at the outside of terminal,
The inside of terminal is likely located at again, in order to which the position to shelter makes a distinction, base of the embodiment of the present application in scheme shown in Fig. 4
It is further comprising the steps of on plinth:
If the difference of the amplitude is more than first threshold, it is determined that the shelter is located at the outside of the terminal, otherwise, really
The fixed shelter is located at the inside of the terminal.
In a kind of optional embodiment, predetermined threshold value is set to 0.5mV, first threshold is set to 0.2mV.Assuming that ultrasonic
The amplitude of the ultrasonic wave of wave sensor transmitting is 1mV, and the amplitude of echo is 0.7mV, and the difference of ultrasonic amplitude is 0.3mV, greatly
In first threshold 0.2mV and less than 0.5mV, it at this moment can determine that shelter is located at the outside of terminal.Assuming that ultrasonic sensor
The amplitude of the ultrasonic wave of transmitting is 1mV, and the amplitude of echo is 0.9mV, and the difference of ultrasonic amplitude is 0.1mV, less than the first threshold
Value 0.2mV, at this moment can determine that shelter is located at the inside of terminal.
Certainly, predetermined threshold value and first threshold can be set to it by those skilled in the art according to the concrete structure of terminal
His numerical value, it is when falling within the scope of the present application.
In the embodiment of the present application, it can determine that shelter is still outer positioned at the inside of terminal according to default first threshold
Portion, and then take corresponding indemnifying measure.For example, if it is determined that shelter is located at terminal inner, then may be in terminal
Laying dust, then may remind the user that and laying dust cleared up;If it is determined that shelter is located at exterior of terminal, then it is probably user's
Finger or desktop are blocked to audio hole, then may remind the user that the shelter removed outside terminal.Wherein, the embodiment of the present application pair
The alerting pattern of user is not specifically limited, for example, it is possible to use the loudspeaker of terminal sends alarm sound, can also be at end
Prompting frame is ejected on the display screen at end.
It is another in the application in addition to using the occlusion state in the difference of ultrasonic wave and the amplitude of echo detection audio hole
In alternative embodiment, the occlusion state in audio hole can be detected according to the distance between ultrasonic wave and shelter.With above-mentioned implementation
Example it is identical, ultrasonic sensor is set near the audio hole of the terminal, specifically, ultrasonic sensor can with receiver, raise
Sound device and/or microphone are arranged side by side, along audio hole to external emission ultrasonic wave, and receive returning for the ultrasonic reflections
Ripple.The method flow schematic diagram that audio hole is blocked is detected in another terminal that Fig. 6 provides for the embodiment of the present application, such as Fig. 6 institutes
Show, it is mainly included the following steps that.
Step S601:Control ultrasonic sensor outwards launches ultrasonic wave along the audio hole.
In the embodiment of the present application, audio hole can be loudspeaker sender as shown in Figure 3, and ultrasonic sensor is set
Near audio hole, specifically, ultrasonic sensor is arranged side by side with loudspeaker, ultrasonic sensor is along loudspeaker sender
Outwards launch ultrasonic wave.
Step S602:The ultrasonic sensor is controlled to receive the echo of the ultrasonic reflections;
In the embodiment of the present application, ultrasonic sensor includes ultrasonic transmitter and ultrasonic receiver, and the two both may be used
It can also be separately designed with integrated design.In order to reach preferable Detection results, ultrasonic sensor is preferably normal to
The direction transmitting ultrasonic wave of Air Filter 302 shown in Fig. 3, and receive echo.Ultrasonic sensor by ultrasonic transmitter along
Loudspeaker sender outwards launches ultrasonic wave;When the ultrasonic wave launched runs into shelter, ultrasonic wave can pass through shelter
Echo is reflected, the echo is received by ultrasonic receiver.
Step S603:Judge whether the ultrasonic sensor receives echo.
When audio hole has shelter, the ultrasonic wave of ultrasonic sensor transmitting can be blocked blocking for thing and produce back
Ripple.Therefore, if ultrasonic sensor receives echo, can further it be calculated into step S604;Otherwise, into step
S607。
Step S604:According to being calculated the launch time of the ultrasonic wave, the reception time of the echo and the velocity of sound
The distance between ultrasonic sensor and shelter.
In the embodiment of the present application, according to the launch time of the ultrasonic wave, the reception time of the echo and the velocity of sound
Calculate the distance between the ultrasonic sensor and shelter.Specially:Ultrasonic sensor launches ultrasonic signal, in hair
Penetrate and start time synchronisation constantly, ultrasonic signal is encountered shelter in communication process in atmosphere and just reflected immediately, surpasses
Sonic sensor is received stops timing immediately after echo, then can be true according to the reception time of the launch time of ultrasonic wave and echo
Determine the propagation time of ultrasonic wave.
The spread speed of ultrasonic wave in atmosphere at 0 DEG C is V=331.45m/s (velocity of sound), according to propagation time △ t, just
The distance between ultrasonic sensor and shelter can be calculated, formula is as follows:
Wherein, s is the distance between ultrasonic sensor and shelter.
Further, since ultrasonic wave is a kind of sound wave, its velocity of sound V is relevant with environment temperature T.When in use, if temperature becomes
Change less, then it is believed that the velocity of sound is basically unchanged.The spread speed of ultrasonic wave is 331.45m/s at 0 DEG C, and such as temperature is often raised
1 DEG C, velocity of sound increase about 0.607m/s.To improve measurement shelter range accuracy, it should be corrected for by the method for temperature-compensating.
When known site environment temperature is T, ultrasonic propagation velocity V calculation formula is:
V=331.45+0.607 × T
So, as long as measuring propagation time and the site environment temperature T of ultrasonic signal, it is possible to accurately calculate super
The distance between sonic sensor and shelter.
Step S605:Judge whether the distance is less than predetermined threshold value.
Calculate after the distance between ultrasonic sensor and shelter, the distance and predetermined threshold value are compared, if
Distance is less than predetermined threshold value, then into step S606;Otherwise, into step S607.
Step S606:Determine that the audio hole is blocked by obstructions.
When the distance between ultrasonic sensor and shelter are less than predetermined threshold value, illustrate between audio hole and shelter
It is closer to the distance, it is determined that audio hole is blocked by obstructions.
Step S607:Determine that the audio hole is not blocked by obstructions.
When the distance between ultrasonic sensor and shelter are more than or equal to predetermined threshold value, illustrate audio hole with blocking
The distance between thing is farther out, it is determined that audio hole is not blocked by obstructions.
In general, the ultrasonic wave that ultrasonic sensor is launched in terminal can be all reflected back toward in most cases
Come, that is, receive the echo of reflection.But, if shelter is big to a certain extent with the distance between ultrasonic sensor, no
The quality of audio signal can be influenceed, such case thinks that audio hole is not blocked.
For example, in a kind of structure of terminal, should when the distance between ultrasonic sensor and shelter are more than 15mm
Shelter does not interfere with the transmission of audio signal, that is, thinks that audio hole is not blocked by the shelter.It therefore, it can default threshold
Value is set to 15mm, if the distance between the ultrasonic sensor calculated in step S604 and shelter are 8mm, supersonic sensing
The distance between device and shelter are less than predetermined threshold value, it is determined that audio hole is blocked;If the ultrasound calculated in step S604
The distance between wave sensor and shelter are 16mm, and the distance between ultrasonic sensor and shelter are more than predetermined threshold value,
Then determine that audio hole is not blocked.
It is understood that if detection audio hole is blocked in the above-described embodiments, shelter had both been likely located at the outside of terminal,
The inside of terminal is likely located at again, in order to which the position to shelter makes a distinction, base of the embodiment of the present application in scheme shown in Fig. 6
It is further comprising the steps of on plinth:
If the distance is more than the first distance threshold, it is determined that the shelter is located at the outside of the terminal, otherwise, really
The fixed shelter is located at the inside of the terminal.
For example, in a kind of alternative embodiment of the application, predetermined threshold value is 15mm, i.e., ultrasonic sensor and shelter it
As long as between distance less than 15mm be to determine that audio hole is blocked, further, according between ultrasonic sensor and shelter
Distance and the relation of the first distance threshold judge the position of shelter.In an alternative embodiment, the first distance threshold is set to
10mm, as long as and the distance between ultrasonic sensor and shelter are more than 10mm and can then determine the screening when being less than 15mm
Block material is located at the outside of the terminal, otherwise determines that the shelter is located at the inside of the terminal.When ultrasonic sensor with
When the distance between shelter is 13mm, because 13mm is more than 10mm and less than 15mm, it is determined that the shelter is located at described
The outside of terminal.During such as the distance between ultrasonic sensor and shelter for 8mm, because 8mm is less than 10mm, it is determined that described
Shelter is located at the inside of the terminal.Certainly, those skilled in the art can set for the first distance threshold according to actual needs
Other numerical value are put, it is when falling within the scope of the present application.
If there is laying dust in audio hole, then it can typically be deposited on Air Filter, between Air Filter and ultrasonic sensor
Distance be to determine, therefore the first above-mentioned distance threshold can be designated as the distance between Air Filter and ultrasonic sensor
B, it is assumed that the distance between ultrasonic sensor and shelter are A, above-mentioned predetermined threshold value is C, and C > B.If B < A < C,
Illustrate that shelter is not located at the laying dust on Air Filter, but positioned at other shelters of exterior of terminal;If A≤B, illustrate
Shelter is the laying dust being located on Air Filter, positioned at the inside of terminal, thus can by ultrasonic sensor and shelter it
Between distance, determine the blocking position of shelter.
In embodiments of the present invention, the shelter of terminal inner and the distance between ultrasonic sensor are nearer;Outside terminal
The distance between the shelter and ultrasonic sensor in portion are farther out., in the embodiment of the present application, can be according to pre- based on the principle
If the distance between the first distance threshold, predetermined threshold value, ultrasonic sensor and shelter this three between relation determine
Shelter is located at the inside or outside of terminal, and then takes corresponding indemnifying measure.For example, if it is determined that shelter is located at eventually
End is internal, then may be the laying dust on Air Filter, then may remind the user that and laying dust is cleared up;If it is determined that shelter
Positioned at exterior of terminal, then it is probably that the finger or desktop of user is blocked to audio hole, then may remind the user that and remove outside terminal
The shelter in portion.Wherein, the embodiment of the present application is not specifically limited to the alerting pattern of user, for example, it is possible to use terminal
Loudspeaker sends alarm sound, can also eject prompting frame on the display screen of terminal.
On the basis of above method embodiment, it is used to detect what terminal sound intermediate frequency hole was blocked present invention also provides a kind of
Terminal.Fig. 7 for the embodiment of the present application provide it is a kind of be used for detect the terminal that terminal sound intermediate frequency hole is blocked, as shown in fig. 7, described
Terminal 700 includes processor 701, memory 702 and ultrasonic sensor 704.Wherein, the ultrasonic sensor 704 is set
Close to the position in audio hole in the housing of terminal 700, specifically, ultrasonic sensor 704 can be with listening in terminal 700
Cylinder, loudspeaker and/or microphone are arranged side by side, and the external emission that the ultrasonic sensor 704 is configured as towards audio hole surpasses
Acoustic signals, and receive the reflected signal of the ultrasonic signal.For the electrical connection of component in protruded terminal 700, and
Not figure 7 illustrates the housing of terminal 700 and audio hole, but it should not be thought that accompanying drawing and word description differ
Cause.
Component shown in Fig. 7 is communicated by one or more bus, it will be understood by those skilled in the art that showing in figure
The structure gone out does not constitute the restriction to the application, and it both can be busbar network or hub-and-spoke configuration, can also wrap
Include than illustrating more or less parts, either combine some parts or different parts arrangement.
The processor 701, is the control centre of storage device, utilizes various interfaces and the whole electronic equipment of connection
Various pieces, by operation or perform and be stored in software program and/or module in memory 702, and call and be stored in
Data in memory, to perform the various functions and/or processing data of electronic equipment.The processor can be by integrated circuit
(Integrated Circuit, abbreviation IC) is constituted, for example, can be made up of the IC of single encapsulation, can also be by many of connection
The encapsulation IC of identical function or difference in functionality and constitute.For example, processor 701 can only include central processing unit.At this
Apply in embodiment, CPU can be single arithmetic core, can also include multioperation core.
The memory 702, the execute instruction for storing processor 701, memory 702 can be by any kind of easy
The property lost or non-volatile memory device or combinations thereof realization, such as static RAM (SRAM), electric erasable
Programmable read only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory
(PROM), read-only storage (ROM), magnetic memory, flash memory, disk or CD.
When the execute instruction in memory 702 is performed by processor 701 so that terminal 700 is able to carry out following methods:
If the ultrasonic sensor receives echo, and the difference of the amplitude of the ultrasonic wave and echo is less than predetermined threshold value, it is determined that
The audio hole is blocked by obstructions, otherwise, it determines the audio hole is not blocked by obstructions;Or, if the ultrasonic wave is passed
Sensor receives echo, then according to being calculated the launch time of the ultrasonic wave, the reception time of the echo and the velocity of sound
The distance between ultrasonic sensor and shelter;If the distance is less than predetermined threshold value, it is determined that the audio hole is blocked
Thing is blocked, otherwise, it determines the audio hole is not blocked by obstructions.
In a kind of alternative embodiment, the terminal 700 also includes communication unit 703, for setting up communication channel, so that
The storage device is set to be communicated with miscellaneous equipment.Receive user data that other equipment sends or to other equipment
Send user data.
In addition, the terminal 700 also includes Air Filter, the Air Filter is covered on the audio hole, the ultrasonic wave
Sensor can be arranged side by side with receiver, loudspeaker and/or microphone, audio hole as ultrasonic wave and sound wave transmission channel;
The audio hole can include listening bore, loudspeaker sender and/or microphone sound inlet.
In the specific implementation, the application also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored
There is program, the program may include in the terminal that the application is provided when performing in each embodiment for the method that detection audio hole is blocked
Part or all of step.Described storage medium can be magnetic disc, CD, read-only memory (English:read-
Onlymemory, referred to as:ROM) or random access memory (English:Random access memory, referred to as:RAM) etc..
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software
The mode of general hardware platform realize.Understood based on such, the technical scheme in the embodiment of the present application substantially or
Say that the part contributed to prior art can be embodied in the form of software product, the computer software product can be deposited
Storage is in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause a computer equipment (can be with
It is personal computer, server, or network equipment etc.) perform some part institutes of each embodiment of the application or embodiment
The method stated.
Between the embodiment of each in this specification identical similar part mutually referring to.It is real especially for host computer
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
In explanation.
Above-described the application embodiment does not constitute the restriction to the application protection domain.
Claims (8)
1. the method that audio hole is blocked is detected in a kind of terminal, it is characterised in that methods described includes:
The ultrasonic sensor set near audio hole is controlled outwards to launch ultrasonic wave along the audio hole;
The ultrasonic sensor is controlled to receive the echo of the ultrasonic reflections;
If the ultrasonic sensor receives echo, and the difference of the amplitude of the ultrasonic wave and echo is less than predetermined threshold value, then
Determine that the audio hole is blocked by obstructions.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
If the difference of the amplitude is more than first threshold, it is determined that shelter is located at the outside of the terminal, otherwise, it determines shelter
Positioned at the inside of the terminal.
3. method according to claim 1 or 2, it is characterised in that methods described also includes:
If the ultrasonic sensor does not receive echo, it is determined that the audio hole is not blocked by obstructions.
4. the method that audio hole is blocked is detected in a kind of terminal, it is characterised in that methods described includes:
The ultrasonic sensor set near audio hole is controlled outwards to launch ultrasonic wave along the audio hole;
The ultrasonic sensor is controlled to receive the echo of the ultrasonic reflections;
If the ultrasonic sensor receives echo, during according to the launch time of the ultrasonic wave, the reception of the echo
Between and the velocity of sound calculate the distance between the ultrasonic sensor and shelter;
If the distance is less than predetermined threshold value, it is determined that the audio hole is blocked by obstructions.
5. method according to claim 4, it is characterised in that methods described also includes:
If the distance is more than the first distance threshold, it is determined that shelter is located at the outside of the terminal, otherwise, it determines shelter
Positioned at the inside of the terminal.
6. the method according to claim 4 or 5, it is characterised in that methods described also includes:
If the ultrasonic sensor does not receive echo, it is determined that the audio hole is not blocked by obstructions.
7. a kind of terminal, including audio hole, it is characterised in that the terminal is additionally included in the ultrasonic wave set near audio hole and passed
Sensor, for outwards launching ultrasonic wave along the audio hole, and receives the echo of the ultrasonic reflections;
The terminal also includes memory and processor, and the ultrasonic sensor is connected with the processor communication;
The memory is used for the execute instruction for storing the processor;
The processor is configured as the method described in perform claim requirement any one of 1-6.
8. terminal according to claim 7, it is characterised in that the terminal also includes Air Filter, the Air Filter covering
On the audio hole.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710579907.1A CN107290750A (en) | 2017-07-17 | 2017-07-17 | Method and terminal that audio hole is blocked are detected in a kind of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710579907.1A CN107290750A (en) | 2017-07-17 | 2017-07-17 | Method and terminal that audio hole is blocked are detected in a kind of terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107290750A true CN107290750A (en) | 2017-10-24 |
Family
ID=60101437
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710579907.1A Pending CN107290750A (en) | 2017-07-17 | 2017-07-17 | Method and terminal that audio hole is blocked are detected in a kind of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107290750A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108052352A (en) * | 2017-11-30 | 2018-05-18 | 努比亚技术有限公司 | Control method, terminal and the computer readable storage medium of screen on-off state |
CN108173997A (en) * | 2018-03-23 | 2018-06-15 | 北京小米移动软件有限公司 | Terminal leads acoustic form and terminal |
CN109218913A (en) * | 2018-08-27 | 2019-01-15 | 奇酷互联网络科技(深圳)有限公司 | Sound adjusting method, terminal device and the device with store function |
CN109254293A (en) * | 2018-09-30 | 2019-01-22 | 北京小米移动软件有限公司 | Supersonic range finder and method, structure light device and terminal using the device |
CN109275070A (en) * | 2018-10-23 | 2019-01-25 | 广东小天才科技有限公司 | A kind of early warning and reminding method, device and terminal device for preventing microphone impaired |
CN110531748A (en) * | 2018-05-24 | 2019-12-03 | 宝时得科技(中国)有限公司 | Automatic running device and its control method |
CN112437381A (en) * | 2020-11-24 | 2021-03-02 | 维沃移动通信有限公司 | Earphone, volume adjusting method and device thereof, and terminal |
CN112600975A (en) * | 2019-09-16 | 2021-04-02 | 北京小米移动软件有限公司 | Detection method and detection device for target hole blockage and mobile terminal |
CN113167891A (en) * | 2018-10-02 | 2021-07-23 | 搜诺思公司 | System and method for user location |
CN113296085A (en) * | 2021-05-21 | 2021-08-24 | 联合汽车电子有限公司 | Ultra-wideband ranging method, storage medium and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06201534A (en) * | 1993-01-04 | 1994-07-19 | Rasa Ind Ltd | Device and method for detecting blocked position inside pipe and method for controlling amount of unloaded oil |
JP2014216867A (en) * | 2013-04-25 | 2014-11-17 | 京セラ株式会社 | Portable terminal equipment |
CN104410750A (en) * | 2014-10-30 | 2015-03-11 | 广东欧珀移动通信有限公司 | Screen brightness control method, device and terminal |
CN206074406U (en) * | 2016-09-30 | 2017-04-05 | 芜湖美智空调设备有限公司 | Dust detection and air-conditioner |
CN106878910A (en) * | 2017-03-03 | 2017-06-20 | 广东欧珀移动通信有限公司 | Control method of speaking and electronic installation |
CN106896362A (en) * | 2017-02-28 | 2017-06-27 | 北京小米移动软件有限公司 | A kind of terminal that function is detected with ultrasonic distance |
-
2017
- 2017-07-17 CN CN201710579907.1A patent/CN107290750A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06201534A (en) * | 1993-01-04 | 1994-07-19 | Rasa Ind Ltd | Device and method for detecting blocked position inside pipe and method for controlling amount of unloaded oil |
JP2014216867A (en) * | 2013-04-25 | 2014-11-17 | 京セラ株式会社 | Portable terminal equipment |
CN104410750A (en) * | 2014-10-30 | 2015-03-11 | 广东欧珀移动通信有限公司 | Screen brightness control method, device and terminal |
CN104410750B (en) * | 2014-10-30 | 2017-05-17 | 广东欧珀移动通信有限公司 | Screen brightness control method, device and terminal |
CN206074406U (en) * | 2016-09-30 | 2017-04-05 | 芜湖美智空调设备有限公司 | Dust detection and air-conditioner |
CN106896362A (en) * | 2017-02-28 | 2017-06-27 | 北京小米移动软件有限公司 | A kind of terminal that function is detected with ultrasonic distance |
CN106878910A (en) * | 2017-03-03 | 2017-06-20 | 广东欧珀移动通信有限公司 | Control method of speaking and electronic installation |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108052352A (en) * | 2017-11-30 | 2018-05-18 | 努比亚技术有限公司 | Control method, terminal and the computer readable storage medium of screen on-off state |
CN108173997A (en) * | 2018-03-23 | 2018-06-15 | 北京小米移动软件有限公司 | Terminal leads acoustic form and terminal |
CN110531748A (en) * | 2018-05-24 | 2019-12-03 | 宝时得科技(中国)有限公司 | Automatic running device and its control method |
CN109218913A (en) * | 2018-08-27 | 2019-01-15 | 奇酷互联网络科技(深圳)有限公司 | Sound adjusting method, terminal device and the device with store function |
CN109218913B (en) * | 2018-08-27 | 2021-08-31 | 奇酷互联网络科技(深圳)有限公司 | Sound adjusting method, terminal equipment and device with storage function |
CN109254293A (en) * | 2018-09-30 | 2019-01-22 | 北京小米移动软件有限公司 | Supersonic range finder and method, structure light device and terminal using the device |
CN109254293B (en) * | 2018-09-30 | 2023-11-14 | 北京小米移动软件有限公司 | Ultrasonic ranging device and method, structured light equipment using device and terminal |
CN113167891A (en) * | 2018-10-02 | 2021-07-23 | 搜诺思公司 | System and method for user location |
CN109275070A (en) * | 2018-10-23 | 2019-01-25 | 广东小天才科技有限公司 | A kind of early warning and reminding method, device and terminal device for preventing microphone impaired |
CN112600975B (en) * | 2019-09-16 | 2022-03-11 | 北京小米移动软件有限公司 | Detection method and detection device for target hole blockage and mobile terminal |
CN112600975A (en) * | 2019-09-16 | 2021-04-02 | 北京小米移动软件有限公司 | Detection method and detection device for target hole blockage and mobile terminal |
CN112437381A (en) * | 2020-11-24 | 2021-03-02 | 维沃移动通信有限公司 | Earphone, volume adjusting method and device thereof, and terminal |
CN112437381B (en) * | 2020-11-24 | 2023-01-31 | 维沃移动通信有限公司 | Earphone, volume adjusting method and device thereof and terminal |
CN113296085A (en) * | 2021-05-21 | 2021-08-24 | 联合汽车电子有限公司 | Ultra-wideband ranging method, storage medium and system |
CN113296085B (en) * | 2021-05-21 | 2024-04-26 | 联合汽车电子有限公司 | Ultra-wideband ranging method, storage medium and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107290750A (en) | Method and terminal that audio hole is blocked are detected in a kind of terminal | |
AU2014200816B2 (en) | Application control method and apparatus for mobile terminal, earphone device and application control system | |
US10269369B2 (en) | System and method of noise reduction for a mobile device | |
US20150023510A1 (en) | Sound Processing System and Sound Processing Device | |
EP3373300A1 (en) | Method and apparatus for processing voice signal | |
CN103778927B (en) | A kind of play mode control method, device and mobile terminal | |
CN104272380A (en) | Frequency and direction-dependent ambient sound handling in personal audio devices having adaptive noise cancellation (anc) | |
EP2278356B1 (en) | Apparatus and method for detecting usage profiles of mobile devices | |
US9820070B2 (en) | Electronic device | |
CN107071119B (en) | A kind of sound removing method and mobile terminal | |
WO2014051969A1 (en) | System and method of detecting a user's voice activity using an accelerometer | |
WO2009136163A8 (en) | Signal detection and blocking for voice processing equipment | |
US10057670B2 (en) | Apparatus and method for providing an apparatus comprising an audio transducer | |
US11777615B2 (en) | Ultrasonic processing method, electronic device, and computer-readable medium | |
US8179235B2 (en) | Tactile interface for mobile devices | |
CN106293601A (en) | A kind of audio frequency playing method and device | |
CN104105048A (en) | Detecting system, device and method for audio test of electronic device | |
US20140341386A1 (en) | Noise reduction | |
CN109121046A (en) | Plug-hole processing method and Related product | |
CN109561222A (en) | A kind of method for detecting abnormality and device of voice data | |
CN108769364B (en) | Call control method, device, mobile terminal and computer readable medium | |
CN109688268A (en) | A kind of method and device, mobile terminal and the storage medium of mixed audio output | |
US10528089B2 (en) | Acoustic means for detecting if the casing of a communication device constitutes a closed space | |
CN103493508A (en) | Electronic devices for reducing acoustic leakage effects and related methods and computer program products | |
CN108605067B (en) | Method for playing audio and mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171024 |
|
RJ01 | Rejection of invention patent application after publication |