CN107920312A - Headset control method, mobile terminal and storage medium based on ultrasonic wave - Google Patents
Headset control method, mobile terminal and storage medium based on ultrasonic wave Download PDFInfo
- Publication number
- CN107920312A CN107920312A CN201711257683.9A CN201711257683A CN107920312A CN 107920312 A CN107920312 A CN 107920312A CN 201711257683 A CN201711257683 A CN 201711257683A CN 107920312 A CN107920312 A CN 107920312A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- ultrasonic wave
- earphone
- information
- ultrasonic
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/12—Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of headset control method based on ultrasonic wave, including:The first ultrasound information that ultrasonic receiver described in timing acquisition receives;Whether the corresponding ultrasonic wave of first ultrasound information for determining to get matches with the ultrasonic wave that the ultrasonic transmitter is launched;When the corresponding ultrasonic wave of first ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, determined whether based on first ultrasound information got in the presence of the object close to the mobile terminal;When there is currently close to the object of the mobile terminal, mute control operation is carried out to the earphone.The invention also discloses a kind of mobile terminal and storage medium.The present invention is realized carries out mute control operation by the first ultrasound information that ultrasonic receiver receives to earphone so that user can understand the situation of current outside environment in time.
Description
Technical field
The present invention relates to ultrasonic technology field, more particularly to a kind of headset control method based on ultrasonic wave, movement are eventually
End and storage medium.
Background technology
At present, with the mobile terminals such as mobile phone, tablet computer technology fast development, mobile phone, tablet computer etc. are mobile
The application of terminal is more and more extensive, and user is increasingly accustomed to being listened to music by mobile terminal, watches film, TV programme
Deng.
When user is listened to music using mobile terminal, watches movie or television when video frequency program, for more preferable sense of hearing body
Test, user often has on earphone and listens to music, watches the video frequency programs such as movie or television.But user have on earphone listen to music,
Movie or television is watched when video frequency program, the sound in the external world that often can not hear clearly, and then cannot discover in time close to user's
Object.Listen to music for example, user on the way has on earphone, watch movie or television when video frequency program, it is outer due to can not hear clearly
The sound on boundary is likely to result in traffic accident.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of headset control method based on ultrasonic wave, mobile terminal and storage to be situated between
Matter, it is intended to solve user have on earphone listen to music, watch movie or television when video frequency program due to can not hear clearly the external world sound
Sound and cannot discover in time close to user object technical problem.
To achieve the above object, the present invention provides a kind of headset control method based on ultrasonic wave, it is characterised in that application
In the mobile terminal equipped with earphone, the earphone is equipped with ultrasonic transmitter, and shown mobile terminal is equipped with ultrasonic receiver, institute
The headset control method based on ultrasonic wave is stated to comprise the following steps:
The first ultrasound information that ultrasonic receiver described in timing acquisition receives;
The corresponding ultrasonic wave of first ultrasound information for determining to get surpasses with ultrasonic transmitter transmitting
Whether sound wave matches;
When the corresponding ultrasonic wave of first ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched,
The object for determining whether to have close to the mobile terminal based on first ultrasound information got;
When there is currently close to the object of the mobile terminal, mute control operation is carried out to the earphone.
In one embodiment, it is described when there is currently close to the object of the mobile terminal, the earphone is performed
After the step of silence processing operates, the headset control method based on ultrasonic wave further includes:
Every the second ultrasound information that the prefixed time interval acquisition ultrasonic receiver receives;
When second ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, based on what is got
Whether second ultrasound information determines the object away from the mobile terminal;
When the object is away from the mobile terminal, play operation is performed to the earphone.
In one embodiment, it is described when the object is away from the mobile terminal, the earphone is performed and plays behaviour
As the step of include:
When the object is away from the mobile terminal, determined based on second ultrasound information got be currently
The no object existed close to the mobile terminal;
When there is currently no close to the object of the mobile terminal, play operation is performed to the earphone.
In one embodiment, it is described when there is currently close to the object of the mobile terminal, the earphone is performed
The step of silence processing operates includes:
When there is currently close to the object of the mobile terminal, by the volume adjustment of the earphone to minimum volume.
In one embodiment, it is described when the object is away from the mobile terminal, the earphone is performed and plays behaviour
As the step of include:
When the object is away from the mobile terminal, volume adjustment is obtained to the volume of minimum volume foregoing description earphone
Information;
The volume of the earphone is adjusted based on the information volume.
In one embodiment, it is described when there is currently close to the object of the mobile terminal, the earphone is performed
The step of silence processing operates includes:
When there is currently close to the object of the mobile terminal, the mobile terminal pause is controlled to play currently playing
Audio/video information;
It is described when the object is away from the mobile terminal, to the earphone perform play operation the step of include:
When the object is away from the mobile terminal, the mobile terminal is controlled to continue to play the audio/video information.
In one embodiment, first ultrasound information for determining to get is sent out with the ultrasonic transmitter
The step of whether ultrasonic wave penetrated matches includes:
Obtain the first flag information of first ultrasound information, and the ultrasonic wave of ultrasonic transmitter transmitting
Second identifier information;
Determine that first ultrasound information surpasses with described based on the first flag information and the second identifier information
Whether the ultrasonic wave of pinger transmitting matches.
In one embodiment, it is described when there is currently close to the object of the mobile terminal, the earphone is carried out
The step of mute control operation, includes:
When there is currently close to the object of the mobile terminal, output there is currently the object close to the mobile terminal
Warning prompt information;
Mute control operation is carried out to the earphone.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal is equipped with earphone and surpasses
Acoustic receiver, the earphone are equipped with ultrasonic transmitter, and the mobile terminal includes:Memory, processor and it is stored in institute
The control program of the earphone based on ultrasonic wave stated on memory and can run on the processor, the ear based on ultrasonic wave
Machine control program realizes the step of the headset control method based on ultrasonic wave described in any of the above-described when being performed by the processor
Suddenly.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, it is characterised in that the storage medium
On be stored with the earphone control program based on ultrasonic wave, the earphone control program based on ultrasonic wave is real when being executed by processor
The step of showing the headset control method based on ultrasonic wave described in any of the above-described.
The first ultrasound information that the present invention is received by ultrasonic receiver described in timing acquisition, then determines to obtain
To the corresponding ultrasonic wave of first ultrasound information whether matched with the ultrasonic wave that the ultrasonic transmitter is launched, then
When the corresponding ultrasonic wave of first ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, based on acquisition
To first ultrasound information determine whether the object for having close to the mobile terminal, then connect there is currently
During the object of the nearly mobile terminal, mute control operation is carried out to the earphone, realizes and is received by ultrasonic receiver
The first ultrasound information arrived carries out mute control operation to earphone, avoids listening to music, watching movie or television having on earphone
The problem of cannot discovering in time close to the object of user because not hearing the sound in external environment when video frequency program so that use
Family can understand the situation of current outside environment in time, improve user experience.
Brief description of the drawings
Fig. 1 is a kind of each hardware architecture diagram of terminal of embodiment of the realization present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the headset control method first embodiment of the invention based on ultrasonic wave;
Fig. 4 is the schematic diagram of a scenario in one embodiment of the invention;
Fig. 5 is the schematic diagram of a scenario in another embodiment of the present invention;
Fig. 6 is the schematic diagram of a scenario in further embodiment of this invention;
Fig. 7 is the schematic diagram of a scenario in yet another embodiment of the invention;
Fig. 8 is the flow diagram of the headset control method second embodiment of the invention based on ultrasonic wave;
Fig. 9 is away from described described in the headset control method 3rd embodiment of the invention based on ultrasonic wave in the object
During mobile terminal, to the earphone perform play operation the step of refinement flow diagram;
Figure 10 is away from the shifting in the headset control method fourth embodiment of the invention based on ultrasonic wave in the object
During dynamic terminal, the refinement flow diagram for the step of play operation is performed to the earphone;
Figure 11 is determine to get in headset control method the 5th embodiment of the invention based on ultrasonic wave described first
The refinement flow diagram for the step of whether ultrasound information matches with the ultrasonic wave that the ultrasonic transmitter is launched;
Figure 12 is that there is currently in the headset control method sixth embodiment of the invention based on ultrasonic wave close to the shifting
During the object of dynamic terminal, the refinement flow diagram for the step of mute control operation is carried out to the earphone.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " component " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio output unit
103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the component such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
100 structure of mobile terminal does not form the restriction to mobile terminal 100, and mobile terminal 100 can include more more or more than illustrating
Few component, either combines some components or different components arrangement.
The all parts of mobile terminal 100 are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, by the data sending of uplink to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication
Standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal 100 can help user to receive by Wi-Fi module 102
Send e-mails, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although figure
1 shows Wi-Fi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal 100, completely can be with
Omitted as needed in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
Formula, speech recognition mode, broadcast reception mode when under isotype, by radio frequency unit 101 or Wi-Fi module 102 it is receiving or
It is sound that the voice data that person stores in memory 109, which is converted into audio signal and exports,.Moreover, audio output unit
103 can also provide with mobile terminal 100 perform the relevant audio output of specific function (for example, call signal receive sound,
Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) carry out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used for the information for showing by information input by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect user on it or neighbouring touch operation
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment device is driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, when contact panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, can
The function that outputs and inputs of mobile terminal is realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal 100, utilizes various interfaces and the whole mobile terminal of connection
Various pieces, by running or performing the software program and/or module that are stored in memory 109, and call and are stored in
Data in reservoir 109, perform the various functions and processing data of mobile terminal 100, so as to carry out entirety to mobile terminal 100
Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation
Demodulation processor, wherein, application processor mainly handles operating system, user interface and application program etc., modulation /demodulation processing
Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, in the mobile terminal shown in Fig. 1, which is additionally provided with earphone and ultrasonic receiver, the ear
Machine is equipped with ultrasonic transmitter, and processor 110 is used to call the control journey of the earphone based on ultrasonic wave stored in memory 109
Sequence, and perform following operation:
The first ultrasound information that ultrasonic receiver described in timing acquisition receives;
The corresponding ultrasonic wave of first ultrasound information for determining to get surpasses with ultrasonic transmitter transmitting
Whether sound wave matches;
When the corresponding ultrasonic wave of first ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched,
The object for determining whether to have close to the mobile terminal based on first ultrasound information got;
When there is currently close to the object of the mobile terminal, mute control operation is carried out to the earphone.
Further, processor 110 can call the control program of the earphone based on ultrasonic wave stored in memory 109,
Also perform following operation:
Every the second ultrasound information that the prefixed time interval acquisition ultrasonic receiver receives;
When second ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, based on what is got
Whether second ultrasound information determines the object away from the mobile terminal;
When the object is away from the mobile terminal, play operation is performed to the earphone.
Further, processor 110 can call the control program of the earphone based on ultrasonic wave stored in memory 109,
Also perform following operation:
When the object is away from the mobile terminal, determined based on second ultrasound information got be currently
The no object existed close to the mobile terminal;
When there is currently no close to the object of the mobile terminal, play operation is performed to the earphone.
Further, processor 110 can call the control program of the earphone based on ultrasonic wave stored in memory 109,
Also perform following operation:
When there is currently close to the object of the mobile terminal, by the volume adjustment of the earphone to minimum volume.
Further, processor 110 can call the control program of the earphone based on ultrasonic wave stored in memory 109,
Also perform following operation:
When the object is away from the mobile terminal, volume adjustment is obtained to the volume of minimum volume foregoing description earphone
Information;
The volume of the earphone is adjusted based on the information volume.
Further, processor 110 can call the control program of the earphone based on ultrasonic wave stored in memory 109,
Also perform following operation:
When there is currently close to the object of the mobile terminal, the mobile terminal pause is controlled to play currently playing
Audio/video information;
It is described when the object is away from the mobile terminal, to the earphone perform play operation the step of include:
When the object is away from the mobile terminal, the mobile terminal is controlled to continue to play the audio/video information.
Further, processor 110 can call the control program of the earphone based on ultrasonic wave stored in memory 109,
Also perform following operation:
Obtain the first flag information of first ultrasound information, and the ultrasonic wave of ultrasonic transmitter transmitting
Second identifier information;
Determine that first ultrasound information surpasses with described based on the first flag information and the second identifier information
Whether the ultrasonic wave of pinger transmitting matches.
Further, processor 110 can call the control program of the earphone based on ultrasonic wave stored in memory 109,
Also perform following operation:
When there is currently close to the object of the mobile terminal, output there is currently the object close to the mobile terminal
Warning prompt information;
Mute control operation is carried out to the earphone.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite includes UE (User Equipment, the use for communicating connection successively for the LTE system of universal mobile communications technology, the LTE system
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used in relation to service features, data rate etc.
The dedicated information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide the IP of UE 201
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provides available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned terminal hardware structure and communications network system, the earphone controlling party of the invention based on ultrasonic wave is proposed
Each embodiment of method.
The present invention also provides a kind of headset control method based on ultrasonic wave, and with reference to Fig. 3, Fig. 3 is the present invention based on ultrasound
The flow diagram of the headset control method first embodiment of ripple.
In the present embodiment, it is somebody's turn to do the headset control method based on ultrasonic wave and is applied to the mobile terminal equipped with earphone, it is described
Earphone is equipped with ultrasonic transmitter, and shown mobile terminal is equipped with ultrasonic receiver.
The earphone of the present embodiment includes common headphones or bluetooth headset etc., it can be In-Ear Headphones.Ultrasonic wave is sent out
Emitter may be disposed inside earphone or outside earphone, it is preferable that and for beauty, the ultrasonic transmitter may be disposed inside earphone,
The ultrasonic receiver is arranged in mobile terminal, is electrically connected with the processor of mobile terminal.User have on earphone listen to music,
Movie or television is watched when video frequency program, the ultrasonic transmitter for being arranged at earphone starts to launch ultrasonic wave, is passed through in ultrasonic wave
After the reflection of the objects such as passerby, building, car, the ultrasonic receiver that can be arranged at mobile terminal receives, mobile terminal
Processor can in real time or the ultrasonic signal that receives of timing acquisition ultrasonic receiver.
The headset control method based on ultrasonic wave comprises the following steps:
Step S10, the first ultrasound information that ultrasonic receiver described in timing acquisition receives;
In the present embodiment, the ultrasonic receiver for being arranged at mobile terminal is capable of the ultrasound of the various frequencies of real-time reception
Ripple, certain ultrasonic receiver can also only receive the ultrasonic wave of fixed frequency scope.Earphone is had in user to listen to music, see
See a film or TV is when video frequency program, the first ultrasound information that the timing acquisition ultrasonic receiver receives.Wherein,
One ultrasound information includes the ultrasonic wave that the ultrasonic receiver receives in preset time period, which can basis
User demand is rationally set, such as preset time period may be configured as 5s, 10s etc., also, the preset time period can be with timing
The time interval for obtaining the first ultrasound information is identical.
Step S20, determines the corresponding ultrasonic wave of first ultrasound information that gets and the ultrasonic transmitter
Whether the ultrasonic wave of transmitting matches;
In the present embodiment, when getting the first ultrasound information, first ultrasound information got is determined
Whether corresponding ultrasonic wave matches with the ultrasonic wave that the ultrasonic transmitter is launched, to determine the first ultrasound currently got
Ripple information whether be ultrasonic transmitter transmitting ultrasonic wave, alternatively, whether the first ultrasound information currently got includes
The ultrasonic wave of ultrasonic transmitter transmitting.
Specifically, identification information can be added in the ultrasonic wave that ultrasonic transmitter is launched, mobile terminal is analyzed and acquired by
The first ultrasound information, to obtain the identification information of the corresponding ultrasonic wave of the first ultrasound information, then determine to get
Identification information identification information corresponding with the ultrasonic wave that ultrasonic transmitter is launched whether match.If the identification information got
Only include an information, then in the identification information got identification information one corresponding with the ultrasonic wave that ultrasonic transmitter is launched
During cause, determine that the corresponding ultrasonic wave of the first ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, if obtaining
The identification information arrived includes a plurality of information, then there are the ultrasonic wave correspondence of ultrasonic transmitter transmitting in a plurality of identification information
Identification information when, determine the ultrasonic wave of the corresponding ultrasonic wave of the first ultrasound information and the ultrasonic transmitter transmitting
Match somebody with somebody.
Step S30, in the corresponding ultrasonic wave of first ultrasound information and the ultrasound of ultrasonic transmitter transmitting
When ripple matches, determined whether based on first ultrasound information got in the presence of the thing close to the mobile terminal
Body;
In the present embodiment, launch in the corresponding ultrasonic wave of first ultrasound information and the ultrasonic transmitter
When ultrasonic wave matches, i.e., the first ultrasound information currently got is the ultrasonic wave of ultrasonic transmitter transmitting, alternatively, currently
The first ultrasound information got includes the ultrasonic wave of ultrasonic transmitter transmitting, at this time, based on described first got
Ultrasound information determines whether the object for having close to the mobile terminal.
Specifically, the letter of the ultrasonic wave received due to the first ultrasound information for the ultrasonic receiver of timing acquisition
Breath, the ultrasonic wave that the interior ultrasonic receiver of its preset time period before including current time receives.First this first is surpassed
Information of acoustic wave is analyzed and processed, and obtains the matched ultrasound of ultrasonic wave with ultrasonic transmitter transmitting in the first ultrasound information
Ripple, and time information corresponding with the matched ultrasonic wave of ultrasonic wave of ultrasonic transmitter transmitting is somebody's turn to do, which includes
Multiple moment.Then velocity of sound is combined by apart from computational algorithm, calculating the ultrasonic wave for reflecting this with ultrasonic transmitter transmitting
Distance of the object for the ultrasonic wave matched somebody with somebody between each moment and mobile terminal.Then combine each moment and each moment pair
The distance between object and mobile terminal for answering, the matched ultrasound of ultrasonic wave for determining the reflection transmitting with ultrasonic transmitter
Whether the object of ripple is object close to mobile terminal.Wherein, if in each moment, received closer to ultrasonic receiver is obtained
At the time of the first ultrasound information arrived, object and the distance between mobile terminal are smaller, it is determined that the object is close to movement
The object of terminal, that is, judge to there is currently the object close to the mobile terminal, otherwise, it is determined that there is currently no close to the shifting
The object of dynamic terminal.
Step S40, when there is currently close to the object of the mobile terminal, carrying out the earphone mute control and grasping
Make.
In the present embodiment, when determining to there is currently close to the object of the mobile terminal according to the first ultrasound information,
Mute control operation is carried out to earphone, earphone is had on outdoors to avoid user and listens to music, watches the video section such as movie or television
During mesh because can not hear clearly the external world sound and caused by traffic accident, listen to music alternatively, user has on earphone indoors, watch film
Or TV when video frequency program because the sound in the external world that can not hear clearly and caused by communication disorders with other people.Specifically, to described
Earphone, which carries out mute control operation, to be included the volume adjustment of the earphone to minimum volume or controls the mobile terminal temporary
Break and put currently playing audio/video information.If determine there is currently according to the first ultrasound information multiple close to the mobile terminal
Object, then the multiple objects currently close to the mobile terminal are counted.
It should be noted that while mute control operation is carried out to earphone, mobile terminal can also export object and lean on
The prompt message of nearly user, to prompt user in time, informs that user there is currently the object close to the user, without user again
Judged by external sound.Meanwhile no matter it is mute state, with per family if the earphone is active noise cancelling headphone
Sound in the external environment that may can not hear clearly.
In the present embodiment, can detect mobile terminal earphone interface access earphone when, automatic start the application's
The corresponding process of headset control method based on ultrasonic wave, and monitoring the mobile terminal transmission audio signal to the ear
During machine, control is arranged at the ultrasonic transmitter transmitting ultrasonic wave of earphone, and control ultrasonic receiver starts operation, has connect
Receive the ultrasonic wave in the mobile terminal current environment.
Below by taking user is using mobile phone viewing video frequency program as an example, and user has on earphone and watches video frequency program by mobile phone
Walking, with reference to Fig. 4 to Fig. 6.
As shown in figure 4, when user has on earphone by mobile phone viewing video frequency program walking, the ultrasonic wave hair of earphone is arranged at
Emitter launches ultrasonic wave, and the ultrasonic receiver for being arranged at mobile phone starts operation.When user rear, which has vehicle to sail, to be come, ultrasonic wave
The ultrasonic wave of transmitter transmitting is received after vehicle reflects by ultrasonic receiver, and mobile phone obtains the ultrasonic receiver and connects
Received first ultrasound information, and when it is the ultrasonic wave that the ultrasonic transmitter is launched to determine first ultrasound information,
Determine to there is currently the object close to the mobile terminal, and then mute control operation is carried out to the earphone, for example, in Fig. 5
Shown stopping plays currently playing video frequency program.
It should be noted that with reference to Fig. 6, since user is watching video frequency program, mobile phone is in bright screen state, true
When there is currently surely close to the object of the mobile terminal, pedestrian can also be shown in the display interface of mobile phone or vehicle approaches
Prompt message.
The headset control method based on ultrasonic wave that the present embodiment proposes, is connect by ultrasonic receiver described in timing acquisition
Received first ultrasound information, then determines the corresponding ultrasonic wave of first ultrasound information that gets and the ultrasound
Whether the ultrasonic wave of wave launcher transmitting matches, then in the corresponding ultrasonic wave of first ultrasound information and the ultrasonic wave
During the ultrasonic wave matching of transmitter transmitting, determine whether exist close to institute based on first ultrasound information got
The object of mobile terminal being stated, then when there is currently close to the object of the mobile terminal, mute control being carried out to the earphone
System operation, realizes and carries out mute control operation to earphone by the first ultrasound information that ultrasonic receiver receives, keep away
Exempt from have on earphone listen to music, watch movie or television when video frequency program when because not hearing the sound in external environment cannot and
When the problem of discovering the object close to user so that user can understand the situation of current outside environment in time, improve user
Experience.
Based on first embodiment, the second embodiment of the proposition headset control method of the invention based on ultrasonic wave, with reference to figure
7, in the present embodiment, after the step s 40, it is somebody's turn to do the headset control method based on ultrasonic wave and further includes:
Step S50, every the second ultrasound information that the prefixed time interval acquisition ultrasonic receiver receives;
In the present embodiment, after mute control operation is carried out to earphone, ultrasonic transmitter is still sent out in real time or periodically
Ultrasound information is penetrated, the ultrasonic receiver of the mobile terminal still is able to receive through in the external environment residing for the mobile terminal
Ultrasonic wave after object reflection, so the mobile terminal obtains what the ultrasonic receiver received every prefixed time interval
Second ultrasound information, in order to determine the object close to the mobile terminal whether away from movement end according to what is be currently received
End.
Wherein, the second ultrasound information includes the ultrasonic wave that the ultrasonic receiver receives in preset duration, this is default
Duration can rationally be set according to user demand, such as preset duration may be configured as 5s, 10s etc., also, the preset duration
Can be identical with prefixed time interval.
Step S60, when second ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, is based on
Whether second ultrasound information got determines the object away from the mobile terminal;
In the present embodiment, when getting the second ultrasound information every time, the second ultrasound information and institute are first determined
Whether the ultrasonic wave for stating ultrasonic transmitter transmitting matches.Launch in second ultrasound information and the ultrasonic transmitter
Ultrasonic wave matching when, based on second ultrasound information got determine the object whether away from it is described it is mobile eventually
End.Specifically, first second ultrasound information can be analyzed and processed, obtains in the second ultrasound information and launch with ultrasonic wave
The matched ultrasonic wave of ultrasonic wave of device transmitting, and should be corresponding with the matched ultrasonic wave of ultrasonic wave of ultrasonic transmitter transmitting
Time information, the time information include multiple moment.Then velocity of sound is combined by the way that apart from computational algorithm, calculating reflection should be with ultrasound
Distance of the object of the matched ultrasonic wave of ultrasonic wave of wave launcher transmitting between each moment and mobile terminal.Then combine
Whether the distance between each moment and corresponding object of each moment and mobile terminal, determine the object away from the movement
Terminal.Wherein, if in each moment, closer to obtain ultrasonic receiver receive the first ultrasound information at the time of, thing
Body and the distance between mobile terminal are bigger, it is determined that and the object is the object away from mobile terminal, and according to the first ultrasonic wave
Information determine the current object away from mobile terminal whether be to the object before the mute control operation of earphone close to the mobile terminal,
If so, then judge the object away from the mobile terminal.
It should be noted that identification information can be added in the ultrasonic wave that ultrasonic transmitter is launched, mobile terminal parsing
The second ultrasound information got, to obtain the identification information of the corresponding ultrasonic wave of the second ultrasound information, then determines
Whether the identification information got identification information corresponding with the ultrasonic wave that ultrasonic transmitter is launched matches.If the mark got
Knowing information only includes an information, then in the identification information got mark corresponding with the ultrasonic wave that ultrasonic transmitter is launched
When information is consistent, determine that the corresponding ultrasonic wave of the second ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched,
If the identification information got includes a plurality of information, then there are the super of ultrasonic transmitter transmitting in a plurality of identification information
During the corresponding identification information of sound wave, the super of the corresponding ultrasonic wave of the second ultrasound information and ultrasonic transmitter transmitting is determined
Sound wave matches.
Step S70, when the object is away from the mobile terminal, play operation is performed to the earphone.
In the present embodiment, when the object is away from the mobile terminal, play operation is performed to the earphone.Specifically
Ground, if it is by the volume adjustment of the earphone to minimum volume, step S70 bags that mute control operation is carried out to the earphone
Include:When the object is away from the mobile terminal, the information volume of acquisition volume adjustment to minimum volume foregoing description earphone,
The volume of the earphone is adjusted based on the information volume, that is, is recovered to the earphone before the mute control operation of earphone progress
Volume.If mute control operation is carried out to the earphone, and the mobile terminal pause plays currently playing audio and video letter in order to control
Breath, then step S70 includes:When the object is away from the mobile terminal, the mobile terminal is controlled to continue to play the sound
Video information.
With reference to Fig. 8, after mute control operation is carried out to the earphone, mobile terminal obtains institute every prefixed time interval
The second ultrasound information that ultrasonic receiver receives is stated, is sent out in second ultrasound information and the ultrasonic transmitter
During the ultrasonic wave matching penetrated, determine the object whether away from described mobile whole based on second ultrasound information got
End, and when the object is away from the mobile terminal, performs the earphone play operation, in Fig. 8, close to the vehicle of user
In the transport condition away from user, at this time, mobile terminal performs play operation to the earphone.
The headset control method based on ultrasonic wave that the present embodiment proposes is described super by being obtained every prefixed time interval
The second ultrasound information that acoustic receiver receives, then sends out in second ultrasound information and the ultrasonic transmitter
During the ultrasonic wave matching penetrated, determine the object whether away from described mobile whole based on second ultrasound information got
End, then when the object is away from the mobile terminal, play operation is performed to the earphone, is realized according to the second ultrasound
Ripple information performs play operation to earphone, to recover to carry out earphone the audio output or volume of earphone before mute operation, makes
User can continue to the operation such as listen to music by earphone, further increase user experience.
Based on second embodiment, the 3rd embodiment of the proposition headset control method of the invention based on ultrasonic wave, with reference to figure
9, step S70 includes:
Step S71, it is true based on second ultrasound information got when the object is away from the mobile terminal
It whether there is the object close to the mobile terminal before settled;
In the present embodiment, when the object is away from the mobile terminal, i.e., to close before the mute control operation of earphone
When the object of the mobile terminal is from the mobile terminal, determine whether to deposit based on second ultrasound information got
In the object close to the mobile terminal.Specifically, according to combination velocity of sound by the way that apart from computational algorithm, calculating reflection is somebody's turn to do and ultrasound
Distance of the object of the matched ultrasonic wave of ultrasonic wave of wave launcher transmitting between each moment and mobile terminal, with reference to each
The distance between moment and corresponding object of each moment and mobile terminal, determine whether there is close to the mobile terminal
Object.Wherein, if in each moment, closer to obtain ultrasonic receiver receive the second ultrasound information at the time of, thing
Body and the distance between mobile terminal are smaller, it is determined that the object is the object close to mobile terminal, that is, judges there is currently to connect
The object of the nearly mobile terminal, otherwise, it is determined that there is currently no the object close to the mobile terminal.
Step S72, when there is currently no close to the object of the mobile terminal, play operation is performed to the earphone.
In the present embodiment, when there is currently no close to the object of the mobile terminal, the earphone is performed and is broadcast
Put operation, specifically, if the earphone is carried out mute control operation be by the volume adjustment of the earphone to minimum volume,
Step S72 includes:When there is currently no close to the object of the mobile terminal, institute before volume adjustment to minimum volume is obtained
The information volume of earphone is stated, the volume of the earphone is adjusted based on the information volume, that is, recovers to carry out the earphone mute
The volume of the earphone before control operation.If mute control operation is carried out to the earphone, and the mobile terminal pause plays in order to control
Currently playing audio/video information, then step S72 include:When there is currently no close to the object of the mobile terminal, control
The mobile terminal continues to play the audio/video information.
It should be noted that when there is currently close to the object of the mobile terminal, continue to the earphone
Mute control operation.
The present embodiment propose the headset control method based on ultrasonic wave, by the object away from the mobile terminal
When, determined whether in the presence of the object close to the mobile terminal, worked as based on second ultrasound information got
It is preceding be not present close to the mobile terminal object when, to the earphone execution play operation, realize in mute control operation
The object of preceding close mobile terminal away from the mobile terminal and there is currently no close to during the object of the mobile terminal to earphone
Play operation is performed, to recover to carry out earphone the audio output or volume of earphone before mute operation, avoids existing again and leans on
Play operation is performed to earphone during the object of the nearly mobile terminal, further increases user experience.
Based on second embodiment, the fourth embodiment of the proposition headset control method of the invention based on ultrasonic wave, with reference to figure
10, step S70 includes:
Step S73, when the object is away from the mobile terminal, obtains volume adjustment to minimum volume foregoing description ear
The information volume of machine;
In the present embodiment, the object close to mobile terminal before mute control operation is carried out to earphone is whole away from the movement
During end, volume adjustment is obtained to the information volume of minimum volume foregoing description earphone, that is, obtains and mute control behaviour is carried out to earphone
The information volume of the earphone before making.
Step S74, the volume of the earphone is adjusted based on the information volume.
In the present embodiment, in the information volume of the earphone before getting to the mute control operation of earphone progress, it is based on
The information volume adjusts the volume of the earphone, will the volume of the earphone recover to carrying out the ear before mute control operation to earphone
The volume of machine.
The present embodiment propose the headset control method based on ultrasonic wave, by the object away from the mobile terminal
When, volume adjustment is obtained to the information volume of minimum volume foregoing description earphone, is next based on described in the information volume adjusting
The volume of earphone, can recover the volume of earphone to the volume that the earphone before mute control operation is carried out to earphone, in order to
Continue to provide the earphone and listen to audio/video information, further increase user experience.
Based on first embodiment, the 5th embodiment of the proposition headset control method of the invention based on ultrasonic wave, with reference to figure
11, step S20 includes:
Step S21, obtains the first flag information of first ultrasound information, and ultrasonic transmitter transmitting
Ultrasonic wave second identifier information;
In the present embodiment, identification information can be added in the ultrasonic wave that ultrasonic transmitter is launched, is getting ultrasound
The first ultrasound information that ripple receiver receives, parses first ultrasound information, to obtain first ultrasonic wave
The first flag information of information, while obtain the second identifier information of the ultrasonic wave of ultrasonic transmitter transmitting.
Step S22, first ultrasound information is determined based on the first flag information and the second identifier information
Whether matched with the ultrasonic wave of ultrasonic transmitter transmitting.
In the present embodiment, when getting first flag information and second identifier information, believed based on the first flag
Breath and the second identifier information determine the transmitting of first ultrasound information and the ultrasonic transmitter ultrasonic wave whether
Matching, wherein, when first flag information is identical or consistent with second identifier information, judge that the first ultrasound information surpasses with described
The ultrasonic wave matching of pinger transmitting, when first flag information and second identifier information differ or is inconsistent, judges
First ultrasound information and the ultrasonic wave of ultrasonic transmitter transmitting mismatch.
The headset control method based on ultrasonic wave that the present embodiment proposes, by obtain first ultrasound information the
One identification information, and the second identifier information of the ultrasonic wave of ultrasonic transmitter transmitting, are believed based on the first flag
Breath and the second identifier information determine the transmitting of first ultrasound information and the ultrasonic transmitter ultrasonic wave whether
Matching, can determine that the first ultrasound information is sent out with the ultrasonic transmitter according to first flag information and second identifier information
Whether the ultrasonic wave penetrated matches, and then improves the accuracy that mute control operation is carried out to earphone, further increases user
Experience.
Based on above-described embodiment, the sixth embodiment of the proposition headset control method of the invention based on ultrasonic wave, with reference to figure
12, step S40 includes:
Step S41, when there is currently close to the object of the mobile terminal, output there is currently close to described mobile whole
The warning prompt information of the object at end;
In the present embodiment, when determining to there is currently close to the object of the mobile terminal according to the first ultrasound information,
Output there is currently the warning prompt information close to the object of the mobile terminal, to prompt user currently to have object close, make
User makes a response in time.
In other embodiments, when there is currently close to the object of the mobile terminal, whether the mobile terminal is determined
In bright screen state, when the mobile terminal is in bright screen state, it can show there is currently in the display interface of mobile terminal and connect
The warning prompt information of the object of the nearly mobile terminal.
Step S42, mute control operation is carried out to the earphone.
It should be noted that if the earphone is noise cancelling headphone, outside user may also can not hear clearly in the mute state
The sound of boundary's environment, therefore can only export the warning prompt information that there is currently close to the object of the mobile terminal.
The headset control method based on ultrasonic wave that the present embodiment proposes, by there is currently close to the mobile terminal
Object when, output there is currently warning prompt information close to the object of the mobile terminal, then to earphone progress
Mute control operation, to prompt user currently to have object close, makes user make a response in time, further increases user's body
Test.
In addition, the embodiment of the present invention also proposes a kind of storage medium, which is computer-readable, and the storage is situated between
The earphone control program based on ultrasonic wave is stored with matter, when the earphone control program based on ultrasonic wave is executed by processor
Realize following operation:
The first ultrasound information that ultrasonic receiver described in timing acquisition receives;
The corresponding ultrasonic wave of first ultrasound information for determining to get surpasses with ultrasonic transmitter transmitting
Whether sound wave matches;
When the corresponding ultrasonic wave of first ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched,
The object for determining whether to have close to the mobile terminal based on first ultrasound information got;
When there is currently close to the object of the mobile terminal, mute control operation is carried out to the earphone.
Further, following operation is also realized when the earphone control program based on ultrasonic wave is executed by processor:
Every the second ultrasound information that the prefixed time interval acquisition ultrasonic receiver receives;
When second ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, based on what is got
Whether second ultrasound information determines the object away from the mobile terminal;
When the object is away from the mobile terminal, play operation is performed to the earphone.
Further, following operation is also realized when the earphone control program based on ultrasonic wave is executed by processor:
When the object is away from the mobile terminal, determined based on second ultrasound information got be currently
The no object existed close to the mobile terminal;
When there is currently no close to the object of the mobile terminal, play operation is performed to the earphone.
Further, following operation is also realized when the earphone control program based on ultrasonic wave is executed by processor:
When there is currently close to the object of the mobile terminal, by the volume adjustment of the earphone to minimum volume.
Further, following operation is also realized when the earphone control program based on ultrasonic wave is executed by processor:
When the object is away from the mobile terminal, volume adjustment is obtained to the volume of minimum volume foregoing description earphone
Information;
The volume of the earphone is adjusted based on the information volume.
Further, following operation is also realized when the earphone control program based on ultrasonic wave is executed by processor:
When there is currently close to the object of the mobile terminal, the mobile terminal pause is controlled to play currently playing
Audio/video information;
It is described when the object is away from the mobile terminal, to the earphone perform play operation the step of include:
When the object is away from the mobile terminal, the mobile terminal is controlled to continue to play the audio/video information.
Further, following operation is also realized when the earphone control program based on ultrasonic wave is executed by processor:
Obtain the first flag information of first ultrasound information, and the ultrasonic wave of ultrasonic transmitter transmitting
Second identifier information;
Determine that first ultrasound information surpasses with described based on the first flag information and the second identifier information
Whether the ultrasonic wave of pinger transmitting matches.
Further, following operation is also realized when the earphone control program based on ultrasonic wave is executed by processor:
When there is currently close to the object of the mobile terminal, output there is currently the object close to the mobile terminal
Warning prompt information;
Mute control operation is carried out to the earphone.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
- A kind of 1. headset control method based on ultrasonic wave, it is characterised in that applied to the mobile terminal equipped with earphone, the ear Machine is equipped with ultrasonic transmitter, and shown mobile terminal is equipped with ultrasonic receiver, the headset control method based on ultrasonic wave Comprise the following steps:The first ultrasound information that ultrasonic receiver described in timing acquisition receives;Determine the corresponding ultrasonic wave of first ultrasound information and the ultrasonic wave of ultrasonic transmitter transmitting got Whether match;When the corresponding ultrasonic wave of first ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, it is based on First ultrasound information got determines whether the object for having close to the mobile terminal;When there is currently close to the object of the mobile terminal, mute control operation is carried out to the earphone.
- 2. the headset control method based on ultrasonic wave as claimed in claim 1, it is characterised in that it is described there is currently it is close During the object of the mobile terminal, after performing the step of silence processing operates to the earphone, the ear based on ultrasonic wave Machine control method further includes:Every the second ultrasound information that the prefixed time interval acquisition ultrasonic receiver receives;When second ultrasound information is matched with the ultrasonic wave that the ultrasonic transmitter is launched, described in getting Whether the second ultrasound information determines the object away from the mobile terminal;When the object is away from the mobile terminal, play operation is performed to the earphone.
- 3. the headset control method based on ultrasonic wave as claimed in claim 2, it is characterised in that described remote in the object During the mobile terminal, the step of earphone execution play operation, is included:When the object is away from the mobile terminal, determine whether to deposit based on second ultrasound information got In the object close to the mobile terminal;When there is currently no close to the object of the mobile terminal, play operation is performed to the earphone.
- 4. the headset control method based on ultrasonic wave as claimed in claim 2, it is characterised in that it is described there is currently it is close During the object of the mobile terminal, performing the step of silence processing operates to the earphone includes:When there is currently close to the object of the mobile terminal, by the volume adjustment of the earphone to minimum volume.
- 5. the headset control method based on ultrasonic wave as claimed in claim 4, it is characterised in that described remote in the object During the mobile terminal, the step of earphone execution play operation, is included:When the object is away from the mobile terminal, the volume for obtaining volume adjustment to minimum volume foregoing description earphone is believed Breath;The volume of the earphone is adjusted based on the information volume.
- 6. the headset control method based on ultrasonic wave as claimed in claim 2, it is characterised in that it is described there is currently it is close During the object of the mobile terminal, performing the step of silence processing operates to the earphone includes:When there is currently close to the object of the mobile terminal, controlling the mobile terminal pause to play currently playing sound and regarding Frequency information;It is described when the object is away from the mobile terminal, to the earphone perform play operation the step of include:Described When object is away from the mobile terminal, the mobile terminal is controlled to continue to play the audio/video information.
- 7. the headset control method based on ultrasonic wave as claimed in claim 1, it is characterised in that the institute for determining to get Whether state the first ultrasound information includes the step of matching with the ultrasonic wave that the ultrasonic transmitter is launched:Obtain the first flag information of first ultrasound information, and the of the ultrasonic wave of ultrasonic transmitter transmitting Two identification informations;First ultrasound information and the ultrasonic wave are determined based on the first flag information and the second identifier information Whether the ultrasonic wave of transmitter transmitting matches.
- 8. such as headset control method of claim 1 to 7 any one of them based on ultrasonic wave, it is characterised in that described to work as It is preceding exist close to the mobile terminal object when, to the earphone progress mute control operation the step of include:When there is currently close to the object of the mobile terminal, output there is currently the police of the object close to the mobile terminal Accuse prompt message;Mute control operation is carried out to the earphone.
- 9. a kind of mobile terminal, it is characterised in that the mobile terminal is equipped with earphone and ultrasonic receiver, and the earphone is equipped with Ultrasonic transmitter, the mobile terminal include:Memory, processor and it is stored on the memory and can be in the processing The control program of the earphone based on ultrasonic wave run on device, the earphone control program based on ultrasonic wave are held by the processor Realized during row such as the step of headset control method described in any item of the claim 1 to 8 based on ultrasonic wave.
- A kind of 10. storage medium, it is characterised in that the earphone control program based on ultrasonic wave is stored with the storage medium, The earphone control program based on ultrasonic wave realizes such as base described in any item of the claim 1 to 8 when being executed by processor In the headset control method of ultrasonic wave the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711257683.9A CN107920312A (en) | 2017-11-30 | 2017-11-30 | Headset control method, mobile terminal and storage medium based on ultrasonic wave |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711257683.9A CN107920312A (en) | 2017-11-30 | 2017-11-30 | Headset control method, mobile terminal and storage medium based on ultrasonic wave |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107920312A true CN107920312A (en) | 2018-04-17 |
Family
ID=61898227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711257683.9A Pending CN107920312A (en) | 2017-11-30 | 2017-11-30 | Headset control method, mobile terminal and storage medium based on ultrasonic wave |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107920312A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111751786A (en) * | 2020-07-01 | 2020-10-09 | 北京小米移动软件有限公司 | Acoustic wave measuring method, acoustic wave measuring apparatus, acoustic wave measuring device, and storage medium |
CN112383857A (en) * | 2020-11-10 | 2021-02-19 | 维沃移动通信有限公司 | Earphone control method, control device and earphone |
CN112987925A (en) * | 2021-03-04 | 2021-06-18 | 歌尔科技有限公司 | Earphone and control method and device thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201251626Y (en) * | 2008-08-22 | 2009-06-03 | 深圳市同洲电子股份有限公司 | Mobile terminal and navigational device |
CN101827150A (en) * | 2009-03-06 | 2010-09-08 | 中兴通讯股份有限公司 | Mobile phone with blind guide function and blind guide method |
US20120171963A1 (en) * | 2010-12-31 | 2012-07-05 | Tsfaty Yossef | System and method for using ultrasonic communication |
CN204316708U (en) * | 2014-12-28 | 2015-05-06 | 加一联创电子科技有限公司 | Headphone, detecting terminal and detection system |
CN108737921A (en) * | 2018-04-28 | 2018-11-02 | 维沃移动通信有限公司 | A kind of control method for playing back, system, earphone and mobile terminal |
-
2017
- 2017-11-30 CN CN201711257683.9A patent/CN107920312A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201251626Y (en) * | 2008-08-22 | 2009-06-03 | 深圳市同洲电子股份有限公司 | Mobile terminal and navigational device |
CN101827150A (en) * | 2009-03-06 | 2010-09-08 | 中兴通讯股份有限公司 | Mobile phone with blind guide function and blind guide method |
US20120171963A1 (en) * | 2010-12-31 | 2012-07-05 | Tsfaty Yossef | System and method for using ultrasonic communication |
CN204316708U (en) * | 2014-12-28 | 2015-05-06 | 加一联创电子科技有限公司 | Headphone, detecting terminal and detection system |
CN108737921A (en) * | 2018-04-28 | 2018-11-02 | 维沃移动通信有限公司 | A kind of control method for playing back, system, earphone and mobile terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111751786A (en) * | 2020-07-01 | 2020-10-09 | 北京小米移动软件有限公司 | Acoustic wave measuring method, acoustic wave measuring apparatus, acoustic wave measuring device, and storage medium |
CN111751786B (en) * | 2020-07-01 | 2023-06-30 | 北京小米移动软件有限公司 | Acoustic wave measurement method, acoustic wave measurement device, acoustic wave measurement equipment and storage medium |
CN112383857A (en) * | 2020-11-10 | 2021-02-19 | 维沃移动通信有限公司 | Earphone control method, control device and earphone |
CN112987925A (en) * | 2021-03-04 | 2021-06-18 | 歌尔科技有限公司 | Earphone and control method and device thereof |
WO2022183641A1 (en) * | 2021-03-04 | 2022-09-09 | 歌尔股份有限公司 | Earphone, and control method and device therefor |
CN112987925B (en) * | 2021-03-04 | 2022-11-25 | 歌尔科技有限公司 | Earphone and control method and device thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108647005A (en) | Audio frequency playing method, mobile terminal and computer readable storage medium | |
CN107995354A (en) | A kind of application control method, terminal and computer-readable recording medium | |
CN107277216A (en) | A kind of volume adjusting method, terminal and computer-readable recording medium | |
CN107920270A (en) | Video separated screen control method for playing back, terminal and computer-readable recording medium | |
CN107402387A (en) | Movement tendency based on ultrasonic wave determines method, apparatus and readable storage medium storing program for executing | |
CN109933386A (en) | The starting method, apparatus and computer readable storage medium of picture-in-picture mode | |
CN108037845A (en) | Display control method, mobile terminal and computer-readable recording medium | |
CN108536419A (en) | A kind of game volume control method, equipment and computer readable storage medium | |
CN107682547A (en) | A kind of voice messaging regulation and control method, equipment and computer-readable recording medium | |
CN108566484A (en) | Message treatment method, terminal device and computer readable storage medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN109660973A (en) | Bluetooth control method, mobile terminal and storage medium | |
CN109088997A (en) | A kind of gaming audio control method, terminal and computer readable storage medium | |
CN108052352A (en) | Control method, terminal and the computer readable storage medium of screen on-off state | |
CN109710159A (en) | A kind of flexible screen response method, equipment and computer readable storage medium | |
CN110187808A (en) | Dynamic wallpaper setting method, device and computer readable storage medium | |
CN109842725A (en) | A kind of method for controlling volume of mobile terminal, mobile terminal and storage medium | |
CN107920312A (en) | Headset control method, mobile terminal and storage medium based on ultrasonic wave | |
CN107635083A (en) | The tinkle of bells method to set up, mobile terminal and readable storage medium storing program for executing | |
CN108541116A (en) | Lamp light control method, terminal and computer readable storage medium | |
CN107948397A (en) | A kind of information-pushing method, device and computer-readable recording medium | |
CN107197101A (en) | Audio regulation method, mobile terminal and computer-readable recording medium | |
CN109558009A (en) | Video broadcasting method, mobile terminal and computer readable storage medium | |
CN108683997A (en) | A kind of guard method of terminal, terminal and computer readable storage medium | |
CN108566456A (en) | Image pickup 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180417 |
|
RJ01 | Rejection of invention patent application after publication |