CN104330983B - A kind of control method and electronic equipment - Google Patents

A kind of control method and electronic equipment Download PDF

Info

Publication number
CN104330983B
CN104330983B CN201310309103.1A CN201310309103A CN104330983B CN 104330983 B CN104330983 B CN 104330983B CN 201310309103 A CN201310309103 A CN 201310309103A CN 104330983 B CN104330983 B CN 104330983B
Authority
CN
China
Prior art keywords
button
electronic equipment
level signal
equal
signal
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
Application number
CN201310309103.1A
Other languages
Chinese (zh)
Other versions
CN104330983A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310309103.1A priority Critical patent/CN104330983B/en
Publication of CN104330983A publication Critical patent/CN104330983A/en
Application granted granted Critical
Publication of CN104330983B publication Critical patent/CN104330983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a kind of control method and electronic equipment, apply in an electronic equipment, wherein, the electronic equipment is connected with the control device comprising M button, and M is the integer more than or equal to 1, and methods described includes:A multi-level signal is obtained, wherein, the signal that W pressing operation response of the multi-level signal for the control device to the N number of button in the M button is generated, wherein, N is the positive integer less than or equal to M, and W is the positive integer more than or equal to N;The multi-level signal is processed, the first voltage value comprising at least one magnitude of voltage is obtained and is combined;Based on the corresponding relation between magnitude of voltage combination and control instruction, the first control instruction corresponding with the first voltage value combination is generated and performed.

Description

A kind of control method and electronic equipment
Technical field
The present invention relates to electronic technology field, more particularly to a kind of control method and electronic equipment.
Background technology
With the development of science and technology, the function of electronic equipment is become stronger day by day, user is also increasingly lifted to the demand of electronic equipment. Electronic equipment in the market is substantially all the earphone that can arrange in pairs or groups and is used, and such as user listens music using earphone, and user makes With earphone call etc., earphone application in the electronic device is increasingly extensive, and functional requirement of the user to earphone is also increasingly improved, Seeking earphone has more operated keys, has more functions to allow Consumer's Experience.
There are more functions in order to allow earphone, it is necessary to increase corresponding operated key, current technology increases button just to be needed Accordingly increase resistance.
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:
Conventionally, as in order to allow the line traffic control end there are more functions, it is necessary to accordingly increase button, often increase Plus a button will correspondingly increase a resistance, and increase button more, the voltage difference between each button will Reduce, so as to the fault-tolerance for causing A-D converter button deterministic process is reduced, it is seen then that in the prior art, exist in electronics When the line traffic control end of equipment increases more button, the fault-tolerance reduction of the deterministic process of electronic equipment, the autgmentability of electronic equipment Imperfect technical problem, and then cause that user is unable to reach Expected Results carrying out operation using electronic equipment line traffic control end, drop The low experience of user.
The content of the invention
The embodiment of the present application is solved in the prior art in electronic equipment by providing a kind of control method and electronic equipment Line traffic control end when increasing more button, the technical problem of the fault-tolerance reduction of the deterministic process of electronic equipment realizes raising Electronic equipment fault-tolerance, and then improve the technique effect of electronic equipment autgmentability.
In order to solve the above technical problems, on the one hand the embodiment of the present application provides a kind of control method, apply in an electronics In equipment, wherein, the electronic equipment is connected with the control device comprising M button, and M is the integer more than or equal to 1, the side Method includes:
A multi-level signal is obtained, wherein, the multi-level signal is the control device to the N in the M button The signal that W pressing operation of individual button is responded and generated, wherein, N is the positive integer less than or equal to M, and W is more than or equal to N's Positive integer;
The multi-level signal is processed, the first voltage value comprising at least one magnitude of voltage is obtained and is combined;
Based on the corresponding relation between magnitude of voltage combination and control instruction, generate and perform and combine right with the first voltage value The first control instruction answered.
Further, when there is the first wireless communication module on the control device, the multi-level signal of the acquisition one, Specially:
Obtained with the second wireless communication module of the first radio communication mold Block- matching by the electronic equipment The multi-level signal;Or
When there is the first wire communication module on the control device, the multi-level signal of the acquisition one, specially:
Obtained by the second wire communication module matched with first wire communication module on the electronic equipment The multi-level signal.
Further, when having a level trigger on the control device, the multi-level signal, specially:
The letter that the level trigger response is generated to P pressing operation of i-th button in N number of button Number, i is the arbitrary integer less than or equal to N, and P is the integer more than or equal to 1.
Further, when having a level trigger on the control device, the multi-level signal, specially:
The level trigger response is given birth to P pressing operation of each button in S button in N number of button Into signal, S be more than or equal to 2 less than or equal to N arbitrary integer.
Further, when P is more than or equal to 2, the time in the P pressing operation between any pressing operation adjacent twice Interval is less than or equal to a prefixed time interval.
Further, it is described that the multi-level signal is processed, obtain the first electricity comprising at least one magnitude of voltage Pressure value is combined, and is specifically included:
Obtain at least one of multi-level signal analog signal;
At least one analog signal is carried out into analog-to-digital conversion, first electricity comprising at least one magnitude of voltage is obtained Pressure value is combined.
Further, the corresponding relation based between magnitude of voltage combination and control instruction, generates and performs and described the One magnitude of voltage combines corresponding first control instruction, specifically includes:
Corresponding table corresponding with the corresponding relation is read from the non-volatile memory cell of the electronic equipment;
Based on the corresponding table, it is determined that the first control instruction corresponding with the first voltage value combination.
On the other hand, present application example also provides a kind of electronic equipment, the electronic equipment with comprising the M control of button Equipment is connected, and M is the integer more than or equal to 1, and the electronic equipment includes:
Obtaining unit, for obtaining a multi-level signal, wherein, the multi-level signal is the control device to described The signal that W pressing operation of the N number of button in M button is responded and generated, wherein, N is the positive integer less than or equal to M, and W is Positive integer more than or equal to N;
Processing unit, for processing the multi-level signal, obtains the first electricity comprising at least one magnitude of voltage Pressure value is combined;
Generation execution unit, for based on the corresponding relation between magnitude of voltage combination and control instruction, generating and performing and institute State first voltage value and combine corresponding first control instruction.
Further, the obtaining unit is specially:
First wireless communication module, for by the electronic equipment with the first radio communication mold Block- matching Second wireless communication module obtains the multi-level signal;Or
First wire communication module, for by being matched with first wire communication module on the electronic equipment Second wire communication module obtains the multi-level signal.
Further, when having an electric trigger on the control device, the multi-level signal is specially the electricity The unit of the signal that the response of flat trigger is generated to P pressing operation of i-th button in N number of button, i be less than Arbitrary integer equal to N, P is the integer more than or equal to 1.
Further, when having an electric trigger on the control device, the multi-level signal is specially the electricity The list of the signal that flat trigger response is generated to P pressing operation of each button in S button in N number of button Unit, S is the arbitrary integer less than or equal to N more than or equal to 2.
Further, when P is more than or equal to 2, the time in the P pressing operation between any pressing operation adjacent twice Interval is less than or equal to a prefixed time interval.
Further, the processing unit includes:
Submodule is obtained, for obtaining at least one of multi-level signal analog signal;
Analog-to-digital conversion module, at least one analog signal to be carried out into analog-to-digital conversion, obtains and includes at least one The first voltage value combination of magnitude of voltage.
Further, the generation execution unit includes:
Read module, it is corresponding with the corresponding relation for being read from the non-volatile memory cell of the electronic equipment Corresponding table;
Determining module, for based on the corresponding table, it is determined that the first control corresponding with the first voltage value combination refers to Order.
On the other hand, present application example also provides a kind of line traffic control equipment, can be connected with an electronic equipment, including:
Casing;
One group of button, is set on the housing, and one group of button includes M button, and M is the integer more than or equal to 1;
At least one earplug, for playing the voice signal from the electronic equipment;
Level trigger, in the casing, rings for the W pressing operation to the N number of button in the M button Multi-level signal should be generated, wherein, N is the positive integer less than or equal to M, and W is the positive integer more than or equal to N;
Input/output interface, is connected with least one earplug and the level trigger respectively, for will be from institute The voice signal for stating electronic equipment is input at least one earplug;For the multi-level signal to be exported to described Electronic equipment, so that the electronic equipment can be processed the multi-level signal, obtains and includes at least one magnitude of voltage First voltage value combination, and based on magnitude of voltage combination and control instruction between corresponding relation, generation and the first voltage Corresponding first control instruction of value combination.
Further, the line traffic control equipment also includes:
External interface, is set on the housing, for connecting the device with button.
Further, the level trigger specifically for:Response is pressed to i-th P times of button in N number of button Press operation generates the multi-level signal, and i is the arbitrary integer less than or equal to N, and P is the integer more than or equal to 1.
Further, the level trigger specifically for:Response in S button in N number of button each press P pressing operation of key generates the multi-level signal, and S is the arbitrary integer less than or equal to N more than or equal to 2.
Further, when P is more than or equal to 2, the time in the P pressing operation between any pressing operation adjacent twice P pressing operation of the interval less than or equal to a prefixed time interval.
Further, the input/output interface is specially:
Output interface is wirelessly input to, for the voice signal to be wirelessly input at least one ear Plug;Or, for the multi-level signal wirelessly to be exported to the electronic equipment;Or
Wired input output interface, for the voice signal to be input at least one ear by wired mode Plug;Or for the multi-level signal to be exported to the electronic equipment by wired mode.
One or more technical schemes provided in the embodiment of the present application, at least have the following technical effect that or advantage:
1st, as a result of obtaining a multi-level signal first, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N;Then the multi-level signal is processed, is obtained comprising at least one magnitude of voltage First voltage value is combined;The corresponding relation between magnitude of voltage combination and control instruction is finally based on, is generated and is performed and described first Magnitude of voltage combines the technical scheme of corresponding first control instruction, i.e. coding is combined to level signal, electronic equipment end is adopted Collection multi-level signal obtains level value combination, confirms key value, obtains corresponding operating instruction, performs corresponding operating, so, have Effect is solved in the prior art when the line traffic control end of electronic equipment increases more button, the deterministic process of electronic equipment it is fault-tolerant Property reduce technical problem, realize improve electronic equipment fault-tolerance technique effect.
2nd, as a result of obtaining a multi-level signal first, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N;Then the multi-level signal is processed, is obtained comprising at least one magnitude of voltage First voltage value is combined;The corresponding relation between magnitude of voltage combination and control instruction is finally based on, is generated and is performed and described first Magnitude of voltage combines the technical scheme of corresponding first control instruction, i.e. coding is combined to level signal, electronic equipment end is adopted Collection multi-level signal obtains level value combination, confirms key value, obtains corresponding operating instruction, performs corresponding operating, so, have Effect solves the imperfect technical problem of autgmentability of electronic equipment in the prior art, and then realizes electronic equipment with good The technique effect of autgmentability.
For example:Need, when the line traffic control end of electronic equipment increases new button to realize new function, such as to increase by one newly Button realize open recorder function, electronic equipment receives the depressed product of new button in the technical scheme in the application Raw multi-level signal, is processed level signal, level value combination corresponding with new button is generated, according to the level of generation Value combination producing operational order, such as opens sound-recording function.
For another example:The external keypad of shell at the line traffic control end of electronic equipment is needed, there are multiple differences on a keypad The button of function, such as corresponding function of one of button is, when user listens music using electronic equipment, to press this button just The play mode of music player can be switched, electronic equipment receives the button in keypad in the technical scheme in the application The multi-level signal of depressed generation, is processed level signal, level value combination corresponding with button is generated, according to life Into level value combination producing operational order, such as when user listens music using electronic equipment switch music player broadcasting mould Formula.
Brief description of the drawings
Fig. 1 is the flow chart of control method in the embodiment of the present application;
Fig. 2 is the structure chart of electronic equipment in the embodiment of the present application;
Fig. 3 is the structure chart of processing unit in the embodiment of the present application electronic equipment;
Fig. 4 is the structure chart of generation execution unit in the embodiment of the present application electronic equipment;
Fig. 5 is the structure chart of line traffic control equipment in the embodiment of the present application.
Specific embodiment
The embodiment of the present application is solved in the prior art in electronic equipment by providing a kind of control method and electronic equipment Line traffic control end when increasing more button, the technical problem of the fault-tolerance reduction of the deterministic process of electronic equipment realizes raising Electronic equipment fault-tolerance, and then improve the technique effect of electronic equipment autgmentability.
Technical scheme during the application is implemented is solution above-mentioned technical problem.General thought is as follows:
First, a multi-level signal is obtained, wherein, the multi-level signal is the control device to the M button In N number of button W pressing operation response and generate signal, wherein, N is the positive integer less than or equal to M, W be more than etc. In the positive integer of N;Then, the multi-level signal is processed, obtains the first voltage value comprising at least one magnitude of voltage Combination;Finally, based on the corresponding relation between magnitude of voltage combination and control instruction, generate and perform and combined with the first voltage value Corresponding first control instruction, thus it is possible to solve when the line traffic control end of electronic equipment increases more button, electronic equipment The technical problem of the fault-tolerance reduction of deterministic process, realizes raising electronic equipment fault-tolerance, and then improve electronic equipment expansion The technique effect of malleability.
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 control method, apply in an electronic equipment, wherein, the electronic equipment It is connected with the control device comprising M button, M is the integer more than or equal to 1, the electronic equipment can be smart mobile phone, can To be game machine, or panel computer, in the embodiment of the present application, just no longer schematically illustrate one by one herein.Refer to Fig. 1, Control method in the embodiment of the present application is specifically included:
S10, obtains a multi-level signal, wherein, the multi-level signal is the control device in the M button N number of button W pressing operation response and generate signal, wherein, N is the positive integer less than or equal to M, and W is more than or equal to N Positive integer.
Wherein, the mode of the electronic equipment acquisition multi-level signal has two ways, specially:
First way:When there is the first wireless communication module on the control device, by the electronic equipment Obtain the multi-level signal with the second wireless communication module of the first radio communication mold Block- matching;
In a particular embodiment, implementation process is:Assuming that the control device is an earphone, the electronic equipment is an intelligence Energy mobile phone, has a wireless device for matching each other, such as in earphone and mobile phone end:When there is the first bluetooth module on earphone When, just there is the second bluetooth module matched with the first bluetooth module on smart mobile phone;Or when there is the first infrared module on earphone When, just there is the second infrared module matched with the first infrared module on smart mobile phone, so, button of the user at pressing earphone end When, corresponding multi-level signal will be produced, then, earphone just can be by between the first bluetooth module and the second bluetooth module Coordinate and multi-level signal is transferred to smart mobile phone, or earphone just can be by the first infrared module and the second infrared module Multi-level signal is transferred to smart mobile phone by cooperation.
The second way:When there is the first wire communication module on the control device, by the electronic equipment The second wire communication module for being matched with first wire communication module obtain the multi-level signal.
In a particular embodiment, implementation process is:Assuming that the control device is an earphone, the electronic equipment is an intelligence Energy mobile phone, has a wireline interface for matching, such as in earphone and mobile phone end:When there is the first wireline interface on earphone, Just have the second wireline interface matched with the first wireline interface on smart mobile phone, and using connecting line by the first wireline interface and Second wireline interface is coupled together, so, user will produce multi-level signal when the button at earphone end is pressed, then, Multi-level signal just can be transferred to intelligence by earphone by the cooperation of the first wireline interface and the second wireline interface and connecting line Can mobile phone.
In present application example, the generating mode of the multi-level signal can have various, specially:
The first:The multi-level signal is that the level trigger in the control device is responded in N number of button I-th button P pressing operation and the signal that generates, i is the arbitrary integer less than or equal to N, and P is whole more than or equal to 1 Number.
Second:The multi-level signal is that the level trigger in the control device is responded in N number of button S button in each button P pressing operation and the signal that generates, S is the arbitrary integer less than or equal to N more than or equal to 2.
Wherein, when P is more than or equal to 2, the P pressing operation, specially:Between any pressing operation adjacent twice when Between interval less than or equal to a prefixed time interval P pressing operation.In actual applications between any pressing operation adjacent twice Interval was if greater than 1 second, it is impossible to which realization repeatedly presses corresponding function, and performed work(corresponding with last secondary pressing operation Can, such as:User the button A on the line traffic control end of electronic equipment is carried out it is continuous 2 times pressing, button A pressing once it is corresponding be The function that pause is played when listening music using electronic equipment, the pressing keys B and two again after user's first time pressing keys A The interval time of secondary pressing is less than 1 second, and at this moment corresponding function is that electronic equipment closes music player, if user is first After secondary pressing keys A more than 1 second after pressing keys A again, such as 1.5 seconds, the function that at this moment electronic equipment is performed was that pause is played Music player.
In actual applications, it is assumed that electronic equipment is a smart mobile phone, and control device is the earphone matched with smart mobile phone, There is 4 function buttons, such as button A, button B, button C, button D at earphone end, and there are a level trigger and 4 in earphone end Individual function button is connected, and at this moment the first mode for obtaining multi-level signal is specially:
Any one in the function key at user's pressing earphone end, it is assumed that pressing keys A, and pressing once, at this moment ear The pressing operation generation of the level trigger response button A in generator terminal presses once corresponding multi-level signal with button A, and The multi-level signal of generation is transferred to smart mobile phone, and realizes the corresponding functions of button A, such as when user is using earphone audition When happy, it is the button of next function that button A is corresponding, and at this moment smart mobile phone of pressing keys A just plays next song.
The first mode for obtaining multi-level signal can also be any one in the function key at user's pressing earphone end, Assuming that pressing keys B, and be to press multiple, it is assumed that it is 2 times, and user is when pressing and second pressing between first time Between interval be less than 1 second, at this moment continuous 2 pressing operations generation of the level trigger response button B in earphone end is with button B's Corresponding multi-level signal is pressed twice, and the multi-level signal of generation is transferred to smart mobile phone, and realize to button B's Press corresponding function 2 times, such as when user using earphone when music is listened, the corresponding once pressing functions of button B are broadcast for pause Put the music on, 2 pressing functions in button B is corresponding continuous a second are to make electronic equipment close music player.
The mode of second acquisition multi-level signal is specially:It is any several in the function key at user's pressing earphone end, Assuming that pressing keys A and button B, and all press once, and time of the user between pressing keys A and pressing keys B Interval cannot be greater than 1 second, at this moment each pressing operation generation of the level trigger response button A and button B in earphone end Each with button A and button B once presses corresponding multi-level signal, and the multi-level signal of generation is transferred into intelligent hand Machine, and realizing to the corresponding function of each pressing operation of button A and button B, such as user when being conversed using earphone, user Pressing keys A and button B realize during call and realize the function of recording, wherein, in implementing, or Multiple buttons to earphone end respectively press multiple, and such as to button A and button B, respectively pressing realizes new function 2 times, such as makes intelligent hand Machine-operated machine, and time interval of the user between 2 pressing operations of pressing keys A, less than 1 second, such as user is in pressing keys Continue pressing keys B after A0.5 seconds, similarly button B presses the time interval of 2 times and is also required to less than 1 second.
After step slo, the method for the embodiment of the present application just enters step S20, i.e.,:The multi-level signal is carried out Treatment, obtains the first voltage value comprising at least one magnitude of voltage and combines.
In the embodiment of the present application, process step is carried out to the multi-level signal in step S20, is specifically included:
First, at least one of multi-level signal analog signal is obtained;
Then, at least one analog signal is carried out into analog-to-digital conversion, obtains described comprising at least one magnitude of voltage First voltage value is combined.
In actual applications, it is assumed that electronic equipment is a smart mobile phone, and line traffic control equipment is an earphone, and is had on earphone Multiple buttons, such as button A, button B, button C, first, user produces multi-level signal, such as user after pressing button therein Pressing keys A generates multi-level signal corresponding with button A, and multi-level signal is transferred into smart mobile phone, wherein electricity more Ordinary mail number includes at least one analog signal, in implementing, analog signal can be consecutive variations electromagnetic wave, or electricity Pressure signal etc., the application is not particularly limited;Then, smart mobile phone receives multi-level signal, in acquisition multi-level signal At least one analog signal, the analog-digital converter in smart mobile phone converts analog signals into corresponding data signal, such as obtains Analog signal be A, analog signal A is converted into the combination of corresponding magnitude of voltage, such as(1v,3v), then smart mobile phone is according to electricity Pressure value combines the corresponding relation corresponding operational order of generation with operational order, and such as generation is combined with magnitude of voltage(1v,3v)Correspondence Function to receive calls, and execution answers operation accordingly.
After step S20, the method for the embodiment of the present application just enters step S30, i.e.,:Combined and control based on magnitude of voltage Corresponding relation between instruction, generates and performs the first control instruction corresponding with the first voltage value combination.
In the embodiment of the present application, in step S30 generation and execution and the first voltage value combination corresponding first Control instruction step, specifically includes:
First, corresponding table corresponding with the corresponding relation is read from the non-volatile memory cell of the electronic equipment;
Then, based on the corresponding table, it is determined that the first control instruction corresponding with the first voltage value combination.
In actual applications, corresponding relation can be corresponding table between magnitude of voltage combination and control instruction, implement in the application In example, the example such as table one of form:
Magnitude of voltage 1v 2v 3v
1v Receive calls Terminate call Open recording
2v Play next Play upper one first Pause is played
3v Close music player Open music player Switch modes
With reference to above-mentioned table one, to the implementation process of step S30, citing is described:
When electronic equipment is a smart mobile phone, line traffic control end is an earphone and to be matched with smart mobile phone, and with smart mobile phone phase Even, there are multiple buttons, the different function of different button correspondences on the casing of earphone, and have a storage list in smart mobile phone Internal memory in unit, such as smart mobile phone, magnitude of voltage combination and the control of the relevant information for storing smart mobile phone, wherein smart mobile phone Corresponding table such as table one are stored in the memory cell between system instruction.
When user using smart mobile phone when listening music and pressing switch modes button, smart mobile phone determine with it is described The detailed process that magnitude of voltage combines corresponding switch modes control instruction is:
First, corresponding table between magnitude of voltage combination and control instruction is read out from the internal memory in smart mobile phone, i.e. table One, obtain one and read result;
Then, then by the reading result it is transferred to the processor of smart mobile phone;The processor traversal of smart mobile phone is described Table one, it is determined that being combined with magnitude of voltage(3v, 3v)Corresponding control instruction is switch modes, as music player is current Shuffle play mode switches to single circulation pattern.
Technical scheme in above-mentioned the embodiment of the present application, at least has the following technical effect that or advantage:
1st, as a result of obtaining a multi-level signal first, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N;Then the multi-level signal is processed, is obtained comprising at least one magnitude of voltage First voltage value is combined;The corresponding relation between magnitude of voltage combination and control instruction is finally based on, is generated and is performed and described first Magnitude of voltage combines the technical scheme of corresponding first control instruction, i.e. coding is combined to level signal, electronic equipment end is adopted Collection multi-level signal obtains level value combination, confirms key value, obtains corresponding operating instruction, performs corresponding operating, so, have Effect is solved in the prior art when the line traffic control end of electronic equipment increases more button, the deterministic process of electronic equipment it is fault-tolerant Property reduce technical problem, realize improve electronic equipment fault-tolerance technique effect.
2nd, as a result of obtaining a multi-level signal first, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N;Then the multi-level signal is processed, is obtained comprising at least one magnitude of voltage First voltage value is combined;The corresponding relation between magnitude of voltage combination and control instruction is finally based on, is generated and is performed and described first Magnitude of voltage combines the technical scheme of corresponding first control instruction, i.e. coding is combined to level signal, electronic equipment end is adopted Collection multi-level signal obtains level value combination, confirms key value, obtains corresponding operating instruction, performs corresponding operating, so, have Effect solves the imperfect technical problem of autgmentability of electronic equipment in the prior art, and then realizes electronic equipment with good The technique effect of autgmentability.
For example:Need, when the line traffic control end of electronic equipment increases new button to realize new function, such as to increase by one newly Button realize open recorder function, electronic equipment receives the depressed product of new button in the technical scheme in the application Raw multi-level signal, is processed level signal, level value combination corresponding with new button is generated, according to the level of generation Value combination producing operational order, such as opens sound-recording function.
For another example:The external keypad of shell at the line traffic control end of electronic equipment is needed, there are multiple differences on a keypad The button of function, such as corresponding function of one of button is, when user listens music using electronic equipment, to press this button just The play mode of music player can be switched, electronic equipment receives the button in keypad in the technical scheme in the application The multi-level signal of depressed generation, is processed level signal, level value combination corresponding with button is generated, according to life Into level value combination producing operational order, such as when user listens music using electronic equipment switch music player broadcasting mould Formula.
Method in correspondence embodiment one, embodiment one also provides a kind of electronic equipment, and the electronic equipment is individual with comprising M The control device connection of button, M is the integer more than or equal to 1, and in actual applications, the electronic equipment can be flat board electricity Brain, can be mobile phone, or game machine, and the application is not particularly limited.Fig. 2-4 are refer to, the electronic equipment 10 is wrapped Include:
Obtaining unit 101, for obtaining a multi-level signal, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N.
Wherein in the embodiment of the present application, the obtaining unit 101 obtains the mode of the multi-level signal 2 kinds, tool Body is:
First way:When the obtaining unit 101 is specially the first wireless communication module, by the electronic equipment On obtain the multi-level signal with the second wireless communication module of the first radio communication mold Block- matching;
The second way:When the obtaining unit 101 is specially the first wire communication module, by the electronic equipment On the second wire communication module for being matched with first wire communication module obtain the multi-level signal.
In the embodiment of the present application, the mode for generating the multi-level signal also has various, is specifically as follows:
The multi-level signal is specially the during level trigger in the control device is responded to N number of button I P pressing operation of button and the unit of signal that generates, i is the arbitrary integer less than or equal to N, and P is more than or equal to 1 Integer;
Can also be:The level trigger that the multi-level signal is specially in the control device is responded to described N number of P pressing operation of each button in S button in button and the unit of signal that generates, S is to be less than or equal to more than or equal to 2 The arbitrary integer of N.
Wherein, when P is more than or equal to 2, the P pressing operation, specially:Between any pressing operation adjacent twice when Between interval less than or equal to a prefixed time interval P pressing operation.
Processing unit 102, for processing the multi-level signal, obtains comprising at least one magnitude of voltage first Magnitude of voltage is combined.
Wherein, the processing unit 102 is specifically included:
Submodule 102a is obtained, for obtaining at least one of multi-level signal analog signal;
Analog-to-digital conversion module 102b, at least one analog signal to be carried out into analog-to-digital conversion, obtains comprising at least One first voltage value combination of magnitude of voltage.
Generation execution unit 103, for based on magnitude of voltage combination and control instruction between corresponding relation, generate and perform with The first voltage value combines corresponding first control instruction.
Wherein, the processing unit 103 is specifically included:
Read module 103a, for being read from the non-volatile memory cell of the electronic equipment and the corresponding relation pair The corresponding table answered;
Determining module 103b, for based on the corresponding table, it is determined that the first control corresponding with the first voltage value combination System instruction.
One or more technical schemes provided in the embodiment of the present application, at least have the following technical effect that or advantage:
1st, as a result of obtaining a multi-level signal first, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N;Then the multi-level signal is processed, is obtained comprising at least one magnitude of voltage First voltage value is combined;The corresponding relation between magnitude of voltage combination and control instruction is finally based on, is generated and is performed and described first Magnitude of voltage combines the technical scheme of corresponding first control instruction, i.e. coding is combined to level signal, electronic equipment end is adopted Collection multi-level signal obtains level value combination, confirms key value, obtains corresponding operating instruction, performs corresponding operating, so, have Effect is solved in the prior art when the line traffic control end of electronic equipment increases more button, the deterministic process of electronic equipment it is fault-tolerant Property reduce technical problem, realize improve electronic equipment fault-tolerance technique effect.
2nd, as a result of obtaining a multi-level signal first, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N;Then the multi-level signal is processed, is obtained comprising at least one magnitude of voltage First voltage value is combined;The corresponding relation between magnitude of voltage combination and control instruction is finally based on, is generated and is performed and described first Magnitude of voltage combines the technical scheme of corresponding first control instruction, i.e. coding is combined to level signal, electronic equipment end is adopted Collection multi-level signal obtains level value combination, confirms key value, obtains corresponding operating instruction, performs corresponding operating, so, have Effect solves the imperfect technical problem of autgmentability of electronic equipment in the prior art, and then realizes electronic equipment with good The technique effect of autgmentability.
For example:Need, when the line traffic control end of electronic equipment increases new button to realize new function, such as to increase by one newly Button realize open recorder function, electronic equipment receives the depressed product of new button in the technical scheme in the application Raw multi-level signal, is processed level signal, level value combination corresponding with new button is generated, according to the level of generation Value combination producing operational order, such as opens sound-recording function.
For another example:The external keypad of shell at the line traffic control end of electronic equipment is needed, there are multiple differences on a keypad The button of function, such as corresponding function of one of button is, when user listens music using electronic equipment, to press this button just The play mode of music player can be switched, electronic equipment receives the button in keypad in the technical scheme in the application The multi-level signal of depressed generation, is processed level signal, level value combination corresponding with button is generated, according to life Into level value combination producing operational order, such as when user listens music using electronic equipment switch music player broadcasting mould Formula.
Method in correspondence embodiment one, embodiment one also provides a kind of line traffic control equipment, can be connected with an electronic equipment, In actual applications, the line traffic control equipment can be earphone, or remote control, and the electronic equipment can be flat board electricity Brain, can be mobile phone, or game machine, and the application is not particularly limited.
Fig. 5 is refer to, the line traffic control equipment in the embodiment of the present application includes:
Casing 201;
One group of button, is arranged on the casing 201, and one group of button includes M button, and M is whole more than or equal to 1 Number, implements and refer to Fig. 5, and the button 1-6 in figure is one group of button;
At least one earplug, for playing the voice signal from the electronic equipment, implements in refer to Fig. 5 Earplug 1 and earplug 2;
Level trigger 202, in the casing 201, for responding W to the N number of button in the M button Pressing operation generates multi-level signal, wherein, N is the positive integer less than or equal to M, and W is the positive integer more than or equal to N;
Input/output interface, is connected, with least one earplug and the level trigger 202 for that will come from respectively The voice signal of the electronic equipment is input at least one earplug;For the multi-level signal to be exported to institute Electronic equipment is stated, so that the electronic equipment can be processed the multi-level signal, is obtained and is included at least one voltage The first voltage value combination of value, and based on the corresponding relation between magnitude of voltage combination and control instruction, generation and the described first electricity Pressure value combines corresponding first control instruction, implements and refer to Fig. 5, and the output interface in figure has output interface a, output to connect Mouth b, output interface b, input interface have input interface a.
One or more technical schemes provided in the embodiment of the present application, at least have the following technical effect that or advantage:
1st, as a result of obtaining a multi-level signal first, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N;Then the multi-level signal is processed, is obtained comprising at least one magnitude of voltage First voltage value is combined;The corresponding relation between magnitude of voltage combination and control instruction is finally based on, is generated and is performed and described first Magnitude of voltage combines the technical scheme of corresponding first control instruction, i.e. coding is combined to level signal, electronic equipment end is adopted Collection multi-level signal obtains level value combination, confirms key value, obtains corresponding operating instruction, performs corresponding operating, so, have Effect is solved in the prior art when the line traffic control end of electronic equipment increases more button, the deterministic process of electronic equipment it is fault-tolerant Property reduce technical problem, realize improve electronic equipment fault-tolerance technique effect.
2nd, as a result of obtaining a multi-level signal first, wherein, the multi-level signal is the control device pair The signal that W pressing operation of the N number of button in the M button is responded and generated, wherein, N is just whole less than or equal to M Number, W is the positive integer more than or equal to N;Then the multi-level signal is processed, is obtained comprising at least one magnitude of voltage First voltage value is combined;The corresponding relation between magnitude of voltage combination and control instruction is finally based on, is generated and is performed and described first Magnitude of voltage combines the technical scheme of corresponding first control instruction, i.e. coding is combined to level signal, electronic equipment end is adopted Collection multi-level signal obtains level value combination, confirms key value, obtains corresponding operating instruction, performs corresponding operating, so, have Effect solves the imperfect technical problem of autgmentability of electronic equipment in the prior art, and then realizes electronic equipment with good The technique effect of autgmentability.
For example:Need, when the line traffic control end of electronic equipment increases new button to realize new function, such as to increase by one newly Button realize open recorder function, electronic equipment receives the depressed product of new button in the technical scheme in the application Raw multi-level signal, is processed level signal, level value combination corresponding with new button is generated, according to the level of generation Value combination producing operational order, such as opens sound-recording function.
For another example:The external keypad of shell at the line traffic control end of electronic equipment is needed, there are multiple differences on a keypad The button of function, such as corresponding function of one of button is, when user listens music using electronic equipment, to press this button just The play mode of music player can be switched, electronic equipment receives the button in keypad in the technical scheme in the application The multi-level signal of depressed generation, is processed level signal, level value combination corresponding with button is generated, according to life Into level value combination producing operational order, such as when user listens music using electronic equipment switch music player broadcasting mould Formula.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
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 (16)

1. a kind of control method, applies in an electronic equipment, wherein, the electronic equipment sets with the control comprising M button Standby connection, M is the integer more than or equal to 1, it is characterised in that methods described includes:
Obtain a multi-level signal, wherein, the multi-level signal be the control device to the M button in it is N number of by The signal that W pressing operation of key is responded and generated, wherein, N is the positive integer less than or equal to M, and W is just whole more than or equal to N Number, including:When having a level trigger on the control device, the multi-level signal is specially the level and touches The hair device signal that is generated to P pressing operation of each button in S button in N number of button of response, S be more than etc. In 2 arbitrary integers less than or equal to N, wherein, when P is more than or equal to 2, any pressing adjacent twice in the P pressing operation The time interval of operation room is less than or equal to a prefixed time interval;
The multi-level signal is processed, the first voltage value comprising at least one magnitude of voltage is obtained and is combined;
Based on the corresponding relation between magnitude of voltage combination and control instruction, generate and perform and be corresponding with the first voltage value combination First control instruction.
2. the method for claim 1, it is characterised in that there is the first wireless communication module on the control device When, the multi-level signal of the acquisition one, specially:
Obtain described with the second wireless communication module of the first radio communication mold Block- matching by the electronic equipment Multi-level signal;Or
When there is the first wire communication module on the control device, the multi-level signal of the acquisition one, specially:
Obtain described by the second wire communication module matched with first wire communication module on the electronic equipment Multi-level signal.
3. the method for claim 1, it is characterised in that when having a level trigger on the control device, institute Multi-level signal is stated, specially:
The level trigger responds the signal generated to P pressing operation of i-th button in N number of button, and i is Arbitrary integer less than or equal to N, P is the integer more than or equal to 1.
4. the method for claim 1, it is characterised in that described to process the multi-level signal, comprising The first voltage value combination of at least one magnitude of voltage, specifically includes:
Obtain at least one of multi-level signal analog signal;
At least one analog signal is carried out into analog-to-digital conversion, the first voltage value comprising at least one magnitude of voltage is obtained Combination.
5. the method for claim 1, it is characterised in that described based on magnitude of voltage combination pass corresponding between control instruction System, generates and performs the first control instruction corresponding with the first voltage value combination, specifically includes:
Corresponding table corresponding with the corresponding relation is read from the non-volatile memory cell of the electronic equipment;
Based on the corresponding table, it is determined that the first control instruction corresponding with the first voltage value combination.
6. a kind of electronic equipment, the electronic equipment is connected with the control device comprising M button, and M is whole more than or equal to 1 Number, it is characterised in that the electronic equipment includes:
Obtaining unit, for obtaining a multi-level signal, wherein, the multi-level signal is the control device to the M The signal that W pressing operation of the N number of button in button is responded and generated, wherein, N is the positive integer less than or equal to M, and W is big In the positive integer equal to N, including:There is an electric trigger, the multi-level signal is specially institute on the control device State the signal that level trigger response is generated to P pressing operation of each button in S button in N number of button Unit, S is the arbitrary integer less than or equal to N more than or equal to 2, wherein, when P is more than or equal to 2, appoint in the P pressing operation Meaning time interval twice between adjacent pressing operation is less than or equal to a prefixed time interval;
Processing unit, for processing the multi-level signal, obtains the first voltage value comprising at least one magnitude of voltage Combination;
Generation execution unit, for based on the corresponding relation between magnitude of voltage combination and control instruction, generating and performing and described the One magnitude of voltage combines corresponding first control instruction.
7. electronic equipment as claimed in claim 6, it is characterised in that the obtaining unit is specially:
First wireless communication module, for by with the first radio communication mold Block- matching second on the electronic equipment Wireless communication module obtains the multi-level signal;Or
First wire communication module, for by matched with first wire communication module second on the electronic equipment Wire communication module obtains the multi-level signal.
8. electronic equipment as claimed in claim 6, it is characterised in that when having an electric trigger on the control device, The multi-level signal is specially P pressing operation of the level trigger response to i-th button in N number of button And the unit of the signal for generating, i is the arbitrary integer less than or equal to N, and P is the integer more than or equal to 1.
9. electronic equipment as claimed in claim 6, it is characterised in that the processing unit includes:
Submodule is obtained, for obtaining at least one of multi-level signal analog signal;
Analog-to-digital conversion module, at least one analog signal to be carried out into analog-to-digital conversion, obtains and includes at least one voltage The first voltage value combination of value.
10. electronic equipment as claimed in claim 6, it is characterised in that the generation execution unit includes:
Read module, it is corresponding with the corresponding relation corresponding for being read from the non-volatile memory cell of the electronic equipment Table;
Determining module, for based on the corresponding table, it is determined that the first control instruction corresponding with the first voltage value combination.
A kind of 11. line traffic control equipments, can be connected with an electronic equipment, it is characterised in that including:
Casing;
One group of button, is set on the housing, and one group of button includes M button, and M is the integer more than or equal to 1;
At least one earplug, for playing the voice signal from the electronic equipment;
Level trigger, in the casing, life is responded for the W pressing operation to the N number of button in the M button Into multi-level signal, wherein, N is the positive integer less than or equal to M, and W is the positive integer more than or equal to N;
Input/output interface, is connected with least one earplug and the level trigger respectively, for will be from the electricity The voice signal of sub- equipment is input at least one earplug;For the multi-level signal to be exported to the electronics Equipment, so that the electronic equipment can be processed the multi-level signal, obtains comprising at least one magnitude of voltage the One magnitude of voltage is combined, and based on the corresponding relation between magnitude of voltage combination and control instruction, generation and the first voltage value group Close corresponding first control instruction.
12. line traffic control equipments as claimed in claim 11, it is characterised in that the line traffic control equipment also includes:
External interface, is set on the housing, for connecting the device with button.
13. line traffic control equipments as claimed in claim 11, it is characterised in that the level trigger specifically for:Response is to institute P pressing operation for stating i-th button in N number of button generates the multi-level signal, and i is the arbitrary integer less than or equal to N, P is the integer more than or equal to 1.
14. line traffic control equipments as claimed in claim 11, it is characterised in that the level trigger specifically for:Response is to institute P pressing operation for stating each button in S button in N number of button generates the multi-level signal, and S is small more than or equal to 2 In the arbitrary integer equal to N.
15. line traffic control equipment as described in claim 13 or 14, it is characterised in that when P is more than or equal to 2, the P pressing behaviour P pressing operation of the time interval less than or equal to a prefixed time interval in work between any pressing operation adjacent twice.
16. line traffic control equipments as claimed in claim 11, it is characterised in that the input/output interface is specially:
Output interface is wirelessly input to, for the voice signal to be wirelessly input at least one earplug;Or, For the multi-level signal wirelessly to be exported to the electronic equipment;Or
Wired input output interface, for the voice signal to be input at least one earplug by wired mode;Or For the multi-level signal to be exported to the electronic equipment by wired mode.
CN201310309103.1A 2013-07-22 2013-07-22 A kind of control method and electronic equipment Active CN104330983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310309103.1A CN104330983B (en) 2013-07-22 2013-07-22 A kind of control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310309103.1A CN104330983B (en) 2013-07-22 2013-07-22 A kind of control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104330983A CN104330983A (en) 2015-02-04
CN104330983B true CN104330983B (en) 2017-06-27

Family

ID=52405730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310309103.1A Active CN104330983B (en) 2013-07-22 2013-07-22 A kind of control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104330983B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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
CN105245779A (en) * 2015-10-10 2016-01-13 广东欧珀移动通信有限公司 Method and device for performing shooting setting with selfie stick
CN106708462A (en) * 2016-11-30 2017-05-24 宇龙计算机通信科技(深圳)有限公司 Playing mode switching method and device and headset

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100770452B1 (en) * 2001-06-26 2007-10-26 엘지전자 주식회사 apparatus of handy terminal with voice menu and earphone
US20070197160A1 (en) * 2006-02-01 2007-08-23 Health Kristyn K Music share
CN101102337A (en) * 2006-07-07 2008-01-09 上海晨兴电子科技有限公司 A method for realizing multimedia line control earphone function on mobile phone
CN101216731A (en) * 2007-01-05 2008-07-09 联想移动通信科技有限公司 Portable electronic apparatus and its line traffic control accomplishing method
CN101493728B (en) * 2008-01-24 2011-08-10 中兴通讯股份有限公司 Line control push-button detecting and recognizing device and method capable of identifying combined key
CN101533329A (en) * 2008-03-10 2009-09-16 中兴通讯股份有限公司 Terminal equipment with the function of automatically executing actions and method for executing actions of users
CN102185960A (en) * 2011-01-04 2011-09-14 惠州Tcl移动通信有限公司 Player program switching method and device based on mobile phone
CN202600109U (en) * 2012-03-30 2012-12-12 快捷半导体(苏州)有限公司 Button detection circuit, filter circuit and external equipment button detection chip

Also Published As

Publication number Publication date
CN104330983A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN207518810U (en) Charging box
CN104330983B (en) A kind of control method and electronic equipment
CN206283621U (en) A kind of intelligent remote controller
CN202261734U (en) Touch control earphone
CN104980843A (en) Horn device and horn system thereof
CN103823655A (en) Audio output method, electronic equipment and first audio output device
CN108922528A (en) Method and apparatus for handling voice
CN109067965A (en) Interpretation method, translating equipment, wearable device and storage medium
CN209627629U (en) A kind of TWS bluetooth headset with audio playing function
CN104105020B (en) Bluetooth headset, charging method and charging system
CN104330981B (en) Key control method, electronic device and line-control device
CN104769966A (en) Receiver device
CN103633952B (en) switching mode amplifier operation
CN207354555U (en) A kind of wireless headset
CN106708462A (en) Playing mode switching method and device and headset
CN206100377U (en) Headphone device
CN101662265B (en) Volume drive-by-wire device and method thereof
CN203788377U (en) Voice switch channel LED TV
CN104853035B (en) time obtaining method and device
CN204930474U (en) A kind of musical glove
CN202342419U (en) Multifunctional music-sensation massager
CN203935493U (en) Head bone-conduction device
CN105490673A (en) Multi-value key, method for detecting output of multi-value key and headphone
CN105554617A (en) Earphone system
CN102394984B (en) Cellphone and ringtone playing 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