CN101102337A - A method for realizing multimedia line control earphone function on mobile phone - Google Patents

A method for realizing multimedia line control earphone function on mobile phone Download PDF

Info

Publication number
CN101102337A
CN101102337A CNA2006100287558A CN200610028755A CN101102337A CN 101102337 A CN101102337 A CN 101102337A CN A2006100287558 A CNA2006100287558 A CN A2006100287558A CN 200610028755 A CN200610028755 A CN 200610028755A CN 101102337 A CN101102337 A CN 101102337A
Authority
CN
China
Prior art keywords
key
button
line control
multimedia
control earphone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2006100287558A
Other languages
Chinese (zh)
Inventor
方茁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chenxing Electronics Science and Technology Co Ltd
Original Assignee
Shanghai Chenxing Electronics Science and 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 Shanghai Chenxing Electronics Science and Technology Co Ltd filed Critical Shanghai Chenxing Electronics Science and Technology Co Ltd
Priority to CNA2006100287558A priority Critical patent/CN101102337A/en
Publication of CN101102337A publication Critical patent/CN101102337A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention comprises five buttons including a play button and a + button.

Description

Realize a kind of method of multimedia line control earphone function on the mobile phone
Technical field
The present invention relates on a kind of mobile phone to realize controlling the method for multimedia function with earphone.
Background technology
The use of current phone has reached the degree of popularizing, and the function on the mobile phone is also all the more abundant.Multimedia handset has become the main flow of selling in the market.Polygamy has " line traffic control " earphone on multimedia handset.But " line traffic control " earphone that general multimedia handset is furnished with has only 1 button, and function is very single: only have the function of using this button to connect phone and hang up the telephone in incoming call and communication process.But present multimedia handset generally all has the voice playing function, plays as MP3, and video playback capability is play as MP4; Or other multimedia function, as Kara OK function, language repeater function, FM function, or the like.These multimedia functions all have unified characteristic: support the operation of mobile phone key, carry out function and switch.As when playing MP3,, can go up a first song, next song by the special mobile phone button, volume increases and decreases and the function of time-out/continuation.But present line control earphone has only 1 button, can't use earphone to control these functions at all.
Summary of the invention
In sum, how to overcome the defective of existing multimedia handset, realize using multimedia line control earphone can control the multimedia controlled function easily, this is a technical problem to be solved by this invention, for this reason, the object of the present invention is to provide a kind of method that on mobile phone, realizes multimedia line control earphone function.
Technical scheme of the present invention is as follows:
According to the method that realizes multimedia line control earphone function on a kind of mobile phone of the present invention, at first use multimedia line control earphone to carry out button operation, then, produce interruption by the hardware interrupts interface, at last, software enters the interrupt handling routine of handling the multimedia earphone keystroke.
The interrupt handling routine of described multimedia earphone keystroke is judged and preserved the earphone keystroke state: button is pressed or is released.
When button was carried out push, ADC (simulating a digital translation) module became digital signal to store the voltage transitions that operated respective keys produced of multimedia earphone.
Judge that ADC value judgement after the key assignments handling procedure is according to conversion is which button is pressed or discharges, judge the time length of pressing simultaneously, then with key-press status (press, discharge or press for a long time) and by these message of key send, keep supplying the layer multimedia program and use.
Positive progressive effect of the present invention is: can realize the function of multimedia line control earphone easily by this method on mobile phone, thereby reach the purpose of using line control earphone control multimedia function.
Description of drawings
Fig. 1 is a software flow pattern of the present invention;
Fig. 2 is the circuit diagram that the generation button in the embodiment of the invention interrupts;
Fig. 3 is the circuit diagram of the different output voltages of generation button in the embodiments of the invention;
Fig. 4 is the button interrupt handling routine figure in the embodiment of the invention;
Fig. 5 is the handling procedure figure of the judgement key assignments in the embodiment of the invention;
Fig. 6 is the button clock handling procedure figure in the embodiment of the invention;
Fig. 7 is the handling procedure figure of the upper strata Multimedia Program press key message in the embodiment of the invention.
Embodiment
Provide preferred embodiment of the present invention below, to describe technical scheme of the present invention in detail.
Realize the method for multimedia line control earphone function on a kind of mobile phone, mainly be used on the mobile communication equipment such as mobile phone, use line control earphone to carry out the control of multimedia function.
See also Fig. 1, according to program 100, at first, execution in step 1000 uses multimedia line control earphone to carry out button operation, and step 1001 produces interruption by the hardware interrupts interface, and step 1002 software enters the interrupt handling routine of handling the multimedia earphone keystroke.
Step 1003, when button was pressed, the ADC module converted the voltage (analog signal) of button input to the manageable numerical value of software (digital signal) automatically, and should value preserve, and used in order to inquiry;
Step 1004 judges that the key assignments handling procedure is which button is pressed or discharges according to the digital signal judgement that button produced and was converted.
Step 1005, if button is to be pressed, (the time length of clock can freely define then to start a clock this moment, here be defined as 2 seconds), when clock arrives, whether the state that the clock handling procedure is inquired about this button changes, if state does not change (keeping down state to reach 2 seconds) always, key-press status then is set is " long pressing ".
Step 1006, the message that will comprise key-press status (press, discharge or press for a long time) and institute's these 2 parameters of key value is sent, and keeps supplying the layer multimedia program and uses.
Step 1007, upper procedure generally is the program of control multimedia function, according to the above-mentioned message that sends, realizes corresponding multimedia function control, as volume increase and decrease, the next item up/the next item down switching, time-out/continuation.
See also shown in Figure 2ly, the principle that produces the button hardware interrupts is to be pressed or to discharge according to button, and the level of interrupt source is switching between the high-low level: when button was pressed, interrupt source was low level; When button was released, interrupt source was high level.
See also shown in Figure 3ly, produce different output voltages thereby the resistance value that the principle that produces the button output voltage is a different key to be connected is different.
Interrupt handling routine mainly judges that by the height of interrupt source applied signal voltage button is pressed or is released.Under the initial condition, be the low level that is input as of interrupt source with triggering the conditional definition that interrupts.Under the situation that button is not pressed, the signal of interrupt source input keeps high level always.When certain button is pressed, the input signal of interrupt source becomes low level, triggers to interrupt.Interrupt handling routine judges that a button is pressed, sends the message that button is pressed, and it is the high level that is input as of interrupt source that the down trigger condition is set simultaneously.When button was released, the signal of interrupt source input became high level by low level again, triggered and interrupted.Interrupt handling routine sends the d/d message of button, and will trigger the conditional definition that interrupts again is the low level that is input as of interrupt source.
See also shown in Figure 4ly, the button interrupt handling routine is judged according to the height of the level of button interrupt source and is preserved key-press status (press or discharge).
See also Fig. 5, shown in Figure 6, judge that ADC value judgement after the key assignments handling procedure is according to conversion is which button is pressed or discharges.Because the output voltage that produces during button can not all be the same value of determining at every turn, so the ADC value that each button is pairing after being converted can not be certain value of determining.According to this situation, defined different intervals, which key can judge what press according to the residing different intervals of the value of ADC is.If button is to be pressed, then this starts a clock constantly (the time length of clock can freely define, here be defined as 2 seconds), when clock arrives, whether the state that the clock handling procedure is inquired about this button changes, if state does not change (keeping down state to reach 2 seconds) always, then set key-press status and be " long pressing ".
See also shown in Figure 7ly, upper procedure generally is the program of control multimedia function, according to the above-mentioned message that sends, realizes the control of corresponding multimedia function, as volume increase and decrease, the next item up/the next item down switch, time-out/continuation.

Claims (10)

1, realizes the method for multimedia line control earphone function on a kind of mobile phone, comprise step: at first, use multimedia line control earphone to carry out button operation, then, produce interruption by the hardware interrupts interface, then, software enters the interrupt handling routine of handling the multimedia earphone keystroke.
2, the method for multimedia line control earphone function according to claim 1 is characterized in that, the interrupt handling routine of multimedia earphone keystroke judges according to the height of button interrupt source level and the preservation button is pressed or d/d state.
3, the method for multimedia line control earphone function according to claim 1 and 2 is characterized in that, in button, the ADC module becomes digital signal to store the voltage transitions that button produced of multimedia earphone, enters to judge the key assignments handling procedure.
4, the method for multimedia line control earphone function according to claim 3 is characterized in that, judges that ADC value judgement after the key assignments handling procedure is according to conversion is which button is pressed or discharges.
5, the method for multimedia line control earphone function according to claim 4 is characterized in that, judges that the key assignments handling procedure when judging key assignments, starts timer clock, starts the clock handling procedure when clock arrives.
According to the method for the described multimedia line control earphone function of claim 5, it is characterized in that 6, described timer clock was 2 seconds.
7, the method for multimedia line control earphone function according to claim 6 is characterized in that, when clock arrived, interrupt handling routine was judged the state of button, if button still is pressed this moment, then sets key-press status and is " long pressing ".
8, the method for multimedia line control earphone function according to claim 2, it is characterized in that, to send comprise the play key ,+key ,-key,>>key,<<key value of key and button be in and press or the message of these two parameters of release condition, keep supplying layer program and use.
9, the method for multimedia line control earphone function according to claim 4, it is characterized in that, to send comprise the play key ,+key ,-key,>>key and<<key value of key and button be in and press or the message of these two parameters of release condition, keep supplying layer program and use.
10, the method for multimedia line control earphone function according to claim 7, it is characterized in that, to send comprise the play key ,+key ,-key,>>key and<<key value and the button of key be in the message of " long by " these two parameters, keep supplying layer program and use.
CNA2006100287558A 2006-07-07 2006-07-07 A method for realizing multimedia line control earphone function on mobile phone Pending CN101102337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006100287558A CN101102337A (en) 2006-07-07 2006-07-07 A method for realizing multimedia line control earphone function on mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006100287558A CN101102337A (en) 2006-07-07 2006-07-07 A method for realizing multimedia line control earphone function on mobile phone

Publications (1)

Publication Number Publication Date
CN101102337A true CN101102337A (en) 2008-01-09

Family

ID=39036425

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006100287558A Pending CN101102337A (en) 2006-07-07 2006-07-07 A method for realizing multimedia line control earphone function on mobile phone

Country Status (1)

Country Link
CN (1) CN101102337A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493728B (en) * 2008-01-24 2011-08-10 中兴通讯股份有限公司 Line control push-button detecting and recognizing device and method capable of identifying combined key
CN103364718A (en) * 2012-03-30 2013-10-23 快捷半导体(苏州)有限公司 Button detection and filtering method, relevant circuit and external device button detection chip
CN103513769A (en) * 2013-09-29 2014-01-15 小米科技有限责任公司 Method, device and mobile terminal for setting key function
CN104035805A (en) * 2014-06-27 2014-09-10 深圳市中兴移动通信有限公司 Method and device for fast starting application program
CN104330983A (en) * 2013-07-22 2015-02-04 联想(北京)有限公司 Control method and electronic device
CN104754098A (en) * 2013-12-27 2015-07-01 联芯科技有限公司 Volume adjusting method and system for single-key earphone
CN104954965A (en) * 2015-05-08 2015-09-30 华为技术有限公司 Headset button detection method and device
US20160277826A1 (en) * 2013-11-22 2016-09-22 1More Inc. Earphone Line Control Device and Earphone
WO2016192187A1 (en) * 2015-06-04 2016-12-08 中兴通讯股份有限公司 Method and device for identifying earphone
WO2018027879A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for pushing patent information while operating mobile phone by means of drive-by-wire matching and control system
WO2018027878A1 (en) * 2016-08-11 2018-02-15 张焰焰 Data acquisition method and control system for line controlled mobile phone operation
WO2018027877A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for matching mobile phone inline control to mobile phone operations and control system
US10826495B2 (en) 2015-09-30 2020-11-03 Datalogic Ip Tech S.R.L. On cable touchpad for configuring an electronic device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493728B (en) * 2008-01-24 2011-08-10 中兴通讯股份有限公司 Line control push-button detecting and recognizing device and method capable of identifying combined key
CN103364718A (en) * 2012-03-30 2013-10-23 快捷半导体(苏州)有限公司 Button detection and filtering method, relevant circuit and external device button detection chip
US9456272B2 (en) 2012-03-30 2016-09-27 Fairchild Semiconductor Corporation Button-press detection and filtering
CN104330983A (en) * 2013-07-22 2015-02-04 联想(北京)有限公司 Control method and electronic device
CN103513769A (en) * 2013-09-29 2014-01-15 小米科技有限责任公司 Method, device and mobile terminal for setting key function
US20160277826A1 (en) * 2013-11-22 2016-09-22 1More Inc. Earphone Line Control Device and Earphone
US9736566B2 (en) * 2013-11-22 2017-08-15 1More, Inc. Earphone line control device and earphone
CN104754098A (en) * 2013-12-27 2015-07-01 联芯科技有限公司 Volume adjusting method and system for single-key earphone
CN104035805A (en) * 2014-06-27 2014-09-10 深圳市中兴移动通信有限公司 Method and device for fast starting application program
CN104954965A (en) * 2015-05-08 2015-09-30 华为技术有限公司 Headset button detection method and device
CN104954965B (en) * 2015-05-08 2018-08-21 华为技术有限公司 The detection method and device of earphone keystroke
WO2016192187A1 (en) * 2015-06-04 2016-12-08 中兴通讯股份有限公司 Method and device for identifying earphone
US10826495B2 (en) 2015-09-30 2020-11-03 Datalogic Ip Tech S.R.L. On cable touchpad for configuring an electronic device
WO2018027879A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for pushing patent information while operating mobile phone by means of drive-by-wire matching and control system
WO2018027878A1 (en) * 2016-08-11 2018-02-15 张焰焰 Data acquisition method and control system for line controlled mobile phone operation
WO2018027877A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for matching mobile phone inline control to mobile phone operations and control system

Similar Documents

Publication Publication Date Title
CN101102337A (en) A method for realizing multimedia line control earphone function on mobile phone
KR100677382B1 (en) Method for converting display panel in a mobile terminal
CN103257873B (en) The control method of a kind of intelligent terminal and system
CN101287032B (en) Method, system and mobile terminal for mode switching of electronic apparatus
US20070015532A1 (en) Multi-function key for electronic devices
CN101668080A (en) Method and device for controlling mobile terminal by earphone
CN105451070B (en) TV set control method and device
CN101854425A (en) Mobile device and sound mode switching method thereof
CN100388213C (en) Application programe switch-over method and system
CN102932554A (en) System and method for intelligently selecting incoming telegram reminding mode of mobile phone
WO2012012635A1 (en) Method of remotely controlling an ear-level device functional element
CN101534380B (en) Mobile terminal and method thereof for switching television/broadcast channels by voice control
CN101931686A (en) Mobile device capable of automatically switching calling mode and method for switching calling mode
TW200812337A (en) Mobile phone with dual-power
WO2010060248A1 (en) A method to adjust the incoming call ring tone of the mobile terminal and a mobile terminal
CN101662527B (en) Method and system for activating application program of mobile phone
CN101370053B (en) Mobile terminal and method for operating mobile terminal by headphone
CN201328152Y (en) Wire control device for mobile TV
CN103249104A (en) Data transmission method and device
CN102946480A (en) Parameter setting and converting method and device of terminal equipment
CN103685708A (en) Terminal device and control method thereof
CN101995936A (en) Apparatus and method for determining type of accessory in portable terminal
CN104811536A (en) Remote controller and conversation control method thereof
CN201974797U (en) Mobile phone desktop dynamic content generator based on mobile phone events
CN103065447A (en) Input switching method of touch pad and double-side remote controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication