Earphone line sequence matching device and electronic equipment
By designing a headphone line sequence matching device and using the main control unit, microphone unit, grounding unit and switch unit to detect the voltage difference, the headphone plug can be matched with different standard equipment, which solves the problem in the existing technology that the headphone plug cannot match different standard equipment. , to ensure the normal transmission of microphone and ground signals.
Patent Information
- Application Number
- CN202323271429.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2033-11-30
AI Technical Summary
In the existing technology, the headphone line sequence matching solution can only make the headphone plug match the standards of different devices through circuit design. There is a lack of a solution for devices to match the headphone plugs of different standards, resulting in the failure of the sound and microphone to be used normally.
Design a headphone line sequence matching device, including a main control unit, a microphone unit, a grounding unit, a control unit and a switch unit. By detecting the voltage difference between the microphone and the ground, it outputs a control signal to exchange the connection relationship between the microphone and the ground unit and the switch unit. Match the headphone jack and headphone plug.
The method realizes the matching between the headphone plug and different standard equipment, ensures the normal transmission of the microphone signal and the ground signal, and makes up for the defect in the existing technology that it can only match the equipment but cannot match the headphone plug.
Smart Images

Figure CN221930092U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power electronics technology, and in particular to a headphone line sequence matching device and an electronic device. Background Art
[0002] There are two standards for 3.5mm headphone jack plugs: OMTP (Open Mobile Terminal Platform) and CTIA (Cellular Telecommunications Industry Association). The line sequence of the OMTP standard is left channel, right channel, microphone, ground. The line sequence of the CTIA standard is left channel, right channel, ground, microphone. The corresponding wired headphones also have these two connection methods. When using a headphone that meets the OMTP standard to plug into a device that meets the CTIA standard, the sound and microphone may not work properly.
[0003] The headphone line sequence matching solutions in the related art all use circuit design to enable the headphone plug to match devices of different standards, but lack a solution for matching headphone plugs of different standards through devices. Utility Model Content
[0004] The main purpose of the present application is to provide a headphone line sequence matching device and an electronic device, aiming to achieve the technical effect of matching headphone plugs of different standards through the device.
[0005] To achieve the above-mentioned object, the present application provides a headphone line sequence matching device, the headphone line sequence matching device comprising: a main control unit, the main control unit is used to output a microphone signal and a ground signal;
[0006] a microphone unit, wherein an input end of the microphone unit is connected to a first output end of the main control unit, and the microphone unit is used to transmit the microphone signal;
[0007] a grounding unit, wherein an input end of the grounding unit is connected to a second output end of the main control unit, and the grounding unit is used to transmit the ground signal;
[0008] A control unit, wherein an input end of the control unit is connected to the microphone unit and the grounding unit respectively, and the control unit is used to detect a voltage difference between the microphone unit and the grounding unit, and output a control signal according to the voltage difference;
[0009] a switch unit, one end of which is respectively connected to the output end of the microphone unit and the output end of the grounding unit, a controlled end of which is connected to the output end of the control unit, and the switch unit is used to exchange the connection relationship between the microphone unit and the grounding unit and the switch unit according to the control signal;
[0010] An earphone jack, wherein the first pin and the second pin of the earphone jack are respectively connected to the other end of the switch unit, and the earphone jack is used to connect an earphone plug.
[0011] Optionally, the microphone unit comprises:
[0012] a first microphone circuit, wherein an input end of the first microphone circuit is connected to a first output end of the main control unit as an input end of the microphone unit, an output end of the first microphone circuit is connected to a first end of the switch unit, and the first microphone circuit is used to output the microphone signal to a first pin of the headphone jack;
[0013] A second microphone circuit, wherein the input end of the second microphone circuit is connected to the input end of the first microphone circuit, the output end of the second microphone circuit is connected to the second end of the switch unit, and the second microphone circuit is used to output the microphone signal to the second pin of the headphone jack.
[0014] Optionally, the control unit comprises:
[0015] a first detection end, the first detection end being connected to the first microphone circuit, and the first detection end being used to detect a voltage of the first microphone circuit;
[0016] a second detection end, the second detection end being connected to the second microphone circuit, and the second detection end being used to detect a voltage of the second microphone circuit;
[0017] a third detection end, the third detection end being connected to the grounding unit, and the third detection end being used to detect a first voltage of the grounding unit;
[0018] A fourth detection end, the fourth detection end is connected to the grounding unit, and the fourth detection end is used to detect the second voltage of the grounding unit.
[0019] Optionally, the grounding unit includes:
[0020] a first grounding circuit, wherein an input end of the first grounding circuit is connected to a second output end of the main control unit as an input end of the grounding unit, an output end of the first grounding circuit is connected to a third end of the switch unit, the first grounding circuit is also connected to the third detection end of the control unit, the first grounding circuit is used to output the ground signal to the first pin of the headphone jack, and the first grounding circuit is also used to output a first voltage to the third detection end of the control unit;
[0021] A second grounding circuit, wherein the input end of the second grounding circuit is connected to the input end of the first grounding circuit, the output end of the second grounding circuit is connected to the fourth end of the switch unit, the second grounding circuit is also connected to the fourth detection end of the control unit, the second grounding circuit is used to output the ground signal to the second pin of the headphone jack, and the second grounding circuit is also used to output a second voltage to the fourth detection end of the control unit.
[0022] Optionally, the switch unit includes:
[0023] a first switch, wherein a first end of the first switch serves as a first end of the switch unit and is connected to an output end of the first microphone circuit, a second end of the first switch serves as a third end of the switch unit and is connected to an output end of the first grounding circuit, a third end of the first switch is connected to a first pin of the headphone jack, a controlled end of the first switch is connected to a first output end of the control unit, and the first switch turns on the first grounding circuit according to the control signal;
[0024] a second switch, wherein the first end of the second switch serves as the second end of the switch unit and is connected to the output end of the second microphone circuit; the second end of the second switch serves as the fourth end of the switch unit and is connected to the output end of the second grounding circuit; the third end of the second switch is connected to the second pin of the headphone jack; the controlled end of the second switch is connected to the second output end of the control unit; and the second switch turns on the second microphone circuit according to the control signal.
[0025] Optionally, the first end of the first switch is connected to the third end by default, and the second end of the second switch is connected to the third end by default;
[0026] When the difference between the voltage of the first microphone circuit and the second voltage of the second ground circuit is within a preset range, the control unit does not output a control signal, and the first switch and the second switch maintain a default connection mode.
[0027] Optionally, when the difference between the voltage of the first microphone circuit and the second voltage of the second grounding circuit is outside a preset range, the control unit outputs a control signal, the second end of the first switch is connected to the third end, and the first end of the second switch is connected to the third end.
[0028] Optionally, when the headphone jack is not connected to the headphone plug, the first switch and the second switch maintain a default connection mode.
[0029] Optionally, the first switch and the second switch include relay switches.
[0030] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes the headphone line sequence matching device as described above.
[0031] The present application proposes a headphone line sequence matching device and an electronic device, the headphone line sequence matching device comprising: a main control unit, the main control unit is used to output a microphone signal and a ground signal; a microphone unit, the input end of the microphone unit is connected to the first output end of the main control unit, the microphone unit is used to transmit a microphone signal; a grounding unit, the input end of the grounding unit is connected to the second output end of the main control unit, the grounding unit is used to transmit a ground signal; a control unit, the input end of the control unit is respectively connected to the microphone unit and the grounding unit, the control unit is used to detect the voltage difference between the microphone unit and the grounding unit and output a control signal according to the voltage difference; a switch unit, one end of the switch unit is respectively connected to the output end of the microphone unit and the output end of the grounding unit, the controlled end of the switch unit is connected to the output end of the control unit, the switch unit is used to exchange the connection relationship between the microphone unit and the grounding unit and the switch unit according to the control signal; a headphone jack, the first pin and the second pin of the headphone jack are respectively connected to the other end of the switch unit, the headphone jack is used to connect a headphone plug. The present application provides a device for matching headphone plugs of different standards, which makes up for the defect that only devices of different standards can be matched through headphone plugs in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0033] Figure 1 A schematic diagram of the structure of a headphone line sequence matching device provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of the structure of a microphone unit in a headphone line sequence matching device provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of the connection relationship of a control unit in a headphone line sequence matching device provided in an embodiment of the present application;
[0036] Figure 4 A schematic diagram of the structure of a grounding unit in a headphone line sequence matching device provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram of the structure of a switch unit in a headphone line sequence matching device provided in an embodiment of the present application;
[0038] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0039] Description of Figure Numbers:
[0040]
[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0044] In addition, the descriptions of "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the meaning of "and / or" appearing in the full text is to include three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B.
[0045] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0046] It should also be understood that the references to "one embodiment" or "some embodiments" described in the specification of the embodiments of the present application mean that one or more embodiments of the embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0047] There are two standards for 3.5mm headphone jack plugs: OMTP (Open Mobile Terminal Platform) and CTIA (Cellular Telecommunications Industry Association). The line sequence of the OMTP standard is left channel, right channel, microphone, ground. The line sequence of the CTIA standard is left channel, right channel, ground, microphone. The corresponding wired headphones also have these two connection methods. When using a headphone that meets the OMTP standard to plug into a device that meets the CTIA standard, the sound and microphone may not work properly.
[0048] The headphone line sequence matching solutions in the related art all use circuit design to enable the headphone plug to match devices of different standards, but lack a solution for matching headphone plugs of different standards through devices.
[0049] Based on this, the present application proposes a headphone line sequence matching device and an electronic device, the headphone line sequence matching device comprising: a main control unit, the main control unit is used to output a microphone signal and a ground signal; a microphone unit, the input end of the microphone unit is connected to the first output end of the main control unit, and the microphone unit is used to transmit a microphone signal; a grounding unit, the input end of the grounding unit is connected to the second output end of the main control unit, and the grounding unit is used to transmit a ground signal; a control unit, the input end of the control unit is respectively connected to the microphone unit and the grounding unit, the control unit is used to detect the voltage difference between the microphone unit and the grounding unit and output a control signal according to the voltage difference; a switch unit, one end of the switch unit is respectively connected to the output end of the microphone unit and the output end of the grounding unit, the controlled end of the switch unit is connected to the output end of the control unit, and the switch unit is used to exchange the connection relationship between the microphone unit and the grounding unit and the switch unit according to the control signal; a headphone jack, the first pin and the second pin of the headphone jack are respectively connected to the other end of the switch unit, and the headphone jack is used to connect a headphone plug. The present application provides a device for matching headphone plugs of different standards, which makes up for the defect that only devices of different standards can be matched through headphone plugs in the related art.
[0050] The present application embodiment provides a headphone line sequence matching device, referring to Figure 1 , Figure 1 A schematic diagram of the structure of an earphone line sequence matching device provided in an embodiment of the present application, wherein the earphone line sequence matching device comprises:
[0051] A main control unit 10, the main control unit 10 is used to output a microphone signal and a ground signal;
[0052] A microphone unit 20, wherein an input end of the microphone unit 20 is connected to a first output end of the main control unit 10, and the microphone unit 20 is used to transmit the microphone signal;
[0053] A grounding unit 30, wherein an input end of the grounding unit 30 is connected to a second output end of the main control unit 10, and the grounding unit 30 is used to transmit the ground signal;
[0054] A control unit 40, wherein an input end of the control unit 40 is respectively connected to the microphone unit 20 and the ground unit 30, and the control unit 40 is used to detect a voltage difference between the microphone unit 20 and the ground unit 30, and output a control signal according to the voltage difference;
[0055] a switch unit 50, one end of which is connected to the output end of the microphone unit 20 and the output end of the grounding unit 30 respectively, a controlled end of the switch unit 50 is connected to the output end of the control unit 40, and the switch unit 50 is used to exchange the connection relationship between the microphone unit 20 and the grounding unit 30 and the switch unit 50 according to the control signal;
[0056] The headphone jack 60 has a first pin and a second pin connected to the other end of the switch unit 50 respectively, and the headphone jack 60 is used to connect a headphone plug.
[0057] In this embodiment, the headphone line sequence matching device can be connected to headphone plugs of different standards. Through circuit design, the microphone signal and ground signal output by the headphone line sequence matching device can be accurately transmitted to the microphone end and ground end of the headphone plug.
[0058] The headphone line sequence matching device comprises a main control unit 10 , a microphone unit 20 , a grounding unit 30 , a control unit 40 , a switch unit 50 and a headphone jack 60 . The main control unit 10 includes a first output terminal and a second output terminal, the first output terminal outputs a microphone signal, and the second output terminal outputs a ground signal; the input terminal of the microphone unit 20 is connected to the microphone signal, and the input terminal of the ground unit 30 is connected to the ground signal, and the switch unit 50 is used as a connection port to realize the connection between the microphone unit 20 and the ground unit 30 and the headphone jack 60; the control unit 40 detects the voltage of the microphone unit 20 and the voltage of the ground unit 30, and outputs a control signal according to the voltage difference between the two, and controls the switch unit 50 to switch the connection relationship between the microphone unit 20 and the ground unit 30, for example, the microphone unit 20 is connected to the first pin of the headphone jack 60 through the switch unit 50, and the ground unit 30 is connected to the second pin of the headphone jack through the switch unit 50. When the switch unit 50 receives the control signal output by the control unit 40, the microphone unit 20 is connected to the second pin of the headphone jack 60 through the switch unit 50, and the ground unit 30 is connected to the first pin of the headphone jack 60 through the switch unit 50.
[0059] From the components of the headphone line sequence matching device, the main control unit 10 of the headphone line sequence matching device is used to output the microphone signal and the ground signal; the microphone unit 20 is used to transmit the microphone signal; the ground unit 30 is used to transmit the ground signal, and the control unit 40 is used to detect the voltage difference between the microphone unit 20 and the ground unit 30, and output the control signal; the switch unit 50 is used to connect the connection between the microphone unit 20 and the ground unit 30 and the headphone jack 60, and exchange the connection between the microphone unit 20 and the ground unit 30 and the headphone jack 60 according to the control signal; the headphone jack 60 is used to connect the headphone plug; this embodiment provides a device for matching headphone plugs of different standards, which makes up for the defect that the related art can only match devices of different standards through headphone plugs.
[0060] Combination Figure 1 and Figure 2 In some feasible embodiments, the microphone unit 20 includes:
[0061] a first microphone circuit 21, wherein an input end of the first microphone circuit 21 is connected to a first output end of the main control unit 10 as an input end of the microphone unit 20, an output end of the first microphone circuit 21 is connected to a first end of the switch unit 50, and the first microphone circuit 21 is used to output the microphone signal to a first pin of the headphone jack 60;
[0062] A second microphone circuit 22 , wherein the input end of the second microphone circuit 22 is connected to the input end of the first microphone circuit 21 , the output end of the second microphone circuit 22 is connected to the second end of the switch unit 50 , and the second microphone circuit 22 is used to output the microphone signal to the second pin of the headphone jack 60 .
[0063] In this embodiment, the microphone unit 20 includes a first microphone circuit 21 and a second microphone circuit 22. The first microphone circuit 21 and the second microphone circuit 22 are both used to transmit microphone signals. When the first pin of the headphone jack 60 is connected to the microphone end of the headphone plug, the second microphone circuit 22 is disconnected, and the first microphone circuit 21 can transmit the microphone signal to the first pin of the headphone jack 60 through the switch unit 50. When the second pin of the headphone jack 60 is connected to the microphone end of the headphone plug, the first microphone circuit 21 is disconnected, and the second microphone circuit 22 can transmit the microphone signal to the second pin of the headphone jack 60 through the switch unit 50.
[0064] Reference Figure 3 In some feasible embodiments, the control unit 40 includes:
[0065] a first detection end, the first detection end being connected to the first microphone circuit 21, and the first detection end being used to detect a voltage of the first microphone circuit 21;
[0066] a second detection end, the second detection end being connected to the second microphone circuit 22, and the second detection end being used to detect a voltage of the second microphone circuit 22;
[0067] A third detection end, the third detection end is connected to the grounding unit 30, and the third detection end is used to detect a first voltage of the grounding unit 30;
[0068] A fourth detection end, wherein the fourth detection end is connected to the grounding unit 30 , and the fourth detection end is used to detect the second voltage of the grounding unit 30 .
[0069] In this embodiment, the control unit 40 includes a first detection terminal, a second detection terminal, a third detection terminal and a fourth detection terminal. The control unit 40 detects the voltages of the first microphone circuit 21, the second microphone circuit 22 and the grounding unit 30, and determines whether the headphone line sequence matches according to these voltages. When the headphone line sequence does not match, the control unit 40 outputs a control signal to change the connection relationship so that the headphone line sequence matches. At the same time, the voltages of the first microphone circuit 21, the second microphone circuit 22 and the grounding unit 30 will also change.
[0070] Combination Figure 1 and Figure 4 In some feasible embodiments, the grounding unit 30 includes:
[0071] a first grounding circuit 31, wherein an input end of the first grounding circuit 31 is connected to the second output end of the main control unit 10 as an input end of the grounding unit 30, an output end of the first grounding circuit 31 is connected to the third end of the switch unit 50, the first grounding circuit 31 is also connected to the third detection end of the control unit 40, the first grounding circuit 31 is used to output the ground signal to the first pin of the headphone jack 60, and the first grounding circuit 31 is also used to output a first voltage to the third detection end of the control unit 40;
[0072] A second grounding circuit 32, the input end of the second grounding circuit 32 is connected to the input end of the first grounding circuit 31, the output end of the second grounding circuit 32 is connected to the fourth end of the switch unit 50, the second grounding circuit 32 is also connected to the fourth detection end of the control unit 40, the second grounding circuit 32 is used to output the ground signal to the second pin of the headphone jack 60, and the second grounding circuit 32 is also used to output a second voltage to the fourth detection end of the control unit 40.
[0073] In this embodiment, the grounding unit 30 includes a first grounding circuit 31 and a second grounding circuit 32. The first grounding circuit 31 and the second grounding circuit 32 are both used to transmit ground signals. When the first pin of the headphone jack 60 is connected to the ground terminal of the headphone plug, the second grounding circuit 32 is disconnected, and the first grounding circuit 31 can transmit the ground signal to the first pin of the headphone jack 60 through the switch unit 50. When the second pin of the headphone jack 60 is connected to the ground terminal of the headphone plug, the first grounding circuit 31 is disconnected, and the second grounding circuit 32 can transmit the ground signal to the second pin of the headphone jack 60 through the switch unit 50. The third detection terminal of the control unit 40 is connected to the first grounding circuit 31 to detect the voltage of the first grounding circuit 31, that is, the first voltage; the fourth detection terminal of the control unit 40 is connected to the second grounding circuit 32 to detect the voltage of the second grounding circuit 32, that is, the second voltage.
[0074] Reference Figure 5 In some feasible embodiments, the switch unit 50 includes:
[0075] a first switch 51, wherein a first end of the first switch 51 serves as a first end of the switch unit 50 and is connected to an output end of the first microphone circuit 21, a second end of the first switch 51 serves as a third end of the switch unit 50 and is connected to an output end of the first grounding circuit 31, a third end of the first switch 51 is connected to a first pin of the headphone jack 60, a controlled end of the first switch 51 is connected to a first output end of the control unit 40, and the first switch 51 turns on the first grounding circuit 31 according to the control signal;
[0076] A second switch 52, wherein the first end of the second switch 52 serves as the second end of the switch unit 50, connected to the output end of the second microphone circuit 22, the second end of the second switch 52 serves as the fourth end of the switch unit 50, connected to the output end of the second grounding circuit 32, the third end of the second switch 52 is connected to the second pin of the headphone jack 60, the controlled end of the second switch 52 is connected to the second output end of the control unit 40, and the second switch 52 turns on the second microphone circuit 22 according to the control signal.
[0077] In this embodiment, as an example, under the OMTP standard, the first pin of the headphone jack 60 is connected to the microphone end of the headphone plug, the second pin of the headphone jack 60 is connected to the ground end of the headphone plug, the first switch 51 and the second switch 52 do not receive a control signal, the first end of the first switch 51 is connected to the third end, the first microphone circuit 21 is turned on, and the microphone signal is transmitted to the microphone end of the headphone plug through the first microphone circuit 21, the first switch 51 and the first pin of the headphone jack 60, the second end of the second switch 52 is connected to the third end, the second grounding circuit 32 is turned on, and the ground signal is transmitted to the ground end of the headphone plug through the second grounding circuit 32, the second switch 52 and the second pin of the headphone jack 60. Through the above connection method, the microphone signal and the ground signal are smoothly transmitted to the microphone end and the ground end of the headphone plug of the OMTP standard.
[0078] In this embodiment, as an example, under the CTIA standard, the first pin of the headphone jack 60 is connected to the ground terminal of the headphone plug, and the second pin of the headphone jack 60 is connected to the microphone terminal of the headphone plug. The first switch 51 and the second switch 52 receive a control signal, and the second end of the first switch 51 is connected to the third end, the first grounding circuit 31 is turned on, and the ground signal is transmitted to the ground terminal of the headphone plug through the first grounding circuit 31, the first switch 51 and the first pin of the headphone jack 60. The first end of the second switch 52 is connected to the third end, the second microphone circuit 22 is turned on, and the microphone signal is transmitted to the microphone terminal of the headphone plug through the second microphone circuit 22, the second switch 52 and the second pin of the headphone jack 60. Through the above connection method, the microphone signal and the ground signal are smoothly transmitted to the microphone terminal and the ground terminal of the headphone plug of the CTIA standard.
[0079] In some feasible embodiments, the first end of the first switch 51 is connected to the third end by default, and the second end of the second switch 52 is connected to the third end by default;
[0080] When the difference between the voltage of the first microphone circuit 21 and the second voltage of the second grounding circuit 32 is within a preset range, the control unit 40 does not output a control signal, and the first switch 51 and the second switch 52 maintain a default connection mode.
[0081] In this embodiment, before the headphone jack 60 is connected to the headphone plug, the first end of the first switch 51 is connected to the third end by default, and the second end of the second switch 52 is connected to the third end by default. In this case, the first microphone circuit 21 and the second grounding circuit 32 are turned on. As an example, the default connection mode complies with the OMTP standard. When the headphone jack 60 is connected to the headphone plug that complies with the OMTP standard, the voltage difference between the first microphone circuit 21 and the second grounding circuit 32 detected by the control unit 40 is within a preset range, the control unit 40 will not output a control signal, and the first switch 51 and the second switch 52 will not operate.
[0082] In some feasible embodiments, when the difference between the voltage of the first microphone circuit 21 and the second voltage of the second grounding circuit 32 is outside a preset range, the control unit 40 outputs a control signal, the second end of the first switch 51 is connected to the third end, and the first end of the second switch is connected to the third end.
[0083] In this embodiment, as an example, the default connection mode complies with the OMTP standard. When the headphone jack 60 is connected to a headphone plug that complies with the CTIA standard, the first microphone circuit 21 is finally connected to the ground terminal of the headphone plug, and the second ground circuit 32 is finally connected to the microphone terminal of the headphone plug. The voltage difference between the first microphone circuit 21 and the second ground circuit 32 detected by the control unit 40 is outside the preset range. The control unit 40 outputs a control signal so that the second end of the first switch 51 is connected to the third end, and the first end of the second switch 52 is connected to the third end. The first microphone circuit 21 and the second ground circuit 32 are disconnected, and the second microphone circuit 22 and the first ground circuit 31 are turned on. The microphone signal and the ground signal are transmitted to the microphone terminal and the ground terminal of the headphone plug that complies with the CTIA standard.
[0084] It is worth adding that, since the voltage of the first microphone circuit 21 and the voltage of the second ground circuit 32 are not necessarily standard voltage values, in order to more accurately determine which standard the connected headphone plug complies with, it is necessary to detect the voltages of the four circuits.
[0085] As an example, when the first microphone circuit 21 and the second ground circuit 32 are turned on and the second microphone circuit 22 and the first ground circuit 31 are disconnected, if the voltage difference between the first microphone circuit 21 and the second ground circuit 32 is outside the preset range, the connection mode of the first switch 51 and the second switch 52 is switched. At this time, it is possible to detect whether the voltage difference between the second microphone circuit 22 and the first ground circuit 31 falls within the preset range. If it falls within the preset range, the switching is correct. If it falls outside the preset range, the two voltage differences are compared to see which deviates less from the preset range. The one that deviates less is considered to be within the preset range and is switched to the corresponding connection mode.
[0086] In some feasible embodiments, when the headphone jack 60 is not connected to the headphone plug, the first switch 51 and the second switch 52 maintain a default connection mode.
[0087] In this embodiment, when the default connection mode of the first switch 51 and the second switch 52 is changed, if the headphone plug is pulled out of the headphone jack 60, the first switch 51 and the second switch 52 will be restored to the default connection relationship. Therefore, in any case, before the headphone plug is inserted, the first switch 51 and the second switch 52 must be the default connection mode.
[0088] In some feasible embodiments, the first switch 51 and the second switch 52 include relay switches.
[0089] In this embodiment, the first switch 51 and the second switch 52 may also be other switches as long as they can be controlled and have the characteristics of single-pole double-throw.
[0090] The present embodiment provides a headphone line sequence matching device, in which a main control unit is used to output a microphone signal and a ground signal; a first microphone circuit and a second ground circuit are used to transmit a microphone signal and a ground signal to a first pin and a second pin of a headphone jack, respectively; a second microphone circuit and a first ground circuit are used to transmit a microphone signal and a ground signal to a second pin and a first pin of a headphone jack, respectively; a first switch is used to connect the first microphone circuit or the first ground circuit; a second switch is used to connect the second microphone circuit or the second ground circuit; and a headphone jack is used to connect a headphone plug. The present application provides a device for matching headphone plugs of different standards, which makes up for the defect that only devices of different standards are matched through headphone plugs in the related art. Furthermore, the present embodiment improves the accuracy of matching by detecting the voltages of the first microphone circuit, the second microphone circuit, the first ground circuit, and the second ground circuit.
[0091] In addition, the present application embodiment also provides an electronic device 01, referring to Figure 6 The electronic device 01 includes the headphone line sequence matching device 02 provided in the above embodiment.
[0092] Since the electronic device proposed in this embodiment includes the headphone line sequence matching device proposed in the above embodiments, it has the beneficial effects of the above embodiments. For details of the specific working process and principle of the headphone line sequence matching device, please refer to the headphone line sequence matching device provided in the above embodiments, which will not be described one by one here, and all are within the protection scope of this embodiment.
[0093] It should be noted that the technical solutions of the various embodiments of the present application can be combined with each other, but it must be based on the fact that they can be implemented by technical personnel in this field. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0094] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A headphone line sequence matching device, characterized in that: The headphone line sequence matching device comprises: A main control unit, the main control unit is used to output a microphone signal and a ground signal; a microphone unit, wherein an input end of the microphone unit is connected to a first output end of the main control unit, and the microphone unit is used to transmit the microphone signal; a grounding unit, wherein an input end of the grounding unit is connected to a second output end of the main control unit, and the grounding unit is used to transmit the ground signal; A control unit, wherein an input end of the control unit is connected to the microphone unit and the grounding unit respectively, and the control unit is used to detect a voltage difference between the microphone unit and the grounding unit, and output a control signal according to the voltage difference; a switch unit, one end of which is respectively connected to the output end of the microphone unit and the output end of the grounding unit, a controlled end of which is connected to the output end of the control unit, and the switch unit is used to exchange the connection relationship between the microphone unit and the grounding unit and the switch unit according to the control signal; An earphone jack, wherein the first pin and the second pin of the earphone jack are respectively connected to the other end of the switch unit, and the earphone jack is used to connect an earphone plug.
2. The headphone line sequence matching device according to claim 1, characterized in that: The microphone unit comprises: a first microphone circuit, wherein an input end of the first microphone circuit is connected to a first output end of the main control unit as an input end of the microphone unit, an output end of the first microphone circuit is connected to a first end of the switch unit, and the first microphone circuit is used to output the microphone signal to a first pin of the headphone jack; A second microphone circuit, wherein the input end of the second microphone circuit is connected to the input end of the first microphone circuit, the output end of the second microphone circuit is connected to the second end of the switch unit, and the second microphone circuit is used to output the microphone signal to the second pin of the headphone jack.
3. The headphone line sequence matching device according to claim 2, characterized in that: The control unit comprises: a first detection end, the first detection end being connected to the first microphone circuit, and the first detection end being used to detect a voltage of the first microphone circuit; a second detection end, the second detection end being connected to the second microphone circuit, and the second detection end being used to detect a voltage of the second microphone circuit; a third detection end, the third detection end being connected to the grounding unit, and the third detection end being used to detect a first voltage of the grounding unit; A fourth detection end, the fourth detection end is connected to the grounding unit, and the fourth detection end is used to detect the second voltage of the grounding unit.
4. The headphone line sequence matching device according to claim 3, characterized in that: The grounding unit comprises: a first grounding circuit, wherein an input end of the first grounding circuit is connected to a second output end of the main control unit as an input end of the grounding unit, an output end of the first grounding circuit is connected to a third end of the switch unit, the first grounding circuit is also connected to a third detection end of the control unit, the first grounding circuit is used to output the ground signal to a first pin of the headphone jack, and the first grounding circuit is also used to output a first voltage to the third detection end of the control unit; A second grounding circuit, wherein the input end of the second grounding circuit is connected to the input end of the first grounding circuit, the output end of the second grounding circuit is connected to the fourth end of the switch unit, the second grounding circuit is also connected to the fourth detection end of the control unit, the second grounding circuit is used to output the ground signal to the second pin of the headphone jack, and the second grounding circuit is also used to output a second voltage to the fourth detection end of the control unit.
5. The headphone line sequence matching device according to claim 4, characterized in that: The switch unit comprises: a first switch, wherein a first end of the first switch serves as a first end of the switch unit and is connected to an output end of the first microphone circuit, a second end of the first switch serves as a third end of the switch unit and is connected to an output end of the first grounding circuit, a third end of the first switch is connected to a first pin of the headphone jack, a controlled end of the first switch is connected to a first output end of the control unit, and the first switch turns on the first grounding circuit according to the control signal; a second switch, wherein the first end of the second switch serves as the second end of the switch unit and is connected to the output end of the second microphone circuit; the second end of the second switch serves as the fourth end of the switch unit and is connected to the output end of the second grounding circuit; the third end of the second switch is connected to the second pin of the headphone jack; the controlled end of the second switch is connected to the second output end of the control unit; and the second switch turns on the second microphone circuit according to the control signal.
6. The headphone line sequence matching device according to claim 5, characterized in that: The first end of the first switch is connected to the third end by default, and the second end of the second switch is connected to the third end by default; When the difference between the voltage of the first microphone circuit and the second voltage of the second ground circuit is within a preset range, the control unit does not output a control signal, and the first switch and the second switch maintain a default connection mode.
7. The headphone line sequence matching device according to claim 5, characterized in that: When the difference between the voltage of the first microphone circuit and the second voltage of the second ground circuit is outside a preset range, the control unit outputs a control signal, the second end of the first switch is connected to the third end, and the first end of the second switch is connected to the third end.
8. The headphone line sequence matching device according to claim 6, characterized in that: When the headphone jack is not connected to the headphone plug, the first switch and the second switch maintain a default connection mode.
9. The headphone line sequence matching device according to claim 5, characterized in that: The first switch and the second switch include relay switches.
10. An electronic device, characterized in that: The electronic device comprises the headphone line sequence matching device according to any one of claims 1 to 9.
