WO2022078385A1 - 控制电路、方法及电子设备 - Google Patents

控制电路、方法及电子设备 Download PDF

Info

Publication number
WO2022078385A1
WO2022078385A1 PCT/CN2021/123530 CN2021123530W WO2022078385A1 WO 2022078385 A1 WO2022078385 A1 WO 2022078385A1 CN 2021123530 W CN2021123530 W CN 2021123530W WO 2022078385 A1 WO2022078385 A1 WO 2022078385A1
Authority
WO
WIPO (PCT)
Prior art keywords
switch
port
circuit
module
interface
Prior art date
Application number
PCT/CN2021/123530
Other languages
English (en)
French (fr)
Inventor
李辉
游利文
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022078385A1 publication Critical patent/WO2022078385A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/3833Hand-held transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/09Applications of special connectors, e.g. USB, XLR, in loudspeakers, microphones or headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's

Definitions

  • the present application belongs to the field of intelligent terminals, and in particular relates to a control circuit, a method and an electronic device.
  • Type-C interfaces that support positive and negative insertion are becoming more and more popular, and 3.5mm headphones are gradually withdrawing from the market.
  • Type-C headphones emerge as the times require.
  • Type-C headphones and USB data cables share a Type-C interface, and switch between USB mode and headphone mode through the Type-C switch.
  • the terminal device When the terminal device is in the GSM (Global System for Mobile Communications, Global System for Mobile Communications) standard, using the headset to listen to songs or make calls, the Type-C interface will be interfered by the antenna coupling to generate the current sound of the headset, which seriously affects the user's normal headset listening. songs and calls.
  • the way to solve the current and sound interference of the 3.5mm headphone socket is to add a pull-down 120pF or 33pF capacitor to the L/R signal line to filter out the coupled current and sound interference of different judgments of the GSM standard.
  • DN/DP is a high-speed signal line, especially USB 3.0, whose rate can reach 5.0Gbps.
  • the embodiments of the present application provide a control circuit, a method, and an electronic device, which can solve the problem that current-acoustic interference elimination and high-speed signal transmission cannot be achieved when a USB data cable and a Type-C earphone share a Type-C interface.
  • a control circuit including: an interface, a detection circuit, a switch circuit, a USB circuit and an earphone circuit,
  • the interface is respectively connected with the detection circuit and the switch circuit
  • the interface is provided with a first port and a second port, and both the first port and the second port are connected to the switch circuit;
  • the detection circuit is used to detect the type of the external device connected to the interface, and the type of the external device includes a USB data cable and an earphone cable;
  • the switch circuit includes a switch module and a filter module, the switch module is provided with a third port, a fourth port, a fifth port and a sixth port, and the third port and the fourth port are both connected to the USB circuit. connection, the fifth port and the sixth port are both connected with the earphone circuit;
  • the detection circuit detects that the external device connected to the interface is a USB data line
  • the USB circuit is connected to the interface through the switch module, and the filter module is in an open-circuit state
  • the detection circuit detects that the external device connected to the interface is an earphone cable
  • the earphone circuit is connected to the interface through the switch module, and the filter module is in a conductive state.
  • an electronic device comprising: the control circuit according to the first aspect.
  • a third aspect provides a control method, which is applied to the control circuit described in the first aspect, and the method includes:
  • the types of the external device include a USB data cable and an earphone cable;
  • the external device is a USB data line
  • controlling the USB data line to be connected to the USB circuit, and the filter module is in an open state
  • the earphone cable is controlled to be connected to the earphone circuit, and the filter module is in an on state.
  • an electronic device in a fourth aspect, includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor When executed, the steps of the method as described in the third aspect are implemented.
  • a readable storage medium is provided, and a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the third aspect are implemented.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the third aspect the method described.
  • the control circuit includes an interface, a detection circuit, a switch circuit, a USB circuit and an earphone circuit, the interfaces are respectively connected to the detection circuit and the switch circuit, the interface is provided with a first port and a second port, and the first port and the second port are both connected with a switch circuit, wherein the switch circuit includes a switch module and a filter module, and the detection circuit detects whether the external device connected to the interface is a USB data cable or a headphone cable, and the detection circuit detects that the external device connected to the interface is a USB In the case of a data cable, the USB circuit is connected to the interface through the switch module, and the filter module is in an open-circuit state; when the detection circuit detects that the external device connected to the interface is an earphone cable, the earphone circuit is connected to the interface through the switch module.
  • a filter module is added to the channel of the earphone circuit to filter out interference, so that no current sound occurs when the earphone is used. Since only the filter module is added to the earphone channel, no other channels are added to the USB channel. The device will not affect the integrity of the USB signal, so that when the USB data cable shares the same interface with the headset, it not only ensures the quality of the USB communication, but also ensures that the headset is not disturbed by the current sound when listening to songs and talking.
  • FIG. 1 is a structural block diagram of a control circuit provided by an embodiment of the present application.
  • FIG. 2 is a schematic circuit diagram of a control circuit provided by an embodiment of the present application.
  • FIG. 3 is a schematic circuit diagram of another control circuit provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • the control circuit may include: an interface 10 , a detection circuit 20 , a switch circuit 30 , a USB circuit 40 and an earphone circuit 50 , wherein the switch circuit 30 includes a switch module 301 and a filter module 302 .
  • the interface 10 is respectively connected with the detection circuit 20 and the switch circuit 30; the interface is provided with a first port and a second port, and the first port and the second port are both connected with the switch circuit; the detection circuit 20 is used for detecting the connection with the interface 10
  • the type of external device includes USB data cable and earphone cable
  • the switch circuit 30 includes a switch module 301 and a filter module 302, and the switch module 301 is provided with a third port, a fourth port, a fifth port and a sixth port , the third port and the fourth port are both connected to the USB circuit 40, and the fifth port and the sixth port are both connected to the earphone circuit 50, wherein, when the detection circuit 20 detects that the external device connected to the interface 10 is a USB data cable Under the condition that the USB circuit 40 is connected to the interface 10 through the switch module 301, and the filter module 302 is in an open circuit state; when the detection circuit 20 detects that the external device connected to the interface 10 is a headphone cable, the headphone
  • a filter module 302 is added to the circuit, and when the interface 10 is connected to a USB data line, the filter module 302 is disconnected so that it does not affect the transmission of data; when the interface 10 is connected to a headphone cable, the filter module 302 leads If the signal is passed through, the filtering module 302 performs filtering to filter out the interference signal, so that the user will not be interfered by the interference signal when using the earphone, thereby improving the user experience.
  • the control circuit includes an interface 10 , a detection circuit 20 , a switch circuit 30 , a USB circuit 40 , and an earphone circuit 50 , wherein the switch circuit 30 includes a switch module 301 and a filter module 302 , and the detection circuit 20 detects that the interface 10 is connected to
  • the external device is a USB data cable or a headphone cable.
  • the USB circuit 40 When the detection circuit 20 detects that the external device connected to the interface 10 is a USB data cable, the USB circuit 40 is connected to the interface 10 through the switch module 301, and the filter module 302 is in Disconnected state: when the detection circuit 20 detects that the external device connected to the interface 10 is an earphone cable, the earphone circuit 50 is connected to the interface 10 through the switch module 301, and the filter module 302 is in an on state.
  • the filter module 302 is added to the channel of the earphone circuit 50 to filter out the interference, so that no current sound occurs when the earphone is used.
  • the filter module 302 is only added to the earphone channel, in the USB channel No other devices are added, and the integrity of the USB signal will not be affected, so that when the USB data cable shares the same interface with the headset, it not only ensures the quality of the USB communication, but also ensures that the headset is not disturbed by the current sound when listening to songs and talking.
  • the interface 10 may be a Type-C interface or a lightning interface (lightning interface).
  • the USB data cable may be a Type-C data cable or a lightning data cable
  • the headphone cable may be It is a Type-C headphone cable, or a lightning headphone cable.
  • the switch module 301 includes a first switch sub-module.
  • the first switch sub-module includes a first moving end, a second moving end, a first fixed contact, a second fixed contact, a third fixed contact and a fourth fixed contact, the first moving end and the first fixed contact
  • the port is connected, the second movable end is connected with the second port, the first fixed contact is connected with the third port, the second fixed contact is connected with the fourth port, the third fixed contact is connected with the fifth port, and the fourth fixed contact is connected with the fifth port. point to connect with the sixth port.
  • the external device connected to the interface 10 is a USB data cable
  • the first movable end is connected to the first fixed contact
  • the second movable end is connected to the second fixed contact
  • the first movable end is connected to the third fixed contact
  • the second movable end is connected to the fourth fixed contact.
  • the first switch sub-module may be a double-pole double-throw switch.
  • the double-pole double-throw switch is connected to the USB circuit 40.
  • the double-pole double-throw switch is connected to the USB circuit 40.
  • the double-pole double-throw switch is connected to the earphone circuit 50 .
  • the interface 10 by controlling whether the interface 10 is connected to the USB circuit 40 or the headphone circuit 50 through a switch, it can be quickly switched to the corresponding circuit, so that when an external device is connected, the response of the switch circuit 30 is faster, and the user Better experience.
  • the double-pole double-throw switch can accurately control the opening or closing of the left and right channels of the earphone, and accurately control the positive and negative data DN/DP of the USB circuit 40 to open or close at the same time.
  • the filtering module 302 may include a second switch sub-module and a capacitor unit.
  • the second switch sub-module includes a third moving end, a fourth moving end, a fifth fixed contact, and a sixth fixed contact
  • the capacitor unit includes a first capacitor and a second capacitor.
  • the third movable end is connected to the first port and the first movable end respectively
  • the fourth movable end is connected to the second port and the second movable end respectively
  • the fifth fixed contact is connected to the first end of the first capacitor
  • the sixth fixed contact is connected to the first end of the second capacitor, and both the second end of the first capacitor and the second end of the second capacitor are grounded.
  • the third movable end is disconnected from the fifth fixed contact, and the fourth movable end is disconnected from the sixth fixed contact; the external device connected to the interface 10
  • the third movable end is connected to the fifth fixed contact, and the fourth movable end is connected to the sixth fixed contact.
  • the filter module 302 is arranged between the switch module 301 and the interface 10, and then whether the filter module 302 is turned on is determined according to different external devices connected to the interface 10.
  • the filter module 302 can filter out the interference, so that no current sound occurs when the earphone is used, and the filter module 302 is disconnected when the USB data cable is used, so that the integrity of the USB signal will not be affected, so that the USB data cable is used.
  • sharing an interface with the headset it not only ensures the quality of USB communication, but also ensures that the headset is not disturbed by the current sound when listening to songs and talking.
  • the second switch sub-module may be a double-pole single-throw switch.
  • the double-pole single-throw switch When the external device is a USB data cable, the double-pole single-throw switch is in a disconnected state.
  • the external device When the external device is a headphone cable, the double-pole single-throw switch is in a disconnected state.
  • the pole single throw switch is on.
  • the response speed of the switch can be made faster and the filtering effect is better.
  • the second switch sub-module may be a normally open switch, that is, when no external device is connected, the second switch sub-module is in a disconnected state, which does not affect the use of the electronic device.
  • the capacitor unit may further include a third capacitor and a fourth capacitor
  • the second switch sub-module may further include a seventh fixed contact and an eighth fixed contact.
  • the first end of the third capacitor is connected to the seventh fixed contact
  • the first end of the fourth capacitor is connected to the eighth fixed contact
  • the second end of the third capacitor and the second end of the fourth capacitor are both connected ground.
  • a pair of capacitors may be set in the filtering module 302 to filter out the noise of the left and right channels of the earphone, and two or more pairs of capacitors may be used to filter out two or more types of noise. Noise, that is, different types of noise interference can be filtered out by setting capacitors with different capacitance values.
  • the filter module 302 can be switched in different working states, that is, it can be switched to the corresponding capacitor according to the frequency band where the electronic device is located, so as to eliminate the current in the frequency band sound interference.
  • the capacitor of the first type in the first state, can be turned on to eliminate the current acoustic interference of the first type, and the capacitor of the second type can be turned on in the second state to eliminate the current acoustic interference of the second type.
  • the capacitor of the first type can be turned on to eliminate the current acoustic interference of the first type
  • the capacitor of the second type can be turned on in the second state to eliminate the current acoustic interference of the second type.
  • the interface 10 when the earphone cable is connected to the Type-C interface, there may be interference in the GSM850/900 frequency band, or there may be There is interference in the GSM1800/1900 frequency band, that is, when the electronic device is in different frequency bands, the headset will have corresponding coupling interference.
  • the interference of the above two frequency bands is used as an example.
  • the Type-C interface is respectively connected to the detection circuit 20 , the second switch sub-module of the filter module 302 , and the switch module 301 .
  • the detection circuit 20 is a PMIC (Power Management IC, power management integrated module), which is connected to the configuration pins CC1 and CC2 of the Type-C interface for detecting the states of CC1 and CC2;
  • the second switch sub-module is a capacitive switch R/L , the capacitor switch is a double-pole double-throw switch, and the capacitor unit is four grounded capacitors.
  • the capacitor switch When the external device connected to the Type-C interface is a USB data cable, the capacitor switch is in state 1, that is, a floating state, and the switch module 301 The first moving end DN_L is connected to the first fixed contact DN, and the second moving end DP_R is connected to the second fixed contact DP; when the external device connected to the Type-C interface is an earphone cable, and the electronic device is in the GSM850/900 frequency band
  • the capacitor switch is in state 2 that is, the R of the capacitor switch is connected to the capacitor C1R, and the L of the capacitor switch is connected to the capacitor C1L, which can filter out the coupling interference of GSM850/900.
  • the first moving terminal DN_L of the switch module 301 is connected to the third fixed contact Point L is connected, the second moving end DP_R is connected to the fourth fixed contact R; when the external device connected to the Type-C interface is a headphone cable, and the electronic device is in the GSM1800/1900 frequency band, the capacitor switch is in state 3, that is, the capacitor The R of the switch is connected to the capacitor C2R, and the L of the capacitor switch is connected to the capacitor C2L, which can filter out the coupling interference of GSM1800/1900.
  • the first moving terminal DN_L of the switch module 301 is connected to the third fixed contact L, and the second moving terminal DP_R is connected to The fourth fixed contact R is connected.
  • the capacitance value of capacitor C1R and capacitor C1L are both about 120pF, which can filter GSM850/900 coupling interference
  • the capacitance value of capacitor C2R and capacitor C2L are both about 33pF, which can filter GSM1800/1900 coupling interference.
  • the choice of capacitor can be based on specific
  • the ground frequency band setting is only an example in the embodiment of the present application, and the others are not specifically limited.
  • the capacitive switch R/L is in state 1 by default, that is, in a floating state. At this time, there is no signal quality problem when the USB is inserted for data transmission.
  • the PMIC detects that CC1/CC2 is pulled low, that is, it recognizes that the headset is inserted, and the system detects whether the electronic device is in the GSM standard.
  • the capacitive switch R/L switches to state 2, which can solve the coupling interference of GSM850/900.
  • the filter module 302 on the path of the earphone circuit 50, that is, an independent external capacitor switch, and adjusting the capacitance value of the capacitor to filter out the interference of different frequency bands to the earphone, the path of the USB circuit 40 Devices such as capacitors are not set, which does not affect the transmission of USB data.
  • the filtering module 302 may include a first filtering unit and a second filtering unit
  • the switching module 301 includes a first switch, a second switch, a third switch and a fourth switch.
  • the third port is connected to the first port through the first switch
  • the fifth port is connected to the first end of the first filter unit through the second switch
  • the second end of the first filter unit is connected to the first port
  • the fourth port is connected to the first port through the second switch.
  • the port is connected to the second port through the third switch
  • the sixth port is connected to the first end of the second filter unit through the fourth switch
  • the second end of the second filter unit is connected to the second port.
  • a filter module is provided on the path where the interface 10 is connected with the earphone circuit 50, and the filter module can be used to filter when the external device is an earphone, and the interface can be directly connected to the USB circuit 40 when the external device is a USB data cable.
  • the filter module can be used to filter when the external device is an earphone, and the interface can be directly connected to the USB circuit 40 when the external device is a USB data cable.
  • the filter module 302 is integrated into the channel of the earphone circuit 50, which can save the peripheral layout and improve the anti-interference ability of the Type-C switch.
  • both the first filtering unit and the second filtering unit include an inductor and a capacitor connected in parallel.
  • inductance and capacitance are used for filtering, which can filter out the interference signal received by the electronic device that affects the earphone.
  • the switch module 301 may include two double-pole single-throw switches, one is connected to the USB circuit 40 and the other is connected to the earphone circuit 50 .
  • the left and right channels of the earphone can be accurately controlled to open or close at the same time, and the positive and negative data DN/DP of the USB circuit 40 can be accurately controlled to open or close at the same time.
  • the filter module 302 is integrated into the channel of the headphone circuit 50, and the left and right channels are connected inside the Type-C switch.
  • the LC filter module 302 is added to the channel, and the filter module 302 is integrated into the Type-C switch, which can save the peripheral layout and improve the anti-interference ability of the Type-C switch.
  • the Type-C interface is respectively connected to the detection circuit 20 , the filter module 302 , and the switch module 301 .
  • the switch module 301 includes a switch 1, a switch 2, a switch 3, and a switch 4.
  • the first end of the switch 1 and the first end of the switch 3 are both connected to the USB circuit 40, and the second end of the switch 1 and the second end of the switch 3 are both connected to the USB circuit 40.
  • the first end of switch 2 and the first end of switch 4 are both connected to the headphone circuit 50, the second end of switch 2 is connected to the first end of the first filter unit, and the second end of switch 4 It is connected to the first end of the second filtering unit, and both the second end of the first filtering unit and the second end of the second filtering unit are connected to the Type-C interface.
  • the external device connected to the Type-C interface is a USB data cable
  • switch 1 and switch 3 are turned on
  • the external device connected to the Type-C interface is a headphone cable
  • switch 2 and switch 4 are turned on, and the first filter The unit and the second filtering unit filter out the interference signal.
  • switches 1, 2, 3, and 4 in the Type-C switch are off by default; when the headphone cable is inserted (the PMIC detects that CC1/CC2 is pulled low, that is, it is identified as headphone insertion), the switch 1/3 is disconnected and switch 2/4 is closed; when the USB data cable is inserted (the PMIC detects that CC1/CC2 is floating, that is, it is recognized that the USB data cable is inserted), the switch 1/3 is closed and the switch 2/4 is disconnected.
  • the selection of the inductor L and the capacitor C in the filter module 302 is not limited, and there are various combination schemes, as long as the wave-limiting frequency points corresponding to the filter module 302 can effectively filter the coupling interference of each frequency band of GSM.
  • the detection circuit 20 may include a power management integrated module, and when the power management integrated module detects that the configuration pin of the interface 10 is at a low level, it determines the external device connected to the interface 10 It is an earphone cable; when the power management integrated module detects that the configuration pin of the interface 10 is at a high level, it is determined that the external device connected to the interface 10 is a USB data cable.
  • the type of the connected external device can be accurately detected through the power management integrated module PMIC, and then the filtering or no filtering can be quickly determined, thereby solving the current sound problem of the Type-C earphone, which not only ensures the The quality of USB communication also ensures that listening to songs and calls with the headset is not disturbed by the current sound.
  • An embodiment of the present application further provides an electronic device, including any one of the control circuits described above.
  • the functions of the above-mentioned control circuit can be realized, and the same effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the embodiment of the present application further provides a control method, and the method is applied to any one of the control circuits described above.
  • the control method may include steps shown in steps S401 to S403.
  • step S401 the type of the connected external device is detected.
  • the types of external devices may include USB data cables and earphone cables.
  • step S402 when the external device is a USB data line, the USB data line is controlled to be connected to the USB circuit, and the filter module is in an open state.
  • step S403 when the external device is an earphone cable, the earphone cable is controlled to be connected to the earphone circuit, and the filter module is in an on state.
  • the type of the connected external device is detected first. If the external device is a USB data line, the USB data line is controlled to be connected to the USB circuit to conduct data communication. At this time, the filter module is in an open state, and the filter The devices in the module will not affect the data communication. If the external device is a headphone cable, the headphone cable is controlled to be connected to the headphone circuit. At this time, the filter module is in the conduction state, which can filter out the interference when using the headphone, so that the USB When the data cable and the headset share the same interface, it not only ensures the quality of USB communication, but also ensures that the headset is not disturbed by the current sound when listening to songs and talking.
  • the filter module may be an independent external circuit, that is, a capacitive switch, and when the external device is an earphone cable, the external circuit is turned on.
  • the capacitor switch when no external device is connected, the capacitor switch is in the default state 1, and the capacitor switch is in an open state at this time.
  • the connected external device is an earphone cable
  • the filter module can be integrated into the channels of the left and right channels inside the switch, and the filter module can be integrated into the Type-C switch, which can save the peripheral layout and improve the anti-interference ability of the Type-C switch. Specifically, the above embodiments have been described in detail, and are not repeated in this embodiment.
  • an embodiment of the present application further provides a control device, and the device may include: a detection module, a first control module, and a second control module.
  • the detection module is used to detect the type of the connected external device; wherein, the type of the external device may include a USB data cable and an earphone cable.
  • the first control module is used to control the connection between the USB data line and the USB circuit when the external device is a USB data line, and the filter module is in a disconnected state.
  • the second control module is used to control the conduction between the headphone wire and the headphone circuit when the external device is the headphone wire, and the filter module is in the conduction state.
  • the detection module first detects the type of the connected external device. If the external device is a USB data cable, the first control module controls the USB data cable to conduct data communication with the USB circuit to perform data communication. The module is in an open-circuit state, and the devices in the filter module will not affect data communication. If the external device is an earphone cable, the second control module controls the earphone cable and the earphone circuit to conduct. At this time, the filter module is in the conduction state, so that the The interference when using the earphone is filtered out, so that when the USB data cable and the earphone share the same interface, the USB communication quality is guaranteed, and the earphone for listening to songs and talking is not disturbed by the current sound.
  • control device provided in the embodiment of the present application can implement each process implemented by the method embodiment, and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, a program or instruction stored in the memory 502 and executable on the processor 501,
  • an electronic device 500 including a processor 501, a memory 502, a program or instruction stored in the memory 502 and executable on the processor 501,
  • the program or instruction is executed by the processor 501, each process of the above-mentioned control method embodiment can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110 and other components .
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 110 is used to detect the type of the connected external device, and the type of the external device includes a USB data cable and an earphone cable;
  • the earphone cable is controlled to be connected to the earphone circuit, and the filter module is in an on state.
  • the type of the connected external device is detected first. If the external device is a USB data line, the USB data line is controlled to be connected to the USB circuit to conduct data communication. At this time, the filter module is in an open state, and the filter The devices in the module will not affect the data communication. If the external device is a headphone cable, the headphone cable is controlled to be connected to the headphone circuit. At this time, the filter module is in the conduction state, which can filter out the interference when using the headphone, so that the USB When the data cable shares the same interface with the earphone, it not only ensures the quality of USB communication, but also ensures that the earphone listens to songs and calls without interference.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing control method embodiment can be implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing control method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Acoustics & Sound (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Headphones And Earphones (AREA)

Abstract

本申请公开了一种控制电路、方法及电子设备,属于智能终端领域。控制电路包括接口、检测电路、开关电路、USB电路和耳机电路,开关电路包括开关模块和滤波模块,通过检测电路检测接口连接的外部设备是USB数据线还是耳机线,在检测到外部设备为USB数据线的情况下,USB电路通过开关模块与接口导通,且滤波模块处于断路状态;在检测到外部设备为耳机线的情况下,耳机电路通过开关模块与接口导通,且滤波模块处于导通状态。

Description

控制电路、方法及电子设备
交叉引用
本发明要求在2020年10月16日提交中国专利局、申请号为202011110190.4、发明名称为“控制电路、方法及电子设备”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。
技术领域
本申请属于智能终端领域,具体涉及一种控制电路、方法及电子设备。
背景技术
随着USB技术的发展,支持正反插的Type-C接口越来越普及,3.5mm耳机也逐步退出市场,Type-C耳机应运而生,Type-C耳机与USB数据线共用一个Type-C接口,并通过Type-C开关进行USB模式和耳机模式的切换。
在终端设备处于GSM(Global System for Mobile Communications,全球移动通信系统)制式时,使用耳机进行听歌或通话,Type-C接口会被天线耦合干扰产生耳机电流声,严重影响用户进行正常的耳机听歌和通话。一般3.5mm耳机插座解决电流声干扰的方式是,在L/R信号线增加下拉120pF或33pF电容,去滤掉GSM制式不同判断的耦合电流声干扰。但是由于USB对于数据传输质量要求很高,DN/DP为高速信号线,尤其USB 3.0,其速率可到5.0Gbps,在通路上增加电容、电感、磁珠等器件会严重影响USB信号完整性,使得现有的Type-C的USB与耳机二合一的设计存在消除电流声干扰与高速信号传输不可兼得的问题。
发明内容
本申请实施例提供一种控制电路、方法及电子设备,能够解决USB数据线与Type-C耳机共用一个Type-C接口时存在消除电流声干扰与高速信号传 输不可兼得的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,提供了一种控制电路,包括:接口、检测电路、开关电路、USB电路和耳机电路,
所述接口分别与所述检测电路和所述开关电路连接;
所述接口设置有第一端口和第二端口,所述第一端口和所述第二端口均与所述开关电路连接;
所述检测电路用于检测与所述接口连接的外部设备的类型,所述外部设备的类型包括USB数据线和耳机线;
所述开关电路包括开关模块和滤波模块,所述开关模块设置有第三端口、第四端口、第五端口和第六端口,所述第三端口和所述第四端口均与所述USB电路连接,所述第五端口和所述第六端口均与所述耳机电路连接;
其中,在所述检测电路检测到与所述接口连接的外部设备为USB数据线的情况下,所述USB电路通过所述开关模块与所述接口导通,且所述滤波模块处于断路状态;在所述检测电路检测到与所述接口连接的外部设备为耳机线的情况下,所述耳机电路通过所述开关模块与所述接口导通,且所述滤波模块处于导通状态。
第二方面,提供了一种电子设备,该电子设备包括:如第一方面所述的控制电路。
第三方面,提供了一种控制方法,应用于第一方面所述的控制电路,该方法包括:
检测接入的外部设备的类型,所述外部设备的类型包括USB数据线和耳机线;
在所述外部设备为USB数据线的情况下,控制所述USB数据线与USB电路导通,且滤波模块处于断路状态;
在所述外部设备为耳机线的情况下,控制所述耳机线与耳机电路导通, 且所述滤波模块处于导通状态。
第四方面,提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第三方面所述的方法的步骤。
第五方面,提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第三方面所述的方法的步骤。
第六方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第三方面所述的方法。
在本申请实施例中,控制电路包括接口、检测电路、开关电路、USB电路和耳机电路,接口分别与检测电路和开关电路连接,该接口设置有第一端口和第二端口,且第一端口和第二端口均与开关电路连接,其中开关电路包括开关模块和滤波模块,通过检测电路检测接口连接的外部设备是USB数据线还是耳机线,在检测电路检测到与接口连接的外部设备为USB数据线的情况下,USB电路通过开关模块与接口导通,且滤波模块处于断路状态;在检测电路检测到与接口连接的外部设备为耳机线的情况下,耳机电路通过开关模块与接口导通,且滤波模块处于导通状态。在本申请实施例中,通过在耳机电路的通路中增加滤波模块,滤除干扰,使得在使用耳机时不会出现电流声,由于只在耳机通路中增加滤波模块,在USB通路中不增加其他器件,不会影响USB信号完整性,使得USB数据线与耳机共用一个接口时,既保证了USB通信质量,又保证了耳机听歌和通话不受电流声干扰。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1是本申请的一个实施例提供的一种控制电路的结构框图;
图2是本申请的一个实施例提供的一种控制电路的电路示意图;
图3是本申请的一个实施例提供的另一种控制电路的电路示意图;
图4是本申请的一个实施例提供的一种控制方法的流程图;
图5是本申请的一个实施例提供的一种电子设备的示意图;
图6是本申请的一个实施例提供的一种电子设备的硬件结构示意图。
图中,10-接口;20-检测电路;30-开关电路;301-开关模块;302-滤波模块;40-USB电路;50-耳机电路。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的一种控制电路、方法及电子设备进行详细地说明。
如图1-3所示,该控制电路可以包括:接口10、检测电路20、开关电路30、USB电路40和耳机电路50,其中开关电路30包括开关模块301和滤波模块302。
具体地,接口10分别与检测电路20和开关电路30连接;接口设置有第 一端口和第二端口,第一端口和第二端口均与开关电路连接;检测电路20用于检测与接口10连接的外部设备的类型,外部设备的类型包括USB数据线和耳机线;开关电路30包括开关模块301和滤波模块302,开关模块301设置有第三端口、第四端口、第五端口和第六端口,第三端口和第四端口均与USB电路40连接,第五端口和第六端口均与耳机电路50连接,其中,在检测电路20检测到与接口10连接的外部设备为USB数据线的情况下,USB电路40通过开关模块301与接口10导通,且滤波模块302处于断路状态;在检测电路20检测到与接口10连接的外部设备为耳机线的情况下,耳机电路50通过开关模块301与接口10导通,且滤波模块302处于导通状态。
也就是,在电路中增加滤波模块302,在接口10连接的是USB数据线时,将滤波模块302断路,使其不影响数据的传输;在接口10连接的是耳机线时,滤波模块302导通,通过滤波模块302进行滤波,滤除掉干扰信号,使得用户在使用耳机时不会受到干扰信号的干扰,提高用户体验。
在本申请实施例中,控制电路包括接口10、检测电路20、开关电路30、USB电路40和耳机电路50,其中开关电路30包括开关模块301和滤波模块302,通过检测电路20检测接口10连接的外部设备是USB数据线还是耳机线,在检测电路20检测到与接口10连接的外部设备为USB数据线的情况下,USB电路40通过开关模块301与接口10导通,且滤波模块302处于断路状态;在检测电路20检测到与接口10连接的外部设备为耳机线的情况下,耳机电路50通过开关模块301与接口10导通,且滤波模块302处于导通状态。在本申请实施例中,通过在耳机电路50的通路中增加滤波模块302,滤除干扰,使得在使用耳机时不会出现电流声,由于只在耳机通路中增加滤波模块302,在USB通路中不增加其他器件,不会影响USB信号完整性,使得USB数据线与耳机共用一个接口时,既保证了USB通信质量,又保证了耳机听歌和通话不受电流声干扰。
在本申请实施例中,接口10可以是Type-C接口,也可以是lightning接 口(闪电接口),相应地,USB数据线可以是Type-C数据线,也可以是lightning数据线,耳机线可以是Type-C耳机线,也可以是lightning耳机线。
在本申请的一个可能的实施方式中,如图2所示,开关模块301包括第一开关子模块。
具体地,第一开关子模块包括第一动端、第二动端、第一定触点、第二定触点、第三定触点和第四定触点,第一动端与第一端口连接,第二动端与第二端口连接,第一定触点与第三端口连接,第二定触点与第四端口连接,第三定触点与第五端口连接,第四定触点与第六端口连接。
其中,在接口10连接的外部设备为USB数据线的情况下,第一动端与第一定触点导通,第二动端与第二定触点导通;在接口10连接的外部设备为耳机线的情况下,第一动端与第三定触点导通,第二动端与第四定触点导通。
其中,第一开关子模块可以是双刀双掷开关,在外部设备为USB数据线的情况下,该双刀双掷开关与USB电路40导通,在外部设备为耳机线的情况下,该双刀双掷开关与耳机电路50导通。
也就是,通过一个开关控制接口10是与USB电路40导通还是与耳机电路50导通,可以快速切换至相应的电路,使得在有外部设备接入时,开关电路30的响应更快,用户体验更佳。
在本申请实施例中,采用双刀双掷开关可以准确控制耳机的左右声道同时断开或闭合,以及准确控制USB电路40的数据正负极DN/DP同时断开或闭合。
进一步地,滤波模块302可以包括第二开关子模块和电容单元。第二开关子模块包括第三动端、第四动端、第五定触点、第六定触点,电容单元包括第一电容和第二电容。
具体地,第三动端分别与第一端口和第一动端连接,第四动端分别与第二端口和第二动端连接,第五定触点与第一电容的第一端连接,第六定触点与第二电容的第一端连接,第一电容的第二端和第二电容的第二端均接地。
其中,在接口10连接的外部设备为USB数据线的情况下,第三动端与第五定触点断开,第四动端与第六定触点断开;在接口10连接的外部设备为耳机线的情况下,第三动端与第五定触点导通,第四动端与第六定触点导通。
在本申请实施例中,通过在开关模块301和接口10之间设置滤波模块302,再根据接入接口10的外部设备的不同,确定是否导通该滤波模块302。该滤波模块302导通时可以滤除干扰,使得在使用耳机时不会出现电流声,而在使用USB数据线时断开该滤波模块302,从而不会影响USB信号完整性,使得USB数据线与耳机共用一个接口时,既保证了USB通信质量,又保证了耳机听歌和通话不受电流声干扰。
其中,第二开关子模块可以是一个双刀单掷开关,在外接设备为USB数据线的情况下,该双刀单掷开关处于断开状态,在外部设备为耳机线的情况下,该双刀单掷开关处于导通状态。
在本申请实施例中,通过设置一个开关控制该滤波模块302是否导通,可以使得开关的响应速度更快,滤波效果更好。
进一步地,该第二开关子模块可以为常开开关,即没有外部设备连接时,该第二开关子模块为断开状态,不影响电子设备的使用。
在本申请的一个可能的实施方式中,该电容单元还可以包括第三电容和第四电容,第二开关子模块还可以包括第七定触点和第八定触点。
具体地,该第三电容的第一端与第七定触点连接,第四电容的第一端与第八定触点连接,第三电容的第二端和第四电容的第二端均接地。
在本申请实施例中,可以在滤波模块302中设置一对电容,来滤除耳机左右声道的噪声,还可以通过二对或是更多对电容,来滤除两种或更多种类的噪声,也就是,可以通过设置不同容值的电容,滤除不同种类的噪声干扰。
进一步地,在滤波模块302中设置多对电容的情况下,滤波模块302可以在不同的工作状态下进行切换,即可以根据电子设备所处的频段切换至相应的电容,以消除该频段的电流声干扰。例如,第一状态下可以将第一类型 的电容导通,消除第一类型的电流声干扰,第二状态下将第二类型的电容导通,以消除第二类型的电流声干扰。具体地详见下述实施例。
在本申请的一个具体地实施方式中,如图2所示,以接口10为Type-C接口为例,当耳机线接入Type-C接口时,可能存在GSM850/900频段的干扰,也可能存在GSM1800/1900频段的干扰,也就是在电子设备处于不同频段时,耳机会存在相应的耦合干扰,本申请实施例中以上述两个频段的干扰为例。
具体地,Type-C接口分别与检测电路20、滤波模块302的第二开关子模块、开关模块301连接。检测电路20为PMIC(Power Management IC,电源管理集成模块),与Type-C接口的配置引脚CC1和CC2连接,用于检测CC1和CC2的状态;第二开关子模块为电容开关R/L,该电容开关为双刀双掷开关,电容单元为四个接地的电容,当Type-C接口接入的外部设备为USB数据线时,电容开关处于状态1,即悬空状态,开关模块301的第一动端DN_L与第一定触点DN连接,第二动端DP_R与第二定触点DP连接;当Type-C接口接入的外部设备为耳机线,且电子设备处于GSM850/900频段时,电容开关处于状态2,即电容开关的R与电容C1R连接、电容开关的L与电容C1L连接,可以滤除GSM850/900耦合干扰,开关模块301的第一动端DN_L与第三定触点L连接,第二动端DP_R与第四定触点R连接;当Type-C接口接入的外部设备为耳机线,且电子设备处于GSM1800/1900频段时,电容开关处于状态3,即电容开关的R与电容C2R连接、电容开关的L与电容C2L连接,可以滤除GSM1800/1900耦合干扰,开关模块301的第一动端DN_L与第三定触点L连接,第二动端DP_R与第四定触点R连接。
其中,电容C1R和电容C1L的容值均为120pF左右,可滤GSM850/900耦合干扰,电容C2R和电容C2L的容值均为33pF左右,可滤GSM1800/1900耦合干扰,电容的选择可以根据具体地频段设定,本申请实施例只是列举一个例子,其他不做具体限定。
在本申请实施例中,电容开关R/L默认处于状态1,即悬空状态,此时 插入USB进行数据传输无信号质量问题。当插入Type-C耳机后PMIC检测到CC1/CC2拉低,即识别为耳机插入,系统检测电子设备是否处于GSM制式,若电子设备处于非GSM制式,则电容开关R/L默认保持状态1;当系统检测到电子设备处于GSM850/900频段时,电容开关R/L切换为状态2,可解决GSM850/900耦合干扰,此时进行耳机听歌或通话无电流声问题;当系统检测到电子设备处于GSM1800/1900频段时,电容开关R/L切换为状态3,可解决GSM1800/1900耦合干扰,此时进行耳机听歌或通话无电流声问题;当拔出耳机时,PMIC检测到CC1/CC2悬空,即识别为耳机拔出,电容开关R/L恢复为状态1,即悬空状态,此时插入USB进行数据传输无信号质量问题。
本申请实施例,通过在耳机电路50的通路上设置滤波模块302,即独立外置电容开关,且可以通过调节电容的容值来滤除不同频段对耳机的干扰,而USB电路40的通路上不设置电容等器件,不影响USB数据的传输。
在本申请的一个可能的实施方式中,滤波模块302可以包括第一滤波单元和第二滤波单元,开关模块301包括第一开关、第二开关、第三开关和第四开关。
具体地,第三端口通过第一开关与第一端口连接,第五端口通过第二开关与第一滤波单元的第一端连接,第一滤波单元的第二端与第一端口连接,第四端口通过第三开关与第二端口连接,第六端口通过第四开关与第二滤波单元的第一端连接,第二滤波单元的第二端与第二端口连接。
也就是,在接口10与耳机电路50连接的通路上设置滤波模块,既可以在外部设备为耳机时利用滤波模块进行滤波,又可以在外部设备为USB数据线时直接将接口与USB电路40连接,该线路上不存在其他器件,不会影响USB信号完整性,使得USB数据线与耳机共用一个接口时,既保证了USB通信质量,又保证了耳机听歌和通话不受电流声干扰。
在本申请实施例中,将滤波模块302集成到耳机电路50的通路,可以节 省外围布局,提升Type-C开关的抗干扰能力。
进一步地,第一滤波单元和第二滤波单元均包括并联连接的电感和电容。
在本申请实施例中,采用电感和电容进行滤波,可以将电子设备接收到的影响耳机的干扰信号滤除。
进一步地,开关模块301可以包括两个双刀单掷开关,一个连接USB电路40,一个连接耳机电路50。
在本申请实施例中,通过设置双刀单掷开关,可以准确控制耳机的左右声道同时断开或闭合,以及准确控制USB电路40的数据正负极DN/DP同时断开或闭合。
在本申请的另一个具体实施方式中,如图3所示,以接口10为Type-C接口为例,将滤波模块302集成到耳机电路50的通路,通过在Type-C开关内部左右声道通路增加LC滤波模块302,将滤波模块302集成到Type-C开关内部,可以节省外围布局,提升Type-C开关的抗干扰能力。
具体地,Type-C接口分别与检测电路20、滤波模块302、开关模块301连接。开关模块301包括开关1、开关2、开关3、开关4,开关1的第一端和开关3的第一端均与USB电路40连接,开关1的第二端和开关3的第二端均与Type-C接口连接;开关2的第一端和开关4的第一端均与耳机电路50连接,开关2的第二端与第一滤波单元的第一端连接,开关4的第二端与第二滤波单元的第一端连接,第一滤波单元的第二端和第二滤波单元的第二端均与Type-C接口连接。当Type-C接口接入的外部设备为USB数据线时,开关1和开关3导通;当Type-C接口接入的外部设备为耳机线时,开关2和开关4导通,第一滤波单元和第二滤波单元滤除干扰信号。
在本申请实施例中,Type-C开关内的开关1、2、3、4默认处于断开状态;当插入耳机线时(PMIC检测到CC1/CC2拉低,即识别为耳机插入),开关1/3断开、开关2/4闭合;当插入USB数据线时(PMIC检测到CC1/CC2悬空,即识别为USB数据线插入),开关1/3闭合、开关2/4断开。
其中,滤波模块302中的电感L和电容C选型不限定,有多种组合方案,只要滤波模块302对应的限波频点可以有效滤除GSM各频段的耦合干扰即可。
在本申请的一个可能的实施方式中,检测电路20可以包括电源管理集成模块,在电源管理集成模块检测到接口10的配置引脚为低电平的情况下,确定与接口10连接的外部设备为耳机线;在电源管理集成模块检测到接口10的配置引脚为高电平的情况下,确定与接口10连接的外部设备为USB数据线。
在本申请实施例中,通过电源管理集成模块PMIC可以准确的检测出接入的外部设备的类型,进而可以快速确定出滤波或是不滤波,进而解决Type-C耳机电流声问题,既保证了USB通信质量,也保证了耳机听歌和通话不受电流声干扰。
本申请实施例还提供了一种电子设备,包括上述任一所述的控制电路。能够实现上述控制电路的功能,其能达到相同的效果,为避免重复,这里不再赘述。
本申请实施例还提供了一种控制方法,该方法应用于上述任一所述的控制电路。如图4所述,该控制方法可以包括步骤S401至步骤S403所示的步骤。
在步骤S401中,检测接入的外部设备的类型。
其中,外部设备的类型可以包括USB数据线和耳机线。
在步骤S402中,在外部设备为USB数据线的情况下,控制USB数据线与USB电路导通,且滤波模块处于断路状态。
在步骤S403中,在外部设备为耳机线的情况下,控制耳机线与耳机电路导通,且滤波模块处于导通状态。
在本申请实施例中,首先检测接入的外部设备的类型,外部设备若是USB数据线,则控制该USB数据线与USB电路导通,以进行数据通信,此时滤波模块处于断路状态,滤波模块中的器件不会对数据通信产生影响,外部设备若是耳机线,则控制该耳机线与耳机电路导通,此时滤波模块处于导通状态,从而可以滤除使用耳机时的干扰,使得USB数据线与耳机共用一个接口时,既保证了USB通信质量,又保证了耳机听歌和通话不受电流声干扰。
在本申请的一个具体地实施方式中,滤波模块可以为独立的外置电路,即电容开关,在外部设备为耳机线时,该外置电路导通。
具体地,在没有外部设备接入时,电容开关处于默认状态1,此时电容开关为断路状态,在检测到接入的外部设备为耳机线的情况下,检测电子设备是否处于GSM制式,若是电子设备处于GSM制式,则根据GSM的不同制式将电容开关切换到不同的状态,即状态2或状态3,若是电子设备未处于GSM制式,则电容开关继续处于状态1,在检测到耳机线拔出的情况下,电容开关回复默认状态1。
在本申请的另一个具体地实施方式中,滤波模块可以集成到开关内部左右声道的通路,将滤波模块集成到Type-C开关内部,可以节省外围布局,提升Type-C开关的抗干扰能力。具体地在上述实施例中已详细描述,本实施例不再赘述。
可选地,本申请实施例还提供了一种控制装置,该装置可以包括:检测模块、第一控制模块和第二控制模块。
具体地,该检测模块用于检测接入的外部设备的类型;其中,外部设备的类型可以包括USB数据线和耳机线。该第一控制模块用于在外部设备为USB数据线的情况下,控制USB数据线与USB电路导通,且滤波模块处于断路状态。第二控制模块用于在外部设备为耳机线的情况下,控制耳机线与耳机电路导通,且滤波模块处于导通状态。
在本申请实施例中,首先检测模块检测接入的外部设备的类型,外部设 备若是USB数据线,则第一控制模块控制该USB数据线与USB电路导通,以进行数据通信,此时滤波模块处于断路状态,滤波模块中的器件不会对数据通信产生影响,外部设备若是耳机线,则第二控制模块控制该耳机线与耳机电路导通,此时滤波模块处于导通状态,从而可以滤除使用耳机时的干扰,使得USB数据线与耳机共用一个接口时,既保证了USB通信质量,又保证了耳机听歌和通话不受电流声干扰。
本申请实施例提供的控制装置能够实现方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图5所示,本申请实施例还提供一种电子设备500,包括处理器501,存储器502,存储在存储器502上并可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请各个实施例的一种电子设备的硬件结构示意图,
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器110,用于检测接入的外部设备的类型,外部设备的类型包括USB数据线和耳机线;
在外部设备为USB数据线的情况下,控制USB数据线与USB电路导通,且滤波模块处于断路状态;
在外部设备为耳机线的情况下,控制耳机线与耳机电路导通,且滤波模块处于导通状态。
在本申请实施例中,首先检测接入的外部设备的类型,外部设备若是USB数据线,则控制该USB数据线与USB电路导通,以进行数据通信,此时滤波模块处于断路状态,滤波模块中的器件不会对数据通信产生影响,外部设备若是耳机线,则控制该耳机线与耳机电路导通,此时滤波模块处于导通状态,从而可以滤除使用耳机时的干扰,使得USB数据线与耳机共用一个接口时,既保证了USB通信质量,又保证了耳机听歌和通话不受干扰。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述控制方法实施例的各个过 程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体 现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (13)

  1. 一种控制电路,包括:接口(10)、检测电路(20)、开关电路(30)、USB电路(40)和耳机电路(50),
    所述接口(10)分别与所述检测电路(20)和所述开关电路(30)连接;
    所述接口设置有第一端口和第二端口,所述第一端口和所述第二端口均与所述开关电路连接;
    所述检测电路(20)用于检测与所述接口(10)连接的外部设备的类型,所述外部设备的类型包括USB数据线和耳机线;
    所述开关电路(30)包括开关模块(301)和滤波模块(302),所述开关模块(301)设置有第三端口、第四端口、第五端口和第六端口,所述第三端口和所述第四端口均与所述USB电路(40)连接,所述第五端口和所述第六端口均与所述耳机电路(50)连接;
    其中,在所述检测电路(20)检测到与所述接口(10)连接的外部设备为USB数据线的情况下,所述USB电路(40)通过所述开关模块(301)与所述接口(10)导通,且所述滤波模块(302)处于断路状态;在所述检测电路(20)检测到与所述接口(10)连接的外部设备为耳机线的情况下,所述耳机电路(50)通过所述开关模块(301)与所述接口(10)导通,且所述滤波模块(302)处于导通状态。
  2. 根据权利要求1所述的电路,其中,所述开关模块(301)包括第一开关子模块,所述第一开关子模块包括第一动端、第二动端、第一定触点、第二定触点、第三定触点和第四定触点,所述第一动端与所述第一端口连接,所述第二动端与所述第二端口连接,所述第一定触点与所述第三端口连接,所述第二定触点与所述第四端口连接,所述第三定触点与所述第五端口连接,所述第四定触点与所述第六端口连接;
    在所述接口(10)连接的外部设备为USB数据线的情况下,所述第一动端与所述第一定触点导通,所述第二动端与所述第二定触点导通;在所述接 口(10)连接的外部设备为耳机线的情况下,所述第一动端与所述第三定触点导通,所述第二动端与所述第四定触点导通。
  3. 根据权利要求2所述的电路,其中,所述滤波模块(302)包括第二开关子模块和电容单元,所述第二开关子模块包括第三动端、第四动端、第五定触点、第六定触点,所述电容单元包括第一电容和第二电容;
    所述第三动端分别与所述第一端口和所述第一动端连接,所述第四动端分别与所述第二端口和所述第二动端连接,所述第五定触点与所述第一电容的第一端连接,所述第六定触点与所述第二电容的第一端连接,所述第一电容的第二端和所述第二电容的第二端均接地;
    在所述接口(10)连接的外部设备为USB数据线的情况下,所述第三动端与所述第五定触点断开,所述第四动端与所述第六定触点断开;在所述接口(10)连接的外部设备为耳机线的情况下,所述第三动端与所述第五定触点导通,所述第四动端与所述第六定触点导通。
  4. 根据权利要求3所述的电路,其中,所述电容单元还包括第三电容和第四电容,所述第二开关子模块还包括第七定触点和第八定触点;
    所述第三电容的第一端与所述第七定触点连接,所述第四电容的第一端与所述第八定触点连接,所述第三电容的第二端和所述第四电容的第二端均接地。
  5. 根据权利要求1所述的电路,其中,所述滤波模块(302)包括第一滤波单元和第二滤波单元,所述开关模块(301)包括第一开关、第二开关、第三开关和第四开关;
    所述第三端口通过所述第一开关与所述第一端口连接,所述第五端口通过所述第二开关与所述第一滤波单元的第一端连接,所述第一滤波单元的第二端与所述第一端口连接,所述第四端口通过所述第三开关与所述第二端口连接,所述第六端口通过所述第四开关与所述第二滤波单元的第一端连接,所述第二滤波单元的第二端与所述第二端口连接。
  6. 根据权利要求5所述的电路,其中,所述第一滤波单元和第二滤波单元均包括并联连接的电感和电容。
  7. 根据权利要求1所述的电路,其中,所述检测电路(20)包括:电源管理集成模块,在所述电源管理集成模块检测到所述接口(10)的配置引脚为低电平的情况下,确定与所述接口(10)连接的外部设备为耳机线;在所述电源管理集成模块检测到所述接口(10)的配置引脚为高电平的情况下,确定与所述接口(10)连接的外部设备为USB数据线。
  8. 一种电子设备,包括如权利要求1-7任一所述的控制电路。
  9. 一种控制方法,应用于如权利要求1-7任一所述的控制电路,包括:
    检测接入的外部设备的类型,所述外部设备的类型包括USB数据线和耳机线;
    在所述外部设备为USB数据线的情况下,控制所述USB数据线与USB电路导通,且滤波模块处于断路状态;
    在所述外部设备为耳机线的情况下,控制所述耳机线与耳机电路导通,且所述滤波模块处于导通状态。
  10. 一种控制装置,包括:
    检测模块,用于检测接入的外部设备的类型,所述外部设备的类型包括USB数据线和耳机线;
    第一控制模块,用于在所述外部设备为USB数据线的情况下,控制所述USB数据线与USB电路导通,且滤波模块处于断路状态;
    第二控制模块,用于在所述外部设备为耳机线的情况下,控制所述耳机线与耳机电路导通,且所述滤波模块处于导通状态。
  11. 一种电子设备,所述电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求9所述的方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程 序或指令被处理器执行时实现如权利要求9所述的方法的步骤。
  13. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求9所述的方法的步骤。
PCT/CN2021/123530 2020-10-16 2021-10-13 控制电路、方法及电子设备 WO2022078385A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011110190.4A CN112261534A (zh) 2020-10-16 2020-10-16 控制电路、方法及电子设备
CN202011110190.4 2020-10-16

Publications (1)

Publication Number Publication Date
WO2022078385A1 true WO2022078385A1 (zh) 2022-04-21

Family

ID=74244531

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/123530 WO2022078385A1 (zh) 2020-10-16 2021-10-13 控制电路、方法及电子设备

Country Status (2)

Country Link
CN (1) CN112261534A (zh)
WO (1) WO2022078385A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115145524A (zh) * 2022-07-21 2022-10-04 深圳市新龙鹏科技有限公司 一种基于单组cc的双盲插显示器控制电路、装置及方法
CN115175062A (zh) * 2022-09-07 2022-10-11 广州市保伦电子有限公司 一种基于外部设备的音频防开关机冲击控制方法及电路

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261534A (zh) * 2020-10-16 2021-01-22 维沃移动通信有限公司 控制电路、方法及电子设备
CN115954702B (zh) * 2023-03-10 2023-05-23 苏州浪潮智能科技有限公司 接口、功能线及服务器

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106025742A (zh) * 2016-07-29 2016-10-12 深圳市和昶科技有限公司 应用于Type-C接口智能终端的转接器及转接方法
US20180145469A1 (en) * 2016-11-18 2018-05-24 Samsung Electronics Co., Ltd. Interface device
US20190180767A1 (en) * 2016-08-19 2019-06-13 Huawei Technologies Co., Ltd. Noise Reduction Operation Control Method for Headset and Audio Processor in Terminal Device
WO2020063590A1 (zh) * 2018-09-26 2020-04-02 华为技术有限公司 一种复用电路及移动终端
CN112261534A (zh) * 2020-10-16 2021-01-22 维沃移动通信有限公司 控制电路、方法及电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7444174B2 (en) * 2004-08-31 2008-10-28 Research In Motion Limited Mobile wireless communications device with reduced interfering energy into audio circuit and related methods
US20090029733A1 (en) * 2007-07-27 2009-01-29 Motorola, Inc. Method and apparatus for controllable filtering on multiplexed data bus ports
JP2009284072A (ja) * 2008-05-20 2009-12-03 Yamaha Corp ノイズキャンセル回路およびヘッドフォン
CN102752682B (zh) * 2012-06-29 2015-07-29 歌尔声学股份有限公司 Usb接口复用的蓝牙耳机
WO2019040540A1 (en) * 2017-08-21 2019-02-28 Qualcomm Incorporated ANTENNA AND WIRING UNIFICATION

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106025742A (zh) * 2016-07-29 2016-10-12 深圳市和昶科技有限公司 应用于Type-C接口智能终端的转接器及转接方法
US20190180767A1 (en) * 2016-08-19 2019-06-13 Huawei Technologies Co., Ltd. Noise Reduction Operation Control Method for Headset and Audio Processor in Terminal Device
US20180145469A1 (en) * 2016-11-18 2018-05-24 Samsung Electronics Co., Ltd. Interface device
WO2020063590A1 (zh) * 2018-09-26 2020-04-02 华为技术有限公司 一种复用电路及移动终端
CN112261534A (zh) * 2020-10-16 2021-01-22 维沃移动通信有限公司 控制电路、方法及电子设备

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115145524A (zh) * 2022-07-21 2022-10-04 深圳市新龙鹏科技有限公司 一种基于单组cc的双盲插显示器控制电路、装置及方法
CN115145524B (zh) * 2022-07-21 2023-11-17 深圳市新龙鹏科技有限公司 一种基于单组cc的双盲插显示器控制电路、装置及方法
CN115175062A (zh) * 2022-09-07 2022-10-11 广州市保伦电子有限公司 一种基于外部设备的音频防开关机冲击控制方法及电路

Also Published As

Publication number Publication date
CN112261534A (zh) 2021-01-22

Similar Documents

Publication Publication Date Title
WO2022078385A1 (zh) 控制电路、方法及电子设备
KR101790042B1 (ko) 이어폰 시스템과 이를 지원하는 휴대 단말기 및 이를 기반으로 하는 이어폰 운용 방법
CN103118191B (zh) 一种iPhone线控耳机的使用控制方法及其移动终端
US11611825B2 (en) Audio signal processing method and apparatus
US20210314697A1 (en) Terminal device, adapter, and charging method
WO2020098388A1 (zh) 电磁干扰的调整方法及相关产品
CN201805529U (zh) 一种串口下载线和耳机共用的耳机接口及移动终端
CN101938546A (zh) 一种基于手机的耳机麦克风检测方法及手机
CN112653965B (zh) 音频播放控制电路及其方法、装置、电子设备和存储介质
WO2020029990A1 (zh) 耳机线复用方法及装置、移动终端
CN102355518A (zh) 一种手机及其音频处理方法
KR20240049240A (ko) 평형화된 임피던스 래더를 갖는 듀플렉서
WO2019062717A1 (zh) 播放设备及基于播放设备的播放方法
KR20110019841A (ko) 휴대용 단말기에서 오디오 채널 간 크로스 톡 개선 장치 및 방법
CN210157357U (zh) 复用串口功能的耳机接口模块及移动终端
CN105187992A (zh) 一种麦克风开关控制电路和方法
CN204929186U (zh) 一种线控耳机
CN103138040A (zh) 外置天线装置、天线切换装置及终端设备
CN107800853B (zh) 存储器、手机及其音频电路和音频文件的外放方法
CN112615630B (zh) 一种提高射频隔离度的电路、方法及移动终端
CN113949755B (zh) 电子设备和有线耳机
CN204482024U (zh) 一种耳机电路
CN113206906A (zh) 电子设备组件和数字耳机
CN112468625B (zh) 防失真电路及其控制方法、电子设备
CN206136217U (zh) 一种耳麦

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21879428

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21879428

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.11.2023)