CN104330981B - Key control method, electronic device and line-control device - Google Patents
Key control method, electronic device and line-control device Download PDFInfo
- Publication number
- CN104330981B CN104330981B CN201310308625.XA CN201310308625A CN104330981B CN 104330981 B CN104330981 B CN 104330981B CN 201310308625 A CN201310308625 A CN 201310308625A CN 104330981 B CN104330981 B CN 104330981B
- Authority
- CN
- China
- Prior art keywords
- signal
- control instruction
- control
- frequency
- button
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Circuits Of Receivers In General (AREA)
- Telephone Function (AREA)
Abstract
An embodiment of the invention discloses a key control method, an electronic device and a line-control device. The electronic device comprises a processing module. The method comprises the following steps: receiving a control signal from the line-control device, wherein the control signal at least comprises at least one frequency signal generated when the line-control device responds to the pressing operation of at least one key of the line-control device; analyzing the control signal by utilizing the processing module and obtaining the at least one frequency signal; and generating and executing a first control instruction based on the at least one frequency signal.
Description
Technical field
The present invention relates to control field, more particularly to a kind of key control method, electronic equipment and line traffic control equipment.
Background technology
With the development of smart mobile phone software and hardware technology, mobile phone is increasing, hand held always in mobile phone in some cases
In have the sensation of inconvenience, or user is reluctant that a straight grip machine is hand held, such as when long-time is made a phone call, use
Family wants to mobile phone to be placed in bag, and without hand held always, it is then desired to use the earphone with line traffic control function.
Therefore, the method that prior art is used is as follows:
The wire being connected with button concatenates the resistance of a predetermined resistance, when key press, wheat with Mike's line centre
Gram line and ground wire can short circuit, and then mobile phone hardware detects the partial pressure of the resistance of the predetermined resistance, by analog-to-digital conversion module
Sampling obtains partial pressure value, and by the series resistor of the different different resistances of button correspondence, the series resistor of different resistances is obtained not
With partial pressure, and then judge the corresponding button of different partial pressure values, finally perform control instruction corresponding with different key.
But present inventor is during inventive technique scheme in realizing the embodiment of the present application, above-mentioned technology is found extremely
There is following technical problem less:
Due in the prior art, using the different partial pressure of the resistance correspondence of different predetermined resistances, when button needs extension
When, it is necessary to concatenate the resistance of more different resistances, the difference between now different partial pressure values is less and less, analog-to-digital conversion mould
Block is unable to efficiently sampling and obtains partial pressure value, and then can not effectively judge button, so, exist can not effective expand skill
Art problem.
The content of the invention
The embodiment of the present application is used to by providing a kind of key control method, a kind of electronic equipment and a kind of line traffic control equipment
When solution is extended by concatenating the resistance of different resistances to button in the prior art, produced due to the resistance of different resistances
Difference between different partial pressure values is smaller, and analog-to-digital conversion module is unable to the partial pressure value of efficiently sampling acquisition, and then can not be effectively
Judge keyboard, there is the technical problem that can not effectively extend case.
In order to solve the above technical problems, on the one hand the embodiment of the present application provides a kind of key control method, apply in an electricity
In sub- equipment, the electronic equipment includes processing module, and methods described includes:
The control signal from a line traffic control equipment is received, wherein, the line traffic control equipment is at least included in the control signal
At least one frequency signal that response is generated to the pressing operation of at least one button in the line traffic control equipment;
Using the processing module, the control signal is parsed, obtain at least one frequency signal;
Based at least one frequency signal, the first control instruction is generated and performed.
Further, also include that the line traffic control equipment responds at least one in the line traffic control equipment in the control signal
The pressing operation of button and a first DC component signal generating.
Further, it is described to utilize the processing module, parsing when the processing module is specially frequency analysis module
The control signal, obtains at least one frequency signal, specially:
One first DC component signal is extracted by the frequency analysis module, obtains described first straight
Flow component signal, and not at least one frequency signal including one first DC component signal.
Further, when the line traffic control equipment is specially the equipment with sound collection unit, in the control signal
Also include being gathered by the sound collection unit voice signal of acquisition, and at least one button in the line traffic control equipment
Pressing operation and a first DC component signal generating.
Further, when the processing module includes speech Separation submodule and frequency analysis submodule, the utilization
The processing module, parses the control signal, obtains at least one frequency signal, specifically includes:
Separating treatment is carried out to the control signal by the speech Separation submodule, by the institute in the control signal
Voice signal separation is stated, at least one frequency signal and one first DC component signal is obtained;
One first DC component signal is extracted by the frequency analysis submodule, is obtained one
First DC component signal, and not at least one frequency signal including one first DC component signal.
Further, when one first DC component signal is to that should have control instruction, it is described based on it is described at least
One frequency signal, generates and performs the first control instruction, specifically includes:
Based on the first corresponding relation between DC component signal and control instruction, obtain and one first DC component
Corresponding second control instruction of signal;
Based on the second corresponding relation between frequency signal number and control instruction, obtain and at least one frequency signal
Corresponding 3rd control instruction;
When it is identical control instruction that second control instruction is with the 3rd control instruction, second control is determined
Instruction or the 3rd control instruction are first control instruction;
Perform first control instruction.
Further, it is described based on described when one first DC component signal is not to that should have control instruction
At least one frequency signal, generates and performs the first control instruction, specifically includes:
Based on the second corresponding relation between frequency signal number and control instruction, obtain and at least one frequency signal
Corresponding first control instruction;
Perform first control instruction.
On the other hand the embodiment of the present application provides a kind of electronic equipment, and the electronic equipment includes:
Receiver module, for receiving the control signal from a line traffic control equipment, wherein, at least include in the control signal
At least one frequency that the line traffic control equipment response is generated to the pressing operation of at least one button in the line traffic control equipment
Signal;
Processing module, for parsing the control signal, obtains at least one frequency signal;
Directive generation module, for based at least one frequency signal, generating the first control instruction;
Instruction performing module, for performing first control instruction.
Further, also include that the line traffic control equipment responds at least one in the line traffic control equipment in the control signal
The pressing operation of button and a first DC component signal generating.
Further, the processing module is specially:
Frequency analysis module, for being extracted to one first DC component signal, obtains first direct current
Component signal, and not at least one frequency signal including one first DC component signal.
Further, when the line traffic control equipment is specially the equipment with sound collection unit, in the control signal
Also include being gathered by the sound collection unit voice signal of acquisition, and at least one button in the line traffic control equipment
Pressing operation and a first DC component signal generating.
Further, the processing module is specifically included:
Speech Separation submodule, for carrying out separating treatment to the control signal, described in the control signal
Voice signal is separated, and obtains at least one frequency signal and one first DC component signal;
Frequency analysis submodule, for being extracted to one first DC component signal, obtains one the
One DC component signal, and not at least one frequency signal including one first DC component signal.
Further, the electronic equipment also includes:
Memory module, for storing the first corresponding relation between DC component signal and control instruction, and frequency signal
The second corresponding relation between number and control instruction.
Further, when one first DC component signal is to that should have control instruction, the directive generation module
Specifically include:
First instruction obtains submodule, for based on the first corresponding relation between DC component signal and control instruction, obtaining
Obtain the second control instruction corresponding with one first DC component signal;
Second instruction obtains submodule, for based on the second corresponding relation between frequency signal number and control instruction, obtaining
Obtain the 3rd control instruction corresponding with least one frequency signal;
Instruction determination sub-module, for being identical control instruction in second control instruction and the 3rd control instruction
When, determine that second control instruction or the 3rd control instruction are first control instruction.
Further, when one first DC component signal is not to that should have control instruction, the instruction generation
Module specifically for:
Based on the second corresponding relation between frequency signal number and control instruction, obtain and at least one frequency signal
Corresponding first control instruction.
On the other hand the embodiment of the present application also provides a kind of line traffic control equipment, including:
Casing;
One group of button, is set on the housing, and one group of button includes at least one button;
Sound collection unit, is set on the housing, and the voice signal is obtained for gathering;
At least one earplug, for playing the second sound signal from the electronic equipment;
Decoder, is connected with each button at least one button of one group of button, described for identifying
Whether one or more buttons at least one button have pressing operation;
Frequency of signal generator, in the casing, is connected with the decoder, at least one button
In one or more buttons when having pressing operation, produce a first DC component signal and at least one frequency signal;
Input/output interface, respectively with least one earplug, the frequency of signal generator, the sound collection list
Unit's connection, for the second sound signal from the electronic equipment to be input at least one earplug;For inciting somebody to action
One first DC component signal, at least one frequency signal and the voice signal are exported to the electronic equipment.
Further, the frequency of signal generator includes:
There is circuit in direct current signal, when being pressed for one or more buttons at least one button, produce
The one first DC component signal of life;
Voltage-Controlled oscillation circuit, when being pressed for one or more buttons at least one button, produces institute
State at least one frequency signal.
The application is at least had the advantages that or advantage by one or more technical schemes provided above:
Due to by receiving the control signal from a line traffic control equipment, wherein, at least include in the control signal described
At least one frequency signal that line traffic control equipment response is generated to the pressing operation of at least one button in the line traffic control equipment,
Using processing module, the control signal is parsed, obtain at least one frequency signal, based at least one frequency letter
Number, the method for generating and performing the first control instruction, due to the operation of each key press can generate it is corresponding with button described
At least one frequency signal, at least one frequency signal is produced by the frequency of signal generator of the line traffic control equipment, described
Be stored with the memory module of electronic equipment the line traffic control equipment key press when frequency signal number and control instruction that produce
Between corresponding relation, and then can according to key press when at least one frequency signal that produces and the corresponding relation produce and hold
Corresponding with the button control instruction of row, without in the prior art, when the button in line traffic control equipment is set it is many when, understand because
Can not be identified for the difference between partial pressure value is small, and then corresponding control instruction can not be generated, thus it is possible to effectively solution
Prior art of having determined exist can not effective expand technical problem, realize the technique effect of effective expand.
For example:The line traffic control equipment is by taking earphone as an example, wherein the earphone has six press keys, respectively, broadcasting button,
Pause button, next button, upper one first button, the 5th button, the 6th button, correspondence play operation when pressing respectively, pause
Operation, next operation, upper one first operation, forwarding operation, fast reverse operation, broadcasting button is corresponding when being pressed with pause button simultaneously
Volume amplifieroperation, broadcasting button corresponding volume reduction operation when being pressed with next button simultaneously.In the prior art due to setting
Six press keys are put, the differential in partial pressures of different series resistors will diminish, so cannot effectively recognize, and in the present invention, by
In control instruction is generated according to frequency signal, so when this six press keys is pressed respectively, six corresponding controls will be generated
Instruction, corresponding control instruction can be also generated when two buttons are pressed simultaneously, and then effectively extend to four buttons
Six press keys, at the same extend key combination press when corresponding control instruction so, thus it is possible to efficiently solve existing skill
Art exist can not effective expand technical problem, realize the technique effect of effective expand.
Due to by receiving the control signal from a line traffic control equipment, wherein, the control signal includes the line traffic control
The first DC component signal that equipment responds the pressing operation of at least one button in the line traffic control equipment and generates, point
The control signal is analysed, one first DC component signal is obtained, and without one first DC component signal
At least one frequency signal, based on first corresponding relation, second corresponding relation generates and performs corresponding
The method of one control instruction, such as:The line traffic control equipment is by taking earphone as an example, wherein the earphone has six press keys, respectively, broadcast
Put button, pause button, next button, upper one first button, the 5th button, the 6th button, correspondence broadcasting behaviour when pressing respectively
Make, pausing operation, next operation, upper one first operation, forwarding operation, fast reverse operation, for four traditional buttons, broadcasting is pressed
Key, pause button, next button, upper one first button, the present invention both can generate control with traditional DC component signal
Instruction, it is also possible to generate control instruction with frequency signal, and, when one way in which fails, can with another come
Realize, so, realize the technique effect compatible with prior art.
Brief description of the drawings
Fig. 1 is the key control method flow chart in the embodiment of the present application;
Fig. 2 is the electronic devices structure figure in the embodiment of the present application;
Fig. 3 is the structure chart of electronic equipment in the first scenario in the embodiment of the present application;
Fig. 4 is the structure chart of electronic equipment in the latter case in the embodiment of the present application;
Fig. 5 is the line traffic control equipment structure chart in the embodiment of the present application;
Fig. 6 is the structure chart of the frequency of signal generator in the embodiment of the present application.
Specific embodiment
The embodiment of the present application is used to by providing a kind of key control method, a kind of electronic equipment and a kind of line traffic control equipment
When solution is extended by concatenating the resistance of different resistances to button in the prior art, produced due to the resistance of different resistances
Difference between different partial pressure values is smaller, and analog-to-digital conversion module is unable to the partial pressure value of efficiently sampling acquisition, and then can not be effectively
Judge keyboard, there is the technical problem that can not effectively extend case.
Technical scheme in the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
A kind of key control method, applies in an electronic equipment, and the electronic equipment includes processing module, methods described
Including:
The control signal from a line traffic control equipment is received, wherein, the line traffic control equipment is at least included in the control signal
At least one frequency signal that response is generated to the pressing operation of at least one button in the line traffic control equipment;
Using the processing module, the control signal is parsed, obtain at least one frequency signal;
Based at least one frequency signal, the first control instruction is generated and performed.
Due to by receiving the control signal from a line traffic control equipment, wherein, at least include in the control signal described
At least one frequency signal that line traffic control equipment response is generated to the pressing operation of at least one button in the line traffic control equipment,
Using processing module, the control signal is parsed, obtain at least one frequency signal, based at least one frequency letter
Number, the method for generating and performing the first control instruction, due to the operation of each key press can generate it is corresponding with button described
At least one frequency signal, at least one frequency signal is produced by the frequency of signal generator of the line traffic control equipment, described
Be stored with the memory module of electronic equipment the line traffic control equipment key press when frequency signal number and control instruction that produce
Between corresponding relation, and then can according to key press when at least one frequency signal that produces and the corresponding relation produce and hold
Corresponding with the button control instruction of row, without in the prior art, when the button in line traffic control equipment is set it is many when, understand because
Can not be identified for the difference between partial pressure value is small, and then corresponding control instruction can not be generated, thus it is possible to effectively solution
Prior art of having determined exist can not effective expand technical problem, realize the technique effect of effective expand.
In order to be better understood from above-mentioned technical proposal, below in conjunction with Figure of description and specific embodiment to upper
Technical scheme is stated to be described in detail.
Embodiment one:
In embodiment one, there is provided a kind of key control method, Fig. 1 is refer to, applied in an electronic equipment, please join
Fig. 2 is examined, the electronic equipment includes:
Receiver module 201, for receiving the control signal from a line traffic control equipment.
Processing module 202, for parsing the control signal, obtains at least one frequency signal.Wherein, in one kind
In the case of, the processing module 202 can be frequency analysis module, and the frequency analysis module is specifically for one the
One DC component signal is extracted, and obtains the first DC component signal, and does not include one first DC component
At least one frequency signal of signal, in another case, the processing module 202 includes speech Separation submodule
2021 and frequency analysis submodule 2022, speech Separation submodule 2021, for carrying out separating treatment to the control signal, will
The voice signal in the control signal is separated, and obtains at least one frequency signal and one first direct current point
Amount signal, frequency analysis submodule 2022, for being extracted to one first DC component signal, is obtained one
First DC component signal, and not at least one frequency signal including one first DC component signal.
Directive generation module 203, is connected with the processing module 202, for generating the line traffic control equipment key press pair
The first control instruction answered, including:
First instruction obtains submodule 2031, for generating the second control instruction,
Second instruction obtains submodule 2032, for generating the 3rd control instruction,
Instruction determination sub-module 2033, for when the second control instruction is identical with the 3rd control instruction, determining the second control
System instruction or the 3rd control instruction are the first control instruction;
Instruction performing module 204, is connected, with the directive generation module 203 for performing first control instruction;
Memory module 205, is connected with the directive generation module 203, for storing DC component signal and control instruction
Between the first corresponding relation, and the second corresponding relation between frequency signal number and control instruction.
In the embodiment of the present application, the line traffic control equipment is by taking earphone as an example, wherein the earphone has six press keys, respectively
For broadcasting button, pause button, next button, upper one first button, the 5th button, the 6th button.
With reference to Fig. 1, the method in the embodiment of the present application is described in detail, the method includes:
S101:The control signal from a line traffic control equipment is received, wherein, the line traffic control is at least included in the control signal
At least one frequency signal that equipment response is generated to the pressing operation of at least one button in the line traffic control equipment;
S102:Using the processing module, the control signal is parsed, obtain at least one frequency signal;
S103:Based at least one frequency signal, the first control instruction is generated and performed.
During implementing, in the first case, the control signal is included in the line traffic control equipment extremely
The first DC component signal and at least one frequency signal for lacking a pressing operation for button and generating, correspondence
Ground, the processing module 202 in the electronic equipment is specially frequency analysis module, in second situation, when the line traffic control sets
Also include being gathered by the sound collection unit during for being specially the equipment with sound collection unit, in the control signal
The voice signal of acquisition, such as during making a phone call, the voice signal collected by the sound collection unit of line control earphone, correspondence
Ground, the processing module 202 in the electronic equipment includes speech Separation submodule 2021 and frequency analysis submodule 2022.
After by step S101, the method in the embodiment of the present application is put into step S102:
In the first case, step S102 is specially:
One first DC component signal is extracted by the frequency analysis module, obtains described first straight
Flow component signal, and not at least one frequency signal including one first DC component signal.
In situation two, step S102 specifically includes following steps:
First, separating treatment is carried out by 2021 pairs of control signals of the speech Separation submodule, by the signal
In the voice signal separate, obtain at least one frequency signal and one first DC component signal;
Then, one first DC component signal is extracted by the frequency analysis submodule 2022, is obtained
Obtain one first DC component signal, and at least one frequency including one first DC component signal
Signal.
In the present embodiment, when such as broadcasting button is pressed, generation includes one first DC component that magnitude of voltage is 2 volts
Signal, and frequency is the signal of at least one frequency signal of 25KHZ, and institute is received in the reception analysis module 201
After stating signal, separating treatment is carried out by 2021 pairs of signals of speech Separation submodule first, described in the signal
Voice signal is separated, and it is at least one frequency signal of 25KHZ to obtain frequency, and one that magnitude of voltage is 2 volts
One DC component signal;
Then, one first DC component signal is extracted by the frequency analysis submodule 2022, is obtained
Obtain one first DC component signal that magnitude of voltage is 2 volts, and the frequency including one first DC component signal
Rate is at least one frequency signal of 25KHZ;
Such as broadcasting button, pause button is pressed simultaneously when, generation includes one first direct current point that magnitude of voltage is 4 volts
Amount signal, and frequency is 25KHZ, the signal of at least one frequency signal of 30KHZ combinations, in the receiver module 201
After receiving the signal, separating treatment is carried out by 2021 pairs of signals of speech Separation submodule first, by the signal
In the voice signal separate, it is 4 volts of one DC component signal to obtain magnitude of voltage, and frequency be 25KHZ,
At least one frequency signal of 30KHZ combinations;
Then, one first DC component signal is extracted by the frequency analysis submodule 2022, is obtained
Obtain one first DC component signal that magnitude of voltage is 4 volts, and the frequency including one first DC component signal
Rate is at least one frequency signal of 25KHZ, 30KHZ combination.
After step s 102, the method in the embodiment of the present application enters step S103, specially:
It is described based at least one frequency letter when one first DC component signal is to that should have control instruction
Number, the first control instruction is generated and performs, specifically include:
First, based on the first corresponding relation between DC component signal and control instruction, obtain straight with one first
Corresponding second control instruction of flow component signal;
Then, based on the second corresponding relation between frequency signal number and control instruction, obtain and described at least one frequency
Corresponding 3rd control instruction of rate signal;
Then, when second control instruction and the 3rd control instruction are identical control instruction, described the is determined
Two control instructions or the 3rd control instruction are first control instruction;
Finally, first control instruction is performed.
It is described based on described at least one frequency when one first DC component signal is not to that should have control instruction
Rate signal, generates and performs the first control instruction, specifically includes:
Based on the second corresponding relation between frequency signal number and control instruction, obtain and at least one frequency signal
Corresponding first control instruction;
Perform first control instruction.
During the embodiment of the present application is implemented, the DC component signal and between control instruction first it is corresponding close
System is stored in the memory module 205, for example:The DC component signal that magnitude of voltage is 2 volts is produced when broadcasting button is pressed, it is right
Control instruction is answered to play, the DC component signal that magnitude of voltage is 2.5 volts is produced when pause button is pressed, correspondence control instruction is
Pause, produces the DC component signal that magnitude of voltage is 3 volts during next key press, correspondence control instruction is to play next,
The DC component signal that magnitude of voltage is 3.5 volts is produced during upper one first key press, broadcasting button is pressed simultaneously with pause button
When to produce magnitude of voltage be 4 volts of DC component signal, to that should have control instruction, broadcasting button is with next button while pressing
The DC component signal that magnitude of voltage is 4 volts is produced not to that there should be control instruction during pressure, during five key press, not to that should have
Control instruction, produces the DC component signal that magnitude of voltage is 4 volts, not to that should have control instruction, specifically during six key press
Key press when the voltage magnitude that produces and corresponding control instruction relation can design as needed, due to believing DC component
Number effective detection need the difference between different voltages more than a threshold values for regulation, so when can not make each key press
The DC component signal of generation is all to that should have control instruction;The second corresponding relation between the frequency signal number and control instruction
Store in the memory module 205, for example:The frequency signal of 25KHZ is produced when broadcasting button is pressed, correspondence control instruction is
Play, the frequency signal of 30KHZ is produced when pause button is pressed, correspondence control instruction is pause, is produced during next key press
The frequency signal of raw 35KHZ, it is 40KHZ's that correspondence control instruction produces frequency to play next, during upper one first key press
Frequency signal, correspondence control instruction is to play a upper head, and generation frequency is broadcasting button is pressed with pause button simultaneously when
The frequency signal of 25KHZ, 30KHZ combination, correspondence control instruction is amplified for volume, and broadcasting button is pressed simultaneously with next button
When produce the frequency signal that frequency is 25KHZ, 35KHZ combination, corresponding control instruction is that volume reduces, and the 5th button produces on time
Raw frequency is the frequency signal of 45KHZ, and correspondence control instruction is F.F., and it is the frequency of 50KHZ that frequency is produced during six key press
Rate signal, corresponding control instruction is rewind, between the frequency signal produced during specific key press and corresponding control instruction
Relation can design as needed, because frequency signal has scope very wide, and then produced when can make each key press
The different control instruction of the different frequency signal correspondence of life.
In the present embodiment, in one first DC component signal that acquisition magnitude of voltage is 2 volts, and do not include described one
After the frequency of individual first DC component signal is at least one frequency signal of 25KHZ, in one first direct current point
When amount signal is to that should have control instruction, step S103 is implemented as:
First, based on the first corresponding relation between DC component signal and control instruction, specially:Voltage is 2 volts straight
Flow component signal correspondence control instruction obtains submodule 2031 to play by the first instruction of the directive generation module 203
The second control instruction corresponding with one first DC component signal is obtained, is specially played;
Then, based on the second corresponding relation between frequency signal number and control instruction, specially:Frequency is 25KHZ's
Frequency signal correspondence control instruction obtains the 3rd control instruction corresponding with least one frequency signal, specifically to play
To play;
Then, all it is specifically to broadcast when it is identical control instruction that second control instruction is with the 3rd control instruction
When putting, second control instruction or described are determined by the instruction determination sub-module 2033 of the directive generation module 203
Three control instructions are first control instruction, that is, play;
Finally, first control instruction is performed by the instruction performing module 204, that is, is played.
In one first DC component signal that acquisition magnitude of voltage is 2 volts, and do not include one first direct current
After the frequency of component signal is at least one frequency signal of 25KHZ, do not have in one first DC component signal
During to that should have control instruction, step S103 is implemented as:
Based on the second corresponding relation between frequency signal number and control instruction, specially:Frequency is believed for the single-frequency of 25KHZ
Number correspondence control instruction obtains corresponding with least one frequency signal the first control instruction to play, and specially plays;
Finally, first control instruction is performed by the instruction performing module 204, that is, is played.
In one first DC component signal that acquisition magnitude of voltage is 4 volts, and do not include one first direct current
After the frequency of component signal is at least one frequency signal of 25KHZ, 30KHZ combination, in one first direct current point
When amount signal is not to that should have control instruction, step S103 is implemented as:
Based on the second corresponding relation between frequency signal number and control instruction, specially:Broadcasting button and pause button
The frequency signal that frequency is 25KHZ, 30KHZ combination is produced when pressing simultaneously, correspondence control instruction is amplified for volume, is obtained and institute
Corresponding first control instruction of at least one frequency signal is stated, specially volume is amplified;
Finally, first control instruction, i.e. volume is performed by the instruction performing module 204 to amplify.
Similarly, pause button, next button, upper one first button, the 5th button, the 6th key press, and broadcasting are pressed
Key can perform corresponding control instruction when being pressed with next button simultaneously, and therefore not to repeat here to implement process.
The application is at least had the advantages that or advantage by one or more technical schemes provided above:
Due to by receiving the control signal from a line traffic control equipment, wherein, at least include in the control signal described
At least one frequency signal that line traffic control equipment response is generated to the pressing operation of at least one button in the line traffic control equipment,
Using processing module, the control signal is parsed, obtain at least one frequency signal, based at least one frequency letter
Number, the method for generating and performing the first control instruction, due to the operation of each key press can generate it is corresponding with button described
At least one frequency signal, at least one frequency signal is produced by the frequency of signal generator of the line traffic control equipment, described
Be stored with the memory module of electronic equipment the line traffic control equipment key press when frequency signal number and control instruction that produce
Between corresponding relation, and then can according to key press when at least one frequency signal that produces and the corresponding relation produce and hold
Corresponding with the button control instruction of row, without in the prior art, when the button in line traffic control equipment is set it is many when, understand because
Can not be identified for the difference between partial pressure value is small, and then corresponding control instruction can not be generated, thus it is possible to effectively solution
Prior art of having determined exist can not effective expand technical problem, realize the technique effect of effective expand.
For example:The line traffic control equipment is by taking earphone as an example, wherein the earphone has six press keys, respectively, broadcasting button,
Pause button, next button, upper one first button, the 5th button, the 6th button, correspondence play operation when pressing respectively, pause
Operation, next operation, upper one first operation, forwarding operation, fast reverse operation, broadcasting button is corresponding when being pressed with pause button simultaneously
Volume amplifieroperation, broadcasting button corresponding volume reduction operation when being pressed with next button simultaneously.In the prior art due to setting
Six press keys are put, the differential in partial pressures of different series resistors will diminish, so cannot effectively recognize, and in the present invention, by
In control instruction is generated according to frequency signal, so when this six press keys is pressed respectively, six corresponding controls will be generated
Instruction, corresponding control instruction can be also generated when two buttons are pressed simultaneously, and then effectively extend to four buttons
Six press keys, at the same extend key combination press when corresponding control instruction so, thus it is possible to efficiently solve existing skill
Art exist can not effective expand technical problem, realize the technique effect of effective expand.
Due to by receiving the control signal from a line traffic control equipment, wherein, the control signal includes the line traffic control
The first DC component signal that equipment responds the pressing operation of at least one button in the line traffic control equipment and generates, point
The control signal is analysed, one first DC component signal is obtained, and without one first DC component signal
At least one frequency signal, based on first corresponding relation, second corresponding relation generates and performs corresponding
The method of one control instruction, such as:The line traffic control equipment is by taking earphone as an example, wherein the earphone has six press keys, respectively, broadcast
Put button, pause button, next button, upper one first button, the 5th button, the 6th button, correspondence broadcasting behaviour when pressing respectively
Make, pausing operation, next operation, upper one first operation, forwarding operation, fast reverse operation, for four traditional buttons, broadcasting is pressed
Key, pause button, next button, upper one first button, the present invention both can generate control with traditional DC component signal
Instruction, it is also possible to generate control instruction with frequency signal, and, when one way in which fails, can with another come
Realize, so, realize the technique effect compatible with prior art.
Embodiment two
The embodiment of the present application two provides a kind of electronic equipment, refer to Fig. 2, including:
Receiver module 201, for receiving the control signal from a line traffic control equipment.The line traffic control equipment in the present embodiment
A line control earphone is specifically as follows, wherein the earphone has six press keys, respectively, broadcasting button, pause button, next
Button, upper one first button, the 5th button, the 6th button.
Processing module 202, for parsing the control signal, obtains at least one frequency signal.
Wherein, in the first scenario, it is described as shown in figure 3, the processing module 202 is specially frequency analysis module
Frequency analysis module obtains the first DC component letter specifically for being extracted to one first DC component signal
Number, and not at least one frequency signal including one first DC component signal.
In the latter case, as shown in figure 4, the processing module 202 includes speech Separation submodule 2021 and frequency
Analysis submodule 2022, speech Separation submodule 2021, for carrying out separating treatment to the control signal, the control is believed
The voice signal in number is separated, and obtains at least one frequency signal and one first DC component signal, frequency
Rate analyzes submodule 2022, for being extracted to one first DC component signal, obtains one first direct current
Component signal, and not at least one frequency signal including one first DC component signal.
Directive generation module 203, is connected with the processing module 202, for generating the line traffic control equipment key press pair
The first control instruction answered, including:
First instruction obtains submodule 2031, for generating the second control instruction,
Second instruction obtains submodule 2032, for generating the 3rd control instruction,
Instruction determination sub-module 2033, for when the second control instruction is identical with the 3rd control instruction, determining the second control
System instruction or the 3rd control instruction are the first control instruction;
Instruction performing module 204, is connected, with the directive generation module 203 for performing first control instruction;
Memory module 205, is connected with the directive generation module 203, for storing DC component signal and control instruction
Between the first corresponding relation, and the second corresponding relation between frequency signal number and control instruction.
During implementing, the control signal includes the pressing of at least one button in the line traffic control equipment
The first DC component signal and at least one frequency signal for operating and generating, when the line traffic control equipment is specially band
Also include gathering what is obtained by the sound collection unit when having the line control earphone of sound collection unit, in the control signal
Voice signal, such as during making a phone call, the voice signal collected by the sound collection unit of the line control earphone.
The electronic equipment also includes memory module 205, for storing first between DC component signal and control instruction
The second corresponding relation between corresponding relation, and frequency signal number and control instruction, specifically, first corresponding relation
For:For example:The DC component signal that magnitude of voltage is 2 volts is produced when broadcasting button is pressed, correspondence control instruction to play, press by pause
The DC component signal that magnitude of voltage is 2.5 volts is produced during key pressing, correspondence control instruction is pause, is produced during next key press
Raw magnitude of voltage is 3 volts of DC component signal, and correspondence control instruction produces voltage to play next during upper one first key press
It is worth the DC component signal for 3.5 volts, broadcasting button and the direct current point that the when generation magnitude of voltage that pause button is pressed simultaneously is 4 volts
Amount signal, not to that should have control instruction, not to that should have control instruction broadcasting button is pressed with next button simultaneously when, the
Produce the DC component signal that magnitude of voltage is 4 volts, not to that there should be control instruction, produced during six key press during five key press
Raw magnitude of voltage is 4 volts of DC component signal, not to that should have control instruction, the voltage magnitude produced during specific key press
And corresponding control instruction relation can be designed as needed, needing different voltages due to the effective detection DC component signal
Difference more than one regulation threshold values, so the DC component signal produced during each key press can not be made to that should have
Control instruction;Second corresponding relation is:For example:The frequency signal of 25KHZ is produced when broadcasting button is pressed, correspondence control refers to
The frequency signal for producing 30KHZ when pause button is pressed to play is made, correspondence control instruction is pause, next key press
When produce the frequency signal of 35KHZ, to play next, generation frequency is correspondence control instruction during a upper first key press
The frequency signal of 40KHZ, correspondence control instruction produces frequency to play upper one first broadcasting button is pressed with pause button simultaneously when
It is the frequency signal of 25KHZ, 30KHZ combination, correspondence control instruction is amplified for volume, and broadcasting button is pressed simultaneously with next button
The frequency signal that frequency is 25KHZ, 35KHZ combination is produced during pressure, corresponding control instruction reduces for volume, and the 5th button is on time
It is the frequency signal of 45KHZ to produce frequency, and correspondence control instruction is F.F., and it is 50KHZ's that frequency is produced during six key press
Frequency signal, corresponding control instruction is rewind, the frequency signal produced during specific key press and corresponding control instruction
Between relation can design as needed, because frequency signal has scope very wide, and then when can make each key press
The control instruction for producing different frequency signal correspondences different.
When one first DC component signal is to that should have control instruction, the directive generation module 203 is specifically wrapped
Include:
First instruction obtains submodule 2031, for according at least one DC component signal, based on described first
Corresponding relation, obtains the second control instruction corresponding with one first DC component signal;
Second instruction obtains submodule 2032, the institute for not including at least one DC component signal according to
At least one frequency signal is stated, based on second corresponding relation, is obtained and at least one frequency signal the corresponding 3rd
Control instruction;
Instruction determination sub-module 2033, for being identical control in second control instruction and the 3rd control instruction
During instruction, determine that second control instruction or the 3rd control instruction are first control instruction;
When one first DC component signal is not to that should have control instruction, the directive generation module 203 has
Body is:Second instruction obtains submodule 2032 to be used for:
According at least one frequency signal, based on second corresponding relation, obtain and at least one frequency
Corresponding first control instruction of signal.
In the present embodiment, when such as broadcasting button is pressed, one first DC component letter that magnitude of voltage is 2 volts is produced
Number, and frequency is at least one frequency signal of 25KHZ, first, 2021 pairs of signals of speech Separation submodule are carried out
Separating treatment, the voice signal in the signal is separated, and obtains frequency at least one frequency of 25KHZ is believed
Number, and one first DC component signal that magnitude of voltage is 2 volts;
Then, the frequency analysis submodule 2022 is extracted to one first DC component signal, obtains electricity
Pressure value is 2 volts of one first DC component signal, and the frequency including one first DC component signal is not
At least one frequency signal of 25KHZ;
When one first DC component signal is to that should have control instruction:
First, based on the first corresponding relation between DC component signal and control instruction, specially:Voltage is 2 volts straight
To play, the first instruction of the directive generation module 203 obtains submodule 2031 and obtains flow component signal correspondence control instruction
The second control instruction corresponding with one first DC component signal, specially plays;
Then, based on the second corresponding relation between frequency signal number and control instruction, specially:Frequency is 25KHZ's
Simple signal correspondence control instruction obtains the 3rd control instruction corresponding with least one frequency signal, specifically to play
To play;
Then, all it is specifically to broadcast when it is identical control instruction that second control instruction is with the 3rd control instruction
When putting, the instruction determination sub-module 2033 of the directive generation module 203 determines second control instruction or the 3rd control
System instruction is first control instruction, that is, play;
Finally, the instruction performing module 204 performs first control instruction, that is, play.
When one first DC component signal is not to that should have control instruction, the directive generation module 203 has
Body is:Second instruction obtains submodule 2032 to be used for:
According at least one frequency signal, specially:Frequency is at least one frequency signal of 25KHZ, base
In second corresponding relation, specially:Frequency for 25KHZ simple signal correspondence control instruction for play, obtain with it is described
Corresponding first control instruction of at least one frequency signal, specially plays;
Finally, the instruction performing module 204 performs first control instruction, that is, play.
In the present embodiment, such as broadcasting button, pause button is pressed simultaneously when, generation includes described that magnitude of voltage is 4 volts
Individual first DC component signal, and frequency is 25KHZ, the first signal of at least one frequency signal of 30KHZ combinations, language
2021 pairs of control signals of cent ion module carry out separating treatment, by the voice signal in the control signal point
From it is described at least the one of 25KHZ, 30KHZ combination to obtain one DC component signal that magnitude of voltage is 4 volts, and frequency
Individual frequency signal;
Then, the frequency analysis submodule 2022 is extracted to one first DC component signal, obtains electricity
Pressure value is 4 volts of one first DC component signal, and the frequency including one first DC component signal is not
At least one frequency signal of 25KHZ, 30KHZ combination;
Then, in one first DC component signal that acquisition magnitude of voltage is 4 volts, and one first is not included
It is straight one first after the frequency of DC component signal is at least one frequency signal of 25KHZ, 30KHZ combination
When flow component signal is not to that should have control instruction, the directive generation module 203 is specially:Second instruction obtains submodule
2032 are used for:
Based on the second corresponding relation between frequency signal number and control instruction, specially:Broadcasting button and pause button
The frequency signal that frequency is 25KHZ, 30KHZ combination is produced when pressing simultaneously, correspondence control instruction is amplified for volume, is obtained and institute
Corresponding first control instruction of at least one frequency signal is stated, specially volume is amplified;
Finally, the instruction performing module 204 performs first control instruction, i.e. volume and amplifies.
Similarly, pause button, next button, upper one first button, the 5th button, the 6th key press, and broadcasting are pressed
Key can perform corresponding control instruction when being pressed with next button simultaneously, and therefore not to repeat here to implement process.
Embodiment three
The embodiment of the present application three provides a kind of line traffic control equipment, refer to Fig. 5, including:
Casing 301;
One group of button 3011, is arranged on the casing 301, and one group of button 3011 includes at least one button;
Sound collection unit 3013, is arranged on the casing 301, and the voice signal is obtained for gathering;
At least one earplug 303, for playing the second sound signal from the electronic equipment;
Decoder 3014, is connected, with each button at least one button of one group of button 3011 for knowing
Whether one or more buttons not gone out at least one button have pressing operation;
Frequency of signal generator 3012, in the casing 301, with one group of button 3011 described at least one
Each button connection in button, when being pressed for one or more buttons at least one button, produces one
First DC component signal and at least one frequency signal;
Input/output interface 302, respectively with least one earplug 303, the frequency of signal generator 3012 is described
Sound collection unit 3013 is connected, for the second sound signal from the electronic equipment to be input into described at least one
Individual earplug 303;For by one first DC component signal, at least one frequency signal and the voice signal export to
The electronic equipment.
In the application specific embodiment, the line traffic control equipment is by taking earphone as an example, wherein the earphone has six press keys,
Respectively, broadcasting button, pause button, next button, upper one first button, the 5th button, the 6th button, below, will combine
Fig. 4 is described to each several part concrete structure and operation principle and function in the embodiment of the present application:
In the present embodiment, the frequency of signal generator 3012, refer to Fig. 6, specifically include:
There is circuit 3012-1 in direct current signal, be pressed for one or more buttons at least one button
When, one first DC component signal is produced, such as:The DC component letter that magnitude of voltage is 2 volts is produced when broadcasting button is pressed
Number, the DC component signal that magnitude of voltage is 2.5 volts is produced when pause button is pressed, generation magnitude of voltage is during next key press
3 volts of DC component signal, produces the DC component signal that magnitude of voltage is 3.5 volts during a upper first key press, broadcasting button with
The DC component signal that magnitude of voltage is 4 volts is produced pause button is pressed simultaneously when, broadcasting button is pressed simultaneously with next button
When to produce magnitude of voltage be 4 volts of DC component signal, the DC component signal that magnitude of voltage is 4 volts is produced during five key press,
The DC component signal that magnitude of voltage is 4 volts is produced during six key press, the voltage magnitude produced during specific key press can
Design as needed;
Voltage-Controlled oscillation circuit 3012-2, when being pressed for one or more buttons at least one button,
At least one frequency signal is produced, such as:The frequency signal of 25KHZ is produced when broadcasting button is pressed, when pause button is pressed
The frequency signal of 30KHZ is produced, the frequency signal of 35KHZ is produced during next key press, produced during upper one first key press
Frequency is the frequency signal of 40KHZ, and it is what 25KHZ, 30KHZ were combined that frequency is produced broadcasting button is pressed with pause button simultaneously when
Frequency signal, it is the frequency signal that 25KHZ, 35KHZ are combined that frequency is produced broadcasting button is pressed with next button simultaneously when, the
It is the frequency signal of 45KHZ that frequency is produced during five key press, produces frequency to believe for the frequency of 50KHZ during six key press
Number, the frequency signal produced during specific key press can be designed as needed.
In specific implementation process, such as:When broadcasting button is pressed, decoder 3014 identifies the broadcasting button of pressing,
Now there is one first that circuit 3012-1 generation magnitudes of voltage are 2 volts in the direct current signal in frequency of signal generator 3012
DC component signal, it is at least one frequency signal of 25KHZ that Voltage-Controlled oscillation circuit 3012-2 produces frequency, is pressed in broadcasting
Key and pause button are pressed simultaneously when, direct current signal occur circuit 3012-1 produce it is magnitude of voltage is 4 volts one first straight
Flow component signal, Voltage-Controlled oscillation circuit produces at least one frequency signal that frequency is 25KHZ, 30KHZ combination, the frequency letter
The signal that number generator 3012 is produced is exported by the input/output interface 302.
The application is at least had the advantages that or advantage by one or more technical schemes provided above:
Due to by receiving the control signal from a line traffic control equipment, wherein, at least include in the control signal described
At least one frequency signal that line traffic control equipment response is generated to the pressing operation of at least one button in the line traffic control equipment,
Using processing module, the control signal is parsed, obtain at least one frequency signal, based at least one frequency letter
Number, the method for generating and performing the first control instruction, due to the operation of each key press can generate it is corresponding with button described
At least one frequency signal, at least one frequency signal is produced by the frequency of signal generator of the line traffic control equipment, described
Be stored with the memory module of electronic equipment the line traffic control equipment key press when frequency signal number and control instruction that produce
Between corresponding relation, and then can according to key press when at least one frequency signal that produces and the corresponding relation produce and hold
Corresponding with the button control instruction of row, without in the prior art, when the button in line traffic control equipment is set it is many when, understand because
Can not be identified for the difference between partial pressure value is small, and then corresponding control instruction can not be generated, thus it is possible to effectively solution
Prior art of having determined exist can not effective expand technical problem, realize the technique effect of effective expand.
For example:The line traffic control equipment is by taking earphone as an example, wherein the earphone has six press keys, respectively, broadcasting button,
Pause button, next button, upper one first button, the 5th button, the 6th button, correspondence play operation when pressing respectively, pause
Operation, next operation, upper one first operation, forwarding operation, fast reverse operation, broadcasting button is corresponding when being pressed with pause button simultaneously
Volume amplifieroperation, broadcasting button corresponding volume reduction operation when being pressed with next button simultaneously.In the prior art due to setting
Six press keys are put, the differential in partial pressures of different series resistors will diminish, so cannot effectively recognize, and in the present invention, by
In control instruction is generated according to frequency signal, so when this six press keys is pressed respectively, six corresponding controls will be generated
Instruction, corresponding control instruction can be also generated when two buttons are pressed simultaneously, and then effectively extend to four buttons
Six press keys, at the same extend key combination press when corresponding control instruction so, thus it is possible to efficiently solve existing skill
Art exist can not effective expand technical problem, realize the technique effect of effective expand.
Due to by receiving the control signal from a line traffic control equipment, wherein, the control signal includes the line traffic control
The first DC component signal that equipment responds the pressing operation of at least one button in the line traffic control equipment and generates, point
The control signal is analysed, one first DC component signal is obtained, and without one first DC component signal
At least one frequency signal, based on first corresponding relation, second corresponding relation generates and performs corresponding
The method of one control instruction, such as:The line traffic control equipment is by taking earphone as an example, wherein the earphone has six press keys, respectively, broadcast
Put button, pause button, next button, upper one first button, the 5th button, the 6th button, correspondence broadcasting behaviour when pressing respectively
Make, pausing operation, next operation, upper one first operation, forwarding operation, fast reverse operation, for four traditional buttons, broadcasting is pressed
Key, pause button, next button, upper one first button, the present invention both can generate control with traditional DC component signal
Instruction, it is also possible to generate control instruction with frequency signal, and, when one way in which fails, can with another come
Realize, so, realize the technique effect compatible with prior art.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention
God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (17)
1. a kind of key control method, applies in an electronic equipment, and the electronic equipment includes processing module, and its feature exists
In methods described includes:
The control signal from a line traffic control equipment is received, wherein, at least responded including the line traffic control equipment in the control signal
At least one frequency signal generated to the pressing operation of at least one button in the line traffic control equipment;
Using the processing module, the control signal is parsed, obtain at least one frequency signal;
Based at least one frequency signal, the first control instruction is generated and performed.
2. the method for claim 1, it is characterised in that also include that the line traffic control equipment responds institute in the control signal
The pressing operation of stating at least one button in line traffic control equipment and a first DC component signal generating.
3. method as claimed in claim 2, it is characterised in that when the processing module is specially frequency analysis module, institute
State using the processing module, parse the control signal, obtain at least one frequency signal, specially:
One first DC component signal is extracted by the frequency analysis module, obtains first direct current point
Amount signal, and not at least one frequency signal including one first DC component signal.
4. the method for claim 1, it is characterised in that when the line traffic control equipment is specially with sound collection unit
Also include gathering the voice signal for obtaining, and the line traffic control by the sound collection unit during equipment, in the control signal
The pressing operation of at least one button in equipment and a first DC component signal generating.
5. method as claimed in claim 4, it is characterised in that when the processing module includes speech Separation submodule and frequency
It is described to utilize the processing module during analysis submodule, the control signal is parsed, at least one frequency signal is obtained,
Specifically include:
Separating treatment is carried out to the control signal by the speech Separation submodule, by the sound in the control signal
Sound Signal separator, obtains at least one frequency signal and one first DC component signal;
One first DC component signal is extracted by the frequency analysis submodule, obtains one first
DC component signal, and not at least one frequency signal including one first DC component signal.
6. the method as described in any claim in claim 3 or 5, it is characterised in that in one first DC component letter
It is described to generate and perform the first control instruction based at least one frequency signal during number to that should have control instruction, specific bag
Include:
Based on the first corresponding relation between DC component signal and control instruction, obtain and one first DC component signal
Corresponding second control instruction;
Based on the second corresponding relation between frequency signal number and control instruction, obtain corresponding with least one frequency signal
The 3rd control instruction;
When it is identical control instruction that second control instruction is with the 3rd control instruction, second control instruction is determined
Or the 3rd control instruction is first control instruction;
Perform first control instruction.
7. the method as described in any claim in claim 3 or 5, it is characterised in that in one first DC component letter
It is described based at least one frequency signal during number not to that should have control instruction, the first control instruction is generated and performs, have
Body includes:
Based on the second corresponding relation between frequency signal number and control instruction, obtain corresponding with least one frequency signal
The first control instruction;
Perform first control instruction.
8. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
Receiver module, for receiving the control signal from a line traffic control equipment, wherein, at least include in the control signal described
At least one frequency signal that line traffic control equipment response is generated to the pressing operation of at least one button in the line traffic control equipment;
Processing module, for parsing the control signal, obtains at least one frequency signal;
Directive generation module, for based at least one frequency signal, generating the first control instruction;
Instruction performing module, for performing first control instruction.
9. electronic equipment as claimed in claim 8, it is characterised in that also rung including the line traffic control equipment in the control signal
The pressing operation of answering at least one button in the line traffic control equipment and a first DC component signal generating.
10. electronic equipment as claimed in claim 9, it is characterised in that the processing module is specially:
Frequency analysis module, for being extracted to one first DC component signal, obtains first DC component
Signal, and not at least one frequency signal including one first DC component signal.
11. electronic equipments as claimed in claim 8, it is characterised in that when the line traffic control equipment is specially with sound collection
Also include gathering the voice signal for obtaining, and institute by the sound collection unit during equipment of unit, in the control signal
The pressing operation of stating at least one button in line traffic control equipment and a first DC component signal generating.
12. electronic equipments as claimed in claim 11, it is characterised in that the processing module is specifically included:
Speech Separation submodule, for carrying out separating treatment to the control signal, by the sound in the control signal
Signal separator, obtains at least one frequency signal and one first DC component signal;
Frequency analysis submodule, for being extracted to one first DC component signal, obtains one first straight
Flow component signal, and not at least one frequency signal including one first DC component signal.
13. electronic equipments as claimed in claim 8, it is characterised in that the electronic equipment also includes:
Memory module, for storing the first corresponding relation between DC component signal and control instruction, and frequency signal number with
The second corresponding relation between control instruction.
14. electronic equipment as described in any claim in claim 10 or 12, it is characterised in that in one first direct current
When component signal is to that should have control instruction, the directive generation module is specifically included:
First instruction obtains submodule, for based on the first corresponding relation between DC component signal and control instruction, obtain with
Corresponding second control instruction of one first DC component signal;
Second instruction obtains submodule, for based on the second corresponding relation between frequency signal number and control instruction, obtain with
Corresponding 3rd control instruction of at least one frequency signal;
Instruction determination sub-module, for when second control instruction and the 3rd control instruction are identical control instruction,
Determine that second control instruction or the 3rd control instruction are first control instruction.
15. electronic equipment as described in any claim in claim 10 or 12, it is characterised in that in one first direct current
When component signal is not to that should have control instruction, the directive generation module specifically for:
Based on the second corresponding relation between frequency signal number and control instruction, obtain corresponding with least one frequency signal
The first control instruction.
A kind of 16. line traffic control equipments, it is characterised in that including:
Casing;
One group of button, is set on the housing, and one group of button includes at least one button;
Sound collection unit, is set on the housing, and the voice signal is obtained for gathering;
At least one earplug, for playing the second sound signal from the electronic equipment;
Decoder, is connected with each button at least one button of one group of button, for identify it is described at least
Whether one or more buttons in one button have pressing operation;
Frequency of signal generator, in the casing, is connected with the decoder, at least one button
When one or more buttons have pressing operation, a first DC component signal and at least one frequency signal are produced;
Input/output interface, respectively with least one earplug, the frequency of signal generator, the sound collection unit connects
Connect, for the second sound signal from the electronic equipment to be input at least one earplug;For by described in
One the first DC component signal, at least one frequency signal and the voice signal are exported to electronic equipment.
17. line traffic control equipments as claimed in claim 16, it is characterised in that the frequency of signal generator includes:
There is circuit in direct current signal, when being pressed for one or more buttons at least one button, produce institute
State a first DC component signal;
Voltage-Controlled oscillation circuit, when being pressed for one or more buttons at least one button, described in generation extremely
A few frequency signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310308625.XA CN104330981B (en) | 2013-07-22 | 2013-07-22 | Key control method, electronic device and line-control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310308625.XA CN104330981B (en) | 2013-07-22 | 2013-07-22 | Key control method, electronic device and line-control device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104330981A CN104330981A (en) | 2015-02-04 |
CN104330981B true CN104330981B (en) | 2017-05-24 |
Family
ID=52405728
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310308625.XA Active CN104330981B (en) | 2013-07-22 | 2013-07-22 | Key control method, electronic device and line-control device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104330981B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR3040091B1 (en) * | 2015-08-10 | 2017-08-25 | Sagemcom Broadband Sas | METHOD FOR SETTING THE REACTIVITY OF AN ELECTRONIC DEVICE OBSERVED AFTER RECEIVING A COMMAND ISSUED FROM A NEIGHBORING CONTROL EQUIPMENT AND DEVICE ADAPTED FOR IMPLEMENTING SUCH A METHOD |
CN105245997B (en) * | 2015-09-29 | 2019-06-04 | 佳禾智能科技股份有限公司 | A kind of control method transmitting control signal using audible |
CN105792054B (en) * | 2016-05-23 | 2019-03-29 | 敲敲科技(北京)有限公司 | A kind of key control circuit of earphone |
CN109246519B (en) * | 2018-10-18 | 2022-03-04 | 珠海市杰理科技股份有限公司 | Line control earphone signal identification method and device, computer equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4976934B2 (en) * | 2007-06-29 | 2012-07-18 | 株式会社東芝 | Information processing apparatus and control method |
CN101493728B (en) * | 2008-01-24 | 2011-08-10 | 中兴通讯股份有限公司 | Line control push-button detecting and recognizing device and method capable of identifying combined key |
CN101783990B (en) * | 2010-01-06 | 2013-05-15 | 惠州Tcl移动通信有限公司 | Linear control system, linear control device and linear control method of mobile equipment |
CN101841753A (en) * | 2010-02-24 | 2010-09-22 | 深圳桑菲消费通信有限公司 | Drive-by-wire earphone for portable electronic equipment and method for realizing drive-by-wire |
CN101873367A (en) * | 2010-06-24 | 2010-10-27 | 深圳桑菲消费通信有限公司 | System and method for expending mobile functional keys |
CN202600109U (en) * | 2012-03-30 | 2012-12-12 | 快捷半导体(苏州)有限公司 | Button detection circuit, filter circuit and external equipment button detection chip |
-
2013
- 2013-07-22 CN CN201310308625.XA patent/CN104330981B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104330981A (en) | 2015-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101947297B1 (en) | A headphone operating mode switching method and a headphone | |
CN104330981B (en) | Key control method, electronic device and line-control device | |
US9654859B2 (en) | Mobile terminal earphone line control circuit and line control method | |
CN103226966A (en) | Method capable of quickly positioning playing progress and mobile terminal | |
CN100410907C (en) | Music play control apparatus using at least one earphone function key and method thereof | |
CN204014021U (en) | With the earphone of sound-conducting apparatus | |
CN103609139A (en) | Headphones, audio device, audio system and method for transmitting signals | |
CN102104388B (en) | Audio play system and earphone used by same | |
CN109819303A (en) | Data output method and relevant device | |
CN110097868A (en) | Play the methods, devices and systems of music | |
CN206283621U (en) | A kind of intelligent remote controller | |
CN103916511B (en) | The method and electronic equipment of information processing | |
CN104284268A (en) | Earphone capable of acquiring data information and data acquisition method | |
CN104333649B (en) | The method and apparatus of speech message is presented in communication terminal | |
CN105338448A (en) | Sound control method and device | |
CN106448113A (en) | Remote control pairing control method and multimedia playing terminal | |
CN108093332A (en) | Detachable combined box | |
CN104080026A (en) | Method of information processing and line control earphone | |
CN205584461U (en) | Loudspeaker box | |
CN104330983B (en) | A kind of control method and electronic equipment | |
CN108566221A (en) | Call control method and relevant device | |
CN105491212A (en) | Voice communication method and device used for mobile terminal | |
CN104822023B (en) | The method and its system of video are provided by earphone | |
CN104820579B (en) | A kind of sensor-based system and method for sensing comprising mobile terminal and peripheral device | |
CN104901709A (en) | Radio system having mobile terminal and peripheral equipment, and radio system control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |