The present invention relates to earphone jacks, and in particular, to a method and device of implementing compatibility with wired earphones.
At present, most terminal devices, such as computers, mobile phones, MP3, MP4, and PSPs, provide earphone jacks for insertion of earphones so that audio files stored in the terminal devices may be played through the earphones.
During the implementation of the present invention, the inventor discovers that, although the structure and size of earphone plugs are the same, there are two interface standards for earphones while the above terminal devices generally support earphones of only one standard.
1. The sounds heard from the left and right speakers of the earphone are low and distorted.
2. The microphone of the earphone does not work.
Embodiments of the present invention provide a method and device of implementing compatibility with wired earphones to solve the problem that a terminal device is not compatible with earphones of two different standards.
In one aspect, an embodiment of the present invention provides a method of implementing compatibility with wired earphones, where the method includes:
In another aspect, an embodiment of the present invention further provides a device of implementing compatibility with wired earphones, where the device includes:
In still another aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes the above device of implementing compatibility with wired earphones.
With the method and device provided by the embodiments of the present invention, a terminal device is compatible with earphones of two different standards.
The accompanying drawings here are provided to help understand the present invention and constitute a part of this application, but do not limit the present invention. In the drawings:
FIG, 8 is a circuit diagram of earphone jack pins of a terminal device;
To better explain the purpose, technical solution, and advantages of the present invention, the embodiments of the present invention are described in detail with reference to the accompanying drawings. The exemplary embodiments and the descriptions of the present invention are intended to explain the present invention and should not be construed as limitations on the present invention.
301: Judge the type of an earphone plug.
In the embodiment, the type of an earphone plug is the interface standard of the earphone plug. As described in the background of the present invention, there are two interface standards at present. The embodiment, however, is not limited to such standards, With the development of technologies, the method of the embodiment is also applicable to multiple types of earphone plugs.
In the embodiment, the earphone plug is inserted to the earphone jack of the terminal device. The terminal device judges the type of the earphone plug inserted to its earphone jack. In the embodiment, there are many methods of judging the type of an earphone plug and the methods are described in other embodiments of the present invention, but the embodiment is not limited to such methods.
302: Control, according to the type of the earphone plug, a circuit switch to conduct the circuit path corresponding to the type of the earphone plug.
In the embodiment, where the type (interface standard) of earphone plugs varies, the circuit path of the terminal device corresponding to each contactor of the earphone plug is different. For an earphone plug with a tip contactor contacting the left channel, middle ring 1 contactor contacting the right channel, middle ring 2 contactor contacting the microphone, and base contactor contacting the signal loop, according to the method of the embodiment, the L/R/M/GND path of the terminal device needs to be conducted. For an earphone plug with a tip contactor contacting the left channel, middle ring 1 contactor contacting the right channel, middle ring 2 contactor contacting the signal loop, and base contactor contacting the microphone, according to the method of the embodiment, the L/R/GND/M path of the terminal device needs to be conducted.
In the embodiment, different methods are used to conduct the circuit path corresponding to the type of the earphone plug according to the different methods used to judge the type of the earphone plug, which are also described in other embodiments of the present invention.
With the method of the embodiment, the terminal device is compatible with earphones of different standards, which avoids such problems as low and distorted sounds heard from the left and right speakers of earphones and the failure of the earphone microphone caused by different earphone standards.
401: Measure a voltage at a detection point connected with the earphone plug.
402: Compare the voltage at the detection point with a preset voltage at initial the state.
403: If the voltage at the detection point equals the preset voltage at the initial state, determine that the type of the earphone plug is a type of an earphone plug matching the initial state.
404: If the voltage at the detection point is unequal to the preset voltage at the initial state, determine that the type of the earphone plug is a type of an earphone plug not matching the initial state.
In the embodiment, if the voltage at the detection point equals the preset voltage at the initial state, controlling, according to the type of the earphone plug, a circuit switch to conduct the circuit path corresponding to the earphone plug may include the following steps:
405: Generate a circuit control signal according to the type of the earphone plug.
406: Conduct the circuit path corresponding to the earphone plug according to the circuit control signal.
In the embodiment, if the voltage at the detection point is unequal to the preset voltage at the initial state, the controlling, according to the type of the earphone plug, the circuit switch to conduct the circuit path corresponding to the earphone plug may include the following steps:
407: Generate a circuit control signal according to the type of the earphone plug.
408: Switch the circuit path of the earphone plug according to the circuit control signal.
In the embodiment, a voltage at the initial state may be preset and a corresponding circuit path is set for one type of earphone plug according to the voltage at the initial state. According to the method of the embodiment, when it is detected that the voltage measured at the detection point equals the preset voltage at the initial state, the earphone plug inserted to a earphone jack is the same as the type of earphone plug corresponding to the preset voltage at the initial state. In this case, a preset state value may be defined for the circuit switch and the circuit path of the earphone plug corresponding to the type of earphone plug matching the voltage at the initial state may be directly conducted through the circuit switch. According to the method of the embodiment, when it is detected that the voltage measured at the detection point is unequal to the preset voltage at the initial state, that is, when the voltage at the detection point has changed relative to the preset voltage at the initial state, it indicates that the earphone plug inserted to the earphone jack is different from the type of earphone plug corresponding to the preset voltage at the initial state. In this case, another state value may be defined for the circuit switch, for example, a value which enables the circuit switch to be overturned, and the circuit path of the earphone plug corresponding to the type of earphone plug matching the initial state is switched through the circuit switch.
In the embodiment, the circuit switch may be a single pole double throw switch but the embodiment is not limited thereto. The circuit switch controls the circuit path of the earphone plug to be L/R/M/GND or L/R/GND/M according to detected state, namely a received circuit control signal.
According to the method of the embodiment, the terminal device is compatible with earphone plugs of two different standards, thus avoiding the problems in use of earphones caused by different circuit paths matching different standards.
501: Measure the voltage value at a detection point connected with the earphone plug.
502: Compare the voltage at the detection point with a preset voltage which is mapped to the type of earphone plug.
503: Determine the type of the earphone plug according to the voltage at the detection point and the preset mapping relationship between voltages and types of earphone plugs.
In the embodiment, after the type of the earphone plug is determined according to the above method, the controlling, according to the type of the earphone plug, the circuit switch to conduct the circuit path corresponding to the type of the earphone plug may include the following:
504: Generate a circuit control signal according to the type of the earphone plug.
505: Conduct the circuit path of the earphone plug according to the circuit control signal:
In the embodiment, a mapping relationship between voltages and types of earphone plugs may be preset and the type of the earphone plug is determined according to a measured voltage. The voltage here may be a voltage range. For example, range 1 is defined to match earphones of a first standard, range 2 is defined to match earphones of a second standard, and range 3 is defined to match earphones of a third standard. When the measured voltage falls within range 2, it is determined that the earphone is of the second standard.
In the embodiment, earphones of each standard match one circuit path. According to the method of the embodiment, after the type of the earphone plug is determined, a circuit control signal may be generated accordingly. For example, earphones of the first standard match path A, earphones of the second standard match path B, and earphones of the third standard match path C. Then, according to the foregoing measurement and comparison, the earphone is of the second standard and, according to the method of the embodiment, the generated circuit control signal indicates switching to path B.
In the embodiment, after the above circuit control signal is obtained, the circuit switch conducts a corresponding circuit path, for example, path B in the foregoing example.
According to the method of the embodiment, the terminal device is compatible with earphone plugs of two or more different standards, thus avoiding the problems in use of earphones caused by different circuit paths matching different standards.
According to one implementation of the embodiment, as shown in
According to the implementation, the connectivity unit 62 may include:
In the embodiment, the first determining module 613 is further configured to determine that the type of the earphone plug is a type of an earphone plug not matching the initial state when the comparison result of the first comparing module 612 is that the voltage at the detection point is unequal to the preset voltage at the initial state.
According to this implementation, the connectivity unit 62 may include:
The first measuring module 611 may be implemented through the electric circuit shown in
The first generating module 621 and the second generating module 623 may be implemented through one module and the first connectivity module 622 and the switching module 624 may be implemented through one module, but the embodiment is not limited to such implementations.
According to another implementation of the embodiment, as shown in FIG, 6B, the judging unit 61 may include:
According to this implementation, the connectivity unit 62 may include:
Each component of the device in the embodiment is respectively used to implement each step of the method in the foregoing embodiments. Because the steps are already described in detail in the method embodiments, the steps are not described here.
The above is a hardware implementation of the device of implementing compatibility with wired earphones and the embodiment is not limited to the implementation. The embodiment may also be implemented, for example, through software or other circuits, provided that the functions of each component of the device of implementing compatibility with wired earphones in the embodiment are fulfilled, and all such implementations fall within the scope of the embodiments of the present invention.
According to the device in the embodiment, the terminal device is compatible with earphone plugs of two or more different standards, thus avoiding the problems in use of earphones caused by different circuit paths matching different standards.
In the embodiment, the terminal may be a computer, mobile phone, MP3, MP4, or PSP.
The terminal device provided in the embodiment is compatible with earphone plugs of two or more different standards, thus avoiding the problems in use of earphones caused by different circuit paths matching different standards.
The steps of the method or algorithm described in the embodiments disclosed here may be implemented directly through hardware, or a software module executed by a processor, or a combination of both. The software module may be disposed in a random access memory (RAM), a memory, a read-only memory (ROM), an electric programmable ROM, an electric erasable and programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium commonly known in the art.
The purpose, technical solution, and benefits of the present invention have been described in detail through some exemplary embodiments. It is understandable that the foregoing embodiments are exemplary and not intended to limit the protection scope of the invention, Any modifications, substitutions, and improvements made to the invention without departing from the spirit and principle of the invention shall be included in the protection scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
200910249586.4 | Dec 2009 | CN | national |
This application is a continuation of International Application No. PCT/CN2010/079846, filed on Dec. 16, 2010, which claims priority to Chinese Patent Application No. 200910249586.4, filed on Dec. 30, 2009, both of which are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2010/079846 | Dec 2010 | US |
Child | 13538494 | US |