CN101216731A - Portable electronic apparatus and its line traffic control accomplishing method - Google Patents

Portable electronic apparatus and its line traffic control accomplishing method Download PDF

Info

Publication number
CN101216731A
CN101216731A CNA2007100632783A CN200710063278A CN101216731A CN 101216731 A CN101216731 A CN 101216731A CN A2007100632783 A CNA2007100632783 A CN A2007100632783A CN 200710063278 A CN200710063278 A CN 200710063278A CN 101216731 A CN101216731 A CN 101216731A
Authority
CN
China
Prior art keywords
button
earphone
cpu
push
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
CNA2007100632783A
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.)
Motorola Mobile Communication Technology Ltd
Original Assignee
Lenovo Mobile Communication Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Mobile Communication Technology Ltd filed Critical Lenovo Mobile Communication Technology Ltd
Priority to CNA2007100632783A priority Critical patent/CN101216731A/en
Publication of CN101216731A publication Critical patent/CN101216731A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a portable electronic device and a wire-control method. The portable electronic device includes an earphone socket, a CPU and an interruption detecting module. During the wire-control process through a wire-control earphone, the CPU records the time from the press-down to release of the wire-control earphone key-press, compares the time length with the preset threshold to judge and record the type of the key-press corresponding to the time length, and performs corresponding functions according to the recorded type of key-press for one-time operation or the combination of key-press types for many times of operation. With the simple wire-control earphone provided by the invention, various control functions can be performed to the portable electronic device.

Description

A kind of portable electric appts and line traffic control implementation method thereof
Technical field
The present invention relates to the line traffic control technology of portable electric appts, be meant a kind of portable electric appts and line traffic control implementation method thereof especially.
Background technology
Popularizing of portable type electronic product brings great convenience to user's life.The ease for use of product, good man-machine communication interface are to estimate the important indicator of portable product quality.
Prior art generally is by the dedicated serial interface, and such as internal integrate circuit bus (I2C), or multi-thread common key-press scans and realizes the earphone line traffic control.
The application number that the applicant submitted on May 23rd, 2002 is in 02117856.9 the Chinese patent application, disclose a kind of by the line control earphone of dedicated serial interface and the connecting circuit of portable electronic device body, referring to shown in Figure 1, comprise: button S1, S2, S3 and S4 are respectively applied for the control playback, stop, a last song is selected, next song selection.These buttons are connected with the resistance R 1 with different resistances, R2, R3 and R4 respectively, are parallel-connected to the input end of modulus (AD) converter of portable electronic device body then, and this input end also connects a divider resistance R5 simultaneously.When pressing described any one button, be input to AD converter after resistance that is connected with this push button and resistance R 5 dividing potential drops, and convert the central processing unit (CPU) that digital signal sends portable electric appts to through AD converter; This voltage division signal is through the look-at-me of over-voltage comparator generation CPU simultaneously, and control CPU receives the digital signal through the AD converter conversion.CPU produces corresponding function by this digital signal is analyzed.
At present, if realize the complexity of portable electric appts is controlled, all be mode usually by dedicated serial interface and a plurality of control buttons.The shortcoming of these schemes is to need special-purpose hardware interface, special-purpose earphone cord.In addition, by serial line interface realize earphone line traffic control function also need increase microprocessor (MPU) circuit, make power consumption and cost all can improve, and Duo 4 lines (communication interface of I2C, power supply and digitally) at least than common four-part form tramline.Mode by key scan increases a lot of connections especially, causes earphone cord thicker.These two kinds of attractive in appearance and ease for use of method affect, and increase cost.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of portable electric appts and line traffic control implementation method thereof, does not need to increase the various line traffic control functions that hardware cost can be realized earphone.
The invention provides a kind of portable electric appts based on above purpose, comprising: earphone socket, interruption detection module and CPU;
Described earphone socket input end is connected with line control earphone, and output terminal is connected to described interruption detection module;
The interruption detection module when the line traffic control earphone keystroke is pressed and unclamps, produces look-at-me and sends to CPU respectively;
CPU writes down the time interval of described twice look-at-me, determines push-button type according to the time interval, carries out corresponding function according to the combination of a push-button type or an above push-button type.
The described earphone socket input end of this portable electric appts connects the line control earphone of individual palpation key.
This portable electric appts is a mobile phone;
Described CPU further judges the current call request of whether receiving when receiving look-at-me, if then answer; Otherwise, continue to judge current whether being in the conversation, if, kill-call then, otherwise, continue timing wait button and unclamp.
Also provide a kind of line traffic control implementation method of portable electric appts based on above-mentioned purpose the present invention, set respectively corresponding function of combination of each a different push-button type or an above push-button type; Set at least one time span threshold value, be used to distinguish different time span scopes, the corresponding push-button type of each time span scope;
And may further comprise the steps:
A. writing down the line traffic control earphone keystroke unclamps the time that is continued from pressing to;
B. relatively, determine and write down this time span corresponding key type this time span and pre-set threshold;
C. judge whether the line traffic control earphone keystroke is pressed once more in the predetermined time interval, if, return steps A, otherwise, step D entered;
D. carry out corresponding function according to the push-button type of record or the combination of an above push-button type.
Comprise further in the described portable electric appts of this method that interrupting detection module is connected with line control earphone, steps A comprises: interrupt detection module generation look-at-me when the line control earphone button is pressed and send to CPU, interrupt detection module generation look-at-me when the line control earphone button unclamps and send to CPU, CPU writes down the time interval of twice interruption.
The described line control earphone that is connected with the interruption detection module of this method is the line control earphone of individual palpation key.
The described portable electric appts of this method is a mobile phone, and described steps A further comprises: when detecting the line control earphone button and pressing, judge the current call request of whether receiving, if then answer; Otherwise, judge current whether being in the conversation, if, kill-call then, otherwise, continue timing and wait for that button unclamps.
From above as can be seen, portable electric appts provided by the invention and line traffic control implementation method thereof compared with prior art, have following advantage:
One, can realize various control function based on existing four-part form earphone, not increase cost portable electric appts.
Two, control is simple, can the individual palpation key operation.
Three, line interface is simple, can accomplish minimum, makes control tramline very attractive in appearance.
Four, energy-conservation, do not need to open display device and just can control.
Description of drawings
Fig. 1 is the syndeton synoptic diagram of existing earphone cord control circuit and portable electronic device body;
Fig. 2 is the earphone cord control circuit of preferred embodiment of the present invention and the syndeton synoptic diagram of portable electronic device body;
Fig. 3 is the earphone line traffic control schematic flow sheet of preferred embodiment of the present invention;
Fig. 4 is the earphone line traffic control schematic flow sheet that has the music playback function mobile phone of preferred embodiment of the present invention.
Embodiment
For achieving the above object, the present invention unclamps the time that is continued and carries out record from pressing to the line control earphone button; By this time span and pre-set threshold are compared, judge this time span corresponding key type and record; Corresponding function is carried out in combination according to the push-button type of the push-button type of single job of record or multi-pass operations.Like this, button of minimum needs just can be realized the control to the various sophisticated functionss of line control earphone.
The earphone cord control circuit of preferred embodiment of the present invention and the connecting circuit of portable electronic device body are referring to shown in Figure 2.Line control earphone end testing circuit is only established a common key-press K, and the process earphone socket is connected to the interruption detection module input end in the main frame testing circuit, and the output terminal that interrupts detection module is connected to the CPU of portable electric appts.Wherein, for mobile phone, button K can be the receiving/hang-up key of common four sections handset earphone lines, and button K also can resistance in series in addition.
When button K was pressed, the voltage or the electric current that interrupt producing when detection module detects the line control earphone button and presses changed, and send look-at-me, give CPU such as interrupt request (IRQ), and CPU picks up counting; When unclamping button K, the voltage or the electric current that interrupt producing when detection module detects the line control earphone button and unclamps change, and send look-at-me once more to CPU.Wherein, the look-at-me of sending for twice can be identical; Also can be different, represent the operation of pressing and unclamping button respectively.CPU record is pressed and is unclamped time interval between the button, by with this time span and pre-set threshold comparison, judges this time span corresponding key type and record; According to the push-button type of the single job of writing down, or its pairing function and execution are judged in the combination of the push-button type of multi-pass operations in the certain hour.
The present invention also can be applicable on the circuit of bluetooth earphone, and structure and principle are similar.
Referring to process flow diagram shown in Figure 3, the preferred embodiment to earphone cord control method of the present invention is elaborated below.
The duration of pressing according to button is set several push-button type in advance, such as: short by, in by, long press etc.The setting-up time length threshold is used to distinguish the different key type, such as: set two threshold values 0.5 second and 2 seconds, if the duration that button is pressed less than 0.5 second for short by, press in 0.5 to 2 second being, pressed for long greater than 2 seconds.And, set the corresponding a kind of function of combination of each push-button type or a plurality of push-button type.
For correct identification user's operational order, the present invention need carry out timing to two kinds of situations: the one, and button is pressed and is unclamped lasting time span, and another is the time interval of twice operation of user.
When the user operates by line control earphone, may further comprise the steps:
Step 301, button are pressed to trigger and are interrupted, and CPU picks up counting after receiving look-at-me.
Step 302, button are unclamped and trigger to be interrupted, and CPU stops timing after receiving look-at-me once more, determines the time span between twice interruption, start simultaneously to twice operation room every timing.
Step 303 with step 302 time span of determining and the time span threshold ratio that sets, is judged to belong to which time range and then determine this operation corresponding key type and record.
Step 304 judges whether the line control earphone button is pressed once more before twice predetermined running time arrives at interval, if, to twice operation room every timing stop, returning step 301; Otherwise, enter step 305.
Step 305 is carried out corresponding function according to push-button type or its combination of record.For example:, then carry out the pairing function of this push-button type if only write down a push-button type; If write down two or more push-button type, then they can be got up according to the sequencing permutation and combination of record, search corresponding function and execution according to this combination.
With an instantiation earphone line traffic control implementation method of the present invention is described further below.
Suppose portable electric appts for having the mobile phone of Motion Picture Experts Group's audio layer (MP3) playing function, its line control earphone only needs a regular handset to answer the button of hanging up usefulness.
Set two time span threshold values 0.5 second and 2 seconds, its push-button type be defined as follows:
Short pressing: less than 0.5 second;
In press: greater than 0.5 second and less than 2 seconds;
Long pressing: greater than 2 seconds.
The time interval of twice operation was no more than in 8 seconds.
The key combination functional definition is as follows:
Long pressing: opening/closing music player;
In by+short pressing: reduce volume;
In by+long pressing: increase volume;
Short in+short pressing: a last head;
Short by+in press: next;
Short in+long pressing: as to play;
In by+long pressing: suspend.
Concrete line traffic control realization flow, referring to shown in Figure 4:
Step 401, button are pressed to trigger and are interrupted, and CPU picks up counting.
The current call request of whether receiving is judged in step 402~403, if, then answer this calling, finish; Otherwise enter step 404.
Step 404~405 are judged current whether being in the conversation, if, then hang up current talking, finish; Otherwise enter step 406.
Step 406, button are unclamped to trigger and are interrupted, and the CPU record is pressed the time, the timer zero clearing, and start simultaneously twice running time timing at interval.
Step 407 by pressing time and threshold ratio, is judged the corresponding key type, and record.
The time of pressing of hypothetical record is 1.5 seconds, by with two threshold values relatively judge in the input of this push-button type by.
Step 408 judges whether the line control earphone button is pressed once more within 8 seconds, if the timing in the time interval stops and zero clearing, returns step 401; Otherwise the timing zero clearing in the time interval enters step 409.
Suppose that button is pressed once more in 8 seconds, and the push-button type of record is pressed for long in step 407.
Step 409 is carried out corresponding function according to push-button type or its combination of record.
This moment the push-button type that write down be combined as in by+long by, by the corresponding relation of inquiry button type combination and function, obtain its pairing function for suspending, then CPU carries out the operation that suspends the current song broadcast.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. a portable electric appts includes earphone socket and CPU, it is characterized in that, further comprises: interrupt detection module;
Described earphone socket input end is connected with line control earphone, and output terminal is connected to described interruption detection module;
The interruption detection module when the line traffic control earphone keystroke is pressed and unclamps, produces look-at-me and sends to CPU respectively;
CPU writes down the time interval of described twice look-at-me, determines push-button type according to the time interval, carries out corresponding function according to the combination of a push-button type or an above push-button type.
2. portable electric appts according to claim 1 is characterized in that, described earphone socket input end connects the line control earphone of individual palpation key.
3. portable electric appts according to claim 1 is characterized in that, described portable electric appts is a mobile phone;
Described CPU further judges the current call request of whether receiving when receiving look-at-me, if then answer; Otherwise, continue to judge current whether being in the conversation, if, kill-call then, otherwise, continue timing wait button and unclamp.
4. the line traffic control implementation method of a portable electric appts is characterized in that, sets respectively corresponding function of combination of each a different push-button type or an above push-button type; Set at least one time span threshold value, be used to distinguish different time span scopes, the corresponding push-button type of each time span scope;
And may further comprise the steps:
A. writing down the line traffic control earphone keystroke unclamps the time that is continued from pressing to;
B. relatively, determine and write down this time span corresponding key type this time span and pre-set threshold;
C. judge whether the line traffic control earphone keystroke is pressed once more in the predetermined time interval, if, return steps A, otherwise, step D entered;
D. carry out corresponding function according to the push-button type of record or the combination of an above push-button type.
5. method according to claim 4, it is characterized in that, comprise further in the described portable electric appts that interrupting detection module is connected with line control earphone, steps A comprises: interrupt detection module generation look-at-me when the line control earphone button is pressed and send to CPU, interrupt detection module generation look-at-me when the line control earphone button unclamps and send to CPU, CPU writes down the time interval of twice interruption.
6. method according to claim 5 is characterized in that, the described line control earphone that is connected with the interruption detection module is the line control earphone of individual palpation key.
7. method according to claim 4 is characterized in that, described portable electric appts is a mobile phone, and described steps A further comprises: when detecting the line control earphone button and pressing, judge the current call request of whether receiving, if then answer; Otherwise, judge current whether being in the conversation, if, kill-call then, otherwise, continue timing and wait for that button unclamps.
CNA2007100632783A 2007-01-05 2007-01-05 Portable electronic apparatus and its line traffic control accomplishing method Pending CN101216731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100632783A CN101216731A (en) 2007-01-05 2007-01-05 Portable electronic apparatus and its line traffic control accomplishing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100632783A CN101216731A (en) 2007-01-05 2007-01-05 Portable electronic apparatus and its line traffic control accomplishing method

Publications (1)

Publication Number Publication Date
CN101216731A true CN101216731A (en) 2008-07-09

Family

ID=39623173

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100632783A Pending CN101216731A (en) 2007-01-05 2007-01-05 Portable electronic apparatus and its line traffic control accomplishing method

Country Status (1)

Country Link
CN (1) CN101216731A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790121A (en) * 2010-01-06 2010-07-28 惠州Tcl移动通信有限公司 Mobile equipment line control system, line control device and line control method
CN101873367A (en) * 2010-06-24 2010-10-27 深圳桑菲消费通信有限公司 System and method for expending mobile functional keys
WO2011006368A1 (en) * 2009-07-13 2011-01-20 Zhou Xiangjun Multimedia player and play control method thereof
CN102185960A (en) * 2011-01-04 2011-09-14 惠州Tcl移动通信有限公司 Player program switching method and device based on mobile phone
CN102685633A (en) * 2011-03-18 2012-09-19 深圳富泰宏精密工业有限公司 Method and system for realizing earphone button function of electronic device
CN102970416A (en) * 2012-11-01 2013-03-13 深圳天珑无线科技有限公司 Method for achieving multi-functional control of single-button line-control earphone and communication terminal
CN101783990B (en) * 2010-01-06 2013-05-15 惠州Tcl移动通信有限公司 Linear control system, linear control device and linear control method of mobile equipment
CN103685708A (en) * 2012-09-24 2014-03-26 联想移动通信科技有限公司 Terminal device and control method thereof
WO2014180287A1 (en) * 2013-05-08 2014-11-13 广东欧珀移动通信有限公司 Mobile terminal earphone line control circuit and line control method
CN104159173A (en) * 2014-08-27 2014-11-19 宇龙计算机通信科技(深圳)有限公司 Earphone, earphone application method, earphone control method and device as well as mobile terminal
CN104243667A (en) * 2013-06-14 2014-12-24 英华达(上海)科技有限公司 Method for adjusting application program setting numerical value with single button
CN104330983A (en) * 2013-07-22 2015-02-04 联想(北京)有限公司 Control method and electronic device
WO2015070458A1 (en) * 2013-11-18 2015-05-21 华为终端有限公司 Information processing method and device
CN105516845A (en) * 2014-10-10 2016-04-20 瑞昱半导体股份有限公司 Audio coding unit, portable electronic device and button control method
CN105554617A (en) * 2016-03-01 2016-05-04 敲敲科技(北京)有限公司 Earphone system
CN106527221A (en) * 2016-09-29 2017-03-22 四川九洲电器集团有限责任公司 Intelligent switch, ZigBee module with the intelligent switch and operation method
CN107645293A (en) * 2017-10-31 2018-01-30 广州充圆精密光电仪器有限公司 Push button signalling processing method, device and circuit for portable three-coordinate measuring machine
CN108924684A (en) * 2018-06-20 2018-11-30 北京纽曼凤凰科技有限公司 A kind of earphone and its application method
CN111833909A (en) * 2020-07-14 2020-10-27 深圳佰维存储科技股份有限公司 Hard disk destruction triggering method and device, computer readable storage medium and system

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011006368A1 (en) * 2009-07-13 2011-01-20 Zhou Xiangjun Multimedia player and play control method thereof
CN101783990B (en) * 2010-01-06 2013-05-15 惠州Tcl移动通信有限公司 Linear control system, linear control device and linear control method of mobile equipment
CN101790121A (en) * 2010-01-06 2010-07-28 惠州Tcl移动通信有限公司 Mobile equipment line control system, line control device and line control method
CN101790121B (en) * 2010-01-06 2014-04-09 惠州Tcl移动通信有限公司 Mobile equipment line control system, line control device and line control method
CN101873367A (en) * 2010-06-24 2010-10-27 深圳桑菲消费通信有限公司 System and method for expending mobile functional keys
CN102185960A (en) * 2011-01-04 2011-09-14 惠州Tcl移动通信有限公司 Player program switching method and device based on mobile phone
CN102685633A (en) * 2011-03-18 2012-09-19 深圳富泰宏精密工业有限公司 Method and system for realizing earphone button function of electronic device
CN102685633B (en) * 2011-03-18 2016-01-06 深圳富泰宏精密工业有限公司 Realize the method and system of electronic installation earphone keystroke function
CN103685708A (en) * 2012-09-24 2014-03-26 联想移动通信科技有限公司 Terminal device and control method thereof
CN102970416A (en) * 2012-11-01 2013-03-13 深圳天珑无线科技有限公司 Method for achieving multi-functional control of single-button line-control earphone and communication terminal
CN102970416B (en) * 2012-11-01 2016-03-30 深圳天珑无线科技有限公司 A kind of single-button line control earphone realizes method and the communication terminal of multi-functional control
WO2014180287A1 (en) * 2013-05-08 2014-11-13 广东欧珀移动通信有限公司 Mobile terminal earphone line control circuit and line control method
US9654859B2 (en) 2013-05-08 2017-05-16 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Mobile terminal earphone line control circuit and line control method
CN104243667A (en) * 2013-06-14 2014-12-24 英华达(上海)科技有限公司 Method for adjusting application program setting numerical value with single button
CN104330983A (en) * 2013-07-22 2015-02-04 联想(北京)有限公司 Control method and electronic device
WO2015070458A1 (en) * 2013-11-18 2015-05-21 华为终端有限公司 Information processing method and device
CN104159173A (en) * 2014-08-27 2014-11-19 宇龙计算机通信科技(深圳)有限公司 Earphone, earphone application method, earphone control method and device as well as mobile terminal
CN105516845A (en) * 2014-10-10 2016-04-20 瑞昱半导体股份有限公司 Audio coding unit, portable electronic device and button control method
CN105554617A (en) * 2016-03-01 2016-05-04 敲敲科技(北京)有限公司 Earphone system
CN106527221A (en) * 2016-09-29 2017-03-22 四川九洲电器集团有限责任公司 Intelligent switch, ZigBee module with the intelligent switch and operation method
CN107645293A (en) * 2017-10-31 2018-01-30 广州充圆精密光电仪器有限公司 Push button signalling processing method, device and circuit for portable three-coordinate measuring machine
CN107645293B (en) * 2017-10-31 2024-03-12 广州充圆精密光电仪器有限公司 Key signal processing method, device and circuit for portable three-coordinate measuring machine
CN108924684A (en) * 2018-06-20 2018-11-30 北京纽曼凤凰科技有限公司 A kind of earphone and its application method
CN111833909A (en) * 2020-07-14 2020-10-27 深圳佰维存储科技股份有限公司 Hard disk destruction triggering method and device, computer readable storage medium and system

Similar Documents

Publication Publication Date Title
CN101216731A (en) Portable electronic apparatus and its line traffic control accomplishing method
KR100672539B1 (en) Method for recognizing a touch input in mobile communication terminal having touch screen and mobile communication terminal able to implement the same
CN101493728B (en) Line control push-button detecting and recognizing device and method capable of identifying combined key
CN101668080A (en) Method and device for controlling mobile terminal by earphone
CN102056051A (en) Electronic device, electronic system, and method for processing signals from an audio accessory thereof
CN109313494A (en) Earphone, terminal and control method
CN101102337A (en) A method for realizing multimedia line control earphone function on mobile phone
WO2014000598A1 (en) Detection method, device and terminal for hand-held state of user
CN109618263A (en) Head/neck inclination angle detection method, apparatus, system and wireless headset controller
CN201039440Y (en) A cable control earphone for multi-key and single detection end
CN104754098A (en) Volume adjusting method and system for single-key earphone
CN103401975A (en) Fixed-number dialing method and system
JP7241900B2 (en) Buttonless control device and earphone
CN100399234C (en) Reusing method of hand held information equipment wire controlling button
CN102185960A (en) Player program switching method and device based on mobile phone
CN104853035B (en) time obtaining method and device
CN109618417B (en) Interactive implementation method, system, accessory and storage medium
CN100426901C (en) Earphone and pushbutton detection device and method in mobile communication terminal
CN201886411U (en) Portable electronic equipment
CN201000614Y (en) Mouse phone
KR100617791B1 (en) Ear-mic controller and controlling method in portable radio terminal
US20160098119A1 (en) Audio codec, portable electronic apparatus and button control method
JPH08102775A (en) Cordless telephone set
CN202197345U (en) Telephone intelligent control device
CN106817488A (en) The response method and device of answering earphone key-press event

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20080709