CN112261536A - Earphone control method, earphone control device, terminal equipment and storage medium - Google Patents
Earphone control method, earphone control device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN112261536A CN112261536A CN202011124704.1A CN202011124704A CN112261536A CN 112261536 A CN112261536 A CN 112261536A CN 202011124704 A CN202011124704 A CN 202011124704A CN 112261536 A CN112261536 A CN 112261536A
- Authority
- CN
- China
- Prior art keywords
- earphone
- range
- state
- inclination angle
- user
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Headphones And Earphones (AREA)
Abstract
The embodiment of the invention discloses an earphone control method, an earphone control device, terminal equipment and a storage medium. The direction sensor of the earphone is controlled to be in an open state; acquiring the inclination angle change range of the earphone according to the direction sensor; when the inclination angle variation range is lower than a first preset range, generating a starting interruption signal to control the earphone to be in a closed state, wherein the first preset range is the minimum inclination angle variation range of the earphone in a user use state; when the change range of the inclination angle is higher than a first preset range, a closing interrupt signal is generated to control the earphone to be in an opening state. The embodiment of the invention judges the use state of the earphone by the user by detecting the numerical value change range of the direction sensor of the earphone, thereby controlling the earphone to be automatically turned on or turned off.
Description
Technical Field
The invention relates to the technical field of mobile communication, in particular to an earphone control method, an earphone control device, terminal equipment and a storage medium.
Background
Mobile terminal mobile phone headsets fall into two standards: the OMTP standard is usually called the national standard and CTIA is called the international standard. Earphones are classified according to their transduction mode, mainly including: a moving coil system, a moving iron system, an electrostatic system, and an equivalent magnetic system. The functional mode is classified structurally, and the device can be divided into a semi-open type and a closed type; ear plugs, ear hooks, ear insertion and head are classified from wearing forms; single earphones and multi-person earphones are classified according to the number of people wearing the earphones; the earphone is distinguished from a sound source and can be divided into an active earphone and a passive earphone; active headsets are also often referred to as paddle-card headsets. In the research and practice process of the prior art, the inventor of the present invention finds that sometimes a user forgets to manually turn off the earphone after taking off the earphone, which causes the mobile terminal and the earphone to perform audio interaction in both directions all the time, and consumes energy of the two.
Disclosure of Invention
The embodiment of the invention provides an earphone control method, an earphone control device, terminal equipment and a storage medium, wherein the use state of an earphone by a user is judged by detecting the inclination angle change range of a direction sensor of the earphone, so that the earphone is controlled to be automatically turned on or turned off.
The embodiment of the invention provides an earphone control method, which comprises the following steps:
controlling a direction sensor of the earphone to be in an on state;
acquiring the inclination angle change range of the earphone according to the direction sensor;
when the inclination angle variation range is lower than a first preset range, generating a starting interruption signal to control the earphone to be in a closed state, wherein the first preset range is the minimum inclination angle variation range of the earphone in a user use state;
and when the inclination angle change range is higher than the first preset range, generating a closing interrupt signal to control the earphone to be in an opening state.
Optionally, in some embodiments of the present invention, the generating an on interrupt signal when the tilt angle variation range is lower than a first preset range includes:
when the time that the change range of the inclination angle is lower than the first preset range is greater than or equal to the preset time, generating the starting interrupt signal;
and when the time that the change range of the inclination angle is lower than the first preset range is less than the preset time, not generating the starting interrupt signal.
Optionally, in some embodiments of the present invention, the generating an on-off signal when the tilt angle variation range is lower than a first preset range to control the earphone to be in an off state includes:
and controlling the earphone to be in a closed state in response to the number of the continuously generated opening interrupt signals exceeding a first limit value.
Optionally, in some embodiments of the present invention, the controlling the earphone to be in the off state includes:
sending an earphone closing prompt to a user;
controlling the earphone to be in a closed state in response to the user confirming the operation of closing the earphone;
and controlling the earphone to be in an opening state in response to the user's repudiation of the operation of closing the earphone.
Optionally, in some embodiments of the present invention, the generating a close interrupt signal when the tilt angle variation range is higher than the first preset range includes:
when the tilt angle variation range is lower than or equal to the first preset range, the turn-off interrupt signal is not generated.
Optionally, in some embodiments of the present invention, the generating an on-off signal when the tilt angle variation range is lower than a first preset range to control the earphone to be in an off state includes:
and controlling the earphone to be in a closed state in response to the number of the continuously generated opening interrupt signals exceeding a second limit value.
Optionally, in some embodiments of the present invention, the controlling the earphone to be in the off state includes:
sending an earphone starting prompt to a user;
responding to the operation that a user confirms to turn on the earphone, and controlling the earphone to be in a turn-off state;
and controlling the earphone to be in an opening state in response to the user's repudiation of the operation of opening the earphone.
Correspondingly, an embodiment of the present invention further provides an earphone control device, including:
the control unit is used for controlling the direction sensor of the earphone to be in an on state;
the change range generating unit is used for acquiring the inclination angle change range of the earphone according to the direction sensor;
the closed state control unit is used for generating a starting interruption signal and controlling the earphone to be in a closed state when the inclination angle change range is lower than a first preset range, wherein the first preset range is the minimum inclination angle change range of the earphone in a user use state;
and the opening state control unit is used for generating a closing interrupt signal and controlling the earphone to be in an opening state when the inclination angle change range is higher than the first preset range.
Similarly, an embodiment of the present invention further provides a terminal device, including:
a memory for storing an application program;
a processor for implementing the steps of any of the headset control methods when executing the application.
In addition, the embodiment of the invention also provides a readable storage medium, wherein an application program is stored on the readable storage medium, and the application program realizes the steps of any one of the earphone control methods when being executed by a processor.
The embodiment of the invention provides an earphone control method, an earphone control device, terminal equipment and a storage medium, wherein a mobile terminal controls a direction sensor of an earphone to be in an on state; then, acquiring the inclination angle change range of the earphone according to the direction sensor; then, when the inclination angle variation range is lower than a first preset range, generating a starting interruption signal to control the earphone to be in a closed state, wherein the first preset range is the minimum inclination angle variation range of the earphone in a user use state; and finally, when the change range of the inclination angle is higher than a first preset range, generating a closing interrupt signal to control the earphone to be in an opening state. The embodiment of the invention judges the use state of the earphone by a user by detecting the inclination angle change range of the direction sensor of the earphone, thereby controlling the earphone to be automatically turned on or turned off.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scene of an earphone control method provided in an embodiment of the present invention;
fig. 2 is a flowchart of an earphone control method provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an earphone control device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an earphone control method, an earphone control device, terminal equipment and a storage medium. The device can be integrated in a terminal, and the terminal can be a mobile phone, a tablet computer, a notebook computer, an intelligent watch and other equipment.
Referring to fig. 1, fig. 1 is a schematic view of a scene of an earphone control method according to an embodiment of the present invention. The scene schematic diagram comprises a mobile terminal and an earphone, wherein the earphone can be a Bluetooth earphone, a headset or the like, and the mobile terminal is used for controlling a direction sensor of the earphone to be in an on state; acquiring the inclination angle change range of the earphone according to the direction sensor; then, when the inclination angle variation range is lower than a first preset range, generating a starting interruption signal to control the earphone to be in a closed state, wherein the first preset range is the minimum inclination angle variation range of the earphone in a user use state; and finally, when the change range of the inclination angle is higher than a first preset range, generating a closing interrupt signal to control the earphone to be in an opening state.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The present embodiment will be described from the perspective of a headset control device, which may be specifically integrated in a terminal device, which may include a notebook Computer, a tablet Computer, a smart phone, a Personal Computer (PC), and the like.
As shown in fig. 2, the specific flow of the earphone control method is as follows:
For example, a direction sensor is arranged in the earphone, the mobile terminal is connected with the earphone, when the earphone is started, the mobile terminal generates a direction sensor starting instruction to control the direction sensor in the earphone to be in a starting state, and the direction sensor is used for detecting the direction of the earphone, so that the direction is converted into a quantifiable numerical value.
The direction sensor obtains the values of the current position of the earphone on the X axis, the Y axis and the Z axis, and calculates the inclination angle of the earphone according to the angle formed by the three axes (or any two axes).
For example, the value of the direction sensor is continuously detected, the change of the value of the direction sensor is recorded every time, and the change range of the inclination angle of the direction sensor every time is calculated,
For example, when the earphone is in an on state, a first preset range is preset, the inclination angle change range of the direction sensor calculated each time is compared with the first preset range, and whether an on-off signal is generated or not is judged according to the comparison result.
Wherein the first preset range is a minimum inclination angle change range indicating that the earphone is in a user use state.
In one embodiment, the mobile terminal generates a turn-on interrupt signal when the detected tilt angle variation range of the direction sensor is lower than a first preset range.
In one embodiment, the mobile terminal does not generate the turn-on interrupt signal when the detected tilt angle variation range of the direction sensor is equal to or greater than a first preset range.
In one embodiment, the tilt angle variation range of the direction sensor is compared with a first preset range, and if the time that the tilt angle variation range of the direction sensor is smaller than the first preset range is greater than or equal to a preset time, the mobile terminal generates a start interrupt signal. Specifically, the mobile terminal obtains the inclination angle change range of the direction sensor, compares the inclination angle change range with a first preset range, and when the preset time is up, the continuously obtained inclination angle change ranges of the direction sensor are all smaller than the first preset range, which indicates that the earphone is not in use by the user, and the mobile terminal generates a start interruption signal.
In one embodiment, the tilt angle variation range of the direction sensor is compared with a first preset range, and if the time that the tilt angle variation range of the direction sensor is smaller than the first preset range is smaller than a preset time, the mobile terminal does not generate a start interrupt signal. Specifically, the mobile terminal obtains the inclination angle variation range of the direction sensor, compares the inclination angle variation range with a first preset range, and when the preset time is not reached, the obtained inclination angle variation range of the direction sensor is larger than the first preset range, which indicates that the earphone is in a user use state, and the mobile terminal does not generate a start interruption signal.
The preset time is a time period, for example, one hour, and the length of the preset time is not limited, and can be flexibly set according to actual conditions.
In some embodiments, the interrupt signal is indicated by a General-purpose input/output (GPIO) indicating that the mobile terminal generates the interrupt signal when the GPIO indicates high and that the mobile terminal does not generate the interrupt signal when the GPIO indicates low.
Optionally, in response to that the number of the continuously generated on-off interrupt signals exceeds a first limit value, an earphone off instruction is sent out to control the earphone to be in an off state.
Optionally, when the inclination angle variation range of the direction sensor is compared with a first preset range, the mobile terminal records a result of each comparison, that is, whether an opening interrupt signal is generated each time is recorded, and it is determined according to the comparison result, and if the number of the continuously generated opening interrupt signals exceeds a first limit value, the mobile terminal sends an earphone closing instruction to control the earphone to be in a closed state.
The first limit value is any value, the setting of the first limit value is not limited, and the first limit value can be flexibly set according to actual conditions.
In one embodiment, after the mobile terminal sends the earphone closing instruction, an earphone closing prompt is sent to the user, for example, a vibration and/or ring prompt is sent to the user, and in response to the user confirming the operation of closing the earphone, the earphone closing instruction is executed, so that the earphone is automatically closed.
In one embodiment, after sending an earphone closing instruction, the mobile terminal sends an earphone closing prompt to the user, and responds to the user's denial of the operation of closing the earphone, without executing the earphone closing instruction, so that the earphone is in an open state.
In some embodiments, the operation of the user confirming or denying closing the earphone comprises generating a prompt box after the mobile terminal sends an earphone closing prompt to the user, wherein the prompt box comprises two options of confirming closing the earphone and denying closing the earphone, and the user clicks the corresponding option to indicate whether to execute an earphone closing instruction or not, so as to control the earphone to be in a closed state.
In some embodiments, the operation of the user confirming or denying closing the earphone includes that after the mobile terminal sends an earphone closing prompt to the user, if the user denies closing the earphone, the user performs a preset denial operation on a screen of the mobile terminal for a period of time, for example, 10 seconds, for example, long pressing on the screen, double clicking on the screen, sliding for a distance on the screen, and the like, and the mobile terminal receives the denial operation, does not execute an earphone closing instruction, and controls the earphone to be in an open state; and if the user confirms that the earphone is closed, the user does not perform any operation, and after a period of time, the mobile terminal automatically executes an earphone closing instruction to control the earphone to be in a closed state.
And 204, when the inclination angle variation range is higher than the first preset range, generating a closing interrupt signal to control the earphone to be in an opening state.
For example, when the earphone is in a closed state, the inclination angle of the direction sensor is continuously detected, every inclination angle change of the direction sensor is recorded, every inclination angle change range of the direction sensor is calculated, every inclination angle change range of the direction sensor is compared with a first preset range, and whether a closing interrupt signal is generated or not is judged according to the comparison result.
In one embodiment, the mobile terminal generates a turn-off interrupt signal when a range of a change in the detected tilt angle of the direction sensor is higher than a first preset range.
In one embodiment, the mobile terminal does not generate the turn-off interrupt signal when the detected tilt angle variation range of the direction sensor is equal to or less than a first preset range.
Optionally, in response to that the number of the continuously generated shutdown interrupt signals exceeds a second limit value, an earphone startup instruction is sent out to control the earphone to be in a startup state.
Optionally, when the inclination angle variation range of the direction sensor is compared with the first preset range, the mobile terminal records a result of each comparison, that is, whether to generate a shutdown interrupt signal each time is recorded, and if the number of the interrupt signals continuously generated exceeds a second limit value, the mobile terminal sends an earphone startup instruction to control the earphone to be in a startup state.
The second limited numerical value is any numerical value, the setting of the second limited numerical value is not limited, and the second limited numerical value can be flexibly set according to actual conditions. The first limit value and the second limit value are not limited in size, and the first limit value may be smaller than the second limit value, may be equal to the second limit value, or may be larger than the second limit value.
In one embodiment, after the mobile terminal sends the earphone opening instruction, an earphone opening prompt is sent to the user, for example, a vibration and/or ring prompt is sent to the user, and in response to the user confirming the operation of opening the earphone, the earphone opening instruction is executed, so that the earphone is automatically opened.
In one implementation mode, after the mobile terminal sends an earphone opening instruction, an earphone opening prompt is sent to a user, the operation of opening the earphone is denied by the user, the earphone opening instruction is not executed, and the earphone is controlled to be in a closed state.
In some embodiments, the operation of the user confirming or denying to open the earphone includes generating a prompt box after the mobile terminal sends an earphone opening prompt to the user, the prompt box includes two options of confirming to open the earphone and denying to open the earphone, and the user clicks the corresponding option to indicate whether to execute the earphone opening instruction.
In some embodiments, the operation of the user confirming or denying opening the earphone includes that after the mobile terminal sends an earphone opening prompt to the user, if the user denies opening the earphone, the user performs a preset denial operation on a screen of the mobile terminal for a period of time, for example, 10 seconds, for example, long-time pressing on the screen, double-clicking on the screen, sliding for a distance on the screen, and the like, and the mobile terminal does not execute an earphone closing instruction when receiving the denial operation; and if the user confirms to open the earphone, the user does not perform any operation, and after a period of time, the mobile terminal automatically executes an earphone opening instruction to control the earphone to be in an opening state.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an earphone control device according to an embodiment of the present invention, where the earphone control device may include a control unit 301, a variation range generating unit 302, an off-state control unit 303, and an on-state control unit 304.
The control unit 301 is configured to control the direction sensor of the earphone to be in an on state.
Optionally, the variation range generating unit 302 is configured to obtain a variation range of the tilt angle of the earphone according to the direction sensor.
Optionally, the off-state control unit 303 is configured to generate an on-interrupt signal to control the earphone to be in an off state when the tilt angle variation range is lower than a first preset range, where the first preset range is a minimum tilt angle variation range in which the earphone is in a user use state.
Optionally, the off-state control unit 303 is further configured to generate the on-off interrupt signal when a time that the tilt angle variation range is lower than the first preset range is greater than or equal to a preset time; and when the time that the change range of the inclination angle is lower than the first preset range is less than the preset time, not generating the starting interrupt signal.
Optionally, the first instruction issuing unit 303 is configured to control the earphone to be in an off state in response to that the number of the continuously generated on-off interrupt signals exceeds a first limit value.
Optionally, the first instruction issuing unit 303 is further configured to issue an earphone shutdown prompt to the user; controlling the earphone to be in a closed state in response to the user confirming the operation of closing the earphone; and controlling the earphone to be in an opening state in response to the user's repudiation of the operation of closing the earphone.
Optionally, the second signal generating unit 304 is configured to generate a shutdown interrupt signal to control the earphone to be in a turned-on state when the tilt angle variation range is higher than the first preset range.
Optionally, the second signal generating unit 304 is further configured to not generate the shutdown interrupt signal when the tilt angle variation range is lower than or equal to the first preset range.
Optionally, the second signal generating unit 304 is further configured to control the earphone to be in an off state in response to that the number of the continuously generated on-off interrupt signals exceeds a second limit value.
Optionally, the second signal generating unit 304 is further configured to send an earphone turning-on prompt to the user; responding to the operation that a user confirms to turn on the earphone, and controlling the earphone to be in a turn-off state; and controlling the earphone to be in an opening state in response to the user's repudiation of the operation of opening the earphone.
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 4, the terminal may include Radio Frequency (RF) circuits 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the handset. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions: controlling a direction sensor of the earphone to be in an on state; then, acquiring the inclination angle change range of the earphone according to the direction sensor; then, when the inclination angle variation range is lower than a first preset range, generating a starting interruption signal to control the earphone to be in a closed state, wherein the first preset range is the minimum inclination angle variation range of the earphone in a user use state; and finally, when the change range of the inclination angle is higher than a first preset range, generating a closing interrupt signal to control the earphone to be in an opening state.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The method, the apparatus, the terminal device and the storage medium for controlling the earphone provided by the embodiment of the present invention are described in detail above, a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the technical scheme and the core idea of the present invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A headset control method, comprising:
controlling a direction sensor of the earphone to be in an on state;
acquiring the inclination angle change range of the earphone according to the direction sensor;
when the inclination angle variation range is lower than a first preset range, generating a starting interruption signal to control the earphone to be in a closed state, wherein the first preset range is the minimum inclination angle variation range of the earphone in a user use state;
and when the inclination angle change range is higher than the first preset range, generating a closing interrupt signal to control the earphone to be in an opening state.
2. The method of claim 1, wherein generating an on-interrupt signal when the tilt angle variation range is lower than a first preset range comprises:
when the time that the change range of the inclination angle is lower than the first preset range is greater than or equal to the preset time, generating the starting interrupt signal;
and when the time that the change range of the inclination angle is lower than the first preset range is less than the preset time, not generating the starting interrupt signal.
3. The method of claim 1, wherein generating an on interrupt signal to control the earphone to be in an off state when the tilt angle variation range is lower than a first preset range comprises:
and controlling the earphone to be in a closed state in response to the number of the continuously generated opening interrupt signals exceeding a first limit value.
4. The method of claim 1, wherein the controlling the headset in an off state comprises:
sending an earphone closing prompt to a user;
controlling the earphone to be in a closed state in response to the user confirming the operation of closing the earphone;
and controlling the earphone to be in an opening state in response to the user's repudiation of the operation of closing the earphone.
5. The method of claim 1, wherein generating a shutdown interrupt signal when the tilt angle variation range is higher than the first preset range comprises:
when the tilt angle variation range is lower than or equal to the first preset range, the turn-off interrupt signal is not generated.
6. The method of claim 1, wherein generating an on interrupt signal to control the earphone to be in an off state when the tilt angle variation range is lower than a first preset range comprises:
and controlling the earphone to be in a closed state in response to the number of the continuously generated opening interrupt signals exceeding a second limit value.
7. The method of claim 1, wherein the controlling the headset in an off state comprises:
sending an earphone starting prompt to a user;
responding to the operation that a user confirms to turn on the earphone, and controlling the earphone to be in a turn-off state;
and controlling the earphone to be in an opening state in response to the user's repudiation of the operation of opening the earphone.
8. An earphone control device, comprising:
the control unit is used for controlling the direction sensor of the earphone to be in an on state;
the change range generating unit is used for acquiring the inclination angle change range of the earphone according to the direction sensor;
the closed state control unit is used for generating a starting interruption signal and controlling the earphone to be in a closed state when the inclination angle change range is lower than a first preset range, wherein the first preset range is the minimum inclination angle change range of the earphone in a user use state;
and the opening state control unit is used for generating a closing interrupt signal and controlling the earphone to be in an opening state when the inclination angle change range is higher than the first preset range.
9. A terminal device, comprising:
a memory for storing an application program;
a processor for implementing the steps of any of claims 1 to 7 when executing the application.
10. A readable storage medium, having an application program stored thereon, which when executed by a processor implements the steps in the headset control method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011124704.1A CN112261536B (en) | 2020-10-20 | 2020-10-20 | Earphone control method, earphone control device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011124704.1A CN112261536B (en) | 2020-10-20 | 2020-10-20 | Earphone control method, earphone control device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112261536A true CN112261536A (en) | 2021-01-22 |
CN112261536B CN112261536B (en) | 2023-08-04 |
Family
ID=74245054
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011124704.1A Active CN112261536B (en) | 2020-10-20 | 2020-10-20 | Earphone control method, earphone control device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112261536B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101867634A (en) * | 2010-03-03 | 2010-10-20 | 深圳市同洲电子股份有限公司 | Information prompting method and device in mobile terminal |
US20110077056A1 (en) * | 2009-09-25 | 2011-03-31 | Samsung Electronics Co., Ltd. | Method and apparatus for controlling of bluetooth headset |
CN103137158A (en) * | 2013-01-28 | 2013-06-05 | 深圳市金立通信设备有限公司 | Method controlling audio playing and terminal |
CN103167379A (en) * | 2011-12-13 | 2013-06-19 | 富泰华工业(深圳)有限公司 | Audio playing device |
US20130345842A1 (en) * | 2012-06-25 | 2013-12-26 | Lenovo (Singapore) Pte. Ltd. | Earphone removal detection |
CN103730139A (en) * | 2013-11-15 | 2014-04-16 | 刘和超 | Action switch earphone |
US20140314247A1 (en) * | 2013-04-18 | 2014-10-23 | Xiaomi Inc. | Method for controlling terminal device and the smart terminal device thereof |
US20150281824A1 (en) * | 2014-03-28 | 2015-10-01 | Echostar Technologies L.L.C. | Methods to conserve remote batteries |
CN105959854A (en) * | 2016-06-22 | 2016-09-21 | 惠州Tcl移动通信有限公司 | Method and system for realizing normal output of left sound and right sound based on headset |
US20180039086A1 (en) * | 2015-04-03 | 2018-02-08 | Shenzhen Royole Technologies Co., Ltd. | Head-mounted electronic device |
CN207166694U (en) * | 2017-04-13 | 2018-03-30 | 微鲸科技有限公司 | A kind of earphone |
CN108810749A (en) * | 2018-06-08 | 2018-11-13 | Oppo(重庆)智能科技有限公司 | player control method, device, terminal device and storage medium |
US20190053764A1 (en) * | 2011-01-27 | 2019-02-21 | Valencell, Inc. | Headsets with angled sensor modules |
CN111698632A (en) * | 2020-06-03 | 2020-09-22 | 歌尔科技有限公司 | Headset state detection method and device, TWS headset and computer storage medium |
-
2020
- 2020-10-20 CN CN202011124704.1A patent/CN112261536B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110077056A1 (en) * | 2009-09-25 | 2011-03-31 | Samsung Electronics Co., Ltd. | Method and apparatus for controlling of bluetooth headset |
CN101867634A (en) * | 2010-03-03 | 2010-10-20 | 深圳市同洲电子股份有限公司 | Information prompting method and device in mobile terminal |
US20190053764A1 (en) * | 2011-01-27 | 2019-02-21 | Valencell, Inc. | Headsets with angled sensor modules |
CN103167379A (en) * | 2011-12-13 | 2013-06-19 | 富泰华工业(深圳)有限公司 | Audio playing device |
US20130345842A1 (en) * | 2012-06-25 | 2013-12-26 | Lenovo (Singapore) Pte. Ltd. | Earphone removal detection |
CN103137158A (en) * | 2013-01-28 | 2013-06-05 | 深圳市金立通信设备有限公司 | Method controlling audio playing and terminal |
US20140314247A1 (en) * | 2013-04-18 | 2014-10-23 | Xiaomi Inc. | Method for controlling terminal device and the smart terminal device thereof |
CN103730139A (en) * | 2013-11-15 | 2014-04-16 | 刘和超 | Action switch earphone |
US20150281824A1 (en) * | 2014-03-28 | 2015-10-01 | Echostar Technologies L.L.C. | Methods to conserve remote batteries |
US20180039086A1 (en) * | 2015-04-03 | 2018-02-08 | Shenzhen Royole Technologies Co., Ltd. | Head-mounted electronic device |
CN105959854A (en) * | 2016-06-22 | 2016-09-21 | 惠州Tcl移动通信有限公司 | Method and system for realizing normal output of left sound and right sound based on headset |
CN207166694U (en) * | 2017-04-13 | 2018-03-30 | 微鲸科技有限公司 | A kind of earphone |
CN108810749A (en) * | 2018-06-08 | 2018-11-13 | Oppo(重庆)智能科技有限公司 | player control method, device, terminal device and storage medium |
CN111698632A (en) * | 2020-06-03 | 2020-09-22 | 歌尔科技有限公司 | Headset state detection method and device, TWS headset and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112261536B (en) | 2023-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107219951B (en) | Touch screen control method and device, storage medium and terminal equipment | |
CN112997471B (en) | Audio channel switching method and device, readable storage medium and electronic equipment | |
CN105094501B (en) | Method, device and system for displaying messages in mobile terminal | |
CN106936516B (en) | Display screen display state control method, storage medium and terminal | |
CN111240451B (en) | Heat dissipation method, electronic device and computer-readable storage medium | |
CN107066090B (en) | Method for controlling fingerprint identification module and mobile terminal | |
CN109714476B (en) | Data processing method and device, mobile terminal and storage medium | |
CN112542867B (en) | Mobile terminal power supply control method and device, terminal equipment and storage medium | |
CN106374988B (en) | Method, device and terminal for configuring inter-downlink-band carrier aggregation | |
CN110022600B (en) | Driving current adjusting method and device, storage medium and mobile terminal | |
CN111372003A (en) | Camera switching method and device and terminal | |
CN112367425B (en) | Volume adjusting method and device and terminal | |
CN105635379B (en) | Noise suppression method and device | |
CN111966206B (en) | Power saving control method and device for fingerprint sensor and mobile terminal | |
CN111308303B (en) | Method and device for detecting radio frequency power amplifier of mobile terminal | |
CN105208208B (en) | Network connection switchs deployment method and device | |
CN112261536B (en) | Earphone control method, earphone control device, terminal equipment and storage medium | |
CN109672242B (en) | Terminal charging control method and device and storage medium | |
CN110048824B (en) | Communication module control method, control device, and computer-readable storage medium | |
CN112286849A (en) | Wireless charging base data switching method and system, storage medium and terminal equipment | |
CN111263008A (en) | Incoming call reminding method and device, storage medium and mobile terminal | |
CN111107616A (en) | Light sensor control method and device and terminal | |
CN111614839B (en) | Antenna self-adaptive control method and device | |
CN111654578B (en) | Mobile terminal sensor restoration method | |
CN111966271B (en) | Screen panorama screenshot method and device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230710 Address after: 518000 floors B, 4 and 5, building a, Shanghe Industrial Park, Nanchang Road, Xixiang street, Bao'an District, Shenzhen City, Guangdong Province Applicant after: SHENZHEN SHI KISB ELECTRONIC CO.,LTD. Address before: 6 / F, No. B5, Lane 999, Yangfan Road, Meixu street, Yinzhou District, Ningbo City, Zhejiang Province Applicant before: TCL COMMUNICATION (NINGBO) Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |