CN104301824A - Drive-by-wire device, controller, method and device - Google Patents

Drive-by-wire device, controller, method and device Download PDF

Info

Publication number
CN104301824A
CN104301824A CN201410512987.5A CN201410512987A CN104301824A CN 104301824 A CN104301824 A CN 104301824A CN 201410512987 A CN201410512987 A CN 201410512987A CN 104301824 A CN104301824 A CN 104301824A
Authority
CN
China
Prior art keywords
terminal
push button
button signalling
headset plug
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410512987.5A
Other languages
Chinese (zh)
Other versions
CN104301824B (en
Inventor
谢振宇
任凯
王舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses an earphone drive-by-wire device, a controller, a method and a device and belongs to the field of device control. The earphone drive-by-wire device comprises an earphone plug, at least one standard function key and at least one user-defined key. A standard keying signal is output through the plug when at least one standard function key is pressed. A user-defined keying signal is output through the plug when at least one user-defined key is pressed. The earphone drive-by-wire device is provided with at least one user-defined key, so that user-defined keying signals except keying signals corresponding to all control instructions preset in a system layer of a terminal are output through the earphone plug when at least one user-defined key is pressed. When an application capable of identifying the user-defined keying signal corresponding to the user-defined function key is installed on the terminal, functions of the earphone drive-by-wire device can be extended, and the earphone drive-by-wire device can meet the usage demand of a user.

Description

Line traffic control equipment, controller, method and device
Technical field
The present invention relates to equipment control field, particularly a kind of line traffic control equipment, controller, method and device
Background technology
Along with the development of electronic technology, the control mode of electronic equipment also gets more and more.Such as, user can be controlled the terminal be connected on earphone line control equipment by the button in earphone line control equipment.
The existing scheme by earphone line control Facility Control Terminal, usually three buttons are set in earphone line control equipment: volume adds key, volume down key and receiving talking key, the plug of earphone line control equipment is connected with the earphone jack of terminal, when a certain button in earphone line control equipment receives button operation, one can be produced to should the push button signalling of button operation.The control command that in the system layer of terminal, each push button signalling pre-defined is corresponding, when receiving the push button signalling that line traffic control equipment sends, the system layer of terminal inquires about corresponding control command according to this push button signalling, and control command is sent to the application program of current operation in terminal, perform this control command by this application program.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Earphone line control equipment only has when sending in the system layer of this terminal to terminal the push button signalling being preset with corresponding control command, could control terminal, and the control command preset in the system layer of terminal is usually less, cause the function of earphone line control equipment limited, the user demand of user can not be met.
Summary of the invention
In order to solve earphone line control equipment in prior art only have export in the system layer of this terminal to terminal the push button signalling being preset with corresponding control command time, could control mobile terminal, cause the function of earphone line control equipment limited, the problem of the user demand of user can not be met, the invention provides a kind of line traffic control equipment, controller, method and device.Described technical scheme is as follows:
First aspect, provides a kind of earphone line control equipment, and described earphone line control equipment comprises: headset plug, at least one standard feature button and at least one user-defined press key;
At least one standard feature button described and at least one user-defined press key described are electrical connected with described plug respectively;
At least one standard feature button described is when being pressed by described plug outputting standard push button signalling, and described standard key signal is the push button signalling corresponding to each control command preset in the system layer of terminal;
At least one user-defined press key described when being pressed by described plug output from definition push key signal, described user-defined press key signal be not in the system layer of described terminal preset the push button signalling corresponding to each control command.
Optionally, described earphone line control equipment also comprises: controller;
Described controller is electrical connected with at least one appointed function button described, at least one user-defined press key described and described plug respectively.
Optionally, at least one standard feature button described comprises: volume adds key, volume down key and receiving talking key.
Optionally, the quantity of described user-defined press key is 1.
Optionally, described earphone line control equipment also comprises: power supply;
Described power supply is connected with each device electric in described earphone line control equipment.
Second aspect, provides a kind of compatible method to set up, and in earphone line control equipment as described in relation to the first aspect, described method comprises:
When the headset plug of described earphone line control equipment inserts the earphone jack of terminal, determine at least one terminal that the earphone jack of described terminal comprises, for the terminal of supplying power for outside;
According to described in the earphone jack of described terminal for the position residing for the terminal of supplying power for outside, each self-corresponding function of at least one terminal that described headset plug comprises is set.
Optionally, described earphone jack comprises the first terminal, the second terminal, the 3rd terminal and the 4th terminal from inside to outside successively; The first terminal of described headset plug is corresponding with the first terminal of described earphone jack, second terminal of described headset plug is corresponding with the second terminal of described earphone jack, 3rd terminal of described headset plug is corresponding with the 3rd terminal of described earphone jack, and the 4th terminal of described headset plug is corresponding with the 4th terminal of described earphone jack;
Described according to described in the earphone jack of described terminal for the position residing for the terminal of supplying power for outside, each self-corresponding function of at least one terminal that described headset plug comprises is set, comprises:
When the described terminal for supplying power for outside is the 3rd terminal of described earphone jack, be L channel function by the function setting of the first terminal of described headset plug, be R channel function by the function setting of the second terminal of described headset plug, being microphone function by the function setting of the 3rd terminal of described headset plug, is ground wire function by the function setting of the 4th terminal of described headset plug;
When the described terminal for supplying power for outside is the 4th terminal of described earphone jack, be L channel function by the function setting of the first terminal of described headset plug, be R channel function by the function setting of the second terminal of described headset plug, being microphone function by the function setting of the 4th terminal of described headset plug, is ground wire function by the function setting of the 3rd terminal of described headset plug.
The third aspect, provides a kind of controller, and in earphone line control equipment as described in relation to the first aspect, described controller comprises:
Determination module, for when the headset plug of described earphone line control equipment inserts the earphone jack of terminal, determines at least one terminal that the earphone jack of described terminal comprises, for the terminal of supplying power for outside;
Module is set, for according to described in the earphone jack of described terminal for the position residing for the terminal of supplying power for outside, each self-corresponding function of at least one terminal that described headset plug comprises is set.
Optionally, described module is set, comprises:
First setting unit, for when the described terminal for supplying power for outside is the 3rd terminal of described earphone jack, be L channel function by the function setting of the first terminal of described headset plug, be R channel function by the function setting of the second terminal of described headset plug, being microphone function by the function setting of the 3rd terminal of described headset plug, is ground wire function by the function setting of the 4th terminal of described headset plug;
Second setting unit, for when the described terminal for supplying power for outside is the 4th terminal of described earphone jack, be L channel function by the function setting of the first terminal of described headset plug, be R channel function by the function setting of the second terminal of described headset plug, being microphone function by the function setting of the 4th terminal of described headset plug, is ground wire function by the function setting of the 3rd terminal of described headset plug;
Described earphone jack comprises the first terminal, the second terminal, the 3rd terminal and the 4th terminal from inside to outside successively; The first terminal of described headset plug is corresponding with the first terminal of described earphone jack, second terminal of described headset plug is corresponding with the second terminal of described earphone jack, 3rd terminal of described headset plug is corresponding with the 3rd terminal of described earphone jack, and the 4th terminal of described headset plug is corresponding with the 4th terminal of described earphone jack.
Fourth aspect, provides a kind of signal output method, and in earphone line control equipment as described in relation to the first aspect, described method comprises:
When the headset plug of described earphone line control equipment inserts the earphone jack of terminal, identify the system type of the operating system of described terminal;
Receive the standard key signal generated when described standard feature button is pressed;
When the operating system of described terminal is not the operating system with described standard key signal adaptation, described standard key signal is converted into compatible push button signalling by the system type according to the operating system of described terminal, and the function corresponding in the operating system of described terminal of described compatible push button signalling and described standard key signal are identical with corresponding function in the operating system of described standard key signal adaptation;
Described compatible push button signalling is exported to described terminal by described plug.
Optionally, the operating system of the described terminal of described identification, comprising:
Export test push button signalling by described plug to described terminal, described test push button signalling is the push button signalling preset in the operating system corresponding with described test push button signalling, the test push button signalling that different operating system is corresponding different;
Detect the response signal whether described terminal returns described test push button signalling;
If described terminal returns described response signal, then the system type of the operating system of described terminal is identified as the system type of the operating system corresponding with described test push button signalling;
If described terminal does not return described response signal, then export test push button signalling corresponding to next operating system by described plug to described terminal.
5th aspect, provides a kind of controller, and in earphone line control equipment as described in relation to the first aspect, described controller comprises:
System identification module, for when the headset plug of described earphone line control equipment inserts the earphone jack of terminal, identifies the system type of the operating system of described terminal;
First signal receiving module, for receiving the standard key signal generated when described standard feature button is pressed;
Signal conversion module, during for not being the operating system with described standard key signal adaptation when the operating system of described terminal, described standard key signal is converted into compatible push button signalling by the system type according to the operating system of described terminal, and the function corresponding in the operating system of described terminal of described compatible push button signalling and described standard key signal are identical with corresponding function in the operating system of described standard key signal adaptation;
Signal output module, for exporting described compatible push button signalling by described plug to described terminal.
Optionally, described system identification module, comprising:
Signal output unit, for exporting test push button signalling by described plug to described terminal, described test push button signalling is the push button signalling preset in the operating system corresponding with described test push button signalling, the test push button signalling that different operating system is corresponding different;
Whether the first judging unit, return the response signal of described test push button signalling for detecting described terminal;
Recognition unit, if be that described terminal returns described response signal for the judged result of described first judging unit, is then identified as the system type of operating system corresponding to described test push button signalling by the system type of the operating system of described terminal.
Optionally, described signal output unit, if be also that described terminal does not return described response signal for the judged result of described first judging unit, then exports test push button signalling corresponding to next operating system by described plug to described terminal.
6th aspect, provides a kind of terminal control method, and in the terminal that the earphone line control equipment described in first aspect is connected, described method comprises:
Receive by the system layer of described terminal described earphone line control equipment to export to described terminal push button signalling by headset plug, in described push button signalling, comprise described user-defined press key signal and/or described standard key signal;
The control message carrying described push button signalling is sent to the application in described terminal by the system layer of described terminal;
Control command corresponding to described control message is obtained by described application;
Described control command is performed by described application.
Optionally, the described system layer by described terminal sends the control message carrying described push button signalling to the application in described terminal, comprising:
When often receiving a push button signalling, generate by the system layer of described terminal the control message carrying described push button signalling;
Described control message is sent to the application in described terminal by the system layer of described terminal.
Optionally, described method also comprises:
The control command that the system layer shielding described terminal sends to described application.
Optionally, the described system layer by described terminal sends the control message carrying described push button signalling to the application in described terminal, comprising:
Detect whether the described push button signalling received is user-defined press key signal by the system layer of described terminal;
If described push button signalling is described user-defined press key signal, then generate by the system layer of described terminal the control message carrying described user-defined press key signal;
Described control message is sent to the application in described terminal by the system layer of described terminal.
Optionally, when described control command is control command corresponding to described user-defined press key signal, describedly perform described control command by described application, comprising:
Obtain the first reproduction time section that a multimedia file is corresponding;
By in multimedia file described in described application plays, the content of multimedia corresponding with described first reproduction time section;
Before the content of multimedia of described appointment reproduction time section correspondence finishes, judge whether again to get described control command by described application;
If judged result is for again to get described control command by described application, then start anew to play described multimedia file by described application.
Optionally, described method also comprises:
If judged result is not for again to get described control command by described application, then after the content of multimedia of described first reproduction time section correspondence finishes, obtain the second reproduction time section that next multimedia file is corresponding, and by next multimedia file described in described application plays, the content of multimedia of described second reproduction time section correspondence.
7th aspect, provides a kind of terminal control mechanism, and in the terminal that earphone line control equipment is as described in relation to the first aspect connected, described device comprises:
Secondary signal receiver module, to be exported to the push button signalling of described terminal, comprises described user-defined press key signal and/or described standard key signal in described push button signalling by headset plug for being received described earphone line control equipment by the system layer of described terminal;
Message transmission module, sends for the system layer by described terminal the control message carrying described push button signalling to the application in described terminal;
Instruction acquisition module, for obtaining control command corresponding to described control message by described application;
Instruct execution module, for performing described control command by described application.
Optionally, described message transmission module, comprising:
First generation unit, during for often receiving a push button signalling, generates by the system layer of described terminal the control message carrying described push button signalling;
First transmitting element, sends described control message for the system layer by described terminal to the application in described terminal.
Optionally, described device also comprises:
Shroud module, the control command that the system layer for shielding described terminal sends to described application.
Optionally, described message transmission module, comprising:
By the system layer of described terminal, detecting unit, for detecting whether the described push button signalling received is user-defined press key signal;
Second generation unit, if be described user-defined press key signal for described push button signalling, then generates by the system layer of described terminal the control message carrying described user-defined press key signal;
Second transmitting element, sends described control message for the system layer by described terminal to the application in described terminal.
Optionally, described instruct execution module, comprising:
Time period acquiring unit, during for being control command corresponding to described user-defined press key signal when described control command, obtains the first reproduction time section that a multimedia file is corresponding;
First broadcast unit, for by multimedia file described in described application plays, the content of multimedia of described first reproduction time section correspondence;
Second judging unit, before finishing at the content of multimedia of described appointment reproduction time section correspondence, judges whether again to get described control command by described application;
Second broadcast unit, if for the judged result of described second judging unit for again to get described control command by described application, then start anew to play described multimedia file by described application.
Optionally, described time period acquiring unit, if also for the judged result of described second judging unit for again not get described control command by described application, then after the content of multimedia of described first reproduction time section correspondence finishes, obtain the second reproduction time section that next multimedia file is corresponding;
Described first broadcast unit, also for by next multimedia file described in described application plays, the content of multimedia of described second reproduction time section correspondence.
The beneficial effect of technical scheme provided by the invention is:
By arranging at least one user-defined press key signal, when this at least one user-defined press key is pressed by the user-defined press key signal outside the push button signalling corresponding to each control command default in the system layer of headset plug outlet terminal, when installation can identify the application of the user-defined press key signal that this custom feature button is corresponding in the terminal, namely can reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
Accompanying drawing explanation
Fig. 1 is the equipment pie graph of the earphone line control equipment that one embodiment of the invention provides;
Fig. 2 is the equipment pie graph of the earphone line control equipment that another embodiment of the present invention provides;
Fig. 3 is the method flow diagram of the compatible method to set up that one embodiment of the invention provides;
Fig. 4 is the method flow diagram of the compatible method to set up that another embodiment of the present invention provides;
Fig. 5 is the headset plug functional schematic that each terminal is corresponding under two kinds of distinct interface standards that another embodiment of the present invention provides;
Fig. 6 is the structural representation of the controller that one embodiment of the invention provides;
Fig. 7 is the structural representation of the controller that another embodiment of the present invention provides;
Fig. 8 is the method flow diagram of the signal output method that one embodiment of the invention provides;
Fig. 9 is the method flow diagram of the signal output method that another embodiment of the present invention provides;
Figure 10 is the structural representation of the controller that one embodiment of the invention provides;
Figure 11 is the structural representation of the controller that another embodiment of the present invention provides;
Figure 12 is the method flow diagram of the terminal control method that one embodiment of the invention provides;
Figure 13 is the method flow diagram of the terminal control method that another embodiment of the present invention provides;
Figure 14 is the method flow diagram of the terminal control method that further embodiment of this invention provides;
Figure 15 is the structure drawing of device of the terminal control mechanism that one embodiment of the invention provides;
Figure 16 is the structure drawing of device of the terminal control mechanism that another embodiment of the present invention provides;
Figure 17 is the block diagram of the terminal that one embodiment of the invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 1, it illustrates the equipment pie graph of the earphone line control equipment that one embodiment of the invention provides, this earphone line control equipment can comprise: headset plug 102, at least one standard feature button 104 and at least one user-defined press key 106;
This at least one standard feature button 104 and this at least one user-defined press key 106 are electrical connected with this plug 102 respectively;
This at least one standard feature button 104 is when being pressed by this headset plug 102 outputting standard push button signalling, and this standard key signal is the push button signalling corresponding to each control command preset in the system layer of terminal;
This at least one user-defined press key 106 when being pressed by this headset plug 102 output from definition push key signal, this user-defined press key signal be not in the system layer of this terminal preset the push button signalling corresponding to each control command.
In the earphone line control equipment shown in the present embodiment, can by except the standard feature button of terminal Direct Recognition except comprising, can also comprise terminal can not the custom feature button of Direct Recognition, when installation can identify the application of the user-defined press key signal that this custom feature button is corresponding in the terminal, namely can realize the Function Extension of earphone line control equipment, thus the effect of user's user demand can be met.
In sum, the earphone line control equipment that the embodiment of the present invention provides, by arranging at least one user-defined press key signal, when this at least one user-defined press key is pressed by the user-defined press key signal outside the push button signalling corresponding to each control command default in the system layer of headset plug outlet terminal, when installation can identify the application of the user-defined press key signal that this custom feature button is corresponding in the terminal, namely can reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
Please refer to Fig. 2, it illustrates the equipment pie graph of the earphone line control equipment that another embodiment of the present invention provides, this earphone line control equipment can comprise: headset plug 202, at least one standard feature button 204 and at least one user-defined press key 206;
This at least one standard feature button 204 and this at least one user-defined press key 206 are electrical connected with this plug 202 respectively;
This at least one standard feature button 204 is when being pressed by this headset plug 202 outputting standard push button signalling, and this standard key signal is the push button signalling corresponding to each control command preset in the system layer of terminal;
This at least one user-defined press key 206 when being pressed by this headset plug 202 output from definition push key signal, this user-defined press key signal be not in the system layer of this terminal preset the push button signalling corresponding to each control command.
In the earphone line control equipment shown in the present embodiment, can by except the button of the standard feature of terminal Direct Recognition except comprising, can also comprise terminal can not the custom feature button of Direct Recognition, when installation can identify the application of the user-defined press key signal that this custom feature button is corresponding in the terminal, namely can realize the Function Extension of earphone line control equipment, thus the effect of user's user demand can be met.
In addition, this line control earphone also comprises: controller 208;
This controller 208 is electrical connected with this at least one appointed function button 204, this at least one user-defined press key 206 and this headset plug 202 respectively.
In addition, more specifically, this at least one standard feature button 204 comprises: volume adds key 2042, volume down key 2044 and receiving talking key 2046.
The quantity of this user-defined press key 206 is 1.
In the present embodiment, earphone line control equipment only can comprise a user-defined press key.
In addition, this earphone line control equipment also comprises: power supply 210;
This power supply 210 is connected with each device electric in this line control earphone.
Multiple terminal is comprised in earphone line control equipment, accordingly, also comprise the terminal of equal number in the earphone jack of terminal, when the headset plug of earphone line control equipment inserts the earphone jack in terminal, the multiple terminal in headset plug and the multiple terminals in earphone jack connect one to one.Some terminals in earphone jack can be set to power supply terminal by terminal, and for powering for earphone line control equipment, accordingly, terminal corresponding with this power supply terminal in headset plug is for receiving the power supply of this terminal.
Because different terminals may adopt different earphone interface standards, and in different earphone interface standards, the power supply terminal position of earphone jack is not quite similar, and when the uncomfortable timing of interface standard of headset plug and earphone jack, terminal just cannot be powered for earphone line control equipment.In order to avoid this situation, in embodiments of the present invention, be provided with independently power supply in earphone line control equipment, do not need terminal to be its power supply by earphone jack, thus enable the multiple terminal that the interface standard of earphone line control equipment compatible with earphone jack is different.
In sum, the earphone line control equipment that the embodiment of the present invention provides, by arranging at least one user-defined press key signal, when this at least one user-defined press key is pressed by the user-defined press key signal outside the push button signalling corresponding to each control command default in the system layer of headset plug outlet terminal, when installation can identify the application of the user-defined press key signal that this custom feature button is corresponding in the terminal, namely can reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
In addition, the earphone line control equipment that the embodiment of the present invention provides, by arranging independently power supply, avoids the uncomfortable timing of standard when headset plug and earphone jack, the situation that terminal cannot be powered for earphone line control equipment, reaches the effect of the different multiple terminal of the interface standard of compatible with earphone jack.
Earphone line control equipment shown in above-mentioned Fig. 1 or Fig. 2 and following three kinds of incompatible situations may be there are between terminal:
The 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, the function of the terminal that headset plug is corresponding from position in earphone jack may be different, cause earphone line control equipment and terminal incompatible.
Second, when the operating system run in the operating system and terminal of the support of earphone line control equipment is inconsistent, the standard key signal that the standard key signal produced when the standard feature button of corresponding a certain function is pressed in earphone line control equipment is corresponding with this function default in the system layer of terminal is inconsistent, thus cause earphone line control equipment and this terminal incompatible.
3rd, owing to not arranging control command corresponding to user-defined press key signal in the system layer of terminal, namely the user-defined press key signal produced when the user-defined press key in earphone line control equipment is pressed cannot by the system layer identification of terminal, thus cause earphone line control equipment and this terminal incompatible.
The following examples of the present invention are described respectively by the process of these three kinds of incompatibility problems.
Please refer to Fig. 3, it illustrates the method flow diagram of the compatible method to set up that one embodiment of the invention provides.The method may be used in earphone line control equipment as shown in Figure 2, and performed by the controller in this earphone line control equipment, the method can comprise:
Step 302, when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, determines at least one terminal that the earphone jack of this terminal comprises, for the terminal of supplying power for outside;
Step 304, is used for the position residing for terminal of supplying power for outside according to this in the earphone jack of this terminal, arrange each self-corresponding function of at least one terminal that this headset plug comprises.
Wherein, whether whether earphone line control equipment and terminal compatible except corresponding for the terminal of supplying power for outside in the earphone jack depending on terminal and the terminal of powering for receiving terminal in earphone line control equipment, also depends on that whether headset plug is identical with the function of two corresponding terminals every in earphone jack.When the interface standard of the earphone jack of the headset plug in earphone line control equipment and terminal is inconsistent, the situation that headset plug is different with the function of two corresponding terminals in earphone jack may be there is, when this headset plug inserts this earphone jack, the function of these two corresponding terminals just cannot normally use.In embodiments of the present invention, earphone line control equipment can by the position for the terminal of supplying power for outside in the earphone jack of determining terminal, determine the interface standard of this earphone jack, and then function corresponding to each terminal in headset plug is set, make the interface standard of the earphone jack of function that each terminal in headset plug is corresponding and terminal suitable, thus improve earphone line control equipment to the compatibility of different terminals.
In sum, the compatible method to set up that the embodiment of the present invention provides, when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, by determining at least one terminal that the earphone jack of this terminal comprises, for the terminal of supplying power for outside, be used for the position residing for terminal of supplying power for outside according to this in the earphone jack of this terminal, each self-corresponding function of at least one terminal that this headset plug comprises is set, thus improve earphone line control equipment to the compatibility of different terminals.
Please refer to Fig. 4, it illustrates the method flow diagram of the compatible method to set up that another embodiment of the present invention provides.The method may be used in earphone line control equipment as shown in Figure 2, and performed by the controller in this earphone line control equipment, the method can comprise:
Step 402, when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, determines at least one terminal that the earphone jack of this terminal comprises, for the terminal of supplying power for outside;
Wherein, whether whether earphone line control equipment and terminal compatible except corresponding for the terminal of supplying power for outside in the earphone jack depending on terminal and the terminal of powering for receiving terminal in earphone line control equipment, also depends on that whether headset plug is identical with the function of two corresponding terminals every in earphone jack.When the interface standard of the earphone jack of the headset plug in earphone line control equipment and terminal is inconsistent, the situation that headset plug is different with the function of two corresponding terminals in earphone jack may be there is, when this headset plug inserts this earphone jack, the function of these two corresponding terminals just cannot normally use.In embodiments of the present invention, earphone line control equipment can by the position for the terminal of supplying power for outside in the earphone jack of determining terminal, determine the interface standard of this earphone jack, and then function corresponding to each terminal in headset plug is set, make the interface standard of the earphone jack of function that each terminal in headset plug is corresponding and terminal suitable, thus improve earphone line control equipment to the compatibility of different terminals.
Further, this earphone jack can comprise the first terminal, the second terminal, the 3rd terminal and the 4th terminal from inside to outside successively; Accordingly, the first terminal, the second terminal, the 3rd terminal and the 4th terminal is also comprised in headset plug.The first terminal of this headset plug is corresponding with the first terminal of this earphone jack, second terminal of this headset plug is corresponding with the second terminal of this earphone jack, 3rd terminal of this headset plug is corresponding with the 3rd terminal of this earphone jack, and the 4th terminal of this headset plug is corresponding with the 4th terminal of this earphone jack.
Step 404, when this terminal for supplying power for outside is the 3rd terminal of this earphone jack, be L channel function by the function setting of the first terminal of this headset plug, be R channel function by the function setting of the second terminal of this headset plug, being microphone function by the function setting of the 3rd terminal of this headset plug, is ground wire function by the function setting of the 4th terminal of this headset plug;
Concrete, please refer to the functional schematic that each terminal is corresponding under two kinds of distinct interface standards (international standard and CNS) of the headset plug shown in Fig. 5.Wherein, a headset plug comprises four terminals, is respectively the first terminal, the second terminal, the 3rd terminal and the 4th terminal, and accordingly, the first terminal corresponding in earphone jack, the second terminal, the 3rd terminal and the 4th terminal are arranged in order from inside to outside.
Comparison diagram 5 can find, in international standard and CNS, the first terminal of headset plug is L channel function, the second terminal is R channel function.Unlike, in international standard, the 3rd terminal of headset plug is ground wire function, the 4th terminal is microphone function; And in CNS, the 3rd terminal of headset plug is microphone function, the 4th terminal is ground wire function.
Simultaneously, in international standard and CNS, all powered by the terminal of microphone function, namely when the power supply terminal in the earphone jack of terminal is the 3rd terminal, can determine that the interface standard of the earphone jack of this terminal is CNS, now, the function setting of the first terminal in headset plug can be L channel function by earphone line control equipment, be R channel function by the function setting of the second terminal of this headset plug, be microphone function by the function setting of the 3rd terminal of this headset plug, be ground wire function by the function setting of the 4th terminal of this headset plug, thus make the interface standard of the headset plug of earphone line control equipment and the earphone jack of terminal suitable.
Step 406, when this terminal for supplying power for outside is the 4th terminal of this earphone jack, be L channel function by the function setting of the first terminal of this headset plug, be R channel function by the function setting of the second terminal of this headset plug, being microphone function by the function setting of the 4th terminal of this headset plug, is ground wire function by the function setting of the 3rd terminal of this headset plug.
Accordingly, when power supply terminal in the earphone jack of terminal is the 4th terminal, can determine that the interface standard of the earphone jack of this terminal is international standard, now, the function setting of the first terminal in headset plug can be L channel function by earphone line control equipment, be R channel function by the function setting of the second terminal of this headset plug, be microphone function by the function setting of the 4th terminal of this headset plug, be ground wire function by the function setting of the 3rd terminal of this headset plug, thus make the interface standard of the headset plug of earphone line control equipment and the earphone jack of terminal suitable.
In sum, the compatible method to set up that the embodiment of the present invention provides, when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, by determining at least one terminal that the earphone jack of this terminal comprises, for the terminal of supplying power for outside, be used for the position residing for terminal of supplying power for outside according to this in the earphone jack of this terminal, each self-corresponding function of at least one terminal that this headset plug comprises is set, thus improve earphone line control equipment to the compatibility of different terminals.
Please refer to Fig. 6, it illustrates the structural representation of the controller that one embodiment of the invention provides, this controller can be the controller in the earphone line control equipment shown in Fig. 2, and for performing the compatible method to set up shown in Fig. 3 or Fig. 4, this controller can comprise:
Determination module 601, for when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, determines at least one terminal that the earphone jack of this terminal comprises, for the terminal of supplying power for outside;
Module 602 is set, for be used for supplying power for outside according to this in the earphone jack of this terminal terminal residing for position, each self-corresponding function of at least one terminal that this headset plug comprises is set.
Wherein, whether whether earphone line control equipment and terminal compatible except corresponding for the terminal of supplying power for outside in the earphone jack depending on terminal and the terminal of powering for receiving terminal in earphone line control equipment, also depends on that whether headset plug is identical with the function of two corresponding terminals every in earphone jack.When the interface standard of the earphone jack of the headset plug in earphone line control equipment and terminal is inconsistent, the situation that headset plug is different with the function of two corresponding terminals in earphone jack may be there is, when this headset plug inserts this earphone jack, the function of these two corresponding terminals just cannot normally use.In embodiments of the present invention, earphone line control equipment can by the position for the terminal of supplying power for outside in the earphone jack of determining terminal, determine the interface standard of this earphone jack, and then function corresponding to each terminal in headset plug is set, make the interface standard of the earphone jack of function that each terminal in headset plug is corresponding and terminal suitable, thus improve earphone line control equipment to the compatibility of different terminals.
In sum, the controller that the embodiment of the present invention provides, when the headset plug of this earphone line control equipment is connected with the earphone jack of terminal, by determining at least one terminal that the earphone jack of this terminal comprises, for the terminal of supplying power for outside, be used for the position residing for terminal of supplying power for outside according to this in the earphone jack of this terminal, each self-corresponding function of at least one terminal that this headset plug comprises is set, thus improve earphone line control equipment to the compatibility of different terminals.
Please refer to Fig. 7, it illustrates the structural representation of the controller that another embodiment of the present invention provides, this controller can be the controller in the earphone line control equipment shown in Fig. 2, and for performing the compatible method to set up shown in Fig. 3 or Fig. 4, this controller can comprise:
Determination module 601, for when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, determines at least one terminal that the earphone jack of this terminal comprises, for the terminal of supplying power for outside;
Module 602 is set, for be used for supplying power for outside according to this in the earphone jack of this terminal terminal residing for position, each self-corresponding function of at least one terminal that this headset plug comprises is set.
Wherein, whether whether earphone line control equipment and terminal compatible except corresponding for the terminal of supplying power for outside in the earphone jack depending on terminal and the terminal of powering for receiving terminal in earphone line control equipment, also depends on that whether headset plug is identical with the function of two corresponding terminals every in earphone jack.When the interface standard of the earphone jack of the headset plug in earphone line control equipment and terminal is inconsistent, the situation that headset plug is different with the function of two corresponding terminals in earphone jack may be there is, when this headset plug inserts this earphone jack, the function of these two corresponding terminals just cannot normally use.In embodiments of the present invention, earphone line control equipment can by the position for the terminal of supplying power for outside in the earphone jack of determining terminal, determine the interface standard of this earphone jack, and then function corresponding to each terminal in headset plug is set, make the interface standard of the earphone jack of function that each terminal in headset plug is corresponding and terminal suitable, thus improve earphone line control equipment to the compatibility of different terminals.
This arranges module 602, comprising:
First setting unit 602a, for when this terminal for supplying power for outside is the 3rd terminal of this earphone jack, be L channel function by the function setting of the first terminal of this headset plug, be R channel function by the function setting of the second terminal of this headset plug, being microphone function by the function setting of the 3rd terminal of this headset plug, is ground wire function by the function setting of the 4th terminal of this headset plug;
Second setting unit 602b, for when this terminal for supplying power for outside is the 4th terminal of this earphone jack, be L channel function by the function setting of the first terminal of this headset plug, be R channel function by the function setting of the second terminal of this headset plug, being microphone function by the function setting of the 4th terminal of this headset plug, is ground wire function by the function setting of the 3rd terminal of this headset plug;
This earphone jack comprises the first terminal, the second terminal, the 3rd terminal and the 4th terminal from inside to outside successively; The first terminal of this headset plug is corresponding with the first terminal of this earphone jack, second terminal of this headset plug is corresponding with the second terminal of this earphone jack, 3rd terminal of this headset plug is corresponding with the 3rd terminal of this earphone jack, and the 4th terminal of this headset plug is corresponding with the 4th terminal of this earphone jack.
In sum, the controller that the embodiment of the present invention provides, when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, by determining at least one terminal that the earphone jack of this terminal comprises, for the terminal of supplying power for outside, be used for the position residing for terminal of supplying power for outside according to this in the earphone jack of this terminal, each self-corresponding function of at least one terminal that this headset plug comprises is set, thus improve earphone line control equipment to the compatibility of different terminals.
Please refer to Fig. 8, it illustrates the method flow diagram of the signal output method that one embodiment of the invention provides, the method may be used in earphone line control equipment as shown in Figure 2, and the method can comprise:
Step 802, when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, identifies the system type of the operating system of this terminal;
Step 804, receives the standard key signal generated when this standard feature button is pressed;
Step 806, when the operating system of this terminal is not the operating system with this standard key signal adaptation, this standard key signal is converted into compatible push button signalling by the system type according to the operating system of this terminal, and the function corresponding in the operating system of this terminal of this compatible push button signalling and this standard key signal are identical with corresponding function in the operating system of this standard key signal adaptation;
Step 808, exports this compatible push button signalling by this plug to this terminal.
Wherein, the push button signalling that earphone line control equipment sends to terminal is generally voltage pulse signal, and different push button signallings is distinguished by the voltage value of voltage pulse signal and/or key mode, wherein, key mode can comprise click, double-click or long by etc.
In advance for each control command arranges corresponding push button signalling in the system layer of terminal, this control command can be performed by the application of terminal, to realize corresponding function.In the operating system that operation two kinds is different in terminal, in its respective system layer, the push button signalling of corresponding same function also may be different.
Such as, be voltage pulse signal by headset plug to the push button signalling that terminal exports for earphone line control equipment, in operating system A, the magnitude of voltage of the push button signalling that volume up function is corresponding is U 1, and in operating system B, the magnitude of voltage that the push button signalling that volume up function is corresponding is corresponding is U 2, the magnitude of voltage that the push button signalling produced when the volume increment key in earphone line control equipment is pressed is corresponding is U 1time, the volume increment key in this earphone line control equipment the terminal of controlling run operating system A can only increase volume, and magnitude of voltage corresponding to push button signalling produced when the volume increment key in earphone line control equipment is pressed is U 2time, the volume increment key in this earphone line control equipment can only controlling run operating system B terminal increase volume.Namely the operating system that the push button signalling of an earphone line control equipment output cannot be simultaneously compatible all.
To this, in embodiments of the present invention, earphone line control equipment first can determine the system type of the operating system of terminal, and the system that the standard key signal produced when whether the operating system detecting this terminal is and is pressed with the standard feature button in earphone line control equipment is suitable.If the operating system of this terminal is not the operating system with this standard key signal adaptation, then when the standard feature button in earphone line control equipment is pressed, this standard feature signal is converted into compatible push button signalling and exports to terminal by earphone line control equipment, thus reach and make the standard feature button in earphone line control equipment can the effect of adaptive different OS Type, improve the compatibility of earphone line control equipment and terminal further.
In sum, the signal output method that the embodiment of the present invention provides, by identifying the system type of the operating system of this terminal, when the operating system of this terminal is not the operating system with this standard key signal adaptation, this standard key signal is converted into compatible push button signalling and exports to terminal by the system type according to the operating system of this terminal, reach the effect making the adaptive different OS Type of the standard feature button in earphone line control equipment, improve the compatibility of earphone line control equipment and terminal further.
Please refer to Fig. 9, it illustrates the method flow diagram of the signal output method that another embodiment of the present invention provides, the method may be used in earphone line control equipment as shown in Figure 2, and the method can comprise:
Step 902, when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, exports test push button signalling by this plug to this terminal;
Wherein, this test push button signalling is the push button signalling preset in the operating system corresponding with this test push button signalling, the test push button signalling that different operating system is corresponding different.
Wherein, the push button signalling that earphone line control equipment sends to terminal is generally voltage pulse signal, and different push button signallings is distinguished by the voltage value of voltage pulse signal and/or key mode, wherein, key mode can comprise click, double-click or long by etc.
In advance for each control command arranges corresponding push button signalling in the system layer of terminal, this control command can be performed by the application of terminal, to realize corresponding function.In the operating system that operation two kinds is different in terminal, in its respective system layer, the push button signalling of corresponding same function also may be different.
Such as, be voltage pulse signal by headset plug to the push button signalling that terminal exports for earphone line control equipment, in operating system A, the magnitude of voltage of the push button signalling that volume up function is corresponding is U 1, and in operating system B, the magnitude of voltage that the push button signalling that volume up function is corresponding is corresponding is U 2, the magnitude of voltage that the push button signalling produced when the volume increment key in earphone line control equipment is pressed is corresponding is U 1time, the volume increment key in this earphone line control equipment the terminal of controlling run operating system A can only increase volume, and magnitude of voltage corresponding to push button signalling produced when the volume increment key in earphone line control equipment is pressed is U 2time, the volume increment key in this earphone line control equipment can only controlling run operating system B terminal increase volume.Namely the operating system that the push button signalling of an earphone line control equipment output cannot be simultaneously compatible all.
To this, in embodiments of the present invention, first earphone line control equipment can send test push button signalling, to determine the system type of the operating system of terminal to terminal.
Step 904, judges whether this terminal returns the response signal of this test push button signalling, if so, enters step 906, otherwise, enter step 908;
Step 906, is identified as the system type of the operating system corresponding with this test push button signalling, enters step 910 by the system type of the operating system of this terminal;
Step 908, exports test push button signalling corresponding to next operating system by this plug to this terminal, returns step 904;
Wherein, when the push button signalling that earphone line control equipment exports to terminal can identify by terminal time, terminal will return a response to earphone line control equipment.Earphone line control equipment can arrange a test push button signalling for the operating system of each system type, and this test push button signalling can be preset in the system layer of the operating system of correspondence, the push button signalling of corresponding a certain control command.When the headset plug of this earphone line control equipment inserts the earphone jack of terminal, these test push button signallings are sent one by one to terminal, if receive the response signal corresponding to some test push button signallings that terminal returns, then the system type of the operating system of this terminal is identified as the system type of the operating system corresponding with this test push button signalling.
Step 910, receives the standard key signal generated when this standard feature button is pressed;
Step 912, when the operating system of this terminal is not the operating system with this standard key signal adaptation, this standard key signal is converted into compatible push button signalling by the system type according to the operating system of this terminal, and the function corresponding in the operating system of this terminal of this compatible push button signalling and this standard key signal are identical with corresponding function in the operating system of this standard key signal adaptation;
Step 914, exports this compatible push button signalling by this plug to this terminal.
Wherein, the push button signalling that earphone line control equipment sends to terminal is generally voltage pulse signal, and different push button signallings is distinguished by the voltage value of voltage pulse signal and/or key mode, wherein, key mode can comprise click, double-click or long by etc.
In advance for each control command arranges corresponding push button signalling in the system layer of terminal, this control command can be performed by the application of terminal, to realize corresponding function.In the operating system that operation two kinds is different in terminal, in its respective system layer, the push button signalling of corresponding same function also may be different.
Such as, be voltage pulse signal by headset plug to the push button signalling that terminal exports for earphone line control equipment, in operating system A, the magnitude of voltage of the push button signalling that volume up function is corresponding is U 1, and in operating system B, the magnitude of voltage that the push button signalling that volume up function is corresponding is corresponding is U 2, the magnitude of voltage that the push button signalling produced when the volume increment key in earphone line control equipment is pressed is corresponding is U 1time, the volume increment key in this earphone line control equipment the terminal of controlling run operating system A can only increase volume, and magnitude of voltage corresponding to push button signalling produced when the volume increment key in earphone line control equipment is pressed is U 2time, the volume increment key in this earphone line control equipment can only controlling run operating system B terminal increase volume.Namely the operating system that the push button signalling of an earphone line control equipment output cannot be simultaneously compatible all.
To this, in embodiments of the present invention, earphone line control equipment first can determine the system type of the operating system of terminal, and the system that the standard key signal produced when whether the operating system detecting this terminal is and is pressed with the standard feature button in earphone line control equipment is suitable.If the operating system of this terminal is not the operating system with this standard key signal adaptation, then when the standard feature button in earphone line control equipment is pressed, this standard feature signal is converted into compatible push button signalling and exports to terminal by earphone line control equipment, thus reach and make the standard feature button in earphone line control equipment can the effect of adaptive different OS Type, improve the compatibility of earphone line control equipment and terminal further.
In sum, the signal output method that the embodiment of the present invention provides, by identifying the system type of the operating system of this terminal, when the operating system of this terminal is not the operating system with this standard key signal adaptation, this standard key signal is converted into compatible push button signalling and exports to terminal by the system type according to the operating system of this terminal, reach the effect making the adaptive different OS Type of the standard feature button in earphone line control equipment, improve the compatibility of earphone line control equipment and terminal further.
Please refer to Figure 10, it illustrates the structural representation of the controller that one embodiment of the invention provides, this controller can be the controller in the earphone line control equipment shown in Fig. 2, and for performing the signal output method shown in Fig. 8 or Fig. 9, this controller can comprise:
System identification module 1001, for when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, identifies the system type of the operating system of this terminal;
First signal receiving module 1002, for receiving the standard key signal generated when this standard feature button is pressed;
Signal conversion module 1003, for when the operating system of this terminal is not the operating system with this standard key signal adaptation, this standard key signal is converted into compatible push button signalling by the system type according to the operating system of this terminal, and the function corresponding in the operating system of this terminal of this compatible push button signalling and this standard key signal are identical with corresponding function in the operating system of this standard key signal adaptation;
Signal output module 1004, for exporting this compatible push button signalling by this plug to this terminal.
In sum, the controller that the embodiment of the present invention provides, by identifying the system type of the operating system of this terminal, when the operating system of this terminal is not the operating system with this standard key signal adaptation, this standard key signal is converted into compatible push button signalling and exports to terminal by the system type according to the operating system of this terminal, reaches the effect making the adaptive different OS Type of the standard feature button in earphone line control equipment.
Please refer to Figure 11, it illustrates the structural representation of the controller that another embodiment of the present invention provides, this controller can be the controller in the earphone line control equipment shown in Fig. 2, and for performing the signal output method shown in Fig. 8 or Fig. 9, this controller can comprise:
System identification module 1001, for when the headset plug of this earphone line control equipment inserts the earphone jack of terminal, identifies the system type of the operating system of this terminal;
First signal receiving module 1002, for receiving the standard key signal generated when this standard feature button is pressed;
Signal conversion module 1003, for when the operating system of this terminal is not the operating system with this standard key signal adaptation, this standard key signal is converted into compatible push button signalling by the system type according to the operating system of this terminal, and the function corresponding in the operating system of this terminal of this compatible push button signalling and this standard key signal are identical with corresponding function in the operating system of this standard key signal adaptation;
Signal output module 1004, for exporting this compatible push button signalling by this plug to this terminal.
This system identification module 1001, comprising:
Signal output unit 1001a, for exporting test push button signalling by this plug to this terminal, this test push button signalling is the push button signalling preset in the operating system corresponding with this test push button signalling, the test push button signalling that different operating system is corresponding different;
First judging unit 1001b, for judging whether this terminal returns the response signal of this test push button signalling;
Recognition unit 1001c, if return this response signal for the judged result of this first judging unit 1001b for this terminal, is then identified as the system type of operating system corresponding to this test push button signalling by the system type of the operating system of this terminal.
This signal output unit 1001a, if also do not return this response signal for the judged result of this first judging unit 1001b for this terminal, then exports test push button signalling corresponding to next operating system by this plug to this terminal.
In sum, the controller that the embodiment of the present invention provides, by identifying the system type of the operating system of this terminal, when the operating system of this terminal is not the operating system with this standard key signal adaptation, this standard key signal is converted into compatible push button signalling and exports to terminal by the system type according to the operating system of this terminal, reaches the effect making the adaptive different OS Type of the standard feature button in earphone line control equipment.
Please refer to Figure 12, it illustrates the method flow diagram of the terminal control method that one embodiment of the invention provides, the method may be used in the terminal be connected with the earphone line control equipment shown in Fig. 1 or Fig. 2, and the method can comprise:
Step 1202, receives by the system layer of this terminal this earphone line control equipment to export to this terminal push button signalling by headset plug, comprises this user-defined press key signal and/or this standard key signal in this push button signalling;
Step 1204, sends by the system layer of this terminal the control message carrying this push button signalling to the application in this terminal;
Step 1206, obtains control command corresponding to this control message by this application;
Step 1208, performs this control command by this application.
In embodiments of the present invention, after the user-defined press key signal received by the system layer of terminal and/or standard key signal, definition push key signal and/or control command corresponding to standard key signal is obtained from by application layer, make terminal not only can criterion of identification push button signalling, user-defined press key signal can also be identified, thus the function of expansion earphone line control equipment can be reached, improve the effect that can meet user's user demand.
In sum, the method that the embodiment of the present invention provides, receive earphone line control equipment by the system layer of terminal and export to this terminal by headset plug, comprise the push button signalling of this user-defined press key signal and/or this standard key signal, the control message carrying this push button signalling is sent to the application in this terminal by the system layer of this terminal, obtain control command corresponding to this control message by this application and perform, reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
It should be noted that, in different operating system, the processing mode of system layer to the push button signalling that earphone line control equipment sends also is had any different.Such as, in Android system, system layer, only to the application sending controling instruction in terminal, initiatively can not send push button signalling to application; And in IOS system, this user-defined press key signal, when the push button signalling detecting that earphone line control equipment sends is user-defined press key signal, initiatively can be sent to application by system layer.Therefore, for different operating system, send to the application in this terminal the concrete grammar carrying the control message of this push button signalling by the system layer of this terminal in the embodiment of the present invention also not identical, the following examples of the present invention are illustrated respectively by for different operating system.
Please refer to Figure 13, it illustrates the method flow diagram of the terminal control method that another embodiment of the present invention provides, the method may be used in the terminal be connected with the earphone line control equipment shown in Fig. 1 or Fig. 2, and the method can comprise:
Step 1302, receives by the system layer of this terminal this earphone line control equipment to export to this terminal push button signalling by headset plug;
Wherein, this user-defined press key signal and/or this standard key signal is comprised in this push button signalling.
Step 1304, when often receiving a push button signalling, generates by the system layer of this terminal the control message carrying this push button signalling, sends this control message by the system layer of this terminal to the application in this terminal;
For Android system, when the system layer of the terminal of operation Android system receives user-defined press key signal, the control command that this user-defined press key signal of None-identified is corresponding, also initiatively this user-defined press key signal can not be sent to the application in system, now, application in terminal can supervisory control system layer whether receive earphone line control equipment send push button signalling, if system layer receives the push button signalling that earphone line control equipment sends, then no matter this push button signalling is user-defined press key signal or standard key signal, all send a push button signalling to system layer and obtain request, after system layer receives this request, the push button signalling that earphone line control equipment sends is added in control message and sends to application, by being used for inquiring about control command corresponding to this push button signalling.
In addition, the method shown in the embodiment of the present invention, the control command that the system layer also shielding this terminal sends to this application.
When the system layer of the terminal of Android system receives the standard key signal of earphone line control equipment transmission, the control command that this standard key signal is corresponding can be identified and send to terminal applies, obtain this standard key signal from system layer due to the application in terminal and inquired about corresponding control command, now, if the control command that this standard key signal of receiving system layer transmission is corresponding more also performs, then can repeat the problem of this control command, to this, in method shown in the embodiment of the present invention, application in this terminal is also by the control command that sends to this application of system layer of this terminal of shielding.
Step 1306, obtains control command corresponding to this control message by this application;
Such as, when the system of terminal is Android system, the user-defined press key signal in this control message and/or standard key signal can be obtained, and inquire about this user-defined press key signal and/or control command corresponding to standard key signal.
Step 1308, performs this control command by this application.
Wherein, when this control command is control command corresponding to this user-defined press key signal, the first reproduction time section that a multimedia file is corresponding can be obtained; By in this multimedia file of this application plays, the content of multimedia corresponding with this first reproduction time section; Before the content of multimedia of this appointment reproduction time section correspondence finishes, judge whether again to get this control command by this application; If judged result is for again to get this control command by this application, then start anew to play this multimedia file by this application.
If judged result is not for again to get this control command by this application, then after the content of multimedia of this first reproduction time section correspondence finishes, obtain the second reproduction time section that next multimedia file is corresponding, and by this next multimedia file of this application plays, the content of multimedia of this second reproduction time section correspondence.
In embodiments of the present invention, a kind of method by user-defined press key control terminal is provided, with this terminal for smart mobile phone, user selects song for example by the music application that the user-defined press key in earphone line control equipment controls in smart mobile phone fast, and the method specifically can be as follows:
User clicks the user-defined press key in earphone line control equipment, earphone line control equipment sends user-defined press key signal to smart mobile phone, user-defined press key signal sends to music to apply by the system layer of smart mobile phone, control command corresponding to music application query user-defined press key signal is for select song fast, then select the climax parts playing current song, the time period of the climax parts of each song is all pre-set by developer and be added in the configuration information of the audio file of song, at the end of the climax parts of a first song is play, continue to select the climax parts of next song and start to play.Again in this process, during the climax parts of a certain song of user's uppick, select if want to play song corresponding to this climax parts, then again press the user-defined press key in earphone line control equipment, music application again receives this user-defined press key signal of system layer transmission and inquires about corresponding control command for select song fast, then stop the broadcasting of current climax parts, and start the song from the beginning playing the correspondence of this climax parts, thus complete the operation of choosing song.
In sum, the method that the embodiment of the present invention provides, receive earphone line control equipment by the system layer of terminal and export to this terminal by headset plug, comprise the push button signalling of this user-defined press key signal and/or this standard key signal, the control message carrying this push button signalling is sent to the application in this terminal by the system layer of this terminal, obtain control command corresponding to this control message by this application and perform, reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
Please refer to Figure 14, it illustrates the method flow diagram of the terminal control method that further embodiment of this invention provides, the method may be used in the terminal be connected with the earphone line control equipment shown in Fig. 1 or Fig. 2, and the method can comprise:
Step 1402, receives by the system layer of this terminal this earphone line control equipment to export to this terminal push button signalling by headset plug;
Wherein, this user-defined press key signal and/or this standard key signal is comprised in this push button signalling.
Step 1404, detect whether this push button signalling received is user-defined press key signal by the system layer of this terminal, if this push button signalling is this user-defined press key signal, then generate by the system layer of this terminal the control message carrying this user-defined press key signal, send this control message by the system layer of this terminal to the application in this terminal;
Such as in IOS system, be reserved with several push button signallings in the system layer of terminal, these several push button signallings can by the system layer identification of terminal, but not corresponding concrete control command.Corresponding for user-defined press key push button signalling of making by oneself can be set to the reserved push button signalling of the system layer of IOS system by earphone line control equipment.When the system layer of terminal receives push button signalling, and when detecting that this push button signalling is user-defined press key signal, initiatively this user-defined press key signal is added in control message and sends to application, identified by application.
It should be noted that, in IOS system, when the system layer of terminal receives standard key signal, this standard key signal can not be sent to application, but identify the control command that this standard key signal is corresponding, this control command is added in control message and sends to application, directly performed by application.Now, the control command not needing shielding harness layer to send is applied.
Step 1406, obtains control command corresponding to this control message by this application;
When the system of terminal is IOS system, the control command that standard key signal in this control message is corresponding directly can be obtained, or, inquire about the control command that the user-defined press key signal that comprises in this control message is corresponding.
Step 1408, performs this control command by this application.
Wherein, when this control command is control command corresponding to this user-defined press key signal, the first reproduction time section that a multimedia file is corresponding can be obtained; By in this multimedia file of this application plays, the content of multimedia corresponding with this first reproduction time section; Before the content of multimedia of this appointment reproduction time section correspondence finishes, judge whether again to get this control command by this application; If judged result is for again to get this control command by this application, then start anew to play this multimedia file by this application.
If judged result is not for again to get this control command by this application, then after the content of multimedia of this first reproduction time section correspondence finishes, obtain the second reproduction time section that next multimedia file is corresponding, and by this next multimedia file of this application plays, the content of multimedia of this second reproduction time section correspondence.
In embodiments of the present invention, a kind of method by user-defined press key control terminal is provided, with this terminal for smart mobile phone, user selects song for example by the music application that the user-defined press key in earphone line control equipment controls in smart mobile phone fast, and the method specifically can be as follows:
User clicks the user-defined press key in earphone line control equipment, earphone line control equipment sends user-defined press key signal to smart mobile phone, user-defined press key signal sends to music to apply by the system layer of smart mobile phone, control command corresponding to music application query user-defined press key signal is for select song fast, then select the climax parts playing current song, the time period of the climax parts of each song is all pre-set by developer and be added in the configuration information of the audio file of song, at the end of the climax parts of a first song is play, continue to select the climax parts of next song and start to play.Again in this process, during the climax parts of a certain song of user's uppick, select if want to play song corresponding to this climax parts, then again press the user-defined press key in earphone line control equipment, music application again receives this user-defined press key signal of system layer transmission and inquires about corresponding control command for select song fast, then stop the broadcasting of current climax parts, and start the song from the beginning playing the correspondence of this climax parts, thus complete the operation of choosing song.
In sum, the method that the embodiment of the present invention provides, receive earphone line control equipment by the system layer of terminal and export to this terminal by headset plug, comprise the push button signalling of this user-defined press key signal and/or this standard key signal, the control message carrying this push button signalling is sent to the application in this terminal by the system layer of this terminal, obtain control command corresponding to this control message by this application and perform, reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
Please refer to Figure 15, it illustrates the structure drawing of device of the terminal control mechanism that one embodiment of the invention provides, this device may be used in the terminal be connected with the earphone line control equipment shown in Fig. 1 or Fig. 2, and perform terminal control method as shown in figure 12, this device can comprise:
Secondary signal receiver module 1501, to be exported to the push button signalling of this terminal, comprises this user-defined press key signal and/or this standard key signal in this push button signalling by headset plug for being received this earphone line control equipment by the system layer of this terminal;
Message transmission module 1502, sends for the system layer by this terminal the control message carrying this push button signalling to the application in this terminal;
Instruction acquisition module 1503, for obtaining control command corresponding to this control message by this application;
Instruct execution module 1504, for performing this control command by this application.
In sum, the device that the embodiment of the present invention provides, receive earphone line control equipment by the system layer of terminal and export to this terminal by headset plug, comprise the push button signalling of this user-defined press key signal and/or this standard key signal, the control message carrying this push button signalling is sent to the application in this terminal by the system layer of this terminal, obtain control command corresponding to this control message by this application and perform, reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
Please refer to Figure 16, it illustrates the structure drawing of device of the terminal control mechanism that another embodiment of the present invention provides, this device may be used in the terminal be connected with the earphone line control equipment described in Fig. 1 or Fig. 2, and perform the terminal control method as shown in Figure 13 or 14, this device can comprise:
Secondary signal receiver module 1501, to be exported to the push button signalling of this terminal, comprises this user-defined press key signal and/or this standard key signal in this push button signalling by headset plug for being received this earphone line control equipment by the system layer of this terminal;
Message transmission module 1502, sends for the system layer by this terminal the control message carrying this push button signalling to the application in this terminal;
Instruction acquisition module 1503, for obtaining control command corresponding to this control message by this application;
Instruct execution module 1504, for performing this control command by this application.
Optionally, this message transmission module 1502, comprising:
First generation unit 1502a, during for often receiving a push button signalling, generates by the system layer of this terminal the control message carrying this push button signalling;
First transmitting element 1502b, sends this control message for the system layer by this terminal to the application in this terminal.
This device also comprises:
Shroud module 1505, the control command that the system layer for shielding this terminal sends to this application.
Optionally, this message transmission module 1502, comprising:
By the system layer of this terminal, detecting unit 1502c, for detecting whether this push button signalling received is user-defined press key signal;
Second generation unit 1502d, if be this user-defined press key signal for this push button signalling, then generates by the system layer of this terminal the control message carrying this user-defined press key signal;
Second transmitting element 1502e, sends this control message for the system layer by this terminal to the application in this terminal.
Optionally, this instruct execution module 1504, comprising:
Time period acquiring unit 1504a, during for being control command corresponding to this user-defined press key signal when this control command, obtains the first reproduction time section that a multimedia file is corresponding;
First broadcast unit 1504b, for passing through in this multimedia file of this application plays, the content of multimedia of this first reproduction time section correspondence;
Second judging unit 1504c, before finishing at the content of multimedia of this appointment reproduction time section correspondence, judges whether again to get this control command by this application;
Second broadcast unit 1504d, if for the judged result of this second judging unit 1504c for again to get this control command by this application, then start anew to play this multimedia file by this application.
This time period acquiring unit 1504a, if also for the judged result of this second judging unit 1504c for again not get this control command by this application, then after the content of multimedia of this first reproduction time section correspondence finishes, obtain the second reproduction time section that next multimedia file is corresponding;
This first broadcast unit 1504b, also for passing through in this next multimedia file of this application plays, the content of multimedia of this second reproduction time section correspondence.
In sum, the device that the embodiment of the present invention provides, receive earphone line control equipment by the system layer of terminal and export to this terminal by headset plug, comprise the push button signalling of this user-defined press key signal and/or this standard key signal, the control message carrying this push button signalling is sent to the application in this terminal by the system layer of this terminal, obtain control command corresponding to this control message by this application and perform, reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
Please refer to Figure 17, it illustrates the block diagram of the terminal that one embodiment of the invention provides, the method that this terminal provides for the embodiment implementing the arbitrary correspondence of above-mentioned Figure 12 to 14, terminal in the embodiment of the present invention can comprise one or more following part: for performing computer program instructions to complete the processor of various flow process and method, for information and stored program instruction random access memory (RAM) and read-only memory (ROM), for storing the memory of data and information, I/O equipment, interface, antenna etc.Specifically:
Terminal 1700 can comprise RF (Radio Frequency, radio frequency) parts such as circuit 1710, memory 1720, input unit 1730, display unit 1740, transducer 1750, voicefrequency circuit 1760, WiFi (wireless fidelity, Wireless Fidelity) module 1770, processor 1780, power supply 1782, camera 1790.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Figure 17, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Figure 17 each component parts to terminal 1700:
RF circuit 1710 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 1780; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupler, LNA (Low Noise Amplifier, low noise amplifier), duplexer etc.In addition, RF circuit 1710 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code division multiple access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Memory 1720 can be used for storing software program and module, and processor 1780 is stored in software program and the module of memory 1720 by running, thus performs various function application and the data processing of terminal 1700.Memory 1720 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 1700.In addition, memory 1720 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input unit 1730 can be used for the numeral or the character information that receive input, and generation arranges with the user of terminal 1700 and function controls the input of relevant key signals.Particularly, input unit 1730 can comprise contact panel 1731 and other input equipments 1732.Contact panel 1731, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 1731 or near contact panel 1731 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, contact panel 1731 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 1780, and the order that energy receiving processor 1780 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 1731.Except contact panel 1731, input unit 1730 can also comprise other input equipments 1732.Particularly, other input equipments 1732 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 1740 can be used for the various menus showing information or the information being supplied to user and the terminal 1700 inputted by user.Display unit 1740 can comprise display floater 1741, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display floater 1741.Further, contact panel 1731 can cover display floater 1741, when contact panel 1731 detects thereon or after neighbouring touch operation, send processor 1780 to determine the type of touch event, on display floater 1741, provide corresponding vision to export with preprocessor 1780 according to the type of touch event.Although in fig. 17, contact panel 1731 and display floater 1741 be as two independently parts to realize input and the input function of terminal 1700, but in certain embodiments, can by integrated to contact panel 1731 and display floater 1741 and realize the input and output function of terminal 1700.
Terminal 1700 also can comprise at least one transducer 1750, such as gyro sensor, magnetic induction sensor, optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 1741, proximity transducer when terminal 1700 moves in one's ear, can cut out display floater 1741 and/or backlight.As the one of motion sensor, acceleration transducer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of identification terminal attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for terminal 1700 also other transducers such as configurable barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1760, loud speaker 1761, microphone 1762 can provide the audio interface between user and terminal 1700.Voicefrequency circuit 1760 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 1761, by loud speaker 1761 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 1762, voice data is converted to after being received by voicefrequency circuit 1760, after again voice data output processor 1780 being processed, through RF circuit 1710 to send to such as another terminal, or export voice data to memory 1720 to process further.
WiFi belongs to short range wireless transmission technology, and by WiFi module 1770, terminal 1700 can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Figure 17 shows WiFi module 1770, be understandable that, it does not belong to must forming of terminal 1700, can omit in the scope of essence not changing invention as required completely.
Processor 1780 is control centres of terminal 1700, utilize the various piece of various interface and the whole terminal of connection, software program in memory 1720 and/or module is stored in by running or performing, and call the data be stored in memory 1720, perform various function and the deal with data of terminal 1700, thus integral monitoring is carried out to terminal.Optionally, processor 1780 can comprise one or more processing unit; Preferably, processor 1780 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 1780.
Terminal 1700 also comprises the power supply 1782 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 1780 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Camera 1790 is generally made up of camera lens, imageing sensor, interface, digital signal processor, CPU, display screen etc.Wherein, camera lens is fixed on the top of imageing sensor, manually can change focusing by adjustable lens; Imageing sensor is equivalent to " film " of traditional camera, is the heart of camera collection image; Interface is used for camera to utilize winding displacement, board to board connector, spring connected mode to be connected with terminal mainboard, and the image of collection is sent to described memory 1720; Digital signal processor is processed the image gathered by mathematical operation, the analog image of collection is converted to digital picture and sends to memory 1720 by interface.
Although not shown, terminal 1700 can also comprise bluetooth module etc., does not repeat them here.
Terminal 1700, except comprising one or more processor 1780, also includes memory, and one or more module, and one or more module is stored in memory, and is configured to be performed by one or more processor.One or more module above-mentioned has following function:
Receive by the system layer of this terminal this earphone line control equipment to export to this terminal push button signalling by headset plug, in this push button signalling, comprise this user-defined press key signal and/or this standard key signal;
The control message carrying this push button signalling is sent to the application in this terminal by the system layer of this terminal;
Control command corresponding to this control message is obtained by this application;
This control command is performed by this application.
Should send by the system layer of this terminal the control message carrying this push button signalling to the application in this terminal, comprise:
When often receiving a push button signalling, generate by the system layer of this terminal the control message carrying this push button signalling;
This control message is sent to the application in this terminal by the system layer of this terminal.
The method also comprises:
The control command that the system layer shielding this terminal sends to this application.
Should send by the system layer of this terminal the control message carrying this push button signalling to the application in this terminal, comprise:
Detect whether this push button signalling received is user-defined press key signal by the system layer of this terminal;
If this push button signalling is this user-defined press key signal, then generate by the system layer of this terminal the control message carrying this user-defined press key signal;
This control message is sent to the application in this terminal by the system layer of this terminal.
When this control command is control command corresponding to this user-defined press key signal, this control command should be performed by this application, comprise:
Obtain the first reproduction time section that a multimedia file is corresponding;
By in this multimedia file of this application plays, the content of multimedia corresponding with this first reproduction time section;
Before the content of multimedia of this appointment reproduction time section correspondence finishes, judge whether again to get this control command by this application;
If judged result is for again to get this control command by this application, then start anew to play this multimedia file by this application.
The method also comprises:
If judged result is not for again to get this control command by this application, then after the content of multimedia of this first reproduction time section correspondence finishes, obtain the second reproduction time section that next multimedia file is corresponding, and by this next multimedia file of this application plays, the content of multimedia of this second reproduction time section correspondence.
In sum, the terminal that the embodiment of the present invention provides, to receive earphone line control equipment by system layer and export to this terminal by headset plug, comprise the push button signalling of this user-defined press key signal and/or this standard key signal, the control message carrying this push button signalling is sent to the application in this terminal by the system layer of this terminal, obtain control command corresponding to this control message by this application and perform, reach the function of expansion earphone line control equipment, the effect of user's user demand can be met.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (26)

1. an earphone line control equipment, is characterized in that, described earphone line control equipment comprises: headset plug, at least one standard feature button and at least one user-defined press key;
At least one standard feature button described and at least one user-defined press key described are electrical connected with described plug respectively;
At least one standard feature button described is when being pressed by described plug outputting standard push button signalling, and described standard key signal is the push button signalling corresponding to each control command preset in the system layer of terminal;
At least one user-defined press key described when being pressed by described plug output from definition push key signal, described user-defined press key signal be not in the system layer of described terminal preset the push button signalling corresponding to each control command.
2. earphone line control equipment according to claim 1, is characterized in that, described earphone line control equipment also comprises: controller;
Described controller is electrical connected with at least one appointed function button described, at least one user-defined press key described and described plug respectively.
3. earphone line control equipment according to claim 1, is characterized in that, at least one standard feature button described comprises: volume adds key, volume down key and receiving talking key.
4. earphone line control equipment according to claim 1, is characterized in that, the quantity of described user-defined press key is 1.
5., according to the arbitrary described earphone line control equipment of Claims 1-4, it is characterized in that, described earphone line control equipment also comprises: power supply;
Described power supply is connected with each device electric in described earphone line control equipment.
6. a compatible method to set up, in earphone line control equipment as claimed in claim 2, it is characterized in that, described method comprises:
When the headset plug of described earphone line control equipment inserts the earphone jack of terminal, determine at least one terminal that the earphone jack of described terminal comprises, for the terminal of supplying power for outside;
According to described in the earphone jack of described terminal for the position residing for the terminal of supplying power for outside, each self-corresponding function of at least one terminal that described headset plug comprises is set.
7. method according to claim 6, is characterized in that, described earphone jack comprises the first terminal, the second terminal, the 3rd terminal and the 4th terminal from inside to outside successively; The first terminal of described headset plug is corresponding with the first terminal of described earphone jack, second terminal of described headset plug is corresponding with the second terminal of described earphone jack, 3rd terminal of described headset plug is corresponding with the 3rd terminal of described earphone jack, and the 4th terminal of described headset plug is corresponding with the 4th terminal of described earphone jack;
Described according to described in the earphone jack of described terminal for the position residing for the terminal of supplying power for outside, each self-corresponding function of at least one terminal that described headset plug comprises is set, comprises:
When the described terminal for supplying power for outside is the 3rd terminal of described earphone jack, be L channel function by the function setting of the first terminal of described headset plug, be R channel function by the function setting of the second terminal of described headset plug, being microphone function by the function setting of the 3rd terminal of described headset plug, is ground wire function by the function setting of the 4th terminal of described headset plug;
When the described terminal for supplying power for outside is the 4th terminal of described earphone jack, be L channel function by the function setting of the first terminal of described headset plug, be R channel function by the function setting of the second terminal of described headset plug, being microphone function by the function setting of the 4th terminal of described headset plug, is ground wire function by the function setting of the 3rd terminal of described headset plug.
8. a controller, in earphone line control equipment as claimed in claim 2, it is characterized in that, described controller comprises:
Determination module, for when the headset plug of described earphone line control equipment inserts the earphone jack of terminal, determines at least one terminal that the earphone jack of described terminal comprises, for the terminal of supplying power for outside;
Module is set, for according to described in the earphone jack of described terminal for the position residing for the terminal of supplying power for outside, each self-corresponding function of at least one terminal that described headset plug comprises is set.
9. controller according to claim 8, is characterized in that, describedly arranges module, comprising:
First setting unit, for when the described terminal for supplying power for outside is the 3rd terminal of described earphone jack, be L channel function by the function setting of the first terminal of described headset plug, be R channel function by the function setting of the second terminal of described headset plug, being microphone function by the function setting of the 3rd terminal of described headset plug, is ground wire function by the function setting of the 4th terminal of described headset plug;
Second setting unit, for when the described terminal for supplying power for outside is the 4th terminal of described earphone jack, be L channel function by the function setting of the first terminal of described headset plug, be R channel function by the function setting of the second terminal of described headset plug, being microphone function by the function setting of the 4th terminal of described headset plug, is ground wire function by the function setting of the 3rd terminal of described headset plug;
Described earphone jack comprises the first terminal, the second terminal, the 3rd terminal and the 4th terminal from inside to outside successively; The first terminal of described headset plug is corresponding with the first terminal of described earphone jack, second terminal of described headset plug is corresponding with the second terminal of described earphone jack, 3rd terminal of described headset plug is corresponding with the 3rd terminal of described earphone jack, and the 4th terminal of described headset plug is corresponding with the 4th terminal of described earphone jack.
10. a signal output method, in earphone line control equipment as claimed in claim 2, it is characterized in that, described method comprises:
When the headset plug of described earphone line control equipment inserts the earphone jack of terminal, identify the system type of the operating system of described terminal;
Receive the standard key signal generated when described standard feature button is pressed;
When the operating system of described terminal is not the operating system with described standard key signal adaptation, described standard key signal is converted into compatible push button signalling by the system type according to the operating system of described terminal, and the function corresponding in the operating system of described terminal of described compatible push button signalling and described standard key signal are identical with corresponding function in the operating system of described standard key signal adaptation;
Described compatible push button signalling is exported to described terminal by described plug.
11. methods according to claim 10, is characterized in that, the operating system of the described terminal of described identification, comprising:
Export test push button signalling by described plug to described terminal, described test push button signalling is the push button signalling preset in the operating system corresponding with described test push button signalling, the test push button signalling that different operating system is corresponding different;
Detect the response signal whether described terminal returns described test push button signalling;
If described terminal returns described response signal, then the system type of the operating system of described terminal is identified as the system type of the operating system corresponding with described test push button signalling;
If described terminal does not return described response signal, then export test push button signalling corresponding to next operating system by described plug to described terminal.
12. 1 kinds of controllers, in earphone line control equipment as claimed in claim 2, it is characterized in that, described controller comprises:
System identification module, for when the headset plug of described earphone line control equipment inserts the earphone jack of terminal, identifies the system type of the operating system of described terminal;
First signal receiving module, for receiving the standard key signal generated when described standard feature button is pressed;
Signal conversion module, during for not being the operating system with described standard key signal adaptation when the operating system of described terminal, described standard key signal is converted into compatible push button signalling by the system type according to the operating system of described terminal, and the function corresponding in the operating system of described terminal of described compatible push button signalling and described standard key signal are identical with corresponding function in the operating system of described standard key signal adaptation;
Signal output module, for exporting described compatible push button signalling by described plug to described terminal.
13. controllers according to claim 12, is characterized in that, described system identification module, comprising:
Signal output unit, for exporting test push button signalling by described plug to described terminal, described test push button signalling is the push button signalling preset in the operating system corresponding with described test push button signalling, the test push button signalling that different operating system is corresponding different;
Whether the first judging unit, return the response signal of described test push button signalling for detecting described terminal;
Recognition unit, if be that described terminal returns described response signal for the judged result of described first judging unit, is then identified as the system type of operating system corresponding to described test push button signalling by the system type of the operating system of described terminal.
14. controllers according to claim 13, is characterized in that,
Described signal output unit, if be also that described terminal does not return described response signal for the judged result of described first judging unit, then exports test push button signalling corresponding to next operating system by described plug to described terminal.
15. 1 kinds of terminal control methods, is characterized in that, in the terminal that is connected with the arbitrary described earphone line control equipment of claim 1 to 6, described method comprises:
Receive by the system layer of described terminal described earphone line control equipment to export to described terminal push button signalling by headset plug, in described push button signalling, comprise described user-defined press key signal and/or described standard key signal;
The control message carrying described push button signalling is sent to the application in described terminal by the system layer of described terminal;
Control command corresponding to described control message is obtained by described application;
Described control command is performed by described application.
16. methods according to claim 15, is characterized in that, the described system layer by described terminal sends the control message carrying described push button signalling to the application in described terminal, comprising:
When often receiving a push button signalling, generate by the system layer of described terminal the control message carrying described push button signalling;
Described control message is sent to the application in described terminal by the system layer of described terminal.
17. methods according to claim 16, is characterized in that, described method also comprises:
The control command that the system layer shielding described terminal sends to described application.
18. methods according to claim 15, is characterized in that, the described system layer by described terminal sends the control message carrying described push button signalling to the application in described terminal, comprising:
Detect whether the described push button signalling received is user-defined press key signal by the system layer of described terminal;
If described push button signalling is described user-defined press key signal, then generate by the system layer of described terminal the control message carrying described user-defined press key signal;
Described control message is sent to the application in described terminal by the system layer of described terminal.
19., according to claim 15 to 18 arbitrary described methods, is characterized in that, when described control command is control command corresponding to described user-defined press key signal, describedly perform described control command by described application, comprising:
Obtain the first reproduction time section that a multimedia file is corresponding;
By in multimedia file described in described application plays, the content of multimedia corresponding with described first reproduction time section;
Before the content of multimedia of described appointment reproduction time section correspondence finishes, judge whether again to get described control command by described application;
If judged result is for again to get described control command by described application, then start anew to play described multimedia file by described application.
20. methods according to claim 19, is characterized in that, described method also comprises:
If judged result is not for again to get described control command by described application, then after the content of multimedia of described first reproduction time section correspondence finishes, obtain the second reproduction time section that next multimedia file is corresponding, and by next multimedia file described in described application plays, the content of multimedia of described second reproduction time section correspondence.
21. 1 kinds of terminal control mechanisms, is characterized in that, in the terminal that is connected with the arbitrary described earphone line control equipment of claim 1 to 6, described device comprises:
Secondary signal receiver module, to be exported to the push button signalling of described terminal, comprises described user-defined press key signal and/or described standard key signal in described push button signalling by headset plug for being received described earphone line control equipment by the system layer of described terminal;
Message transmission module, sends for the system layer by described terminal the control message carrying described push button signalling to the application in described terminal;
Instruction acquisition module, for obtaining control command corresponding to described control message by described application;
Instruct execution module, for performing described control command by described application.
22. devices according to claim 21, is characterized in that, described message transmission module, comprising:
First generation unit, during for often receiving a push button signalling, generates by the system layer of described terminal the control message carrying described push button signalling;
First transmitting element, sends described control message for the system layer by described terminal to the application in described terminal.
23. devices according to claim 22, is characterized in that, described device also comprises:
Shroud module, the control command that the system layer for shielding described terminal sends to described application.
24. devices according to claim 21, is characterized in that, described message transmission module, comprising:
By the system layer of described terminal, detecting unit, for detecting whether the described push button signalling received is user-defined press key signal;
Second generation unit, if be described user-defined press key signal for described push button signalling, then generates by the system layer of described terminal the control message carrying described user-defined press key signal;
Second transmitting element, sends described control message for the system layer by described terminal to the application in described terminal.
25. according to the arbitrary described device of claim 21 to 24, and it is characterized in that, described instruct execution module, comprising:
Time period acquiring unit, during for being control command corresponding to described user-defined press key signal when described control command, obtains the first reproduction time section that a multimedia file is corresponding;
First broadcast unit, for by multimedia file described in described application plays, the content of multimedia of described first reproduction time section correspondence;
Second judging unit, before finishing at the content of multimedia of described appointment reproduction time section correspondence, judges whether again to get described control command by described application;
Second broadcast unit, if for the judged result of described second judging unit for again to get described control command by described application, then start anew to play described multimedia file by described application.
26. devices according to claim 25, is characterized in that,
Described time period acquiring unit, if also for the judged result of described second judging unit for again not get described control command by described application, then after the content of multimedia of described first reproduction time section correspondence finishes, obtain the second reproduction time section that next multimedia file is corresponding;
Described first broadcast unit, also for by next multimedia file described in described application plays, the content of multimedia of described second reproduction time section correspondence.
CN201410512987.5A 2014-09-29 2014-09-29 Line traffic control equipment, controller, method and device Active 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 true CN104301824A (en) 2015-01-21
CN104301824B CN104301824B (en) 2018-03-23

Family

ID=52321352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410512987.5A Active 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106252935A (en) * 2016-07-29 2016-12-21 维沃移动通信有限公司 A kind of headset plug, earphone socket and electronic equipment
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
CN108495222A (en) * 2018-03-14 2018-09-04 佳禾智能科技股份有限公司 Double compatible line control earphone control circuits and the control method realized based on the circuit
CN113170254A (en) * 2021-02-02 2021-07-23 英华达(上海)科技有限公司 Control system and method of wireless earphone base

Citations (9)

* 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
CN101227670A (en) * 2007-11-20 2008-07-23 东莞欧珀移动通信有限公司 Mobile phone line control machine and control method thereof
CN202873021U (en) * 2012-09-04 2013-04-10 深圳天珑无线科技有限公司 Earphone
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
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
CN103871433A (en) * 2012-12-10 2014-06-18 联想(北京)有限公司 Control method and electronic device
CN203813936U (en) * 2014-05-09 2014-09-03 杭州纳雄科技有限公司 Audio transmission equipment

Patent Citations (9)

* 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
CN101227670A (en) * 2007-11-20 2008-07-23 东莞欧珀移动通信有限公司 Mobile phone line control machine and control method thereof
CN202873021U (en) * 2012-09-04 2013-04-10 深圳天珑无线科技有限公司 Earphone
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
CN203466950U (en) * 2013-09-18 2014-03-05 潍坊歌尔电子有限公司 Earphone capable of realizing compatibility with mobile phone audio interfaces with different standards
CN103513769A (en) * 2013-09-29 2014-01-15 小米科技有限责任公司 Method, device and mobile terminal for setting key function
CN203492178U (en) * 2013-10-21 2014-03-19 宁波一凯电子有限公司 In-ear earphone
CN203813936U (en) * 2014-05-09 2014-09-03 杭州纳雄科技有限公司 Audio transmission equipment

Cited By (7)

* 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
CN106252935A (en) * 2016-07-29 2016-12-21 维沃移动通信有限公司 A kind of headset plug, earphone socket and electronic equipment
CN106252935B (en) * 2016-07-29 2018-12-04 维沃移动通信有限公司 A kind of headset plug, earphone socket and electronic equipment
CN108495222A (en) * 2018-03-14 2018-09-04 佳禾智能科技股份有限公司 Double compatible line control earphone control circuits and the control method realized based on the circuit
CN113170254A (en) * 2021-02-02 2021-07-23 英华达(上海)科技有限公司 Control system and method of wireless earphone base
CN113170254B (en) * 2021-02-02 2022-11-04 英华达(上海)科技有限公司 Control system and method of wireless earphone base

Also Published As

Publication number Publication date
CN104301824B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN103501382B (en) Voice service providing method, device and terminal
CN103513769B (en) Method, device and mobile terminal for setting key function
CN104159136B (en) The acquisition methods of interactive information, terminal, server and system
CN104427083A (en) Volume adjusting method and device
CN104618440A (en) Intelligent equipment control method and device
CN104393848A (en) Method and device for adjusting volume
CN103634717A (en) Method, device and terminal equipment utilizing earphone to control
CN103458277B (en) A kind of method and apparatus operating direct broadcast band program
CN104602100A (en) Method and device for recording video and audio in applications
CN104301824A (en) Drive-by-wire device, controller, method and device
CN105208056A (en) Information exchange method and terminal
CN104602135A (en) Method and device for controlling full screen play
CN103458114B (en) A kind of method of switching multi-media stream, equipment and terminal
CN103458286A (en) Television channel switching method and device
CN105306760A (en) Method and device for controlling terminal
CN103312907B (en) Voice channel allocation management method, voice server and communication system
CN103533127A (en) Call control method of terminal and terminal
CN105786439A (en) Method and device for controlling sound in terminal
CN103491421A (en) Content display method and device and smart television
CN104093048A (en) Mobile terminal remote control method and mobile terminal
CN104135504B (en) A kind of service providing method, Apparatus and system based on application
CN103383701A (en) Information retrieving method, device and terminal
CN105550316A (en) Pushing method and device of audio list
CN103200077B (en) The method of data interaction during a kind of voice call, Apparatus and system

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant