CN107894839A - Terminal exports method, mobile terminal and the computer-readable recording medium of prompt tone - Google Patents
Terminal exports method, mobile terminal and the computer-readable recording medium of prompt tone Download PDFInfo
- Publication number
- CN107894839A CN107894839A CN201711245556.7A CN201711245556A CN107894839A CN 107894839 A CN107894839 A CN 107894839A CN 201711245556 A CN201711245556 A CN 201711245556A CN 107894839 A CN107894839 A CN 107894839A
- Authority
- CN
- China
- Prior art keywords
- output
- prompt tone
- frequency
- mobile terminal
- difference
- 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
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
Abstract
The invention discloses method, mobile terminal and the computer-readable recording medium of a kind of terminal output prompt tone, mobile terminal includes ultrasonic transmission device and ultrasonic probe, ultrasonic receiver, and this method includes:After mobile terminal output prompt tone is detected, the first ultrasonic signal is launched by ultrasonic transmission device, and the first ultrasonic signal is received by ultrasonic probe, ultrasonic receiver and runs into the second ultrasonic signal returned after barrier;Tranmitting frequency corresponding to the first ultrasonic signal is determined, and determines receives frequency corresponding to the second ultrasonic signal;Calculate the difference on the frequency between tranmitting frequency and receives frequency;If difference on the frequency is more than, predeterminated frequency is poor, and forbidden moves terminal performs the output operation of output prompt tone.The present invention is realized in the case of mobile terminal is not contacted, and is controlled mobile terminal to terminate to export the output of prompt tone in advance before the arrival of prompt tone output time by ultrasonic signal and is operated.
Description
Technical field
The present invention relates to communication technical field, more particularly to method, mobile terminal and the meter of a kind of terminal output prompt tone
Calculation machine readable storage medium storing program for executing.
Background technology
With the fast development of mobile terminal technology, increasing user replaces traditional alarm clock using mobile terminal,
Set preset time to carry out jingle bell in the terminal, remind user.But current mobile terminal is used during jingle bell
If family is want to allow terminating mobile terminal jingle bell in advance before ring time reaches, user can only be stopped by clicking in mobile terminal
Only button, stopping operation for jingle bell is stopped with triggering, control mobile terminal stops jingle bell.But in some scenarios, user is not
The convenient stop button for clicking on mobile terminal, as user hears the jingle bell of mobile terminal morning in one's sleep, user is not desired to open
Eyes close jingle bell, or user is in public, such as in crowded public transport or subway when, user is inconvenient to pick up movement
Terminal clicks on stop button, and control mobile terminal stops jingle bell.It follows that at present can not be by not clicking in mobile terminal
Stop button, terminate the jingle bell operation of mobile terminal in advance before ring time arrival.
The content of the invention
It is a primary object of the present invention to propose the method for terminal output prompt tone a kind of, mobile terminal and computer-readable
Storage medium, it is intended to solve it is existing can only by click on the stop button in mobile terminal control mobile terminal output when
Between reach before terminate its export prompt tone output operation technical problem.
To achieve the above object, the invention provides a kind of method of terminal output prompt tone, the mobile terminal to include
Ultrasonic transmission device and ultrasonic probe, ultrasonic receiver, the method for the terminal output prompt tone include:
After mobile terminal output prompt tone is detected, the first ultrasonic wave is launched by the ultrasonic transmission device and believed
Number, and first ultrasonic signal is received by the ultrasonic probe, ultrasonic receiver and runs into the second ultrasonic wave returned after barrier
Signal;
Tranmitting frequency corresponding to first ultrasonic signal is determined, and is determined corresponding to second ultrasonic signal
Receives frequency;
Calculate the difference on the frequency between the tranmitting frequency and the receives frequency;
If the difference on the frequency is more than, predeterminated frequency is poor, forbids the mobile terminal to perform the output for exporting the prompt tone
Operation.
Alternatively, if the difference on the frequency is poor more than predeterminated frequency, the mobile terminal is forbidden to perform described in output
The step of output operation of prompt tone, includes:
If it is poor that the difference on the frequency is more than predeterminated frequency, transmitting amplitude corresponding to first ultrasonic signal is obtained, with
And obtain and amplitude is received corresponding to second ultrasonic signal;
Calculate the transmitting amplitude and the difference in magnitude received between amplitude;
If the difference in magnitude is more than default difference in magnitude, the mobile terminal is forbidden to perform the output for exporting the prompt tone
Operation.
Alternatively, it is described calculate it is described transmitting amplitude and it is described receive amplitude between difference in magnitude the step of after, also wrap
Include:
Judge whether the difference in magnitude is more than the default difference in magnitude;
If the difference in magnitude is less than or equal to the default difference in magnitude, the mobile terminal output prompt tone is reduced
Output time.
Alternatively, it is described calculate between the tranmitting frequency and the receives frequency difference on the frequency the step of after, also wrap
Include:
It is poor to judge whether the difference on the frequency is more than the predeterminated frequency;
If the difference on the frequency is less than or equal to, the predeterminated frequency is poor, obtains and launches first ultrasonic signal
Launch time, and obtain the reception time for receiving second ultrasonic signal;
First ultrasound is calculated according to the launch time, the transmission rate for receiving time and ultrasonic signal
The transmission range sum of ripple signal and second ultrasonic signal;
If the transmission range for calculating gained is less than or equal to pre-determined distance, the mobile terminal output prompt tone is reduced
Output volume.
Alternatively, it is described according to the launch time, the transmission rate for receiving time and ultrasonic signal calculates
After the step of transmission range sum of first ultrasonic signal and second ultrasonic signal, in addition to:
Judge whether the transmission range is more than the pre-determined distance;
If the transmission range is more than the pre-determined distance, the mobile terminal is controlled to export institute with current output volume
State prompt tone.
Alternatively, it is described calculate between the tranmitting frequency and the receives frequency difference on the frequency the step of after, also wrap
Include:
It is poor to judge whether the difference on the frequency is more than the predeterminated frequency;
If the difference on the frequency is less than or equal to, the predeterminated frequency is poor, obtains and launches first ultrasonic signal
Launch time, and obtain the reception time for receiving second ultrasonic signal;
First ultrasound is calculated according to the launch time, the transmission rate for receiving time and ultrasonic signal
The transmission range sum of ripple signal and second ultrasonic signal;
If the transmission range for calculating gained is less than or equal to pre-determined distance, changes the mobile terminal and currently exported
Prompt tone song.
Alternatively, if the difference on the frequency is poor more than predeterminated frequency, the mobile terminal is forbidden to perform described in output
After the step of output operation of prompt tone, in addition to:
The number of forbidding for forbidding the mobile terminal to perform output operation is calculated, and corresponds to and obtains the output behaviour each time
The output time and output volume of work;
If described forbid number to be more than or equal to preset times, the prompt tone is set according to the output time
Give tacit consent to output time, and the acquiescence output volume of the prompt tone is set according to the output volume.
Alternatively, if described forbid number to be more than or equal to preset times, set according to the output time
The acquiescence output time of the prompt tone, and the step of the acquiescence output volume according to the average volume setting prompt tone
Suddenly include:
If described forbid number to be more than or equal to preset times, forbid number according to calculating the output time
Interior average output time, and forbid average output volume in number according to calculating the output volume;
The average output time is arranged to the acquiescence output time of the prompt tone, and sound is averagely exported by described
Amount is arranged to the acquiescence output volume of the prompt tone.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include memory,
Processor and the program for being stored in the terminal output prompt tone that can be run on the memory and on the processor, the end
The step of the program of end output prompt tone is realized terminal output prompt tone as described above method during the computing device
Suddenly.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
The program of terminal output prompt tone is stored with storage medium, the program of the terminal output prompt tone is real when being executed by processor
Now the step of method of terminal output prompt tone as described above.
In the present invention by after detecting mobile terminal and exporting prompt tone, passing through ultrasonic transmission device transmitting the
One ultrasonic signal, and first ultrasonic signal is received by the ultrasonic probe, ultrasonic receiver and runs into what is returned after barrier
Second ultrasonic signal;Tranmitting frequency corresponding to first ultrasonic signal is determined, and determines the second ultrasonic wave letter
Receives frequency corresponding to number;Calculate the difference on the frequency between the tranmitting frequency and the receives frequency;If the difference on the frequency is more than
Predeterminated frequency is poor, then forbids the mobile terminal to perform the output operation for exporting the prompt tone.Realize when user is not easy to
It is defeated to control mobile terminal to terminate before output time arrival by clicking on stop button corresponding to prompt tone in mobile terminal
When going out prompt tone, barrier is used as by hand, in the case of mobile terminal is not contacted, to control and move by ultrasonic signal
Terminal terminates to export the output operation of prompt tone in advance before the arrival of prompt tone output time.
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 schematic flow sheet for the method first embodiment that terminal of the present invention exports prompt tone;
Fig. 4 is that mobile terminal is launched ultrasonic signal by receiver and received by microphone super in the embodiment of the present invention
A kind of schematic diagram of acoustic signals;
Fig. 5 is a kind of schematic diagram that mobile terminal of the embodiment of the present invention exports alarm clock;
Fig. 6 is a kind of schematic diagram for the library that prompt tone is stored in the embodiment of the present invention;
If Fig. 7 is that difference on the frequency is poor more than predeterminated frequency in the embodiment of the present invention, forbidden moves terminal performs output prompting
A kind of schematic flow sheet of the output operation of sound;
Fig. 8 is the schematic flow sheet for the method 3rd embodiment that terminal of the present invention exports prompt tone;
Fig. 9 is the schematic flow sheet for the method fourth embodiment that terminal of the present invention exports prompt tone.
The realization, functional characteristics and advantage of the object of the invention will explain referring to the drawings in conjunction with the embodiments.
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 ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, 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 digital 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, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part 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
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal 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, up data are sent to base station.Generally, 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 radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including 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, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted 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
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 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) are carried 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 WiFi 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
Caused noise or interference during frequency signal.
Mobile terminal 100 also 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 transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer 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 axles) 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, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted 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 relevant.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 touch operation of the user on or near it
(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 means are 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 sent of reception processing device 110 and can be 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, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 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 part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are 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 source (or battery charger) port, wired or nothing
Line FPDP, 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, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio 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, including ultrasonic transmission device and ultrasonic probe, ultrasonic receiver, processor
110 are used to call the terminal stored in memory 109 to export the program of prompt tone, and perform following operate:
After the output prompt tone of mobile terminal 100 is detected, pass through the ultrasonic transmission device and launch the first ultrasonic wave
Signal, and first ultrasonic signal is received by the ultrasonic probe, ultrasonic receiver and runs into the second ultrasound returned after barrier
Ripple signal;
Tranmitting frequency corresponding to first ultrasonic signal is determined, and is determined corresponding to second ultrasonic signal
Receives frequency;
Calculate the difference on the frequency between the tranmitting frequency and the receives frequency;
If the difference on the frequency is more than, predeterminated frequency is poor, forbids the mobile terminal 100 to perform and exports the prompt tone
Output operation.
Further, if the difference on the frequency is poor more than predeterminated frequency, the mobile terminal 100 is forbidden to perform output
The step of output operation of the prompt tone, includes:
If it is poor that the difference on the frequency is more than predeterminated frequency, transmitting amplitude corresponding to first ultrasonic signal is obtained, with
And obtain and amplitude is received corresponding to second ultrasonic signal;
Calculate the transmitting amplitude and the difference in magnitude received between amplitude;
If the difference in magnitude is more than default difference in magnitude, forbids the mobile terminal 100 to perform and export the prompt tone
Output operation.
Further, it is described calculate it is described transmitting amplitude and it is described receive amplitude between difference in magnitude the step of after, place
Reason device 110 is additionally operable to the program for calling the control mobile terminal 100 stored in memory 109 to export prompt tone, performs following grasp
Make:
Judge whether the difference in magnitude is more than the default difference in magnitude;
If the difference in magnitude is less than or equal to the default difference in magnitude, the output of mobile terminal 100 prompting is reduced
The output time of sound.
Further, it is described calculate between the tranmitting frequency and the receives frequency difference on the frequency the step of after, place
Reason device 110 is additionally operable to the program for calling the control mobile terminal 100 stored in memory 109 to export prompt tone, performs following grasp
Make:
It is poor to judge whether the difference on the frequency is more than the predeterminated frequency;
If the difference on the frequency is less than or equal to, the predeterminated frequency is poor, obtains and launches first ultrasonic signal
Launch time, and obtain the reception time for receiving second ultrasonic signal;
First ultrasound is calculated according to the launch time, the transmission rate for receiving time and ultrasonic signal
The transmission range sum of ripple signal and second ultrasonic signal;
If the transmission range for calculating gained is less than or equal to pre-determined distance, reduces the output of mobile terminal 100 and carry
Show the output volume of sound.
Further, it is described according to the launch time, the transmission rate for receiving time and ultrasonic signal calculates
After the step of going out the transmission range sum of first ultrasonic signal and second ultrasonic signal, processor 110 is also
For calling the control mobile terminal 100 stored in memory 109 to export the program of prompt tone, following operate is performed:
Judge whether the transmission range is more than the pre-determined distance;
If the transmission range is more than the pre-determined distance, control the mobile terminal 100 defeated with current output volume
Go out the prompt tone.
Further, it is described calculate between the tranmitting frequency and the receives frequency difference on the frequency the step of after, place
Reason device 110 is additionally operable to the program for calling the control mobile terminal 100 stored in memory 109 to export prompt tone, performs following grasp
Make:
It is poor to judge whether the difference on the frequency is more than the predeterminated frequency;
If the difference on the frequency is less than or equal to, the predeterminated frequency is poor, obtains and launches first ultrasonic signal
Launch time, and obtain the reception time for receiving second ultrasonic signal;
First ultrasound is calculated according to the launch time, the transmission rate for receiving time and ultrasonic signal
The transmission range sum of ripple signal and second ultrasonic signal;
If the transmission range for calculating gained is less than or equal to pre-determined distance, the current institute of the mobile terminal 100 is changed
The song of the prompt tone of output.
Further, if the difference on the frequency is poor more than predeterminated frequency, the mobile terminal 100 is forbidden to perform output
After the step of output operation of the prompt tone, processor 110 is additionally operable to call the control movement stored in memory 109 eventually
The program of the output of end 100 prompt tone, performs following operate:
Calculating forbids the mobile terminal 100 to perform the number of forbidding for exporting operation, and corresponding acquisition is described each time defeated
Go out the output time and output volume of operation;
If described forbid number to be more than or equal to preset times, the prompt tone is set according to the output time
Give tacit consent to output time, and the acquiescence output volume of the prompt tone is set according to the output volume.
Further, if described forbid number to be more than or equal to preset times, set according to the output time
Put the acquiescence output time of the prompt tone, and the acquiescence output volume of the prompt tone is set according to the average volume
Step includes:
If described forbid number to be more than or equal to preset times, forbid number according to calculating the output time
Interior average output time, and forbid average output volume in number according to calculating the output volume;
The average output time is arranged to the acquiescence output time of the prompt tone, and sound is averagely exported by described
Amount is arranged to the acquiescence output volume of the prompt tone.
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 will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
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 as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
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 here is omitted.
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 UE201 to EPC203 access.
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 about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
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 provided 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 method for terminal output prompt tone of the present invention is proposed
Each embodiment.
The present invention provides a kind of method of terminal output prompt tone.
Reference picture 3, Fig. 3 are the schematic flow sheet for the method first embodiment that terminal of the present invention exports prompt tone.
In the present embodiment, there is provided the embodiment of the method for terminal output prompt tone is, it is necessary to illustrate, although flowing
Logical order is shown in journey figure, but in some cases, can be with different from shown or described by order execution herein
The step of.
In the present embodiment, the method for terminal output prompt tone includes:
Step S10, after mobile terminal output prompt tone is detected, the first ultrasonic wave is launched by ultrasonic transmission device
Signal, and the first ultrasonic signal is received by ultrasonic probe, ultrasonic receiver and runs into the second ultrasonic signal returned after barrier.
In the terminal, user has pre-set the output time and output volume of current prompt sound.Work as shifting
Dynamic terminal detects current time equal to after output time, and mobile terminal exports prompting according to the output volume pre-set
Sound.Wherein, prompt tone includes but is not limited to quarter-bell, incoming call prompting sound and memorandum prompt tone.It is understood that mobile terminal
During prompt tone is exported, prompt tone can be exported according to the prompt tone song that user sets, as user can like oneself
Music be arranged to prompt tone.After mobile terminal, which detects current time, is equal to output time, mobile terminal sets user
Music exported in a manner of prompt tone.
After mobile terminal exports prompt tone, mobile terminal sends the first ultrasonic wave by its ultrasonic transmission device to be believed
Number, and the first ultrasonic signal is received by its ultrasonic probe, ultrasonic receiver and runs into the second ultrasonic signal returned after barrier.
In the present embodiment, in order to save the cost of mobile terminal, be able to will be moved using the receiver of mobile terminal as ultrasonic transmission device
The microphone of dynamic terminal is as ultrasonic probe, ultrasonic receiver.Specifically, Fig. 4 is can refer to, Fig. 4 is mobile terminal in the embodiment of the present invention
Ultrasonic signal and a kind of schematic diagram for passing through microphone received ultrasonic signal are launched by receiver.In other embodiments
In, it can also be set in mobile terminal dedicated for launching the ultrasonic transmission device of ultrasonic signal, and special use is set
In the ultrasonic probe, ultrasonic receiver of received ultrasonic signal.
Step S20, tranmitting frequency corresponding to the first ultrasonic signal is determined, and determined corresponding to the second ultrasonic signal
Receives frequency.
After mobile terminal launches the first ultrasonic signal by ultrasonic transmission device, the ultrasound of mobile terminal records first
Ultrasonic wave tranmitting frequency corresponding to ripple signal.When mobile terminal receives the second ultrasonic signal by ultrasonic probe, ultrasonic receiver
Afterwards, ultrasonic wave receives frequency corresponding to the ultrasonic signal of mobile terminal records second.It is understood that when ultrasonic wave transmitting dress
After putting the first ultrasonic signal of transmitting, it will return if the first ultrasonic signal encounters barrier in transmitting procedure, ultrasound
Wave receiving device will receive the second ultrasonic signal corresponding with the first ultrasonic signal.It should be noted that when first
When ultrasonic signal encounters barrier return, the transmission frequency of ultrasonic signal can be changed, i.e. the first ultrasonic signal is corresponding
Tranmitting frequency and the second ultrasonic signal corresponding to receives frequency it is inconsistent.
Step S30, calculate the difference on the frequency between tranmitting frequency and receives frequency.
Step S40, if difference on the frequency is more than, predeterminated frequency is poor, and forbidden moves terminal performs the output behaviour of output prompt tone
Make.
After mobile terminal determines tranmitting frequency and receives frequency, mobile terminal is calculated between tranmitting frequency and receives frequency
Difference on the frequency, and will calculate gained difference on the frequency contrasted with predeterminated frequency difference.It is poor that if difference on the frequency is more than predeterminated frequency, mobile
Terminal then forbids performing the output operation of the current prompt tone exported of output, to terminate the prompting that output is currently exported
Sound.Wherein, predeterminated frequency difference can be set according to individual subscriber operating habit, be not limited herein.It should be noted that at this
It is poor that the default frequency set according to the operating habit of domestic consumer is provided with embodiment, in mobile terminal.If mobile terminal
User is not provided with difference on the frequency, and mobile terminal then can judge whether to forbid output to work as using default frequency difference as predeterminated frequency difference
Preceding exported prompting.
As in the morning, when user also stays in the bed, mobile terminal quarter-bell rings, and user is now not desired to open eyes to close and made a noise
Bell.User can be used as barrier by ultrasonic signal in the case where not clicking on the stop button of mobile terminal stopping jingle bell using hand
Thing control mobile terminal is hindered to stop jingle bell.Specifically, reference picture 5, user are not required to slide downward and close alarm clock, can be directly by super
Sound wave closes alarm clock in the case where not contacting mobile terminal.
Further, the method for terminal output prompt tone also includes:
Step a, it is poor whether determination frequency difference is more than predeterminated frequency.
Step b, if difference on the frequency is less than or equal to, predeterminated frequency is poor, when obtaining the transmitting of the first ultrasonic signal of transmitting
Between, and obtain the reception time for receiving the second ultrasonic signal.
Further, after the difference on the frequency between tranmitting frequency and receives frequency is calculated in mobile terminal, by calculating
The difference on the frequency obtained is contrasted with predeterminated frequency difference, and it is poor to judge whether the difference on the frequency for calculating gained is more than predeterminated frequency.If calculate
The difference on the frequency of gained is poor more than or equal to predeterminated frequency, and mobile terminal then obtains ultrasonic transmission device and launches the first ultrasonic wave
The launch time of signal, and obtain the reception time that ultrasonic probe, ultrasonic receiver receives the second ultrasonic signal.Need what is illustrated
It is,, can if ultrasonic transmission device can realize clocking capability when ultrasonic transmission device launches the first ultrasonic signal
It is recorded by ultrasonic transmission device oneself and launches the launch time of the first ultrasonic signal, or can be by timing in mobile terminal
Device record ultrasonic transmission device sends the launch time of the first ultrasonic signal.The second surpass it is understood that record receives
The principle that acoustic signals receive the time is consistent with the principle of the launch time of record the first ultrasonic signal of transmitting, no longer superfluous herein
State.
Step c, the first ultrasonic signal is calculated according to the transmission rate of launch time, reception time and ultrasonic signal
With the transmission range sum of the second ultrasonic signal.
When acquisition for mobile terminal to launch time and receive the time after, mobile terminal calculate launch time and receive the time it
Between time difference, according to calculating the time difference of gained and the transmission rate of ultrasonic signal calculates the first ultrasonic signal and the
The transmission range sum of two ultrasonic signals.Wherein, the aerial transmission rate of ultrasonic signal is 340m/s (metre per second (m/s)).
The transmission range sum of first ultrasonic signal and the second ultrasonic signal is:L=C × T, wherein, T represents launch time and connect
Time difference between time receiving, C represent the aerial transmission rate of ultrasonic signal.
Step d, if the transmission range for calculating gained is less than or equal to pre-determined distance, it is defeated to change the current institute of mobile terminal
The song of the prompt tone gone out.
After the transmission range of the first ultrasonic signal is calculated, mobile terminal judges whether transmission range is less than or waits
In pre-determined distance.If transmission range is less than or equal to pre-determined distance, mobile terminal then changes the prompt tone that is currently exported
Song.Wherein, pre-determined distance can be set as desired by user.When user is not provided with pre-determined distance, mobile terminal is then
Using default distance as pre-determined distance.The song of prompt tone can be pre-set by user according to hobby.In the present embodiment,
Prompt tone library is provided with mobile terminal, user is stored in this document storehouse and wants to set up file for prompt tone.It is if literary
The part library storage file of this 5 different songs of A, B, C, D and E, as shown in fig. 6, this 5 file all can be the sound that user likes
Happy fragment.If the prompt tone currently exported is B songs, when transmission range is less than or equal to pre-determined distance, mobile terminal
The prompt tone currently exported is changed into any one of A, C, D and E song from B songs.Further, user also can be set not
With the priority of song prompt tone output, when changing prompt tone output song, the high song of preferential output priority.
Further, if transmission range is more than pre-determined distance, mobile terminal then continues to work as with current output volume output
Preceding song.
The present embodiment by ultrasonic transmission device transmitting by after mobile terminal output prompt tone is detected, the first being surpassed
Acoustic signals, and the first ultrasonic signal is received by ultrasonic probe, ultrasonic receiver and runs into the second ultrasonic wave returned after barrier letter
Number;Tranmitting frequency corresponding to the first ultrasonic signal is determined, and determines receives frequency corresponding to the second ultrasonic signal;Calculate
Difference on the frequency between tranmitting frequency and receives frequency;If difference on the frequency is more than, predeterminated frequency is poor, and forbidden moves terminal performs output
The output operation of prompt tone.Realize when user is not easy to by clicking in mobile terminal stop button corresponding to prompt tone to control
When mobile terminal processed terminates output prompt tone before output time arrival, barrier is used as by hand, not contact movement
In the case of terminal, control mobile terminal to terminate output in advance before the arrival of prompt tone output time by ultrasonic signal and carry
Show the output operation of sound.
Further, the second embodiment of the method for terminal output prompt tone of the present invention is proposed based on first embodiment.Eventually
The difference of the second embodiment of the method for end output prompt tone and the first embodiment of the method for terminal output prompt tone is, joins
According to Fig. 7, step S40 includes:
Step S41, if difference on the frequency is poor more than predeterminated frequency, transmitting amplitude corresponding to the first ultrasonic signal is obtained, with
And obtain and amplitude is received corresponding to the second ultrasonic signal.
If it is determined that the difference on the frequency for calculating gained is more than, predeterminated frequency is poor, and it is corresponding that mobile terminal then obtains the first ultrasonic signal
Transmitting amplitude, and obtain the second ultrasonic signal corresponding to receive amplitude.Specifically, when ultrasonic transmission device transmitting the
During one ultrasonic signal, mobile terminal can control ultrasonic transmission device will to launch amplitude note corresponding to the first ultrasonic signal
Record is got up;When ultrasonic probe, ultrasonic receiver receives the second ultrasonic signal, mobile terminal can control ultrasonic probe, ultrasonic receiver by the
Amplitude record is received corresponding to two ultrasonic signals to get up.
Step S42, calculate transmitting amplitude and receive the difference in magnitude between amplitude.
Step S43, if difference in magnitude is more than default difference in magnitude, forbidden moves terminal performs the output behaviour of output prompt tone
Make.
After acquisition for mobile terminal to transmitting amplitude and reception amplitude, mobile terminal calculates transmitting amplitude and receives amplitude
Between difference in magnitude, and will calculate gained difference in magnitude contrasted with default difference in magnitude.If difference in magnitude is more than default difference in magnitude,
Mobile terminal then forbids performing the output operation of output prompt tone.Default difference in magnitude can be set according to specific needs by user.
If user is not provided with default difference in magnitude, mobile terminal is then using the acquiescence difference in magnitude prestored as default difference in magnitude.
Further, the method for terminal output prompt tone also includes:
Step e, judges whether difference in magnitude is more than default difference in magnitude.
Step f, if difference in magnitude is less than or equal to default difference in magnitude, when reducing the output of mobile terminal output prompt tone
Between.
After mobile terminal is calculated transmitting amplitude and receives the difference in magnitude between amplitude, mobile terminal judges difference in magnitude
Whether default difference in magnitude is more than.If difference in magnitude is less than or equal to default difference in magnitude, mobile terminal then reduces it and exports prompt tone
Output time.It should be noted that mobile terminal reduce output time amplitude can according to output prompt tone output it is total when
Between set, such as will be prompted to sound output time and reduce to the half of output total time, or will be prompted to the output time of sound and reduce
To output total time four/it is third, specific output time reduces amplitude and is not limited in the present embodiment.
The present embodiment is by after difference on the frequency is more than predeterminated frequency difference, judging to receive amplitude and sending the amplitude between amplitude
Difference, only when difference in magnitude is also greater than default difference in magnitude, ability forbidden moves terminal performs the output operation of output prompt tone, passes through
Two factors of amplitude and frequency come judge whether forbidden moves terminal perform output prompt tone output operation, it is defeated to improve terminal
Go out the accuracy rate of prompt tone.
Further, the 3rd embodiment of the method for terminal output prompt tone of the present invention is proposed.Terminal output prompt tone
The 3rd embodiment of method and terminal output prompt tone the first of method and/or the difference of second embodiment be, reference picture
8, the method for terminal output prompt tone also includes:
Step S50, it is poor whether determination frequency difference is more than predeterminated frequency.
Step S60, if difference on the frequency is less than or equal to, predeterminated frequency is poor, obtains the transmitting of the first ultrasonic signal of transmitting
Time, and obtain the reception time for receiving the second ultrasonic signal.
Step S70, the first ultrasonic wave letter is calculated according to the transmission rate of launch time, reception time and ultrasonic signal
Number and the second ultrasonic signal transmission range sum.
Step S80, if the transmission range for calculating gained is less than or equal to pre-determined distance, reduces mobile terminal output and carry
Show the output volume of sound.
After the difference on the frequency between receives frequency and tranmitting frequency is calculated in mobile terminal, mobile terminal determination frequency is poor
Whether predeterminated frequency is more than poor.If it is poor that the difference on the frequency for calculating gained is more than predeterminated frequency, mobile terminal then obtains transmitting and the first surpassed
The launch time of acoustic signals, and obtain the reception time for receiving the second ultrasonic signal.Mobile terminal is according to acquired
Launch time, receive time and transmission rate the first ultrasonic signal of calculating of ultrasonic signal and the biography of the second ultrasonic signal
It is defeated apart from sum.When be calculated ultrasonic transmission distance be less than or equal to pre-determined distance when, mobile terminal reduces its output
The output volume of prompt tone.Specifically, the amplitude of mobile terminal reduction output volume can be set according to specific needs, can such as be set
Put reduces the volume of a unit on the basis of original output volume, or reduces the volume of two units.
Further, the method for terminal output prompt tone also includes:
Step g, judges whether transmission range is more than pre-determined distance.
Step h, if transmission range is more than pre-determined distance, control mobile terminal exports prompt tone with current output volume.
Further, after mobile terminal calculates transmission range, it is default that mobile terminal judges whether transmission range is more than
Distance.If transmission range is more than pre-determined distance, mobile terminal then controls mobile terminal to continue to output this with current output volume and carried
Show sound.
The present embodiment determines that difference on the frequency is poor less than or equal to predeterminated frequency by working as, and the transmission of the first ultrasonic signal
When distance is less than or equal to pre-determined distance, the output volume of mobile terminal output prompt tone is reduced, realizes and is not contacting shifting
In the case of dynamic terminal, intelligent terminal exports the output volume of prompt tone.
Further, the fourth embodiment of the method for terminal output prompt tone of the present invention is proposed.Terminal output prompt tone
The fourth embodiment of method and the first, second of method and/or the difference of 3rd embodiment of terminal output prompt tone are, join
According to Fig. 9, the method for terminal output prompt tone also includes:
Step S90, calculate forbidden moves terminal and perform the number of forbidding of output operation, and correspond to and obtain output behaviour each time
The output time and output volume of work.
Mobile terminal calculates forbids performing that output prompt tone output operates forbids number by ultrasonic signal, and correspondingly
Obtain the output time and output volume for exporting operation each time, i.e., when acquisition terminates to export prompt tone by ultrasonic signal,
Output time and output volume corresponding to the prompt tone.If once before terminating to export prompt tone, there are multiple output sounds in certain
Amount, then the output volume acquired in mobile terminal is the average output volume of the plurality of output volume.
Step S110, if forbidding number to be more than or equal to preset times, the silent of prompt tone is set according to output time
Recognize output time, and the acquiescence output volume of prompt tone is set according to output volume.
When acquisition for mobile terminal is to after forbidding number, mobile terminal judges acquired to forbid whether number is more than or waits
In preset times.If forbidding number to be more than or equal to preset times, mobile terminal is then set according to acquired output time
The acquiescence output time of prompt tone, and the acquiescence output volume according to output volume setting prompt tone.Wherein, preset times can
Set, such as could be arranged to 50 times according to specific needs, or 60 inferior.
Further, if forbidding number to be less than preset times, mobile terminal, which then continues to calculate, to be forbidden performing output operation
Forbid number.
Further, step S110 includes:
Step i, if forbidding number to be more than or equal to preset times, calculated and forbidden in number averagely according to output time
Output time, and calculated according to output volume and forbid average output volume in number.
Step j, average output time is arranged to the acquiescence output time of prompt tone, and average output volume is set
For the acquiescence output volume of prompt tone.
Further, if forbidding number to be more than or equal to preset times, mobile terminal is then according to acquired output time
Number calculates the average output time forbidden in number, and the average output volume forbidden in number is calculated according to output volume.
It is mobile that average output time is arranged to prompt tone after mobile terminal calculates average output time and average output volume
Give tacit consent to output time, and average output volume is arranged to export to the acquiescence output volume of prompt tone.Such as when mobile terminal is remembered
The number of forbidding recorded is 50 times, and when preset times are also configured as 50 times, it is corresponding that mobile terminal then obtains this 50 prompt tones
Output time and output volume, the average output time of this 50 output times is calculated, by corresponding to this 50 output times
Average output time is arranged to the acquiescence output time of prompt tone, and calculates the average output volume of this 50 output volumes,
Average output volume corresponding to this 50 output volumes is arranged to the acquiescence output volume of prompt tone.
The present embodiment sets prompt tone corresponding by the operating habit according to user by ultrasonic wave terminal output prompt tone
Acquiescence output volume and acquiescence output time, make mobile terminal output prompt tone acquiescence output time and acquiescence output volume
More meet the operating habit of user.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium.
The program of terminal output prompt tone is stored with the computer-readable recording medium, the mobile terminal includes super
Acoustic emission apparatus and ultrasonic probe, ultrasonic receiver, the program of the terminal output prompt tone realize following step when being executed by processor
Suddenly:
After mobile terminal output prompt tone is detected, the first ultrasonic wave is launched by the ultrasonic transmission device and believed
Number, and first ultrasonic signal is received by the ultrasonic probe, ultrasonic receiver and runs into the second ultrasonic wave returned after barrier
Signal;
Tranmitting frequency corresponding to first ultrasonic signal is determined, and is determined corresponding to second ultrasonic signal
Receives frequency;
Calculate the difference on the frequency between the tranmitting frequency and the receives frequency;
If the difference on the frequency is more than, predeterminated frequency is poor, forbids the mobile terminal to perform the output for exporting the prompt tone
Operation.
Further, if the difference on the frequency is poor more than predeterminated frequency, the mobile terminal is forbidden to perform output institute
The step of output operation for stating prompt tone, includes:
If it is poor that the difference on the frequency is more than predeterminated frequency, transmitting amplitude corresponding to first ultrasonic signal is obtained, with
And obtain and amplitude is received corresponding to second ultrasonic signal;
Calculate the transmitting amplitude and the difference in magnitude received between amplitude;
If the difference in magnitude is more than default difference in magnitude, the mobile terminal is forbidden to perform the output for exporting the prompt tone
Operation.
Further, it is described calculate it is described transmitting amplitude and it is described receive amplitude between difference in magnitude the step of after, institute
The program for stating terminal output prompt tone realizes following steps when being executed by processor:
Judge whether the difference in magnitude is more than the default difference in magnitude;
If the difference in magnitude is less than or equal to the default difference in magnitude, the mobile terminal output prompt tone is reduced
Output time.
Further, it is described calculate between the tranmitting frequency and the receives frequency difference on the frequency the step of after, institute
The program for stating terminal output prompt tone realizes following steps when being executed by processor:
It is poor to judge whether the difference on the frequency is more than the predeterminated frequency;
If the difference on the frequency is less than or equal to, the predeterminated frequency is poor, obtains and launches first ultrasonic signal
Launch time, and obtain the reception time for receiving second ultrasonic signal;
First ultrasound is calculated according to the launch time, the transmission rate for receiving time and ultrasonic signal
The transmission range sum of ripple signal and second ultrasonic signal;
If the transmission range for calculating gained is less than or equal to pre-determined distance, the mobile terminal output prompt tone is reduced
Output volume.
Further, it is described according to the launch time, the transmission rate for receiving time and ultrasonic signal calculates
After the step of going out the transmission range sum of first ultrasonic signal and second ultrasonic signal, the terminal output
Following steps are realized when the program of prompt tone is executed by processor:
Judge whether the transmission range is more than the pre-determined distance;
If the transmission range is more than the pre-determined distance, the mobile terminal is controlled to export institute with current output volume
State prompt tone.
Further, it is described calculate between the tranmitting frequency and the receives frequency difference on the frequency the step of after, institute
The program for stating terminal output prompt tone realizes following steps when being executed by processor:
It is poor to judge whether the difference on the frequency is more than the predeterminated frequency;
If the difference on the frequency is less than or equal to, the predeterminated frequency is poor, obtains and launches first ultrasonic signal
Launch time, and obtain the reception time for receiving second ultrasonic signal;
First ultrasound is calculated according to the launch time, the transmission rate for receiving time and ultrasonic signal
The transmission range sum of ripple signal and second ultrasonic signal;
If the transmission range for calculating gained is less than or equal to pre-determined distance, changes the mobile terminal and currently exported
Prompt tone song.
Further, if the difference on the frequency is poor more than predeterminated frequency, the mobile terminal is forbidden to perform output institute
After the step of stating the output operation of prompt tone, the program of the terminal output prompt tone realizes following walk when being executed by processor
Suddenly:
The number of forbidding for forbidding the mobile terminal to perform output operation is calculated, and corresponds to and obtains the output behaviour each time
The output time and output volume of work;
If described forbid number to be more than or equal to preset times, the prompt tone is set according to the output time
Give tacit consent to output time, and the acquiescence output volume of the prompt tone is set according to the output volume.
Further, if described forbid number to be more than or equal to preset times, set according to the output time
Put the acquiescence output time of the prompt tone, and the acquiescence output volume of the prompt tone is set according to the average volume
Step includes:
If described forbid number to be more than or equal to preset times, forbid number according to calculating the output time
Interior average output time, and forbid average output volume in number according to calculating the output volume;
The average output time is arranged to the acquiescence output time of the prompt tone, and sound is averagely exported by described
Amount is arranged to the acquiescence output volume of the prompt tone.
Computer-readable recording medium embodiment of the present invention and the method for above-mentioned terminal output prompt tone are respectively implemented
Example is essentially identical, will not be repeated here.
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 also include the other key elements being not expressly set out, or also include for 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
Other identical element also be present 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 is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
- A kind of 1. method of terminal output prompt tone, it is characterised in that the method for terminal output prompt tone is applied to mobile terminal In, the mobile terminal includes ultrasonic transmission device and ultrasonic probe, ultrasonic receiver, the method bag of the terminal output prompt tone Include:After mobile terminal output prompt tone is detected, the first ultrasonic signal is launched by the ultrasonic transmission device, and First ultrasonic signal is received by the ultrasonic probe, ultrasonic receiver and runs into the second ultrasonic signal returned after barrier;Tranmitting frequency corresponding to first ultrasonic signal is determined, and determines to receive corresponding to second ultrasonic signal Frequency;Calculate the difference on the frequency between the tranmitting frequency and the receives frequency;If the difference on the frequency is more than, predeterminated frequency is poor, forbids the mobile terminal to perform the output behaviour for exporting the prompt tone Make.
- 2. the method for terminal output prompt tone as claimed in claim 1, it is characterised in that if the difference on the frequency is more than in advance If difference on the frequency, then the step of forbidding the mobile terminal to perform the output operation for exporting the prompt tone, includes:If it is poor that the difference on the frequency is more than predeterminated frequency, transmitting amplitude corresponding to first ultrasonic signal is obtained, and obtain Take and amplitude is received corresponding to second ultrasonic signal;Calculate the transmitting amplitude and the difference in magnitude received between amplitude;If the difference in magnitude is more than default difference in magnitude, the mobile terminal is forbidden to perform the output behaviour for exporting the prompt tone Make.
- 3. the method for terminal as claimed in claim 2 output prompt tone, it is characterised in that it is described calculate the transmitting amplitude and After the step of difference in magnitude between the reception amplitude, in addition to:Judge whether the difference in magnitude is more than the default difference in magnitude;If the difference in magnitude is less than or equal to the default difference in magnitude, the output of the mobile terminal output prompt tone is reduced Time.
- 4. the method for terminal as claimed in claim 1 output prompt tone, it is characterised in that it is described calculate the tranmitting frequency and After the step of difference on the frequency between the receives frequency, in addition to:It is poor to judge whether the difference on the frequency is more than the predeterminated frequency;If the difference on the frequency is less than or equal to, the predeterminated frequency is poor, obtains the transmitting for launching first ultrasonic signal Time, and obtain the reception time for receiving second ultrasonic signal;The first ultrasonic wave letter is calculated according to the launch time, the transmission rate for receiving time and ultrasonic signal Number and second ultrasonic signal transmission range sum;If the transmission range for calculating gained is less than or equal to pre-determined distance, the defeated of the mobile terminal output prompt tone is reduced Go out volume.
- 5. the method for terminal as claimed in claim 4 output prompt tone, it is characterised in that it is described according to the launch time, The transmission rate of the reception time and ultrasonic signal calculates first ultrasonic signal and second ultrasonic wave letter Number transmission range sum the step of after, in addition to:Judge whether the transmission range is more than the pre-determined distance;If the transmission range is more than the pre-determined distance, control the mobile terminal with current output volume export described in carry Show sound.
- 6. the method for terminal as claimed in claim 1 output prompt tone, it is characterised in that it is described calculate the tranmitting frequency and After the step of difference on the frequency between the receives frequency, in addition to:It is poor to judge whether the difference on the frequency is more than the predeterminated frequency;If the difference on the frequency is less than or equal to, the predeterminated frequency is poor, obtains the transmitting for launching first ultrasonic signal Time, and obtain the reception time for receiving second ultrasonic signal;The first ultrasonic wave letter is calculated according to the launch time, the transmission rate for receiving time and ultrasonic signal Number and second ultrasonic signal transmission range sum;If the transmission range for calculating gained is less than or equal to pre-determined distance, that changes that the mobile terminal currently exported carries Show the song of sound.
- 7. the method for the terminal output prompt tone as described in any one of claim 1 to 6, it is characterised in that if the frequency Rate difference was more than after the step of predeterminated frequency is poor, then the output for forbidding the mobile terminal execution to export the prompt tone operates, Also include:The number of forbidding for forbidding the mobile terminal to perform output operation is calculated, and corresponds to and obtains the output operation each time Output time and output volume;If described forbid number to be more than or equal to preset times, the acquiescence of the prompt tone is set according to the output time Output time, and the acquiescence output volume according to the output volume setting prompt tone.
- 8. the method for terminal output prompt tone as claimed in claim 7, it is characterised in that if described forbid number to be more than Or equal to preset times, then according to the acquiescence output time of the output time setting prompt tone, and according to described Average volume sets the step of acquiescence output volume of the prompt tone to include:If described forbid number to be more than or equal to preset times, forbid putting down in number according to calculating the output time Equal output time, and forbid average output volume in number according to calculating the output volume;The average output time is arranged to the acquiescence output time of the prompt tone, and the average output volume is set It is set to the acquiescence output volume of the prompt tone.
- 9. a kind of mobile terminal, it is characterised in that the mobile terminal includes memory, processor and is stored in the memory Terminal that is upper and can running on the processor exports the program of prompt tone, and the program of the terminal output prompt tone is described The step of method of the terminal output prompt tone as any one of claim 1 to 8 is realized during computing device.
- 10. a kind of computer-readable recording medium, it is characterised in that it is defeated to be stored with terminal on the computer-readable recording medium Go out the program of prompt tone, the program of the terminal output prompt tone is realized when being executed by processor as any in claim 1 to 8 The step of method of terminal output prompt tone described in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711245556.7A CN107894839A (en) | 2017-11-30 | 2017-11-30 | Terminal exports method, mobile terminal and the computer-readable recording medium of prompt tone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711245556.7A CN107894839A (en) | 2017-11-30 | 2017-11-30 | Terminal exports method, mobile terminal and the computer-readable recording medium of prompt tone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107894839A true CN107894839A (en) | 2018-04-10 |
Family
ID=61806865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711245556.7A Pending CN107894839A (en) | 2017-11-30 | 2017-11-30 | Terminal exports method, mobile terminal and the computer-readable recording medium of prompt tone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107894839A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874359A (en) * | 2018-06-22 | 2018-11-23 | Oppo广东移动通信有限公司 | Volume adjusting method and relevant device |
US11777615B2 (en) | 2019-07-31 | 2023-10-03 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Ultrasonic processing method, electronic device, and computer-readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101312600A (en) * | 2007-05-22 | 2008-11-26 | 鸿富锦精密工业(深圳)有限公司 | Volume regulating apparatus and automatic volume regulating method |
CN102782612A (en) * | 2010-02-24 | 2012-11-14 | 诺基亚公司 | Gesture control |
JP2012242664A (en) * | 2011-05-20 | 2012-12-10 | Troche:Kk | Electronic musical instrument |
CN106980486A (en) * | 2017-03-23 | 2017-07-25 | 北京小米移动软件有限公司 | Method for controlling volume and device |
CN107402387A (en) * | 2017-08-31 | 2017-11-28 | 努比亚技术有限公司 | Movement tendency based on ultrasonic wave determines method, apparatus and readable storage medium storing program for executing |
-
2017
- 2017-11-30 CN CN201711245556.7A patent/CN107894839A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101312600A (en) * | 2007-05-22 | 2008-11-26 | 鸿富锦精密工业(深圳)有限公司 | Volume regulating apparatus and automatic volume regulating method |
CN102782612A (en) * | 2010-02-24 | 2012-11-14 | 诺基亚公司 | Gesture control |
JP2012242664A (en) * | 2011-05-20 | 2012-12-10 | Troche:Kk | Electronic musical instrument |
CN106980486A (en) * | 2017-03-23 | 2017-07-25 | 北京小米移动软件有限公司 | Method for controlling volume and device |
CN107402387A (en) * | 2017-08-31 | 2017-11-28 | 努比亚技术有限公司 | Movement tendency based on ultrasonic wave determines method, apparatus and readable storage medium storing program for executing |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874359A (en) * | 2018-06-22 | 2018-11-23 | Oppo广东移动通信有限公司 | Volume adjusting method and relevant device |
US11777615B2 (en) | 2019-07-31 | 2023-10-03 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Ultrasonic processing method, electronic device, and computer-readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107562336A (en) | A kind of method, equipment and computer-readable recording medium for controlling suspension ball | |
CN108196778A (en) | Control method, mobile terminal and the computer readable storage medium of screen state | |
CN107402387A (en) | Movement tendency based on ultrasonic wave determines method, apparatus and readable storage medium storing program for executing | |
CN107027114A (en) | A kind of SIM card switching method, equipment and computer-readable recording medium | |
CN106961706A (en) | Method, mobile terminal and the computer-readable recording medium of communication pattern switching | |
CN107517494A (en) | A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium | |
CN107193448A (en) | A kind of affairs prompt method, mobile terminal and storage medium | |
CN107844763A (en) | A kind of face identification method, mobile terminal and computer-readable recording medium | |
CN108345426A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN107172605A (en) | A kind of Emmergency call method, mobile terminal and computer-readable recording medium | |
CN107706981A (en) | A kind of wireless charging method and wireless charging device | |
CN107872575A (en) | Terminal installation, intelligent prompt method and computer-readable storage medium | |
CN107948397A (en) | A kind of information-pushing method, device and computer-readable recording medium | |
CN107613130A (en) | A kind of application management method, mobile terminal and computer-readable recording medium | |
CN109889651A (en) | A kind of notification message processing method, terminal and computer readable storage medium | |
CN108810262A (en) | A kind of configuration method of application, terminal and computer readable storage medium | |
CN108227842A (en) | Wearable pattern switching based reminding method, mobile terminal and readable storage medium storing program for executing | |
CN107728990A (en) | A kind of audio frequency playing method, mobile terminal and computer-readable recording medium | |
CN107894839A (en) | Terminal exports method, mobile terminal and the computer-readable recording medium of prompt tone | |
CN107423065A (en) | Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else | |
CN107424393A (en) | Mobile terminal seeking method, mobile terminal and storage medium | |
CN107995365A (en) | Terminal exports method, mobile terminal and the computer-readable recording medium of prompt tone | |
CN109683796A (en) | A kind of interaction control method, equipment and computer readable storage medium | |
CN109151163A (en) | A kind of method for controlling mobile terminal, 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180410 |