CN104754098A - Volume adjusting method and system for single-key earphone - Google Patents

Volume adjusting method and system for single-key earphone Download PDF

Info

Publication number
CN104754098A
CN104754098A CN201310738700.6A CN201310738700A CN104754098A CN 104754098 A CN104754098 A CN 104754098A CN 201310738700 A CN201310738700 A CN 201310738700A CN 104754098 A CN104754098 A CN 104754098A
Authority
CN
China
Prior art keywords
earphone
time
module
earphone keystroke
pressed
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
CN201310738700.6A
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.)
Leadcore Technology Co Ltd
Original Assignee
Leadcore 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 Leadcore Technology Co Ltd filed Critical Leadcore Technology Co Ltd
Priority to CN201310738700.6A priority Critical patent/CN104754098A/en
Publication of CN104754098A publication Critical patent/CN104754098A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention relates to the field of communication, and discloses a volume adjusting method and system for a single-key earphone. The volume adjusting method comprises the following steps: pressing an earphone key; after reading indicates that a terminal is in a music playing mode, judging whether or not the pressing time of the earphone key is smaller than preset time; if the pressing time of the earphone key is smaller than the preset time, executing volume decreasing operation; and if the pressing time of the earphone key is greater than or equal to the preset time, executing volume increasing operation. Compared with the prior art, the volume adjusting method and system for the single-key earphone has the advantages that a volume adjusting function can be implemented through the earphone key of the single-key earphone without increasing any hardware cost, and a user does not need to adjust the volume through the terminal while listening to music with the single-key earphone. The volume adjusting method and system have the advantages of easiness in implementation, high generality and low cost.

Description

The volume adjusting method of single-button earphone and system
Technical field
The present invention relates to communication field, particularly the volume adjusting method of single-button earphone and system.
Background technology
For Cell Phone Design now, the use of ear-phone function on mobile phone is very general and be an indispensable functional module.The function that on current mobile phone, handset module hardware designs realizes generally comprises the function such as music, call.
Tradition GB headset solution basic functional principle:
For earphone hardware designs, regular headset method of interface as shown in Figure 1.
Ear microphone HPMIC signal is connected to chip for cell phone two effects: one, collect for microphone MIC voice input signal; Two, press for Test earphone button;
Earphone interface of mobile phone standard general in the world has two at present, and one is OMTP OMTP standard, a Ge Shi U.S. radio communication and internet society CTIA standard.In general, international manufacturer major part uses CTIA standard, and domestic crudely-made articles product then needs to support OMTP standard.
International standard CTIA3.5 millimeter interface: contact pin connection is L channel-R channel-ground wire-microphone, as shown in Figure 2.
International standard OMTP3.5 millimeter interface: contact pin connection is L channel-R channel-microphone-ground wire, as shown in Figure 3.
Be CTIA or OMTP be all four-section type headset, all there are " headset left channel " " earphone R channel " " ground connection GND " " HPMIC " four signals.
The earphone realizing volume increase and decrease function in the market has following two kinds, and general principle is as follows respectively:
1) there is the earphone of volume increasing-and-decreasing key as shown in Figure 4:
There is the principle of its adjustment volume of earphone of volume increasing-and-decreasing key: on earphone cord, MIC holding wire meets two resistance R1, R2, R3 over the ground, utilize HPMIC voltage difference to distinguish button:
When " volume-" key is pressed, HPMIC signal level is microphone voltage VMIC*(R1+R2)/(R1+R2+R);
When " volume+" key is pressed, HPMIC signal level is VMIC*(R1)/(R1+R);
When " earphone keystroke " is pressed, HPMIC signal level is 0;
Mobile phone is by the difference of HPMIC signal voltage and then determine push-button type and perform corresponding operation, and this requires that mobile phone has meticulous voltage resolution capability.
2) there is the earphone of volume rotation key as shown in Figure 5:
There is the basic functional principle of its adjustment volume of earphone of volume rotation key: rotating volume rotation key, by changing the resistance on earphone path, and then changing voltage component size on earphone, thus realize adjustment volume.
Earphone tradition application scenario:
One, under call mode: under earphone inserts mobile phone situation, if now call, the button on earphone is pressed and be can be used for receiving calls, and when in communication process, the button on earphone is pressed and can be realized function of hanging up the telephone.
Two, under music playing mode: when earphone inserts, audio signal is exported by earphone passage, be then switched to loudspeaker channel when earphone is extracted and play music.When music is play by earphone passage, traditional design method is that earphone keystroke on single-button earphone cannot realize volume increase and decrease function at present in the market.
On using function, there is shortcoming in the earphone only with single button: terminal in the process of listening to the music with earphone, if need regulate volume must carry out operating by the button in terminal or touch-screen the increase and decrease just carrying out volume.
Existing can realize volume increase and decrease earphone in price and versatility on existing defects: the increasing-and-decreasing key needing volume on headset designs, such earphone needs particular design, price is higher, and using the earphone with volume increasing-and-decreasing key also to need hardware chip in terminal to support volume recognition function, need additionally to increase hardware resource.
Summary of the invention
The object of the present invention is to provide a kind of volume adjusting method and system of single-button earphone, can under the prerequisite not increasing hardware, volume increase and decrease function when utilizing the common headphones with a button to realize music, highly versatile, with low cost.
For solving the problems of the technologies described above, the invention provides a kind of volume adjusting method of single-button earphone, comprising following steps:
Press earphone keystroke;
When reading terminal and being in music playing mode, judge whether the time that described earphone keystroke is pressed is less than Preset Time;
If the time that described earphone keystroke is pressed is less than described Preset Time, then perform volume down operation;
If the time that described earphone keystroke is pressed is more than or equal to described Preset Time, then perform volume add operation.
Present invention also offers a kind of sound volume regulating system of single-button earphone, comprise: Executive Module, read module and judge module;
Described execution pattern is used for pressing earphone keystroke;
Described read module is used for the pattern residing for reading terminals;
When described judge module is in music playing mode for reading terminal at described read module, judge whether the time that described earphone keystroke is pressed is less than Preset Time;
Described Executive Module, also for when described judge module judges that the time that described earphone keystroke is pressed is less than described Preset Time, performs volume down operation; When described judge module judges that the time that described earphone keystroke is pressed is more than or equal to described Preset Time, perform volume add operation.
Earphone keystroke on single-button earphone in the market cannot realize volume increase and decrease function, cause terminal in the process of listening to the music with earphone, if need to regulate volume must be undertaken operating by the button in terminal or touch-screen and just can carry out, the existing earphone that can realize volume increase and decrease needs the increasing-and-decreasing key of volume, such earphone needs particular design, price is higher, but also needs hardware chip in terminal to support volume recognition function, needs additionally to increase hardware resource.And the volume adjusting method of single-button earphone in the present invention can under the prerequisite not increasing any hardware cost, volume adjusting function is realized by the earphone keystroke of single-button earphone, make user when use single-button earphone is listened to the music, do not need to be regulated volume by terminal again, realize simple, highly versatile and with low cost.
Preferably, in the step of described execution volume add operation, also comprise following steps:
In the time range that described earphone keystroke is pressed, with described Preset Time for node, interim execution volume add operation.
In the present invention, the increase of volume take Preset Time as node, increase interim in the time range that earphone keystroke is pressed.Such as Preset Time is 1 second, the time that earphone keystroke is pressed is 5.5 seconds, then in the present invention volume only at 1 second, 2 seconds, 3 seconds, 4 seconds and 5 seconds time increase, the time between 5 ~ 5.5 seconds does not perform volume add operation.Such design better can control the increasing degree of volume, improves Consumer's Experience.
Preferably, described after reading terminal and being in the step of music playing mode, before judging whether time that described earphone keystroke is pressed be less than the step of Preset Time, also comprise following steps:
Judge whether described earphone keystroke is in down state;
If described earphone keystroke is not in down state, then enter the step whether described time judging that earphone keystroke is pressed is less than Preset Time;
If described earphone keystroke is in down state, then the timer interruption handling procedure started in timer carries out timing to the time that described earphone keystroke is pressed, and arranges described timer simultaneously and perform timer interruption handling procedure after described Preset Time.
Because in the present invention, the time that earphone keystroke is pressed is no more than Preset Time, and lifts the operation of Shi Caihui execution volume down at earphone keystroke; Exceed Preset Time in the time that earphone keystroke is pressed, and just can perform volume add operation when earphone keystroke is in down state.So before judging whether time that earphone keystroke is pressed be less than Preset Time, judge whether earphone keystroke is in down state.
Preferably, described timer interruption handling procedure comprises following steps:
Arrange the timeout flag of described timer, described timeout flag is the mark reaching time that described earphone keystroke is pressed described Preset Time;
Judge whether described earphone keystroke is in down state;
If be in down state, then timer interruption handling procedure described in execution volume add operation backed off after random;
If be not in down state, then close and exit described timer interruption handling procedure.
At execution volume add operation backed off after random timer interruption handling procedure, work on so that system enters other program; If after setting the timeout flag of timer, earphone keystroke is upspring, and also can close and exit this timer interruption handling procedure, working on so that system enters other program.
Preferably, judge whether the time that described earphone keystroke is pressed is less than Preset Time by following steps:
Judge whether described timeout flag is set up;
If be not set up, then the time that described earphone keystroke is pressed is less than described Preset Time;
If be set up, then the time that described earphone keystroke is pressed is more than or equal to described Preset Time.
In the present invention, the volume adjusting method of single-button earphone is whether timeout flag by judging timer is provided to distinguish and carries out volume down operation or volume add operation in the particular embodiment, because, as long as timeout flag has been set up, just illustrate that the time that earphone keystroke is pressed is more than or equal to Preset Time, now need to perform volume add operation; On the contrary, as long as timeout flag is not set up, just illustrates that the time that earphone keystroke is pressed is less than Preset Time, now need to perform volume down operation.
Preferably, after the step of described execution volume down operation, also comprise following steps:
Close described timer interruption handling procedure.
Other program that timeing closing device interrupt handling routine is convenient in the system of entering works on.
Preferably, the volume adjusting method of described single-button earphone, also comprises following steps:
When terminal is in call mode or is in call mode and music playing mode simultaneously, described earphone keystroke is used for answering or hanging up the telephone.
If terminal is in call mode, the earphone keystroke in the present invention will like the prior art, for answering or hanging up the telephone; If terminal is in music playing mode and call mode simultaneously, the earphone keystroke in the present invention also will like the prior art, preferably performs the operation of answering or hanging up the telephone.
Accompanying drawing explanation
Fig. 1 is conventional earphone hardware connection schematic diagram;
Fig. 2 is that U.S.'s radio communication of international standard opens up 3.5 millimeters of earphone schematic diagrames;
Fig. 3 is mobile-terminal platform 3.5 millimeters of earphone schematic diagrames of international standard;
Fig. 4 has volume to add and 3.5 of volume down button millimeters of earphone schematic diagrames;
Fig. 5 is 3.5 millimeters of earphone schematic diagrames with volume rotation key;
Fig. 6 is the volume adjusting method flow chart according to the single-button earphone in first embodiment of the invention;
Fig. 7 is the volume adjusting method flow chart according to the single-button earphone in second embodiment of the invention;
Fig. 8 is according to the timer interruption handling procedure flow chart in second embodiment of the invention;
Fig. 9 is the sound volume regulating system schematic diagram according to the single-button earphone in third embodiment of the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, persons of ordinary skill in the art may appreciate that in each execution mode of the present invention, proposing many ins and outs to make reader understand the application better.But, even without these ins and outs with based on the many variations of following execution mode and amendment, each claim of the application technical scheme required for protection also can be realized.
First execution mode of the present invention relates to a kind of volume adjusting method of single-button earphone.Comprise following steps:
Press earphone keystroke;
When reading terminal and being in music playing mode, judge whether the time that earphone keystroke is pressed is less than Preset Time;
If the time that earphone keystroke is pressed is less than Preset Time, then perform volume down operation;
If the time that earphone keystroke is pressed is more than or equal to Preset Time, then perform volume add operation.
Idiographic flow as shown in Figure 6.
Step 601: press earphone keystroke.
When above-mentioned earphone keystroke is pressed time, just enter into earphone keystroke interrupt handling routine.
Step 602: read terminal and be in music playing mode.
It is worth mentioning that, the earphone in present embodiment is when reading terminals pattern, and first will judge whether to be in call mode, if terminal is in call mode, then the earphone keystroke in present embodiment will like the prior art, for answering or hanging up the telephone; After judging that terminal is not in call mode, just can judge whether to be in music playing mode, earphone keystroke now, by according to the volume adjusting method of single-button earphone in present embodiment, volume be regulated; If terminal is in music playing mode and call mode simultaneously, the earphone keystroke in the present invention also will like the prior art, preferably performs the operation of answering or hanging up the telephone.
In addition, reading after terminal is in music playing mode, also to judge whether earphone keystroke is in down state.Because in the present invention, the time that earphone keystroke is pressed is no more than Preset Time, and lifts the operation of Shi Caihui execution volume down at earphone keystroke; Exceed Preset Time in the time that earphone keystroke is pressed, and just can perform volume add operation when earphone keystroke is in down state.So before judging whether time that earphone keystroke is pressed be less than Preset Time, judge whether earphone keystroke is in down state.
If earphone keystroke is not in down state, then enter step 603.
If earphone keystroke is in down state, then can start the timer interruption handling procedure in timer.
Above-mentioned timer interruption handling procedure will be arranged on Preset Time and trigger execution, if the time that earphone keystroke is pressed does not exceed this Preset Time, this timer interruption handling procedure would not be performed, if the time that earphone keystroke is pressed has exceeded this Preset Time, this timer interruption handling procedure will be triggered execution, the execution once this timer interruption handling procedure is triggered, then can timeout flag be set, show that the time that earphone keystroke is pressed has reached this Preset Time, in this timer interruption handling procedure, if earphone keystroke is still in down state after arranging timeout flag, then perform volume add operation and exit above-mentioned timer interruption handling procedure, if earphone keystroke is not in down state after arranging timeout flag, then directly close above-mentioned timer interruption handling procedure.Because this timer interruption handling procedure and above-mentioned earphone keystroke interrupt handling routine are two independently programs, so do not draw in Fig. 6.
Step 603: judge whether the time that earphone keystroke is pressed is less than Preset Time.
If the result judged is less than Preset Time, then enter step 604.
Step 604: perform volume down operation.
If the result judged in step 603 is more than or equal to Preset Time, then enter step 605.
Step 605: perform volume add operation.
Specifically, whether the above-mentioned time judging that earphone keystroke is pressed is less than Preset Time and is judged by following steps:
First judge whether timeout flag is set up, if be not set up, then the time that earphone keystroke is pressed is less than Preset Time; If be set up, then the time that earphone keystroke is pressed is more than or equal to Preset Time.
In present embodiment, the volume adjusting method of single-button earphone is whether timeout flag by judging timer is provided to distinguish and carries out volume down operation or volume add operation in the particular embodiment, because, as long as timeout flag has been set up, just illustrate that the time that earphone keystroke is pressed is more than or equal to Preset Time, now need to perform volume add operation; On the contrary, as long as timeout flag is not set up, just illustrates that the time that earphone keystroke is pressed is less than Preset Time, now need to perform volume down operation.
So far, whole process terminates.
Earphone keystroke on single-button earphone in the market cannot realize volume increase and decrease function, cause terminal in the process of listening to the music with earphone, if need to regulate volume must be undertaken operating by the button in terminal or touch-screen and just can carry out, the existing earphone that can realize volume increase and decrease needs the increasing-and-decreasing key of volume, such earphone needs particular design, price is higher, but also needs hardware chip in terminal to support volume recognition function, needs additionally to increase hardware resource.And the volume adjusting method of single-button earphone in the present invention can under the prerequisite not increasing any hardware cost, volume adjusting function is realized by the earphone keystroke of single-button earphone, make user when use single-button earphone is listened to the music, do not need to be regulated volume by terminal again, realize simple, highly versatile and with low cost.
Second execution mode of the present invention relates to a kind of volume adjusting method of single-button earphone.Second execution mode is a specific embodiment of the first execution mode, is the refinement to step each in the first execution mode, specifically as shown in Figure 7.
Step 701: press earphone keystroke.
Step 702: the current residing pattern of reading terminals.
Step 703: judge that whether terminal is at call mode.
If judge result be terminal at call mode, then enter step 704.
Step 704: perform and connect or operation of hanging up the telephone.
If in step 703 judge result be terminal not at call mode, then enter step 705.
Step 705: judge that whether terminal is at music playing mode.
If judge result be terminal at music playing mode, then exit earphone keystroke interrupt routine.
If judge result be terminal not at music playing mode, then enter step 706.
Step 706: judge whether earphone keystroke is in down state.
If the result judged is that earphone keystroke is in down state, then enter step 707.
Step 707: start timer interruption handling procedure and timing is carried out to the time that earphone keystroke is pressed, perform timer interruption handling procedure simultaneously after being arranged on Preset Time.
In present embodiment, arranging above-mentioned Preset Time is 1 second, is all be described for 1 second for Preset Time in describing below present embodiment.
If earphone keystroke is not upspring within 1 second, then timer interruption handling procedure can be triggered execution 1 second time.Specifically, the step of this timer interruption handling procedure as shown in Figure 8.
Step 801: the timeout flag that timer is set when the time that earphone keystroke is pressed is 1 second.
Above-mentioned timeout flag is meet and exceed time that earphone keystroke is pressed the mark of 1 second.
Then step 802: judge whether earphone keystroke is in down state.
If the result judged is that earphone keystroke is in down state, then enter step 803.
Step 803: perform volume add operation.
At the above-mentioned timer interruption handling procedure of execution volume add operation backed off after random, work on so that system enters other program.
If the result judged in step 802 is that earphone keystroke is not in down state, then enter step 804.
Step 804: close above-mentioned timer interruption handling procedure.
At this timer interruption handling procedure of timeing closing device interrupt handling routine backed off after random, work on so that system enters other program.
It is worth mentioning that, the whole process (i.e. step 801 ~ step 804) of above-mentioned timer interruption handling procedure all completed 1 second time, when the time that earphone keystroke is pressed more than 1 second not by 2 seconds time, system can the step 706(again entered in earphone keystroke interrupt handling routine judge whether earphone keystroke is in down state), if within the time of 1 second ~ 2 seconds, button is still in down state, then enter step 707 again; If within the time of 1 second ~ 2 seconds, earphone keystroke is not in down state (namely earphone keystroke is upspring), then can enter step 708; If in 2 seconds, earphone keystroke is still in the state pressed, then 2 seconds time, can perform the whole process of above-mentioned timer interruption handling procedure again.From within the times of 2 seconds ~ 3 seconds and 3 seconds time process the same, and the rest may be inferred.
If the result judged in step 706 is that earphone keystroke is not in down state, then enter step 708.
Step 708: judge whether the timeout flag of timer is set up.
The result judged in step 708 is that timeout flag is set up, then directly enter step 710: timeing closing device interrupt handling routine, then exit this earphone keystroke interrupt handling routine.
If the time that in present embodiment, earphone keystroke is pressed is 1.5 seconds, then 1 second time, perform above-mentioned timer interruption handling procedure, the timeout flag of timer is set up, then will judge that timeout flag is set up, then directly can enter step 710 in this step; If the time that in present embodiment, earphone keystroke is pressed is 2.5 seconds, then 2 seconds time, perform above-mentioned timer interruption handling procedure, the timeout flag of timer can be arranged again, then also will judge that timeout flag was set up, finally also directly can enter step 710 in this step.That is, the timer interruption handling procedure in present embodiment only just can perform when whole second, and namely the increase of volume take Preset Time as node, increase interim in the time range that earphone keystroke is pressed.Such as Preset Time is 1 second, the time that earphone keystroke is pressed is 5.5 seconds, then in present embodiment volume only at 1 second, 2 seconds, 3 seconds, 4 seconds and 5 seconds time increase, 1 ~ 2 second, 2 ~ 3 seconds, 3 ~ 4 seconds, time between 4 ~ 5 seconds and 5 ~ 5.5 seconds do not perform volume add operation.Such design better can control the increasing degree of volume, improves Consumer's Experience.
If the result judged in step 708 is that timeout flag is not set up, then enter step 709.
Step 709: perform volume and reduce operation.
Then step 710: timeing closing device interrupt handling routine.
After execution volume reduces operation, close above-mentioned timer interruption handling procedure, work on so that system continues to enter other programs.In the present embodiment, earphone keystroke interrupt handling routine will be exited after timeing closing device interrupt handling routine.
If the time that in present embodiment, earphone keystroke is pressed is 0.5 second, system can not enter and perform above-mentioned timer interruption handling procedure, therefore the timeout flag of timer can not be set up, then will judge that timeout flag is not set up, then can enter step 709 in this step; If the time that in present embodiment, earphone keystroke is pressed is 1.5 seconds, the timeout flag of timer can be set up 1 second time, in 1 ~ 1.5 second, then come back to the step 706 of earphone keystroke interrupt handling routine, 1.5 seconds time, earphone keystroke is upspring, and enters step 708, now, because timeout flag is set up in 1 second, so directly step 710 can be entered from step 708.
So far, whole process terminates.
Present embodiment is for being the first execution mode specific embodiment, and the relevant technical details mentioned in the first execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.
The step of various method divides above, just in order to be described clearly, can merge into a step or splitting some step, being decomposed into multiple step, when realizing as long as comprise identical logical relation, all in the protection range of this patent.
Third embodiment of the invention relates to a kind of sound volume regulating system of single-button earphone, as shown in Figure 9, comprises: Executive Module, read module and judge module;
Specifically, execution pattern is used for pressing earphone keystroke, read module is used for the pattern residing for reading terminals, when judge module is in music playing mode for reading terminal at read module, judge whether the time that earphone keystroke is pressed is less than Preset Time, when Executive Module is also for judging that the time that earphone keystroke is pressed is less than Preset Time at judge module, perform volume down operation; When judge module judges that the time that earphone keystroke is pressed is more than or equal to Preset Time, perform volume add operation.It is worth mentioning that, when judge module judges that the time that earphone keystroke is pressed is more than or equal to Preset Time, above-mentioned Executive Module also in the time range that earphone keystroke is pressed, with described Preset Time for node, interim execution volume add operation.
The sound volume regulating system of above-mentioned single-button earphone also comprises and arranges module as shown in Figure 9, arranges module and after Preset Time, performs timer interruption handling procedure for arranging timer.After read module reading terminals is in music playing mode, before judge module judges whether time that earphone keystroke is pressed is less than described Preset Time, judge module is also for judging whether earphone keystroke is in down state, judge module after judging that described earphone keystroke is not in down state, then judges whether the time that earphone keystroke is pressed is less than Preset Time; After judge module judges that earphone keystroke is in down state, the time that timer interruption handling procedure in Executive Module startup timer is pressed earphone keystroke arranges module installation timer after Preset Time, performs timer interruption handling procedure while carrying out timing.
Above-mentionedly arrange module also for arranging the timeout flag of timer, timeout flag is the mark reaching time that earphone keystroke is pressed Preset Time; Above-mentioned judge module is also for arranging after module completes arranging of timeout flag, judge whether earphone keystroke is in down state, and result of determination be earphone keystroke be in down state time, trigger Executive Module after the add operation of execution volume, system is exited timer interruption handling procedure, result of determination be earphone keystroke be not in down state time, trigger Executive Module timeing closing device interrupt handling routine, and system exited timer interruption handling procedure.
As shown in Figure 9, above-mentioned judge module also comprises timeout flag recognin module and decision sub-module,
Timeout flag recognin module is for identifying whether timeout flag is set up module and establishes, decision sub-module is not when the recognition result of timeout flag recognin module is for being set up module installation, judge that the time that earphone keystroke is pressed is less than Preset Time, Executive Module will be used for performing volume down operation afterwards, and close above-mentioned timer interruption handling procedure; Decision sub-module the recognition result of timeout flag recognin module be timeout flag be set up module installation time, judge that earphone keystroke time of pressing is more than or equal to described Preset Time.
Executive Module in present embodiment is also for being in call mode or being in call mode and music playing mode simultaneously during in terminal, perform by earphone keystroke operation of answering or hang up the telephone.
Be not difficult to find, present embodiment is the system embodiment corresponding with the first execution mode, and present embodiment can be worked in coordination with the first execution mode and be implemented.The relevant technical details mentioned in first execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment also can be applicable in the first execution mode.
It is worth mentioning that, each module involved in present embodiment is logic module, and in actual applications, a logical block can be a physical location, also can be a part for a physical location, can also realize with the combination of multiple physical location.In addition, in order to outstanding innovative part of the present invention, the unit not too close with solving technical problem relation proposed by the invention is not introduced in present embodiment, but this does not show the unit that there is not other in present embodiment.
Persons of ordinary skill in the art may appreciate that the respective embodiments described above realize specific embodiments of the invention, and in actual applications, various change can be done to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (14)

1. a volume adjusting method for single-button earphone, is characterized in that, comprises following steps:
Press earphone keystroke;
Reading after terminal is in music playing mode, judge whether the time that described earphone keystroke is pressed is less than Preset Time;
If the time that described earphone keystroke is pressed is less than described Preset Time, then perform volume down operation;
If the time that described earphone keystroke is pressed is more than or equal to described Preset Time, then perform volume add operation.
2. the volume adjusting method of single-button earphone according to claim 1, is characterized in that, in the step of described execution volume add operation, also comprises following steps:
In the time range that described earphone keystroke is pressed, with described Preset Time for node, interim execution volume add operation.
3. the volume adjusting method of single-button earphone according to claim 1, it is characterized in that, described after reading terminal and being in the step of music playing mode, before judging whether time that described earphone keystroke is pressed be less than the step of Preset Time, also comprise following steps:
Judge whether described earphone keystroke is in down state;
If described earphone keystroke is not in down state, then enter the step whether described time judging that earphone keystroke is pressed is less than Preset Time;
If described earphone keystroke is in down state, then the timer interruption handling procedure started in timer carries out timing to the time that described earphone keystroke is pressed, and arranges described timer simultaneously and perform timer interruption handling procedure after described Preset Time.
4. the volume adjusting method of single-button earphone according to claim 3, is characterized in that, described timer interruption handling procedure comprises following steps:
Arrange the timeout flag of described timer, described timeout flag is the mark reaching time that described earphone keystroke is pressed described Preset Time;
Judge whether described earphone keystroke is in down state;
If be in down state, then timer interruption handling procedure described in execution volume add operation backed off after random;
If be not in down state, then close and exit described timer interruption handling procedure.
5. the volume adjusting method of single-button earphone according to claim 4, is characterized in that, judges whether the time that described earphone keystroke is pressed is less than Preset Time by following steps:
Judge whether described timeout flag is set up;
If be not set up, then the time that described earphone keystroke is pressed is less than described Preset Time;
If be set up, then the time that described earphone keystroke is pressed is more than or equal to described Preset Time.
6. the volume adjusting method of single-button earphone according to claim 3, is characterized in that, after the step of described execution volume down operation, also comprises following steps:
Close described timer interruption handling procedure.
7. the volume adjusting method of single-button earphone according to claim 1, is characterized in that, also comprise following steps:
When terminal is in call mode or is in call mode and music playing mode simultaneously, described earphone keystroke is used for answering or hanging up the telephone.
8. a sound volume regulating system for single-button earphone, is characterized in that, comprises: Executive Module, read module and judge module;
Described execution pattern is used for pressing earphone keystroke;
Described read module is used for the pattern residing for reading terminals;
When described judge module is in music playing mode for reading terminal at described read module, judge whether the time that described earphone keystroke is pressed is less than Preset Time;
Described Executive Module, also for when described judge module judges that the time that described earphone keystroke is pressed is less than described Preset Time, performs volume down operation; When described judge module judges that the time that described earphone keystroke is pressed is more than or equal to described Preset Time, perform volume add operation.
9. the sound volume regulating system of single-button earphone according to claim 8, is characterized in that, described Executive Module also in the time range pressed at described earphone keystroke, with described Preset Time for node, interim execution volume add operation.
10. the sound volume regulating system of single-button earphone according to claim 8, is characterized in that, also comprises and arranges module;
The described module that arranges performs timer interruption handling procedure for arranging timer after described Preset Time;
After described read module reading terminals is in music playing mode, before described judge module judges whether time that described earphone keystroke is pressed is less than described Preset Time, described judge module is also for judging whether described earphone keystroke is in down state;
Described judge module after judging that described earphone keystroke is not in down state, then judges whether the time that earphone keystroke is pressed is less than Preset Time;
After described judge module judges that described earphone keystroke is in down state, start while time that the timer interruption handling procedure in timer presses described earphone keystroke carries out timing at described Executive Module, describedly timer described in module installation is set after described Preset Time, performs timer interruption handling procedure.
The sound volume regulating system of 11. single-button earphones according to claim 10, is characterized in that,
Describedly arrange module also for arranging the timeout flag of described timer, described timeout flag is the mark reaching time that described earphone keystroke is pressed described Preset Time;
Described judge module is also for arranging after module completes arranging of described timeout flag described, judge whether described earphone keystroke is in down state, and result of determination be described earphone keystroke be in down state time, trigger described Executive Module after the add operation of execution volume, system is exited described timer interruption handling procedure, result of determination be described earphone keystroke be not in down state time, trigger described Executive Module and close described timer interruption handling procedure, and system is exited described timer interruption handling procedure.
The sound volume regulating system of 12. single-button earphones according to claim 11, is characterized in that;
Described judge module comprises: timeout flag recognin module and decision sub-module;
Described timeout flag recognin module is for identifying whether described timeout flag is established by the described module that arranges;
Described decision sub-module described timeout flag recognin module recognition result for not by described module installation is set time, judge that the time that described earphone keystroke is pressed is less than described Preset Time;
Described decision sub-module the recognition result of described timeout flag recognin module be described timeout flag by described module installation is set time, judge that the time that described earphone keystroke is pressed is more than or equal to described Preset Time.
The sound volume regulating system of 13. single-button earphones according to claim 10, is characterized in that, described Executive Module also for after the operation of execution volume down, closes described timer interruption handling procedure.
The sound volume regulating system of 14. single-button earphones according to claim 8, it is characterized in that, described Executive Module is also for being in call mode or being in call mode and music playing mode simultaneously during in terminal, perform by described earphone keystroke operation of answering or hang up the telephone.
CN201310738700.6A 2013-12-27 2013-12-27 Volume adjusting method and system for single-key earphone Pending CN104754098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310738700.6A CN104754098A (en) 2013-12-27 2013-12-27 Volume adjusting method and system for single-key earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310738700.6A CN104754098A (en) 2013-12-27 2013-12-27 Volume adjusting method and system for single-key earphone

Publications (1)

Publication Number Publication Date
CN104754098A true CN104754098A (en) 2015-07-01

Family

ID=53593181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310738700.6A Pending CN104754098A (en) 2013-12-27 2013-12-27 Volume adjusting method and system for single-key earphone

Country Status (1)

Country Link
CN (1) CN104754098A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898024A (en) * 2015-12-23 2016-08-24 乐视移动智能信息技术(北京)有限公司 Earphone key control method and system
CN107423201A (en) * 2017-05-24 2017-12-01 维沃移动通信有限公司 A kind of reminding method and mobile terminal
CN107566631A (en) * 2017-08-29 2018-01-09 努比亚技术有限公司 A kind of method for controlling volume, mobile terminal and computer-readable recording medium
CN109495635A (en) * 2018-12-04 2019-03-19 闻泰通讯股份有限公司 Volume adjusting method and device
CN114071291A (en) * 2020-08-05 2022-02-18 广东小天才科技有限公司 Function control method of ear-hung earphone and ear-hung earphone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060009868A1 (en) * 2004-07-08 2006-01-12 Lg Electronics Inc. Music play control apparatus using at least one earphone function key and method thereof
CN101102337A (en) * 2006-07-07 2008-01-09 上海晨兴电子科技有限公司 A method for realizing multimedia line control earphone function on mobile phone
CN101668080A (en) * 2009-09-28 2010-03-10 中兴通讯股份有限公司 Method and device for controlling mobile terminal by earphone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060009868A1 (en) * 2004-07-08 2006-01-12 Lg Electronics Inc. Music play control apparatus using at least one earphone function key and method thereof
CN101102337A (en) * 2006-07-07 2008-01-09 上海晨兴电子科技有限公司 A method for realizing multimedia line control earphone function on mobile phone
CN101668080A (en) * 2009-09-28 2010-03-10 中兴通讯股份有限公司 Method and device for controlling mobile terminal by earphone

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898024A (en) * 2015-12-23 2016-08-24 乐视移动智能信息技术(北京)有限公司 Earphone key control method and system
WO2017107433A1 (en) * 2015-12-23 2017-06-29 乐视控股(北京)有限公司 Headphone button control method and system
CN107423201A (en) * 2017-05-24 2017-12-01 维沃移动通信有限公司 A kind of reminding method and mobile terminal
CN107566631A (en) * 2017-08-29 2018-01-09 努比亚技术有限公司 A kind of method for controlling volume, mobile terminal and computer-readable recording medium
CN109495635A (en) * 2018-12-04 2019-03-19 闻泰通讯股份有限公司 Volume adjusting method and device
CN114071291A (en) * 2020-08-05 2022-02-18 广东小天才科技有限公司 Function control method of ear-hung earphone and ear-hung earphone

Similar Documents

Publication Publication Date Title
CN111225346B (en) Connection switching method of wireless earphone, wireless earphone and storage medium
CN103118191B (en) Using control method and mobile terminal for iPhone wire control earphone
JP3125407U (en) Internet phone with female connector for audio equipment
CN104754098A (en) Volume adjusting method and system for single-key earphone
CN101924835B (en) Mobile telephone communication method and mobile telephone
WO2018201944A1 (en) Apparatus control method and device
KR100453042B1 (en) A portable telephone, control method, and recording medium therefor
CN102821195A (en) Terminal and multi-audio-frequency output method
CN101938546A (en) Earphone microphone detection method based on mobile phone and mobile phone
CN103078997A (en) Method and system for setting volume of mobile terminal and mobile terminal
CN103414982A (en) Method and device for offering voice
KR20120084666A (en) Apparatus and method for switching multi-channel audio in a portable terminal
CN105245993A (en) Automatic earphone volume adjusting method and system, and smart earphone
CN103067607B (en) Call mode switching method and device
CN101237483A (en) A mobile phone audio prompt method
CN102395072B (en) A kind of headset plug and earphone thereof
WO2011153779A1 (en) Method and terminal for noise suppression using dual-microphone
CN107592407A (en) The method and device of adjustment call relevant information in communication process
CN106412303A (en) Intelligent terminal control method and system based on earphone button, and intelligent terminal
CN104023117B (en) A kind of method of information processing and electronic equipment
WO2018201943A1 (en) Device control method, device and system
CN101945172A (en) Mobile phone-based earphone recognition calling method and mobile phone
CN107659864A (en) A kind of noise-reduction method and terminal
CN201781517U (en) Mobile phone device
CN106657675B (en) Method and system for playing mobile terminal audio and video through Bluetooth playing device

Legal Events

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

Application publication date: 20150701