CN103067843B - Method and related electronic device capable of automatically detecting types of accessories of electronic device - Google Patents

Method and related electronic device capable of automatically detecting types of accessories of electronic device Download PDF

Info

Publication number
CN103067843B
CN103067843B CN201110319337.5A CN201110319337A CN103067843B CN 103067843 B CN103067843 B CN 103067843B CN 201110319337 A CN201110319337 A CN 201110319337A CN 103067843 B CN103067843 B CN 103067843B
Authority
CN
China
Prior art keywords
voltage range
output voltage
voltage
value
accessory
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.)
Active
Application number
CN201110319337.5A
Other languages
Chinese (zh)
Other versions
CN103067843A (en
Inventor
张嘉仁
张子军
游明春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN201110319337.5A priority Critical patent/CN103067843B/en
Publication of CN103067843A publication Critical patent/CN103067843A/en
Application granted granted Critical
Publication of CN103067843B publication Critical patent/CN103067843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The invention relates to a method and related electronic device capable of automatically detecting types of accessories of the electronic device. When the types of the accessories of the electronic device are detected, firstly plural decision tables which are relative to the plural types of the accessories are respectively provided, wherein each decision table comprises a first voltage interval and plural second voltage intervals, and the first voltage interval and the plural second voltage intervals are within a voltage range. After one accessory is embedded in the electronic device, an output voltage of the one accessory is detected. When the value of the output voltage is contained within the first voltage interval of one particular decision table of the plural decision tables, the particular decision table is indiscriminately used. And Then when the output voltage changes, the value of the output voltage is renewed. When the renewed value of the output voltage is contained in one particular second voltage interval of the plural second voltage intervals of the particular decision table, one particular event corresponding to the particular second voltage interval is executed. Under the condition that hardware configuration is not changed, the method and related electronic device capable of automatically detecting the types of the accessories of the electronic device is capable of increasing the number of the electronic devices which are capable of automatically identifying the types of the accessories and providing more elastic and convenient application.

Description

The method of Auto-Sensing electronic device accessory type and related electronic device
Technical field
The present invention relates to a kind of method and the related electronic device of detecting electronic device accessory type, particularly a kind of two benches that utilizes judges flow process to detect method and the related electronic device of organizing electronic device accessory type more.
Background technology
Along with development in science and technology, the function of the electronic products such as computer, device for mobile communication and MP3 walkman gets more and more, such as, provide multimedia video amusement.Earphone is a kind of small-sized sound output device, and user can be allowed when leaving other people alone to receive the voice signal of electronic product.Therefore, many mobile phones are equipped with earphone slot, are used for by earphone output sound.Thus, when inconvenient hand held mobile phones such as extract of going window-shopping, driving or motions, earphone can be inserted the earphone slot on mobile phone by user, with in enjoyment multimedia function or also can compromise between security and convenience when receiving calls.
Earphone common on the market mainly contains two types at present: music earphone and microphone earphone.Music earphone containing microphone, therefore only can not be used for listening to music.Microphone earphone is listened to except music except being used for, and also possesses call function.Earphone can be arranged the operating keys such as Answer Key, play button, volume adjustment key.When the earphone of a particular type is embedded in after in the slot of mobile phone by user, mobile phone first need detect headset type and its key-press status, could correctly run.
Fig. 1 is the flow chart detecting headset type method in prior art, comprises the following step:
Step 110: start.
Step 120: the judgement table providing relevant headset type and key-press status, it is included in a plurality of voltage ranges in a voltage range.
Step 130: judge whether an earphone is embedded in electronic installation; If so, step 140 is performed; If not, step 180 is performed.
Step 140 a: output voltage of detecting earphone; Perform step 150.
Step 150: judge whether the value of output voltage is included in a specific voltage interval of judgement table; If so, step 160 is performed; If not, step 170 is performed.
Step 160: electronic installation performs the particular event corresponding to specific voltage interval; Perform step 130.
Step 170: display error message; Perform step 130.
Step 180: terminate.
Usually know known by the knowledgeable as this field possesses, the electronic installations such as mobile phone generally can utilize analog to digital conversion circuit to detect output voltage when earphone embeds, and can detect voltage range greatly between 1.8V ~ 0V.Earphone often uses resistor voltage divider circuit to react the state of its operating key, and when user presses different operating key, resistor voltage divider circuit can change the impedance of signal transmission path between electronic installation and earphone, and then changes the value of output voltage.So, electronic installation can perform a corresponding event according to the output voltage detected.
The electronic installation of prior art detects headset type according to the judgement flow process in single stage, because each voltage range in judgement table need possess enough scopes to avoid erroneous judgement, the electronic installation of prior art only can judge 1 ~ 2 kind of headset type and 3 ~ 4 kinds of operating key states mostly.For example, the output voltage of music earphone approximately drops in the voltage range of 1.8V ~ 1.3V, the output voltage of microphone earphone approximately drops in the voltage range of 1.3V ~ 0.7V, and after pressing specific operating key, earphone output voltage approximately drops on the voltage range of 0.7V ~ 0.5V, 0.5V ~ 0.3V or 0.3V ~ 0.1V.
Due to electronic installation, can to detect voltage range limited, and all voltage ranges are all existing to be defined, and therefore cannot define other accessory.For example, when carrying out voice dependence test to electronic installation, the electronic installation of prior art cannot the automatic Identification tone testing machine that goes out to embed, causes certification inconvenience.
Summary of the invention
The invention provides a kind of method of Auto-Sensing electronic device accessory type, it comprises provides a plurality of judgement tables relevant to plurality of fittings type respectively, and wherein each judgement table is included in one first voltage range in a voltage range and a plurality of second voltage range; After an accessory is embedded in an electronic installation, detect an output voltage of this accessory; When the value of this output voltage is included in one first voltage range of a particular decision table in this plurality of judgement table, apply mechanically this particular decision table; The value of this output voltage is upgraded when this output voltage changes to some extent; And when the value of this output voltage is included in specific second voltage range of a plurality of second voltage range in this particular decision table after upgrading, perform this particular event corresponding to specific second voltage range.
The present invention separately provide a kind of can the electronic installation of automatic decision fitting type, it comprises a memory cell, be used for storing a plurality of judgement tables relevant to plurality of fittings type, wherein each judgement table is included in one first voltage range in a voltage range and a plurality of second voltage range; One detecting unit, is used for detecting an output voltage of this accessory after an accessory is embedded in an electronic installation; And a judging unit, be used for judging whether the value of this output voltage is included in one first voltage range of a particular decision table in this plurality of judgement table, upgrade the value of this output voltage when this output voltage changes to some extent, and after judging renewal, whether the value of this output voltage is included in specific second voltage range of a plurality of second voltage range in this particular decision table.Wherein when the value of this output voltage is included in this first voltage range of this particular decision table, this particular decision table applied mechanically by this electronic installation, and when the value of this output voltage after upgrading to be included in this particular decision table in this specific second voltage range, this electronic installation performs this particular event corresponding to specific second voltage range.
According to two benches, the present invention can judge that flow process is to detect fitting type, can increase when not changing hardware configuration can the number of automatic Identification fitting type, and then provides more elasticity and applying easily.
Accompanying drawing explanation
Fig. 1 is the flow chart detecting headset type method in prior art.
Fig. 2 be a kind of in the embodiment of the present invention can the electronic installation schematic diagram of automatic decision fitting type.
Fig. 3 is the flow chart of a kind of Auto-Sensing electronic device accessory type method in the present invention.
Fig. 4 by the present invention the schematic diagram of generation judgement table.
Fig. 5 is the schematic diagram of the terminal embodiment of accessory in the present invention.
Wherein:
20 accessory 30,40 terminals
200 electronic installation 210 slots
220 detecting unit 230 judging units
240 memory cell 250 message processing units
110 ~ 180,310 ~ 430 steps
S1 ~ S4, S3_1 ~ S3_3, S4_1 ~ S4_4 transport interface
Embodiment
For above-mentioned feature and advantage of the present invention can be become apparent, special embodiment below, and coordinate accompanying drawing to be described in detail below.
Fig. 2 be a kind of in the embodiment of the present invention can the schematic diagram of electronic installation 200 of automatic decision fitting type.Electronic installation 200 comprises slot 210, detecting unit 220, judging unit 230, memory cell 240, and a message processing unit 250.Slot 210 comprises a plurality of transport interface S1 ~ S4, can hold accessory 20 (not shown).Detecting unit 220 is coupled to slot 210, is used for detecting the signal of coffret S1 ~ S4.The a plurality of judgement table of memory cell 240 internal memory, corresponds respectively to all fitting type that electronic installation 200 is supported.Judging unit 230 is coupled to detecting unit 220, be used for first according to the signal of coffret S1 ~ S4 to judge whether have accessory to embed in slot 210, judge to be embedded in the fitting type of slot 210 again, then apply mechanically a corresponding judgement table to judge the state of each operating key on accessory 20 according to fitting type again.Wherein, detecting unit 220 and judging unit 230 can by realizations such as integrated circuit (IC) chip, analog switch or embedded systems.
Fig. 3 is the flow chart of a kind of Auto-Sensing fitting type method in the present invention, and it comprises the following step:
Step 310: start.
Step 320: a plurality of judgement tables relevant to plurality of fittings type are provided respectively, wherein each judgement table is included in one first voltage range in a voltage range and a plurality of second voltage range; Perform step 330.
Step 330: judge whether accessory 20 is embedded in the slot 210 of electronic installation 200; If so, step 340 is performed; If not, step 430 is performed.
Step 340 a: output voltage of detecting accessory 20; Perform step 350.
Step 350: judge whether the value of output voltage is included in the first voltage range of a particular decision table; If so, step 360 is performed; If not, step 420 is performed.
Step 360: apply mechanically particular decision table; Perform step 370.
Step 370: judge whether output voltage changes to some extent; If so, step 380 is performed; If not, step 390 is performed.
Step 380: the value upgrading output voltage; Perform step 400.
Step 390: electronic installation 200 exports data signal to accessory 20; Perform step 370.
Step 400: judge whether the value of output voltage is included in specific second voltage range of particular decision table; If so, step 410 is performed; If not, step 420 is performed.
Step 410: electronic installation 200 performs the particular event corresponding to specific second voltage range; Perform step 370.
Step 420: display error message; Perform step 330.
Step 430: terminate.
In an embodiment of the present invention, accessory 20 can be dissimilar earphone, such as not containing music earphone, the microphone earphone possessing call function, text telephone (tele-typewriter, the TYY) earphone special of microphone, or support the earphone of TYY.Above-mentioned earphone can possess line traffic control function, that is provides various operating key select song, incoming call answering to allow user, or adjustment music/In Call.In an alternative embodiment of the invention, accessory 20 can be MOS (mean opinion score) tone testing machine, be used for electronic installation 200 carry out a kind of analog subscriber call perception test.
Fig. 4 by perform in the present invention step 320 the schematic diagram of generation judgement table.All fitting type that the present invention can support for electronic installation 200 provide corresponding judgement table respectively, and each judgement table is included in one first voltage range in a voltage range and a plurality of second voltage range.Suppose that voltage range is 1.8V ~ 0V, and electronic installation 200 can support 3 kinds of fitting type 1 ~ 3, the present invention in step 320 can by corresponding judgement table 1 ~ judge that table 3 is stored in memory cell 240.Judgement table 1 can comprise one first voltage range A1 and a plurality of second voltage range B1-1 ~ B1-13; Judgement table 2 can comprise one first voltage range A2 and a plurality of second voltage range B2-1 ~ B2-7; Judgement table 3 can comprise one first voltage range A3 and a plurality of second voltage range B3-1 ~ B1-4.First voltage range is relevant to A1 ~ A3 fitting type, and accessory operationally its operating key state that the second voltage range is relevant with B3-1 ~ B1-4 particular types to B1-1 ~ B1-13, B2-1 ~ B2-7.The scope of each voltage range is relevant to corresponding fitting type with the number of voltage range, is only embodiments of the invention, does not limit category of the present invention shown in Fig. 4.
Fig. 5 is the schematic diagram of the terminal embodiment of accessory 20 in the present invention.According to different accessories type, accessory 20 may use different terminal design.Accessory 20 shown in Fig. 5 lower right uses three-section type monophony terminal 30, and the accessory 20 shown in Fig. 5 upper right side uses the stereo terminal 40 of four joint formulas.Three-section type monophony terminal 30 comprises three transport interface S3_1 ~ S3_3, can be used for transmission one microphone signal MIC, an a monophonic signal RCH and ground signalling GND respectively.The stereo terminal 40 of four joint formulas comprises four transport interface S4_1 ~ S4_4, can be used for transmission one microphone signal MIC, a left channel signals LCH, a right-channel signals RCH and a ground signalling GND respectively.The slot 210 of electronic installation 200 can adopt four joint formula designs, and it comprises 4 transmission interface S1 ~ S4.It is identical that three-section type monophony terminal 30 and four saves formula stereo terminal 40 size, all can insert slot 210 to contact the transport interface of given number in transport interface S1 ~ S4.In the present invention, the terminal of accessory 20 and the slot 210 of electronic installation 200 can adopt different designs, be only embodiments of the invention, not delimit the scope of the invention shown in Fig. 5.
If accessory 20 embeds in the slot 210 of electronic installation 200 by user, detecting unit 220 can detect the output voltage that transport interface S1 ~ S4 transmits, therefore can judge that accessory 20 correctly embeds electronic installation 200 in a step 330, then can perform step 340 to detect the output voltage of accessory 20.
In step 350, decision circuitry 230 of the present invention can judge whether the value of output voltage is included in the first voltage range of a particular decision table, then applies mechanically corresponding judgement table in step 360.For example, if accessory 20 belongs to fitting type 1, in the first voltage range A1 of judgement table 1, now judgement table 1 can be applied mechanically in the value being embedded in its output voltage rear in slot 210; If accessory 20 belongs to fitting type 2, in the first voltage range A2 of judgement table 2, now judgement table 2 can be applied mechanically in the value being embedded in its output voltage rear in slot 210; If accessory 20 belongs to fitting type 3, in the first voltage range A3 of judgement table 3, now judgement table 3 can be applied mechanically in the value being embedded in its output voltage rear in slot 210.On the other hand, if accessory 20 do not supported by electronic installation 200, can not be included in the first voltage range of any judgement table in the value being embedded in its output voltage rear in slot 210, and now can perform step 420 to show error message.
Known by these those skilled in the art, accessory 20 uses resistor voltage divider circuit to react the state of its operating key usually.To judge the Class1 corresponding to table 1 in Fig. 4, when user does not press any operating key, its value of the output voltage of accessory 20 is in the first voltage range A1; When user presses first operating key of accessory 20, resistor voltage divider circuit can by one first resistor coupled in parallel to the outgoing route of accessory 20, and its value of output voltage that detecting unit 220 is detected in step 370 can in the second voltage range B1-1; When user presses second operating key of accessory 20, resistor voltage divider circuit can by one second resistor coupled in parallel to the outgoing route of accessory 20, its value of output voltage that detecting unit 220 is detected in step 370 can in the second voltage range B1-2, and the rest may be inferred.
Therefore, if do not detect the change of output voltage in step 370, representative of consumer does not press specific operating key, and now electronic installation 200 can export the data signal that message processing unit 250 produces to accessory 20 in step 390; If detect output voltage in step 370 to change to some extent, representative of consumer is by next specific operating key, now electronic installation 200 can upgrade the value of output voltage in step 380, then judges after upgrading, whether the value of output voltage is included in specific second voltage range of particular decision table in step 400.
After upgrading if judge in step 400, the value of output voltage is included in specific second voltage range of particular decision table, now can perform the particular event corresponding to specific second voltage range in step 410.Particular event can be the action that adjustment data signal exports, and such as start/stop/time-out plays data signal, or volume, mode or speed during adjustment broadcasting data signal.
After upgrading if judge in step 400, the value of output voltage is not included in any second voltage range of particular decision table, now can show error message at step 420 which.Error message can be voice or Word message, and specific operating key can be start/stop/Pause key, fast forward/rewind key, or volume increases/reduce key etc.
In sum, according to two benches, the present invention can judge that flow process is to detect fitting type, and can increase when not changing hardware configuration can the number of automatic Identification fitting type, and then provides more elasticity and applying easily.
The foregoing is only preferred embodiment of the present invention, all equivalent variations of doing according to the claims in the present invention and modification, all should belong to protection scope of the present invention.

Claims (8)

1. a method for Auto-Sensing electronic device accessory type, its step comprises:
There is provided a plurality of judgement tables relevant to plurality of fittings type respectively, wherein each judgement table is included in one first voltage range in a voltage range and a plurality of second voltage range;
After an accessory is embedded in an electronic installation, detect an output voltage of this accessory;
When the value of this output voltage is included in one first voltage range of a particular decision table in this plurality of judgement table, apply mechanically this particular decision table;
The value of this output voltage is upgraded when this output voltage changes to some extent; And
When the value of this output voltage is included in specific second voltage range of a plurality of second voltage range in this particular decision table after upgrading, perform this particular event corresponding to specific second voltage range.
2. the method for claim 1, it is characterized in that, this first voltage range of this particular decision table is relevant to a particular accessories type in this plurality of fittings type, and this plurality of second voltage range of this particular decision table is relevant to a plurality of operating key states of this particular accessories type.
3. the method for claim 1, is characterized in that, also comprises:
When the value of this output voltage not to be included in this plurality of judgement table in all first voltage ranges, or when the value of this output voltage is not included in this plurality of second voltage range in this particular decision table after upgrading, show an error message.
4. the method for claim 1, is characterized in that, also comprises:
When this output voltage does not change, this electronic installation exports a data signal to this accessory.
5. method as claimed in claim 4, is characterized in that, this particular event is the output of this data signal of adjustment.
6. can the electronic installation of automatic decision fitting type, comprise:
One storage element, is used for storing a plurality of judgement tables relevant to plurality of fittings type, and wherein each judgement table is included in one first voltage range in a voltage range and a plurality of second voltage range;
One detecting unit, is used for detecting an output voltage of this accessory after an accessory is embedded in an electronic installation; And a judging unit, be used for judging whether the value of this output voltage is included in one first voltage range of a particular decision table in this plurality of judgement table, upgrade the value of this output voltage when this output voltage changes to some extent, and whether the value of this output voltage is included in specific second voltage range of a plurality of second voltage range in this particular decision table after judging renewal
Wherein: when the value of this output voltage is included in this first voltage range of this particular decision table, this particular decision table applied mechanically by this electronic installation; And when the value of this output voltage after upgrading to be included in this particular decision table in this specific second voltage range, this electronic installation performs this particular event corresponding to specific second voltage range.
7. electronic installation as claimed in claim 6, is characterized in that, also comprise:
One Audio Processing Unit, is used for exporting a data signal when the value of this output voltage does not change to this accessory.
8. electronic installation as claimed in claim 6, is characterized in that, separately comprise:
One slot, is coupled to this detecting unit, is used for holding this accessory.
CN201110319337.5A 2011-10-19 2011-10-19 Method and related electronic device capable of automatically detecting types of accessories of electronic device Active CN103067843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110319337.5A CN103067843B (en) 2011-10-19 2011-10-19 Method and related electronic device capable of automatically detecting types of accessories of electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110319337.5A CN103067843B (en) 2011-10-19 2011-10-19 Method and related electronic device capable of automatically detecting types of accessories of electronic device

Publications (2)

Publication Number Publication Date
CN103067843A CN103067843A (en) 2013-04-24
CN103067843B true CN103067843B (en) 2015-05-27

Family

ID=48110273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110319337.5A Active CN103067843B (en) 2011-10-19 2011-10-19 Method and related electronic device capable of automatically detecting types of accessories of electronic device

Country Status (1)

Country Link
CN (1) CN103067843B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578344B (en) * 2014-10-10 2020-07-14 深圳富泰宏精密工业有限公司 Earphone interface state detection system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030018845A (en) * 2001-08-31 2003-03-06 엘지전자 주식회사 Switch addition apparatus and method for remote controller
CN102056051A (en) * 2009-10-29 2011-05-11 宏达国际电子股份有限公司 Electronic device, electronic system, and method for processing signals from an audio accessory thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030018845A (en) * 2001-08-31 2003-03-06 엘지전자 주식회사 Switch addition apparatus and method for remote controller
CN102056051A (en) * 2009-10-29 2011-05-11 宏达国际电子股份有限公司 Electronic device, electronic system, and method for processing signals from an audio accessory thereof

Also Published As

Publication number Publication date
CN103067843A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN201204638Y (en) System and single-pin plug
US9680980B2 (en) Electronic device accessory
CA2740581C (en) System and method for resuming media
CN101924835B (en) Mobile telephone communication method and mobile telephone
CN101739374B (en) Signal transmission path selecting and apply the electronic installation of this circuit
EP2501114B1 (en) Electronic device and audio accessory having a plurality of passive switches for controlling the audio device
US8787589B2 (en) Electronic device and system and method thereof for identifying electronic accessory and controlling electronic device
US20070010298A1 (en) Phone connected to a personal computer
CN103078997A (en) Method and system for setting volume of mobile terminal and mobile terminal
CN101686282A (en) Portable device including earphone circuit and operation method using the same
CN103118191A (en) Using control method and mobile terminal for iPhone wire control earphone
US8917883B2 (en) Electronic device and audio accessory having a plurality of passive switches for controlling the audio device
US11431181B2 (en) Wireless sound output device with charging function
CN103067843B (en) Method and related electronic device capable of automatically detecting types of accessories of electronic device
CN101945172A (en) Mobile phone-based earphone recognition calling method and mobile phone
CN201781517U (en) Mobile phone device
TWI539372B (en) Method of automatically detecting accessory type of electronic device and related electronic device
CN103442133A (en) Mobile terminal simultaneously supporting three-section type earphone and four-section type earphone and operation method
CN210639604U (en) Bluetooth voice module with serial port control
GB2460501A (en) Electronic device accessory
US20070010293A1 (en) Phone connected to a personal computer
CN103516860A (en) Card swiping type telephone
KR20060085325A (en) A battery charger having function for processing sound signal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant