Earphone control method, earphone, system, electronic equipment and storage medium
By introducing an analog switch module into the headset's main control module, the connection status is detected and the connection between the speaker module and the main control module is controlled, the noise problem caused by leakage current in the wired connection of the dual-purpose headset is solved, and clear audio playback is achieved .
Patent Information
- Application Number
- CN202411413072.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-02-11
AI Technical Summary
When existing dual-purpose headphones are connected to external devices to play audio under wired connection mode, leakage current may occur, causing noise from the speaker module.
By introducing an analog switch module into the headset's main control module, the connection status of the Bluetooth module and external devices is detected, and under appropriate circumstances, the analog switch module is controlled to disconnect or conduct between the speaker module and the main control module to avoid Leakage current transmission.
It effectively reduces the risk of noise in the speaker module in wired connection mode, ensuring clear sound quality during audio playback.
Smart Images

Figure CN119421079A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone technology, and in particular to an earphone control method, earphone, system, electronic device and storage medium. Background Art
[0002] Generally, earphones are divided into Bluetooth earphones and wired earphones. Bluetooth earphones communicate with other devices through Bluetooth technology, while wired earphones connect with other devices through physical connection. However, with the development of economy and technology, users have higher and higher requirements for electronic products. Earphones with a single connection method can no longer meet the needs of users. Therefore, a dual-purpose earphone that can be connected wirelessly through Bluetooth and wired has emerged.
[0003] However, in current dual-use headphones, when connected to an external device to play audio via a wired connection, leakage current may occur in the main control module of the headphones, and the leakage current is transmitted to the speaker of the headphones, causing noise when the speaker plays. Summary of the invention
[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a method for controlling earphones, earphones, systems, electronic devices and storage media, which can reduce the risk of noise in a speaker module when an external device is connected via a wired connection to play audio.
[0005] The control method of the headset according to the first aspect of the present application is applied to a main control module of the headset, wherein the headset is further provided with a Bluetooth module, a wired connection module, a speaker module and an analog switching switch module, wherein the main control module is connected to the Bluetooth module and the wired connection module respectively, the speaker module is connected to the main control module via the analog switching switch module, and the speaker module is connected to the wired connection module;
[0006] The method comprises:
[0007] When it is detected that the Bluetooth module is not in communication connection with the first external device and the wired connection module is electrically connected with the second external device, the analog switch module is controlled to disconnect the speaker module from the main control module;
[0008] When it is detected that the Bluetooth module is in communication connection with the first external device and the wired connection module is not electrically connected with the second external device, the analog switch module is controlled to conduct between the speaker module and the main control module.
[0009] According to the control method of the earphone of the embodiment of the present application, there are at least the following beneficial effects: when the control method of the earphone is executed, when it is detected that the Bluetooth module is not connected to the first external device for communication, and the wired connection module is electrically connected to the second external device, the analog switching switch module is controlled to disconnect the speaker module from the main control module, so as to avoid the speaker module from being directly connected to the main control module, and the leakage current of the main control module can be prevented from being transmitted to the speaker module, and the speaker module can be prevented from generating noise due to the leakage current. When it is detected that the Bluetooth module is connected to the first external device for communication, and the wired connection module is not electrically connected to the second external device, the analog switching switch module is controlled to conduct between the speaker module and the main control module, so that when the main control module receives the audio sent by the first external device through the Bluetooth module, the audio can be transmitted to the speaker module and played. Therefore, the control method of the earphone of the embodiment of the present application can reduce the risk of noise in the speaker module when the external device is connected to play audio by wired connection.
[0010] According to some embodiments of the present application, the analog switching switch module is provided with a voltage control end, a first common end, a second common end, a first connection end, and a second connection end, the first common end is connected to the first speaker unit, the second common end is connected to the second speaker unit, and the voltage control end, the first connection end, and the second connection end are respectively connected to the main control module;
[0011] The step of controlling the analog switch module to disconnect the speaker module from the main control module includes:
[0012] Outputting a first voltage to the voltage control terminal to control the analog switch module to disconnect the first common terminal from the first connection terminal and disconnect the second common terminal from the second connection terminal;
[0013] The step of controlling the analog switch module to conduct electricity between the speaker module and the main control module includes:
[0014] A second voltage is output to the voltage control terminal to control the analog switch module to connect the first common terminal to the first connection terminal and connect the second common terminal to the second connection terminal; wherein the second voltage is greater than the first voltage.
[0015] According to some embodiments of the present application, it further includes:
[0016] When it is detected that the Bluetooth module is in communication connection with the first external device, and the wired connection module is in electrical connection with the second external device, obtaining preset priority information;
[0017] When it is detected that the priority information indicates that the priority of the Bluetooth module is higher than the priority of the wired connection module, controlling the analog switch module to connect the speaker module to the main control module;
[0018] When it is detected that the priority information indicates that the priority of the Bluetooth module is lower than the priority of the wired connection module, the analog switch module is controlled to disconnect the speaker module from the main control module.
[0019] According to a second aspect of the present application, there is provided a headset, comprising a Bluetooth module, a wired connection module, a speaker module, an analog switch module and a main control module, wherein the main control module is connected to the Bluetooth module and the wired connection module respectively, the speaker module is connected to the main control module via the analog switch module, and the speaker module is connected to the wired connection module;
[0020] The main control module is used to control the analog switching switch module to disconnect the speaker module from the main control module when the Bluetooth module is not communicatively connected to the first external device and the wired connection module is electrically connected to the second external device; and to control the analog switching switch module to connect the speaker module to the main control module when the Bluetooth module is communicatively connected to the first external device and the wired connection module is not electrically connected to the second external device.
[0021] According to some embodiments of the present application, the analog switching switch module is provided with a voltage control end, a first common end, a second common end, a first connection end, and a second connection end, the first common end is connected to the first speaker unit, the second common end is connected to the second speaker unit, and the voltage control end, the first connection end, and the second connection end are respectively connected to the main control module;
[0022] The analog switching switch module is used to disconnect the first common terminal and the first connection terminal, and disconnect the second common terminal and the second connection terminal when the voltage of the voltage control terminal is a first voltage; and to connect the first common terminal and the first connection terminal, and connect the second common terminal and the second connection terminal when the voltage of the voltage control terminal is a second voltage.
[0023] According to some embodiments of the present application, a first magnetic bead and a second magnetic bead are further included, the first common end is connected to the first speaker unit through the first magnetic bead, and the second common end is connected to the second speaker unit through the second magnetic bead.
[0024] According to some embodiments of the present application, a filter branch is further included, one end of the filter branch is connected to the first connection end, and the other end of the filter branch is connected to the second connection end.
[0025] In a third aspect, the present application provides a control system for an earphone, which is applied to a main control module of the earphone, wherein the earphone is further provided with a Bluetooth module, a wired connection module, a speaker module and an analog switching switch module, wherein the main control module is connected to the Bluetooth module and the wired connection module respectively, the speaker module is connected to the main control module via the analog switching switch module, and the speaker module is connected to the wired connection module;
[0026] The system comprises:
[0027] a disconnection unit, configured to control the analog switch module to disconnect the speaker module from the main control module when detecting that the Bluetooth module is not in communication connection with the first external device and the wired connection module is electrically connected with the second external device;
[0028] The conduction unit is used to control the analog switching module to conduct between the speaker module and the main control module when it is detected that the Bluetooth module is connected to the first external device for communication and the wired connection module is not electrically connected to the second external device.
[0029] An embodiment of the fourth aspect of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method for controlling the earphones described in any one of the embodiments of the first aspect of the present application is implemented.
[0030] The fifth aspect of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program. When the computer program is executed by a processor, the method for controlling the earphones described in any one of the first aspect embodiments is implemented.
[0031] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:
[0033] Figure 1 A circuit module block diagram of a dual-purpose headset in the related art;
[0034] Figure 2 A circuit module block diagram of the headset according to an embodiment of the present application;
[0035] Figure 3 A specific circuit diagram of the analog switching switch module of an embodiment of the present application;
[0036] Figure 4 A schematic flow chart of the steps of the method for controlling the earphone according to an embodiment of the present application;
[0037] Figure 5 A flowchart of another embodiment of the method for controlling headphones of the present application;
[0038] Figure 6 This is a schematic diagram of the structure of a control system of an earphone according to an embodiment of the present application;
[0039] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present application.
[0040] Reference numerals:
[0041] Main control module 110 ; Bluetooth module 120 ; first speaker unit 131 ; second speaker unit 132 ; analog switch module 140 ; wired connection module 150 ; digital-to-analog conversion module 160 . DETAILED DESCRIPTION
[0042] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0043] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0044] In the description of this application, "several" means more than one, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0045] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.
[0046] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0047] Reference Figure 1 , Figure 1 This is a circuit module block diagram of a dual-purpose headset in the related art. In the related art, the two speaker modules of the headset are directly connected to the main control module, and the two speaker modules are connected to the wired connection module. The wired connection module is an AUX3.5mm plug-in terminal. The wired connection module is also connected to the main control module through a digital-to-analog conversion module, and the Bluetooth module is connected to the main control module. The headset can be connected to an external device via the Bluetooth module to play audio, or it can be plugged into the device through the wired connection module to play audio. However, when the audio is played by plugging into the device through the wired connection module, leakage current may occur in the main control module and transmitted to the speaker module. The leakage current will cause the speaker module to make noise.
[0048] Based on this, the present application proposes a headset control method, headset, system, electronic device and storage medium, which can reduce the risk of noise in the speaker module when the external device is connected to play audio via a wired connection. The headset control method, headset, system, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the headset in the embodiments of the present application is described.
[0049] Reference Figure 2 , Figure 2 1 is a circuit module block diagram of the headset of the embodiment of the present application. The headset of the embodiment of the present application includes a Bluetooth module 120, a wired connection module 150, a speaker module, an analog switching module and a main control module 110. The main control module 110 is connected to the Bluetooth module 120 and the wired connection module 150 respectively. The speaker module is connected to the main control module 110 through the analog switching module, and the speaker module is connected to the wired connection module 150.
[0050] The main control module 110 is used to control the analog switching switch module to disconnect the speaker module and the main control module 110 when the Bluetooth module 120 is not communicatively connected to the first external device and the wired connection module 150 is electrically connected to the second external device; when the Bluetooth module 120 is communicatively connected to the first external device and the wired connection module 150 is not electrically connected to the second external device, control the analog switching switch module to connect the speaker module and the main control module 110.
[0051] The earphones of the embodiment of the present application have the following beneficial effects: the earphones of the embodiment of the present application can be connected to the first external device through the Bluetooth module 120, and the main control module 110 receives the audio of the first external device through the Bluetooth module 120 and plays it through the speaker module. It can also be connected to the second external device through the wired connection module 150, and the audio transmitted by the second external device can be played through the wired connection module 150. In addition, when it is detected that the Bluetooth module 120 is not connected to the first external device for communication, and the wired connection module 150 is electrically connected to the second external device, the analog switching switch module is controlled to disconnect the speaker module from the main control module 110, so as to avoid the speaker module from being directly connected to the main control module 110, and the leakage current of the main control module 110 can be prevented from being transmitted to the speaker module, and the speaker module can be prevented from generating noise due to the leakage current. When it is detected that the Bluetooth module 120 is in communication connection with the first external device and the wired connection module 150 is not electrically connected with the second external device, the analog switching module is controlled to conduct between the speaker module and the main control module 110, so that when the main control module 110 receives the audio sent by the first external device through the Bluetooth module 120, the audio can be transmitted to the speaker module and played. Therefore, the control method of the headset of the embodiment of the present application can reduce the risk of noise in the speaker module when the external device is connected to play audio through a wired connection.
[0052] It should be noted that, in one embodiment, the Bluetooth module 120 is built into the main control module 110 .
[0053] It should be noted that the first external device is a device that can achieve Bluetooth connection with the Bluetooth module 120, for example, the first external device can be a mobile phone, a desktop computer, a laptop computer, a tablet computer, etc., which has a built-in Bluetooth module 120. The second external device is a device that can be wired connected to the wired connection module 150, for example, the second external device can be a mobile phone, a desktop computer, a laptop computer, a tablet computer, etc., which is provided with an interface matching the wired connection module 150.
[0054] It should be noted that the wired connection module 150 of the embodiment of the present application adopts an AUX 3.5mm audio interface. The AUX 3.5mm interface is a standardized interface for connecting audio devices, which is commonly found in earphones, mobile phones, computers, MP3 players, speakers and other devices.
[0055] It should be noted that, refer to Figure 2 The headset of the embodiment of the present application further includes a digital-to-analog conversion module 160, and the wired connection module 150 is connected to the main control module 110 via the digital-to-analog conversion module 160. The main function of the digital-to-analog conversion module 160 is to convert the analog audio signal into a digital signal for subsequent digital processing, transmission or storage.
[0056] It can be understood that the analog switching switch module is provided with a voltage control end, a first common end, a second common end, a first connection end, and a second connection end, the first common end is connected to the first speaker unit 131, the second common end is connected to the second speaker unit 132, and the voltage control end, the first connection end, and the second connection end are respectively connected to the main control module 110;
[0057] The analog switching switch module is used to disconnect the first common terminal from the first connection terminal and disconnect the second common terminal from the second connection terminal when the voltage at the voltage control terminal is a first voltage, and to connect the first common terminal from the first connection terminal and connect the second common terminal from the second connection terminal when the voltage at the voltage control terminal is a second voltage. The second voltage is greater than the first voltage.
[0058] It is worth noting that when the Bluetooth module 120 is not connected to the first external device in communication, and the wired connection module 150 is electrically connected to the second external device, the main control module 110 outputs the first voltage to the voltage control terminal, so the voltage of the voltage control terminal is the first voltage, and the analog switching switch module disconnects the first common terminal from the first connection terminal and the second common terminal from the second connection terminal, thereby disconnecting the speaker module from the main control module 110. When the Bluetooth module 120 is connected to the first external device in communication, and the wired connection module 150 is not electrically connected to the second external device, the main control module 110 outputs the second voltage to the voltage control terminal, so the voltage of the voltage control terminal is the second voltage, and the analog switching switch module connects the first common terminal to the first connection terminal and the second common terminal to the second connection terminal, thereby connecting the speaker module from the main control module 110.
[0059] In one embodiment, the first voltage is a low level signal, and the second voltage is a high level signal.
[0060] For example, refer to Figure 3 , Figure 3 The specific circuit diagram of the analog switch module of the embodiment of the present application is shown in FIG. The analog switch module adopts the RS2058XN chip. Figure 3In the embodiment, the IN1 pin is a voltage control terminal, the IN1 pin is connected to the IN2 pin, the COM1 pin is a first common terminal, and the COM2 pin is a second common terminal; NO1 is a first connection terminal, NO2 is a second connection terminal, and the NC1 pin and the NC2 pin are suspended. The VDD_VMB voltage is the voltage of the voltage control terminal, and the VDD_VMB voltage is output by the main control module 110. When the VDD_VMB voltage is a high level (a second voltage), the VDD_VMB voltage is 1.6V to 3V. For example, when the VDD_VMB voltage is 1.6V or 1.8V or 3V, the NO2 pin is connected to the COM2 pin, the NO1 pin is connected to the COM1 pin, and the NC2 pin is disconnected from the COM2 pin, and the NC1 pin is disconnected from the COM1 pin, so that the speaker module and the main control module 110 are connected. When the VDD_VMB voltage is at a low level (first voltage), the VDD_VMB voltage is less than 0.4V, for example, the VDD_VNB voltage is 0.1V or 0.4V, at this time, the NC2 pin is connected to the COM2 pin, the NC1 pin is connected to the COM1 pin, and the NO2 pin is disconnected from the COM2 pin, and the NO1 pin is disconnected from the COM1 pin, thereby realizing the disconnection between the speaker module and the main control module 110.
[0061] It is worth noting that in Figure 3 In FIG. 1 , SPK_LP indicates connection to the second speaker unit 132, and SPK_RP indicates connection to the first speaker unit 131. One of the first speaker unit 131 and the second speaker unit 132 is a left ear speaker unit, and the other is a right ear speaker unit.
[0062] In another embodiment, the speaker module is connected to the wired connection module 150 through the analog switch module. Specifically, the wired connection module 150 is provided with a third connection terminal and a fourth connection terminal, the third connection terminal and the fourth connection terminal are respectively connected to the wired connection module 150, the third connection terminal is the NO1 pin, and the fourth connection terminal is the NO2 pin. When the Bluetooth module 120 is connected to a first external device and the wired connection module 150 is connected to a second external device, when the earphone preferentially plays the audio transmitted by the Bluetooth module 120, when the VDD_VMB voltage is at a high level (second voltage), the NO2 pin is connected to the COM2 pin, the NO1 pin is connected to the COM1 pin, and the NC2 pin is disconnected from the COM2 pin, and the NC1 pin is disconnected from the COM1 pin, thereby achieving conduction between the speaker module and the main control module 110, allowing the audio transmitted by the Bluetooth module 120 to be played, and achieving disconnection between the speaker module and the wired connection module 150, thereby preventing the leakage current of the second external device from being transmitted to the speaker module through the wired connection module 150, thereby avoiding noise caused by the leakage current of the second external device.
[0063] It is understandable that, referring to Figure 3 The earphone of the embodiment of the present application further includes a first magnetic bead BD25 and a second magnetic bead BD24, the first common end is connected to the first speaker unit 131 through the first magnetic bead BD25, and the second common end is connected to the second speaker unit 132 through the second magnetic bead BD24. The first magnetic bead BD25 and the second magnetic bead BD24 can reduce the interference and ripple between the speaker module and the analog switch module.
[0064] It is understandable that, referring to Figure 3 The earphone of the embodiment of the present application further includes a filter branch, one end of the filter branch is connected to the first connection end, and the other end of the filter branch is connected to the second connection end. The filter branch includes a plurality of resistors and capacitors, and the capacitors and resistors are connected in series in sequence.
[0065] It is understandable that, referring to Figure 3 The earphone of the embodiment of the present application further includes a magnetic bead BD7, a magnetic bead BD8, a TVS diode ESD7 and a TVS diode ESD8. The NO1 pin is connected to the main control module 110 through the magnetic bead BD7, and the NO2 pin is connected to the main control module 110 through the magnetic bead BD8. One end of the filter branch is connected between the magnetic bead BD7 and the main control module 110, and the other end is connected between the magnetic bead BD8 and the main control module 110; one end of the TVS diode ESD8 is connected between the main control module 110 and the magnetic bead BD8, and the other end is grounded; one end of the TVS diode ESD7 is connected between the main control module 110 and the magnetic bead BD7, and the other end is grounded. TVS diode ESD7 and TVS diode ESD8 are used for anti-static.
[0066] Based on the earphones of the above embodiment, a method for controlling the earphones of the embodiment of the present application is proposed. Figure 4 , Figure 4 The method for controlling the earphones of the present invention is applied to the main control module 110 of the earphones of the above-mentioned embodiments, and the method may include but is not limited to step S410 and step S420.
[0067] Step S410, when it is detected that the Bluetooth module 120 is not in communication connection with the first external device and the wired connection module 150 is electrically connected with the second external device, the analog switch module is controlled to disconnect the speaker module from the main control module 110;
[0068] Step S420 , when it is detected that the Bluetooth module 120 is in communication connection with the first external device and the wired connection module 150 is not electrically connected with the second external device, the analog switch module is controlled to conduct between the speaker module and the main control module 110 .
[0069] This application, through step S410 to step S420, when it is detected that the Bluetooth module 120 is not connected to the first external device in communication, and the wired connection module 150 is electrically connected to the second external device, controls the analog switching switch module to disconnect the speaker module from the main control module 110, so as to avoid the speaker module from being directly connected to the main control module 110, and can avoid the leakage current of the main control module 110 from being transmitted to the speaker module, and avoid the speaker module from generating noise due to the leakage current. When it is detected that the Bluetooth module 120 is connected to the first external device in communication, and the wired connection module 150 is not electrically connected to the second external device, controls the analog switching switch module to conduct between the speaker module and the main control module 110, so that when the main control module 110 receives the audio sent by the first external device through the Bluetooth module 120, it can transmit the audio to the speaker module and play it. Therefore, the control method of the earphone of the embodiment of the present application can reduce the risk of noise in the speaker module when the external device is connected to play audio by wired connection.
[0070] It can be understood that in step S410, controlling the analog switch module to disconnect the speaker module from the main control module 110 includes:
[0071] A first voltage is output to the voltage control terminal to control the analog switch module to disconnect the first common terminal from the first connection terminal and disconnect the second common terminal from the second connection terminal.
[0072] It is worth noting that referring to Figure 3 When the VDD_VMB voltage is at a low level (first voltage), the NC2 pin is connected to the COM2 pin, the NC1 pin is connected to the COM1 pin, the NO2 pin is disconnected from the COM2 pin, and the NO1 pin is disconnected from the COM1 pin, thereby realizing the disconnection between the speaker module and the main control module 110.
[0073] In step S420, the analog switch module is controlled to conduct electricity between the speaker module and the main control module 110, including:
[0074] A second voltage is output to the voltage control terminal to control the analog switch module to make the first common terminal and the first connection terminal conductive, and the second common terminal and the second connection terminal conductive.
[0075] It is worth noting that when the VDD_VMB voltage is at a high level (second voltage), the NO2 pin is connected to the COM2 pin, the NO1 pin is connected to the COM1 pin, the NC2 pin is disconnected from the COM2 pin, and the NC1 pin is disconnected from the COM1 pin, thereby achieving conduction between the speaker module and the main control module 110.
[0076] It is understandable that, referring to Figure 5 , Figure 5 This is a flow chart of another embodiment of the earphone control method of the present application. Figure 5 The illustrated step flow includes but is not limited to step S510 to step S530.
[0077] Step S510, when it is detected that the Bluetooth module 120 is in communication connection with the first external device, and the wired connection module 150 is in electrical connection with the second external device, obtaining preset priority information;
[0078] It is worth noting that the preset priority information is stored in the main control module 110. The preset priority information defaults to the priority of the Bluetooth module 120 being lower than the priority of the wired connection module 150, but the user can modify the preset priority information. For example, when the user connects the headset to the mobile phone Bluetooth, a window pops up on the mobile phone screen, the window is used to show the pre-priority information to the user, and the user can click on the window to set the preset priority information.
[0079] Step S520, when it is detected that the priority information indicates that the priority of the Bluetooth module 120 is higher than the priority of the wired connection module 150, outputting a second voltage to the voltage control terminal;
[0080] Step S530 , when it is detected that the priority information indicates that the priority of the Bluetooth module 120 is lower than the priority of the wired connection module 150 , output a first voltage to the voltage control terminal.
[0081] In one embodiment, the wired connection module 150 is provided with a third connection terminal and a fourth connection terminal, the third connection terminal and the fourth connection terminal are respectively connected to the wired connection module 150, the third connection terminal is the NO1 pin, and the fourth connection terminal is the NO2 pin. In step S520, when it is detected that the priority information indicates that the priority of the Bluetooth module 120 is higher than the priority of the wired connection module 150, when the VDD_VMB voltage is at a high level (second voltage), at this time, the NO2 pin is connected to the COM2 pin, the NO1 pin is connected to the COM1 pin, and the NC2 pin is disconnected from the COM2 pin, and the NC1 pin is disconnected from the COM1 pin, so that the speaker module and the main control module 110 are connected, the audio transmitted by the Bluetooth module 120 can be played, and the speaker module and the wired connection module 150 are disconnected, so that the leakage current of the second external device can be prevented from being transmitted to the speaker module through the wired connection module 150, thereby preventing the generation of noise due to the leakage current of the second external device.
[0082] In step S530, when it is detected that the priority information indicates that the priority of the Bluetooth module 120 is lower than the priority of the wired connection module 150, when the VDD_VMB voltage is at a low level (first voltage), the NC2 pin and the COM2 pin are connected, the NC1 pin and the COM1 pin are connected, and the NO2 pin and the COM2 pin are disconnected, and the NO1 pin and the COM1 pin are disconnected, thereby realizing the disconnection between the speaker module and the main control module 110 and the connection between the speaker module and the wired connection module 150, being able to play the audio transmitted by the wired connection module 150, avoiding the direct connection between the speaker module and the main control module 110, avoiding the leakage current of the main control module 110 from being transmitted to the speaker module, and avoiding the speaker module from generating noise due to the leakage current.
[0083] Reference Figure 6 , Figure 6 The third aspect of the present application provides a control system for headphones, which is applied to a main control module 110 of the headphones. The headphones are also provided with a Bluetooth module 120, a wired connection module 150, a speaker module and an analog switch module. The main control module 110 is connected to the Bluetooth module 120 and the wired connection module 150 respectively. The speaker module is connected to the main control module 110 via the analog switch module, and the speaker module is connected to the wired connection module 150.
[0084] The control system includes:
[0085] The disconnection unit 610 is used to control the analog switch module to disconnect the speaker module from the main control module 110 when it is detected that the Bluetooth module 120 is not in communication connection with the first external device and the wired connection module 150 is electrically connected with the second external device;
[0086] The conducting unit 620 is used to control the analog switch module to conduct between the speaker module and the main control module 110 when it is detected that the Bluetooth module 120 is in communication connection with the first external device and the wired connection module 150 is not electrically connected with the second external device.
[0087] The control system is used to execute the control method of the embodiment of the present application. When executing the method, when it is detected that the Bluetooth module 120 is not connected to the first external device in communication, and the wired connection module 150 is electrically connected to the second external device, the analog switching switch module is controlled to disconnect the speaker module from the main control module 110. In this way, the speaker module is prevented from being directly connected to the main control module 110, and the leakage current of the main control module 110 can be prevented from being transmitted to the speaker module, and the speaker module is prevented from generating noise due to the leakage current. When it is detected that the Bluetooth module 120 is connected to the first external device in communication, and the wired connection module 150 is not electrically connected to the second external device, the analog switching switch module is controlled to conduct between the speaker module and the main control module 110, so that when the main control module 110 receives the audio sent by the first external device through the Bluetooth module 120, the audio can be transmitted to the speaker module and played. Therefore, the control method of the earphone of the embodiment of the present application can reduce the risk of noise in the speaker module when the external device is connected to play audio by wired connection.
[0088] In one embodiment, the disconnection unit 610 includes a disconnection subunit, which is used to output a first voltage to the voltage control terminal to control the analog switch module to disconnect the first common terminal from the first connection terminal and the second common terminal from the second connection terminal. The conduction unit 620 includes a conduction subunit, which is used to output a second voltage to the voltage control terminal to control the analog switch module to conduct the first common terminal from the first connection terminal and the second common terminal from the second connection terminal.
[0089] In one embodiment, the control system further includes an acquisition unit, a first output unit and a second output unit.
[0090] The acquisition unit is used to acquire the preset priority information when it is detected that the Bluetooth module 120 is connected to the first external device for communication and the wired connection module 150 is connected to the second external device for electrical communication;
[0091] The first output unit is used to output a first voltage to the voltage control terminal when it is detected that the priority information indicates that the priority of the Bluetooth module 120 is higher than the priority of the wired connection module 150;
[0092] The second output unit is used to output a second voltage to the voltage control terminal when it is detected that the priority information indicates that the priority of the Bluetooth module 120 is lower than the priority of the wired connection module 150 .
[0093] Reference Figure 7 , Figure 7 The fourth aspect of the present application provides an electronic device, the electronic device comprising:
[0094] The processor 701 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0095] The memory 702 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 702, and the processor 701 calls and executes the headset control method of the embodiment of this application;
[0096] Input / output interface 703, used to implement information input and output;
[0097] Communication interface 704, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0098] A bus 705 that transmits information between the various components of the device (e.g., the processor 701, the memory 702, the input / output interface 703, and the communication interface 704);
[0099] The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .
[0100] The fifth aspect of the present application is a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method for controlling the earphones of any one of the first aspect embodiments is implemented.
[0101] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0102] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0103] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0104] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0105] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0106] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0107] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the mapping relationship of the mapping objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next mapping objects are in an "or" relationship. "At least one of the following items" 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 can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0108] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0109] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0110] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0111] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0112] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for controlling a headset, characterized in that: A main control module applied to earphones, the earphones are further provided with a Bluetooth module, a wired connection module, a speaker module and an analog switching switch module, the main control module is connected to the Bluetooth module and the wired connection module respectively, the speaker module is connected to the main control module via the analog switching switch module, and the speaker module is connected to the wired connection module; The method comprises: When it is detected that the Bluetooth module is not in communication connection with the first external device and the wired connection module is electrically connected with the second external device, the analog switch module is controlled to disconnect the speaker module from the main control module; When it is detected that the Bluetooth module is in communication connection with the first external device and the wired connection module is not electrically connected with the second external device, the analog switch module is controlled to conduct between the speaker module and the main control module.
2. The method for controlling the earphone according to claim 1, characterized in that: The analog switch module is provided with a voltage control end, a first common end, a second common end, a first connection end, and a second connection end; the speaker module is provided with a first speaker unit and a second speaker unit; the first common end is connected to the first speaker unit, the second common end is connected to the second speaker unit, and the voltage control end, the first connection end, and the second connection end are respectively connected to the main control module; The step of controlling the analog switch module to disconnect the speaker module from the main control module includes: Outputting a first voltage to the voltage control terminal to control the analog switch module to disconnect the first common terminal from the first connection terminal and disconnect the second common terminal from the second connection terminal; The controlling the analog switch module to make the speaker module and the main control module conductive includes: A second voltage is output to the voltage control terminal to control the analog switch module to connect the first common terminal to the first connection terminal and connect the second common terminal to the second connection terminal; wherein the second voltage is greater than the first voltage.
3. The method for controlling the earphone according to claim 2, characterized in that: Also includes: When it is detected that the Bluetooth module is in communication connection with the first external device, and the wired connection module is in electrical connection with the second external device, obtaining preset priority information; When it is detected that the priority information indicates that the priority of the Bluetooth module is higher than the priority of the wired connection module, outputting a first voltage to the voltage control terminal; When it is detected that the priority information indicates that the priority of the Bluetooth module is lower than the priority of the wired connection module, a second voltage is output to the voltage control terminal.
4. A headset, characterized in that: It includes a Bluetooth module, a wired connection module, a speaker module, an analog switch module and a main control module, wherein the main control module is connected to the Bluetooth module and the wired connection module respectively, the speaker module is connected to the main control module through the analog switch module, and the speaker module is connected to the wired connection module; The main control module is used to control the analog switching switch module to disconnect the speaker module from the main control module when the Bluetooth module is not communicatively connected to the first external device and the wired connection module is electrically connected to the second external device; and to control the analog switching switch module to connect the speaker module to the main control module when the Bluetooth module is communicatively connected to the first external device and the wired connection module is not electrically connected to the second external device.
5. The earphone according to claim 4, characterized in that: The analog switch module is provided with a voltage control end, a first common end, a second common end, a first connection end, and a second connection end, wherein the first common end is connected to the first speaker unit, the second common end is connected to the second speaker unit, and the voltage control end, the first connection end, and the second connection end are respectively connected to the main control module; The analog switching switch module is used to disconnect the first common terminal and the first connection terminal, and disconnect the second common terminal and the second connection terminal when the voltage of the voltage control terminal is a first voltage; and to connect the first common terminal and the first connection terminal, and connect the second common terminal and the second connection terminal when the voltage of the voltage control terminal is a second voltage.
6. The earphone according to claim 5, characterized in that It also includes a first magnetic bead and a second magnetic bead, the first common end is connected to the first speaker unit through the first magnetic bead, and the second common end is connected to the second speaker unit through the second magnetic bead.
7. The earphone according to claim 5, characterized in that It also includes a filter branch, one end of which is connected to the first connection end, and the other end of which is connected to the second connection end.
8. A headset control system, characterized in that: A main control module applied to earphones, the earphones are further provided with a Bluetooth module, a wired connection module, a speaker module and an analog switching switch module, the main control module is connected to the Bluetooth module and the wired connection module respectively, the speaker module is connected to the main control module via the analog switching switch module, and the speaker module is connected to the wired connection module; The system comprises: a disconnection unit, configured to control the analog switch module to disconnect the speaker module from the main control module when detecting that the Bluetooth module is not in communication connection with the first external device and the wired connection module is electrically connected with the second external device; The conduction unit is used to control the analog switching module to conduct between the speaker module and the main control module when it is detected that the Bluetooth module is connected to the first external device for communication and the wired connection module is not electrically connected to the second external device.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the headset control method according to any one of claims 1 to 3 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for controlling the headset according to any one of claims 1 to 3 is implemented.