CN111131606A - State control method and electronic equipment - Google Patents

State control method and electronic equipment Download PDF

Info

Publication number
CN111131606A
CN111131606A CN201911239767.9A CN201911239767A CN111131606A CN 111131606 A CN111131606 A CN 111131606A CN 201911239767 A CN201911239767 A CN 201911239767A CN 111131606 A CN111131606 A CN 111131606A
Authority
CN
China
Prior art keywords
signal
earphone
electronic device
target
control operation
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
CN201911239767.9A
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 CN201911239767.9A priority Critical patent/CN111131606A/en
Publication of CN111131606A publication Critical patent/CN111131606A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083

Abstract

The invention discloses a state control method and electronic equipment, wherein the method comprises the following steps: receiving an electrical signal from earphone equipment, wherein the electrical signal is generated after a coil in an earphone of the earphone equipment generates relative motion in a magnetic field; and executing the control operation on the electronic equipment under the condition that the electric signal meets a first preset condition. Like this, through receiving the signal of telecommunication that produces after coil in the earphone equipment earphone takes place relative motion in the magnetic field to control electronic equipment according to this signal of telecommunication, need not to control electronic equipment through the button that presses in the earphone equipment, can effectively avoid when the printed circuit board who is used for placing the button damages, can't carry out the problem of controlling electronic equipment through earphone equipment.

Description

State control method and electronic equipment
Technical Field
The invention relates to the field of terminals, in particular to a state control method and electronic equipment.
Background
In general, a user may wear a headset device while using an electronic device, so as to listen to a multimedia file played in the electronic device or to receive a call, etc. using the headset device. Generally, at least one key may be disposed in the earphone device, and the key may be used to pause/play a multimedia file, or to answer/hang up a call, so that a user may conveniently control a playing state and a call state of the multimedia file.
In order to facilitate the realization of the functions of the keys, a printed circuit board for placing the keys can be added in the earphone device, however, in the actual use process of the earphone device, the printed circuit board in the earphone device is easily damaged, and when the printed circuit board is damaged, a user cannot control the playing state, the conversation state and the like of the multimedia file through the keys, so that the use experience of the user is influenced.
Disclosure of Invention
The embodiment of the invention provides a state control method and electronic equipment, and aims to solve the problem that a user cannot control the playing state and the conversation state of a multimedia file through a key when a printed circuit board for placing the key in earphone equipment is damaged.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a state control method is provided, which is applied to an electronic device, and includes:
receiving an electrical signal from earphone equipment, wherein the electrical signal is generated after a coil in an earphone of the earphone equipment generates relative motion in a magnetic field;
and executing the control operation on the electronic equipment under the condition that the electric signal meets a first preset condition.
In a second aspect, an electronic device is provided, comprising:
the receiving module is used for receiving an electric signal from the earphone equipment, wherein the electric signal is generated after a coil in a receiver of the earphone equipment generates relative motion in a magnetic field;
and the processing module executes control operation on the electronic equipment under the condition that the electric signal meets a first preset condition.
In a third aspect, an electronic device is provided, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect.
In the embodiment of the invention, the electronic equipment is controlled according to the electric signal generated after the coil in the receiver of the earphone device moves relatively in the magnetic field, and the electronic equipment is not required to be controlled by pressing the key in the earphone device, so that the problem that the electronic equipment cannot be controlled by the earphone device when the printed circuit board for placing the key is damaged can be effectively avoided.
In addition, since the electronic device does not need to be controlled by pressing keys in the headset device, a printed circuit board for placing the keys can be eliminated in the headset device, thereby simplifying the design complexity of the headset device.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow diagram of a state control method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a manner in which an electronic device is connected to a headset device in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of the electrical signal flow direction for one embodiment of the present invention;
FIG. 4 is a flow diagram of a state control method according to an embodiment of the invention;
FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
Generally, a user can wear a headset device while playing a multimedia file or receiving a call using an electronic device. Generally, a button is disposed in the headset device, and the button is disposed on a printed circuit board in the headset device and is used for controlling a playing state and a call state of a multimedia file.
Taking controlling the call state as an example, in the process of using the above earphone device to make a call, when a user wants to hang up the call, the user can perform a pressing operation on a key in the earphone device, the earphone device sends an electrical signal to the electronic device through the printed circuit board for placing the key based on the pressing operation performed on the key by the user, and after receiving the electrical signal sent by the earphone device, the electronic device can close the current call according to the electrical signal, thereby realizing the control of the call state.
However, in practical applications, the method of adding the printed circuit board not only increases the cost of the earphone device, but also increases the design complexity of the earphone device, and in addition, when a user uses the earphone device, the printed circuit board in the earphone device is easily damaged, and when the printed circuit board is damaged, the user cannot control the playing state, the call state, and the like of the multimedia file through the keys, thereby affecting the user experience.
In order to solve the above technical problem, an embodiment of the present invention provides a state control method and an electronic device, where the method includes: receiving an electrical signal from earphone equipment, wherein the electrical signal is generated after a coil in an earphone of the earphone equipment generates relative motion in a magnetic field; and executing the control operation on the electronic equipment under the condition that the electric signal meets a first preset condition.
Like this, through receiving the signal of telecommunication that produces after coil in the earphone equipment earphone takes place relative motion in the magnetic field to control electronic equipment according to this signal of telecommunication, need not to control electronic equipment through the button that presses in the earphone equipment, can effectively avoid when the printed circuit board who is used for placing the button damages, can't carry out the problem of controlling electronic equipment through earphone equipment.
In addition, because need not to control electronic equipment through the button of pressing in the earphone equipment, consequently, can cancel the printed circuit board who is used for placing the button in earphone equipment to simplify earphone equipment's design complexity, reduced the trompil quantity of earphone, promoted the outward appearance wholeness of earphone.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present 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 technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a state control method according to an embodiment of the present invention. The method may be applied to an electronic device, as described below.
S102: receiving an electrical signal from a headset device, wherein the electrical signal is generated after a coil in an earphone of the headset device moves relatively in a magnetic field.
In S102, the earphone device includes a first earphone and a second earphone, where both the first earphone and the second earphone may have a coil disposed therein, and the coil is disposed in a magnetic field, and when the coil in the first earphone and/or the second earphone moves relatively in the magnetic field, the earphone device generates an electrical signal.
In this embodiment, the coil arranged in the earphone device may adopt a moving-coil or moving-iron design mode, where the moving-coil design mode is that the coil in the earphone device moves and the magnet does not move; the moving-iron type design mode is that a magnet in the earphone device moves, a coil does not move, and according to the electromagnetic induction principle, when the coil or the magnet moves in the earphone device, namely the coil moves relatively in a magnetic field, the earphone device can generate an electric signal.
The relative motion of the coils in the earphone device in the magnetic field can at least comprise the following conditions: when the first earphone and/or the second earphone of the earphone device receives knocking or other external force, the coil in the earphone device is caused to move relatively in a magnetic field; when using the earphone device to listen to a multimedia file in the electronic device or to receive a call, the sound signal in the earphone device may cause a relative movement of a coil in the earphone device in a magnetic field, etc., which are not illustrated herein.
Optionally, in order to distinguish whether the motion of the coil in the earphone device in the magnetic field is vibration generated according to the audio signal or vibration generated when the earpiece of the earphone device receives a tap or other external force, on the basis of the above scheme, the vibration frequency and the audio signal of the coil of the earphone may be obtained in real time, and whether the vibration of the coil is vibration generated when the earpiece of the earphone device receives a tap or other external force is determined according to the audio signal and the vibration frequency of the coil of the earphone, or the vibration frequency of the coil may be compared with a preset vibration frequency, and when the vibration frequency of the coil is matched with the preset vibration frequency, the vibration of the coil is determined as vibration generated when the earpiece of the earphone device receives a tap or other external force. Further, the vibration frequency of the coil can be preprocessed according to the audio signal, the vibration frequency corresponding to the audio signal is eliminated in the vibration frequency of the coil, a target vibration frequency is obtained, and whether the vibration of the coil is the vibration generated by knocking or other external force received by a receiver of the earphone device or not is determined according to the target vibration frequency and the preset vibration frequency.
In this embodiment, when an electrical signal is generated in the headset device, if the headset device is connected to the electronic device, the electrical signal may be sent to the electronic device, so that the electronic device may receive the electrical signal from the headset device.
It should be noted that, in order to facilitate the electronic device to receive the electrical signal from the earphone device, a feedback path may be added in the electronic device, so that, after the coil in the first earphone and/or the second earphone in the earphone device generates relative motion in the magnetic field and generates an electrical signal, the earphone device may input the generated electrical signal into the feedback path, and the feedback path may output the received electrical signal to the electronic device, so that the earphone device may send the electrical signal to the electronic device through the feedback path, thereby enabling the electronic device to receive the electrical signal from the earphone device based on the feedback path.
For easy understanding, referring to fig. 2, fig. 2 is a schematic diagram illustrating a connection manner between an electronic device and an earphone device according to an embodiment of the present invention.
In fig. 2, the electronic device may include a Codec (programmable gain amplifier), a CPU (central processing unit) and a feedback path, wherein the Codec may include a PGA (programmable gain amplifier) and an ADC (analog-to-digital converter) (not shown in fig. 2), an output terminal of the Codec is connected to the CPU, an input terminal of the Codec is connected to the feedback path, and when the headphone device is connected to the electronic device, an input terminal of the feedback path may be connected to the left channel L and the right channel R of the headphone device.
When a user wants to use the earphone device, the earphone device can be connected with the electronic device, when a coil of any sound channel in the earphone device moves relatively, an electric signal can be generated in the earphone device, then the earphone device can input the generated electric signal into an input end of a feedback path in the electronic device, the feedback path can output the electric signal into a Codec in the electronic device through an output end after receiving the electric signal input by the earphone device, and the Codec can preprocess the electric signal after receiving the electric signal so as to perform signal characteristic analysis on the electric signal in a CPU.
To facilitate understanding of the signal flow direction of the electrical signals, reference may be made to fig. 3, where fig. 3 is a schematic diagram illustrating the signal flow direction according to an embodiment of the present invention.
In fig. 3, the left side is a schematic diagram of a coil and a magnet in an earphone device, when the coil in the earphone device moves relatively in a magnetic field, the earphone device may generate an electrical signal, the earphone device inputs the electrical signal into a feedback path (not shown in fig. 3) of an electronic device, the feedback path inputs the electrical signal into a PGA (programmable gain amplifier) in the electronic device, the PGA may perform preprocessing such as amplification and filtering on the electrical signal after receiving the electrical signal, and inputs the preprocessed electrical signal into an ADC (analog-to-digital converter), and the ADC may convert the preprocessed electrical signal (analog signal) into a digital signal for subsequent analysis by a subsequent electronic device.
S104: and executing the control operation on the electronic equipment under the condition that the electric signal meets a first preset condition.
Optionally, when the electronic device executes a control operation on the electronic device when the electrical signal satisfies a first preset condition, the method specifically includes:
obtaining a target signal according to the playing state of the earphone equipment and the electric signal; and in the case that the target signal meets a first preset condition, executing the control operation on the electronic equipment.
The playing state of the earphone device includes a first playing state and a second playing state, the first playing state may be a state in which a voice or multimedia file is not played, the second playing state may be a state in which the voice or multimedia file is being played, or the first playing state may be a state in which the volume of the played voice or multimedia file is less than a preset volume threshold, and the second playing state may be a state in which the volume of the played voice or multimedia file is greater than or equal to the preset volume threshold.
According to the playing state and the electric signal of the earphone device, when a target signal is obtained:
if the current playing state is the first playing state, the electric signal can be regarded as a target signal;
if the current playing state is the second playing state, considering that the first audio signal corresponding to the second playing state may generate a large interference to the electrical signal when the headphone device is in the second playing state, the first audio signal may be used as a noise cancellation signal, and the noise of the electrical signal may be cancelled according to the noise cancellation signal, that is, the electrical signal caused by the sound signal generated by the headphone device in the second playing state is cancelled, and the noise-cancelled electrical signal is used as the target signal.
After obtaining the target signal, the electronic device may determine whether the target signal meets a first preset condition based on the target signal, and specific implementation manners may include at least the following two types:
the first mode is as follows: the electronic device may analyze the characteristic parameter of the target signal, and determine whether a variation of the characteristic parameter of the target signal in a preset time is greater than or equal to a preset threshold, so as to determine whether the earphone device satisfies a first preset condition, where the characteristic parameter of the target signal may include at least one of a frequency and an amplitude.
Specifically, if the variation of the characteristic parameter of the target signal in the preset time is greater than or equal to the preset threshold, it may be stated that the target signal satisfies the first preset condition, otherwise, it may be stated that the target signal does not satisfy the first preset condition.
The second mode is as follows: the electronic equipment can match the target signal with a preset signal in a signal library, and determine whether the target signal meets a first preset condition according to a matching result.
The preset signal in the signal library may be predetermined, and the preset signal may be an electrical signal which is generated by the earphone device in advance and satisfies a first preset condition.
Specifically, a signal library may be set in the electronic device in advance, the electric signal meeting the first preset condition may be stored in the signal library as a preset signal in advance, and when the electronic device determines whether the target signal meets the first preset condition according to the target signal, the target signal may be matched with the preset signal in the signal library.
If the target signal matches the preset signal, it may be indicated that the target signal satisfies the first preset condition.
Optionally, the preset signal in the signal library may also be updated in real time, for example, after the electronic device determines that the target signal a is a signal satisfying the first preset condition by the method described in the first manner, if the signal library does not include the target signal a, the electronic device may store the target signal a in the signal library, so that when subsequently determining whether the target signal satisfies the first preset condition, the electronic device may determine according to the target signal a.
Optionally, in practical applications, when the electronic device determines whether the target signal satisfies the first preset condition, the electronic device may preferentially select the first mode for determination, and when the determination result is that the target signal does not satisfy the first preset condition due to a variation of the characteristic parameter of the target signal being smaller than a preset threshold, that is, the signal characteristic of the target signal is not obvious, to avoid a false determination, the electronic device may further determine based on the second mode to improve the accuracy of the determination result.
For example, the characteristic parameter analysis may be performed on the target signal to determine whether the target signal satisfies the first preset condition, and when it is determined that the target signal does not satisfy the first preset condition, the target signal may be matched with the electrical signals in the signal library based on the second method described above to determine whether the target signal satisfies the first preset condition.
In the embodiment of the invention, the control operation of the electronic equipment can be executed under the condition that the target signal is determined to meet the first preset condition.
Optionally, before performing the control operation on the electronic device, a target earpiece in the headset device may be determined, where the target earpiece is an earpiece generating an electrical signal, and may be the first earpiece, the second earpiece, or both the first earpiece and the second earpiece.
After the target earpiece is determined, when the control operation of the electronic device is performed under the condition that the target signal satisfies the first preset condition, the first operation from the user may be determined according to the target earpiece and the target signal.
The first operation may be an operation of a user on the target handset, and after the user performs the first operation on the target handset, a coil in the target handset may generate a relative motion in a magnetic field, thereby generating an electrical signal. Wherein the first operation may be a tapping operation of the headphone apparatus by the user, and the like, and the tapping operation may be a single tapping or a plurality of taps.
After determining the first operation from the user, a control operation for the electronic device may be performed according to the first operation of the user.
Alternatively, the kind of the first operation may be plural, and different control operations for the electronic device may be performed according to different first operations. In this embodiment, the corresponding relationship between different first operations and different control operations may be customized in advance.
Specifically, the user can perform user-defined setting on the control operation in advance aiming at different first operations, and one first operation corresponds to one control operation, so that when the electronic equipment executes the control operation, the electronic equipment can execute the corresponding control operation according to the first operation received by the earphone equipment, and different use requirements of the user can be met.
For example, the user may previously correspond a single tap operation to a pause play operation and correspond two tap operations in succession to a play operation. Therefore, when the electronic equipment is in the playing state of the multimedia file, the user can perform single-tap operation on the earphone equipment, and the electronic equipment can perform pause playing operation on the multimedia file being played based on the single-tap operation of the user, namely, the playing state of the multimedia file is changed into a pause playing state; when the user performs two continuous tapping operations on the earphone device, the electronic device may perform a playing operation on the multimedia file that is paused based on the two continuous tapping operations of the user, that is, the paused playing state of the multimedia file is changed into the playing state.
After determining that the headset device receives the first operation from the user, a control operation on the electronic device may be performed according to the first operation.
Optionally, when it is determined that the target signal satisfies the first preset condition and the control operation on the electronic device is executed, if the electronic device is in the first working state, the control operation on the electronic device is executed, and the first working state where the electronic device is located may be switched to the second working state.
The first operating state may be a state in which a multimedia file is being played, a state in which the multimedia file is paused to be played, a call state, and a state in which a call request is received but the multimedia file is not answered, and the like, and the second operating state may be a different state corresponding to the first operating state.
For example, when the first working state is a state in which a multimedia file is being played, the electronic device may perform a pause operation on the multimedia file, and change the playing state of the multimedia file into a state in which the multimedia file is paused; when the first working state is a state of pausing to play the multimedia file, the electronic equipment can execute playing operation on the multimedia file, and change the state of pausing to play the multimedia file into a state of playing the multimedia file; when the first working state is a call state, the electronic equipment can carry out hang-up operation on the call and change the call state into a call ending state; when the first working state is a state in which the call request is received but not answered, the electronic device can execute answering operation on the call request, and change the state in which the call request is received but not answered into a call state.
Like this, through receiving the signal of telecommunication that produces after coil in the earphone equipment earphone takes place relative motion in the magnetic field to control electronic equipment according to this signal of telecommunication, need not to control electronic equipment through the button that presses in the earphone equipment, can effectively avoid when the printed circuit board who is used for placing the button damages, can't carry out the problem of controlling electronic equipment through earphone equipment.
It should be noted that, because the electronic device may be controlled without pressing a key in the headset device, the headset device in this embodiment may cancel the setting of the key and further cancel the printed circuit board for placing the key, so that the design complexity of the headset device may be simplified and the manufacturing cost of the headset device may be saved.
For facilitating understanding of the technical solution provided by the embodiment of the present invention, refer to fig. 4. Fig. 4 is a schematic flow chart of a state control method according to an embodiment of the present invention, which may specifically include the following steps:
s401: an electrical signal is received from the headset device.
The electronic device may receive an electrical signal from the earphone device in real time, where the electrical signal is generated after a coil in the first earphone and/or the second earphone of the earphone device moves relatively in a magnetic field. The electronic device may be provided with a feedback path, and may receive the electrical signal generated in the earphone device in real time through the feedback path.
S402: and obtaining a target signal according to the playing state of the earphone equipment and the electric signal.
The first playing state may be a state in which the voice or multimedia file is not played, and the second playing state may be a state in which the voice or multimedia file is being played, or the first playing state may be a state in which the volume of the played voice or multimedia file is less than a preset volume threshold, and the second playing state may be a state in which the volume of the played voice or multimedia file is greater than or equal to the preset volume threshold.
When the playing state of the earphone device is the first playing state, the electric signal can be regarded as a target signal;
and under the condition that the playing state of the earphone equipment is the second playing state, taking the first audio signal corresponding to the second playing state as a noise elimination signal, eliminating noise of the electric signal according to the noise elimination signal, and taking the electric signal after noise elimination as a target signal.
S403: and judging whether the target signal meets a first preset condition or not.
The electronic equipment can analyze and judge whether the target signal meets the first preset condition according to the characteristic parameters of the target signal, can also match the target signal with the preset signal in the signal library, and judges whether the target signal meets the first preset condition according to the matching result.
The specific implementation manner may refer to relevant contents recorded in S104 in the embodiment shown in fig. 1, and a description thereof is not repeated here.
If it is determined that the target signal satisfies the first preset condition, S404 may be performed; if it is determined that the target signal does not satisfy the first preset condition, S401 may be continuously performed.
S404: and determining a target earphone.
The target earpiece may include at least one of the first earpiece and the second earpiece, and the target earpiece is an earpiece that generates an electrical signal.
S405: a first operation from the user is determined based on the target earpiece and the target signal.
In the case that the target signal satisfies a first preset condition, it may be determined that the earphone device receives a first operation from the user according to the target earpiece and the target signal.
The first operation may be an operation of a user on the target handset, and after the user performs the first operation on the target handset, a coil in the target handset may generate a relative motion in a magnetic field, so as to generate an electrical signal.
S406: according to a first operation of a user, a control operation on the electronic equipment is executed.
Optionally, when the electronic device is in the first working state, the control operation on the electronic device is executed according to the first operation of the user, and the electronic device may be switched to the second working state.
The first operating state may be a state in which a multimedia file is being played, a state in which the multimedia file is paused to be played, a call state, and a state in which a call request is received but the multimedia file is not answered, and the like, and the second operating state may be a different state corresponding to the first operating state.
In the embodiment of the invention, the electronic equipment is controlled according to the electric signal generated after the coil in the receiver of the earphone device moves relatively in the magnetic field, and the electronic equipment is not required to be controlled by pressing the key in the earphone device, so that the problem that the electronic equipment cannot be controlled by the earphone device when the printed circuit board for placing the key is damaged can be effectively avoided.
In addition, since the electronic device does not need to be controlled by pressing keys in the headset device, a printed circuit board for placing the keys can be eliminated in the headset device, thereby simplifying the design complexity of the headset device.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device includes: a receiving module 51 and a processing module 52, wherein:
a receiving module 51, configured to receive an electrical signal from an earphone device, where the electrical signal is generated after a coil in an earphone of the earphone device moves relatively in a magnetic field;
and the processing module 52 is used for executing the control operation on the electronic equipment under the condition that the electric signal meets a first preset condition.
Optionally, the processing module 52, according to the electrical signal, performs a control operation on the electronic device if the electrical signal satisfies a first preset condition, including:
obtaining a target signal according to the playing state of the earphone equipment and the electric signal;
and executing the control operation on the electronic equipment under the condition that the target signal meets the first preset condition.
Optionally, the playing states of the earphone device include a first playing state and a second playing state;
the processing module obtains a target signal according to the playing state of the earphone device and the electric signal, and includes:
when the playing state is the first playing state, the target signal is the electric signal;
and under the condition that the playing state is the second playing state, taking the first audio signal corresponding to the second playing state as a noise elimination signal, and eliminating noise of the electric signal according to the noise elimination signal to obtain the target signal.
Optionally, the processing module 52, in a case that the target signal satisfies the first preset condition, performs a control operation on the electronic device, including:
if the variation of the characteristic parameter of the target signal in a preset time is larger than or equal to a preset threshold, executing control operation on the electronic equipment;
wherein the characteristic parameter includes at least one of frequency and amplitude.
Optionally, the processing module 52, in a case that the target signal satisfies the first preset condition, performs a control operation on the electronic device, including:
if the target signal is matched with a preset signal in a signal library, executing control operation on the electronic equipment;
the preset signal is an electrical signal meeting the first preset condition.
Optionally, the earphone device comprises a first earphone and a second earphone;
the processing module 52, before the step of performing the control operation on the electronic device if the target signal satisfies the first preset condition, is further configured to:
determining a target earpiece, the target earpiece including at least one of the first earpiece and the second earpiece, and the target earpiece being an earpiece that generates the electrical signal;
in the case that the target signal satisfies a first preset condition, performing a control operation on the electronic device, including:
under the condition that the target signal meets the first preset condition, determining a first operation from a user according to the target receiver and the target signal;
and executing control operation on the electronic equipment according to the first operation.
Optionally, the processing module 52, in a case that the electrical signal satisfies a first preset condition, performs a control operation on the electronic device, including:
and under the condition that the electric signal meets a first preset condition, if the electronic equipment is in a first working state, executing control operation on the electronic equipment, and switching the electronic equipment to a second working state.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 and fig. 4, and is not described herein again to avoid repetition. In the embodiment of the invention, the electronic equipment is controlled according to the electric signal generated after the coil in the receiver of the earphone device moves relatively in the magnetic field, and the electronic equipment is not required to be controlled by pressing the key in the earphone device, so that the problem that the electronic equipment cannot be controlled by the earphone device when the printed circuit board for placing the key is damaged can be effectively avoided.
In addition, since the electronic device does not need to be controlled by pressing keys in the headset device, a printed circuit board for placing the keys can be eliminated in the headset device, thereby simplifying the design complexity of the headset device.
Figure 6 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 receives an electrical signal from the earphone device, where the electrical signal is an electrical signal generated after a coil in an earphone of the earphone device moves relatively in a magnetic field; and executing the control operation on the electronic equipment under the condition that the electric signal meets a first preset condition.
Like this, through receiving the signal of telecommunication that produces after coil in the earphone equipment earphone takes place relative motion in the magnetic field to control electronic equipment according to this signal of telecommunication, need not to control electronic equipment through the button that presses in the earphone equipment, can effectively avoid when the printed circuit board who is used for placing the button damages, can't carry out the problem of controlling electronic equipment through earphone equipment.
In addition, since the electronic device does not need to be controlled by pressing keys in the headset device, a printed circuit board for placing the keys can be eliminated in the headset device, thereby simplifying the design complexity of the headset device.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 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 cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the foregoing state control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing state control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising" is used to specify the presence of stated features, integers, steps, operations, elements, components, operations.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (16)

1. A state control method applied to an electronic device includes:
receiving an electrical signal from earphone equipment, wherein the electrical signal is generated after a coil in an earphone of the earphone equipment generates relative motion in a magnetic field;
and executing the control operation on the electronic equipment under the condition that the electric signal meets a first preset condition.
2. The method of claim 1, wherein performing a control operation on the electronic device if the electrical signal satisfies a first preset condition comprises:
obtaining a target signal according to the playing state of the earphone equipment and the electric signal;
and executing the control operation on the electronic equipment under the condition that the target signal meets the first preset condition.
3. The method of claim 2,
the playing states of the earphone device comprise a first playing state and a second playing state;
wherein, obtaining a target signal according to the playing state of the earphone device and the electric signal comprises:
when the playing state is the first playing state, the target signal is the electric signal;
and under the condition that the playing state is the second playing state, taking the first audio signal corresponding to the second playing state as a noise elimination signal, and eliminating noise of the electric signal according to the noise elimination signal to obtain the target signal.
4. The method of claim 3, wherein performing a control operation on the electronic device if the target signal satisfies the first preset condition comprises:
if the variation of the characteristic parameter of the target signal in a preset time is larger than or equal to a preset threshold, executing control operation on the electronic equipment;
wherein the characteristic parameter includes at least one of frequency and amplitude.
5. The method of claim 3, wherein performing a control operation on the electronic device if the target signal satisfies the first preset condition comprises:
if the target signal is matched with a preset signal in a signal library, executing control operation on the electronic equipment;
the preset signal is an electrical signal meeting the first preset condition.
6. The method of claim 2, wherein the headset device comprises a first earpiece and a second earpiece;
before the step of performing the control operation on the electronic device in the case that the target signal satisfies the first preset condition, the method further includes:
determining a target earpiece, the target earpiece including at least one of the first earpiece and the second earpiece, and the target earpiece being an earpiece that generates the electrical signal;
the executing the control operation on the electronic equipment under the condition that the target signal meets a first preset condition comprises the following steps:
under the condition that the target signal meets the first preset condition, determining a first operation from a user according to the target receiver and the target signal;
and executing control operation on the electronic equipment according to the first operation.
7. The method of claim 2, wherein performing a control operation on the electronic device if the electrical signal satisfies a first preset condition comprises:
and under the condition that the electric signal meets a first preset condition, if the electronic equipment is in a first working state, executing control operation on the electronic equipment, and switching the electronic equipment to a second working state.
8. An electronic device, comprising:
the receiving module is used for receiving an electric signal from the earphone equipment, wherein the electric signal is generated after a coil in a receiver of the earphone equipment generates relative motion in a magnetic field;
and the processing module executes control operation on the electronic equipment under the condition that the electric signal meets a first preset condition.
9. The electronic device of claim 8, wherein the processing module, in the event that the electrical signal satisfies a first preset condition, performs a control operation on the electronic device, comprising:
obtaining a target signal according to the playing state of the earphone equipment and the electric signal;
and executing the control operation on the electronic equipment under the condition that the target signal meets the first preset condition.
10. The electronic device of claim 9,
the playing states of the earphone device comprise a first playing state and a second playing state;
the processing module obtains a target signal according to the playing state of the earphone device and the electric signal, and includes:
when the playing state is the first playing state, the target signal is the electric signal;
and under the condition that the playing state is the second playing state, taking the first audio signal corresponding to the second playing state as a noise elimination signal, and eliminating noise of the electric signal according to the noise elimination signal to obtain the target signal.
11. The electronic device of claim 10, wherein the processing module, in the event that the target signal satisfies the first preset condition, performs a control operation on the electronic device, comprising:
if the variation of the characteristic parameter of the target signal in a preset time is larger than or equal to a preset threshold, executing control operation on the electronic equipment;
wherein the characteristic parameter includes at least one of frequency and amplitude.
12. The electronic device of claim 10, wherein the processing module, in the event that the target signal satisfies the first preset condition, performs a control operation on the electronic device, comprising:
if the target signal is matched with a preset signal in a signal library, executing control operation on the electronic equipment;
the preset signal is an electrical signal meeting the first preset condition.
13. The electronic device of claim 9,
the earphone device comprises a first earphone and a second earphone;
the processing module, before the step of performing the control operation on the electronic device when the target signal satisfies a first preset condition, is further configured to:
determining a target earpiece, the target earpiece including at least one of the first earpiece and the second earpiece, and the target earpiece being an earpiece that generates the electrical signal;
in the case that the target signal satisfies a first preset condition, performing a control operation on the electronic device, including:
under the condition that the target signal meets the first preset condition, determining a first operation from a user according to the target receiver and the target signal;
and executing control operation on the electronic equipment according to the first operation.
14. The electronic device of claim 9, wherein the processing module, in the event that the electrical signal satisfies a first preset condition, performs a control operation on the electronic device, comprising:
and under the condition that the electric signal meets a first preset condition, if the electronic equipment is in a first working state, executing control operation on the electronic equipment, and switching the electronic equipment to a second working state.
15. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201911239767.9A 2019-12-05 2019-12-05 State control method and electronic equipment Pending CN111131606A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911239767.9A CN111131606A (en) 2019-12-05 2019-12-05 State control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911239767.9A CN111131606A (en) 2019-12-05 2019-12-05 State control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111131606A true CN111131606A (en) 2020-05-08

Family

ID=70497563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911239767.9A Pending CN111131606A (en) 2019-12-05 2019-12-05 State control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111131606A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329302A (en) * 2021-06-30 2021-08-31 歌尔科技有限公司 Earphone control method, electronic equipment and earphone

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100054518A1 (en) * 2008-09-04 2010-03-04 Alexander Goldin Head mounted voice communication device with motion control
CN102986246A (en) * 2011-07-11 2013-03-20 株式会社Ntt都科摩 Input device
CN103425489A (en) * 2012-05-03 2013-12-04 Dsp集团有限公司 A system and apparatus for controlling a device with a bone conduction transducer
US20150023510A1 (en) * 2013-07-22 2015-01-22 Funai Electric Co., Ltd. Sound Processing System and Sound Processing Device
CN105577863A (en) * 2016-01-20 2016-05-11 广东欧珀移动通信有限公司 Sound recording method and apparatus
CN108347670A (en) * 2017-01-23 2018-07-31 芯籁半导体股份有限公司 Signal processing method and signal processing system
CN108519871A (en) * 2018-03-30 2018-09-11 广东欧珀移动通信有限公司 Acoustic signal processing method and Related product
CN110175014A (en) * 2019-05-28 2019-08-27 歌尔科技有限公司 A kind of wireless headset method for controlling volume, system and wireless headset and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100054518A1 (en) * 2008-09-04 2010-03-04 Alexander Goldin Head mounted voice communication device with motion control
CN102986246A (en) * 2011-07-11 2013-03-20 株式会社Ntt都科摩 Input device
CN103425489A (en) * 2012-05-03 2013-12-04 Dsp集团有限公司 A system and apparatus for controlling a device with a bone conduction transducer
US20150023510A1 (en) * 2013-07-22 2015-01-22 Funai Electric Co., Ltd. Sound Processing System and Sound Processing Device
CN105577863A (en) * 2016-01-20 2016-05-11 广东欧珀移动通信有限公司 Sound recording method and apparatus
CN108347670A (en) * 2017-01-23 2018-07-31 芯籁半导体股份有限公司 Signal processing method and signal processing system
CN108519871A (en) * 2018-03-30 2018-09-11 广东欧珀移动通信有限公司 Acoustic signal processing method and Related product
CN110175014A (en) * 2019-05-28 2019-08-27 歌尔科技有限公司 A kind of wireless headset method for controlling volume, system and wireless headset and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329302A (en) * 2021-06-30 2021-08-31 歌尔科技有限公司 Earphone control method, electronic equipment and earphone
CN113329302B (en) * 2021-06-30 2023-01-24 歌尔科技有限公司 Earphone control method, electronic equipment and earphone

Similar Documents

Publication Publication Date Title
CN110730260B (en) Control method of electronic equipment and electronic equipment
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN108551534B (en) Method and device for multi-terminal voice call
CN109905812B (en) Input power control method and device and terminal equipment
CN110012143B (en) Telephone receiver control method and terminal
CN110266323B (en) Signal control circuit, terminal equipment and signal control method
CN110830861B (en) Telephone receiver control method and device and electronic equipment
CN108900669B (en) Touch screen scanning method and mobile terminal
CN108848267B (en) Audio playing method and mobile terminal
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN111225315B (en) Audio playing device, audio playing method and electronic equipment
CN107785027B (en) Audio processing method and electronic equipment
CN111182118B (en) Volume adjusting method and electronic equipment
CN109788114B (en) Call processing method and terminal
CN111459447B (en) Volume adjustment display method and electronic equipment
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN111556196B (en) Call method and device and electronic equipment
CN111526248B (en) Audio output mode switching method and electronic equipment
CN110913070B (en) Call method and terminal equipment
CN110545351B (en) Incoming call processing method, electronic equipment and computer readable storage medium
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN109639905B (en) Incoming call reminding method, mobile terminal and computer readable storage medium
CN108900942B (en) Play control method and electronic equipment
CN108924319B (en) Proximity detection method and mobile terminal
CN108600566B (en) Interference processing method and mobile 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: 20200508