CN111338457A - Mobile terminal control method, mobile terminal control device and mobile terminal - Google Patents

Mobile terminal control method, mobile terminal control device and mobile terminal Download PDF

Info

Publication number
CN111338457A
CN111338457A CN202010175458.6A CN202010175458A CN111338457A CN 111338457 A CN111338457 A CN 111338457A CN 202010175458 A CN202010175458 A CN 202010175458A CN 111338457 A CN111338457 A CN 111338457A
Authority
CN
China
Prior art keywords
mobile terminal
microphone
sleep mode
voltage source
bias voltage
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
CN202010175458.6A
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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN202010175458.6A priority Critical patent/CN111338457A/en
Publication of CN111338457A publication Critical patent/CN111338457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3278Power saving in modem or I/O interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of mobile terminals, and provides a mobile terminal control method, a mobile terminal control device, a mobile terminal and a computer readable storage medium, which comprise: when detecting that an earphone is inserted into the mobile terminal, acquiring the type of the earphone; if the type of the earphone is the earphone with the microphone, monitoring whether the mobile terminal is in a sleep mode; and if the mobile terminal is in the sleep mode, controlling the bias voltage source of the microphone to be powered off. By the method and the device, the problems that the control of the microphone bias voltage source is not intelligent enough and the power consumption of the mobile terminal is increased in the prior art can be solved.

Description

Mobile terminal control method, mobile terminal control device and mobile terminal
Technical Field
The present application belongs to the technical field of mobile terminals, and in particular, to a mobile terminal control method, a mobile terminal control device, a mobile terminal, and a computer-readable storage medium.
Background
With the development of mobile communication, more and more users use mobile terminals such as smart phones and tablet computers, so that the number of supporting products of the mobile terminals is increased, such as earphones. The mobile terminal mainly realizes the insertion and extraction of the earphone and the detection of the key through the codec and the corresponding peripheral detection circuit. When the mobile terminal is inserted into an earphone with a microphone, the power needs to be supplied to the microphone bias voltage source all the time to ensure the normal use of the earphone (for example, to ensure the communication through the earphone), the control on the microphone bias voltage source is not intelligent enough, and the power consumption of the mobile terminal is increased.
Disclosure of Invention
The application provides a mobile terminal control method, a mobile terminal control device, a mobile terminal and a computer readable storage medium, which are used for solving the problems that the control of a microphone bias voltage source is not intelligent enough and the power consumption of the mobile terminal is increased in the prior art.
In a first aspect, the present application provides a mobile terminal control method, including:
when detecting that an earphone is inserted into the mobile terminal, acquiring the type of the earphone;
if the type of the earphone is the earphone with the microphone, monitoring whether the mobile terminal is in a sleep mode;
and if the mobile terminal is in the sleep mode, controlling the bias voltage source of the microphone to be powered off.
In a second aspect, the present application provides a mobile terminal control apparatus, comprising:
the type acquisition module is used for acquiring the type of the earphone when the earphone is detected to be inserted into the mobile terminal;
the mode monitoring module is used for monitoring whether the mobile terminal is in a sleep mode or not if the type of the earphone is an earphone with a microphone;
and the power-off control module is used for controlling the bias voltage source of the microphone to be powered off if the mobile terminal is in the sleep mode.
In a third aspect, the present application provides a mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the mobile terminal control method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the mobile terminal control method as described in the first aspect above.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when run on a mobile terminal, causes the mobile terminal to perform the steps of the mobile terminal control method as described in the first aspect above.
Therefore, when the mobile terminal is detected to be plugged into an earphone with a microphone, the mobile terminal is monitored to be in the sleep mode, and the power off of the microphone bias voltage source of the mobile terminal is controlled when the mobile terminal is in the sleep mode, so that the standby current in the sleep mode can be reduced, the power consumption of the mobile terminal is reduced, and the intelligent control of the microphone bias voltage source is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described 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 inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a mobile terminal control method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a mobile terminal control method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a mobile terminal control device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic view of an implementation flow of a mobile terminal control method provided in an embodiment of the present application, where the mobile terminal control method is applied to a mobile terminal, as shown in the figure, the mobile terminal control method may include the following steps:
step S101, when detecting that an earphone is inserted into the mobile terminal, obtaining the type of the earphone.
In the embodiment of the present application, the types of earphones include, but are not limited to, earphones with a microphone and earphones without a microphone, the earphones with a microphone may not only play audio but also capture audio (for example, make a call or record), and the earphones without a microphone may play audio but cannot capture audio. The earphone with the microphone can be called a four-section earphone, the earphone without the microphone can be called a three-section earphone, and the four-section earphone is added with the microphone compared with the three-section earphone.
If the mobile terminal is plugged into an earphone without a microphone, because the microphone signal line is not available, the microphone spring of the earphone jack of the mobile terminal is connected to the ground metal sheet of the earphone plug (i.e. is in short circuit with the ground wire), and the level of the microphone signal line is lower, so that a level threshold value can be set for detecting the type of the earphone plugged into the mobile terminal. When detecting that an earphone is inserted into the mobile terminal, acquiring the level of a microphone signal line, and when the level of the microphone signal line is smaller than or equal to a level threshold value, determining that the type of the earphone is the earphone without the microphone; when the level of the microphone signal line is greater than the level threshold, it is determined that the type of the headset is a headset with a microphone.
And step S102, if the type of the earphone is the earphone with the microphone, monitoring whether the mobile terminal is in a sleep mode.
In this embodiment of the application, the sleep Mode may also be referred to as Doze Mode (i.e., Doze Mode), and the mobile terminal may achieve an effect of saving power consumption of the mobile terminal by closing the target process in the sleep Mode. The target process can be at least one process in the mobile terminal, and the user can select the target process from all processes of the mobile terminal according to actual needs. For example, the target process includes at least one of: the process whose power consumption amount is equal to or greater than the power consumption amount threshold value is a process that is not in use at the present time. Whether the process is in an unused state can be judged according to the use frequency of the process, for example, the process with the use frequency less than 2 times/day is determined as the process in the unused state, and the process with the use frequency more than or equal to 2 times/day is determined as the process in the used state; or, it may be determined whether the process is in an unused state according to whether the process is running in the foreground or the background, for example, determining the process running in the foreground as the used state, and determining the process running in the background or not running in the foreground and not running in the background as the unused state.
Optionally, the embodiment of the present application further includes:
and if the instruction of entering the sleep mode is acquired, controlling the mobile terminal to enter the sleep mode.
In this embodiment of the application, the instruction to enter the sleep mode may be generated by automatically triggering when the mobile terminal meets a preset condition, or may be sent to the mobile terminal by other devices, which is not limited herein. The instruction to enter the sleep mode may be an instruction to instruct the mobile terminal to enter the sleep mode.
Optionally, the embodiment of the present application further includes:
when detecting that the mobile terminal is not connected with a power supply and the time length of the mobile terminal in an idle state exceeds a preset time length, triggering and generating the instruction for entering the sleep mode; or
And when the starting operation of the sleep mode function in the mobile terminal is detected, triggering and generating the instruction for entering the sleep mode.
In the embodiment of the present application, the mobile terminal not being connected to the power source may mean that the mobile terminal is not charged. The mobile terminal being in the idle state may be that the mobile terminal is in an unused state, that is, a user does not use the mobile terminal, and whether the mobile terminal is in the idle state may be determined according to whether a screen of the mobile terminal is lit, an acceleration, and the like, for example, when it is detected that the screen of the mobile terminal is off and the acceleration is smaller than an acceleration threshold, the mobile terminal is determined to be in the idle state. The operation for starting the sleep mode function in the mobile terminal includes, but is not limited to, a touch operation on a sleep mode icon or key in the mobile terminal.
Step S103, if the mobile terminal is in a sleep mode, controlling a bias voltage source of a microphone to be powered off.
The microphone bias voltage source provides bias voltage for the microphone to supply power to the microphone, and therefore the earphone can collect audio and conduct conversation or recording.
Optionally, after controlling the mobile terminal to enter the sleep mode, the method further includes:
setting a flag bit of the microphone bias voltage source to first flag information;
correspondingly, if the mobile terminal is in the sleep mode, controlling the bias voltage source of the microphone to be powered off comprises:
if the mobile terminal is in a sleep mode, identifying a zone bit of the microphone offset voltage source through an audio core unit;
and if the audio core unit identifies that the flag bit of the microphone bias voltage source is first flag information, controlling the microphone bias voltage source to power off.
In the embodiment of the application, the flag bit of the microphone bias voltage source is used for representing whether to perform power-off control on the microphone bias voltage source in the mobile terminal, and when the flag bit of the microphone bias voltage source is the first flag information, the flag bit represents that power-off control needs to be performed on the microphone bias voltage source. The audio core unit comprises an audio core driver and audio hardware equipment, wherein the audio hardware equipment comprises audio equipment such as a microphone, a loudspeaker, a receiver and the like, and the audio core driver controls the audio equipment to be turned on or turned off.
According to the embodiment of the application, when the mobile terminal is in the sleep mode, the power-off of the microphone bias voltage source of the mobile terminal is controlled, so that the standby current in the sleep mode can be reduced, the power consumption of the mobile terminal is reduced, and the intelligent control of the microphone bias voltage source is realized.
Referring to fig. 2, it is a schematic diagram of an implementation flow of a mobile terminal control method provided in the second embodiment of the present application, where the mobile terminal control method is applied to a mobile terminal, and as shown in the figure, the mobile terminal control method may include the following steps:
step S201, when detecting that an earphone is inserted into the mobile terminal, obtaining the type of the earphone.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S202, if the type of the earphone is the earphone with the microphone, the current time is obtained.
In the embodiment of the application, if it is detected that the type of the headset is the headset with the microphone, the current time can be acquired according to a preset time interval, and the current time is compared with the sleep interval to judge whether the current time is in the sleep interval. The current time is acquired, for example, every 5 seconds.
Step S203, determining whether the current time is in a sleep interval.
In the embodiment of the present application, the sleep interval is a period of time, for example, 21 pm to 7 am. Optionally, the user can set the sleep interval according to the actual requirement, and also can acquire the sleep interval corresponding to the mobile terminal user by collecting the use habit of the user to the mobile terminal, for example, the time when the user presses the power key every day in X (X is an integer larger than 1) days is collected, the time when the user presses the power key for the first time and the time when the user presses the power key for the last time are obtained every day, according to the time of the last pressing operation in the first day and the time of the first pressing operation in the second day in the two adjacent days, the method comprises the steps that a sleep interval corresponding to two adjacent days can be obtained, sleep intervals corresponding to all two adjacent days in X days are obtained, the sleep interval with the largest occurrence frequency is obtained from the sleep intervals corresponding to all two adjacent days in X days, and the sleep interval is used as the sleep interval corresponding to a mobile terminal user; or calculating the average value of the times of the X first pressing operations and the average value of the times of the X last pressing operations corresponding to X days, and determining that the time period from the average value of the times of the X last pressing operations to the end of the average value of the times of the X first pressing operations is the sleep interval corresponding to the mobile terminal user. It should be noted that, for convenience of explanation, any two adjacent days are divided into a first day and a second day, and the second day occurs after the first day.
Step S204, if the current time is in the sleep interval, monitoring whether the mobile terminal is in a sleep mode.
In the embodiment of the application, whether the mobile terminal is in the sleep mode or not can be monitored when the mobile terminal enters the sleep interval corresponding to the user, whether the mobile terminal is in the sleep mode or not can be monitored first, and when the mobile terminal is in the sleep mode, the current time is acquired, whether the current time is in the sleep interval or not is detected, which is not limited herein.
Step S205, if the mobile terminal is in the sleep mode, controlling the bias voltage source of the microphone to be powered off.
In the embodiment of the application, when the mobile terminal enters the sleep mode in the sleep interval, the microphone bias voltage source is controlled to be powered off, so that the control of the mobile terminal on the microphone bias voltage source is more in line with the use habit of a user on the mobile terminal.
And step S206, if the mobile terminal is monitored to exit the sleep mode, supplying power to the microphone bias voltage source.
In the embodiment of the application, after the mobile terminal controls the microphone bias voltage source to be powered off, if the mobile terminal is monitored to exit the sleep mode, power can be supplied to the microphone bias voltage source again at the moment so as to ensure that the earphone with the microphone can work normally. When the target operation of the user on the mobile terminal is detected, it may be determined that the mobile terminal exits the sleep mode, for example, it is detected that the user lights a screen of the mobile terminal or shakes the mobile terminal.
Optionally, if it is monitored that the mobile terminal exits the sleep mode, supplying power to the microphone bias voltage source includes:
if the mobile terminal is monitored to exit the sleep mode, setting a zone bit of the microphone bias voltage source as second zone information, and identifying the zone bit of the microphone bias voltage source through an audio core unit;
and if the audio core unit identifies that the flag bit of the microphone bias voltage source is the second flag information, supplying power to the microphone bias voltage source.
In the embodiment of the application, when it is monitored that the mobile terminal exits the sleep mode, the flag bit of the microphone offset voltage source can be modified from the first flag information to the second flag information, and the audio core unit enables the microphone offset voltage source again after recognizing the second flag information, that is, supplies power to the microphone offset voltage source again. The second flag information is used for representing that the microphone bias voltage source needs to be powered. The first mark information and the second mark information are different, and a user can set the first mark information and the second mark information according to actual needs. For example, the first flag information is set to close, and the second flag information is set to open.
According to the embodiment of the application, the mobile terminal is continuously monitored after the microphone bias voltage source is controlled to be powered off, and when the mobile terminal is monitored to exit the sleep mode, power is supplied to the microphone bias voltage source again, so that normal work of an earphone with a microphone can be guaranteed, and intelligent control over the microphone bias voltage source is achieved.
Fig. 3 is a schematic diagram of a mobile terminal control device according to a third embodiment of the present application, and for convenience of description, only the relevant portions of the third embodiment of the present application are shown.
The mobile terminal control device includes:
a type obtaining module 31, configured to obtain a type of an earphone when the earphone is detected to be inserted into the mobile terminal;
a mode monitoring module 32, configured to monitor whether the mobile terminal is in a sleep mode if the type of the headset is a headset with a microphone;
and a power-off control module 33, configured to control the bias voltage source of the microphone to power off if the mobile terminal is in the sleep mode.
Optionally, the mobile terminal control apparatus further includes:
and the mode control module is used for controlling the mobile terminal to enter the sleep mode if the instruction of entering the sleep mode is acquired.
Optionally, the mobile terminal control apparatus further includes:
and the flag setting module is used for setting the flag bit of the microphone bias voltage source as first flag information.
Optionally, the power-off control module is specifically configured to:
if the mobile terminal is in a sleep mode, identifying a zone bit of the microphone offset voltage source through an audio core unit;
and if the audio core unit identifies that the flag bit of the microphone bias voltage source is first flag information, controlling the microphone bias voltage source to power off.
Optionally, the mobile terminal control apparatus further includes:
the instruction generating module is used for triggering and generating the instruction for entering the sleep mode when detecting that the mobile terminal is not connected with a power supply and the time length of the mobile terminal in the idle state exceeds the preset time length; or when the starting operation of the sleep mode function in the mobile terminal is detected, triggering and generating the instruction for entering the sleep mode.
Optionally, the mobile terminal control apparatus further includes:
and the power supply module is used for supplying power to the microphone bias voltage source if the mobile terminal is monitored to exit the sleep mode.
Optionally, the power supply module is specifically configured to:
if the mobile terminal is monitored to exit the sleep mode, setting a zone bit of the microphone bias voltage source as second zone information, and identifying the zone bit of the microphone bias voltage source through an audio core unit;
and if the audio core unit identifies that the flag bit of the microphone bias voltage source is the second flag information, supplying power to the microphone bias voltage source.
Optionally, the mode monitoring module is specifically configured to:
if the type of the earphone is an earphone with a microphone, acquiring the current time;
judging whether the current time is in a sleep interval or not;
and if the current time is in the sleep interval, monitoring whether the mobile terminal is in a sleep mode.
The mobile terminal control device provided in the embodiment of the present application may be applied to the first method embodiment and the second method embodiment, and for details, reference is made to the description of the first method embodiment and the second method embodiment, and details are not repeated herein.
Fig. 4 is a schematic diagram of a mobile terminal according to a fourth embodiment of the present application. The mobile terminal as shown in the figure may include: one or more processors 401 (only one shown); one or more input devices 402 (only one shown), one or more output devices 403 (only one shown), and memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected by a bus 405. The memory 404 is used for storing instructions and the processor 401 is used for executing the instructions stored by the memory 404. Wherein:
the processor 401 is configured to obtain a type of an earphone when the earphone is detected to be inserted into the mobile terminal; if the type of the earphone is the earphone with the microphone, monitoring whether the mobile terminal is in a sleep mode; and if the mobile terminal is in the sleep mode, controlling the bias voltage source of the microphone to be powered off.
Optionally, the processor 401 is further configured to:
and if the instruction of entering the sleep mode is acquired, controlling the mobile terminal to enter the sleep mode.
Optionally, after controlling the mobile terminal to enter the sleep mode, the processor 401 is further configured to:
and setting a flag bit of the microphone bias voltage source as first flag information.
Optionally, the processor 401 is specifically configured to:
if the mobile terminal is in a sleep mode, identifying a zone bit of the microphone offset voltage source through an audio core unit;
and if the audio core unit identifies that the flag bit of the microphone bias voltage source is first flag information, controlling the microphone bias voltage source to power off.
Optionally, the processor 401 is further configured to:
when detecting that the mobile terminal is not connected with a power supply and the time length of the mobile terminal in an idle state exceeds a preset time length, triggering and generating the instruction for entering the sleep mode; or
And when the starting operation of the sleep mode function in the mobile terminal is detected, triggering and generating the instruction for entering the sleep mode.
Optionally, after controlling the microphone bias voltage source to be powered off, the processor 401 is further configured to:
and if the mobile terminal is monitored to exit the sleep mode, supplying power to the microphone bias voltage source.
Optionally, the processor 401 is specifically configured to:
if the mobile terminal is monitored to exit the sleep mode, setting a zone bit of the microphone bias voltage source as second zone information, and identifying the zone bit of the microphone bias voltage source through an audio core unit;
and if the audio core unit identifies that the flag bit of the microphone bias voltage source is the second flag information, supplying power to the microphone bias voltage source.
Optionally, the processor 401 is specifically configured to:
if the type of the earphone is an earphone with a microphone, acquiring the current time;
detecting whether the current time is in a sleep interval;
and if the current time is in the sleep interval, monitoring whether the mobile terminal is in a sleep mode.
It should be understood that, in the embodiment of the present Application, the Processor 401 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 402 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. The output devices 403 may include a display (LCD, etc.), speakers, a data transmission interface, and the like.
The memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
In a specific implementation, the processor 401, the input device 402, the output device 403, and the memory 404 described in this embodiment may execute the implementation described in the embodiment of the mobile terminal control method provided in this embodiment, or may execute the implementation described in the mobile terminal control device described in the third embodiment, which is not described herein again.
Fig. 5 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application. As shown in fig. 5, the mobile terminal 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50 implements the steps in the various mobile terminal control method embodiments described above when executing the computer program 52. Alternatively, the processor 50 implements the functions of the modules/units in the above-described device embodiments when executing the computer program 52.
The mobile terminal 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The mobile terminal may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a mobile terminal 5 and does not constitute a limitation of the mobile terminal 5 and may include more or less components than those shown, or some of the components may be combined, or different components, e.g., the mobile terminal may also include input-output devices, network access devices, buses, etc.
The processor 50 may be a central processing unit CPU, but may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the mobile terminal 5, such as a hard disk or a memory of the mobile terminal 5. The memory 51 may also be an external storage device of the mobile terminal 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the mobile terminal 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the mobile terminal 5. The memory 51 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/mobile terminal and method may be implemented in other ways. For example, the above-described apparatus/mobile terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A mobile terminal control method, characterized in that the mobile terminal control method comprises:
when detecting that an earphone is inserted into the mobile terminal, acquiring the type of the earphone;
if the type of the earphone is the earphone with the microphone, monitoring whether the mobile terminal is in a sleep mode;
and if the mobile terminal is in the sleep mode, controlling the bias voltage source of the microphone to be powered off.
2. The mobile terminal control method of claim 1, further comprising:
and if the instruction of entering the sleep mode is acquired, controlling the mobile terminal to enter the sleep mode.
3. The mobile terminal control method of claim 2, further comprising, after controlling the mobile terminal to enter a sleep mode:
setting a flag bit of the microphone bias voltage source to first flag information;
correspondingly, if the mobile terminal is in the sleep mode, controlling the bias voltage source of the microphone to be powered off comprises:
if the mobile terminal is in a sleep mode, identifying a zone bit of the microphone offset voltage source through an audio core unit;
and if the audio core unit identifies that the flag bit of the microphone bias voltage source is first flag information, controlling the microphone bias voltage source to power off.
4. The mobile terminal control method of claim 2, further comprising:
when detecting that the mobile terminal is not connected with a power supply and the time length of the mobile terminal in an idle state exceeds a preset time length, triggering and generating the instruction for entering the sleep mode; or
And when the starting operation of the sleep mode function in the mobile terminal is detected, triggering and generating the instruction for entering the sleep mode.
5. The mobile terminal control method of claim 1, after controlling the microphone bias voltage supply to power down, further comprising:
and if the mobile terminal is monitored to exit the sleep mode, supplying power to the microphone bias voltage source.
6. The method of claim 5, wherein the providing power to the microphone bias voltage source if it is monitored that the mobile terminal exits the sleep mode comprises:
if the mobile terminal is monitored to exit the sleep mode, setting a zone bit of the microphone bias voltage source as second zone information, and identifying the zone bit of the microphone bias voltage source through an audio core unit;
and if the audio core unit identifies that the flag bit of the microphone bias voltage source is the second flag information, supplying power to the microphone bias voltage source.
7. The method of any of claims 1 to 6, wherein the monitoring whether the mobile terminal is in a sleep mode if the type of the headset is a headset with a microphone comprises:
if the type of the earphone is an earphone with a microphone, acquiring the current time;
judging whether the current time is in a sleep interval or not;
and if the current time is in the sleep interval, monitoring whether the mobile terminal is in a sleep mode.
8. A mobile terminal control apparatus, characterized in that the mobile terminal control apparatus comprises:
the type acquisition module is used for acquiring the type of the earphone when the earphone is detected to be inserted into the mobile terminal;
the mode monitoring module is used for monitoring whether the mobile terminal is in a sleep mode or not if the type of the earphone is an earphone with a microphone;
and the power-off control module is used for controlling the bias voltage source of the microphone to be powered off if the mobile terminal is in the sleep mode.
9. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the mobile terminal control method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the mobile terminal control method according to any one of claims 1 to 7.
CN202010175458.6A 2020-03-13 2020-03-13 Mobile terminal control method, mobile terminal control device and mobile terminal Pending CN111338457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010175458.6A CN111338457A (en) 2020-03-13 2020-03-13 Mobile terminal control method, mobile terminal control device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010175458.6A CN111338457A (en) 2020-03-13 2020-03-13 Mobile terminal control method, mobile terminal control device and mobile terminal

Publications (1)

Publication Number Publication Date
CN111338457A true CN111338457A (en) 2020-06-26

Family

ID=71186159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010175458.6A Pending CN111338457A (en) 2020-03-13 2020-03-13 Mobile terminal control method, mobile terminal control device and mobile terminal

Country Status (1)

Country Link
CN (1) CN111338457A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150811A (en) * 2007-10-22 2008-03-26 中兴通讯股份有限公司 A device and method for standby control in mobile terminal
CN101350854A (en) * 2008-08-20 2009-01-21 嘉兴闻泰通讯科技有限公司 Mobile phone with FM inside recording function and method for FM inside recording
US20090037756A1 (en) * 2007-07-31 2009-02-05 Lundquist David T System and Method for Suspending Operation of a Mobile Unit
CN101431708A (en) * 2008-12-10 2009-05-13 深圳华为通信技术有限公司 Terminal and method for recognizing headphone type
CN101938546A (en) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Earphone microphone detection method based on mobile phone and mobile phone
CN103634724A (en) * 2012-08-23 2014-03-12 三星电子株式会社 Earphone connection interface and method of operating earphone, and terminal for supporting the same
CN104375623A (en) * 2014-11-28 2015-02-25 北京华网汇通技术服务有限公司 Wearable intelligent device and electricity-saving control method thereof
CN105653008A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Night sleep message prompting method and device and electronic equipment
CN107426658A (en) * 2017-08-01 2017-12-01 林海 Biasing circuit and MEMS microphone
CN108108006A (en) * 2017-12-19 2018-06-01 广东小天才科技有限公司 The long-range control method and system of a kind of microphone
CN108848264A (en) * 2018-06-19 2018-11-20 Oppo广东移动通信有限公司 Control method, device, storage medium and the electronic equipment of microphone

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090037756A1 (en) * 2007-07-31 2009-02-05 Lundquist David T System and Method for Suspending Operation of a Mobile Unit
CN101150811A (en) * 2007-10-22 2008-03-26 中兴通讯股份有限公司 A device and method for standby control in mobile terminal
CN101350854A (en) * 2008-08-20 2009-01-21 嘉兴闻泰通讯科技有限公司 Mobile phone with FM inside recording function and method for FM inside recording
CN101431708A (en) * 2008-12-10 2009-05-13 深圳华为通信技术有限公司 Terminal and method for recognizing headphone type
CN101938546A (en) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Earphone microphone detection method based on mobile phone and mobile phone
CN103634724A (en) * 2012-08-23 2014-03-12 三星电子株式会社 Earphone connection interface and method of operating earphone, and terminal for supporting the same
CN104375623A (en) * 2014-11-28 2015-02-25 北京华网汇通技术服务有限公司 Wearable intelligent device and electricity-saving control method thereof
CN105653008A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Night sleep message prompting method and device and electronic equipment
CN107426658A (en) * 2017-08-01 2017-12-01 林海 Biasing circuit and MEMS microphone
CN108108006A (en) * 2017-12-19 2018-06-01 广东小天才科技有限公司 The long-range control method and system of a kind of microphone
CN108848264A (en) * 2018-06-19 2018-11-20 Oppo广东移动通信有限公司 Control method, device, storage medium and the electronic equipment of microphone

Similar Documents

Publication Publication Date Title
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
EP3502880B1 (en) Method for preloading application, storage medium, and terminal device
CN108521521B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108900770B (en) Method and device for controlling rotation of camera, smart watch and mobile terminal
CN108566634B (en) Method and device for reducing continuous awakening delay of Bluetooth sound box and Bluetooth sound box
CN107483751B (en) Terminal device, electric quantity distribution method thereof and computer-readable storage medium
US10720791B2 (en) Charging method, charging device and terminal
CN110716631A (en) Power supply management method, device, equipment and readable storage medium
CN108681514B (en) Device detection method and device, storage medium and electronic device
CN107783633B (en) Method for managing application program, terminal and computer readable storage medium
CN111142650B (en) Screen brightness adjusting method, screen brightness adjusting device and terminal
CN110767946B (en) Method and device for controlling discharging of mobile terminal and mobile terminal
CN110086941B (en) Voice playing method and device and terminal equipment
WO2022042485A1 (en) Control method and apparatus for near-field communication module, and electronic device
CN109298907B (en) Application program display method, application program display device and terminal
CN110708747A (en) Data transmission rate adjusting method, system, storage medium and mobile terminal
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN110336918B (en) Bright screen control method and device, storage medium and mobile terminal
CN111767136A (en) Process management method, terminal and device with storage function
CN108536512B (en) Interface switching method and device and terminal equipment
CN111338457A (en) Mobile terminal control method, mobile terminal control device and mobile terminal
CN106249874A (en) The report method of a kind of sensing data, processor and mobile terminal
CN112019961B (en) Noise reduction parameter debugging method and device for noise reduction earphone and terminal
CN107835553B (en) Method for controlling flashlight, mobile terminal and computer readable storage medium
CN108650421B (en) Display control method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200626