CN111405111A - Audio power amplifier control method and device, storage medium and mobile terminal - Google Patents

Audio power amplifier control method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111405111A
CN111405111A CN202010166317.8A CN202010166317A CN111405111A CN 111405111 A CN111405111 A CN 111405111A CN 202010166317 A CN202010166317 A CN 202010166317A CN 111405111 A CN111405111 A CN 111405111A
Authority
CN
China
Prior art keywords
power amplifier
audio power
distance
mobile terminal
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010166317.8A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202010166317.8A priority Critical patent/CN111405111A/en
Publication of CN111405111A publication Critical patent/CN111405111A/en
Pending legal-status Critical Current

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
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides an audio power amplifier control method, which comprises the following steps: when an audio power amplifier in the mobile terminal is in a working state, the distance between the mobile terminal and a user is obtained, and then the working mode of the audio power amplifier is determined according to the distance, wherein the working mode comprises evaluation parameters of at least one of the type, the amplification factor and an equalizer curve of the audio power amplifier.

Description

Audio power amplifier control method and device, storage medium and mobile terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling an audio power amplifier, a storage medium, and a mobile terminal.
Background
With the improvement of the living standard of people, people are increasingly unable to leave terminal devices such as mobile phones in daily life, study and entertainment, and with the development of technologies such as AI (Artificial Intelligence), VR (Virtual Reality) and the like, people have higher and higher requirements for tone quality, such as pursuing larger and more vivid sound.
Under the prior art, the mobile terminal can not adjust various parameters of an internal audio power amplifier according to the distance between the terminal and a user, and the service life of the terminal is short due to the fact that the power consumption of the terminal is large when the mobile terminal is used for a long time.
Disclosure of Invention
The application provides an audio power amplifier control method, an audio power amplifier control device, a storage medium and a mobile terminal, and effectively solves the problem that the mobile terminal cannot adjust various parameters of an internal audio power amplifier according to the distance between the terminal and a user.
In order to solve the above problems, the present invention provides an audio power amplifier control method, which includes:
when an audio power amplifier in a mobile terminal is in a working state, acquiring the distance between the mobile terminal and a user;
determining the working mode of the audio power amplifier according to the distance;
the working mode comprises evaluation parameters of at least one of the type of the audio power amplifier, the amplification factor and the curve of the equalizer.
In the audio power amplifier control method provided by the present invention, the mobile terminal includes an infrared sensor, and the step of obtaining the distance between the mobile terminal and the user specifically includes:
emitting an infrared light beam with a specific wavelength by the infrared sensor;
acquiring reflection propagation time of an infrared beam in the infrared sensor;
and calculating the distance between the mobile terminal and the user according to the reflection propagation time.
In the audio power amplifier control method provided by the present invention, the step of determining the operating mode of the audio power amplifier according to the distance specifically includes:
obtaining a distance grade corresponding to the distance;
and determining the working mode of the audio power amplifier according to the distance grade.
In the audio power amplifier control method provided by the present invention, the step of determining the operating mode of the audio power amplifier according to the distance class specifically includes:
and controlling the value of the pulse emitted by the universal port in the mobile terminal in unit time to be the value corresponding to the distance grade so as to enable the audio power amplifier to be in a corresponding working mode.
In the audio power amplifier control method provided by the present invention, after determining the operating mode of the audio power amplifier according to the distance, the method further comprises:
starting timing;
and when the timing duration reaches the preset duration, returning to execute the step of acquiring the distance between the mobile terminal and the user.
In order to solve the above problem, another aspect of the present invention further provides an audio power amplifier control device, where the audio power amplifier control device includes:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the distance between the mobile terminal and a user when an audio power amplifier in the mobile terminal is in a working state;
the determining module is used for determining the working mode of the audio power amplifier according to the distance;
the working mode comprises evaluation parameters of at least one of the type of the audio power amplifier, the amplification factor and the curve of the equalizer.
In the audio power amplifier control device provided by the present invention, the determining module specifically includes:
the acquisition unit is used for acquiring the distance grade corresponding to the distance;
and the determining unit is used for determining the working mode of the audio power amplifier according to the distance grade.
In the audio power amplifier control device provided by the present invention, the determining unit specifically includes:
and the control subunit is used for controlling the value of the pulse transmitted by the universal port in the mobile terminal in unit time to be a value corresponding to the distance grade, so that the audio power amplifier is in a corresponding working mode.
In the audio power amplifier control device provided by the present invention, the mobile terminal includes an infrared sensor, and the audio power amplifier control device further includes a calculating unit configured to:
emitting an infrared light beam with a specific wavelength by the infrared sensor;
acquiring reflection propagation time of an infrared beam in the infrared sensor;
and calculating the distance between the mobile terminal and the user according to the reflection propagation time.
In the audio power amplifier control device provided by the present invention, the audio power amplifier control device further comprises a timing module, configured to:
after determining the working mode of the audio power amplifier according to the distance, starting timing;
and when the timing duration reaches the preset duration, returning to execute the step of acquiring the distance between the mobile terminal and the user.
In order to solve the above problem, another aspect of the present invention further provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the above audio power amplifier control methods.
In order to solve the above problem, another aspect of the present invention further provides a mobile terminal, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the audio power amplifier control method according to any one of the above embodiments.
The invention has the beneficial effects that: the invention provides an audio power amplifier control method, which comprises the following steps: when an audio power amplifier in the mobile terminal is in a working state, the distance between the mobile terminal and a user is obtained, and then the working mode of the audio power amplifier is determined according to the distance, wherein the working mode comprises evaluation parameters of at least one of the type, the amplification factor and an equalizer curve of the audio power amplifier.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments according to the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is another schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart of an audio power amplifier control method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an audio power amplifier control device according to an embodiment of the present invention.
Fig. 5 is another schematic structural diagram of an audio power amplifier control device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention aims at solving the problem that the service life of the terminal is shorter due to larger power consumption because various parameters of the audio power amplifier in the existing mobile terminal cannot be adjusted according to the distance between the terminal and a user in the use process of the audio power amplifier in the existing mobile terminal.
The embodiment of the invention provides a mobile terminal which can be a smart phone or a tablet computer and the like. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, 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 running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads an instruction corresponding to a process of one or more application programs into the memory 102 according to the following steps, and the processor 101 runs the application program stored in the memory 102, thereby implementing various functions, such as an audio power amplifier control method:
when an audio power amplifier in the mobile terminal is in a working state, acquiring the distance between the mobile terminal and a user;
determining the working mode of the audio power amplifier according to the distance;
the working mode comprises evaluation parameters of at least one of the type of the audio power amplifier, the amplification factor and the curve of the equalizer.
The mobile terminal 100 may implement any one of the steps in the audio power amplifier control method.
Fig. 2 is a block diagram illustrating a specific structure of the mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. 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 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access for Wireless communications, Wi-Max), and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 120 may be configured to store software programs and modules, such as corresponding program instructions in the above audio power amplifier control method, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120, that is, obtains the frequency of the information transmission signal transmitted by the mobile terminal 100. Generating interference signals, and the like. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the mobile terminal 100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means 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 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Display unit 140 may be used to Display information input by or provided to a user, as well as various graphical user interfaces of mobile terminal 100, which may be comprised of graphics, text, icons, video, and any combination thereof Display panel 141, optionally Display panel 141 may be configured in the form of L CD (L iquid Crystal Display), O L ED (Organic L light-Emitting Diode), etc. further, touch-sensitive surface 631 may overlay Display panel 141, and upon detection of a touch operation on or near touch-sensitive surface 131, communicate to processor 180 to determine the type of touch event, and processor 180 then provides a corresponding visual output on Display panel 141 based on the type of touch event.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the 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 gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 100.
The mobile terminal 100, which can assist the user in receiving requests, transmitting information, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 100 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile terminal. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 100 may also include a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions in some embodiments. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, a flashlight, and the like, which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal 100 is a touch screen display, and the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when an audio power amplifier in the mobile terminal is in a working state, acquiring the distance between the mobile terminal and a user;
determining the working mode of the audio power amplifier according to the distance;
the working mode comprises evaluation parameters of at least one of the type of the audio power amplifier, the amplification factor and the curve of the equalizer.
In order to better use the mobile terminal 100 provided in the above embodiment, when music is played using an audio power amplifier in the mobile terminal 100 in daily life, the mobile terminal 100 may adjust various parameters of the audio power amplifier therein according to the distance between the mobile terminal 100 and a user, and the method is applied to the mobile terminal 100, where a flowchart of the audio power amplifier control method is shown in fig. 3, and the specific steps are as follows:
s101, when an audio power amplifier in the mobile terminal is in a working state, the distance between the mobile terminal and a user is obtained.
Specifically, the mobile terminal includes an infrared sensor, and the step S101 may include:
when an audio power amplifier in the mobile terminal is in a working state, an infrared sensor emits an infrared beam with a specific wavelength;
acquiring the reflection propagation time of an infrared beam in an infrared sensor;
and calculating the distance between the mobile terminal and the user according to the reflection propagation time.
It is easy to understand that, in addition to calculating and measuring the distance between the mobile terminal and the user through the infrared sensor, the terminal may also measure the distance through sound waves or laser light, and in order to make the measured distance more accurate, the terminal may integrate more than one distance measuring component, and after each distance measuring component respectively measures the distance between the mobile terminal and the user, the final distance value is obtained through a preset weighting calculation formula.
In addition, the processor acquires the distance between the mobile terminal and the user again and reports the distance at set time intervals, and the set time intervals can be 10ms, 50ms or 200 ms.
For example, after the step S101, the following steps may be included:
starting timing;
and when the timing duration reaches the preset duration, returning to execute the step of acquiring the distance between the mobile terminal and the user.
In this embodiment, the terminal may be clocked by an internal crystal oscillator that includes one or more combinations of a non-temperature compensated crystal oscillator, a temperature compensated crystal oscillator (TCXO), a voltage controlled crystal oscillator (VCXO), an oven controlled crystal oscillator (OCXO), and a digitized/μ p compensated crystal oscillator (DCXO/MCXO).
And S102, determining the working mode of the audio power amplifier according to the distance, wherein the working mode comprises evaluation parameters of at least one of the type of the audio power amplifier, the amplification factor and the curve of the equalizer.
It is easy to understand that, considering power, impedance, distortion, dynamics and different application ranges and control adjustment functions, different power amplifiers are different in internal signal processing, circuit design and production process, the types of power amplifiers include classa, ClassD, ClassK and the like, and at least one type of power amplifier can be integrated in the same terminal to amplify weak signals from a sound source or a preamplifier to push a sound box to play sound. Different equalizer curves can respectively adjust the amplification amount of electric signals with various frequency components, compensate the defects of a loudspeaker and a sound field through adjusting the electric signals with various frequencies, and compensate and modify various sound sources and other special effects.
It should be noted that, in order to reduce the power consumption of the terminal, the distance may be set in a gradient manner, that is, a distance range is corresponding to one distance level.
For example, the step S102 may include:
obtaining a distance grade corresponding to the distance;
and determining the working mode of the audio power amplifier according to the distance grade.
It should be noted that, after the terminal determines the distance class, the audio power amplifier may be in a corresponding operating mode in an analog power amplifier control mode or a digital power amplifier control mode.
For example, the step of "determining the operating mode of the audio power amplifier according to the distance level" may specifically include:
and controlling the value of the pulse transmitted by the universal port in the mobile terminal in unit time to be a value corresponding to the distance grade so as to enable the audio power amplifier to be in a corresponding working mode.
It is easy to understand that in the analog power amplifier control mode, the values of the registers corresponding to different working modes are different, the terminal switches different working modes by controlling the values of the corresponding registers, and in the digital power amplifier control mode, the terminal controls the working modes of the power amplifier through the data on the I2C bus.
Different from the prior art, the invention provides an audio power amplifier control method, which comprises the following steps: when an audio power amplifier in the mobile terminal is in a working state, the distance between the mobile terminal and a user is obtained, and then the working mode of the audio power amplifier is determined according to the distance, wherein the working mode comprises evaluation parameters of at least one of the type, the amplification factor and an equalizer curve of the audio power amplifier.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an audio power amplifier control device according to an embodiment of the present invention, which is applied to a mobile terminal 100, and the audio power amplifier control device may include:
(1) acquisition module 10
The obtaining module 10 is configured to obtain a distance between the mobile terminal and a user when an audio power amplifier in the mobile terminal is in a working state.
Specifically, the audio power amplifier control device may further include a calculating unit, configured to:
emitting an infrared light beam with a specific wavelength by using an infrared sensor;
acquiring the reflection propagation time of an infrared beam in an infrared sensor;
and calculating the distance between the mobile terminal and the user according to the reflection propagation time.
It is easy to understand that, in addition to calculating and measuring the distance between the mobile terminal and the user through the infrared sensor, the terminal may also measure the distance through sound waves or laser light, and in order to make the measured distance more accurate, the terminal may integrate more than one distance measuring component, and after each distance measuring component respectively measures the distance between the mobile terminal and the user, the final distance value is obtained through a preset weighting calculation formula.
(2) Determination module 20
And the determining module 20 is configured to determine a working mode of the audio power amplifier according to the distance, where the working mode includes an evaluation parameter of at least one of a type of the audio power amplifier, an amplification factor, and an equalizer curve.
It is easy to understand that, considering power, impedance, distortion, dynamics and different application ranges and control adjustment functions, different power amplifiers are different in internal signal processing, circuit design and production process, the types of power amplifiers include classa, ClassD, ClassK and the like, and at least one type of power amplifier can be integrated in the same terminal to amplify weak signals from a sound source or a preamplifier to push a sound box to play sound. Different equalizer curves can respectively adjust the amplification amount of electric signals with various frequency components, compensate the defects of a loudspeaker and a sound field through adjusting the electric signals with various frequencies, and compensate and modify various sound sources and other special effects.
Further, referring to fig. 5, fig. 5 is another schematic structural diagram of the audio power amplifier control device according to the embodiment of the present invention, where the determining module 20 may specifically include:
an obtaining unit 21, configured to obtain a distance grade corresponding to the distance;
and the determining unit 22 is used for determining the working mode of the audio power amplifier according to the distance grade.
It is easily understood that the distance is set in a gradient in order to reduce the power consumption of the terminal, i.e. a distance range within a distance class.
It should be noted that, after the terminal determines the distance class, the audio power amplifier may be in a corresponding operating mode in an analog power amplifier control mode or a digital power amplifier control mode.
For example, the determining unit 22 specifically includes:
the control subunit 221 is configured to control a value of a pulse transmitted by a general port in the mobile terminal in a unit time to be a value corresponding to the distance class, so that the audio power amplifier is in a corresponding working mode.
It is easy to understand that in the analog power amplifier control mode, the values of the registers corresponding to different working modes are different, the terminal switches different working modes by controlling the values of the corresponding registers, and in the digital power amplifier control mode, the terminal controls the working modes of the power amplifier through the data on the I2C bus.
In addition, the processor acquires the distance between the mobile terminal and the user again and reports the distance at set time intervals, and the set time intervals can be 10ms, 50ms or 200 ms.
For example, the audio power amplifier control device may further include a timing module, configured to:
after determining the working mode of the audio power amplifier according to the distance, starting timing;
and when the timing duration reaches the preset duration, returning to execute the step of acquiring the distance between the mobile terminal and the user.
In this embodiment, the terminal may be clocked by an internal crystal oscillator that includes one or more combinations of a non-temperature compensated crystal oscillator, a temperature compensated crystal oscillator (TCXO), a voltage controlled crystal oscillator (VCXO), an oven controlled crystal oscillator (OCXO), and a digitized/μ p compensated crystal oscillator (DCXO/MCXO).
Different from the prior art, the invention provides an audio power amplifier control method, which comprises the following steps: when an audio power amplifier in the mobile terminal is in a working state, the distance between the mobile terminal and a user is obtained through the obtaining module 10, and then the working mode of the audio power amplifier is determined through the determining module 20 according to the distance, wherein the working mode comprises evaluation parameters of at least one of the type of the audio power amplifier, the amplification factor and an equalizer curve.
In addition to the above embodiments, the present invention may have other embodiments. All technical solutions formed by using equivalents or equivalent substitutions fall within the protection scope of the claims of the present invention.
In summary, although the preferred embodiments of the present invention have been described above, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (10)

1. The audio power amplifier control method is characterized by comprising the following steps:
when an audio power amplifier in a mobile terminal is in a working state, acquiring the distance between the mobile terminal and a user;
determining the working mode of the audio power amplifier according to the distance;
the working mode comprises evaluation parameters of at least one of the type of the audio power amplifier, the amplification factor and the curve of the equalizer.
2. The audio power amplifier control method according to claim 1, wherein the mobile terminal includes an infrared sensor, and the step of obtaining the distance between the mobile terminal and the user specifically includes:
emitting an infrared light beam with a specific wavelength by the infrared sensor;
acquiring reflection propagation time of an infrared beam in the infrared sensor;
and calculating the distance between the mobile terminal and the user according to the reflection propagation time.
3. The audio power amplifier control method according to claim 1, wherein the step of determining the operating mode of the audio power amplifier according to the distance specifically comprises:
obtaining a distance grade corresponding to the distance;
and determining the working mode of the audio power amplifier according to the distance grade.
4. The audio power amplifier control method according to claim 3, wherein the step of determining the operating mode of the audio power amplifier according to the distance class specifically comprises:
and controlling the value of the pulse emitted by the universal port in the mobile terminal in unit time to be the value corresponding to the distance grade so as to enable the audio power amplifier to be in a corresponding working mode.
5. The audio power amplifier control method of claim 1, further comprising, after determining the operating mode of the audio power amplifier according to the distance:
starting timing;
and when the timing duration reaches the preset duration, returning to execute the step of acquiring the distance between the mobile terminal and the user.
6. The utility model provides an audio power amplifier controlling means which characterized in that, audio power amplifier controlling means includes:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the distance between the mobile terminal and a user when an audio power amplifier in the mobile terminal is in a working state;
the determining module is used for determining the working mode of the audio power amplifier according to the distance;
the working mode comprises evaluation parameters of at least one of the type of the audio power amplifier, the amplification factor and the curve of the equalizer.
7. The audio power amplifier control device of claim 6, wherein the determining module specifically comprises:
the acquisition unit is used for acquiring the distance grade corresponding to the distance;
and the determining unit is used for determining the working mode of the audio power amplifier according to the distance grade.
8. The audio power amplifier control device of claim 7, wherein the determining unit specifically comprises:
and the control subunit is used for controlling the value of the pulse transmitted by the universal port in the mobile terminal in unit time to be a value corresponding to the distance grade, so that the audio power amplifier is in a corresponding working mode.
9. A computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the audio power amplifier control method of any of claims 1 to 5.
10. A mobile terminal, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the audio power amplifier control method according to any one of claims 1 to 5.
CN202010166317.8A 2020-03-11 2020-03-11 Audio power amplifier control method and device, storage medium and mobile terminal Pending CN111405111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010166317.8A CN111405111A (en) 2020-03-11 2020-03-11 Audio power amplifier control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010166317.8A CN111405111A (en) 2020-03-11 2020-03-11 Audio power amplifier control method and device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN111405111A true CN111405111A (en) 2020-07-10

Family

ID=71413251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010166317.8A Pending CN111405111A (en) 2020-03-11 2020-03-11 Audio power amplifier control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111405111A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201708910U (en) * 2010-06-29 2011-01-12 深圳Tcl新技术有限公司 Intelligent induction sound box
CN106126163A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of method adjusting audio and terminal
CN206524923U (en) * 2017-02-08 2017-09-26 广东威扬文化传播有限公司 One kind energy-conservation audio amplifier
CN109495649A (en) * 2018-12-14 2019-03-19 深圳市沃特沃德股份有限公司 Volume adjusting method, system and storage medium
CN110475181A (en) * 2019-08-16 2019-11-19 北京百度网讯科技有限公司 Equipment configuration method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201708910U (en) * 2010-06-29 2011-01-12 深圳Tcl新技术有限公司 Intelligent induction sound box
CN106126163A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of method adjusting audio and terminal
CN206524923U (en) * 2017-02-08 2017-09-26 广东威扬文化传播有限公司 One kind energy-conservation audio amplifier
CN109495649A (en) * 2018-12-14 2019-03-19 深圳市沃特沃德股份有限公司 Volume adjusting method, system and storage medium
CN110475181A (en) * 2019-08-16 2019-11-19 北京百度网讯科技有限公司 Equipment configuration method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10649720B2 (en) Sound effect configuration method and system and related device
US20180373489A1 (en) Audio stream processing method, mobile terminal and storage medium
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN109274812B (en) Method for controlling electronic device through ultrasonic gestures and related product
CN108492837B (en) Method, device and storage medium for detecting audio burst white noise
CN107122036B (en) Method and device for adjusting frequency of central processing unit
CN109041190B (en) Power control method and terminal
CN113055100A (en) Wi-Fi signal transmission power calibration system, method and device
CN110277097B (en) Data processing method and related equipment
CN110022600B (en) Driving current adjusting method and device, storage medium and mobile terminal
CN106817324B (en) Frequency response correction method and device
CN111083285A (en) Mobile terminal call positioning system and method
CN105159655B (en) Behavior event playing method and device
WO2019101012A1 (en) Method and device for power calibration, and computer readable storage device
CN105635379B (en) Noise suppression method and device
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN111405111A (en) Audio power amplifier control method and device, storage medium and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN111399944A (en) Application function starting method and device, storage medium and mobile terminal
CN111309223A (en) Application function starting method and device, storage medium and mobile terminal
CN111371520B (en) Radio search processing method and device, storage medium and terminal
CN110972221B (en) Communication signal processing method and device and mobile terminal
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device
CN112558808B (en) Unlocking method and device for bang screen, 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200710

RJ01 Rejection of invention patent application after publication