CN104023285A - Electronic device and control method - Google Patents
Electronic device and control method Download PDFInfo
- Publication number
- CN104023285A CN104023285A CN201310063762.1A CN201310063762A CN104023285A CN 104023285 A CN104023285 A CN 104023285A CN 201310063762 A CN201310063762 A CN 201310063762A CN 104023285 A CN104023285 A CN 104023285A
- Authority
- CN
- China
- Prior art keywords
- voltage
- plug
- electronic device
- detection signal
- logic level
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 11
- 238000001514 detection method Methods 0.000 claims abstract description 55
- 238000009434 installation Methods 0.000 description 64
- 238000012360 testing method Methods 0.000 description 21
- VIKNJXKGJWUCNN-XGXHKTLJSA-N norethisterone Chemical compound O=C1CC[C@@H]2[C@H]3CC[C@](C)([C@](CC4)(O)C#C)[C@@H]4[C@@H]3CCC2=C1 VIKNJXKGJWUCNN-XGXHKTLJSA-N 0.000 description 6
- 230000005236 sound signal Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 241000209140 Triticum Species 0.000 description 1
- 235000021307 Triticum Nutrition 0.000 description 1
Landscapes
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention discloses an electronic device and a control method. The jack is used for receiving a plug. The sound source output circuit determines the operation mode of the electronic device according to a detection signal. If the detection signal is the first logic potential, the plug is judged to be the plug of an external loudspeaker, and the electronic device enters a first mode; the maximum output voltage of the electronic device in a reference decibel is a first voltage in the first mode, and the maximum output voltage of the electronic device in a reference decibel is a second voltage in the second mode, wherein the first voltage is greater than the second voltage. The electronic device can adjust the maximum volume output of the electronic device by detecting the resistance value of the plug or detecting the set operation mode of a user.
Description
Technical field
The present invention relates to a kind of electronic installation, relate in particular to a kind of electronic installation with the function of automatic test plug type.
Background technology
Electronic installation now is often equipped with jack to play music, allows user can utilize earphone or circumscribed loud speaker to listen to the music.Conventionally understood protection user's ear, avoided because volume comes to harm too greatly, the max volume that electronic installation can be exported can limit to some extent.Yet when user connects external loudspeaker by electronic installation, it is better more loudly now to wish, but is limited to the max volume that electronic installation can be exported, and makes on the contrary the too little sound of sound, cannot enjoy music.
In view of this, need a kind of new scheme, to address the above problem.
Summary of the invention
The invention provides a kind of electronic installation, by the resistance value of test plug, or detection user's set operator scheme, adjust the max volume output of electronic installation.
The invention provides a kind of electronic installation, comprise that jack is in order to take in plug, and source of sound output circuit determines operator scheme according to detection signal.When detection signal is the first logic current potential, source of sound output circuit judgement plug is the plug of an external loudspeaker, and electronic installation enters first mode; When detection signal is the second logic current potential, source of sound output circuit judges that plug is the plug of an earphone, and electronic installation enters the second pattern, and wherein the first logic current potential is different from the second logic current potential; In this first mode, the maximum output voltage of electronic installation when a benchmark decibel is the first voltage, and in the second pattern, the maximum output voltage of electronic installation when benchmark decibel is second voltage, and wherein the first voltage is greater than second voltage.
The invention provides a kind of control method, comprise and judge whether plug is accommodated in the jack of electronic installation, and when plug is accommodated in jack, the current potential of judgement detection signal; When detection signal is the first logic current potential, judgement plug is the plug of an external loudspeaker, and makes electronic installation enter first mode; When detection signal is the second logic current potential, judgement plug is the plug of an earphone, and makes electronic installation enter the second pattern, and wherein the second logic current potential is different from the first logic current potential; In first mode, the maximum output voltage of electronic installation when benchmark decibel is the first voltage, and in the second pattern, the maximum output voltage of electronic installation when benchmark decibel is second voltage, and wherein the first voltage is greater than second voltage.
Therefore, electronic installation of the present invention can be by the resistance value of test plug, or detects user's set operator scheme, adjusts the max volume output of electronic installation.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the electronic installation of test plug type;
Fig. 2 is the circuit diagram of embodiments of the invention;
Fig. 3 is the operational flowchart of electronic installation provided by the present invention;
Fig. 4 is another operational flowchart of electronic installation provided by the present invention.
Description of reference numerals in above-mentioned accompanying drawing is as follows:
100~electronic installation
102~jack
110~plug
114~ground signalling district
115~left audio signal district
116~right audio signal district
210~source of sound output circuit
220~testing circuit
232~the first resistance
234~the second resistance
236~dividing potential drop node
240~the first pins
250~the second pins
The 260~three pin
The 270~four pin
The 280~five pin
VDD~voltage source
Embodiment
Device and the using method of various embodiments of the invention will be discussed in detail below.Yet it should be noted that many feasible inventive concepts provided by the present invention may be implemented in various particular ranges.These specific embodiments are only for illustrating device of the present invention and using method, but non-for limiting scope of the present invention.
Fig. 1 is the schematic diagram of electronic installation that can test plug type.As shown in the figure, electronic installation 100 comprises jack 102, source of sound output circuit 210 and testing circuit 220.Jack 102 is in order to take in a plug 110, wherein this plug 110 comprises along three signal conducting regions of single pin length predetermined order configuration, from plug bottom, start to be sequentially access area 114, right audio signal district 115 and left audio signal district 116, wherein Zuo Ji right audio signal district 115,116 can exchange mutually.In other words, plug 110 can be the plug of general earphone or the plug of a loud speaker (speaker).In addition, plug 110 is not defined as and comprises three signal conducting regions.For instance, plug 110 also can be the plug that a wheat can wind earphone.Now, plug 110 will comprise four signal conducting regions, that is also comprise a microphone area except three signal conducting regions 114~116.
Source of sound output circuit 210 determines operator scheme according to a detection signal (not shown).Source of sound output circuit 210 at least comprises that a coding-decoding circuit (CODEC) forms.In one embodiment, source of sound output circuit 210 can be comprised of central processing unit (CPU) and coding-decoding circuit (CODEC).In another embodiment, source of sound output circuit 210 can be comprised of with coding-decoding circuit central processing unit, digital signal processor (DSP).In certain embodiments, coding-decoding circuit can have the function of judgement size of current.Detection signal is the first logic current potential or the signal of the second logic current potential, and is produced by testing circuit 220, or is produced by a diverter switch (not shown).Testing circuit 220 to detect its resistance value, accordingly produces first logic current potential or the detection signal of second logic current potential according to the size of this resistance value in order to attachment plug 110.In a certain embodiment, when detected resistance value is greater than a set value, testing circuit 220 produces the detection signal with the first logic current potential.On the contrary, when detected resistance value is less than set value, testing circuit 220 produces the detection signal with the second logic current potential.Moreover, diverter switch can be a hardware switch or a software program, when user operates this diverter switch, diverter switch will switch to the second logic current potential from the first logic current potential by detection signal, or switches to the first logic current potential from the second logic current potential.It should be noted that user operates diverter switch and comprises many kinds of modes of operation, for example user presses, slides or rotates at least one critical number of times of this diverter switch or a crash time.Operate diverter switch and also comprise when electronic installation 100 operates in maximum or minimal volume, user presses, slides or rotates at least one critical number of times of this diverter switch or a crash time, and detailed step will illustrate in subsequent figures.
If detection signal is the first logic current potential, to judge plug 110 be the plug of an external loudspeaker to source of sound output circuit 210, and electronic installation 100 enters first mode; If detection signal is the second logic current potential, source of sound output circuit 210 judgement plugs 110 are the plug of an earphone, and electronic installation 100 enters the second pattern.When first mode, source of sound output circuit 210 can be set as the max volume of electronic installation 100 (operation) and when benchmark decibel, export the first voltage; When the second pattern, source of sound output circuit 210 can be set as the max volume of electronic installation 100 (operation) and export second voltage when benchmark decibel, and wherein the first voltage is greater than second voltage.Generally speaking, basis point Becquerel is set as the sine wave (sine wave) of 0dB, the first voltage is the magnitude of voltage between 700 to 900 milli r.m.s. volts (mVrms), and second voltage is the magnitude of voltage between 200 to 400 milli r.m.s. volts (mVrms).Max volume output when in other words, the max volume output of electronic installation 100 can be greater than the second pattern when first mode.
In one embodiment, first source of sound output circuit 210 judges whether plug 110 is incorporated in jack 102, and then whether the diverter switch of detection. electronics 100 is in the first state.If diverter switch is in the first state, 210 generations of source of sound output circuit have the detection signal of the first logic current potential; If diverter switch is in the second state, 210 generations of source of sound output circuit have the detection signal of the second logic current potential.That is to say, user can for example press, slide or rotate this diverter switch by operation diverter switch, determines the mode of operation (meaning is to meet a set operation) of electronic installation 100.For example, if user wishes larger max volume output (while using external loudspeaker to listen to the music), operate diverter switch to produce the detection signal of the first logic current potential, electronic installation 100 enters first mode, and source of sound output circuit 210 can be set as the max volume of electronic installation 100 exporting the first voltage when benchmark decibel; For example, if user wishes less max volume output (while using earphone to listen to the music), operate diverter switch to produce the detection signal of the second logic current potential, electronic installation 100 enters the second pattern, and source of sound output circuit 210 can be set as the max volume of electronic installation 100 exporting second voltage when benchmark decibel.Therefore, user can, according to the hobby of oneself, adjust the max volume output of electronic installation 100.
In another embodiment, electronic installation 100 by predetermined registration operation in the second pattern.First, source of sound output circuit 210 judges whether plug 110 is incorporated in jack 102, then judges whether the output voltage of plug 110 is second voltage.If second voltage represents that electronic installation 100 has reached the output of max volume; If not second voltage, represent that electronic installation 100 not yet reaches the output of max volume.At the same time, source of sound output circuit 110 judges whether to receive volume that diverter switch the produces signal of increasing demand constantly.When the output voltage of plug 110 is that second voltage (representing to have reached max volume) and the received volume of source of sound output circuit 210 increase signal higher than a critical number of times or a crash time (representing to meet a set operation), produce the detection signal with the first logic current potential; That is to say, source of sound output circuit 210 is judged user and is wished that electronic installation 100 has larger max volume output, and produces the detection signal with the first logic current potential, makes electronic installation 100 enter first mode.On the contrary, when the output voltage of plug 110 is not second voltage (representing not reach max volume) or received volume increases signal lower than a critical number of times or a crash time, source of sound output circuit 210 produces the detection signal with the second logic current potential; That is to say, source of sound output circuit 210 is judged the volume that user wishes electronic installation 100, but does not need to change the setting of its max volume output, and produces the detection signal with the second logic current potential, makes electronic installation 100 maintain the second pattern.
In certain embodiments, electronic installation 100 also can comprise processing unit, memory cell, display and contact panel etc.It should be noted that, it is upper that electronic installation 100 may be implemented in other computer systems configurations (configuration), for example portable equipment (hand-held devices), multiprocessing system, take microprocessor as basis or the consumption electronic products of programmable (microprocessor-based or programmable consumer electronics).In preferred embodiment of the present invention, electronic installation 100 is handheld electronic device, for example panel computer or mobile phone.
Fig. 2 is the circuit diagram of an embodiment of electronic installation in the present invention.Testing circuit 220 is coupled to source of sound output circuit 210, and testing circuit 220 comprises the first resistance 232 and the second resistance 234.The first resistance 232 has first end and is coupled to voltage source V DD, and the second end is coupled to dividing potential drop node 236.The second resistance 234 has first end and is coupled to dividing potential drop node 236, and the second end is coupled to source of sound output circuit 210.Source of sound output circuit 210 is connected to left signal audio zone 115 and the right signal audio zone 116 of plug 110 by the 3rd pin 260 and the 4th pin 270, and by the ground signalling district 114 of the 5th pin 280 attachment plugs 110.
Whether source of sound output circuit 210, by the second pin 250 attachment plugs 110, takes in plug 110 in order to detect jack 102.When the second pin 250 is not connected to plug 110, the second pin 250 can be in open circuit (open) state, namely high potential.Voltage on the second pin 250 is when high potential changes electronegative potential into, and source of sound output circuit 210 is judged jack 102 and taken in plug 110; On the contrary, if the voltage on the second pin 250 changes high potential into from electronegative potential, source of sound output circuit 210 judgement plugs 110 are extracted in jack 102.
In the embodiment shown in Figure 2, source of sound output circuit 210 is connected to the 4th pin 270 by the first pin 240, with the resistance value of test plug 110.In general, the resistance value of the plug of earphone is less, be approximately 10 to 60 ohm, and the resistance value of the plug of loud speaker is larger, is approximately 550 to 650 ohm.In a certain embodiment, the resistance value of the plug of earphone is approximately 32 ohm, and the resistance value of the plug of loud speaker is approximately 600 ohm.Therefore, if the first pin 240 connects is the plug of earphone, because the resistance value of plug is lower, make the voltage on dividing potential drop node 236 less, the detection signal that now produced is electronegative potential; On the contrary, if the first pin 240 connects is the plug of external loudspeaker, because the resistance value of plug is higher, make the voltage on dividing potential drop node 236 larger, the detection signal that now produced is high potential.Generally speaking, testing circuit 220 can produce a detection signal, and source of sound output circuit 210 can be high potential or electronegative potential according to detection signal, enters respectively first mode or the second pattern.In first mode, source of sound output circuit 210 can be set as the max volume of electronic installation 100 exporting the first voltage when benchmark decibel.In the second pattern, source of sound output circuit 210 can be set as the max volume of electronic installation 100 can exporting second voltage when 0dB is sinusoidal wave, and wherein the first voltage is greater than second voltage.
It should be noted that if source of sound output circuit 210 can detect the size of electric current, testing circuit 220 can in be built among source of sound output circuit 210.Now source of sound output circuit 210 is connected to plug 110 by built-in testing circuit 220, and testing circuit 220 produces a detection signal according to the resistance value of plug 110, and source of sound output circuit 210 can be high potential or electronegative potential according to detection signal, make electronic installation 100 enter respectively first mode or the second pattern.Because testing circuit 220 is built among source of sound output circuit 210, the first resistance 232 and the second resistance 234 in Fig. 2 just can be removed, and make the circuit framework of electronic installation more simple, and can reduce costs.
In an embodiment of the present invention, source of sound output circuit 210 can be when first, second pattern, by different conversion tables or hardware conversion circuit on the same group not, digital tone source signal is converted to the analog output voltage of a correspondence.Carefully, in first mode, source of sound output circuit 210 is controlled according to volume, digital tone source signal is changed to the analog output voltage in a first voltage range, and in the second pattern, source of sound output circuit 210 is controlled according to volume, and digital tone source signal is changed to the analog output voltage within the scope of a second voltage.It is noted that, in first voltage range, represent that the maximum analog output voltage (for example the first voltage) of max volume output can be greater than the maximum analog output voltage (for example second voltage) that represents max volume output within the scope of second voltage.
Fig. 3 is the operational flowchart of electronic installation provided by the present invention.In step S300, source of sound output circuit 210 judges whether plug 110 is incorporated in jack 102, if enter step S302, gets back to if not step S300.In step S302, source of sound output circuit 210 judgement detection signals, in which kind of current potential, enter step S304 if be positioned at the first logic current potential, if the second logic current potential enters step S308.It should be noted that detection signal can be produced by a testing circuit or a diverter switch.
In step S304, source of sound output circuit 210 judgement plugs 110 are for the plug of external loudspeaker and enter first mode, then in step S306, source of sound output circuit 210 can be set as the max volume of electronic installation 100 exporting the first voltage when benchmark decibel.For example, source of sound output circuit 210 is set as the max volume of electronic installation 100 to export when 0dB is sinusoidal wave the voltage of 800 milli r.m.s. volts.In step S308, source of sound output circuit 210 judgement plugs 110 are for the plug of earphone and enter the second pattern, and then, in step S310, source of sound output circuit 210 can be set as the max volume of electronic installation 100 exporting second voltage when benchmark decibel.For example, source of sound output circuit 210 is set as the max volume of electronic installation 100 to export when 0dB is sinusoidal wave the voltage of 300 milli r.m.s. volts.
Fig. 4 is another operational flowchart of electronic installation provided by the present invention.In this embodiment, detection signal system is produced by diverter switch.In step S400, source of sound output circuit 210 judges whether plug 110 is incorporated in jack 102, if enter step S402, gets back to if not step S400.In step S402, source of sound output circuit 210 is set as the max volume of electronic installation 100 to export when 0dB is sinusoidal wave the voltage (first mode) of 300 milli r.m.s. volts.Then, enter step S404, source of sound output circuit 210 judges whether diverter switch is subject to a set operation, and wherein set operation comprises multiple mode of operation as above, repeats no more herein.If so, enter step S406, get back to if not step S402.
In step S406, source of sound output circuit 210 is set as the max volume of electronic installation 100 to export when 0dB is sinusoidal wave the voltage (the second pattern) of 800 milli r.m.s. volts.Then, enter step S408, source of sound output circuit 210 judges that whether plug 110 removes in jack 102, if get back to step S400, gets back to step S406 if not.
Therefore, electronic installation of the present invention can be by the resistance value of test plug, or detects user's set operator scheme, adjusts the max volume output of electronic installation 100.
Only as described above, it is only preferred embodiment of the present invention, when not limiting scope of the invention process with this, the simple equivalence of generally doing according to the present patent application the scope of the claims and invention description content changes and modifies, and all still remains within the scope of the patent.In addition, arbitrary embodiment of the present invention or claim must not reached disclosed whole objects or advantage or feature.In addition, summary part and title are only for the use of auxiliary patent document search, are not used for limiting interest field of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310063762.1A CN104023285A (en) | 2013-02-28 | 2013-02-28 | Electronic device and control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310063762.1A CN104023285A (en) | 2013-02-28 | 2013-02-28 | Electronic device and control method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104023285A true CN104023285A (en) | 2014-09-03 |
Family
ID=51439820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310063762.1A Pending CN104023285A (en) | 2013-02-28 | 2013-02-28 | Electronic device and control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104023285A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948874A (en) * | 2017-11-28 | 2018-04-20 | 维沃移动通信有限公司 | A kind of terminal control method, mobile terminal |
CN109166271A (en) * | 2018-10-30 | 2019-01-08 | 广汽丰田汽车有限公司 | Automobile production workshop alarm method, device and readable storage medium storing program for executing |
CN112578688A (en) * | 2019-09-12 | 2021-03-30 | 中强光电股份有限公司 | Projection device and sound output control device thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937403A (en) * | 2005-09-23 | 2007-03-28 | 英华达(上海)电子有限公司 | Intelligent volume switching method for multimedia |
US20070098184A1 (en) * | 2005-10-26 | 2007-05-03 | Nec Infronita Corporation | Audio input/output device and method for switching input/output functions |
CN201204686Y (en) * | 2008-06-03 | 2009-03-04 | 深圳市同洲电子股份有限公司 | Video signal equipment |
CN201898602U (en) * | 2010-12-27 | 2011-07-13 | 浙江安迪信信息技术有限公司 | Passive sound box interface of mobile phone |
-
2013
- 2013-02-28 CN CN201310063762.1A patent/CN104023285A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937403A (en) * | 2005-09-23 | 2007-03-28 | 英华达(上海)电子有限公司 | Intelligent volume switching method for multimedia |
US20070098184A1 (en) * | 2005-10-26 | 2007-05-03 | Nec Infronita Corporation | Audio input/output device and method for switching input/output functions |
CN201204686Y (en) * | 2008-06-03 | 2009-03-04 | 深圳市同洲电子股份有限公司 | Video signal equipment |
CN201898602U (en) * | 2010-12-27 | 2011-07-13 | 浙江安迪信信息技术有限公司 | Passive sound box interface of mobile phone |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948874A (en) * | 2017-11-28 | 2018-04-20 | 维沃移动通信有限公司 | A kind of terminal control method, mobile terminal |
CN109166271A (en) * | 2018-10-30 | 2019-01-08 | 广汽丰田汽车有限公司 | Automobile production workshop alarm method, device and readable storage medium storing program for executing |
CN112578688A (en) * | 2019-09-12 | 2021-03-30 | 中强光电股份有限公司 | Projection device and sound output control device thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106126159B (en) | Audio stream processing method and mobile terminal | |
CN106155623B (en) | A kind of audio collocation method, system and relevant device | |
CN110633067B (en) | Method for adjusting sound effect parameters and mobile terminal | |
US9414174B2 (en) | Method and apparatus for controlling audio output | |
CN109495642B (en) | Display control method and related products | |
CN109639367B (en) | Electromagnetic interference adjusting method and related product | |
CN106126172B (en) | A sound effect processing method and mobile terminal | |
CN107277912A (en) | A kind of Radio frequency interference processing method, device, storage medium and terminal | |
CN106791109A (en) | A kind of sound prompting method and mobile terminal | |
CN106982097A (en) | Radio frequency interference elimination method, device, storage medium and terminal | |
CN105100330B (en) | The method and mobile terminal of a kind of equipment effects,sound optimization | |
CN111083289B (en) | Audio playing method and device, storage medium and mobile terminal | |
CN106954143A (en) | Manually adjust the method and electronic equipment of tonequality | |
CN106170170A (en) | Method and device for controlling ambient light | |
CN106126163A (en) | A method and terminal for adjusting sound effects | |
CN101645697B (en) | Volume control system and method | |
CN109150221A (en) | A kind of wearable device master-slave switching method and Related product | |
CN106126160A (en) | A kind of effect adjusting method and user terminal | |
CN106126162A (en) | A method and terminal for preventing sound mutation | |
CN107220163A (en) | Mobile terminal, management method thereof, and computer-readable storage medium | |
CN105828224B (en) | Electronic device, corrector and earphone microphone for correcting electronic device | |
CN104023285A (en) | Electronic device and control method | |
CN106878915A (en) | Playing device control method, device, playing device, and mobile terminal | |
TW201025742A (en) | Portable electric apparatus and jack connection method therefor | |
CN108989546A (en) | The proximity test method and Related product of electronic 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140903 |