[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108055412B - Method of controlling mobile terminal, and computer-readable storage medium - Google Patents

Method of controlling mobile terminal, and computer-readable storage medium Download PDF

Info

Publication number
CN108055412B
CN108055412B CN201711498277.1A CN201711498277A CN108055412B CN 108055412 B CN108055412 B CN 108055412B CN 201711498277 A CN201711498277 A CN 201711498277A CN 108055412 B CN108055412 B CN 108055412B
Authority
CN
China
Prior art keywords
mobile terminal
ultrasonic signal
frequency
screen
ultrasonic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711498277.1A
Other languages
Chinese (zh)
Other versions
CN108055412A (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 CN201711498277.1A priority Critical patent/CN108055412B/en
Publication of CN108055412A publication Critical patent/CN108055412A/en
Application granted granted Critical
Publication of CN108055412B publication Critical patent/CN108055412B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for controlling a mobile terminal, the mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: triggering a first ultrasonic signal in a screen of the mobile terminal through an electric signal based on an electroacoustic transducer attached to the screen of the mobile terminal after the electric signal triggered by the mobile terminal is detected; receiving a second ultrasonic signal returned after the first ultrasonic signal meets an obstacle by an ultrasonic receiving device in the mobile terminal; and controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal. The invention realizes that the ultrasonic signal with high intensity is sent through the screen of the mobile terminal, so that the mobile terminal is controlled according to the application program of the mobile terminal which moves in the foreground currently, and compared with the ultrasonic signal sent through a receiver of the mobile terminal, the invention can realize the remote control of the mobile terminal by sending the ultrasonic signal through the screen.

Description

Method of controlling mobile terminal, and computer-readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method for controlling a mobile terminal, and a computer-readable storage medium.
Background
In the process of applying the ultrasonic signals to the mobile terminal, the mobile terminal sends the ultrasonic signals through a receiver of the mobile terminal, receives the ultrasonic signals returned by the ultrasonic signals after encountering an obstacle in the transmission process through a microphone of the mobile terminal, and judges the movement trend of the mobile terminal relative to the obstacle according to the sent ultrasonic signals and the received ultrasonic signals so as to control the mobile terminal. However, the strength of the ultrasonic signal transmitted is relatively small due to the small area of the mobile terminal receiver, so that the mobile terminal can be controlled by the ultrasonic signal only when the mobile terminal is close to an obstacle, that is, the existing mobile terminal cannot realize remote control by the ultrasonic signal.
Disclosure of Invention
The invention mainly aims to provide a method for controlling a mobile terminal, the mobile terminal and a computer readable storage medium, and aims to solve the technical problem that the existing mobile terminal cannot realize remote control through ultrasonic signals.
In order to achieve the above object, the present invention provides a method of controlling a mobile terminal, the method of controlling a mobile terminal comprising:
triggering a first ultrasonic signal in a screen of the mobile terminal through an electroacoustic transducer attached to the screen of the mobile terminal after detecting an electric signal triggered by the mobile terminal;
receiving a second ultrasonic signal returned after the first ultrasonic signal meets an obstacle through an ultrasonic receiving device in the mobile terminal;
and controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal.
Optionally, after detecting an electrical signal triggered by the mobile terminal, based on an electroacoustic transducer attached to the screen of the mobile terminal, the step of triggering the first ultrasonic signal in the screen of the mobile terminal through the electrical signal includes:
when an electric signal triggered by the mobile terminal is detected, converting the electric signal into mechanical vibration through an electroacoustic transducer attached to a screen of the mobile terminal;
conducting the mechanical vibration into the screen to trigger the first ultrasonic signal in the screen.
Optionally, the step of controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on an application program running in the mobile terminal includes:
determining a sending amplitude corresponding to the first ultrasonic signal and a receiving amplitude corresponding to the second ultrasonic signal;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
calculating the amplitude change rate according to the amplitude difference calculated at different time points;
and controlling the mobile terminal according to the amplitude change rate based on the application program running in the mobile terminal.
Optionally, the step of controlling the mobile terminal according to the amplitude change rate based on an application program running in the mobile terminal includes:
determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate;
and determining a corresponding operation instruction according to the application program running on the mobile terminal and the motion trend, and controlling the mobile terminal according to the operation instruction.
Optionally, the step of determining a corresponding operation instruction according to the application program being run by the mobile terminal and the motion trend, and controlling the mobile terminal according to the operation instruction includes:
if the application program running on the mobile terminal is a call application program and the mobile terminal approaches the obstacle, determining that the corresponding operation instruction is a screen control instruction;
and controlling the screen of the mobile terminal to enter a black screen state from a bright screen state according to the screen control instruction.
Optionally, the step of determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate includes:
determining a variation trend of the amplitude variation rate;
if the amplitude change rate is increased, confirming that the mobile terminal approaches the obstacle;
and if the amplitude change rate is reduced, confirming that the mobile terminal is far away from the barrier.
Optionally, the step of controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on an application program running in the mobile terminal includes:
determining a fundamental frequency of the first ultrasonic signal and a frequency variation range of the second ultrasonic signal;
determining a frequency change interval according to the basic frequency and the receiving frequency change range;
calculating the Doppler effect area difference of the ultrasonic signals according to the frequency change interval and the intensity change curve corresponding to the frequency change interval;
and controlling the mobile terminal according to the Doppler effect area difference based on the application program running in the mobile terminal.
Optionally, the ultrasonic receiving device is a microphone of a mobile terminal, and the electroacoustic transducer is a piezoelectric ceramic plate.
Furthermore, to achieve the above object, the present invention also provides a mobile terminal comprising a memory, a processor and a mobile terminal control program stored on the memory and operable on the processor, the mobile terminal control program, when executed by the processor, implementing the steps of the method of controlling a mobile terminal as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a mobile terminal control program which, when executed by a processor, implements the steps of the method of controlling a mobile terminal as described above.
According to the method, after an electric signal triggered by the mobile terminal is detected, a first ultrasonic signal is triggered in a screen of the mobile terminal through the electric signal based on an electroacoustic transducer attached to the screen of the mobile terminal; receiving a second ultrasonic signal returned after the first ultrasonic signal meets an obstacle through an ultrasonic receiving device in the mobile terminal; and controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal. The ultrasonic signal with high intensity is sent through the screen of the mobile terminal, so that the mobile terminal is controlled according to the ultrasonic signal with high intensity and the application program which moves in the foreground at present, and the ultrasonic signal is sent through the earphone of the mobile terminal, so that the mobile terminal can be remotely controlled by sending the ultrasonic signal through the screen.
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 method for controlling a mobile terminal according to a preferred embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal provided with two microphones according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating the mobile terminal being controlled according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program being run in the mobile terminal according to the embodiment of the present invention;
FIG. 6 is a diagram illustrating a mobile terminal approaching and moving away from an obstacle according to an embodiment of the present invention;
fig. 7 is another schematic diagram illustrating that the mobile terminal is controlled according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal according to the embodiment of the present invention;
fig. 8 is a schematic diagram of calculating the first area and the second area according to the embodiment of 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 voice 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 can receive sound (voice data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sound into voice 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 voice data, a phonebook, etc.) created according to the use of the cellular phone, etc. 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 100 shown in fig. 1, the processor 110 is configured to call the mobile terminal 100 control program stored in the memory 109, and perform the following operations:
triggering a first ultrasonic signal in the screen of the mobile terminal 100 through an electroacoustic transducer attached to the screen of the mobile terminal 100 based on an electric signal triggered by the mobile terminal 100 when the electric signal is detected;
receiving, by an ultrasonic receiving device in the mobile terminal 100, a second ultrasonic signal returned after the first ultrasonic signal meets an obstacle;
and controlling the mobile terminal 100 according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal 100.
Further, the step of triggering a first ultrasonic signal in the screen of the mobile terminal 100 through an electric signal based on an electroacoustic transducer attached to the screen of the mobile terminal 100 after detecting the electric signal triggered by the mobile terminal 100 includes:
when detecting an electrical signal triggered by the mobile terminal 100, converting the electrical signal into mechanical vibration through an electroacoustic transducer attached to a screen of the mobile terminal 100;
conducting the mechanical vibration into the screen to trigger the first ultrasonic signal in the screen.
Further, the step of controlling the mobile terminal 100 according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal 100 includes:
determining a sending amplitude corresponding to the first ultrasonic signal and a receiving amplitude corresponding to the second ultrasonic signal;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
calculating the amplitude change rate according to the amplitude difference calculated at different time points;
controlling the mobile terminal 100 according to the amplitude change rate based on an application program being run in the mobile terminal 100.
Further, the step of controlling the mobile terminal 100 according to the amplitude change rate based on the application program running in the mobile terminal 100 includes:
determining a movement trend of the mobile terminal 100 relative to the obstacle according to the amplitude change rate;
and determining a corresponding operation instruction according to the application program running on the mobile terminal 100 and the motion trend, and controlling the mobile terminal 100 according to the operation instruction.
Further, the step of determining a corresponding operation instruction according to the application program being run by the mobile terminal 100 and the motion trend, and controlling the mobile terminal 100 according to the operation instruction includes:
if the application program running on the mobile terminal 100 is a call application program and the mobile terminal 100 approaches the obstacle, determining that the corresponding operation instruction is a screen control instruction;
and controlling the screen of the mobile terminal 100 to enter a black screen state from a bright screen state according to the screen control instruction.
Further, the step of determining the movement trend of the mobile terminal 100 relative to the obstacle according to the amplitude change rate includes:
determining a variation trend of the amplitude variation rate;
if the amplitude change rate is increased, confirming that the mobile terminal 100 approaches the obstacle;
if the amplitude change rate decreases, it is determined that the mobile terminal 100 is away from the obstacle.
Further, the step of controlling the mobile terminal 100 according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal 100 includes:
determining a fundamental frequency of the first ultrasonic signal and a frequency variation range of the second ultrasonic signal;
determining a frequency change interval according to the basic frequency and the receiving frequency change range;
calculating the Doppler effect area difference of the ultrasonic signals according to the frequency change interval and the intensity change curve corresponding to the frequency change interval;
controlling the mobile terminal 100 according to the doppler effect area difference based on an application program running in the mobile terminal 100.
Further, the ultrasonic receiving device is a microphone of the mobile terminal 100, and the electroacoustic transducer is a piezoelectric ceramic plate.
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, various embodiments of the method for controlling a mobile terminal of the present invention are proposed.
The invention provides a method for controlling a mobile terminal.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for controlling a mobile terminal according to a preferred embodiment of the present invention.
In the present embodiment, an embodiment of a method of controlling a mobile terminal is provided, it should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that here.
In this embodiment, the method for controlling a mobile terminal may be optionally applied to the mobile terminal, and the method for controlling the mobile terminal includes:
step S10, when detecting the electric signal triggered by the mobile terminal, triggering a first ultrasonic signal in the screen of the mobile terminal through the electric signal based on the electroacoustic transducer attached to the screen of the mobile terminal.
When the mobile terminal needs to start the approach sensing function, an electric signal is sent to the electroacoustic transducer. In order to avoid that the transmitted electrical signal causes interference to the user, the electrical signal is a high frequency electrical signal having a frequency of more than 20 KHz. When the frequency of a certain signal is more than 20KHz, the signal is an ultrasonic signal and cannot be heard by a user. An electroacoustic transducer in a mobile terminal is attached in the mobile terminal screen. After the mobile terminal triggers the electric signal, a first ultrasonic signal is triggered in the screen through the electric signal based on an electroacoustic transducer attached in the screen.
It should be noted that the Application program of the mobile terminal may initiate the proximity sensing function by calling a specific API (Application Programming Interface).
Furthermore, the ultrasonic receiving device is a microphone of the mobile terminal, and the electroacoustic transducer is a piezoelectric ceramic piece.
Further, the ultrasonic receiving device is a microphone of the mobile terminal, i.e. the ultrasonic receiving device is integrated in the microphone of the mobile terminal. When there are two or more microphones in the mobile terminal, all the microphones in the mobile terminal may be used as the ultrasonic wave receiving means, or one of the microphones may be designated as the ultrasonic wave receiving means. When a plurality of microphones in the mobile terminal are all used as the ultrasonic wave receiving means, a main ultrasonic wave receiving means and a sub ultrasonic wave receiving means may be provided as shown in fig. 4. It is to be understood that the ultrasonic wave receiving device may be separately provided in the mobile terminal. It should be noted that, when a plurality of microphones of the mobile terminal are all used as the ultrasonic receiving devices, the mobile terminal may determine an operation gesture of the user through the plurality of ultrasonic receiving devices, and implement intelligent control through the operation gesture, and at this time, the hand of the user is an obstacle.
An electroacoustic transducer is a device for converting electrical (acoustic) signal energy into corresponding acoustic (electrical) signal energy, and for a transducer for converting electrical energy into acoustic energy, an electrical signal is converted into mechanical vibration, and then sound waves are generated by the mechanical vibration; for a transducer that converts acoustic energy into electrical energy, an acoustic signal is converted into mechanical vibration and then into an electrical signal. In this embodiment, the electroacoustic transducer is a piezoelectric ceramic piece, which is an electronic sound component, a piezoelectric ceramic dielectric material is placed between two copper circular electrodes, and when an ac audio signal is connected to the two electrodes, the piezoelectric piece vibrates according to the magnitude and frequency of the signal to generate a corresponding sound. In other embodiments, the electro-acoustic transducer may also implement other devices that convert electrical energy into acoustic energy.
Further, step S10 includes:
step a, after detecting an electric signal triggered by the mobile terminal, converting the electric signal into mechanical vibration through an electroacoustic transducer attached to a screen of the mobile terminal.
And b, conducting mechanical vibration into the screen to trigger the first ultrasonic signal in the screen.
Further, when the mobile terminal triggers an electrical signal, an electrical energy transducer attached to the screen of the mobile terminal receives the electrical signal and converts the electrical signal into mechanical vibration. It will be appreciated that since the electroacoustic transducer is attached in the screen, when an electrical signal is converted by the electroacoustic transducer into mechanical vibration, the mechanical vibration may be conducted into the screen, generating vibration in the screen, triggering the first ultrasonic signal. It can be understood that, because the area of the screen of the mobile terminal is large, the intensity of the first ultrasonic signal triggered by the screen of the mobile terminal is large.
In step S20, a second ultrasonic signal returned after the first ultrasonic signal meets the obstacle is received by the ultrasonic receiving device in the mobile terminal.
When the mobile terminal triggers the first ultrasonic signal through the screen of the mobile terminal, the first ultrasonic signal returns when meeting an obstacle. In this embodiment, an ultrasonic signal returned after the first ultrasonic signal encounters an obstacle is referred to as a second ultrasonic signal. When the first ultrasonic signal meets an obstacle and returns to the ultrasonic signal, the second ultrasonic signal is received by the ultrasonic receiving device of the mobile terminal.
Note that, in the present embodiment, the mobile terminal functions as both the ultrasonic wave transmission device (i.e., the screen) and the ultrasonic wave reception device. In the process of moving the mobile terminal relative to the obstacle, the screen of the mobile terminal also moves relative to the obstacle. According to the doppler effect, when the mobile terminal moves relative to the obstacle, if the mobile terminal and the obstacle are close to each other, the ultrasonic signal is compressed, the wavelength of the ultrasonic signal becomes shorter, the frequency becomes higher, and a blue shift phenomenon is generated; if the mobile terminal and the obstacle are far away from each other, the opposite effect is generated, the wavelength of the ultrasonic wave signal becomes longer, and the frequency becomes lower, i.e., the red shift phenomenon is generated. It should be noted that the higher the speed of the relative movement between the mobile terminal and the obstacle, the greater the blue shift or red shift effect. It can be understood that the movement of the mobile terminal relative to the obstacle in the embodiment is essentially the process of the user taking up the mobile terminal to approach or depart from the human body during the use of the mobile terminal.
In step S30, the mobile terminal is controlled according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal.
And after the mobile terminal receives the second ultrasonic signal through the ultrasonic receiving device, the mobile terminal determines the application program currently running in the foreground, determines the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal, and realizes control operation according to the application program currently running in the foreground and the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal. The property values corresponding to the first ultrasonic signal include, but are not limited to, a fundamental frequency and a transmission amplitude, and the property values corresponding to the second ultrasonic signal include, but are not limited to, a frequency variation range and a reception amplitude. If the application program currently running in the foreground of the mobile terminal is a music player, the mobile terminal can adjust the volume according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal; if the application program currently running in the foreground of the mobile terminal is a character reader, the mobile terminal can adjust the size of the currently displayed characters or adjust the brightness of a screen according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal.
In the embodiment, after an electric signal triggered by the mobile terminal is detected, a first ultrasonic signal is triggered in the screen of the mobile terminal through the electric signal based on an electroacoustic transducer attached to the screen of the mobile terminal; receiving a second ultrasonic signal returned after the first ultrasonic signal meets an obstacle by an ultrasonic receiving device in the mobile terminal; and controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal. The ultrasonic signal with high intensity is sent through the screen of the mobile terminal, so that the mobile terminal is controlled according to the ultrasonic signal with high intensity and the application program which moves in the foreground at present, and the ultrasonic signal is sent through the earphone of the mobile terminal, so that the mobile terminal can be remotely controlled by sending the ultrasonic signal through the screen.
Further, a second embodiment of the method of controlling a mobile terminal of the present invention is proposed based on the first embodiment. The second embodiment of the method of controlling a mobile terminal is different from the first embodiment of the method of controlling a mobile terminal in that, referring to fig. 5, step S30 includes:
in step S31, a transmission amplitude corresponding to the first ultrasonic signal and a reception amplitude corresponding to the second ultrasonic signal are determined.
In step S32, an amplitude difference between the transmission amplitude and the reception amplitude is calculated.
Step S33, calculating the amplitude change rate according to the amplitude difference calculated at different time points;
and when the mobile terminal receives the second ultrasonic signal through the ultrasonic receiving device, the mobile terminal determines the sending amplitude corresponding to the first ultrasonic signal and the receiving amplitude corresponding to the second ultrasonic signal. After determining the transmitting amplitude and the receiving amplitude, the mobile terminal calculates an amplitude difference between the transmitting amplitude and the receiving amplitude. It can be understood that, in the relative movement process of the mobile terminal and the obstacle, the mobile terminal calculates the amplitude difference corresponding to different time points, so as to obtain a plurality of amplitude differences, and the amplitude change rate of the ultrasonic signal can be calculated through the amplitude differences. After obtaining the plurality of amplitude differences, the mobile terminal can select a preset number of amplitude differences from the calculated amplitude differences to calculate the amplitude change rate in the process of calculating the amplitude change rate. The preset number can be set according to specific needs, and is not limited herein. It should be noted that, when the mobile terminal transmits the ultrasonic signal through the ultrasonic transmitting device and receives the ultrasonic signal through the ultrasonic receiving device, the mobile terminal records the transmission amplitude of the transmitted ultrasonic signal and the reception amplitude of the received ultrasonic signal.
And step S34, controlling the mobile terminal according to the amplitude change rate based on the application program running in the mobile terminal.
And after the mobile terminal calculates the amplitude change rate, the mobile terminal realizes control operation according to the application program currently running in the foreground and the calculated amplitude change rate.
Further, step S34 includes:
and c, determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate.
And d, determining a corresponding operation instruction according to the application program and the motion trend of the mobile terminal in operation, and controlling the mobile terminal according to the operation instruction.
Further, after the mobile terminal calculates the amplitude change rate, the mobile terminal determines the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate, determines the application program running in the foreground, determines the corresponding operation instruction according to the running application program and the movement trend, and realizes control operation according to the operation instruction. It should be noted that, in the mobile terminal, a mapping table among the application program, the movement trend, and the operation instruction has been stored in advance. Based on the mapping table, the corresponding operation instruction can be determined through the application program and the movement trend. For example, in the mapping table, when the application program is a PDF (Portable Document Format) reader, the mobile terminal approaches an obstacle, and the corresponding operation instruction is to increase the font of the content displayed by the PDF reader; and when the mobile terminal is far away from the barrier, the corresponding operation instruction is to reduce the font of the content displayed by the PDF reader. The specific increasing and decreasing amplitudes of the fonts can be set according to specific needs, and are not limited herein.
Further, step c comprises:
and step c1, determining the change trend of the amplitude change rate.
And c2, confirming that the mobile terminal approaches the obstacle if the amplitude change rate is increased.
And c3, if the amplitude change rate is reduced, confirming that the mobile terminal is far away from the obstacle.
Further, the process of determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate is as follows: and after the amplitude change rate is obtained through calculation, the mobile terminal determines the change trend of the amplitude change rate. If the amplitude change rate is increased, the mobile terminal confirms that the mobile terminal approaches the obstacle, namely the mobile terminal moves towards the obstacle relative to the movement trend of the obstacle; if the amplitude change rate is reduced, the mobile terminal confirms that the mobile terminal is far away from the obstacle, namely the movement trend of the mobile terminal relative to the obstacle is far movement. Specifically, referring to fig. 6, fig. 6 is a schematic diagram illustrating the mobile terminal approaching to and moving away from an obstacle according to an embodiment of the present invention.
Further, in order to improve the accuracy of determining the movement trend of the mobile terminal relative to the obstacle, the following steps may be provided: when the amplitude change rate is increased and the increased amplitude is larger than the preset amplitude, the mobile terminal determines that the mobile terminal approaches the obstacle; when the amplitude change rate is reduced and the reduction amplitude is greater than the preset amplitude, the mobile terminal determines that the mobile terminal is far away from the obstacle. The preset amplitude can be set according to specific needs, and is not limited herein.
Further, step d includes:
and d1, if the application program being run by the mobile terminal is a call application program and the mobile terminal approaches an obstacle, determining that the corresponding operation instruction is a screen control instruction.
And d2, controlling the screen of the mobile terminal to enter a black screen state from a bright screen state according to the screen control instruction.
Further, determining a corresponding operation instruction according to the application program and the motion trend of the mobile terminal, and controlling the mobile terminal according to the operation instruction comprises the following steps: when the mobile terminal determines that the application program running on the foreground is a call application program and the mobile terminal approaches an obstacle, the mobile terminal determines that the corresponding operation instruction is a screen control instruction, and controls the screen of the mobile terminal to enter a black screen state from a bright screen state according to the determined screen control instruction.
Further, when the mobile terminal determines that the application program running on the foreground is a call application program and is far away from the obstacle, the mobile terminal determines that the corresponding operation instruction is another screen control instruction, and controls the screen to enter a bright screen state from a black screen state according to the determined another screen control instruction.
It can be understood that when the mobile terminal is in a call state, the mobile terminal approaches an obstacle and controls the screen of the mobile terminal to be in a screen-off state; the mobile terminal is far away from the barrier, and the screen of the mobile terminal is controlled to be in a bright screen state. The state of the screen of the mobile terminal is remotely controlled when the mobile terminal is in a call state through the ultrasonic signal triggered by the screen of the mobile terminal.
In the embodiment, the sending amplitude corresponding to the first ultrasonic signal and the receiving amplitude corresponding to the second ultrasonic signal are determined; calculating an amplitude difference between the transmit amplitude and the receive amplitude; calculating the amplitude change rate according to the amplitude difference calculated at different time points; and controlling the mobile terminal according to the amplitude change rate based on the application program running in the mobile terminal. The intelligent control of the mobile terminal is realized through the amplitude change rate corresponding to the ultrasonic signals.
Further, a third embodiment of the method of controlling a mobile terminal of the present invention is presented. The third embodiment of the method of controlling a mobile terminal is different from the first or second embodiment of the method of controlling a mobile terminal in that, referring to fig. 7, the step S30 further includes:
in step S35, the fundamental frequency of the first ultrasonic signal and the frequency variation range of the second ultrasonic signal are determined.
The mobile terminal determines the fundamental frequency of the first ultrasonic signal and the frequency variation range of the second ultrasonic signal received by the ultrasonic receiving device. The ultrasonic wave is a sound wave with a frequency greater than 20KHz, so that the frequency of the ultrasonic wave signal triggered by the screen of the mobile terminal should also be a certain frequency greater than 20KHz, such as 40KHz, and the certain frequency greater than 20KHz is the fundamental frequency of the first ultrasonic wave signal. In this embodiment, the variation range of the moving speed when most users use the mobile terminal, such as 0.2-20 m/s (meters per second) or 0.085-17 m/s, can be determined through a finite number of tests, that is, the speed range is the speed when most users use the mobile terminal. According to the variation range of the motion speed, the frequency variation range can be determined by the Doppler effect, and in the Doppler effect, the relation between the speed and the frequency is as follows:
Figure BDA0001534788870000161
where f is the frequency of the ultrasonic signal received by the ultrasonic receiving device, i.e. the frequency of the second ultrasonic signal, f0Is the fundamental frequency of the first ultrasonic signal, c is the propagation velocity of the ultrasonic signal in air, 340m/s (meters per second), Δ v is the velocity of the obstacle relative to the ultrasonic sound source, i.e., the velocity at which the user uses the mobile terminal; thereby changing the frequency
Figure BDA0001534788870000171
When the basic frequency of the ultrasonic signal is 40KHz and the speed of the obstacle relative to the mobile terminal is changed between 0.085 m/s and 17m/s, the frequency change range is 10Hz to 20 KHz. According to the basic frequency of the ultrasonic signal and the speed of most users using the mobile terminal, the corresponding frequency change range is determined, and the requirements of most users can be met.
In this embodiment, it is considered that the speed of the user picking up the mobile terminal varies within a certain range, so that the frequency variation of the second ultrasonic signal received by the ultrasonic wave receiving device also correspondingly varies within a certain range, that is, a frequency variation range.
In step S36, a frequency change section is determined based on the fundamental frequency and the reception frequency change range.
In the present embodiment, the areas involved in calculating the doppler effect area difference are referred to as a first area and a second area, respectively.
The frequency variation range of the ultrasonic signal includes an upper limit value and a lower limit value, and the increase and decrease of the fundamental frequency depend on the difference of the relational expression between the fundamental frequency and the frequency variation range.
The process of calculating the frequency change interval corresponding to the first area according to the fundamental frequency and the frequency change range is as follows: and determining a frequency change interval according to a relational expression between the basic frequency and the upper limit value and the lower limit value. Specifically, if the interval is an interval in which the frequency of the second ultrasonic signal is greater than the fundamental frequency, the relational expression is to sum the fundamental frequency and the frequency variation range to increase the receiving frequency corresponding to the second ultrasonic signal. For example, when the fundamental frequency is 40KHz, the frequency variation range is 10Hz to 20KHz, the upper limit value is 20KHz, the lower limit value is 10Hz, the relational expressions corresponding to the first areas are (40+20) KHz and (40+0.01) KHz, and the corresponding frequency variation intervals are (40+0.01) to (40+20) KHz.
The process of calculating the frequency change interval corresponding to the second area according to the fundamental frequency and the frequency change range is as follows: and determining a frequency change interval according to a relational expression between the basic frequency and the upper limit value and the lower limit value. Specifically, the interval is an interval in which the frequency of the second ultrasonic signal is smaller than the fundamental frequency, and the relational expression corresponding to the second area is a relational expression in which the fundamental frequency and the upper limit value and the lower limit value of the frequency variation range are subtracted to reduce the reception frequency corresponding to the second ultrasonic signal. If the basic frequency is 40KHz, the frequency variation range is 10 Hz-20 KHz, the upper limit value is 20KHz, the lower limit value is 10Hz, the corresponding relational expressions of the second area are (40-20) KHz and (40-0.01) KHz, and the corresponding frequency variation interval is (40-20) KHz to (40-0.01) KHz.
In step S37, the doppler effect area difference of the ultrasonic signal is calculated from the frequency variation section and the intensity variation curve corresponding to the frequency variation section.
Referring to fig. 8, after the frequency change section corresponding to the calculation of the first area is determined, the intensity change curve corresponding to the frequency change section is determined. Wherein the intensity variation curve is recorded in the transmission process of the ultrasonic signal. After the intensity change curve is determined, the intensity value of the Y axis corresponding to the starting point and the ending point of the frequency change interval, the frequency change range on the X axis of the interval and the area of a closed area surrounded by the intensity change curve of the frequency change interval are used as first areas, and the size of the first area can be obtained by integrating the X axis through the intensity change curve according to the upper limit value and the lower limit value of the frequency change interval corresponding to the first area. It is understood that the process of calculating the second area is the same as the process of calculating the first area, and will not be described herein.
And after the first area and the second area are obtained, the mobile terminal subtracts the second area from the first area to obtain an area difference between the first area and the second area, and the area difference is recorded as a Doppler effect area difference of the ultrasonic wave.
And step S38, controlling the mobile terminal according to the Doppler effect area difference based on the application program running in the mobile terminal.
And when the Doppler effect area difference is obtained through calculation, determining whether the Doppler effect area difference is a positive value or a negative value. Specifically, the doppler effect area difference is compared with 0, and if the doppler effect area difference is smaller than 0, the doppler effect area difference is determined to be a negative value; and if the Doppler effect area difference is larger than 0, determining that the Doppler effect area difference is a positive value. When the Doppler effect area difference is determined to be a positive value, the mobile terminal determines that the mobile terminal approaches to the obstacle currently, namely the mobile terminal makes approaching movement relative to the obstacle; when the Doppler effect area difference is determined to be a negative value, the mobile terminal determines that the mobile terminal is far away from the obstacle currently, namely the mobile terminal does far movement relative to the obstacle. And after the movement trend of the mobile terminal relative to the barrier is determined through the Doppler area difference, the mobile terminal determines a corresponding operation instruction according to the running application program and the movement trend, and realizes control operation according to the operation instruction.
It should be noted that, in order to improve the accuracy of controlling the mobile terminal according to the ultrasonic signal, the amplitude change rate and the doppler effect area difference may be used together to control the mobile terminal, and only when both the amplitude change rate and the doppler effect area difference satisfy the condition, the movement trend of the mobile terminal relative to the obstacle is determined.
Further, the method for controlling the mobile terminal further includes:
and e, determining the frequency variation range of the second ultrasonic signal according to the preset movement speed of the mobile terminal relative to the obstacle.
Due to the relative motion between the mobile terminal and the obstacle, the frequency of the second ultrasonic signal is different from the basic frequency of the first ultrasonic signal, and the frequency change range is determined by the speed change range of the relative motion between the mobile terminal and the obstacle. It can be understood that the relative motion between the mobile terminal and the obstacle is essentially the relative motion between the mobile terminal and the trunk or head of the user when the user picks up the mobile terminal during the use of the mobile terminal. The speed of the user for picking up the mobile terminal is changed within a certain range, and the specific change range can determine the speed of most users for using the mobile terminal in a test mode. And taking the speed meeting the requirements of most users as a preset movement speed of the mobile terminal, and determining the frequency change range of the ultrasonic wave receiving device for receiving the ultrasonic wave signals according to the preset movement speed.
Further, the preset moving speed includes a minimum moving speed and a maximum moving speed, and step d includes:
and e1, determining the lower limit value of the frequency variation range of the second ultrasonic signal received by the ultrasonic receiving device according to the minimum movement speed and the transmitting frequency.
And e2, determining the upper limit value of the frequency variation range of the second ultrasonic signal received by the ultrasonic receiving device according to the maximum movement speed and the transmitting frequency.
Further, considering that the speeds of different users using the mobile terminal are different, in the embodiment of the present invention, the used speed range may represent the speed of most users using the mobile terminal, that is, the preset moving speed is a speed range including the minimum moving speed and the maximum moving speed. Specifically, according to the change relationship between the frequency and the velocity in the doppler effect, according to the minimum motion velocity and the fundamental frequency of the first ultrasonic signal, the lower limit value of the frequency change range of the second ultrasonic signal can be determined; accordingly, the upper limit value of the frequency variation range of the second ultrasonic signal can be determined according to the maximum movement speed.
In this embodiment, the doppler effect area difference is calculated by determining the basis corresponding to the first ultrasonic signal and the frequency change rate range of the second ultrasonic signal, and the mobile terminal is controlled according to the doppler effect area difference and the application program running in the mobile terminal. The mobile terminal can be intelligently controlled through the Doppler effect area difference corresponding to the ultrasonic signals.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium has stored thereon a mobile terminal control program that when executed by a processor implements the steps of:
triggering a first ultrasonic signal in a screen of the mobile terminal through an electroacoustic transducer attached to the screen of the mobile terminal after detecting an electric signal triggered by the mobile terminal;
receiving a second ultrasonic signal returned after the first ultrasonic signal meets an obstacle through an ultrasonic receiving device in the mobile terminal;
and controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal.
Further, the step of triggering a first ultrasonic signal in the screen of the mobile terminal through an electric signal based on an electroacoustic transducer attached to the screen of the mobile terminal after detecting the electric signal triggered by the mobile terminal includes:
when an electric signal triggered by the mobile terminal is detected, converting the electric signal into mechanical vibration through an electroacoustic transducer attached to a screen of the mobile terminal;
conducting the mechanical vibration into the screen to trigger the first ultrasonic signal in the screen.
Further, the step of controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal includes:
determining a sending amplitude corresponding to the first ultrasonic signal and a receiving amplitude corresponding to the second ultrasonic signal;
calculating an amplitude difference between the transmit amplitude and the receive amplitude;
calculating the amplitude change rate according to the amplitude difference calculated at different time points;
and controlling the mobile terminal according to the amplitude change rate based on the application program running in the mobile terminal.
Further, the step of controlling the mobile terminal according to the amplitude change rate based on the application program running in the mobile terminal includes:
determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate;
and determining a corresponding operation instruction according to the application program running on the mobile terminal and the motion trend, and controlling the mobile terminal according to the operation instruction.
Further, the step of determining a corresponding operation instruction according to the application program running on the mobile terminal and the motion trend, and controlling the mobile terminal according to the operation instruction includes:
if the application program running on the mobile terminal is a call application program and the mobile terminal approaches the obstacle, determining that the corresponding operation instruction is a screen control instruction;
and controlling the screen of the mobile terminal to enter a black screen state from a bright screen state according to the screen control instruction.
Further, the step of determining the movement trend of the mobile terminal relative to the obstacle according to the amplitude change rate comprises the following steps:
determining a variation trend of the amplitude variation rate;
if the amplitude change rate is increased, confirming that the mobile terminal approaches the obstacle;
and if the amplitude change rate is reduced, confirming that the mobile terminal is far away from the barrier.
Further, the step of controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on the application program running in the mobile terminal includes:
determining a fundamental frequency of the first ultrasonic signal and a frequency variation range of the second ultrasonic signal;
determining a frequency change interval according to the basic frequency and the receiving frequency change range;
calculating the Doppler effect area difference of the ultrasonic signals according to the frequency change interval and the intensity change curve corresponding to the frequency change interval;
and controlling the mobile terminal according to the Doppler effect area difference based on the application program running in the mobile terminal.
Further, the ultrasonic receiving device is a microphone of the mobile terminal, and the electroacoustic transducer is a piezoelectric ceramic piece.
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 controlling a mobile 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 (5)

1. A method for controlling a mobile terminal, the method comprising:
triggering a first ultrasonic signal in a screen of the mobile terminal through an electroacoustic transducer attached to the screen of the mobile terminal after detecting an electric signal triggered by the mobile terminal;
receiving a second ultrasonic signal returned after the first ultrasonic signal meets an obstacle through an ultrasonic receiving device in the mobile terminal;
controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal based on an application program running in the mobile terminal;
the step of controlling the mobile terminal according to the attribute values corresponding to the first ultrasonic signal and the second ultrasonic signal comprises:
determining a fundamental frequency of the first ultrasonic signal and a frequency variation range of the second ultrasonic signal;
determining a frequency change interval according to the basic frequency and the receiving frequency change range;
calculating the Doppler effect area difference of the ultrasonic signals according to the frequency change interval and the intensity change curve corresponding to the frequency change interval;
controlling the mobile terminal according to the Doppler effect area difference based on an application program running in the mobile terminal;
the step of determining a fundamental frequency of the first ultrasonic signal and a frequency variation range of the second ultrasonic signal comprises:
determining the fundamental frequency of the first ultrasonic signal according to a preset frequency range;
determining the frequency variation range of a second ultrasonic signal according to the preset movement speed of the mobile terminal relative to the obstacle;
the receiving frequency variation range includes an upper limit value and a lower limit value, and the step of determining the frequency variation interval according to the fundamental frequency and the receiving frequency variation range includes:
determining a frequency change interval of a first area according to a first relation between the basic frequency and the upper limit value and between the basic frequency and the lower limit value, wherein the first relation is that the basic frequency is respectively summed with the upper limit value and the lower limit value, and the frequency change interval of the first area is an interval in which the frequency of a second ultrasonic signal is greater than the basic frequency;
determining a frequency change interval of a second area according to a second relational expression between the basic frequency and the upper limit value and between the basic frequency and the lower limit value, wherein the second relational expression is to calculate the difference between the basic frequency and the upper limit value and the difference between the basic frequency and the lower limit value respectively, and the frequency change interval of the second area is an interval in which the frequency of a second ultrasonic signal is smaller than the basic frequency;
the step of calculating the doppler effect area difference of the ultrasonic signal according to the frequency change interval and the intensity change curve corresponding to the frequency change interval includes:
determining to obtain a first area according to the frequency change interval of the first area and the intensity change curve corresponding to the frequency change interval of the first area;
determining to obtain a second area according to the frequency change interval of the second area and the intensity change curve corresponding to the frequency change interval of the second area;
calculating an area difference between the first area and the second area, and recording the area difference as a Doppler effect area difference of the ultrasonic signals.
2. The method of claim 1, wherein the step of triggering the first ultrasonic signal in the screen of the mobile terminal through the electric signal based on an electroacoustic transducer attached to the screen of the mobile terminal after detecting the electric signal triggered by the mobile terminal comprises:
when an electric signal triggered by the mobile terminal is detected, converting the electric signal into mechanical vibration through an electroacoustic transducer attached to a screen of the mobile terminal;
conducting the mechanical vibration into the screen to trigger the first ultrasonic signal in the screen.
3. The method of controlling a mobile terminal according to any one of claims 1 to 2, wherein the ultrasonic wave receiving means is a microphone of the mobile terminal, and the electro-acoustic transducer is a piezoceramic wafer.
4. A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor and a mobile terminal control program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the method of controlling a mobile terminal according to any of claims 1 to 3.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a mobile terminal control program which, when executed by a processor, implements the steps of the method of controlling a mobile terminal according to any one of claims 1 to 3.
CN201711498277.1A 2017-12-29 2017-12-29 Method of controlling mobile terminal, and computer-readable storage medium Active CN108055412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711498277.1A CN108055412B (en) 2017-12-29 2017-12-29 Method of controlling mobile terminal, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711498277.1A CN108055412B (en) 2017-12-29 2017-12-29 Method of controlling mobile terminal, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108055412A CN108055412A (en) 2018-05-18
CN108055412B true CN108055412B (en) 2021-07-23

Family

ID=62125993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711498277.1A Active CN108055412B (en) 2017-12-29 2017-12-29 Method of controlling mobile terminal, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108055412B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218538A (en) * 2018-11-29 2019-01-15 努比亚技术有限公司 Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN110290268A (en) * 2019-06-25 2019-09-27 Oppo广东移动通信有限公司 Control method, device, mobile terminal and the storage medium of screen state
CN110493459B (en) * 2019-07-31 2021-03-12 Oppo广东移动通信有限公司 Screen state control method and device, mobile terminal and storage medium
CN110519449B (en) * 2019-07-31 2021-09-14 Oppo广东移动通信有限公司 Electronic device control method and device, electronic device and storage medium
CN110519448B (en) * 2019-07-31 2021-03-02 Oppo广东移动通信有限公司 Screen state control method and device, mobile terminal and storage medium
CN110764612B (en) * 2019-10-08 2023-09-08 Oppo(重庆)智能科技有限公司 Ultrasonic processing method, ultrasonic processing device, electronic equipment and computer readable medium
CN113746984A (en) * 2020-05-13 2021-12-03 中兴通讯股份有限公司 Terminal, proximity detection method, and computer-readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2824898A1 (en) * 2013-07-09 2015-01-14 Ams Ag Battery powered mobile device for detecting a time difference
CN105939421A (en) * 2016-06-14 2016-09-14 努比亚技术有限公司 Terminal parameter adjusting device and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130080159A (en) * 2012-01-04 2013-07-12 엘지전자 주식회사 Mobile terminal and method for operating thereof
CN106126181A (en) * 2016-06-28 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of screen sounding controller, method and terminal
CN106937206A (en) * 2017-05-09 2017-07-07 成都泰声科技有限公司 A kind of mobile phone screen orients sonification system
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2824898A1 (en) * 2013-07-09 2015-01-14 Ams Ag Battery powered mobile device for detecting a time difference
CN105939421A (en) * 2016-06-14 2016-09-14 努比亚技术有限公司 Terminal parameter adjusting device and method

Also Published As

Publication number Publication date
CN108055412A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN108196778B (en) Control method of screen state, mobile terminal and computer readable storage medium
CN108055412B (en) Method of controlling mobile terminal, and computer-readable storage medium
CN108566479B (en) Screen state control method, mobile terminal and computer readable storage medium
CN108184023B (en) Screen state control method, mobile terminal and computer readable storage medium
CN107562336A (en) A kind of method, equipment and computer-readable recording medium for controlling suspension ball
CN108234767B (en) Control method of screen state, mobile terminal and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN108226880B (en) Method and device for preventing interference in ultrasonic distance detection and storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN109683778B (en) Flexible screen control method and device and computer readable storage medium
CN108287627B (en) Interface operation method based on flexible screen, terminal and computer readable storage medium
CN107566631B (en) Volume control method, mobile terminal and computer readable storage medium
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium
CN107544803B (en) Ultrasonic wave-based on-off screen control method and device and readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN109710149B (en) Interactive display method, equipment and computer readable storage medium
CN107734147B (en) Step recording method, mobile terminal and computer readable storage medium
CN111443818A (en) Screen brightness regulation and control method and device and computer readable storage medium
CN108958604B (en) Interaction control method, mobile terminal and computer readable storage medium
CN107580106B (en) Call control method, mobile terminal and computer readable storage medium
CN112015508B (en) Screen-throwing interaction control method, equipment and computer-readable storage medium
CN109471569A (en) A kind of screen adjustment method of mobile terminal, mobile 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