Control circuit applied to earphone port and electronic equipment

By designing the control circuit for the headphone port, including analog switches and sampling modules, the problem that existing devices cannot be compatible with PTT headphones is solved, and simultaneous support and compatibility of traditional headphones and PTT headphones are achieved.

CN119893374APending Publication Date: 2025-04-25SHANGHAI CHANGLIAN ZHIRONG COMM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510070786.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

Existing electronic devices are not compatible with PTT headsets and cannot meet the communication needs of PTT headsets.

Method used

A control circuit applied to the headphone port is designed, including a first analog switch, a second analog switch and a sampling module. When the traditional headset is connected, an audio signal is sent through the first analog switch; when the PTT headset is connected, the impedance of the PTT module is detected through the second analog switch, and the working mode of the PTT headset is controlled based on the detection result.

Benefits of technology

It realizes that electronic devices support the communication needs of traditional headphones and PTT headphones at the same time, meeting the needs of PTT function in industrial or logistics scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893374A_ABST
    Figure CN119893374A_ABST
Patent Text Reader

Abstract

The invention provides a control circuit applied to an earphone port and electronic equipment, and is applied to the technical field of electronics. The control circuit comprises a first analog switch, a second analog switch and a sampling module. Under the condition that the traditional earphone is connected to the electronic equipment, the first analog switch is switched on, and the audio coding module can send an audio signal to the first audio output module through the first analog switch; under the condition that the PTT earphone is connected to the electronic equipment, the second analog switch is switched on, and the sampling module can detect the impedance of the PTT in the second circuit based on the second analog switch, so that the processing module determines the PTT working mode of the second earphone based on the first detection result, and the processing module works in the corresponding PTT working mode; therefore, the control circuit designed by the invention can meet the communication requirements between the electronic equipment and the traditional earphone and the PTT earphone at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a control circuit and electronic equipment applied to an earphone port. Background Art

[0002] Push-to-Talk (PTT) is a communication method that changes the state of sending and receiving by pressing the PTT button. With the development of lifestyle, electronic devices used in industrial or logistics scenarios, such as personal digital assistants (PDAs), have a demand for the use of PTT functions in scenarios where they communicate through headphones.

[0003] Different from the full-duplex communication mode adopted by the traditional headsets applied to the Open Mobile Terminal Platform (CTIA) (CTIA headsets for short) or the headsets defined by the Consumer Technology Association (OMTP) (OMTP headsets for short), the headsets supporting the Push-to-Talk (PTT) function (PTT headsets for short) support half-duplex communication mode. Specifically, when the PTT button on the PTT headset is pressed, the user using the PTT headset obtains the right to speak, the microphone of the PTT headset collects the user's voice signal, and the voice signal is processed and sent to the receiving end user; when the PTT button is released, the user using the PTT headset releases the right to speak, and the user can receive the voice signal sent by the sending end user through the speaker of the PTT headset.

[0004] However, in existing electronic devices, only control circuits supporting a certain type of headset communication are designed. When other types of headsets are connected to the electronic device, the electronic device cannot meet the communication requirements of the headset of that type. Summary of the invention

[0005] The present application provides a control circuit and an electronic device applied to a headphone port. When a traditional headphone is connected, a first audio output module can send an audio signal to a first audio output module of a first headphone through a first analog switch of the control circuit. When a PTT headphone is connected, a sampling module can detect the impedance of a PTT module of the PTT headphone through a second analog switch, and control the working mode of the PTT headphone based on the first detection result. In this way, the electronic device can meet the communication requirements of the PTT headphone and the traditional headphone at the same time.

[0006] In a first aspect, the present application provides a control circuit applied to a headphone port, comprising: a first analog switch, a second analog switch and a sampling module; wherein the first analog switch is connected to the audio encoding module and the first headphone port respectively; the sampling module is connected to the first headphone port through the second analog switch; the first headphone port is used to connect to the first audio output module of the first headphone, or the first headphone port is used to connect to the push-to-talk (PTT) module of the second headphone; the second headphone implements a PTT function based on the PTT module; when the first audio output module is connected to the first headphone port, the first analog switch is in an on state, and the audio encoding module sends an audio signal to the first audio output module through the first analog switch; when the PTT module is connected to the first headphone port, the second analog switch is in an on state, and the sampling module detects the impedance of the PTT module through the second analog switch, and sends the first detection result to a processing module connected to the sampling module, so that the processing module determines the PTT working mode of the second headphone based on the first detection result and works under the PTT working mode.

[0007] In some embodiments, the second analog switch is specifically connected to the detection end of the sampling module, the control circuit also includes a voltage divider module, the detection end of the sampling module is also connected to the first end of the voltage divider module, and the second end of the voltage divider module is connected to a power supply; the sampling module is used to collect the voltage signal of the first end of the voltage divider module to obtain the first detection result; the first detection result is used to characterize the impedance of the PTT module; wherein, when the first detection result changes from large to small, the PTT working mode of the second earphone is the PTT sending mode; when the first detection result changes from small to large, the working mode of the second earphone is the PTT receiving mode.

[0008] In some embodiments, the first analog switch and the second analog switch are also connected to the processing module, respectively, and the processing module is used to control the first analog switch to be turned on or off, and to control the second analog switch to be turned on or off; the first analog switch is used to receive a first control signal sent by the processing module, and the second analog switch is used to receive a second control signal sent by the processing module; wherein, when the first audio output module is connected to the first headphone port, the first control signal is used to control the first analog switch to be in the on state, and the second control signal is used to control the second analog switch to be in the off state; when the PTT module is connected to the first headphone port, the first control signal is used to control the first analog switch to be in the off state, and the second control signal is used to control the second analog switch to be in the on state.

[0009] In some embodiments, when the first audio output module is connected to the first headphone port, the first control signal and the second control signal are both in a first logic state; when the PTT module is connected to the first headphone port, the first control signal and the second control signal are both in a second logic state; the first logic state is different from the second logic state.

[0010] In some embodiments, the first analog switch includes a first common terminal, a first normally open terminal, a first normally closed terminal and a first input terminal; wherein the first common terminal is connected to the audio encoding module; the first input terminal of the first analog switch is connected to the first output terminal of the processing module; the first normally open terminal is connected to the first headphone port; the first normally closed terminal is suspended; when the first control signal is in the first logic state, the transmission path between the first common terminal and the first normally open terminal is connected, and the transmission path between the first common terminal and the first normally closed terminal is disconnected, so that the audio signal sent by the audio encoding module is transmitted to the first audio output module through the first analog switch; the second analog switch includes a second common terminal, a second normally open terminal, a second normally closed terminal and a second input terminal; wherein the second common terminal is connected to the detection terminal of the sampling module, the second normally open terminal is suspended, and the second normally closed terminal is connected to the first headphone port; when the second control signal is in the second logic state, the transmission path between the second common terminal and the second normally open terminal is disconnected, and the transmission path between the second common terminal and the second normally closed terminal is connected, so that the sampling module can detect the impedance of the PTT module through the second analog switch.

[0011] In a second aspect, the present application provides an electronic device, comprising a first headphone port, a processing module, an audio encoding module and the control circuit described in any one of the first aspects; wherein the audio encoding module is electrically connected to the first headphone port through a first analog switch of the control circuit; the sampling module is electrically connected to the first headphone port through a second analog switch of the control circuit; the first headphone port is used to connect to a first audio output module of a first headphone, or the first headphone port is used to connect to a PTT module of a second headphone; wherein the second headphone supports a PTT function; when the first audio output module is connected to the first headphone port, the first analog switch is in an on state, and the audio encoding module sends an audio signal to the first audio output module through the first analog switch; when the PTT module is connected to the first headphone port, the second analog switch is in an on state, and the sampling module detects the impedance of the PTT module through the second analog switch, and sends the first detection result to the processing module connected to the sampling module, so that the processing module determines the PTT working mode of the second headphone based on the first detection result and works in the PTT working mode.

[0012] In some embodiments, the audio encoding module is also used to detect the impedance of the target earphone connected to the electronic device, obtain a second detection result, and send the second detection result to the processing module; the processing module is used to control the logical state of the first control signal and the second control signal based on the second detection result; wherein, the target earphone is the first earphone currently connected to the electronic device or the second earphone currently connected to the electronic device.

[0013] In some embodiments, the processing module is specifically used to control the first control signal and the second control signal to be in the first logical state when the second detection result is less than a preset threshold; and to control the first control signal and the second control signal to be in the second logical state when the second detection result is greater than or equal to the preset threshold.

[0014] In some embodiments, the audio encoding module is also used to detect the impedance of the target earphone through a first analog switch when it is detected that the target earphone is connected to the electronic device; wherein, before the target earphone is connected to the electronic device, the audio encoding module instructs the processing module to control the first control signal to be in a first logic state based on detecting that there is no earphone connected to the electronic device.

[0015] In some embodiments, the electronic device further includes a second headphone port, a third headphone port and a fourth headphone port; wherein, when the target headphone is connected to the electronic device, the second headphone port is connected to the second audio output module of the target headphone; the third headphone port is connected to the transmission loop module of the target headphone, and the fourth headphone port is connected to the audio input module of the target headphone; the electronic device transmits signals to the second audio output module of the target headphone through the second headphone port; the electronic device provides a signal transmission loop for the second audio output module and audio input module of the target headphone through the third headphone port and the transmission loop module of the target headphone, and provides a signal transmission loop for the first audio output module or PTT module of the target headphone; the electronic device transmits signals to the audio input module of the target headphone through the fourth headphone port.

[0016] The present application provides a control circuit and an electronic device applied to a headphone port. The control circuit includes a first analog switch, a second analog switch and a sampling module. When a traditional headphone is connected to an electronic device, the first analog switch is turned on, and the audio encoding module can send an audio signal to the first audio output module through the first analog switch; when a PTT headphone is connected to an electronic device, the second analog switch is turned on, and the sampling module can detect the impedance of the PTT in the second circuit based on the second analog switch, so that the processing module determines the PTT working mode of the second headphone based on the first detection result, so that the processing module can work in the corresponding PTT working mode; in this way, the control circuit designed in the present application can simultaneously meet the communication requirements between the electronic device and the traditional headphone and the PTT headphone. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a schematic diagram of the structure of a traditional headset;

[0018] Figure 2 It is a schematic diagram of the structure of a PTT headset;

[0019] Figure 3 A schematic diagram of the structure of a control circuit provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of the structure of a control circuit provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0024] The directions or positional relationships indicated by terms such as "center", "longitudinal", "lateral", "up", "down", "left", "right", "front", and "back" are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present application and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present application.

[0025] The terms "connected" and "connected" should be understood in a broad sense. For example, the "connected" or "connected" of a circuit structure can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0026] First pass Figure 1 The structure of traditional headphones (such as CTIA headphones or OMTP headphones) is introduced. Figure 2 The structure of the PTT headset is introduced.

[0027] Figure 1 Schematic diagram of the structure of a traditional headset.

[0028] like Figure 1 As shown, the conventional earphone 10 is composed of an earphone plug 11 and a circuit part 12. The earphone plug 11 is a four-section plug, which includes a first left channel section L1, a first right channel section R1, a first signal loop section G1 and a first microphone section M1.

[0029] The first microphone segment M1 is connected to the first signal loop segment G1 through the first microphone MIC1, and the first microphone MIC1 is connected to the button H in parallel.

[0030] The first left channel section L1 is connected to the first signal loop section G1 through the first left speaker SPK_L1.

[0031] The first right channel section R1 is connected to the first signal loop section G1 through the first right speaker SPK_R1.

[0032] The electronic device is provided with an earphone interface adapted to the four-section plug, and the earphone plug is inserted into the earphone interface to realize data transmission between the electronic device and each module of the circuit part 12.

[0033] Figure 1 The working principle of the traditional headset in the call scenario is as follows: when a call comes in, press the button H, the electronic device controls the first microphone MIC1 to be in working state, detects and collects sound signals, and sends sound signals to the caller. At the same time, the electronic device controls the first left speaker SPK_L1 and the first right speaker SPK_R1 to be in working state, receives the caller's sound signal and plays the sound signal to the user through the first left speaker SPK_L1 and the first right speaker SPK_R1. In other words, the traditional headset 10 is in full-duplex working mode. It can send sound signals to the caller and receive the caller's sound signal at the same time.

[0034] Figure 2 It is a schematic diagram of the structure of a PTT headset.

[0035] like Figure 2 As shown, the PTT headset 20 is composed of an earphone plug 21 and a circuit part 22. The earphone plug 21 is a four-section plug, wherein the earphone plug 21 includes a second left channel section L2, a PTT section P, a second signal loop section G2 and a second microphone section M2.

[0036] The second microphone segment M2 is connected to the second signal loop segment G2 via the second microphone MIC2.

[0037] The second left channel section L2 is connected to the second signal loop section G2 via the second left speaker SPK_L2.

[0038] The PTT segment P is connected to the second signal loop segment G2 via the PTT module.

[0039] The earphone plug 21 is used to connect to the earphone interface of the electronic device to realize data transmission between the electronic device and each module of the circuit part 22 .

[0040] The PTT module specifically includes a first resistor R1, a second resistor R2 and a PTT button. The working principle of the PTT headset in a call scenario is as follows: when the PTT button is not pressed, the impedance between the PTT segment P and the ground is fixed, and the impedance is related to the first resistor R1; at this time, the electronic device controls the second left speaker SPK_L2 to be in a working state, and the second microphone MIC2 is in a non-working state. The PTT headset can receive the sound signal sent by the communication party, but cannot collect and send the sound signal to the communication party.

[0041] When the PTT button is pressed, the impedance between the PTT segment P and the ground changes, and the impedance is determined by the first resistor R1 and the second resistor R2. The electronic device controls the second microphone MIC2 to be in a working state, and the second left speaker SPK_L2 to be in a non-working state; PTT can collect the user's voice signal and transmit the voice signal to the communication party, but cannot receive the voice signal from the communication party.

[0042] That is, the PTT headset 10 is in a half-duplex working mode. It is not possible to receive a voice signal sent by the communication party while sending a voice signal to the communication party, or it is not possible to send a voice signal to the communication party while receiving a voice signal sent by the communication party.

[0043] Existing electronic devices usually support data transmission with various modules of traditional headphones through the headphone interface to meet the user's demand for full-duplex communication mode.

[0044] With the development of lifestyle, electronic devices (such as PDAs) used in industrial or logistics scenarios have a demand for PTT headsets. However, the circuits related to the headset interface in existing electronic devices are usually designed for traditional headsets and are not compatible with PTT headsets, resulting in the PTT headset not being able to work properly after being connected to the headset interface of the electronic device, and the electronic device cannot meet the communication needs of the PTT headset.

[0045] Based on this, the present application provides a control circuit applied to an earphone port. The present application adds a control circuit to an electronic device, which can simultaneously meet the communication requirements between the electronic device and a traditional earphone and a PTT earphone.

[0046] Next, through Figure 3 The working principle of the control circuit is described in the embodiment.

[0047] Figure 3 A schematic diagram of the structure of the control circuit 30 provided in an embodiment of the present application.

[0048] like Figure 3 As shown, the control circuit 30 includes a first analog switch S1 , a second analog switch S2 and a sampling module 31 .

[0049] The audio encoding module 42 is connected to the first earphone port 43 via the first analog switch S1, and the sampling module 31 is connected to the first earphone port 43 via the second analog switch S2.

[0050] It is understood that, as described above, the electronic device is provided with an earphone interface, and the electronic device collects or plays sound signals through the target earphone, and the earphone plug of the target earphone needs to be inserted into the earphone interface to perform data transmission between the electronic device and the target earphone. The target earphone is the first earphone or the second earphone.

[0051] The electronic device of the present application is adapted to a first earphone and a second earphone, and the first earphone can be as follows Figure 1 The conventional earphone 10 shown, the second earphone may be as follows Figure 2 The PTT headset 20 is shown.

[0052] like Figure 1 and Figure 2 As shown, the headphone plug of the traditional headphone and the headphone plug of the PTT headphone are both four-section headphone plugs. Accordingly, the headphone interface in the electronic device also includes a first headphone port 43, a second headphone port, a third headphone port and a fourth headphone port.

[0053] When the target earphone is connected to the electronic device, the earphone plug of the target earphone is inserted into the earphone interface of the electronic device.

[0054] Specifically, the first earphone port 43 is connected to the first audio output module of the first earphone or the PTT module of the second earphone. The first audio output module of the first earphone may be the first right speaker SPK_R1.

[0055] It can be understood that the first earphone port 43 is used to contact and connect with the first right channel segment R1 of the first earphone or the PTT segment P of the second earphone, thereby connecting with the first audio output module of the first earphone or the PTT module of the second earphone, and then realizing signal transmission between the electronic device and the first audio output module of the first earphone or the PTT module of the second earphone through the first earphone port 43.

[0056] The second earphone port is connected to the second audio output module of the first earphone or the second audio output module of the second earphone.

[0057] The second audio output module of the first earphone may be the first left speaker SPK_L1, and the second audio output module of the second earphone may be the second left speaker SPK_L2.

[0058] Specifically, the second headphone port is in contact with and connected to the first left channel segment L1 of the first headphone or the second left channel segment L2 of the second headphone, thereby connecting the second headphone port to the second audio output module of the first headphone or the second audio output module of the second headphone, thereby enabling the electronic device to transmit data with the second audio output module of the first headphone or the second audio output module of the second headphone through the second headphone port.

[0059] The third earphone port is connected to the transmission circuit module of the first earphone or the second earphone. The transmission circuit module of the first earphone includes a first signal circuit segment G1 of the first earphone; the first signal circuit segment G1 is grounded; the first signal circuit segment G1 is also respectively connected to the second audio output module of the first earphone, the audio input module of the first earphone, and the first audio output module of the first earphone, thereby providing a transmission circuit for the second audio output module of the first earphone, the audio input module of the first earphone, and the first audio output module of the first earphone.

[0060] The audio input module of the first earphone may be the first microphone MIC1.

[0061] The transmission circuit module of the second earphone includes the second signal circuit segment G2 of the second earphone; the second signal circuit segment G2 is grounded; the second signal circuit segment G2 is also respectively connected to the second audio output module of the second earphone, the audio input module of the second earphone, and the PTT module of the second earphone, thereby providing a signal transmission circuit for the second audio output module of the second earphone, the audio input module of the second earphone, and the PTT module of the second earphone.

[0062] The audio input module of the second earphone may be the second microphone MIC2.

[0063] The fourth earphone port is connected to the audio input module of the first earphone or the audio input module of the second earphone.

[0064] Specifically, the fourth earphone port is in contact with and connected to the first microphone segment M1 of the first earphone or the second microphone segment M2 of the second earphone, thereby being connected to the audio input module of the first earphone or the audio input module of the second earphone, thereby realizing signal transmission between the electronic device and the audio input module of the first earphone or the audio input module of the second earphone.

[0065] It should be noted that, in the headphone interface of the electronic device, when the first headphone port 43 is connected to the first audio output module of the first headphone through the first right channel segment R1 of the headphone plug of the first headphone, the second headphone port to the fourth headphone port must be connected to the module corresponding to the second headphone through the corresponding segment of the headphone plug of the first headphone. When the first headphone port 41 is connected to the PTT module of the second headphone through the PTT segment P of the headphone plug of the second headphone, the second headphone port to the fourth headphone port must be connected to the module corresponding to the second headphone through the corresponding segment of the headphone plug of the second headphone.

[0066] The control circuit 30 of the embodiment of the present application is designed for the first headphone port 43, and the circuit module in the electronic device connected to the second headphone port to the fourth headphone port for processing the input signals of other segments of the headphone can reuse the existing technology.

[0067] like Figure 3 As shown, the audio encoding module 42 in the electronic device is connected to the first earphone port 43 through the first analog switch S1.

[0068] The sampling module 31 is connected to the first earphone port 43 via the second analog switch S2 .

[0069] When the headphone plug of the first earphone is inserted into the headphone interface of the electronic device, the first right channel segment R1 of the first earphone is in contact with the first headphone port 43, so that the first audio output module of the first earphone is connected to the first headphone port 43; in this case, the first analog switch S1 is in the on state, and the audio encoding module 42 can send an audio signal to the first audio output module through the first analog switch S1; the first audio output module converts the audio signal into a sound signal and plays it to the user.

[0070] Specifically, after the first analog switch S1 is turned on, the audio signal sent by the audio encoding module 42 is transmitted to the first audio output module through the first analog switch S1, the first earphone port 43, and the first right channel segment R1 of the first earphone in sequence.

[0071] When the headphone plug of the second headphone is inserted into the headphone interface of the electronic device, the PTT segment P of the second headphone contacts the first headphone port 43, so that the PTT module of the second headphone is connected to the first headphone port 43; in this case, the second analog switch S2 is in the on state, and the sampling module 31 can detect the impedance of the PTT module through the second analog switch S2, and send the detected first detection result to the processing module 41 connected to the sampling module 31, so that the processing module 41 determines the PTT working mode of the second headphone based on the first detection result.

[0072] Specifically, after the second analog switch S2 is turned on, the transmission path among the sampling module 31, the second analog switch S2, the first earphone port 43, the PTT segment P of the second earphone, and the PTT module is turned on, so that the sampling module 31 can detect the impedance of the PTT module.

[0073] For details, please refer to Figure 2 and Figure 3 , the first earphone port 43 is in contact with the PTT segment P, so that the first earphone port 43 is connected to the PTT module through the PTT segment P, and the PTT module specifically includes a first resistor R1, a second resistor R2 and a PTT button B. Among them, the first end of the first resistor R1 is respectively connected to the PTT segment P and the second signal loop segment G2 of the second earphone, the second end of the first resistor R1 is grounded, the first end of the first resistor R1 is also connected to the first end of the PTT button, the second end of the PTT button is connected to the first end of the second resistor R2, and the second end of the second resistor R2 is connected to the second end of the first resistor R1.

[0074] When the PTT button is pressed, the impedance of the PTT module is determined by the equivalent resistance corresponding to the first resistor R1 and the second resistor R2, and the resistance of the equivalent resistance is smaller than the first resistor R1 and the second resistor R2; the resistance of the equivalent resistance is: R r1 / / R r2 =(R r1 *R r2 ) / (R r1 +R r2 ), where R r1 is the resistance value of the first resistor R1, R r2 is the resistance value of the second resistor R2. When the PTT button is released, the impedance of the PTT module is determined by the first resistor R1.

[0075] The impedance of the PTT module when the PTT button is pressed is less than the impedance of the PTT module when the PTT button is released; therefore, the sampling module 31 can control the working mode of the second earphone based on the change of the impedance of the PTT module.

[0076] Specifically, the sampling module 31 detects that the impedance of the PTT module changes from large to small, indicating that the PTT button is pressed, and the processing module 41 determines that the second earphone is in the PTT sending mode. In the PTT sending mode, the processing module receives the user's voice signal through the audio input module of the second earphone, and sends the voice signal to the recipient after processing.

[0077] Specifically, the processing module 41 collects the sound signal through the audio input module of the second earphone, and sends the sound signal to the receiver after processing. If the sampling module 31 detects that the impedance of the PTT module changes from small to large, indicating that the PTT button is released, the processing module 41 determines that the second earphone is in the PTT receiving mode. In the PTT receiving mode, the processing module sends the received audio signal to the second audio output module of the second earphone, and the second audio output module plays the signal to the user after processing.

[0078] The present application provides a control circuit 30 applied to a headphone port. The control circuit 30 includes a first analog switch S1, a second analog switch S2 and a sampling module 31. When a traditional headset 10 is connected to an electronic device, the first analog switch S1 is turned on, and the audio encoding module 42 sends an audio signal to the first audio output module through the first analog switch S1; when a PTT headset is connected to an electronic device, the second analog switch S2 is turned on, the sampling module 31 detects the impedance of the PTT module in the second circuit based on the second analog switch S2, and the processing module 41 determines the PTT working mode of the second headset based on the first detection result of the impedance, so that the processing module 41 performs a task matching the PTT working mode. In this way, the control circuit 30 designed in the present application can simultaneously meet the communication requirements between the electronic device and the traditional headset 10 and the PTT headset 20.

[0079] Next, through Figure 4 The embodiment specifically describes how the sampling module 31 detects the impedance of the PTT module.

[0080] like Figure 4 As shown, the processing module 41 is connected to the sampling module 31, the second analog switch S2 is specifically connected to a detection end of the sampling module 31, the detection end of the sampling module 31 is also connected to the first end of the voltage divider module R3, and the second end of the voltage divider module R3 is connected to the power supply.

[0081] In some embodiments, the voltage dividing module R3 may be a resistor.

[0082] The sampling module 31 is used to collect the voltage signal of the first end of the voltage dividing module R3 to obtain a first detection result, wherein the first detection result indicates the voltage magnitude of the first end of the voltage dividing module R3.

[0083] Specifically, after the second analog switch S2 is turned on, the sampling module 31 collects the voltage signal of the first end of the voltage dividing module R3 in real time, and sends the obtained first detection result to the processing module 41 in real time.

[0084] The voltage at the first end of the voltage divider module R3 is related to the impedance of the PTT module; specifically, the relationship between the voltage at the first end of the voltage divider module R3 and the impedance of the PTT module is as shown in Formula 1:

[0085]

[0086] Among them, V R3 is the voltage at the first end of the voltage divider module, V is the power supply voltage, R R is the impedance of the PTT module, and R3 is the resistance value of the voltage divider module R3. When the PTT button is not pressed, R R =R r1 Among them, R r1 is the resistance value of the first resistor R1.

[0087] When the PTT button is pressed, R R =(R r1 *R r2 ) / (R r1 +R r2 ). Among them, R r2 is the resistance value of the first resistor R2.

[0088] It can be seen that the voltage at the first end of the voltage divider module R3 is positively correlated with the impedance of the PTT module. When the impedance of the PTT module increases, the voltage value at the first end of the voltage divider module R3 increases; when the impedance of the PTT module decreases, the voltage value at the first end of the voltage divider module R3 decreases.

[0089] If the first detection result changes from large to small, it means that the impedance of the PTT module changes from large to small, which means that the PTT button is pressed, and the PTT working mode of the second headset is the PTT sending mode.

[0090] If the first detection result changes from small to large, it means that the impedance of the PTT module changes from small to large, which means that the PTT button is released, and the PTT working mode of the second headset is the PTT receiving mode.

[0091] In some embodiments, the sampling module 31 may be an analog-to-digital converter (ADC); the sampling module 31 collects the voltage signal at the first end of the voltage divider module R3, and converts the collected voltage signal into a digital signal, which is the first detection result. The processing module may calculate the impedance of the PTT module based on the first detection result.

[0092] In some embodiments, the sampling module 31 collects the voltage signal of the first end of the voltage dividing module R3 in real time, and transmits the first detection result to the processing module 41 in real time through the I2C protocol.

[0093] Specifically, the sampling module 31 further includes an I2C interface, and the I2C interface is connected to the processing module 41 via an I2C bus.

[0094] The I2C bus includes a data signal (Serial Data, SDA) line and a serial clock line (Serial Clock Line, SCL); wherein the processing module sends a clock signal to the sampling module 31 through SDA, and the sampling module sends a first detection result to the processing module based on the clock signal and SCL.

[0095] like Figure 4 As shown, the sampling module 31 further includes a power supply terminal, which is connected to a power source to receive an input voltage; the sampling module 31 further includes a ground terminal, which is grounded.

[0096] In this embodiment, a voltage divider module R3 is provided between the power supply and the PTT module, and the first end of the voltage divider module R3 is connected to the detection end of the sampling module 31. The change of the voltage at the first end of the voltage divider module R3 can indicate the change of the impedance of the PTT module. In this way, the processing module 41 can determine the PTT working mode of the second earphone based on the change of the voltage at the first end of the voltage divider module R3, without calculating the impedance of the PTT module. This makes it easier for the electronic device to detect the PTT working mode of the second earphone.

[0097] In other embodiments, after the electronic device obtains the voltage at the first end of the voltage divider module R3 based on the first detection result, it can also obtain the impedance value of the PTT module based on the first detection result and the resistance value of the voltage divider module R3; and determine the PTT working mode of the second earphone based on the impedance value of the PTT module.

[0098] Among them, when the impedance value of the PTT module is the same as the resistance value of the first resistor R1 and the second resistor R2 in parallel, it means that the PTT button is pressed, and the processing module determines that the second headset is in the PTT sending mode; when the impedance value of the PTT module is the same as the resistance value of the first resistor R1, it means that the PTT button is released, and the processing module determines that the second headset is in the PTT receiving mode.

[0099] The electronic device determines the PTT working mode of the second earphone based on the impedance value of the PTT module, which can more accurately judge the working mode of the PTT and improve the detection accuracy.

[0100] The electronic device can also determine the type of the PTT headset based on the impedance value of the PTT module; wherein different types of PTT headsets have different impedances, and the control circuit of the present application is applicable to multiple types of PTT headsets.

[0101] In some embodiments, the processing module 41 controls the first analog switch S1 to be turned on or off, and the processing module 41 also controls the second analog switch S2 to be turned on or off. Figure 4 As shown, the first analog switch S1 and the second analog switch S2 are also connected to the processing module 41 respectively.

[0102] The first analog switch S1 is used to receive a first control signal sent by the processing module 41 , and the second analog switch S2 is used to receive a second control signal sent by the processing module 41 .

[0103] When the first audio output module is connected to the first headphone port 43, the first control signal sent by the processing module 41 is used to control the first analog switch S1 to be in an on state; the second control signal sent by the processing module 41 is used to control the second analog switch S2 to be in an off state.

[0104] In the present application, the processing module 41 may be a baseband chip in an electronic device.

[0105] Specifically, when the first audio output module is connected to the first earphone port 43 , both the first control signal and the second control signal are in a first logic state.

[0106] The first logic state is different from the second logic state, wherein the first logic state is a high level state and the second logic state is a low level state.

[0107] When the PTT module is connected to the first earphone port 43, the first control signal sent by the processing module 41 is used to control the first analog switch S1 to be in an off state, and the second control signal sent by the processing module 41 is used to control the second analog switch S2 to be in an on state.

[0108] Specifically, when the PTT module is connected to the first earphone port 43, the first control signal and the second control signal are in the second logic state.

[0109] In some embodiments, Figure 5 As shown, a fourth resistor R4 is further provided between the processing module 41 and the second input terminal IN2 of the first analog switch S1 , and the fourth resistor R4 plays a role of current limiting.

[0110] Next, through Figure 5 The embodiment describes the structures of the first analog switch S1 and the second analog switch S2 and the working principles of the first analog switch S1 and the second analog switch S2.

[0111] like Figure 5 As shown, the first analog switch S1 includes a first common terminal COM1, a first normally-open terminal NO1, a first normally-closed terminal NC1 and a first input terminal IN1.

[0112] The first common terminal COM1 is connected to the audio encoding module 42, the first input terminal IN1 of the first analog switch S1 is connected to the first output terminal of the processing module 41 to receive the first control signal, the first normally open terminal NO1 is connected to the first earphone port 43, and the first normally closed terminal NC1 is suspended.

[0113] The first analog switch S1 further includes a power supply terminal and a ground terminal. The power supply terminal is used to receive an input voltage, and the ground terminal is used for grounding.

[0114] The second analog switch S2 includes a second common terminal COM2, a second normally-open terminal NO2, a second normally-closed terminal NC2 and a second input terminal IN2.

[0115] The second common terminal COM2 is connected to the detection terminal of the sampling module 31, and the second normally closed terminal NC2 is connected to the first earphone port 43. The second normally open terminal NO2 is suspended, and the second input terminal IN2 is connected to the second output terminal of the processing module 41 to receive the second control signal.

[0116] The second analog switch S2 further includes a power supply terminal and a ground terminal. The power supply terminal is used to receive an input voltage, and the ground terminal is used for grounding.

[0117] When the first audio output module is connected to the first headphone port 43, the first control signal sent by the processing module 41 to the first input terminal IN1 of the first analog switch S1 through the first output terminal is in the first logic state, and the second control signal sent by the processing module 41 to the second input terminal IN2 of the second analog switch S2 through the second output terminal is in the first logic state.

[0118] When the first control signal and the second control signal are both in the first logic state, the transmission path between the first common terminal COM1 and the first normally open terminal NO1 is connected, and the transmission path between the first common terminal COM1 and the first normally closed terminal NC1 is disconnected, so that the audio signal sent by the audio encoding module 42 is transmitted to the first audio output module of the first earphone through the first analog switch S1.

[0119] The transmission path between the second common terminal COM2 and the second normally open terminal NO2 is connected, and the transmission path between the second common terminal COM2 and the second normally closed terminal NC2 is disconnected, so that the sampling module 31 cannot transmit signals with the first audio output module through the second analog switch S2. In this way, the sampling module 31 is prevented from interfering with the communication between the electronic device and the first earphone.

[0120] When the PTT module is connected to the first earphone port 43, the first control signal sent by the processing module 41 to the first input terminal IN1 of the first analog switch S1 through the first output terminal is in the second logic state, and the second control signal sent by the processing module 41 to the second input terminal IN2 of the second analog switch S2 through the second output terminal is in the second logic state.

[0121] When the first control signal and the second control signal are both in the second logic state, the transmission path between the second common terminal COM2 and the second normally open terminal NO2 is disconnected, and the transmission path between the second common terminal COM2 and the second normally closed terminal NC2 is connected, so that the sampling module 31 can detect the impedance of the PTT module through the second analog switch S2, and send the impedance of the PTT module to the processing module 41. The processing module determines the PTT working mode of the second earphone based on the impedance of the PTT module.

[0122] The transmission path between the first common terminal COM1 and the first normally open terminal NO1 is disconnected, and the transmission path between the first common terminal COM1 and the first normally closed terminal NC1 is connected, so that the audio encoding module 42 cannot transmit signals with the PTT module through the first analog switch S1. In this way, the audio encoding module 42 is prevented from interfering with the communication between the electronic device and the second headset.

[0123] The present application provides an electronic device, the structure diagram of the electronic device 40 is as follows Figure 5 As shown, it includes a control circuit 30, a first earphone port 43, a processing module 41 and an audio encoding module 42.

[0124] like Figure 5 As shown, the audio encoding module 42 is connected to the first earphone port 43 via the first analog switch S1 of the control circuit 30 .

[0125] The sampling module 31 is electrically connected to the first earphone port 43 through the second analog switch S2 of the control circuit 30; the first earphone port 43 is used to connect to the first audio output module of the first earphone, or the first earphone port 43 is used to connect to the PTT module of the second earphone; wherein the second earphone supports the PTT function.

[0126] When the first audio output module is connected to the first earphone port 43 , the first analog switch S1 is in a conducting state, and the audio encoding module 42 sends an audio signal to the first audio output module through the first analog switch S1 .

[0127] When the PTT module is connected to the first earphone port 43, the second analog switch S2 is in the on state, the sampling module 31 detects the impedance of the PTT module through the second analog switch S2, and sends the first detection result to the processing module 41 connected to the sampling module 31, so that the processing module 41 determines the PTT working mode of the second earphone based on the first detection result.

[0128] In the present application, when the first earphone is connected to the electronic device 40, the first analog switch S1 is turned on, and the audio encoding module 42 sends an audio signal to the first audio output module through the first analog switch S1; when the second earphone is connected to the electronic device 40, the second analog switch S2 is turned on, the sampling module 31 detects the impedance of the PTT module in the second earphone based on the second analog switch S2, and the processing module 41 determines the PTT working mode of the second earphone based on the first detection result, so that the processing module 41 can perform tasks matching the PTT working mode; in this way, the control circuit 30 designed in the present application can simultaneously meet the communication requirements between the electronic device 40 and the first earphone and the second earphone.

[0129] In some embodiments, the processing module 41 determines whether the type of the connected target earphone is the first earphone or the second earphone based on the audio encoding module 42, and then controls the logic states of the first control signal and the second control signal based on the type of the target earphone.

[0130] Specifically, Figure 5 As shown, the audio encoding module 42 is further used to detect the impedance of the target earphone connected to the electronic device 40 to obtain a second detection result, and send the second detection result to the processing module 41.

[0131] The processing module 41 controls the logic states of the first control signal and the second control signal based on the second detection result.

[0132] Specifically, the processing module 41 determines whether the target earphone is the first earphone or the second earphone based on the second detection result; when the target earphone is the first earphone, the processing module 41 controls both the first control signal and the second control signal to be in a first logic state.

[0133] When the target earphone is the second earphone, the processing module 41 controls both the first control signal and the second control signal to be in a second logic state.

[0134] It can be understood that the impedance of a PTT headset is greater than the impedance of a traditional headset, and therefore, the type of the target headset can be determined based on the impedance of the inserted target headset.

[0135] Specifically, when the second detection result is less than a preset threshold, the processing module 41 determines that the target earphone is the first earphone, and the processing module 41 controls both the first control signal and the second control signal to be in a first logic state.

[0136] In some embodiments, the preset threshold may be 1000 ohms.

[0137] When the second detection result is greater than or equal to the preset threshold, the processing module 41 determines that the target earphone is the second earphone, and the processing module 41 controls both the first control signal and the second control signal to be in the second logic state.

[0138] In the present application, the audio encoding module 42 has the function of detecting the impedance of the connected target earphone. In some embodiments, when the target earphone is connected to the electronic device 40, the audio encoding module 42 can determine the impedance of the target earphone by detecting the voltage difference between the first earphone port 43 and the second earphone port 44 of the electronic device 40. The voltage difference between the first earphone port 43 and the second earphone port 44 is proportional to the impedance of the target earphone.

[0139] When the target earphone is the first earphone, the audio encoding module 42 is used to detect the voltage difference between the first right channel segment R1 and the first signal loop segment G1 of the first earphone. When the target earphone is the second earphone, the audio encoding module 42 is used to detect the voltage difference between the first signal loop segment G2 and the PTT segment P of the second earphone.

[0140] It can be seen that when the audio encoding module 42 detects the impedance of the target earphone, the first analog switch S1 needs to be in the on state.

[0141] Next, the functions of each module of the audio encoding module 42 when detecting the impedance of the target earphone are exemplarily described.

[0142] The audio encoding module 42 can detect whether a target headset is connected to the electronic device 40. In some embodiments, the audio encoding module 42 detects whether a target headset is connected based on a circuit module between the second headset port 44 and the third headset port 45, and the circuit module does not include the first analog switch S1.

[0143] When the audio encoding module 42 detects that the target earphone is connected to the electronic device 40, the impedance of the target earphone is detected through the first analog switch S1. Before the target earphone is connected to the electronic device, the audio encoding module 42 instructs the processing module 41 to control the first control signal to be in the first logic state and also controls the second control signal to be in the first logic state based on the detection that no earphone is connected to the electronic device.

[0144] It should be noted that the impedance of the target earphone is detected in the present application based on the transmission path between the audio encoding module 42, the first analog switch S1 and the first earphone port 43. When the above transmission path is in the on state, the audio encoding module 42 can detect the impedance of the target earphone.

[0145] In the present application, when no earphone is connected to the electronic device, the processing module 41 is in a default state, and the default state is that the first control signal and the second control signal sent by the processing module 41 are both in the first logic state, that is, the first analog switch S1 is in the on state, and the second analog switch S2 is in the off state.

[0146] In this way, when the target earphone is connected to the electronic device, the audio encoding module 42 can detect the impedance of the target earphone by turning on the first analog switch S1, obtain a second detection result, and send the second detection result to the processing module 41. The processing module 41 determines whether to change the logic state of the first control signal and the second control signal based on the second detection result.

[0147] Specifically, if the second detection result is less than the preset threshold, the target earphone is the first earphone, and the processing module 41 controls the first control signal and the second control signal to maintain the current first logic state unchanged.

[0148] If the second detection result is greater than or equal to the preset threshold, the target earphone is the second earphone, and the processing module 41 controls the first control signal and the second control signal to change from the first logic state to the second logic state.

[0149] When the audio encoding module 42 detects that any earphone connected to the electronic device is unplugged from the electronic device, the audio encoding module 42 instructs the processing module to be in a default state.

[0150] Specifically, if the current first control signal and the second control signal are in the first logic state, the processing module 41 keeps the logic states of the first control signal and the second control signal unchanged.

[0151] If the current first control signal and the second control signal are in the second logic state, the processing module 41 controls the first control signal and the second control signal to change from the second logic state to the first logic state.

[0152] Figure 6 The schematic diagram of the structure of the electronic device 40 provided in this application, as described above, refers to Figure 6 In the present application, the electronic device 40 includes a headphone interface 50 , and the headphone interface 50 includes the first headphone port 43 , the second headphone port 44 , the third headphone port 45 and the fourth headphone port 46 .

[0153] Among them, when the target earphone is connected to the electronic device 40, the second earphone port 44 is connected to the second audio output module of the target earphone; the third earphone port 45 is connected to the transmission loop module of the target earphone, and the fourth earphone port 46 is connected to the audio input module of the target earphone; the electronic device 40 transmits signals with the first audio output module of the target earphone through the second earphone port 44; the electronic device 40 provides a signal transmission loop for the second audio output module and audio input module of the target earphone through the third earphone port 45 and the transmission loop module of the target earphone, and provides a signal transmission loop for the first audio output module or PTT module of the target earphone; the electronic device 40 transmits signals with the audio input module of the target earphone through the fourth earphone port 46.

[0154] In the embodiment of the present application, when the target earphone is connected to the electronic device 40, if the target earphone is the first earphone, the first audio output module of the first earphone can transmit signals with the audio encoding module 42 in the electronic device 40 through the control circuit 30 in the present application; if the target earphone is the second earphone, the PTT module of the second earphone can transmit signals with the processing module 41 in the electronic device 40 through the control circuit 30.

[0155] The control circuit 30 of the embodiment of the present application is designed for the first audio input module of the first earphone or the PTT module of the second earphone. It should be noted that the electronic device 40 also includes a circuit module designed for the second audio output module and audio input module of the target earphone and used to process the signals of the second audio output module and audio input module of the target earphone. The circuit module can reuse the existing technology and will not be elaborated here.

[0156] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A control circuit applied to an earphone port, characterized in that: include: A first analog switch, a second analog switch and a sampling module; Wherein, the first analog switch is connected to the audio encoding module and the first headphone port respectively; The sampling module is connected to the first earphone port through the second analog switch; the first earphone port is used to connect to the first audio output module of the first earphone, or the first earphone port is used to connect to the push-to-talk (PTT) module of the second earphone; the second earphone implements the PTT function based on the PTT module; When the first audio output module is connected to the first headphone port, the first analog switch is in an on state, and the audio encoding module sends an audio signal to the first audio output module through the first analog switch; When the PTT module is connected to the first earphone port, the second analog switch is in an on state, the sampling module detects the impedance of the PTT module through the second analog switch, and sends a first detection result to a processing module connected to the sampling module, so that the processing module determines the PTT working mode of the second earphone based on the first detection result and works in the PTT working mode.

2. The control circuit according to claim 1, characterized in that: The second analog switch is specifically connected to the detection end of the sampling module, the control circuit further comprises a voltage divider module, the detection end of the sampling module is further connected to the first end of the voltage divider module, and the second end of the voltage divider module is connected to a power supply; The sampling module is used to collect the voltage signal of the first end of the voltage dividing module to obtain the first detection result; the first detection result is used to characterize the impedance of the PTT module; Among them, when the first detection result changes from large to small, the PTT working mode of the second headset is the PTT sending mode; when the first detection result changes from small to large, the working mode of the second headset is the PTT receiving mode.

3. The control circuit according to claim 1, characterized in that: The first analog switch and the second analog switch are also connected to the processing module respectively, and the processing module is used to control the first analog switch to be turned on or off, and to control the second analog switch to be turned on or off; The first analog switch is used to receive a first control signal sent by the processing module, and the second analog switch is used to receive a second control signal sent by the processing module; Wherein, when the first audio output module is connected to the first headphone port, the first control signal is used to control the first analog switch to be in an on state, and the second control signal is used to control the second analog switch to be in an off state; When the PTT module is connected to the first earphone port, the first control signal is used to control the first analog switch to be in an off state, and the second control signal is used to control the second analog switch to be in an on state.

4. The control circuit according to claim 3, characterized in that: When the first audio output module is connected to the first headphone port, the first control signal and the second control signal are both in a first logic state; When the PTT module is connected to the first earphone port, both the first control signal and the second control signal are in a second logic state, and the first logic state is different from the second logic state.

5. The control circuit according to claim 3, characterized in that: The first analog switch includes a first common terminal, a first normally open terminal, a first normally closed terminal and a first input terminal; Wherein, the first common terminal is connected to the audio encoding module; the first input terminal of the first analog switch is connected to the first output terminal of the processing module; the first normally open terminal is connected to the first headphone port; and the first normally closed terminal is left floating; When the first control signal is in the first logic state, the transmission path between the first common terminal and the first normally open terminal is connected, and the transmission path between the first common terminal and the first normally closed terminal is disconnected, so that the audio signal sent by the audio encoding module is transmitted to the first audio output module through the first analog switch; The second analog switch includes a second common terminal, a second normally open terminal, a second normally closed terminal, and a second input terminal; Wherein, the second common end is connected to the detection end of the sampling module, the second normally open end is suspended, and the second normally closed end is connected to the first headphone port; When the second control signal is in the second logic state, the transmission path between the second common terminal and the second normally open terminal is disconnected, and the transmission path between the second common terminal and the second normally closed terminal is connected, so that the sampling module can detect the impedance of the PTT module through the second analog switch.

6. An electronic device, characterized in that: comprising an audio encoding module, a first earphone port, a processing module and a control circuit according to any one of claims 1 to 5; Wherein, the audio encoding module is electrically connected to the first headphone port through the first analog switch of the control circuit; The sampling module of the control circuit is electrically connected to the first earphone port through the second analog switch of the control circuit; the first earphone port is used to connect to the first audio output module of the first earphone, or the first earphone port is used to connect to the push-to-talk (PTT) module of the second earphone; wherein the second earphone supports the PTT function; When the first audio output module is connected to the first headphone port, the first analog switch is in an on state, and the audio encoding module sends an audio signal to the first audio output module through the first analog switch; When the PTT module is connected to the first earphone port, the second analog switch is in an on state, the sampling module detects the impedance of the PTT module through the second analog switch, and sends a first detection result to a processing module connected to the sampling module, so that the processing module determines the PTT working mode of the second earphone based on the first detection result and works in the PTT working mode.

7. The electronic device according to claim 6, characterized in that: The audio encoding module is further used to detect the impedance of the target earphone connected to the electronic device, obtain a second detection result, and send the second detection result to the processing module; wherein the target earphone is the first earphone currently connected to the electronic device or the second earphone currently connected to the electronic device; The processing module is used to control the logic states of the first control signal and the second control signal based on the second detection result.

8. The electronic device according to claim 7, characterized in that: The processing module is specifically configured to control the first control signal and the second control signal to be in the first logic state when the second detection result is less than a preset threshold; When the second detection result is greater than or equal to the preset threshold, the first control signal and the second control signal are both controlled to be in the second logic state.

9. The electronic device according to claim 7, characterized in that: The audio encoding module is further used to detect the impedance of the target earphone through the first analog switch when it is detected that the target earphone is connected to the electronic device; wherein, before the target earphone is connected to the electronic device, the audio encoding module instructs the processing module to control the first control signal to be in the first logic state based on detecting that no earphone is connected to the electronic device; when the first control signal is in the first logic state, the first analog switch is in the on state.

10. The electronic device according to claim 9, characterized in that: Also includes a second headphone port, a third headphone port and a fourth headphone port; wherein, When the target earphone is connected to the electronic device, the second earphone port is connected to the second audio output module of the target earphone; the third earphone port is connected to the transmission circuit module of the target earphone, and the fourth earphone port is connected to the audio input module of the target earphone; The electronic device transmits signals to the second audio output module of the target headset via the second headset port; The electronic device provides a signal transmission circuit for the second audio output module and the audio input module of the target headset through the third headset port and the transmission circuit module of the target headset, and provides a signal transmission circuit for the first audio output module or the PTT module of the target headset; The electronic device transmits signals with the audio input module of the target earphone through the fourth earphone port.