CN104301824B - Line traffic control equipment, controller, method and device - Google Patents

Line traffic control equipment, controller, method and device Download PDF

Info

Publication number
CN104301824B
CN104301824B CN201410512987.5A CN201410512987A CN104301824B CN 104301824 B CN104301824 B CN 104301824B CN 201410512987 A CN201410512987 A CN 201410512987A CN 104301824 B CN104301824 B CN 104301824B
Authority
CN
China
Prior art keywords
terminal
corresponding
push button
button signalling
earphone
Prior art date
Application number
CN201410512987.5A
Other languages
Chinese (zh)
Other versions
CN104301824A (en
Inventor
谢振宇
任凯
王舟
Original Assignee
广州酷狗计算机科技有限公司
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 广州酷狗计算机科技有限公司 filed Critical 广州酷狗计算机科技有限公司
Priority to CN201410512987.5A priority Critical patent/CN104301824B/en
Publication of CN104301824A publication Critical patent/CN104301824A/en
Application granted granted Critical
Publication of CN104301824B publication Critical patent/CN104301824B/en

Links

Abstract

The invention discloses earphone line control equipment, controller, method and device, belongs to equipment control field.The earphone line control equipment includes:Headset plug, at least one standard feature button and at least one user-defined press key;At least one standard feature button passes through the plug outputting standard push button signalling when pressed;At least one user-defined press key exports user-defined press key signal by the plug when pressed.The present invention is by setting at least one user-defined press key signal, the user-defined press key signal outside push button signalling in system layer when at least one user-defined press key is pressed by headset plug outlet terminal corresponding to default each control instruction, when installation can identify the application of user-defined press key signal corresponding to the custom feature button in the terminal, the function of extension earphone line control equipment can be reached, the effect of the use demand of user can be met.

Description

Line traffic control equipment, controller, method and device

Technical field

The present invention relates to equipment control field, more particularly to a kind of line traffic control equipment, controller, method and device

Background technology

With the continuous development of electronic technology, the control mode of electronic equipment is also more and more.For example user can pass through Button in earphone line control equipment is controlled to the terminal being connected in earphone line control equipment.

The existing scheme by earphone line control Facility Control Terminal, generally in earphone line control equipment set three press Key:Volume plus key, volume down key and receiving talking key, the plug of earphone line control equipment are connected with the earphone jack of terminal, When a certain button in earphone line control equipment receives button operation, can produce one to should button operation button believe Number.In the system layer of terminal pre-define each push button signalling corresponding to control instruction, when receive line traffic control equipment transmission by During key signals, the system layer of terminal inquires about corresponding control instruction according to the push button signalling, and control instruction is sent to terminal In the application program currently run, the control instruction is performed by the application program.

During the present invention is realized, inventor has found that prior art at least has problems with:

Earphone line control equipment only sends the button that corresponding control instruction is preset with the system layer of the terminal to terminal During signal, terminal could be controlled, and default control instruction is generally less in the system layer of terminal, causes earphone line control The function of equipment is limited, it is impossible to meets the use demand of user.

The content of the invention

Only export to solve earphone line control equipment in the prior art and be preset with the system layer of the terminal pair to terminal During the push button signalling for the control instruction answered, mobile terminal could be controlled, cause the function of earphone line control equipment limited, no The problem of disclosure satisfy that the use demand of user, the invention provides a kind of line traffic control equipment, controller, method and device.It is described Technical scheme is as follows:

First aspect, there is provided a kind of earphone line control equipment, the earphone line control equipment include:Controller, headset plug, At least one standard feature button and at least one user-defined press key;

The controller respectively with least one specified function button, at least one user-defined press key and institute State headset plug to be electrical connected, for controlling the earphone line control equipment compatible with terminal;

At least one standard feature button and at least one user-defined press key respectively with the electrical phase of the plug Even;

At least one standard feature button passes through the plug outputting standard push button signalling, the mark when pressed Quasi- push button signalling be terminal system layer in push button signalling corresponding to default each control instruction;

At least one user-defined press key when pressed by the plug export user-defined press key signal, it is described from Define the push button signalling corresponding to default each control instruction in the system layer that push button signalling is not the terminal.

Optionally, at least one standard feature button includes:Volume plus key, volume down key and receiving talking key.

Optionally, the quantity of the user-defined press key is 1.

Optionally, the earphone line control equipment also includes:Power supply;

The power supply is connected with each device electric in the earphone line control equipment.

Second aspect, there is provided a kind of compatible method to set up, in earphone line control equipment as described in relation to the first aspect, institute The method of stating includes:

When the headset plug of the earphone line control equipment inserts the earphone jack of terminal, determine that the earphone of the terminal is inserted In at least one terminal that hole includes, the terminal for supplying power for outside;

The location of terminal according in the earphone jack of the terminal for supplying power for outside, sets the ear Each self-corresponding function of at least one terminal that machine transplanting of rice head includes.

Optionally, the earphone jack includes the first terminal, Second terminal, third terminal and the 4th end successively from inside to outside Son;The first terminal of the headset plug is corresponding with the first terminal of the earphone jack, the Second terminal of the headset plug It is corresponding with the Second terminal of the earphone jack, the third terminal pair of the third terminal of the headset plug and the earphone jack Should, the forth terminal of the headset plug is corresponding with the forth terminal of the earphone jack;

The location of described terminal according in the earphone jack of the terminal for supplying power for outside, sets institute Each self-corresponding function of at least one terminal that headset plug includes is stated, including:

When the terminal for supplying power for outside is the third terminal of the earphone jack, by the of the headset plug The function setting of one terminal is L channel function, is R channel function by the function setting of the Second terminal of the headset plug, It is microphone function by the function setting of the third terminal of the headset plug, by the function of the forth terminal of the headset plug It is arranged to ground wire function;

When the terminal for supplying power for outside is the forth terminal of the earphone jack, by the of the headset plug The function setting of one terminal is L channel function, is R channel function by the function setting of the Second terminal of the headset plug, It is microphone function by the function setting of the forth terminal of the headset plug, by the function of the third terminal of the headset plug It is arranged to ground wire function.

The third aspect, there is provided a kind of controller, in earphone line control equipment as described in relation to the first aspect, the control Device includes:

Determining module, for when the headset plug of the earphone line control equipment inserts the earphone jack of terminal, determining institute State at least one terminal that the earphone jack of terminal includes, the terminal for supplying power for outside;

Setup module, for being used for the position residing for the terminal of supplying power for outside described in the earphone jack according to the terminal Put, each self-corresponding function of at least one terminal for setting the headset plug to include.

Optionally, the setup module, including:

First setting unit, for when the terminal for supplying power for outside be the earphone jack third terminal when, It is L channel function by the function setting of the first terminal of the headset plug, by the function of the Second terminal of the headset plug R channel function is arranged to, is microphone function by the function setting of the third terminal of the headset plug, the earphone is inserted The function setting of the forth terminal of head is ground wire function;

Second setting unit, for when the terminal for supplying power for outside be the earphone jack forth terminal when, It is L channel function by the function setting of the first terminal of the headset plug, by the function of the Second terminal of the headset plug R channel function is arranged to, is microphone function by the function setting of the forth terminal of the headset plug, the earphone is inserted The function setting of the third terminal of head is ground wire function;

The earphone jack includes the first terminal, Second terminal, third terminal and forth terminal successively from inside to outside;It is described The first terminal of headset plug is corresponding with the first terminal of the earphone jack, the Second terminal of the headset plug and the ear The Second terminal in machine transplanting of rice hole is corresponding, and the third terminal of the headset plug is corresponding with the third terminal of the earphone jack, described The forth terminal of headset plug is corresponding with the forth terminal of the earphone jack.

Fourth aspect, there is provided a kind of signal output method, in earphone line control equipment as described in relation to the first aspect, institute The method of stating includes:

When the headset plug of the earphone line control equipment inserts the earphone jack of terminal, the operation system of the terminal is identified The system type of system;

Receive the standard key signal generated when the standard feature button is pressed;

When the operating system of the terminal is not the operating system being adapted to the standard key signal, according to the end The standard key signal is converted into compatibility key signal by the system type of the operating system at end, and the compatibility key signal exists In the operating system of the terminal corresponding function with the standard key signal in the behaviour being adapted to the standard key signal It is same to make corresponding function phase in system;

The compatibility key signal is exported to the terminal by the plug.

Optionally, the operating system of the identification terminal, including:

By the plug to the terminal export test push button signalling, it is described test push button signalling be with it is described test by A default push button signalling in operating system corresponding to key signals, different operating system correspond to different test button letters Number;

Detect the response signal whether terminal returns to the test push button signalling;

If the terminal returns to the response signal, by the system type identification of the operating system of the terminal for institute State the system type of operating system corresponding to test push button signalling;

If the terminal does not return to the response signal, exporting next operation to the terminal by the plug is Test push button signalling corresponding to system.

5th aspect, there is provided a kind of controller, in earphone line control equipment as described in relation to the first aspect, the control Device includes:

System identification module, for when the headset plug of the earphone line control equipment inserts the earphone jack of terminal, knowing The system type of the operating system of not described terminal;

First signal receiving module, for receiving the standard key signal generated when the standard feature button is pressed;

Signal conversion module, for not being the operation that is adapted to the standard key signal when the operating system of the terminal During system, the standard key signal is converted into by compatibility key signal according to the system type of the operating system of the terminal, The compatibility key signal in the operating system of the terminal corresponding function and the standard key signal with the mark Corresponding function phase is same in the operating system of quasi- push button signalling adaptation;

Signal output module, for exporting the compatibility key signal to the terminal by the plug.

Optionally, the system identification module, including:

Signal output unit, for exporting test push button signalling, the test button to the terminal by the plug Signal is a default push button signalling in operating system corresponding with the test push button signalling, and different operating system is corresponding Different test push button signallings;

First judging unit, the response signal of the test push button signalling whether is returned to for detecting the terminal;

Recognition unit, if the judged result for first judging unit returns to the response signal for the terminal, The then system class by the system type identification of the operating system of the terminal for operating system corresponding to the test push button signalling Type.

Optionally, the signal output unit, if the judged result for being additionally operable to first judging unit is the terminal The response signal is not returned, then is exported by the plug to the terminal and button letter is tested corresponding to next operating system Number.

6th aspect, there is provided a kind of terminal control method, be connected for the earphone line control equipment described in first aspect In terminal, methods described includes:

The earphone line control equipment is received by the system layer of the terminal to export to the terminal by headset plug Push button signalling, the user-defined press key signal and/or the standard key signal are included in the push button signalling;

Disappeared by the control that using transmission carries the push button signalling of the system layer of the terminal into the terminal Breath;

Control instruction corresponding to the control message is obtained by the application;

The control instruction is performed by the application.

Optionally, the system layer by the terminal carries the button letter into the terminal using transmission Number control message, including:

When often receiving a push button signalling, the control of the push button signalling is carried by the system layer generation of the terminal Message processed;

The control message is sent by application of the system layer of the terminal into the terminal.

Optionally, methods described also includes:

Shield the control instruction that the system layer of the terminal is sent to the application.

Optionally, the system layer by the terminal carries the button letter into the terminal using transmission Number control message, including:

Whether the push button signalling received by the system layer detection of the terminal is user-defined press key signal;

If the push button signalling is the user-defined press key signal, carried by the system layer generation of the terminal State the control message of user-defined press key signal;

The control message is sent by application of the system layer of the terminal into the terminal.

Optionally, it is described to pass through institute when control instruction corresponding to the control instruction is the user-defined press key signal State using the execution control instruction, including:

Obtain the first reproduction time section corresponding to a multimedia file;

By in multimedia file described in the application plays, in multimedia corresponding with the first reproduction time section Hold;

Before content of multimedia corresponding to the specified reproduction time section finishes, judge whether again by described Using getting the control instruction;

If judged result is to get the control instruction again by the application, by the application from the beginning Play the multimedia file.

Optionally, methods described also includes:

If judged result is does not get the control instruction again by the application, in first reproduction time After content of multimedia corresponding to section finishes, the second reproduction time section corresponding to next multimedia file is obtained, and lead to Cross in next multimedia file described in the application plays, content of multimedia corresponding to the second reproduction time section.

7th aspect, there is provided a kind of terminal control mechanism, be connected for earphone line control equipment as described in relation to the first aspect Terminal in, described device includes:

Secondary signal receiving module, pass through earphone for receiving the earphone line control equipment by the system layer of the terminal Plug exports the push button signalling to the terminal, and the user-defined press key signal and/or the mark are included in the push button signalling Quasi- push button signalling;

Message transmission module, it is described for being carried using transmission into the terminal of the system layer by the terminal The control message of push button signalling;

Instruction acquisition module, for obtaining control instruction corresponding to the control message by the application;

Execution module is instructed, for performing the control instruction by the application.

Optionally, the message transmission module, including:

First generation unit, during for often receiving a push button signalling, the system layer generation for passing through the terminal carries There is the control message of the push button signalling;

First transmitting element, send the control for application of the system layer by the terminal into the terminal and disappear Breath.

Optionally, described device also includes:

Shroud module, the control instruction that the system layer for shielding the terminal is sent to the application.

Optionally, the message transmission module, including:

Detection unit, whether the push button signalling received for the system layer detection by the terminal is self-defined Push button signalling;

Second generation unit, if being the user-defined press key signal for the push button signalling, pass through the terminal System layer generates the control message for carrying the user-defined press key signal;

Second transmitting element, send the control for application of the system layer by the terminal into the terminal and disappear Breath.

Optionally, the instruction execution module, including:

Period acquiring unit, for being control instruction corresponding to the user-defined press key signal when the control instruction When, obtain the first reproduction time section corresponding to a multimedia file;

First broadcast unit, for by multimedia file described in the application plays, the first reproduction time section Corresponding content of multimedia;

Second judging unit, for before content of multimedia corresponding to the specified reproduction time section finishes, sentencing It is disconnected whether again by the application to get the control instruction;

Second broadcast unit, if the judged result for second judging unit is to be got again by the application The control instruction, then the multimedia file is played by the application from the beginning.

Optionally, the period acquiring unit, if being additionally operable to the judged result of second judging unit as not again The control instruction is got by the application, then finished in content of multimedia corresponding to the first reproduction time section Afterwards, the second reproduction time section corresponding to next multimedia file is obtained;

First broadcast unit, it is additionally operable to by next multimedia file described in the application plays, described Content of multimedia corresponding to two reproduction time sections.

The beneficial effect of technical scheme provided by the invention is:

By setting at least one user-defined press key signal, pass through earphone when at least one user-defined press key is pressed The user-defined press key signal outside push button signalling in the system layer of plug outlet terminal corresponding to default each control instruction, When installation can identify the application of user-defined press key signal corresponding to the custom feature button in the terminal, you can to reach The function of earphone line control equipment is extended, the effect of user's use demand can be met.

Brief description of the drawings

Fig. 1 is the equipment pie graph for the earphone line control equipment that one embodiment of the invention provides;

Fig. 2 is the equipment pie graph for the earphone line control equipment that another embodiment of the present invention provides;

Fig. 3 is the method flow diagram for the compatible method to set up that one embodiment of the invention provides;

Fig. 4 is the method flow diagram for the compatible method to set up that another embodiment of the present invention provides;

Fig. 5 is that headset plug that another embodiment of the present invention provides each terminal under two kinds of distinct interface standards is corresponding Functional schematic;

Fig. 6 is the structural representation for the controller that one embodiment of the invention provides;

Fig. 7 is the structural representation for the controller that another embodiment of the present invention provides;

Fig. 8 is the method flow diagram for the signal output method that one embodiment of the invention provides;

Fig. 9 is the method flow diagram for the signal output method that another embodiment of the present invention provides;

Figure 10 is the structural representation for the controller that one embodiment of the invention provides;

Figure 11 is the structural representation for the controller that another embodiment of the present invention provides;

Figure 12 is the method flow diagram for the terminal control method that one embodiment of the invention provides;

Figure 13 is the method flow diagram for the terminal control method that another embodiment of the present invention provides;

Figure 14 is the method flow diagram for the terminal control method that further embodiment of this invention provides;

Figure 15 is the structure drawing of device for the terminal control mechanism that one embodiment of the invention provides;

Figure 16 is the structure drawing of device for the terminal control mechanism that another embodiment of the present invention provides;

Figure 17 is the block diagram for the terminal that one embodiment of the invention provides.

Embodiment

To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.

Fig. 1 is refer to, the equipment pie graph of the earphone line control equipment provided it illustrates one embodiment of the invention, the ear Machine line traffic control equipment can include:Headset plug 102, at least one standard feature button 104 and at least one user-defined press key 106;

At least one standard feature button 104 and at least one user-defined press key 106 are electrical with the plug 102 respectively It is connected;

At least one standard feature button 104 when pressed by the outputting standard push button signalling of headset plug 102, The standard key signal be terminal system layer in push button signalling corresponding to default each control instruction;

At least one user-defined press key 106 exports user-defined press key signal by the headset plug 102 when pressed, The user-defined press key signal be not the terminal system layer in push button signalling corresponding to default each control instruction.

In the earphone line control equipment shown in the present embodiment, except comprising can be pressed by the standard feature of terminal Direct Recognition Outside key, the custom feature button that terminal is unable to Direct Recognition can also be included, when installation can identify this certainly in the terminal Corresponding to defined function button during the application of user-defined press key signal, you can to realize the Function Extension of earphone line control equipment, from And the effect of user's use demand can be met.

In summary, earphone line control equipment provided in an embodiment of the present invention, by setting at least one user-defined press key to believe Number, default each control in the system layer when at least one user-defined press key is pressed by headset plug outlet terminal User-defined press key signal outside the corresponding push button signalling of instruction, when installation can identify that the custom feature is pressed in the terminal Corresponding to key during the application of user-defined press key signal, you can to reach the function of extension earphone line control equipment, can meet The effect of user's use demand.

Fig. 2 is refer to, the equipment pie graph of the earphone line control equipment provided it illustrates another embodiment of the present invention, the ear Machine line traffic control equipment can include:Headset plug 202, at least one standard feature button 204 and at least one user-defined press key 206;

At least one standard feature button 204 and at least one user-defined press key 206 are electrical with the plug 202 respectively It is connected;

At least one standard feature button 204 when pressed by the outputting standard push button signalling of headset plug 202, The standard key signal be terminal system layer in push button signalling corresponding to default each control instruction;

At least one user-defined press key 206 exports user-defined press key signal by the headset plug 202 when pressed, The user-defined press key signal be not the terminal system layer in push button signalling corresponding to default each control instruction.

In the earphone line control equipment shown in the present embodiment, except comprising can be by the standard feature of terminal Direct Recognition Outside button, the custom feature button that terminal is unable to Direct Recognition can also be included, when installation can identify this in the terminal Corresponding to custom feature button during the application of user-defined press key signal, you can to realize the Function Extension of earphone line control equipment, So that it disclosure satisfy that the effect of user's use demand.

In addition, the line control earphone also includes:Controller 208;

The controller 208 respectively with least one specified function button 204, at least one user-defined press key 206 with And the headset plug 202 is electrical connected.

In addition, more specifically, at least one standard feature button 204 includes:Volume plus key 2042, volume down key 2044 and receiving talking key 2046.

The quantity of the user-defined press key 206 is 1.

In the present embodiment, earphone line control equipment only can include a user-defined press key.

In addition, the earphone line control equipment also includes:Power supply 210;

The power supply 210 is connected with each device electric in the line control earphone.

Multiple terminals are included in earphone line control equipment, accordingly, the end of identical quantity are also included in the earphone jack of terminal Son, when the earphone jack in the headset plug insertion terminal of earphone line control equipment, multiple terminals and earphone in headset plug Multiple terminals in jack connect one to one.Some in earphone jack terminals can be configured to allow for electric terminal by terminal, For being powered for earphone line control equipment, accordingly, terminal corresponding with the power supply terminal is used to receive the terminal in headset plug Power supply.

Because different terminals may use different earphone interface standards, and in different earphone interface standards, ear The power supply terminal position in machine transplanting of rice hole is not quite similar, and when the interface standard discomfort timing of headset plug and earphone jack, terminal is with regard to nothing Method is powered for earphone line control equipment.In order to avoid this situation, in embodiments of the present invention, it is provided with earphone line control equipment solely Vertical power supply, it is not necessary to terminal by earphone jack be its power supply so that earphone line control equipment can compatible with earphone insert The different multiple terminal of the interface standard in hole.

In summary, earphone line control equipment provided in an embodiment of the present invention, by setting at least one user-defined press key to believe Number, default each control in the system layer when at least one user-defined press key is pressed by headset plug outlet terminal User-defined press key signal outside the corresponding push button signalling of instruction, when installation can identify that the custom feature is pressed in the terminal Corresponding to key during the application of user-defined press key signal, you can to reach the function of extension earphone line control equipment, can meet The effect of user's use demand.

In addition, earphone line control equipment provided in an embodiment of the present invention, by setting independent power supply, avoids working as earphone The standard discomfort timing of plug and earphone jack, terminal can not be the situation of earphone line control equipment power supply, reach compatible with earphone and insert The effect of the different multiple terminal of the interface standard in hole.

Following three kinds of incompatible situations are there may be between earphone line control equipment and terminal shown in above-mentioned Fig. 1 or Fig. 2:

First, when the headset plug of earphone line control equipment is different from the interface standard that the earphone jack of terminal adheres to separately, earphone Plug may be different from the function of terminal corresponding to position in earphone jack, cause earphone line control equipment and terminal incompatible.

Second, when the operating system run in the operating system and terminal that earphone line control equipment is supported is inconsistent, earphone Corresponded in line traffic control equipment a certain function standard feature button be pressed caused by standard key signal and terminal system layer In standard key signal corresponding to the default function it is inconsistent, so as to cause earphone line control equipment and the terminal incompatible.

3rd, due to being not provided with control instruction corresponding to user-defined press key signal, i.e. earphone line control in the system layer of terminal User-defined press key in equipment be pressed caused by user-defined press key signal can not be identified by the system layer of terminal, so as to cause Cause earphone line control equipment and the terminal incompatible.

Processing to these three incompatibility problems is described the following examples of the present invention respectively.

Fig. 3 is refer to, the method flow diagram of the compatible method to set up provided it illustrates one embodiment of the invention.The party Method can be used in earphone line control equipment as shown in Figure 2, be performed by the controller in the earphone line control equipment, and this method can be with Including:

Step 302, when the headset plug of the earphone line control equipment inserts the earphone jack of terminal, the ear of the terminal is determined In at least one terminal that machine transplanting of rice hole includes, the terminal for supplying power for outside;

Step 304, this in the earphone jack of the terminal is used for the location of terminal of supplying power for outside, and setting should Each self-corresponding function of at least one terminal that headset plug includes.

Wherein, whether earphone line control equipment is compatible except being supplied depending on being used for receiving terminal in earphone line control equipment with terminal Outside whether the terminal in the terminal of electricity and the earphone jack of terminal for supplying power for outside corresponds to, headset plug and ear are additionally depended on Whether the function of terminal corresponding to each two is identical in machine transplanting of rice hole.When the headset plug and the earphone of terminal in earphone line control equipment When the interface standard of jack is inconsistent, in fact it could happen that headset plug is different with the function of two corresponding terminals in earphone jack Situation, when the headset plug inserts the earphone jack, the function of the two corresponding terminals just can not normal use.In this hair In bright embodiment, the position of the terminal of supplying power for outside is used in the earphone jack that earphone line control equipment can be by determining terminal, To determine the interface standard of the earphone jack, and then function corresponding to each terminal in setting headset plug, make headset plug In each terminal corresponding to function be adapted with the interface standard of the earphone jack of terminal, so as to improve earphone line control equipment pair The compatibility of different terminals.

In summary, compatible method to set up provided in an embodiment of the present invention, when the headset plug of the earphone line control equipment is inserted When entering the earphone jack of terminal, at least one terminal that the earphone jack by determining the terminal includes, for supplying power for outside Terminal, this in the earphone jack of the terminal be used for the location of terminal of supplying power for outside, set the headset plug Comprising each self-corresponding function of at least one terminal, so as to improve compatibility of the earphone line control equipment to different terminals.

Fig. 4 is refer to, the method flow diagram of the compatible method to set up provided it illustrates another embodiment of the present invention.The party Method can be used in earphone line control equipment as shown in Figure 2, be performed by the controller in the earphone line control equipment, and this method can be with Including:

Step 402, when the headset plug of the earphone line control equipment inserts the earphone jack of terminal, the ear of the terminal is determined In at least one terminal that machine transplanting of rice hole includes, the terminal for supplying power for outside;

Wherein, whether earphone line control equipment is compatible except being supplied depending on being used for receiving terminal in earphone line control equipment with terminal Outside whether the terminal in the terminal of electricity and the earphone jack of terminal for supplying power for outside corresponds to, headset plug and ear are additionally depended on Whether the function of terminal corresponding to each two is identical in machine transplanting of rice hole.When the headset plug and the earphone of terminal in earphone line control equipment When the interface standard of jack is inconsistent, in fact it could happen that headset plug is different with the function of two corresponding terminals in earphone jack Situation, when the headset plug inserts the earphone jack, the function of the two corresponding terminals just can not normal use.In this hair In bright embodiment, the position of the terminal of supplying power for outside is used in the earphone jack that earphone line control equipment can be by determining terminal, To determine the interface standard of the earphone jack, and then function corresponding to each terminal in setting headset plug, make headset plug In each terminal corresponding to function be adapted with the interface standard of the earphone jack of terminal, so as to improve earphone line control equipment pair The compatibility of different terminals.

Further, the earphone jack can be from inside to outside successively comprising the first terminal, Second terminal, third terminal and the Four terminals;Accordingly, the first terminal, Second terminal, third terminal and forth terminal are also included in headset plug.The headset plug The first terminal it is corresponding with the first terminal of the earphone jack, the Second terminal of the headset plug and the second end of the earphone jack Son is corresponding, and the third terminal of the headset plug is corresponding with the third terminal of the earphone jack, the forth terminal of the headset plug and The forth terminal of the earphone jack is corresponding.

Step 404, when the terminal for being used for supplying power for outside is the third terminal of the earphone jack, by the headset plug The function setting of the first terminal is L channel function, is R channel function by the function setting of the Second terminal of the headset plug, It is microphone function by the function setting of the third terminal of the headset plug, by the function setting of the forth terminal of the headset plug For ground wire function;

Specifically, headset plug shown in Fig. 5 is refer in two kinds of distinct interface standards (international standard and China national mark It is accurate) under functional schematic corresponding to each terminal.Wherein, a headset plug includes four terminals, respectively the first terminal, Two-terminal, third terminal and forth terminal, accordingly, corresponding the first terminal in earphone jack, Second terminal, third terminal and Forth terminal is arranged in order from inside to outside.

For comparison diagram 5 it can be found that in international standard and chinese national standard, the first terminal of headset plug is L channel Function, Second terminal are R channel function.Unlike, in international standard, the third terminal of headset plug is ground wire function, Forth terminal is microphone function;And in chinese national standard, the third terminal of headset plug is microphone function, the 4th end Son is ground wire function.

Meanwhile in international standard and chinese national standard, powered by the terminal of microphone function, that is, work as terminal Earphone jack in power supply terminal when being third terminal, it may be determined that the interface standard of the earphone jack of the terminal is Chinese state Family's standard, now, the function setting of the first terminal in headset plug can be L channel function by earphone line control equipment, by this The function setting of the Second terminal of headset plug is R channel function, is wheat by the function setting of the third terminal of the headset plug Gram wind function, is ground wire function by the function setting of the forth terminal of the headset plug, so that the earphone of earphone line control equipment Plug is adapted with the interface standard of the earphone jack of terminal.

Step 406, when the terminal for being used for supplying power for outside is the forth terminal of the earphone jack, by the headset plug The function setting of the first terminal is L channel function, is R channel function by the function setting of the Second terminal of the headset plug, It is microphone function by the function setting of the forth terminal of the headset plug, by the function setting of the third terminal of the headset plug For ground wire function.

Accordingly, when the power supply terminal in the earphone jack of terminal is forth terminal, it may be determined that the earphone of the terminal The interface standard of jack is international standard, and now, earphone line control equipment can set the function of the first terminal in headset plug L channel function is set to, is R channel function by the function setting of the Second terminal of the headset plug, by the of the headset plug The function setting of four terminals is microphone function, is ground wire function by the function setting of the third terminal of the headset plug, so as to It is adapted the headset plug of earphone line control equipment and the interface standard of the earphone jack of terminal.

In summary, compatible method to set up provided in an embodiment of the present invention, when the headset plug of the earphone line control equipment is inserted When entering the earphone jack of terminal, at least one terminal that the earphone jack by determining the terminal includes, for supplying power for outside Terminal, this in the earphone jack of the terminal be used for the location of terminal of supplying power for outside, set the headset plug Comprising each self-corresponding function of at least one terminal, so as to improve compatibility of the earphone line control equipment to different terminals.

Fig. 6 is refer to, the structural representation of the controller provided it illustrates one embodiment of the invention, the controller can To be the controller in the earphone line control equipment shown in Fig. 2, for performing the compatible method to set up shown in Fig. 3 or Fig. 4, the control Device can include:

Determining module 601, for when the earphone line control equipment headset plug insert terminal earphone jack when, it is determined that should In at least one terminal that the earphone jack of terminal includes, the terminal for supplying power for outside;

Setup module 602, it is used for the position residing for the terminal of supplying power for outside for this in the earphone jack according to the terminal Put, each self-corresponding function of at least one terminal for setting the headset plug to include.

Wherein, whether earphone line control equipment is compatible except being supplied depending on being used for receiving terminal in earphone line control equipment with terminal Outside whether the terminal in the terminal of electricity and the earphone jack of terminal for supplying power for outside corresponds to, headset plug and ear are additionally depended on Whether the function of terminal corresponding to each two is identical in machine transplanting of rice hole.When the headset plug and the earphone of terminal in earphone line control equipment When the interface standard of jack is inconsistent, in fact it could happen that headset plug is different with the function of two corresponding terminals in earphone jack Situation, when the headset plug inserts the earphone jack, the function of the two corresponding terminals just can not normal use.In this hair In bright embodiment, the position of the terminal of supplying power for outside is used in the earphone jack that earphone line control equipment can be by determining terminal, To determine the interface standard of the earphone jack, and then function corresponding to each terminal in setting headset plug, make headset plug In each terminal corresponding to function be adapted with the interface standard of the earphone jack of terminal, so as to improve earphone line control equipment pair The compatibility of different terminals.

In summary, controller provided in an embodiment of the present invention, when the headset plug and terminal of the earphone line control equipment When earphone jack is connected, at least one terminal that the earphone jack by determining the terminal includes, for supplying power for outside Terminal, this in the earphone jack of the terminal are used for the location of terminal of supplying power for outside, set the headset plug bag Each self-corresponding function of at least one terminal of containing, so as to improve compatibility of the earphone line control equipment to different terminals.

Fig. 7 is refer to, the structural representation of the controller provided it illustrates another embodiment of the present invention, the controller can To be the controller in the earphone line control equipment shown in Fig. 2, for performing the compatible method to set up shown in Fig. 3 or Fig. 4, the control Device can include:

Determining module 601, for when the earphone line control equipment headset plug insert terminal earphone jack when, it is determined that should In at least one terminal that the earphone jack of terminal includes, the terminal for supplying power for outside;

Setup module 602, it is used for the position residing for the terminal of supplying power for outside for this in the earphone jack according to the terminal Put, each self-corresponding function of at least one terminal for setting the headset plug to include.

Wherein, whether earphone line control equipment is compatible except being supplied depending on being used for receiving terminal in earphone line control equipment with terminal Outside whether the terminal in the terminal of electricity and the earphone jack of terminal for supplying power for outside corresponds to, headset plug and ear are additionally depended on Whether the function of terminal corresponding to each two is identical in machine transplanting of rice hole.When the headset plug and the earphone of terminal in earphone line control equipment When the interface standard of jack is inconsistent, in fact it could happen that headset plug is different with the function of two corresponding terminals in earphone jack Situation, when the headset plug inserts the earphone jack, the function of the two corresponding terminals just can not normal use.In this hair In bright embodiment, the position of the terminal of supplying power for outside is used in the earphone jack that earphone line control equipment can be by determining terminal, To determine the interface standard of the earphone jack, and then function corresponding to each terminal in setting headset plug, make headset plug In each terminal corresponding to function be adapted with the interface standard of the earphone jack of terminal, so as to improve earphone line control equipment pair The compatibility of different terminals.

The setup module 602, including:

First setting unit 602a, when the terminal for being used for supplying power for outside when this is the third terminal of the earphone jack, It is L channel function by the function setting of the first terminal of the headset plug, by the function setting of the Second terminal of the headset plug It is microphone function by the function setting of the third terminal of the headset plug, by the 4th of the headset plug for R channel function The function setting of terminal is ground wire function;

Second setting unit 602b, when the terminal for being used for supplying power for outside when this is the forth terminal of the earphone jack, It is L channel function by the function setting of the first terminal of the headset plug, by the function setting of the Second terminal of the headset plug It is microphone function by the function setting of the forth terminal of the headset plug, by the 3rd of the headset plug for R channel function The function setting of terminal is ground wire function;

The earphone jack includes the first terminal, Second terminal, third terminal and forth terminal successively from inside to outside;The earphone The first terminal of plug is corresponding with the first terminal of the earphone jack, and the of the Second terminal of the headset plug and the earphone jack Two-terminal is corresponding, and the third terminal of the headset plug is corresponding with the third terminal of the earphone jack, the 4th end of the headset plug Son is corresponding with the forth terminal of the earphone jack.

In summary, controller provided in an embodiment of the present invention, when the headset plug of the earphone line control equipment inserts terminal Earphone jack when, at least one terminal that the earphone jack by determining the terminal includes, for the terminal of supplying power for outside, This in the earphone jack of the terminal is used for the location of terminal of supplying power for outside, set the headset plug include to Each self-corresponding function of a few terminal, so as to improve compatibility of the earphone line control equipment to different terminals.

Fig. 8 is refer to, the method flow diagram of the signal output method provided it illustrates one embodiment of the invention, the party Method can be used in earphone line control equipment as shown in Figure 2, and this method can include:

Step 802, when the headset plug of the earphone line control equipment inserts the earphone jack of terminal, the behaviour of the terminal is identified Make the system type of system;

Step 804, the standard key signal generated when the standard feature button is pressed is received;

Step 806, when the operating system of the terminal is not the operating system being adapted to the standard key signal, according to this The standard key signal is converted into compatibility key signal by the system type of the operating system of terminal, and the compatibility key signal is at this In the operating system of terminal corresponding function with the standard key signal in the operating system being adapted to the standard key signal Corresponding function phase is same;

Step 808, the compatibility key signal is exported to the terminal by the plug.

Wherein, the push button signalling that earphone line control equipment is sent to terminal is usually voltage pulse signal, and different buttons is believed Number distinguished by the voltage value and/or key mode of voltage pulse signal, wherein, key mode can include clicking, being double Hit or long-press etc..

It is in advance push button signalling corresponding to the setting of each control instruction in the system layer of terminal, the control instruction can be by end The application at end performs, to realize corresponding function.In the middle terminal for running two kinds of different operating system, its respective system The push button signalling that same function is corresponded in layer may also be different.

Such as the push button signalling exported using earphone line control equipment by headset plug to terminal be voltage pulse signal as Example, in operating system A, the magnitude of voltage of push button signalling corresponding to volume up function is U1, and in operating system B, volume Magnitude of voltage corresponding to push button signalling corresponding to increasing function is U2, when the volume increment key in earphone line control equipment is pressed Magnitude of voltage corresponding to caused push button signalling is U1When, the volume increment key in the earphone line control equipment can only control operation to grasp Make system A terminal increase volume, when the volume increment key in earphone line control equipment be pressed caused by push button signalling pair The magnitude of voltage answered is U2When, the volume increment key in the earphone line control equipment can only control operation operating system B terminal to increase Summation tone amount.That is the push button signalling of earphone line control equipment output can not compatible all operating system simultaneously.

On the other hand, in embodiments of the present invention, earphone line control equipment can first determine the system type of the operating system of terminal, And whether the operating system for detecting the terminal is to be pressed caused standard with the standard feature button in earphone line control equipment The system that push button signalling is adapted.If the operating system of the terminal is not the operating system being adapted to the standard key signal, When the standard feature button in earphone line control equipment is pressed, the standard feature signal is converted into compatibility by earphone line control equipment Push button signalling is simultaneously exported to terminal, the standard feature button in earphone line control equipment is adapted to different operations so as to reach The effect of system type, further improve the compatibility of earphone line control equipment and terminal.

In summary, signal output method provided in an embodiment of the present invention, by identifying that the operating system of the terminal is System type, when the operating system of the terminal is not the operating system being adapted to the standard key signal, according to the behaviour of the terminal The standard key signal is converted into compatibility key signal and exported to terminal by the system type for making system, and reaching makes earphone line control Standard feature button in equipment is adapted to the effect of different OS Types, further improves earphone line control equipment and terminal Compatibility.

Fig. 9 is refer to, the method flow diagram of the signal output method provided it illustrates another embodiment of the present invention, the party Method can be used in earphone line control equipment as shown in Figure 2, and this method can include:

Step 902, when the earphone line control equipment headset plug insert terminal earphone jack when, by the plug to this Terminal output test push button signalling;

Wherein, the test push button signalling is default button letter in operating system corresponding with the test push button signalling Number, different operating system corresponds to different test push button signallings.

Wherein, the push button signalling that earphone line control equipment is sent to terminal is usually voltage pulse signal, and different buttons is believed Number distinguished by the voltage value and/or key mode of voltage pulse signal, wherein, key mode can include clicking, being double Hit or long-press etc..

It is in advance push button signalling corresponding to the setting of each control instruction in the system layer of terminal, the control instruction can be by end The application at end performs, to realize corresponding function.In the middle terminal for running two kinds of different operating system, its respective system The push button signalling that same function is corresponded in layer may also be different.

Such as the push button signalling exported using earphone line control equipment by headset plug to terminal be voltage pulse signal as Example, in operating system A, the magnitude of voltage of push button signalling corresponding to volume up function is U1, and in operating system B, volume Magnitude of voltage corresponding to push button signalling corresponding to increasing function is U2, when the volume increment key in earphone line control equipment is pressed Magnitude of voltage corresponding to caused push button signalling is U1When, the volume increment key in the earphone line control equipment can only control operation to grasp Make system A terminal increase volume, when the volume increment key in earphone line control equipment be pressed caused by push button signalling pair The magnitude of voltage answered is U2When, the volume increment key in the earphone line control equipment can only control operation operating system B terminal to increase Summation tone amount.That is the push button signalling of earphone line control equipment output can not compatible all operating system simultaneously.

On the other hand, in embodiments of the present invention, earphone line control equipment can send test push button signalling to terminal first, with true Determine the system type of the operating system of terminal.

Step 904, judge whether the terminal returns to the response signal of the test push button signalling, if so, into step 906, Otherwise, into step 908;

Step 906, it is operation corresponding with the test push button signalling by the system type identification of the operating system of the terminal The system type of system, into step 910;

Step 908, exported by the plug to the terminal and push button signalling is tested corresponding to next operating system, return to step Rapid 904;

Wherein, when earphone line control equipment can be identified to the push button signalling that terminal exports by terminal, terminal will be to ear Machine line traffic control equipment returns to a response.The operating system that earphone line control equipment can be directed to each system type sets a survey Try push button signalling, the test push button signalling can be corresponding operating system system layer in it is default, corresponding a certain control refers to The push button signalling of order.When the headset plug of the earphone line control equipment inserts the earphone jack of terminal, this is sent to terminal one by one A little test push button signallings, if the response signal for corresponding to some test push button signalling of terminal return is received, by the end The system type identification of the operating system at end is the system type of operating system corresponding with the test push button signalling.

Step 910, the standard key signal generated when the standard feature button is pressed is received;

Step 912, when the operating system of the terminal is not the operating system being adapted to the standard key signal, according to this The standard key signal is converted into compatibility key signal by the system type of the operating system of terminal, and the compatibility key signal is at this In the operating system of terminal corresponding function with the standard key signal in the operating system being adapted to the standard key signal Corresponding function phase is same;

Step 914, the compatibility key signal is exported to the terminal by the plug.

Wherein, the push button signalling that earphone line control equipment is sent to terminal is usually voltage pulse signal, and different buttons is believed Number distinguished by the voltage value and/or key mode of voltage pulse signal, wherein, key mode can include clicking, being double Hit or long-press etc..

It is in advance push button signalling corresponding to the setting of each control instruction in the system layer of terminal, the control instruction can be by end The application at end performs, to realize corresponding function.In the middle terminal for running two kinds of different operating system, its respective system The push button signalling that same function is corresponded in layer may also be different.

Such as the push button signalling exported using earphone line control equipment by headset plug to terminal be voltage pulse signal as Example, in operating system A, the magnitude of voltage of push button signalling corresponding to volume up function is U1, and in operating system B, volume Magnitude of voltage corresponding to push button signalling corresponding to increasing function is U2, when the volume increment key in earphone line control equipment is pressed Magnitude of voltage corresponding to caused push button signalling is U1When, the volume increment key in the earphone line control equipment can only control operation to grasp Make system A terminal increase volume, when the volume increment key in earphone line control equipment be pressed caused by push button signalling pair The magnitude of voltage answered is U2When, the volume increment key in the earphone line control equipment can only control operation operating system B terminal to increase Summation tone amount.That is the push button signalling of earphone line control equipment output can not compatible all operating system simultaneously.

On the other hand, in embodiments of the present invention, earphone line control equipment can first determine the system type of the operating system of terminal, And whether the operating system for detecting the terminal is to be pressed caused standard with the standard feature button in earphone line control equipment The system that push button signalling is adapted.If the operating system of the terminal is not the operating system being adapted to the standard key signal, When the standard feature button in earphone line control equipment is pressed, the standard feature signal is converted into compatibility by earphone line control equipment Push button signalling is simultaneously exported to terminal, the standard feature button in earphone line control equipment is adapted to different operations so as to reach The effect of system type, further improve the compatibility of earphone line control equipment and terminal.

In summary, signal output method provided in an embodiment of the present invention, by identifying that the operating system of the terminal is System type, when the operating system of the terminal is not the operating system being adapted to the standard key signal, according to the behaviour of the terminal The standard key signal is converted into compatibility key signal and exported to terminal by the system type for making system, and reaching makes earphone line control Standard feature button in equipment is adapted to the effect of different OS Types, further improves earphone line control equipment and terminal Compatibility.

Figure 10 is refer to, the structural representation of the controller provided it illustrates one embodiment of the invention, the controller Can be the controller in the earphone line control equipment shown in Fig. 2, for performing the signal output method shown in Fig. 8 or Fig. 9, the control Device processed can include:

System identification module 1001, for when the earphone line control equipment headset plug insert terminal earphone jack when, Identify the system type of the operating system of the terminal;

First signal receiving module 1002, for receiving the standard key generated when the standard feature button is pressed letter Number;

Signal conversion module 1003, for not being the operation that is adapted to the standard key signal when the operating system of the terminal During system, the standard key signal is converted into by compatibility key signal according to the system type of the operating system of the terminal, this is simultaneous Hold push button signalling corresponding function in the operating system of the terminal to fit with the standard key signal with the standard key signal Corresponding function phase is same in the operating system matched somebody with somebody;

Signal output module 1004, for exporting the compatibility key signal to the terminal by the plug.

In summary, controller provided in an embodiment of the present invention, the system type of the operating system by identifying the terminal, When the operating system of the terminal is not the operating system being adapted to the standard key signal, according to the operating system of the terminal The standard key signal is converted into compatibility key signal and exported to terminal by system type, and reaching makes in earphone line control equipment Standard feature button is adapted to the effect of different OS Types.

Figure 11 is refer to, the structural representation of the controller provided it illustrates another embodiment of the present invention, the controller Can be the controller in the earphone line control equipment shown in Fig. 2, for performing the signal output method shown in Fig. 8 or Fig. 9, the control Device processed can include:

System identification module 1001, for when the earphone line control equipment headset plug insert terminal earphone jack when, Identify the system type of the operating system of the terminal;

First signal receiving module 1002, for receiving the standard key generated when the standard feature button is pressed letter Number;

Signal conversion module 1003, for not being the operation that is adapted to the standard key signal when the operating system of the terminal During system, the standard key signal is converted into by compatibility key signal according to the system type of the operating system of the terminal, this is simultaneous Hold push button signalling corresponding function in the operating system of the terminal to fit with the standard key signal with the standard key signal Corresponding function phase is same in the operating system matched somebody with somebody;

Signal output module 1004, for exporting the compatibility key signal to the terminal by the plug.

The system identification module 1001, including:

Signal output unit 1001a, for exporting test push button signalling, test button letter to the terminal by the plug Number it is a default push button signalling in operating system corresponding with the test push button signalling, different operating system is corresponding different Test push button signalling;

First judging unit 1001b, for judging whether the terminal returns to the response signal of the test push button signalling;

Recognition unit 1001c, if the judged result for first judging unit 1001b returns to response letter for the terminal Number, then by the system type identification of the operating system of the terminal be operating system corresponding to the test push button signalling system class Type.

Signal output unit 1001a, if the judged result for being additionally operable to first judging unit 1001b is not returned for the terminal The response signal is returned, then is exported by the plug to the terminal and tests push button signalling corresponding to next operating system.

In summary, controller provided in an embodiment of the present invention, the system type of the operating system by identifying the terminal, When the operating system of the terminal is not the operating system being adapted to the standard key signal, according to the operating system of the terminal The standard key signal is converted into compatibility key signal and exported to terminal by system type, and reaching makes in earphone line control equipment Standard feature button is adapted to the effect of different OS Types.

Figure 12 is refer to, the method flow diagram of the terminal control method provided it illustrates one embodiment of the invention should Method can be used in the terminal that is connected with the earphone line control equipment shown in Fig. 1 or Fig. 2, and this method can include:

Step 1202, the earphone line control equipment is received by the system layer of the terminal exported by headset plug and give the terminal Push button signalling, include the user-defined press key signal and/or the standard key signal in the push button signalling;

Step 1204, the control that the push button signalling is carried using transmission by the system layer of the terminal into the terminal Message;

Step 1206, control instruction corresponding to the control message is obtained by the application;

Step 1208, the control instruction is performed by the application.

In embodiments of the present invention, the user-defined press key signal and/or standard key received by the system layer of terminal After signal, by application layer obtain self-defined push button signalling and/or standard key signal corresponding to control instruction, make terminal not only User-defined press key signal can also be identified with criterion of identification push button signalling, so as to reach extension earphone line control equipment Function, improve the effect that can meet user's use demand.

In summary, method provided in an embodiment of the present invention, earphone line control equipment is received by the system layer of terminal and passed through Headset plug is exported to the terminal, the push button signalling comprising the user-defined press key signal and/or the standard key signal, is passed through The control message that using send carries the push button signalling of the system layer of the terminal into the terminal, being obtained by the application should Control instruction corresponding to control message simultaneously performs, and reaches the function of extension earphone line control equipment, can meet that user uses The effect of demand.

It should be noted that in different operating system, push button signalling that system layer is sent to earphone line control equipment Processing mode is also had any different.For example in Android system, application of the system layer only into terminal sends control instruction, Bu Huizhu Trend application sends push button signalling;And in IOS systems, system layer detect earphone line control equipment send push button signalling be During user-defined press key signal, the user-defined press key signal actively can be sent to application.Therefore, for different operating system, Disappeared in the embodiment of the present invention by the control that using transmission carries the push button signalling of the system layer of the terminal into the terminal The specific method of breath is also differed, and the following examples of the present invention will be illustrated respectively by taking different operating system as an example.

Figure 13 is refer to, the method flow diagram of the terminal control method provided it illustrates another embodiment of the present invention should Method can be used in the terminal that is connected with the earphone line control equipment shown in Fig. 1 or Fig. 2, and this method can include:

Step 1302, the earphone line control equipment is received by the system layer of the terminal exported by headset plug and give the terminal Push button signalling;

Wherein, the user-defined press key signal and/or the standard key signal are included in the push button signalling.

Step 1304, when often receiving a push button signalling, the button is carried by the system layer generation of the terminal and believed Number control message, by the system layer of the terminal into the terminal application send the control message;

, can not when running the system layer of the terminal of Android system and receiving user-defined press key signal by taking Android system as an example Control instruction corresponding to the user-defined press key signal is identified, application that also will not be actively into system sends user-defined press key letter Number, now, whether the application in terminal can receive the push button signalling of earphone line control equipment transmission with monitoring system layer, if system Layer receives the push button signalling of earphone line control equipment transmission, then no matter the push button signalling be user-defined press key signal or standard by Key signals, all send a push button signalling to system layer and obtain request, after system layer receives the request, by earphone line control equipment The push button signalling addition of transmission is sent to application in control message, is referred to by application to inquire about control corresponding to the push button signalling Order.

In addition, the method shown in the embodiment of the present invention, also shield the control that the system layer of the terminal is sent to the application and refer to Order.

When the system layer of the terminal of Android system receives the standard key signal of earphone line control equipment transmission, Ke Yishi Control instruction and terminal applies are sent to not corresponding to the standard key signal, because the application in terminal has obtained from system layer Take the standard key signal and inquire about corresponding control instruction, now, if the standard key signal that reception system layer is sent again Corresponding control instruction simultaneously performs, then the problem of repeating the control instruction, on the other hand, shown in the embodiment of the present invention In method, control instruction that the application in the terminal also sends from the system layer for shielding the terminal to the application.

Step 1306, control instruction corresponding to the control message is obtained by the application;

Such as when the system of terminal is Android system, can obtain user-defined press key signal in the control message and/ Or standard key signal, and inquire about control instruction corresponding to the user-defined press key signal and/or standard key signal.

Step 1308, the control instruction is performed by the application.

Wherein, when control instruction corresponding to the control instruction is the user-defined press key signal, matchmaker more than one can be obtained First reproduction time section corresponding to body file;It is right with the first reproduction time section by the application plays multimedia files The content of multimedia answered;Before this specifies content of multimedia corresponding to reproduction time section to finish, judge whether to lead to again Cross the application and get the control instruction;If judged result is to get the control instruction again by the application, by this Using playing the multimedia file from the beginning.

If judged result is does not get the control instruction again by the application, corresponding in the first reproduction time section Content of multimedia finish after, obtain the second reproduction time section corresponding to next multimedia file, and should by this With play next multimedia file in, content of multimedia corresponding to the second reproduction time section.

In embodiments of the present invention, there is provided a kind of method that terminal is controlled by user-defined press key, using the terminal as intelligence Mobile phone, user control the music application in smart mobile phone is quick to select the song to be by the user-defined press key in earphone line control equipment Example, this method specifically can be as follows:

User clicks the user-defined press key in earphone line control equipment, and earphone line control equipment sends self-defined to smart mobile phone User-defined press key signal is sent to music application, music application query by push button signalling, the system layer of smart mobile phone Control instruction corresponding to user-defined press key signal is sung for quick choosing, then selection plays the climax parts of current song, each first song The period of bent climax parts is all pre-set by developer and adds in the configuration information of the audio file of song, At the end of the climax parts of a first song play, continue to select the climax parts of next song and commence play out.This process again In, during the climax parts of a certain song of user's uppick, if it is desired to which selection plays song corresponding to the climax parts, then again The user-defined press key in earphone line control equipment is pressed, music application receives the user-defined press key of system layer transmission again Signal is simultaneously inquired about corresponding control instruction and sung for quickly choosing, then stops the broadcasting of current climax parts, and starts from the beginning to play and be somebody's turn to do The corresponding song of climax parts, so as to complete choosing song operation.

In summary, method provided in an embodiment of the present invention, earphone line control equipment is received by the system layer of terminal and passed through Headset plug is exported to the terminal, the push button signalling comprising the user-defined press key signal and/or the standard key signal, is passed through The control message that using send carries the push button signalling of the system layer of the terminal into the terminal, being obtained by the application should Control instruction corresponding to control message simultaneously performs, and reaches the function of extension earphone line control equipment, can meet that user uses The effect of demand.

Figure 14 is refer to, the method flow diagram of the terminal control method provided it illustrates further embodiment of this invention should Method can be used in the terminal that is connected with the earphone line control equipment shown in Fig. 1 or Fig. 2, and this method can include:

Step 1402, the earphone line control equipment is received by the system layer of the terminal exported by headset plug and give the terminal Push button signalling;

Wherein, the user-defined press key signal and/or the standard key signal are included in the push button signalling.

Step 1404, whether the push button signalling received by the system layer detection of the terminal is that user-defined press key is believed Number, if the push button signalling is the user-defined press key signal, the user-defined press key is carried by the system layer generation of the terminal The control message of signal, the control message is sent by application of the system layer of the terminal into the terminal;

For example in IOS systems, several push button signallings are reserved with the system layer of terminal, this several push button signalling can To be identified by the system layer of terminal, but specific control instruction is not corresponded to.Earphone line control equipment can be by user-defined press key Corresponding push button signalling of making by oneself is arranged to the push button signalling that the system layer of IOS systems is reserved.When the system layer of terminal receive by Key signals, and when to detect the push button signalling be user-defined press key signal, actively controlling user-defined press key signal addition Application is sent in message, is identified by application.

, will not be to should when the system layer of terminal receives standard key signal it should be noted that in IOS systems With the standard key signal is sent, but control instruction corresponding to the standard key signal is identified, control instruction addition is existed Application is sent in control message, is directly performed by application.Now, using the control instruction for not needing shielding harness layer to send.

Step 1406, control instruction corresponding to the control message is obtained by the application;

When the system of terminal is IOS systems, can directly obtain corresponding to the standard key signal in the control message Control instruction, or, control instruction corresponding to the user-defined press key signal included is inquired about in the control message.

Step 1408, the control instruction is performed by the application.

Wherein, when control instruction corresponding to the control instruction is the user-defined press key signal, matchmaker more than one can be obtained First reproduction time section corresponding to body file;It is right with the first reproduction time section by the application plays multimedia files The content of multimedia answered;Before this specifies content of multimedia corresponding to reproduction time section to finish, judge whether to lead to again Cross the application and get the control instruction;If judged result is to get the control instruction again by the application, by this Using playing the multimedia file from the beginning.

If judged result is does not get the control instruction again by the application, corresponding in the first reproduction time section Content of multimedia finish after, obtain the second reproduction time section corresponding to next multimedia file, and should by this With play next multimedia file in, content of multimedia corresponding to the second reproduction time section.

In embodiments of the present invention, there is provided a kind of method that terminal is controlled by user-defined press key, using the terminal as intelligence Mobile phone, user control the music application in smart mobile phone is quick to select the song to be by the user-defined press key in earphone line control equipment Example, this method specifically can be as follows:

User clicks the user-defined press key in earphone line control equipment, and earphone line control equipment sends self-defined to smart mobile phone User-defined press key signal is sent to music application, music application query by push button signalling, the system layer of smart mobile phone Control instruction corresponding to user-defined press key signal is sung for quick choosing, then selection plays the climax parts of current song, each first song The period of bent climax parts is all pre-set by developer and adds in the configuration information of the audio file of song, At the end of the climax parts of a first song play, continue to select the climax parts of next song and commence play out.This process again In, during the climax parts of a certain song of user's uppick, if it is desired to which selection plays song corresponding to the climax parts, then again The user-defined press key in earphone line control equipment is pressed, music application receives the user-defined press key of system layer transmission again Signal is simultaneously inquired about corresponding control instruction and sung for quickly choosing, then stops the broadcasting of current climax parts, and starts from the beginning to play and be somebody's turn to do The corresponding song of climax parts, so as to complete choosing song operation.

In summary, method provided in an embodiment of the present invention, earphone line control equipment is received by the system layer of terminal and passed through Headset plug is exported to the terminal, the push button signalling comprising the user-defined press key signal and/or the standard key signal, is passed through The control message that using send carries the push button signalling of the system layer of the terminal into the terminal, being obtained by the application should Control instruction corresponding to control message simultaneously performs, and reaches the function of extension earphone line control equipment, can meet that user uses The effect of demand.

Figure 15 is refer to, the structure drawing of device of the terminal control mechanism provided it illustrates one embodiment of the invention should Device can be used in the terminal that is connected with the earphone line control equipment shown in Fig. 1 or Fig. 2, perform terminal control as shown in figure 12 Method, the device can include:

Secondary signal receiving module 1501, pass through earphone for receiving the earphone line control equipment by the system layer of the terminal Plug exports the push button signalling to the terminal, believes in the push button signalling comprising the user-defined press key signal and/or the standard key Number;

Message transmission module 1502, for the system layer by the terminal into the terminal using transmission carry this by The control message of key signals;

Instruction acquisition module 1503, for obtaining control instruction corresponding to the control message by the application;

Execution module 1504 is instructed, for performing the control instruction by the application.

In summary, device provided in an embodiment of the present invention, earphone line control equipment is received by the system layer of terminal and passed through Headset plug is exported to the terminal, the push button signalling comprising the user-defined press key signal and/or the standard key signal, is passed through The control message that using send carries the push button signalling of the system layer of the terminal into the terminal, being obtained by the application should Control instruction corresponding to control message simultaneously performs, and reaches the function of extension earphone line control equipment, can meet that user uses The effect of demand.

Figure 16 is refer to, the structure drawing of device of the terminal control mechanism provided it illustrates another embodiment of the present invention should Device can be used in the terminal that is connected with the earphone line control equipment described in Fig. 1 or Fig. 2, perform the terminal as shown in Figure 13 or 14 Control method, the device can include:

Secondary signal receiving module 1501, pass through earphone for receiving the earphone line control equipment by the system layer of the terminal Plug exports the push button signalling to the terminal, believes in the push button signalling comprising the user-defined press key signal and/or the standard key Number;

Message transmission module 1502, for the system layer by the terminal into the terminal using transmission carry this by The control message of key signals;

Instruction acquisition module 1503, for obtaining control instruction corresponding to the control message by the application;

Execution module 1504 is instructed, for performing the control instruction by the application.

Optionally, the message transmission module 1502, including:

First generation unit 1502a, during for often receiving a push button signalling, taken by the system layer generation of the terminal Control message with the push button signalling;

First transmitting element 1502b, send the control for application of the system layer by the terminal into the terminal and disappear Breath.

The device also includes:

Shroud module 1505, the control instruction that the system layer for shielding the terminal is sent to the application.

Optionally, the message transmission module 1502, including:

Detection unit 1502c, whether the push button signalling received for the system layer detection by the terminal is to make by oneself Adopted push button signalling;

Second generation unit 1502d, if being the user-defined press key signal for the push button signalling, what it is by the terminal is System layer generation carries the control message of the user-defined press key signal;

Second transmitting element 1502e, send the control for application of the system layer by the terminal into the terminal and disappear Breath.

Optionally, the instruction execution module 1504, including:

Period acquiring unit 1504a, for being control instruction corresponding to the user-defined press key signal when the control instruction When, obtain the first reproduction time section corresponding to a multimedia file;

First broadcast unit 1504b, for by the way that in the application plays multimedia files, the first reproduction time section is right The content of multimedia answered;

Second judging unit 1504c, for before this specifies content of multimedia corresponding to reproduction time section to finish, Judge whether to get the control instruction again by the application;

Second broadcast unit 1504d, if the judged result for second judging unit 1504c is again by the application The control instruction is got, then the multimedia file is played by the application from the beginning.

Period acquiring unit 1504a, if the judged result for being additionally operable to second judging unit 1504c is not lead to again Cross the application and get the control instruction, then after content of multimedia corresponding to the first reproduction time section finishes, obtain Take the second reproduction time section corresponding to next multimedia file;

First broadcast unit 1504b, it is additionally operable to by the application plays in next multimedia file, this second is broadcast Put content of multimedia corresponding to the period.

In summary, device provided in an embodiment of the present invention, earphone line control equipment is received by the system layer of terminal and passed through Headset plug is exported to the terminal, the push button signalling comprising the user-defined press key signal and/or the standard key signal, is passed through The control message that using send carries the push button signalling of the system layer of the terminal into the terminal, being obtained by the application should Control instruction corresponding to control message simultaneously performs, and reaches the function of extension earphone line control equipment, can meet that user uses The effect of demand.

Figure 17 is refer to, the block diagram of the terminal provided it illustrates one embodiment of the invention, the terminal is used for Implement above-mentioned Figure 12 to 14 it is any corresponding to the method that provides of embodiment, the terminal in the embodiment of the present invention can include one or Multiple following parts:For performing computer program instructions to complete the processor of various flows and method, for information With storage program instruction random access memory (RAM) and read-only storage (ROM), the storage for data storage and information Device, I/O equipment, interface, antenna etc..Specifically:

Terminal 1700 can include RF (Radio Frequency, radio frequency) circuit 1710, memory 1720, input block 1730th, display unit 1740, sensor 1750, voicefrequency circuit 1760, WiFi (wireless fidelity, Wireless Fidelity) mould The parts such as block 1770, processor 1780, power supply 1782, camera 1790.It will be understood by those skilled in the art that shown in Figure 17 Terminal structure not structure paired terminal restriction, can include than illustrating more or less parts, or some portions of combination Part, or different parts arrangement.

Each component parts of terminal 1700 is specifically introduced with reference to Figure 17:

RF circuits 1710 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, handled to processor 1780;In addition, it is sent to base station by up data are designed.Generally, RF circuits bag Include but be not limited to antenna, at least one amplifier, transceiver, coupler, LNA (Low Noise Amplifier, low noise Amplifier), duplexer etc..In addition, RF circuits 1710 can also be communicated by radio communication with network and other equipment.The nothing Line communication can use any communication standard or agreement, including but not limited to GSM (Global System of Mobile Communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet without Line service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), electronics Mail, SMS (Short Messaging Service, Short Message Service) etc..

Memory 1720 can be used for storage software program and module, and processor 1780 is stored in memory by operation 1720 software program and module, so as to perform the various function application of terminal 1700 and data processing.Memory 1720 Storing program area and storage data field can mainly be included, wherein, storing program area can storage program area, at least one function institute Application program (such as sound-playing function, image player function etc.) needed etc.;Storage data field can be stored according to terminal 1700 Use created data (such as voice data, phone directory etc.) etc..In addition, memory 1720 can include depositing at random at a high speed Access to memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other are easy The property lost solid-state memory.

Input block 1730 can be used for the numeral or character information for receiving input, and produces and set with the user of terminal 1700 Put and the input of key signals that function control is relevant.Specifically, input block 1730 may include contact panel 1731 and other Input equipment 1732.Contact panel 1731, also referred to as touch-screen, collect user on or near it touch operation (such as User is using any suitable objects or annex such as finger, stylus on contact panel 1731 or near contact panel 1731 Operation), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1731 may include to touch inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation The signal brought, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 1780, and the order sent of reception processing device 1780 and can be performed.This Outside, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 1731.Except touching Panel 1731 is controlled, input block 1730 can also include other input equipments 1732.Specifically, other input equipments 1732 can be with Including but not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. In one or more.

Display unit 1740 can be used for display by the information of user's input or be supplied to the information and terminal 1700 of user Various menus.Display unit 1740 may include display panel 1741, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comes Configure display panel 1741.Further, contact panel 1731 can cover display panel 1741, when contact panel 1731 detects After touch operation on or near it, processor 1780 is sent to determine the type of touch event, is followed by subsequent processing device 1780 Corresponding visual output is provided on display panel 1741 according to the type of touch event.Although in fig. 17, contact panel 1731 and display panel 1741 are the parts independent as two to realize the input of terminal 1700 and input function, but at certain In a little embodiments, contact panel 1731 and display panel 1741 can be integrated and realize input and the output work of terminal 1700 Energy.

Terminal 1700 may also include at least one sensor 1750, for example gyro sensor, magnetic induction sensor, light pass Sensor, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and proximity transducer, Wherein, ambient light sensor can adjust the brightness of display panel 1741 according to the light and shade of ambient light, and proximity transducer can be When terminal 1700 is moved in one's ear, display panel 1741 and/or backlight are closed.As one kind of motion sensor, acceleration passes Sensor can detect in all directions the size of (generally three axles) acceleration, and size and the direction of gravity are can detect that when static, Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification available for identification terminal posture is related Function (such as pedometer, percussion) etc.;Barometer, hygrometer, thermometer, the infrared ray sensing that can also configure as terminal 1700 The other sensors such as device, will not be repeated here.

Voicefrequency circuit 1760, loudspeaker 1761, microphone 1762 can provide the COBBAIF between user and terminal 1700. Electric signal after the voice data received conversion can be transferred to loudspeaker 1761, by loudspeaker 1761 by voicefrequency circuit 1760 Be converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1762, by voicefrequency circuit 1760 receive after be converted to voice data, then after voice data output processor 1780 is handled, through RF circuits 1710 to send Exported to such as another terminal, or by voice data to memory 1720 further to handle.

WiFi belongs to short range wireless transmission technology, and terminal 1700 can help user to receive and dispatch electricity by WiFi module 1770 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 17 shows Go out WiFi module 1770, but it is understood that, it is simultaneously not belonging to must be configured into for terminal 1700, completely can be according to need To be omitted in the essential scope for do not change invention.

Processor 1780 is the control centre of terminal 1700, utilizes various interfaces and each portion of the whole terminal of connection Point, by running or performing the software program and/or module that are stored in memory 1720, and call and be stored in memory Data in 1720, the various functions and processing data of terminal 1700 are performed, so as to carry out integral monitoring to terminal.Optionally, Processor 1780 may include one or more processing units;Preferably, processor 1780 can integrate application processor and modulatedemodulate Processor is adjusted, wherein, application processor mainly handles operating system, user interface and application program etc., modem processor Main processing radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1780.

Terminal 1700 also includes the power supply 1782 (such as battery) to all parts power supply, it is preferred that power supply can pass through Power-supply management system and processor 1780 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.

Camera 1790 is typically by groups such as camera lens, imaging sensor, interface, digital signal processor, CPU, display screens Into.Wherein, camera lens is fixed on the top of imaging sensor, can manually adjust camera lens and be focused on to change;Imaging sensor It is the heart of camera collection image equivalent to " film " of traditional camera;Interface is used for camera using winding displacement, plate to plate Connector, spring connected mode are connected with terminal mainboard, and the image of collection is sent into the memory 1720;Data signal Processor is handled the image of collection by mathematical operation, and the analog image of collection is converted into digital picture and by connecing Mouth is sent to memory 1720.

Although being not shown, terminal 1700 can also will not be repeated here including bluetooth module etc..

Terminal 1700 is except including one or more processor 1780, also including memory, and one or more Individual module, one or more module are stored in memory, and are configured to by one or more computing device. Said one or multiple modules have following function:

Receive the earphone line control equipment by the system layer of the terminal and exported by headset plug and believe to the button of the terminal Number, the user-defined press key signal and/or the standard key signal are included in the push button signalling;

Pass through the control message that using transmission carries the push button signalling of the system layer of the terminal into the terminal;

Control instruction corresponding to the control message is obtained by the application;

The control instruction is performed by the application.

By the system layer of the terminal, applying into the terminal sends the control message for carrying the push button signalling, bag for this Include:

When often receiving a push button signalling, the control that the push button signalling is carried by the system layer generation of the terminal disappears Breath;

The control message is sent by application of the system layer of the terminal into the terminal.

This method also includes:

Shield the control instruction that the system layer of the terminal is sent to the application.

By the system layer of the terminal, applying into the terminal sends the control message for carrying the push button signalling, bag for this Include:

Whether the push button signalling received by the system layer detection of the terminal is user-defined press key signal;

If the push button signalling is the user-defined press key signal, it is self-defined that this is carried by the system layer generation of the terminal The control message of push button signalling;

The control message is sent by application of the system layer of the terminal into the terminal.

When control instruction corresponding to the control instruction is the user-defined press key signal, the application execution control should be passed through Instruction, including:

Obtain the first reproduction time section corresponding to a multimedia file;

By in the application plays multimedia files, content of multimedia corresponding with the first reproduction time section;

Before this specifies content of multimedia corresponding to reproduction time section to finish, judge whether again by the application Get the control instruction;

If judged result is to get the control instruction again by the application, being played from the beginning by the application should Multimedia file.

This method also includes:

If judged result is does not get the control instruction again by the application, corresponding in the first reproduction time section Content of multimedia finish after, obtain the second reproduction time section corresponding to next multimedia file, and should by this With play next multimedia file in, content of multimedia corresponding to the second reproduction time section.

In summary, terminal provided in an embodiment of the present invention, earphone line control equipment is received by system layer and inserted by earphone Head is exported to the terminal, the push button signalling comprising the user-defined press key signal and/or the standard key signal, passes through the terminal System layer carry the control message of the push button signalling using sending into the terminal, by application acquisition, the control disappears Control instruction corresponding to breath simultaneously performs, and reaches the function of extension earphone line control equipment, can meet user's use demand Effect.

One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..

The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (24)

1. a kind of earphone line control equipment, it is characterised in that the earphone line control equipment includes:Controller, headset plug, at least one Individual standard feature button, at least one user-defined press key and power supply;The power supply and the earphone line control equipment In each device electric be connected;
The controller respectively with least one standard feature button, at least one user-defined press key and the ear Machine transplanting of rice head is electrical connected, and the controller is used to, when the earphone jack of headset plug insertion terminal, determine the terminal At least one terminal for including of earphone jack in, the terminal for supplying power for outside;According in the earphone jack of the terminal The location of described terminal for supplying power for outside, at least one terminal for setting the headset plug to include are each self-corresponding Function;
At least one standard feature button and at least one user-defined press key are electrical connected with the plug respectively;
At least one standard feature button is pressed by the plug outputting standard push button signalling, the standard when pressed Key signals be the terminal system layer in push button signalling corresponding to default each control instruction;
At least one user-defined press key exports user-defined press key signal by the plug when pressed, described self-defined Push button signalling be not the terminal system layer in push button signalling corresponding to default each control instruction.
2. earphone line control equipment according to claim 1, it is characterised in that at least one standard feature button bag Include:Volume plus key, volume down key and receiving talking key.
3. earphone line control equipment according to claim 1, it is characterised in that the quantity of the user-defined press key is 1.
A kind of 4. compatible method to set up, in earphone line control equipment as claimed in claim 1, it is characterised in that the side Method includes:
When the headset plug of the earphone line control equipment inserts the earphone jack of terminal, the earphone jack bag of the terminal is determined In at least one terminal contained, the terminal for supplying power for outside;
The location of terminal according in the earphone jack of the terminal for supplying power for outside, sets the earphone Each self-corresponding function of at least one terminal that plug includes.
5. according to the method for claim 4, it is characterised in that the earphone jack includes first end successively from inside to outside Son, Second terminal, third terminal and forth terminal;The first terminal of the headset plug and the first terminal of the earphone jack Corresponding, the Second terminal of the headset plug is corresponding with the Second terminal of the earphone jack, the 3rd end of the headset plug It is sub corresponding with the third terminal of the earphone jack, the forth terminal of the forth terminal of the headset plug and the earphone jack It is corresponding;
The location of described terminal according in the earphone jack of the terminal for supplying power for outside, sets the ear Each self-corresponding function of at least one terminal that machine transplanting of rice head includes, including:
When the terminal for supplying power for outside is the third terminal of the earphone jack, by the first end of the headset plug The function setting of son is L channel function, is R channel function by the function setting of the Second terminal of the headset plug, by institute The function setting for stating the third terminal of headset plug is microphone function, by the function setting of the forth terminal of the headset plug For ground wire function;
When the terminal for supplying power for outside is the forth terminal of the earphone jack, by the first end of the headset plug The function setting of son is L channel function, is R channel function by the function setting of the Second terminal of the headset plug, by institute The function setting for stating the forth terminal of headset plug is microphone function, by the function setting of the third terminal of the headset plug For ground wire function.
A kind of 6. controller, in earphone line control equipment as claimed in claim 1, it is characterised in that the controller bag Include:
Determining module, for when the headset plug of the earphone line control equipment inserts the earphone jack of terminal, determining the end In at least one terminal that the earphone jack at end includes, the terminal for supplying power for outside;
The location of setup module, the terminal for being used for supplying power for outside described in the earphone jack according to the terminal, Each self-corresponding function of at least one terminal of setting the headset plug to include.
7. controller according to claim 6, it is characterised in that the setup module, including:
First setting unit, for when the terminal for supplying power for outside be the earphone jack third terminal when, by institute The function setting for stating the first terminal of headset plug is L channel function, by the function setting of the Second terminal of the headset plug It is microphone function by the function setting of the third terminal of the headset plug, by the headset plug for R channel function The function setting of forth terminal is ground wire function;
Second setting unit, for when the terminal for supplying power for outside be the earphone jack forth terminal when, by institute The function setting for stating the first terminal of headset plug is L channel function, by the function setting of the Second terminal of the headset plug It is microphone function by the function setting of the forth terminal of the headset plug, by the headset plug for R channel function The function setting of third terminal is ground wire function;
The earphone jack includes the first terminal, Second terminal, third terminal and forth terminal successively from inside to outside;The earphone The first terminal of plug is corresponding with the first terminal of the earphone jack, and the Second terminal of the headset plug is inserted with the earphone The Second terminal in hole is corresponding, and the third terminal of the headset plug is corresponding with the third terminal of the earphone jack, the earphone The forth terminal of plug is corresponding with the forth terminal of the earphone jack.
A kind of 8. signal output method, in earphone line control equipment as claimed in claim 1, it is characterised in that the side Method includes:
When the headset plug of the earphone line control equipment inserts the earphone jack of terminal, the operating system of the terminal is identified System type;
Receive the standard key signal generated when the standard feature button is pressed;
When the operating system of the terminal is not the operating system being adapted to the standard key signal, according to the terminal The standard key signal is converted into compatibility key signal by the system type of operating system, and the compatibility key signal is described In the operating system of terminal corresponding function with the standard key signal in the operation system being adapted to the standard key signal Corresponding function phase is same in system;
The compatibility key signal is exported to the terminal by the plug.
9. according to the method for claim 8, it is characterised in that the operating system of the identification terminal, including:
Test push button signalling is exported to the terminal by the plug, the test push button signalling is and the test button letter A default push button signalling, different operating system correspond to different test push button signallings in operating system corresponding to number;
Detect the response signal whether terminal returns to the test push button signalling;
If the terminal returns to the response signal, it is and the survey by the system type identification of the operating system of the terminal Try the system type of operating system corresponding to push button signalling;
If the terminal does not return to the response signal, next operating system is exported to the terminal by the plug Corresponding test push button signalling.
A kind of 10. controller, in earphone line control equipment as claimed in claim 1, it is characterised in that the controller bag Include:
System identification module, for when the headset plug of the earphone line control equipment inserts the earphone jack of terminal, identifying institute State the system type of the operating system of terminal;
First signal receiving module, for receiving the standard key signal generated when the standard feature button is pressed;
Signal conversion module, for not being the operating system that is adapted to the standard key signal when the operating system of the terminal When, the standard key signal is converted into by compatibility key signal according to the system type of the operating system of the terminal, it is described Compatibility key signal corresponding function in the operating system of the terminal is pressed with the standard key signal with the standard Corresponding function phase is same in the operating system of key signals adaptation;
Signal output module, for exporting the compatibility key signal to the terminal by the plug.
11. controller according to claim 10, it is characterised in that the system identification module, including:
Signal output unit, for exporting test push button signalling, the test push button signalling to the terminal by the plug It is a default push button signalling in operating system corresponding with the test push button signalling, different operating system is corresponding different Test push button signalling;
First judging unit, the response signal of the test push button signalling whether is returned to for detecting the terminal;
Recognition unit, will if the judged result for first judging unit returns to the response signal for the terminal The system type identification of the operating system of the terminal is the system type for testing operating system corresponding to push button signalling.
12. controller according to claim 11, it is characterised in that
The signal output unit, if the judged result for being additionally operable to first judging unit does not return to the sound for the terminal Induction signal, then exported by the plug to the terminal and test push button signalling corresponding to next operating system.
A kind of 13. terminal control method, it is characterised in that for any described earphone line control equipment of claims 1 to 3 In connected terminal, methods described includes:
The earphone line control equipment is received by the system layer of the terminal and exports by headset plug button to the terminal Signal, the user-defined press key signal and/or the standard key signal are included in the push button signalling;
Pass through the control message that using transmission carries the push button signalling of the system layer of the terminal into the terminal;
Control instruction corresponding to the control message is obtained by the application;
The control instruction is performed by the application.
14. according to the method for claim 13, it is characterised in that the system layer by the terminal is to the terminal In carry the control message of the push button signalling using sending, including:
When often receiving a push button signalling, the control that the push button signalling is carried by the system layer generation of the terminal disappears Breath;
The control message is sent by application of the system layer of the terminal into the terminal.
15. according to the method for claim 14, it is characterised in that methods described also includes:
Shield the control instruction that the system layer of the terminal is sent to the application.
16. according to the method for claim 13, it is characterised in that the system layer by the terminal is to the terminal In carry the control message of the push button signalling using sending, including:
Whether the push button signalling received by the system layer detection of the terminal is user-defined press key signal;
If the push button signalling is the user-defined press key signal, generated by the system layer of the terminal described in carrying certainly Define the control message of push button signalling;
The control message is sent by application of the system layer of the terminal into the terminal.
17. according to any described method of claim 13 to 16, it is characterised in that when the control instruction is described self-defined It is described that the control instruction is performed by the application corresponding to push button signalling during control instruction, including:
Obtain the first reproduction time section corresponding to a multimedia file;
By in multimedia file described in the application plays, content of multimedia corresponding with the first reproduction time section;
Before specified content of multimedia corresponding to reproduction time section finishes, judge whether to obtain again by the application To the control instruction;
If judged result is to get the control instruction again by the application, played from the beginning by the application The multimedia file.
18. according to the method for claim 17, it is characterised in that methods described also includes:
If judged result is does not get the control instruction again by the application, right in the first reproduction time section After the content of multimedia answered finishes, the second reproduction time section corresponding to next multimedia file is obtained, and pass through institute State in next multimedia file described in application plays, content of multimedia corresponding to the second reproduction time section.
A kind of 19. terminal control mechanism, it is characterised in that for any described earphone line control equipment phase of claims 1 to 3 In terminal even, described device includes:
Secondary signal receiving module, pass through headset plug for receiving the earphone line control equipment by the system layer of the terminal The push button signalling to the terminal is exported, is pressed in the push button signalling comprising the user-defined press key signal and/or the standard Key signals;
Message transmission module, the button is carried using transmission into the terminal for the system layer by the terminal The control message of signal;
Instruction acquisition module, for obtaining control instruction corresponding to the control message by the application;
Execution module is instructed, for performing the control instruction by the application.
20. device according to claim 19, it is characterised in that the message transmission module, including:
First generation unit, during for often receiving a push button signalling, carried by the system layer generation of the terminal State the control message of push button signalling;
First transmitting element, the control message is sent for application of the system layer by the terminal into the terminal.
21. device according to claim 20, it is characterised in that described device also includes:
Shroud module, the control instruction that the system layer for shielding the terminal is sent to the application.
22. device according to claim 19, it is characterised in that the message transmission module, including:
Detection unit, whether the push button signalling received for the system layer detection by the terminal is user-defined press key Signal;
Second generation unit, if being the user-defined press key signal for the push button signalling, pass through the system of the terminal Layer generation carries the control message of the user-defined press key signal;
Second transmitting element, the control message is sent for application of the system layer by the terminal into the terminal.
23. according to any described device of claim 19 to 22, it is characterised in that the instruction execution module, including:
Period acquiring unit, for during control instruction, obtaining corresponding to being the user-defined press key signal when the control instruction Take the first reproduction time section corresponding to a multimedia file;
First broadcast unit, for by the way that in multimedia file described in the application plays, the first reproduction time section is corresponding Content of multimedia;
Second judging unit, for before specified content of multimedia corresponding to reproduction time section finishes, judging whether again It is secondary that the control instruction is got by the application;
Second broadcast unit, if the judged result for second judging unit is described to be got again by the application Control instruction, then the multimedia file is played by the application from the beginning.
24. device according to claim 23, it is characterised in that
The period acquiring unit, if the judged result for being additionally operable to second judging unit is not again by the application The control instruction is got, then after content of multimedia corresponding to the first reproduction time section finishes, under acquisition Second reproduction time section corresponding to one multimedia file;
First broadcast unit, it is additionally operable to by the way that in next multimedia file described in the application plays, described second broadcasts Put content of multimedia corresponding to the period.
CN201410512987.5A 2014-09-29 2014-09-29 Line traffic control equipment, controller, method and device CN104301824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410512987.5A CN104301824B (en) 2014-09-29 2014-09-29 Line traffic control equipment, controller, method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410512987.5A CN104301824B (en) 2014-09-29 2014-09-29 Line traffic control equipment, controller, method and device

Publications (2)

Publication Number Publication Date
CN104301824A CN104301824A (en) 2015-01-21
CN104301824B true CN104301824B (en) 2018-03-23

Family

ID=52321352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410512987.5A CN104301824B (en) 2014-09-29 2014-09-29 Line traffic control equipment, controller, method and device

Country Status (1)

Country Link
CN (1) CN104301824B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302971A (en) * 2015-06-04 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus identifying earphone
CN106454572A (en) * 2015-08-13 2017-02-22 涂俊 Earphone line controller
CN106252935B (en) * 2016-07-29 2018-12-04 维沃移动通信有限公司 A kind of headset plug, earphone socket and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365418A (en) * 2013-06-24 2013-10-23 张宝权 Drive-by-wire method for multi-platform application and adjustable drive-by-wire device
CN103513769A (en) * 2013-09-29 2014-01-15 小米科技有限责任公司 Method, device and mobile terminal for setting key function
CN103871433A (en) * 2012-12-10 2014-06-18 联想(北京)有限公司 Control method and electronic device
CN203813936U (en) * 2014-05-09 2014-09-03 杭州纳雄科技有限公司 Audio transmission equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070066385A (en) * 2005-12-22 2007-06-27 남승현 Earphone system for automatic function control of electronic devices using capacitive-sense method
CN101227670B (en) * 2007-11-20 2013-04-03 广东欧珀移动通信有限公司 Mobile phone line control machine and control method thereof
CN202873021U (en) * 2012-09-04 2013-04-10 深圳天珑无线科技有限公司 Earphone
CN203466950U (en) * 2013-09-18 2014-03-05 潍坊歌尔电子有限公司 Earphone capable of realizing compatibility with mobile phone audio interfaces with different standards
CN203492178U (en) * 2013-10-21 2014-03-19 宁波一凯电子有限公司 In-ear earphone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103871433A (en) * 2012-12-10 2014-06-18 联想(北京)有限公司 Control method and electronic device
CN103365418A (en) * 2013-06-24 2013-10-23 张宝权 Drive-by-wire method for multi-platform application and adjustable drive-by-wire device
CN103513769A (en) * 2013-09-29 2014-01-15 小米科技有限责任公司 Method, device and mobile terminal for setting key function
CN203813936U (en) * 2014-05-09 2014-09-03 杭州纳雄科技有限公司 Audio transmission equipment

Also Published As

Publication number Publication date
CN104301824A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
KR20150079829A (en) Gesture-based conversation processing method, apparatus, and terminal device
CN103576578B (en) Method, device and equipment for adopting earphone wire to control terminal
CN103400108B (en) Face identification method, device and mobile terminal
RU2632153C2 (en) Method, device and terminal for displaying virtual keyboard
CN103472971B (en) A kind of method, device and the terminal device of setting acquisition parameters
CN103513769B (en) Method, device and mobile terminal for setting key function
CN105187930B (en) Interactive approach and device based on net cast
CN104571498B (en) A kind of application program launching method
CN103686464B (en) Apparatus control method, device and electronic equipment
CN103744592B (en) The method and terminal of a kind of information processing
CN106126159B (en) A kind of audio stream processing method and mobile terminal
CN105828145B (en) Interactive approach and device
CN104519262B (en) Obtain the method, apparatus and terminal of video data
CN104837042B (en) The coding method of digital multimedia data and device
CN105363201B (en) The display methods and device of prompt message
CN107168609A (en) status bar display method, device and terminal
CN107741812B (en) A kind of method and terminal handling media file
CN105912919A (en) Fingerprint unlocking method and terminal
CN103399657B (en) The control method of mouse pointer, device and terminal unit
CN106447836B (en) A kind of door control terminal binding method and relevant device
CN107179871A (en) Fingerprint recognition region display methods and Related product
CN105959481B (en) A kind of control method and electronic equipment of scene audio
CN104036536B (en) The generation method and device of a kind of stop-motion animation
CN106126174B (en) A kind of control method and electronic equipment of scene audio
CN106331826A (en) Method, device and system for setting live broadcast template and video mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant