CN110365845A - The call control method and terminal of terminal - Google Patents

The call control method and terminal of terminal Download PDF

Info

Publication number
CN110365845A
CN110365845A CN201910666091.5A CN201910666091A CN110365845A CN 110365845 A CN110365845 A CN 110365845A CN 201910666091 A CN201910666091 A CN 201910666091A CN 110365845 A CN110365845 A CN 110365845A
Authority
CN
China
Prior art keywords
earphone
judging result
terminal
call control
call
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
CN201910666091.5A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910666091.5A priority Critical patent/CN110365845A/en
Publication of CN110365845A publication Critical patent/CN110365845A/en
Pending legal-status Critical Current

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/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/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Abstract

The present invention provides a kind of call control method of terminal and terminals, this method comprises: during terminal is conversed by the earphone being inserted in earphone jack, in the case where detecting the impedance between the microphone port and grounding ports that are arranged in the earphone jack less than the first preset threshold, the electric signal of the microphone port within a preset period of time is obtained;According to the electric signal in the preset time period, judging result is obtained, the call control button that the judging result is used to indicate on the earphone is pressed or the earphone is removed from the earphone jack;According to the judging result, the state of the call is controlled.Therefore, the solution of the present invention solves the problems, such as to pull up the erroneous judgement that earphone causes to hang up the telephone in communication process.

Description

The call control method and terminal of terminal
Technical field
The present invention relates to field of communication technology more particularly to the call control methods and terminal of a kind of terminal.
Background technique
User's using terminal converse when, sometimes can handoff calls state, such as from hand-free call switch to earphone call, Or it is switched to from earphone call hands-free.
Wherein, during user is conversed using earphone, electricity can be connected or hung up by call control button Words.Specifically, the testing principle for control button of conversing is to pass through the resistance of the detection microphone port (Mic) and ground connection port (GND) Value judges whether key is pressed.When the button is pressed, two ports are shorted together, and impedance is almost nil, then sentences Disconnected key is pressed.
But in practical communication process, if user pulls up earphone (but user is not intended to hang up the telephone at this time), the end MIC Mouth and the port GND also can judge that ear key is pressed by of short duration short circuit, system, cause the erroneous judgement hung up the telephone.
Summary of the invention
The embodiment provides a kind of call control method of terminal and terminals, to solve to pull out in communication process The problem of lower earphone causes the erroneous judgement hung up the telephone.
In a first aspect, the embodiment provides a kind of call control methods of terminal, comprising:
During terminal is conversed by the earphone being inserted in earphone jack, the earphone jack is being detected In the case that impedance between the microphone port and grounding ports of interior setting is less than the first preset threshold, the microphone is obtained The electric signal of port within a preset period of time;
According to the electric signal in the preset time period, judging result is obtained, the judging result is used to indicate the ear Call control button on machine is pressed or the earphone is removed from the earphone jack;
According to the judging result, the state of the call is controlled.
Second aspect, the embodiment provides a kind of terminals, comprising:
Acquisition module, for detecting during terminal is conversed by the earphone being inserted in earphone jack In the case that the impedance between microphone port and grounding ports being arranged in the earphone jack is less than the first preset threshold, Obtain the electric signal of the microphone port within a preset period of time;
Judgment module, for obtaining judging result according to the electric signal in the preset time period, the judging result is used It is pressed in the call control button on the instruction earphone or the earphone is removed from the earphone jack;
Control module, for controlling the state of the call according to the judging result.
The third aspect the embodiment provides a kind of terminal, including memory, processor and is stored in described deposit On reservoir and the computer program that can run on the processor;The processor is realized described above when executing described program Terminal call control method.
Fourth aspect, the embodiment provides a kind of computer readable storage mediums, are stored thereon with computer Program, the program realize the step in the call control method of terminal described above when being executed by processor.
The beneficial effect of the embodiment of the present invention is:
During terminal is conversed by the earphone being inserted in earphone jack, if the wheat being arranged in earphone jack Impedance gram between wind port and grounding ports is less than the first preset threshold, then it represents that the call control button quilt on earphone at this time It presses or earphone is removed from earphone jack, and the embodiment of the present invention, earphone jack can be passed through in this case The electric signal of interior microphone port within a preset period of time, distinguishes above-mentioned two situations, so as to for difference The case where, communication process is controlled, avoids pulling up the erroneous judgement that earphone causes to hang up the telephone in communication process.
Detailed description of the invention
Fig. 1 shows the flow charts of the call control method of the terminal of the embodiment of the present invention;
Fig. 2 indicates the microphone end when call control button in the embodiment of the present invention on earphone is pressed in earphone jack The waveform diagram of the electric signal of mouth;
Electricity of the earphone from the microphone port in earphone jack when being removed in earphone jack in Fig. 3 expression embodiment of the present invention The waveform diagram of signal;
Fig. 4 indicates the module diagram of the terminal in the embodiment of the present invention;
Fig. 5 indicates the hardware structural diagram of the terminal in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment provides a kind of call control methods of terminal, as shown in Figure 1, this method comprises:
Step 101: described detecting during terminal is conversed by the earphone being inserted in earphone jack In the case that the impedance between microphone port and grounding ports being arranged in earphone jack is less than the first preset threshold, institute is obtained State the electric signal of microphone port within a preset period of time.
Wherein, the preset time period can be set according to actual needs.
In addition, if detecting, earphone is inserted during terminal is conversed by the earphone being inserted in earphone jack The impedance between microphone port and grounding ports being arranged in hole then illustrates the call control on earphone less than the first preset threshold Key processed is pressed or earphone is removed from earphone jack.And the embodiment of the present invention obtains earphone in this case The electric signal of microphone port within a preset period of time in jack, can distinguish above-mentioned two situations, it can root According to the electric signal, ear during terminal is conversed by the earphone being inserted in earphone jack, on earphone is judged Machine key is pressed or earphone is removed from earphone jack.
In addition, the electric signal of the microphone port obtained in a step 101 within a preset period of time, can be specially voltage The situation of change of signal or current signal.
Step 102: according to the electric signal in the preset time period, obtaining judging result.
The call control button that the judging result is used to indicate on the earphone is pressed or the earphone is from described It is removed in earphone jack.
Wherein, during terminal is conversed by the earphone being inserted in earphone jack, earphone keystroke is pressed When, the situation of change of the electric signal of the microphone port in earphone jack, when being removed from earphone jack with earphone, earphone jack The situation of change of the electric signal of interior microphone port is different.
Specifically, when above electrical signal is specially voltage signal, as shown in Fig. 2, indicating that the call control on earphone is pressed The waveform diagram of the electric signal of microphone port when key is pressed in earphone jack.Wherein, since the call control on earphone is pressed After key is pressed, the process sprung back there are one, therefore presented in Fig. 2 about the approximate waveform symmetrical above and below of time shaft.Such as Fig. 3 It is shown, indicate earphone from earphone jack remove when earphone jack in microphone port electric signal waveform diagram.Wherein, ear During machine is extracted from earphone jack, there is no the processes of rebound, then positive axis is presented in Fig. 3 (i.e. above time shaft) Waveform is more.
Thus, the embodiment of the present invention can be judged in terminal according to the electric signal by being inserted in earphone jack Earphone conversed during, the earphone keystroke on earphone is pressed or earphone is removed from earphone jack.
Step 103: according to the judging result, controlling the state of the call.
It can be seen from the above, during terminal is conversed by the earphone being inserted in earphone jack, if earphone is inserted The impedance between microphone port and grounding ports being arranged in hole is less than the first preset threshold, then it represents that logical on earphone at this time Words control button is pressed or earphone is removed from earphone jack, and the embodiment of the present invention, can in this case, By the electric signal of the microphone port in earphone jack within a preset period of time, above-mentioned two situations are distinguished, thus It can be directed to different situations, communication process is controlled, avoid pulling up the erroneous judgement that earphone causes to hang up the telephone in communication process.
Optionally, step 102 includes:
Obtain the wave type energy of the electric signal;
According to the wave type energy, judge that the call control button on the earphone is pressed or the earphone is from institute It states in earphone jack and removes, obtain judging result.
Wherein, due to during terminal is conversed by the earphone being inserted in earphone jack, earphone keystroke quilt When pressing, the situation of change (i.e. the waveform of electric signal) of the electric signal of the microphone port in earphone jack, with earphone from earphone When removing in jack, the situation of change (i.e. the waveform of electric signal) of the electric signal of the microphone port in earphone jack is different.Cause And the embodiment of the present invention, it can be judged in terminal according to the wave type energy of electric signal by being inserted in earphone jack During earphone is conversed, the earphone keystroke on earphone is pressed or earphone is removed from earphone jack.
Specifically, the wave type energy for obtaining the electric signal, comprising:
The amplitude of the waveform of the electric signal and the integral of time are obtained, and is determined as wave type energy.
The wave type energy of the i.e. described electric signal is the amplitude and the integral of time of waveform.Specifically, when the electric signal is electricity When pressing signal, as shown in Fig. 2, the telecommunications of the microphone port when the call control button on earphone is pressed in earphone jack Number waveform diagram in, the integral of amplitude and time in the figure is counted, wave type energy value is close to zero.As shown in figure 3, In earphone from the waveform diagram of the electric signal of the microphone port in earphone jack when being removed in earphone jack, to the vibration in the figure Width and the integral of time are counted, and wave type energy value is a bigger positive value.Thus, the embodiment of the present invention, can be with According to the integral of the amplitude of the waveform of electric signal and time, judge to carry out in terminal by the earphone being inserted in earphone jack During call, the earphone keystroke on earphone is pressed or earphone is removed from earphone jack.
Optionally, described according to the wave type energy, judge that the call control button on the earphone is pressed or institute It states earphone to remove from the earphone jack, obtains judging result, comprising:
In the case where the wave type energy is less than the second preset threshold, what the acquisition call control button was pressed sentences Disconnected result;
In the case where the wave type energy is greater than or equal to second preset threshold, the earphone is obtained from the ear The judging result removed in machine transplanting of rice hole.
Specifically, when the electric signal is voltage signal, as shown in Fig. 2, the call control button on earphone is pressed When earphone jack in microphone port electric signal waveform diagram in, wave type energy value is close to zero.As shown in figure 3, in ear For machine from the waveform diagram of the electric signal of the microphone port in earphone jack when removing in earphone jack, wave type energy value is one Bigger positive value.Therefore, it is possible to second preset threshold be set, according to the wave type energy of above electrical signal, on earphone Call control button the case where being pressed and earphone the case where being removed from earphone jack distinguish.
Optionally, described according to the judging result, control the state of the call, comprising:
In the case where the judging result is that the call control button is pressed, the call is hung up;
In the case where the judging result is that the earphone is removed from the earphone jack, the call is kept.
Wherein, call control button receives calls or hangs up the telephone for controlling terminal, therefore, in the call of terminal Cheng Zhong, if judging, call control button is pressed, and needs to hang up the call.And in the communication process of terminal, earphone from It is removed in earphone jack, is not offered as user and needs kill-call, thus, it needs to continue at this time to keep call, to meet user Actual demand.
In conclusion the embodiment of the present invention, can detect end during terminal is conversed using earphone In the case that the impedance between microphone port and grounding ports being arranged in the earphone jack at end is less than the first preset threshold, lead to The case where crossing the situation of change for judging the electric signal of the microphone port, being pressed to the call control button on earphone and ear The case where machine is removed from earphone jack is effectively distinguished, to avoid causing when removing from earphone jack in earphone pair Call is accidentally hung up, and the stability of user's communication is enhanced, and promotes user experience.
The embodiments of the present invention also provide a kind of terminals, as shown in figure 4, the terminal includes:
Acquisition module 401, for examining during terminal is conversed by the earphone being inserted in earphone jack Measure the case where impedance between the microphone port and grounding ports being arranged in the earphone jack is less than the first preset threshold Under, obtain the electric signal of the microphone port within a preset period of time;
Judgment module 402, for obtaining judging result, the judgement knot according to the electric signal in the preset time period The call control button that fruit is used to indicate on the earphone is pressed or the earphone is removed from the earphone jack;
Control module 403, for controlling the state of the call according to the judging result.
Optionally, the judgment module 402 includes:
Energy harvesting unit, for obtaining the wave type energy of the electric signal;
Judging unit, for judging that the call control button on the earphone is pressed, still according to the wave type energy The earphone is removed from the earphone jack, obtains judging result.
Optionally, the energy harvesting unit is specifically used for:
The amplitude of the waveform of the electric signal and the integral of time are obtained, and is determined as wave type energy.
Optionally, the judging unit is specifically used for:
In the case where the wave type energy is less than the second preset threshold, what the acquisition call control button was pressed sentences Disconnected result;
In the case where the wave type energy is greater than or equal to second preset threshold, the earphone is obtained from the ear The judging result removed in machine transplanting of rice hole.
Optionally, the control module includes:
First control unit, for hanging up in the case where the judging result is that the call control button is pressed The call;
Second control unit, for being the case where earphone is removed from the earphone jack in the judging result Under, keep the call.
It can be seen from the above, during terminal is conversed by the earphone being inserted in earphone jack, if earphone is inserted The impedance between microphone port and grounding ports being arranged in hole is less than the first preset threshold, then it represents that logical on earphone at this time Words control button is pressed or earphone is removed from earphone jack, and the embodiment of the present invention, can in this case, By the electric signal of the microphone port in earphone jack within a preset period of time, above-mentioned two situations are distinguished, thus It can be directed to different situations, communication process is controlled, avoid pulling up the erroneous judgement that earphone causes to hang up the telephone in communication process.
The embodiments of the present invention also provide a kind of terminals, as shown in figure 5, the terminal 500 includes but is not limited to: radio frequency list Member 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user's input The components such as unit 507, interface unit 508, memory 509, processor 510 and power supply 511.Those skilled in the art can be with Understand, the restriction of the not structure paired terminal of terminal structure shown in Fig. 5, terminal may include than illustrating more or fewer portions Part perhaps combines certain components or different component layouts.In embodiments of the present invention, terminal include but is not limited to mobile phone, Tablet computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510 is used for during terminal is conversed by the earphone being inserted in earphone jack, Detect feelings of the impedance between the microphone port and grounding ports being arranged in the earphone jack less than the first preset threshold Under condition, the electric signal of the microphone port within a preset period of time is obtained;According to the electric signal in the preset time period, obtain Judging result, the call control button that the judging result is used to indicate on the earphone be pressed or the earphone from It is removed in the earphone jack;According to the judging result, the state of the call is controlled.
It can be seen from the above, during terminal is conversed by the earphone being inserted in earphone jack, if earphone is inserted The impedance between microphone port and grounding ports being arranged in hole is less than the first preset threshold, then it represents that logical on earphone at this time Words control button is pressed or earphone is removed from earphone jack, and the embodiment of the present invention, can in this case, By the electric signal of the microphone port in earphone jack within a preset period of time, above-mentioned two situations are distinguished, thus It can be directed to different situations, communication process is controlled, avoid pulling up the erroneous judgement that earphone causes to hang up the telephone in communication process.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive and dispatch electricity Sub- mail, browsing webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also provide and end The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 500 executes.Sound Frequency output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 5061, and proximity sensor can close display panel when terminal 500 is moved in one's ear 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 505 can be with Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensor etc., details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 507 include touch panel 5071 and other Input equipment 5072.Touch panel 5071, also referred to as touch screen, collect user on it or nearby touch operation (such as User is using any suitable objects or attachment such as finger, stylus on touch panel 5071 or near touch panel 5071 Operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receives processor 510 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072. Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, switch Key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 5, touch panel 5071 and display Panel 5061 is the function that outputs and inputs of realizing terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of terminal is realized so that touch panel 5071 and display panel 5061 is integrated, is not limited herein specifically It is fixed.
Interface unit 508 is the interface that external device (ED) is connect with terminal 500.For example, external device (ED) may include it is wired or Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port, For connecting port, the port audio input/output (I/O), video i/o port, ear port of the device with identification module Etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will One or more elements that the input received is transferred in terminal 500 or can be used for terminal 500 and external device (ED) it Between transmit data.
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the software program and/or module being stored in memory 509, and call and be stored in memory 509 Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 510 may include one Or multiple processing units;Preferably, processor 510 can integrate application processor and modem processor, wherein application processing The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 510.
Terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 can be with It is logically contiguous by power-supply management system and processor 510, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
In addition, terminal 500 includes some unshowned functional modules, details are not described herein.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake of the call control method embodiment of above-mentioned terminal when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications It should be regarded as protection scope of the present invention.

Claims (12)

1. a kind of call control method of terminal characterized by comprising
During terminal is conversed by the earphone being inserted in earphone jack, set detecting in the earphone jack In the case that the impedance between microphone port and grounding ports set is less than the first preset threshold, the microphone port is obtained Electric signal within a preset period of time;
According to the electric signal in the preset time period, judging result is obtained, the judging result is used to indicate on the earphone Call control button be pressed or the earphone is removed from the earphone jack;
According to the judging result, the state of the call is controlled.
2. the call control method of terminal according to claim 1, which is characterized in that described according to the preset time period Interior electric signal obtains judging result, comprising:
Obtain the wave type energy of the electric signal;
According to the wave type energy, judge that the call control button on the earphone is pressed or the earphone is from the ear The machine transplanting of rice removes in hole, obtains judging result.
3. the call control method of terminal according to claim 2, which is characterized in that the wave for obtaining the electric signal Shape energy, comprising:
The amplitude of the waveform of the electric signal and the integral of time are obtained, and is determined as wave type energy.
4. the call control method of terminal according to claim 2, which is characterized in that it is described according to the wave type energy, Judge that the call control button on the earphone is pressed or the earphone is removed from the earphone jack, is judged As a result, comprising:
In the case where the wave type energy is less than the second preset threshold, the judgement knot that the call control button is pressed is obtained Fruit;
In the case where the wave type energy is greater than or equal to second preset threshold, obtains the earphone and inserted from the earphone The judging result removed in hole.
5. the call control method of terminal according to claim 1, which is characterized in that it is described according to the judging result, Control the state of the call, comprising:
In the case where the judging result is that the call control button is pressed, the call is hung up;
In the case where the judging result is that the earphone is removed from the earphone jack, the call is kept.
6. a kind of terminal characterized by comprising
Acquisition module, for during terminal is conversed by the earphone being inserted in earphone jack, detecting In the case where the impedance between the microphone port and grounding ports being arranged in earphone jack is stated less than the first preset threshold, obtain The electric signal of the microphone port within a preset period of time;
Judgment module, for obtaining judging result, the judging result is for referring to according to the electric signal in the preset time period Show that the call control button on the earphone is pressed or the earphone is removed from the earphone jack;
Control module, for controlling the state of the call according to the judging result.
7. terminal according to claim 6, which is characterized in that the judgment module includes:
Energy harvesting unit, for obtaining the wave type energy of the electric signal;
Judging unit judges that the call control button on the earphone is pressed or described for according to the wave type energy Earphone is removed from the earphone jack, obtains judging result.
8. terminal according to claim 7, which is characterized in that the energy harvesting unit is specifically used for:
The amplitude of the waveform of the electric signal and the integral of time are obtained, and is determined as wave type energy.
9. terminal according to claim 7, which is characterized in that the judging unit is specifically used for:
In the case where the wave type energy is less than the second preset threshold, the judgement knot that the call control button is pressed is obtained Fruit;
In the case where the wave type energy is greater than or equal to second preset threshold, obtains the earphone and inserted from the earphone The judging result removed in hole.
10. terminal according to claim 6, which is characterized in that the control module includes:
First control unit, for hanging up described in the case where the judging result is that the call control button is pressed Call;
Second control unit, for protecting in the case where the judging result is that the earphone is removed from the earphone jack Hold the call.
11. a kind of terminal, including memory, processor and it is stored on the memory and can runs on the processor Computer program;It is characterized in that, the processor realizes end as described in any one in claim 1-5 when executing described program The call control method at end.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step in the call control method of terminal as described in any one in claim 1-5 is realized when execution.
CN201910666091.5A 2019-07-23 2019-07-23 The call control method and terminal of terminal Pending CN110365845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910666091.5A CN110365845A (en) 2019-07-23 2019-07-23 The call control method and terminal of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910666091.5A CN110365845A (en) 2019-07-23 2019-07-23 The call control method and terminal of terminal

Publications (1)

Publication Number Publication Date
CN110365845A true CN110365845A (en) 2019-10-22

Family

ID=68221513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910666091.5A Pending CN110365845A (en) 2019-07-23 2019-07-23 The call control method and terminal of terminal

Country Status (1)

Country Link
CN (1) CN110365845A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343334A (en) * 2020-02-13 2020-06-26 惠州Tcl移动通信有限公司 Event processing method and device, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841599A (en) * 2010-04-07 2010-09-22 惠州Tcl移动通信有限公司 Method and mobile phone for preventing mistaken hanging up in conversation of mobile phone
CN102769810A (en) * 2012-07-25 2012-11-07 惠州Tcl移动通信有限公司 Mobile terminal with a calling misoperation preventive function
CN106412303A (en) * 2016-09-30 2017-02-15 上海斐讯数据通信技术有限公司 Intelligent terminal control method and system based on earphone button, and intelligent terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841599A (en) * 2010-04-07 2010-09-22 惠州Tcl移动通信有限公司 Method and mobile phone for preventing mistaken hanging up in conversation of mobile phone
CN102769810A (en) * 2012-07-25 2012-11-07 惠州Tcl移动通信有限公司 Mobile terminal with a calling misoperation preventive function
CN106412303A (en) * 2016-09-30 2017-02-15 上海斐讯数据通信技术有限公司 Intelligent terminal control method and system based on earphone button, and intelligent terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343334A (en) * 2020-02-13 2020-06-26 惠州Tcl移动通信有限公司 Event processing method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108108007B (en) A kind of processing method and mobile terminal reducing power consumption
CN109445736A (en) A kind of multi-screen display method and mobile terminal
CN108255378A (en) A kind of display control method and mobile terminal
CN108491123A (en) A kind of adjusting application program image target method and mobile terminal
CN110413364A (en) A kind of information processing method and terminal
CN108304061A (en) A kind of display control method and terminal
CN109379484A (en) A kind of information processing method and terminal
CN110209313A (en) Icon moving method and terminal device
CN108810701B (en) A kind of Type-C interface method for detecting abnormality and mobile terminal
CN110365853A (en) A kind of reminding method and electronic equipment
CN110213686A (en) A kind of detection method and terminal of earphone socket
CN109560591A (en) Charging method, device and terminal
CN109407948A (en) A kind of interface display method and mobile terminal
CN110267145A (en) A kind of state display method and terminal device
CN110018805A (en) A kind of display control method and mobile terminal
CN109888928A (en) A kind of terminal and wireless charging control method
CN109831359A (en) A kind of detection method and its terminal device of data network connection state
CN107979385B (en) A kind of radio-frequency front-end data processing method and mobile terminal
CN110096203A (en) A kind of screenshot method and mobile terminal
CN110138963A (en) A kind of message treatment method and mobile terminal
CN109831582A (en) Non- response events processing method and terminal
CN108718360A (en) A kind of charging method and mobile terminal
CN108448177A (en) A kind of charging method and terminal
CN110209543A (en) A kind of detection method and terminal of earphone socket
CN110365845A (en) The call control method and terminal of terminal

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: 20191022