CN107995365B - Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium - Google Patents

Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN107995365B
CN107995365B CN201711257593.XA CN201711257593A CN107995365B CN 107995365 B CN107995365 B CN 107995365B CN 201711257593 A CN201711257593 A CN 201711257593A CN 107995365 B CN107995365 B CN 107995365B
Authority
CN
China
Prior art keywords
output
mobile terminal
doppler signal
preset
doppler
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711257593.XA
Other languages
Chinese (zh)
Other versions
CN107995365A (en
Inventor
白金
郭佳良
孙丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711257593.XA priority Critical patent/CN107995365B/en
Publication of CN107995365A publication Critical patent/CN107995365A/en
Application granted granted Critical
Publication of CN107995365B publication Critical patent/CN107995365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The invention discloses a method for outputting a prompt tone by a terminal, a mobile terminal and a computer readable storage medium, wherein the mobile terminal comprises a Doppler transmitting device and a Doppler receiving device, and the method comprises the following steps: when the fact that the mobile terminal outputs a prompt tone is detected, a first Doppler signal is transmitted through a Doppler transmitting device, and a second Doppler signal returned after the first Doppler signal and the barrier move relatively is received through a Doppler receiving device; determining a transmitting amplitude corresponding to the first Doppler signal and determining a receiving amplitude corresponding to the second Doppler signal; calculating an amplitude difference between the transmit amplitude and the receive amplitude; and if the amplitude difference is larger than the preset amplitude difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone. The invention realizes that the mobile terminal is controlled by the Doppler signal to finish the output operation of the output prompt tone in advance before the output time of the prompt tone is reached under the condition of not contacting the mobile terminal.

Description

Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for a terminal to output a prompt tone, a mobile terminal, and a computer-readable storage medium.
Background
Along with the rapid development of mobile terminal technology, more and more users use mobile terminals to replace traditional alarm clocks, and preset time is set in the mobile terminals to ring to remind the users. However, in the current mobile terminal, if a user wants to terminate the ring of the mobile terminal before the ring time arrives, the user can only click a stop button in the mobile terminal to trigger a stop operation of stopping the ring, so as to control the mobile terminal to stop the ring. However, in some scenarios, it is inconvenient for the user to click the stop button of the mobile terminal, for example, the user hears the ring of the mobile terminal in sleep in the morning, the user does not want to open eyes to close the ring, or the user is inconvenient for the user to pick up the mobile terminal to click the stop button to control the mobile terminal to stop the ring in public places, for example, in a crowded bus or a subway. As can be seen, it is not possible to terminate the ringing operation of the mobile terminal in advance before the ringing time arrives without clicking a stop button in the mobile terminal.
Disclosure of Invention
The invention mainly aims to provide a method for outputting a prompt tone by a terminal, a mobile terminal and a computer readable storage medium, and aims to solve the technical problem that the prior art can only control the mobile terminal to finish the output operation of the prompt tone output by the mobile terminal before the output time is reached by clicking a stop button in the mobile terminal.
In order to achieve the above object, the present invention provides a method for a terminal to output an alert tone, where the mobile terminal includes a doppler transmitting device and a doppler receiving device, and the method for the terminal to output the alert tone includes:
when detecting that the mobile terminal outputs a prompt tone, transmitting a first Doppler signal through the Doppler transmitting device, and receiving a second Doppler signal returned after the first Doppler signal and the barrier move relatively through the Doppler receiving device;
determining a transmitting amplitude corresponding to the first Doppler signal and determining a receiving amplitude corresponding to the second Doppler signal;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
and if the amplitude difference is larger than a preset amplitude difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone.
Optionally, if the amplitude difference is greater than a preset amplitude difference, the step of prohibiting the mobile terminal from executing the output operation of outputting the alert tone includes:
if the amplitude difference is larger than a preset amplitude difference, acquiring a transmitting frequency corresponding to the first Doppler signal and acquiring a receiving frequency corresponding to the second Doppler signal;
calculating a frequency difference between the transmit frequency and the receive frequency;
and if the frequency difference is larger than the preset frequency difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone.
Optionally, after the step of calculating the frequency difference between the transmitting frequency and the receiving frequency, the method further includes:
judging whether the frequency difference is larger than the preset frequency difference;
and if the frequency difference is smaller than or equal to the preset frequency difference, reducing the output time of the mobile terminal for outputting the prompt tone.
Optionally, after the step of calculating the amplitude difference between the transmitting amplitude and the receiving amplitude, the method further includes:
judging whether the amplitude difference is larger than the preset amplitude difference or not;
if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal;
calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmitting time, the receiving time and the transmission rate of the Doppler signals;
and if the calculated transmission distance is less than or equal to the preset distance, reducing the output volume of the prompt tone output by the mobile terminal.
Optionally, after the step of calculating the sum of the transmission distances of the first doppler signal and the second doppler signal according to the transmission time, the reception time, and the transmission rate of the doppler signal, the method further includes:
judging whether the transmission distance is greater than the preset distance;
and if the transmission distance is greater than the preset distance, controlling the mobile terminal to output the prompt tone at the current output volume.
Optionally, after the step of calculating the amplitude difference between the transmitting amplitude and the receiving amplitude, the method further includes:
judging whether the amplitude difference is larger than the preset amplitude difference or not;
if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal;
calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmitting time, the receiving time and the transmission rate of the Doppler signals;
and if the calculated transmission distance is less than or equal to the preset distance, replacing the track of the prompt tone currently output by the mobile terminal.
Optionally, after the step of prohibiting the mobile terminal from executing the output operation of outputting the alert tone if the amplitude difference is greater than a preset amplitude difference, the method further includes:
calculating the prohibition times of prohibiting the mobile terminal from executing the output operation, and correspondingly acquiring the output time and the output volume of each output operation;
and if the forbidden times are more than or equal to the preset times, setting the default output time of the prompt tone according to the output time, and setting the default output volume of the prompt tone according to the output volume.
Optionally, if the number of times of prohibition is greater than or equal to a preset number of times, the step of setting the default output time of the alert tone according to the output time, and setting the default output volume of the alert tone according to the average volume includes:
if the forbidden times are larger than or equal to preset times, calculating average output time within the forbidden times according to the output time, and calculating average output volume within the forbidden times according to the output volume;
setting the average output time as a default output time of the alert tone, and setting the average output volume as a default output volume of the alert tone.
In addition, to achieve the above object, the present invention further provides a mobile terminal, which includes a memory, a processor, and a program of outputting an alert tone by a terminal, stored on the memory and operable on the processor, wherein the program of outputting an alert tone by a terminal, when executed by the processor, implements the steps of the method of outputting an alert tone by a terminal as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a program for a terminal to output an alert tone, the program for the terminal to output an alert tone being executed by a processor to implement the steps of the method for the terminal to output an alert tone as described above.
According to the invention, after the fact that the mobile terminal outputs the prompt tone is detected, a first Doppler signal is transmitted through the Doppler transmitting device, and a second Doppler signal returned after the first Doppler signal and the barrier move relatively is received through the Doppler receiving device; determining a transmitting amplitude corresponding to the first Doppler signal and determining a receiving amplitude corresponding to the second Doppler signal; calculating an amplitude difference between the transmit amplitude and the receive amplitude; and if the amplitude difference is larger than a preset amplitude difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone. When the user is inconvenient to control the mobile terminal to finish outputting the prompt tone before the output time is reached by clicking the stop button corresponding to the prompt tone in the mobile terminal, the user can use the hand as an obstacle to control the mobile terminal to finish the output operation of outputting the prompt tone before the output time of the prompt tone is reached through the Doppler signal under the condition of not contacting the mobile terminal.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a first embodiment of a method for outputting a warning tone by a terminal according to the present invention;
FIG. 4 is a diagram illustrating a mobile terminal transmitting Doppler signals via an earpiece and receiving Doppler signals via a microphone in an embodiment of the invention;
FIG. 5 is a schematic diagram of a mobile terminal outputting an alarm clock according to an embodiment of the present invention;
FIG. 6 is a diagram of a document library for storing alert tones according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating an operation of prohibiting the mobile terminal from outputting the alert tone if the amplitude difference is greater than the predetermined amplitude difference according to the embodiment of the present invention;
fig. 8 is a flowchart illustrating a method for outputting a warning tone by a terminal according to a third embodiment of the present invention.
Fig. 9 is a flowchart illustrating a fourth embodiment of a method for outputting a warning tone by a terminal according to the present invention.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
Further, in the mobile terminal shown in fig. 1, which includes a doppler transmitting device and a doppler receiving device, the processor 110 is configured to call up a program stored in the memory 109 for outputting an alert tone from the terminal, and perform the following operations:
when detecting that the mobile terminal 100 outputs a prompt tone, transmitting a first doppler signal through the doppler transmitting device, and receiving a second doppler signal returned after the first doppler signal and the barrier move relatively through the doppler receiving device;
determining a transmitting amplitude corresponding to the first Doppler signal and determining a receiving amplitude corresponding to the second Doppler signal;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
and if the amplitude difference is greater than a preset amplitude difference, prohibiting the mobile terminal 100 from executing the output operation of outputting the prompt tone.
Further, if the amplitude difference is greater than a preset amplitude difference, the step of prohibiting the mobile terminal 100 from executing the output operation of outputting the alert tone includes:
if the amplitude difference is larger than a preset amplitude difference, acquiring a transmitting frequency corresponding to the first Doppler signal and acquiring a receiving frequency corresponding to the second Doppler signal;
calculating a frequency difference between the transmit frequency and the receive frequency;
and if the frequency difference is greater than the preset frequency difference, prohibiting the mobile terminal 100 from executing the output operation of outputting the prompt tone.
Further, after the step of calculating the frequency difference between the transmitting frequency and the receiving frequency, the processor 110 is further configured to call a program stored in the memory 109 for controlling the mobile terminal 100 to output an alert tone, and perform the following operations:
judging whether the frequency difference is larger than the preset frequency difference;
if the frequency difference is less than or equal to the preset frequency difference, reducing the output time of the mobile terminal 100 for outputting the prompt tone.
Further, after the step of calculating the amplitude difference between the transmitting amplitude and the receiving amplitude, the processor 110 is further configured to call a program stored in the memory 109 for controlling the mobile terminal 100 to output an alert tone, and perform the following operations:
judging whether the amplitude difference is larger than the preset amplitude difference or not;
if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal;
calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmitting time, the receiving time and the transmission rate of the Doppler signals;
and if the calculated transmission distance is less than or equal to the preset distance, reducing the output volume of the prompt tone output by the mobile terminal 100.
Further, after the step of calculating the sum of the transmission distances of the first doppler signal and the second doppler signal according to the transmission time, the reception time and the transmission rate of the doppler signal, the processor 110 is further configured to call a program stored in the memory 109 for controlling the mobile terminal 100 to output an alert tone, and perform the following operations:
judging whether the transmission distance is greater than the preset distance;
and if the transmission distance is greater than the preset distance, controlling the mobile terminal 100 to output the prompt tone at the current output volume.
Further, after the step of calculating the amplitude difference between the transmitting amplitude and the receiving amplitude, the processor 110 is further configured to call a program stored in the memory 109 for controlling the mobile terminal 100 to output an alert tone, and perform the following operations:
judging whether the amplitude difference is larger than the preset amplitude difference or not;
if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal;
calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmitting time, the receiving time and the transmission rate of the Doppler signals;
and if the calculated transmission distance is less than or equal to the preset distance, replacing the track of the prompt tone currently output by the mobile terminal 100.
Further, after the step of prohibiting the mobile terminal 100 from executing the output operation of outputting the alert tone if the amplitude difference is greater than the preset amplitude difference, the processor 110 is further configured to call a program stored in the memory 109 for controlling the mobile terminal 100 to output the alert tone, and perform the following operations:
calculating the number of times of prohibiting the mobile terminal 100 from executing the output operation, and correspondingly acquiring the output time and the output volume of each output operation;
and if the forbidden times are more than or equal to the preset times, setting the default output time of the prompt tone according to the output time, and setting the default output volume of the prompt tone according to the output volume.
Further, if the number of times of prohibition is greater than or equal to a preset number of times, the step of setting the default output time of the alert tone according to the output time, and setting the default output volume of the alert tone according to the average volume includes:
if the forbidden times are larger than or equal to preset times, calculating average output time within the forbidden times according to the output time, and calculating average output volume within the forbidden times according to the output volume;
setting the average output time as a default output time of the alert tone, and setting the average output volume as a default output volume of the alert tone.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the mobile terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above terminal hardware structure and communication network system, the present invention provides various embodiments of the method for outputting the prompt tone by the terminal.
The invention provides a method for outputting a prompt tone by a terminal.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for outputting a warning tone by a terminal according to a first embodiment of the present invention.
In the present embodiment, an embodiment of a method for a terminal to output an alert tone is provided, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
In this embodiment, the method for the terminal to output the alert tone includes:
step S10, when detecting that the mobile terminal outputs a warning tone, the mobile terminal transmits a first doppler signal through the doppler transmitting device, and receives a second doppler signal returned after the first doppler signal and the obstacle move relative to each other through the doppler receiving device.
In the mobile terminal, the output time and output volume of the current alert tone have been previously set by the user. And when the mobile terminal detects that the current time is equal to the output time, the mobile terminal outputs a prompt tone according to the preset output volume. The alert tones include, but are not limited to, an alarm, an incoming call alert tone, and a memo alert tone. It can be understood that, in the process of outputting the alert tone, the mobile terminal outputs the alert tone according to the alert tone tracks set by the user, for example, the user can set favorite music as the alert tone. And when the mobile terminal detects that the current time is equal to the output time, the mobile terminal outputs music set by the user in a prompt tone mode.
When the mobile terminal outputs the prompt tone, the mobile terminal sends a first Doppler signal through the Doppler transmitting device and receives a second Doppler signal returned after the first Doppler signal and the barrier move relatively through the Doppler receiving device. In this embodiment, in order to save the cost of the mobile terminal, the receiver of the mobile terminal may be used as the doppler transmitting device, and the microphone of the mobile terminal may be used as the doppler receiving device. Specifically, referring to fig. 4, fig. 4 is a schematic diagram of a mobile terminal transmitting a doppler signal through an earpiece and receiving the doppler signal through a microphone according to an embodiment of the present invention. In other embodiments, a doppler transmitting device dedicated to transmitting doppler signals and a doppler receiving device dedicated to receiving doppler signals may be provided in the mobile terminal. It can be understood that when the user's hand is used as an obstacle, the user's hand is continuously approaching the mobile terminal, and there is a relative motion between the mobile terminal and the obstacle, which generates a doppler effect.
In step S20, a transmission amplitude corresponding to the first doppler signal is determined, and a reception amplitude corresponding to the second doppler signal is determined.
After the mobile terminal transmits the first Doppler signal through the Doppler transmitting device, the mobile terminal records the Doppler transmitting amplitude corresponding to the first Doppler signal. And after the mobile terminal receives the second Doppler signal through the Doppler receiving device, the mobile terminal records the Doppler receiving amplitude corresponding to the second Doppler signal. It can be understood that, after the doppler transmitting device transmits the first doppler signal, if the first doppler signal encounters an obstacle moving relatively during transmission and returns, the doppler receiving device receives the second doppler signal corresponding to the first doppler signal. It should be noted that, when the first doppler signal encounters an obstacle moving relatively and returns, the transmission amplitude of the doppler signal is changed, that is, the transmission amplitude corresponding to the first doppler signal is not consistent with the reception amplitude corresponding to the second doppler signal.
In step S30, an amplitude difference between the transmission amplitude and the reception amplitude is calculated.
And step S40, if the amplitude difference is larger than the preset amplitude difference, the mobile terminal is forbidden to execute the output operation of outputting the prompt tone.
After the mobile terminal determines the transmitting amplitude and the receiving amplitude, the mobile terminal calculates an amplitude difference between the transmitting amplitude and the receiving amplitude, and compares the calculated amplitude difference with a preset amplitude difference. If the amplitude difference is larger than the preset amplitude difference, the mobile terminal prohibits executing the output operation of outputting the currently output prompt tone so as to end outputting the currently output prompt tone. It will be appreciated that the greater the received amplitude, the closer the obstacle is moving to the mobile terminal. The preset amplitude difference may be set according to a personal operation habit of a user, and is not limited herein. In this embodiment, a default amplitude difference set according to the operation habit of the general user is set in the mobile terminal. If the mobile terminal user does not set the amplitude difference, the mobile terminal will use the default amplitude difference as the preset amplitude difference to judge whether to prohibit outputting the currently output prompt.
For example, in the morning, when the user is not at bed, the mobile terminal alarm rings, and the user does not want to open eyes to turn off the alarm at this time. The user can control the mobile terminal to stop ringing by taking a hand as an obstacle under the condition of not clicking a stop button of the mobile terminal to stop ringing through the Doppler signal. Specifically, referring to fig. 5, the user does not need to slide down to turn off the alarm clock, and can turn off the alarm clock directly through doppler without contacting the mobile terminal.
Further, the method for the terminal to output the prompt tone further comprises the following steps:
step a, judging whether the amplitude difference is larger than a preset amplitude difference.
And b, if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal.
Further, after the mobile terminal calculates the amplitude difference between the transmitting amplitude and the receiving amplitude, the calculated amplitude difference is compared with a preset amplitude difference, and whether the calculated amplitude difference is greater than the preset amplitude difference is judged. If the calculated amplitude difference is greater than or equal to the preset amplitude difference, the mobile terminal acquires the transmitting time of the Doppler transmitting device for transmitting the first Doppler signal and acquires the receiving time of the Doppler receiving device for receiving the second Doppler signal. It should be noted that, when the doppler transmitting device transmits the first doppler signal, if the doppler transmitting device can implement the timing function, the doppler transmitting device may record the transmitting time of the first doppler signal, or a timer in the mobile terminal may record the transmitting time of the first doppler signal transmitted by the doppler transmitting device. It is understood that the principle of recording the receiving time of the second doppler signal is consistent with the principle of recording the transmitting time of the first doppler signal, and the description thereof is omitted here.
And c, calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmission time, the receiving time and the transmission rate of the Doppler signals.
And after the mobile terminal acquires the transmitting time and the receiving time, the mobile terminal calculates the time difference between the transmitting time and the receiving time, and calculates the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the calculated time difference and the transmission rate of the Doppler signals. When the Doppler signal is an ultrasonic signal, the transmission speed of the ultrasonic signal in the air is 340m/s (meters per second). The sum of the transmission distances of the first doppler signal and the second doppler signal is: l ═ C × T, where T denotes the time difference between the transmission time and the reception time, and C denotes the transmission rate of the doppler signal in the air.
And d, if the calculated transmission distance is less than or equal to the preset distance, replacing the track of the prompt tone currently output by the mobile terminal.
After calculating the sum of the transmission distances of the first doppler signal and the second doppler signal, the mobile terminal determines whether the transmission distance (which is the sum of the transmission distances of the first doppler signal and the second doppler signal) is less than or equal to a preset distance. And if the transmission distance is less than or equal to the preset distance, the mobile terminal replaces the currently output track of the prompt tone. Wherein the preset distance can be set by a user as required. And when the user does not set the preset distance, the mobile terminal adopts the default distance as the preset distance. The track of the prompt tone can be preset by the user according to hobbies. In the present embodiment, a prompt tone file library is provided in the mobile terminal, and a file that the user wants to set as a prompt tone is stored in the file library. If the file library stores A, B, C, D and E files for 5 different tracks, as shown in FIG. 6, the 5 files can be all favorite music pieces of the user. If the currently output prompt tone is the B track, when the transmission distance is less than or equal to the preset distance, the mobile terminal replaces A, C, D the currently output prompt tone from the B track and any one of the E tracks. Furthermore, the user can set the output priority of the prompt tones of different songs, and preferentially output the songs with high priority when the prompt tones are replaced and the songs are output.
Further, if the transmission distance is greater than the preset distance, the mobile terminal continues to output the current song with the current output volume.
In the embodiment, after the mobile terminal is detected to output the prompt tone, the first Doppler signal is transmitted through the Doppler transmitting device, and the second Doppler signal returned after the first Doppler signal and the barrier move relatively is received through the Doppler receiving device; determining a transmitting amplitude corresponding to the first Doppler signal and determining a receiving amplitude corresponding to the second Doppler signal; calculating an amplitude difference between the transmit amplitude and the receive amplitude; and if the amplitude difference is larger than the preset amplitude difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone. When the user is inconvenient to control the mobile terminal to finish outputting the prompt tone before the output time is reached by clicking the stop button corresponding to the prompt tone in the mobile terminal, the user can use the hand as an obstacle to control the mobile terminal to finish the output operation of outputting the prompt tone before the output time of the prompt tone is reached through the Doppler signal under the condition of not contacting the mobile terminal.
Further, a second embodiment of the method for outputting the alert tone by the terminal of the present invention is proposed based on the first embodiment. The second embodiment of the method for the terminal to output the alert tone is different from the first embodiment of the method for the terminal to output the alert tone in that, referring to fig. 7, the step S40 includes:
in step S41, if the amplitude difference is greater than the preset amplitude difference, the transmitting frequency corresponding to the first doppler signal is obtained, and the receiving frequency corresponding to the second doppler signal is obtained.
If the calculated amplitude difference is larger than the preset amplitude difference, the mobile terminal acquires the transmitting frequency corresponding to the first Doppler signal and acquires the receiving frequency corresponding to the second Doppler signal. Specifically, when the doppler transmitting device transmits a first doppler signal, the mobile terminal controls the doppler transmitting device to record a transmitting frequency corresponding to the first doppler signal; when the doppler receiving device receives the second doppler signal, the mobile terminal controls the doppler receiving device to record the receiving frequency corresponding to the second doppler signal.
In step S42, a frequency difference between the transmission frequency and the reception frequency is calculated.
In step S43, if the frequency difference is greater than the preset frequency difference, the mobile terminal is prohibited from performing an output operation for outputting a prompt tone.
After the mobile terminal acquires the transmitting frequency and the receiving frequency, the mobile terminal calculates a frequency difference between the transmitting frequency and the receiving frequency, and compares the calculated frequency difference with a preset frequency difference. And if the frequency difference is larger than the preset frequency difference, the mobile terminal prohibits executing the output operation of outputting the prompt tone. The preset frequency difference may be set by the user according to specific needs. If the user does not set the preset frequency difference, the mobile terminal adopts the prestored default frequency difference as the preset frequency difference.
Further, the method for the terminal to output the prompt tone further comprises the following steps:
and e, judging whether the frequency difference is larger than the preset frequency difference.
And f, if the frequency difference is less than or equal to the preset frequency difference, reducing the output time of the mobile terminal for outputting the prompt tone.
And after the mobile terminal calculates and obtains the frequency difference between the transmitting frequency and the receiving frequency, the mobile terminal judges whether the frequency difference is greater than the preset frequency difference. If the frequency difference is smaller than or equal to the preset frequency difference, the mobile terminal reduces the output time of the output prompt tone. It should be noted that the amplitude of the output time reduction of the mobile terminal may be set according to the total output time of the alert tone, for example, the output time of the alert tone is reduced to half of the total output time, or the output time of the alert tone is reduced to three-quarters of the total output time, and the specific output time reduction amplitude is not limited in this embodiment.
In the embodiment, after the amplitude difference is greater than the preset amplitude difference, the frequency difference between the receiving frequency and the sending frequency is determined, only when the frequency difference is also greater than the preset frequency difference, the mobile terminal is prohibited from executing the output operation of the output prompt tone, and whether the mobile terminal is prohibited from executing the output operation of the output prompt tone is determined by the amplitude and the frequency, so that the accuracy of the output prompt tone of the terminal is improved.
Further, a third embodiment of the method for outputting the alert tone by the terminal of the present invention is provided. The third embodiment of the method for the terminal to output the alert tone is different from the first and/or second embodiment of the method for the terminal to output the alert tone in that, referring to fig. 8, the method for the terminal to output the alert tone further includes:
in step S50, it is determined whether the amplitude difference is greater than a predetermined amplitude difference.
In step S60, if the amplitude difference is smaller than or equal to the preset amplitude difference, the transmitting time for transmitting the first doppler signal is obtained, and the receiving time for receiving the second doppler signal is obtained.
Step S70, calculating the sum of the transmission distances of the first doppler signal and the second doppler signal according to the transmission time, the reception time, and the transmission rate of the doppler signal.
In step S80, if the calculated transmission distance is less than or equal to the preset distance, the output volume of the mobile terminal for outputting the alert tone is decreased.
And after the mobile terminal calculates and obtains the amplitude difference between the receiving amplitude and the transmitting amplitude, the mobile terminal judges whether the amplitude difference is larger than a preset amplitude difference. If the calculated amplitude difference is larger than the preset amplitude difference, the mobile terminal acquires the transmitting time for transmitting the first Doppler signal and acquires the receiving time for receiving the second Doppler signal. And the mobile terminal calculates the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the acquired transmission time, the acquired reception time and the acquired transmission rate of the Doppler signals. And when the calculated Doppler transmission distance is smaller than or equal to the preset distance, the mobile terminal reduces the output volume of the output prompt tone. Specifically, the amplitude of the mobile terminal for reducing the output volume may be set according to specific needs, for example, the mobile terminal may be set to reduce the volume of one unit based on the original output volume, or reduce the volume of two units.
Further, the method for the terminal to output the prompt tone further comprises the following steps:
and g, judging whether the transmission distance is greater than a preset distance.
And h, if the transmission distance is greater than the preset distance, controlling the mobile terminal to output a prompt tone at the current output volume.
Further, after the mobile terminal calculates the transmission distance, the mobile terminal determines whether the transmission distance is greater than a preset distance. If the transmission distance is greater than the preset distance, the mobile terminal controls the mobile terminal to continue outputting the prompt tone at the current output volume.
According to the embodiment, when the amplitude difference is determined to be smaller than or equal to the preset amplitude difference and the transmission distance of the first Doppler signal is smaller than or equal to the preset distance, the output volume of the mobile terminal for outputting the prompt tone is reduced, and the output volume of the intelligent terminal for outputting the prompt tone is realized under the condition that the intelligent terminal is not in contact with the mobile terminal.
Further, a fourth embodiment of the method for outputting the alert tone by the terminal of the present invention is provided. The fourth embodiment of the method for the terminal to output the alert tone is different from the first, second and/or third embodiment of the method for the terminal to output the alert tone in that, referring to fig. 9, the method for the terminal to output the alert tone further includes:
step S90, calculating the number of times of prohibiting the mobile terminal from performing the output operation, and obtaining the output time and output volume of each output operation.
The mobile terminal calculates the number of times of forbidding the execution of the output prompt tone output operation through the Doppler signal, and correspondingly acquires the output time and the output volume of each output operation, namely acquires the output time and the output volume corresponding to the prompt tone when the output of the prompt tone through the Doppler signal is finished. If a plurality of output volumes exist before the prompt tone is output at a certain time, the output volume acquired by the mobile terminal is the average output volume of the plurality of output volumes.
In step S110, if the prohibited number is greater than or equal to the preset number, a default output time of the alert tone is set according to the output time, and a default output volume of the alert tone is set according to the output volume.
After the mobile terminal obtains the prohibited times, the mobile terminal judges whether the obtained prohibited times are larger than or equal to the preset times. If the forbidden times are larger than or equal to the preset times, the mobile terminal sets the default output time of the prompt tone according to the acquired output time and sets the default output volume of the prompt tone according to the output volume. The preset times can be set according to specific needs, for example, can be set to 50 times, or 60 times, etc.
Further, if the prohibited number is less than the preset number, the mobile terminal continues to calculate the prohibited number for prohibiting execution of the output operation.
Further, step S110 includes:
and i, if the forbidden times are greater than or equal to the preset times, calculating the average output time within the forbidden times according to the output time, and calculating the average output volume within the forbidden times according to the output volume.
And j, setting the average output time as the default output time of the warning tone, and setting the average output volume as the default output volume of the warning tone.
Further, if the number of times of prohibition is greater than or equal to the preset number of times, the mobile terminal calculates an average output time within the number of times of prohibition according to the obtained number of times of output, and calculates an average output volume within the number of times of prohibition according to the output volume. And after the average output time and the average output volume are calculated by the mobile terminal, setting the average output time as the default output time of the prompt tone and setting the average output volume as the default output volume of the output prompt tone by moving. If the number of times of prohibition recorded by the mobile terminal is 50 times and the preset number of times is also set to 50 times, the mobile terminal obtains the output time and the output volume corresponding to the 50 prompt tones, calculates the average output time of the 50 output times, sets the average output time corresponding to the 50 output times as the default output time of the prompt tone, calculates the average output volume of the 50 output volumes, and sets the average output volume corresponding to the 50 output volumes as the default output volume of the prompt tone.
According to the embodiment, the default output volume and the default output time corresponding to the prompt tone are set according to the operation habit of the user for outputting the prompt tone through the Doppler terminal, so that the default output time and the default output volume of the mobile terminal for outputting the prompt tone are more in line with the operation habit of the user.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium stores a program for a terminal to output an alert tone, the mobile terminal includes a doppler transmitting device and a doppler receiving device, and the program for the terminal to output the alert tone is executed by a processor to realize the following steps:
when detecting that the mobile terminal outputs a prompt tone, transmitting a first Doppler signal through the Doppler transmitting device, and receiving a second Doppler signal returned after the first Doppler signal and the barrier move relatively through the Doppler receiving device;
determining a transmitting amplitude corresponding to the first Doppler signal and determining a receiving amplitude corresponding to the second Doppler signal;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
and if the amplitude difference is larger than a preset amplitude difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone.
Further, if the amplitude difference is greater than a preset amplitude difference, the step of prohibiting the mobile terminal from executing the output operation of outputting the alert tone includes:
if the amplitude difference is larger than a preset amplitude difference, acquiring a transmitting frequency corresponding to the first Doppler signal and acquiring a receiving frequency corresponding to the second Doppler signal;
calculating a frequency difference between the transmit frequency and the receive frequency;
and if the frequency difference is larger than the preset frequency difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone.
Further, after the step of calculating the frequency difference between the transmitting frequency and the receiving frequency, the program for the terminal to output an alert tone is executed by a processor to implement the steps of:
judging whether the frequency difference is larger than the preset frequency difference;
and if the frequency difference is smaller than or equal to the preset frequency difference, reducing the output time of the mobile terminal for outputting the prompt tone.
Further, after the step of calculating the amplitude difference between the transmitted amplitude and the received amplitude, the program for the terminal to output an alert tone is executed by a processor to implement the steps of:
judging whether the amplitude difference is larger than the preset amplitude difference or not;
if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal;
calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmitting time, the receiving time and the transmission rate of the Doppler signals;
and if the calculated transmission distance is less than or equal to the preset distance, reducing the output volume of the prompt tone output by the mobile terminal.
Further, after the step of calculating the sum of the transmission distances of the first doppler signal and the second doppler signal according to the transmission time, the reception time and the transmission rate of the doppler signal, the program for the terminal to output an alert tone is executed by the processor to implement the following steps:
judging whether the transmission distance is greater than the preset distance;
and if the transmission distance is greater than the preset distance, controlling the mobile terminal to output the prompt tone at the current output volume.
Further, after the step of calculating the amplitude difference between the transmitted amplitude and the received amplitude, the program for the terminal to output an alert tone is executed by a processor to implement the steps of:
judging whether the amplitude difference is larger than the preset amplitude difference or not;
if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal;
calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmitting time, the receiving time and the transmission rate of the Doppler signals;
and if the calculated transmission distance is less than or equal to the preset distance, replacing the track of the prompt tone currently output by the mobile terminal.
Further, after the step of prohibiting the mobile terminal from performing the output operation of outputting the alert tone if the amplitude difference is greater than the preset amplitude difference, the program of outputting the alert tone by the terminal is executed by the processor to implement the following steps:
calculating the prohibition times of prohibiting the mobile terminal from executing the output operation, and correspondingly acquiring the output time and the output volume of each output operation;
and if the forbidden times are more than or equal to the preset times, setting the default output time of the prompt tone according to the output time, and setting the default output volume of the prompt tone according to the output volume.
Further, if the number of times of prohibition is greater than or equal to a preset number of times, the step of setting the default output time of the alert tone according to the output time, and setting the default output volume of the alert tone according to the average volume includes:
if the forbidden times are larger than or equal to preset times, calculating average output time within the forbidden times according to the output time, and calculating average output volume within the forbidden times according to the output volume;
setting the average output time as a default output time of the alert tone, and setting the average output volume as a default output volume of the alert tone.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of the above-mentioned embodiments of the method for outputting the alert tone by the terminal, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for a terminal to output an alert tone is applied to a mobile terminal, wherein the mobile terminal comprises a Doppler transmitting device and a Doppler receiving device, and the method for the terminal to output the alert tone comprises the following steps:
when detecting that the mobile terminal outputs a prompt tone, transmitting a first Doppler signal through the Doppler transmitting device, and receiving a second Doppler signal returned after the first Doppler signal and the barrier move relatively through the Doppler receiving device;
determining a transmitting amplitude corresponding to the first Doppler signal and determining a receiving amplitude corresponding to the second Doppler signal;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
judging whether the amplitude difference is larger than a preset amplitude difference or not;
if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal;
calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmitting time, the receiving time and the transmission rate of the Doppler signals;
if the calculated transmission distance is smaller than or equal to the preset distance, reducing the output volume of the mobile terminal for outputting the prompt tone;
if the amplitude difference is larger than a preset amplitude difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone;
wherein, if the amplitude difference is greater than a preset amplitude difference, the step of prohibiting the mobile terminal from executing the output operation of outputting the prompt tone includes:
if the amplitude difference is larger than a preset amplitude difference, acquiring a transmitting frequency corresponding to the first Doppler signal and acquiring a receiving frequency corresponding to the second Doppler signal;
calculating a frequency difference between the transmit frequency and the receive frequency;
and if the frequency difference is larger than the preset frequency difference, prohibiting the mobile terminal from executing the output operation of outputting the prompt tone.
2. The method for outputting an alert tone by a terminal as recited in claim 1, wherein the step of calculating the frequency difference between the transmission frequency and the reception frequency further comprises:
judging whether the frequency difference is larger than the preset frequency difference;
and if the frequency difference is smaller than or equal to the preset frequency difference, reducing the output time of the mobile terminal for outputting the prompt tone.
3. The method of outputting an alert tone according to claim 1, wherein the step of calculating the sum of the transmission distances of the first doppler signal and the second doppler signal according to the transmission time, the reception time, and the transmission rate of the doppler signal further comprises:
judging whether the transmission distance is greater than the preset distance;
and if the transmission distance is greater than the preset distance, controlling the mobile terminal to output the prompt tone at the current output volume.
4. The method of outputting an alert tone by a terminal as recited in claim 1, wherein said step of calculating an amplitude difference between said transmitted amplitude and said received amplitude further comprises:
judging whether the amplitude difference is larger than the preset amplitude difference or not;
if the amplitude difference is smaller than or equal to the preset amplitude difference, acquiring the transmitting time of transmitting the first Doppler signal and acquiring the receiving time of receiving the second Doppler signal;
calculating the sum of the transmission distances of the first Doppler signal and the second Doppler signal according to the transmitting time, the receiving time and the transmission rate of the Doppler signals;
and if the calculated transmission distance is less than or equal to the preset distance, replacing the track of the prompt tone currently output by the mobile terminal.
5. The method for outputting an alert tone by a terminal according to any one of claims 1 to 4, wherein after the step of prohibiting the mobile terminal from performing the output operation of outputting the alert tone if the amplitude difference is greater than a preset amplitude difference, further comprising:
calculating the prohibition times of prohibiting the mobile terminal from executing the output operation, and correspondingly acquiring the output time and the output volume of each output operation;
and if the forbidden times are more than or equal to the preset times, setting the default output time of the prompt tone according to the output time, and setting the default output volume of the prompt tone according to the output volume.
6. The method of claim 5, wherein if the number of times of prohibition is greater than or equal to a preset number of times, setting a default output time of the alert tone according to the output time, and setting a default output volume of the alert tone according to the output volume comprises:
if the forbidden times are larger than or equal to preset times, calculating average output time within the forbidden times according to the output time, and calculating average output volume within the forbidden times according to the output volume;
setting the average output time as a default output time of the alert tone, and setting the average output volume as a default output volume of the alert tone.
7. A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor and a program of terminal output alert tone stored on the memory and operable on the processor, the program of terminal output alert tone implementing the steps of the method of terminal output alert tone according to any of claims 1 to 6 when executed by the processor.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program for a terminal to output an alert tone, which program, when executed by a processor, implements the steps of the method for a terminal to output an alert tone according to any one of claims 1 to 6.
CN201711257593.XA 2017-11-30 2017-11-30 Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium Active CN107995365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711257593.XA CN107995365B (en) 2017-11-30 2017-11-30 Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711257593.XA CN107995365B (en) 2017-11-30 2017-11-30 Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107995365A CN107995365A (en) 2018-05-04
CN107995365B true CN107995365B (en) 2021-05-21

Family

ID=62035301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711257593.XA Active CN107995365B (en) 2017-11-30 2017-11-30 Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107995365B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519449B (en) * 2019-07-31 2021-09-14 Oppo广东移动通信有限公司 Electronic device control method and device, electronic device and storage medium
CN111176277B (en) * 2019-12-30 2023-03-17 炬星科技(深圳)有限公司 Automatic docking method and docking device for mobile electronic equipment, mobile electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102782612A (en) * 2010-02-24 2012-11-14 诺基亚公司 Gesture control
CN105812574A (en) * 2016-05-03 2016-07-27 北京小米移动软件有限公司 Volume adjusting method and device
CN105959793A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Volume adjusting method and device
CN106980486A (en) * 2017-03-23 2017-07-25 北京小米移动软件有限公司 Method for controlling volume and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312600A (en) * 2007-05-22 2008-11-26 鸿富锦精密工业(深圳)有限公司 Volume regulating apparatus and automatic volume regulating method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102782612A (en) * 2010-02-24 2012-11-14 诺基亚公司 Gesture control
CN105959793A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Volume adjusting method and device
CN105812574A (en) * 2016-05-03 2016-07-27 北京小米移动软件有限公司 Volume adjusting method and device
CN106980486A (en) * 2017-03-23 2017-07-25 北京小米移动软件有限公司 Method for controlling volume and device

Also Published As

Publication number Publication date
CN107995365A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN108566479B (en) Screen state control method, mobile terminal and computer readable storage medium
CN110266876B (en) Pressure threshold determination method and device and computer readable storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN108184023B (en) Screen state control method, mobile terminal and computer readable storage medium
CN109005574B (en) Cell selection method, mobile terminal and computer readable storage medium
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN109890022B (en) Data transmission control method, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN107888768B (en) Unlocking control method, terminal and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN107770368B (en) Alarm clock application reminding method based on terminal and terminal
CN115022457A (en) Reminding method, intelligent terminal and storage medium
CN109309762B (en) Message processing method, device, mobile terminal and storage medium
CN107995365B (en) Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium
CN108234751B (en) Automatic danger detection method, mobile terminal and computer readable storage medium
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN112489647A (en) Voice assistant control method, mobile terminal and storage medium
CN111443818A (en) Screen brightness regulation and control method and device and computer readable storage medium
CN107580106B (en) Call control method, mobile terminal and computer readable storage medium
CN107517445B (en) WLAN hotspot searching method and mobile terminal
CN107315523B (en) Split screen processing method, mobile terminal and computer readable storage medium
CN107360599B (en) Intelligent wifi networking method and mobile terminal
CN113347676B (en) Processing method, mobile terminal and storage medium
CN115277922A (en) Processing method, intelligent terminal and storage medium
CN114666440A (en) Application program control method, intelligent terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant