Method, apparatus and device for switching and branching, and storage medium
By detecting and matching the charging protocol, and controlling the switching circuit and DC-DC conversion circuit, the interference problem when the adapter is used for charging and audio simultaneously is solved, achieving high-efficiency charging and audio output compatibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHUHAI MEGAIN TECH CO LTD
- Filing Date
- 2022-11-29
- Publication Date
- 2026-06-02
AI Technical Summary
Existing adapters cause interference between charging and audio data transmission when charging and external audio are connected simultaneously, and their charging performance is poor for different brands of mobile devices.
By detecting the connection status of the external interface circuit, reading the audio data and matching the charging protocol, controlling the dual-circuit on/off of the switch control circuit, generating the corresponding on/off voltage, using the DC-DC conversion circuit to generate the charging voltage, and performing audio signal conversion and superposition to achieve audio analog signal output and charging.
It enables mobile devices to charge and play audio simultaneously while reducing interference, improving charging efficiency and audio quality, and adapting to the charging needs of different brands of devices.
Smart Images

Figure CN115802241B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of terminal technology, and in particular to a switching and splitting method, apparatus, device, and storage medium. Background Technology
[0002] Portable electronic devices are popular with the market and consumers due to their ease of use, adaptability, and powerful functions. With the increasing trend towards lighter and more modular devices, more and more electronic products are adopting Type-C or Lightning interfaces for charging, eliminating the traditional 3.5mm headphone jack. Their charging and audio output interfaces are now combined, meaning this interface can be used for both charging and connecting external audio devices. However, because electronic devices share a single interface for audio output and charging, they can only be used when connected to a charger or headphones for audio playback; they cannot support both charging and audio playback simultaneously.
[0003] Currently, external adapters are used to meet users' needs for charging and connecting external audio devices. However, the multiplexing method of existing adapters causes interference between charging and audio data transmission when charging and connecting external audio devices simultaneously, and the charging effect is poor for different brands of mobile devices. In other words, existing adapters are not very effective for charging mobile devices and connecting external audio devices. Summary of the Invention
[0004] The main objective of this invention is to solve the problem of poor charging performance for mobile devices and poor performance for connecting external audio devices using existing adapters.
[0005] The first aspect of the present invention provides a switching and branching method, comprising: the switching and branching device including an external interface circuit, a DC-DC conversion circuit, and a switch control circuit; the switching and branching method comprising: when the interface connection state of the external interface circuit is detected to be a preset dual-connection state, reading audio data corresponding to the mobile device connected to the external interface circuit; detecting and reading the voltage value of the pin corresponding to the audio data to obtain the audio pin voltage, and matching the charging protocol corresponding to the mobile device according to the audio pin voltage; controlling the dual-branching on / off of the switch control circuit, and generating a corresponding on / off voltage according to the result of the dual-branching on / off, and performing signal conversion and audio superposition on the audio data to obtain an audio analog signal; generating a corresponding DC charging voltage using the DC-DC conversion circuit according to the on / off voltage, outputting the audio analog signal, and charging the mobile device according to the DC charging voltage.
[0006] Optionally, in a first implementation of the first aspect of the present invention, the external interface circuit includes a charging interface and an audio interface. Before reading the audio data corresponding to the mobile device connected to the external interface circuit when the interface connection state of the external interface circuit is detected to be a preset dual-connection state, the method includes: using the main control circuit to perform a transfer authentication on the charging interface and the audio interface, and selecting a charging interface and an audio interface that meet preset transfer conditions based on the authentication result; detecting the input voltage value of the power pin in the charging interface, and detecting whether the audio interface receives a data exchange command; if the input voltage value is a preset voltage value and the audio interface receives a data exchange command, then determining that the interface connection state of the external interface circuit is a preset dual-connection state.
[0007] Optionally, in a second implementation of the first aspect of the present invention, the step of detecting and reading the voltage value of the pin corresponding to the audio data, obtaining the audio pin voltage, and matching the charging protocol corresponding to the mobile device based on the audio pin voltage includes: generating multiple sets of test voltage signals using the external interface circuit based on the dual-connection state, and performing voltage matching on the pin corresponding to the audio data using each of the test voltage signals to obtain the audio pin voltage; determining the charging voltage value and charging identifier corresponding to the mobile device based on the audio pin voltage; and matching multiple charging protocols corresponding to the mobile device based on the charging voltage value and the charging identifier.
[0008] Optionally, in a third implementation of the first aspect of the present invention, the switch control circuit includes a first switch circuit and a second switch circuit, and the control of the dual-circuit switching of the switch control circuit includes: reading the input voltage signal of the charging interface in the external interface circuit; matching the corresponding charging voltage value in the charging protocol according to the input voltage signal, and generating a first switch control signal and a second switch control signal based on the charging voltage value; using the first switch control signal to control the switching of the first switch circuit and using the second switch control signal to control the switching of the second switch circuit.
[0009] Optionally, in a fourth implementation of the first aspect of the present invention, the external adapter further includes a main control circuit, the audio analog signal includes a first audio analog signal and a second audio analog signal, and the step of performing signal conversion and audio superposition on the audio data to obtain the audio analog signal includes: using the main control circuit to perform analog-to-digital conversion on the audio data to obtain a corresponding initial audio analog signal; determining whether the noise reduction function corresponding to the adapter / splitter is enabled; if the noise reduction function corresponding to the adapter / splitter is enabled, detecting the branch noise signal in the environment of the adapter / splitter; using the branch noise signal to superimpose the initial audio analog signal to obtain a noise-reduced analog signal, and performing mixing and left / right channel frequency division processing on the noise-reduced analog signal to obtain a first audio analog signal; if the noise reduction function corresponding to the adapter / splitter is not enabled, performing mixing and left / right channel frequency division processing on the initial audio analog signal to obtain a second audio analog signal.
[0010] Optionally, in a fifth implementation of the first aspect of the present invention, the DC-DC conversion circuit includes a first DC-DC conversion circuit and a second DC-DC conversion circuit, the DC charging voltage includes a first DC charging voltage and a second DC charging voltage, and the step of generating a corresponding DC charging voltage using the DC-DC conversion circuit according to the on / off voltage includes: detecting whether the on / off voltage is greater than a threshold voltage; if the on / off voltage is not greater than the threshold voltage, then using the first DC-DC conversion circuit to perform DC boost to obtain a first DC voltage, and using the first DC voltage as the first DC charging voltage; if the on / off voltage is greater than the threshold voltage, then using the first DC-DC conversion circuit to perform primary DC boost to obtain a second DC voltage, and using the second DC-DC conversion circuit to perform secondary DC boost to obtain a third DC voltage; and generating a second DC charging voltage based on the second DC voltage and the third DC voltage.
[0011] Optionally, in a sixth implementation of the first aspect of the present invention, the step of using the first DC-DC converter circuit to perform DC boosting to obtain a first DC voltage includes: using the first DC-DC converter circuit to perform DC boosting on the on / off voltage according to the on / off voltage to obtain an initial boost voltage; performing voltage division calculation on the initial boost voltage using a preset feedback resistor ratio based on the on / off voltage, and performing voltage stabilization filtering on the result of the voltage division calculation to obtain the first DC voltage.
[0012] A second aspect of the present invention provides a switching and branching device, comprising: a data reading module, configured to read audio data corresponding to a mobile device connected to the external interface circuit when the interface connection state of the external interface circuit is detected to be a preset dual-connection state; a protocol matching module, configured to detect the voltage value of the pin corresponding to the audio data, obtain the audio pin voltage, and match the charging protocol corresponding to the mobile device according to the audio pin voltage; a circuit conduction module, configured to control the dual-branch on / off state of the switch control circuit, generate a corresponding on / off voltage according to the result of the dual-branch on / off state, and perform signal conversion and audio superposition on the audio data to obtain an audio analog signal; and a multiplexing output module, configured to generate a corresponding DC charging voltage using the DC-DC conversion circuit according to the on / off voltage, output the audio analog signal, and charge the mobile device according to the DC charging voltage.
[0013] Optionally, in the first implementation of the second aspect of the present invention, an interface detection module is further included before the data reading module. The interface detection module includes: an authentication unit, used to perform transfer authentication on the charging interface and the audio interface using the main control circuit, and select the charging interface and audio interface that meet the preset transfer conditions based on the authentication result; an input detection unit, used to detect the input voltage value of the power pin in the charging interface, and detect whether the audio interface receives a data exchange command; and a connection judgment unit, used to determine that the interface connection state of the external interface circuit is a preset dual connection state if the input voltage value is a preset voltage value and the audio interface receives a data exchange command.
[0014] Optionally, in a second implementation of the second aspect of the present invention, the protocol matching module includes: a voltage matching unit, configured to generate multiple sets of test voltage signals using the external interface circuit based on the dual-connection state, and to perform voltage matching on the pin corresponding to the audio data read using each of the test voltage signals to obtain an audio pin voltage; an identifier determination unit, configured to determine the charging voltage value and charging identifier corresponding to the mobile device based on the audio pin voltage; and a protocol matching unit, configured to match multiple charging protocols corresponding to the mobile device based on the charging voltage value and the charging identifier.
[0015] Optionally, in a third implementation of the second aspect of the present invention, the circuit conduction module includes: a voltage reading unit for reading the input voltage signal of the charging interface in the external interface circuit; a signal generation unit for matching the corresponding charging voltage value in the charging protocol according to the input voltage signal, and generating a first switch control signal and a second switch control signal based on the charging voltage value; and a switch control unit for controlling the first switch circuit to open and close using the first switch control signal and controlling the second switch circuit to open and close using the second switch control signal.
[0016] Optionally, in a fourth implementation of the second aspect of the present invention, the circuit conduction module further includes: an analog-to-digital conversion unit, used to perform analog-to-digital conversion on the audio data using the main control circuit to obtain a corresponding initial audio analog signal; a condition determination unit, used to determine whether the noise reduction function corresponding to the switching device is enabled; a noise reduction enabling unit, used to detect the branch noise signal in the environment of the switching device if the noise reduction function corresponding to the switching device is enabled; a first optimization unit, used to superimpose the initial audio analog signal using the branch noise signal to obtain a noise-reduced analog signal, and to perform mixing and left / right channel frequency division processing on the noise-reduced analog signal to obtain a first audio analog signal; and a second optimization unit, used to perform mixing and left / right channel frequency division processing on the initial audio analog signal if the noise reduction function corresponding to the switching device is not enabled to obtain a second audio analog signal.
[0017] Optionally, in a fifth implementation of the second aspect of the present invention, the multiplexing output module includes: a numerical detection unit for detecting whether the on / off voltage is greater than a threshold voltage; a first boost unit for performing DC boosting using the first DC-DC conversion circuit to obtain a first DC voltage if the on / off voltage is not greater than the threshold voltage, and using the first DC voltage as a first DC charging voltage; a second boost unit for performing primary DC boosting using the first DC-DC conversion circuit to obtain a second DC voltage if the on / off voltage is greater than the threshold voltage, and performing secondary DC boosting using the second DC-DC conversion circuit based on the second DC voltage to obtain a third DC voltage; and a voltage superposition unit for generating a second DC charging voltage based on the second DC voltage and the third DC voltage.
[0018] Optionally, in a sixth implementation of the second aspect of the present invention, the first boost unit includes: using the first DC-DC converter circuit to boost the on / off voltage according to the on / off voltage to obtain an initial boost voltage; using a preset feedback resistor ratio to perform voltage division calculation on the initial boost voltage according to the on / off voltage, and performing voltage stabilization filtering on the result of the voltage division calculation to obtain a first DC voltage.
[0019] A third aspect of the present invention provides a switching and splitting device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor invokes the instructions in the memory to cause the switching and splitting device to perform the various steps of the above-described switching and splitting method.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the steps of the above-described switching and decoupling method.
[0021] The technical solution provided by this invention is used for a switching device, which includes an external interface circuit, a DC-DC conversion circuit, and a switch control circuit. When the interface connection state of the external interface circuit is detected to be a preset dual-connection state, the audio data corresponding to the mobile device connected to the external interface circuit is read; the voltage value of the corresponding pin of the audio data is detected and read to obtain the audio pin voltage, and the charging protocol corresponding to the mobile device is matched according to the audio pin voltage; the dual-spin-off of the switch control circuit is controlled, and the corresponding on / off voltage is generated according to the result of the dual-spin-off, and the audio data is converted and superimposed to obtain an audio analog signal; according to the on / off voltage, the DC-DC conversion circuit generates a corresponding DC charging voltage, and the audio analog signal is output, and the mobile device is charged according to the DC charging voltage. Compared to existing technologies, this application determines the connection status of the current switching device, reads the corresponding audio data and the charging protocol of the mobile device, and then performs digital-to-analog conversion and noise reduction on the audio data. At the same time, according to the charging protocol, it controls the corresponding DC-DC conversion circuit to generate the corresponding charging voltage, and then outputs the processed audio data and charging voltage, thereby achieving matching the corresponding charging voltage and outputting the corresponding audio data for different devices. Attached Figure Description
[0022] Figure 1 This is a schematic diagram of the first embodiment of the switching and branching method in this invention;
[0023] Figure 2 This is a schematic diagram of a second embodiment of the switching and branching method in this invention;
[0024] Figure 3 This is a schematic diagram of a third embodiment of the switching and branching method in this invention;
[0025] Figure 4 This is a schematic diagram of one embodiment of the switching and branching device in this invention;
[0026] Figure 5 This is a schematic diagram of another embodiment of the switching and branching device in this invention;
[0027] Figure 6 This is a schematic diagram of one embodiment of the switching and branching device in this invention. Detailed Implementation
[0028] This invention provides a switching and branching method, apparatus, device, and storage medium. The method includes: when the interface connection state of the external interface circuit is detected to be a preset dual-connection state, reading audio data corresponding to the mobile device connected to the external interface circuit; detecting and reading the voltage value of the corresponding pin of the audio data to obtain the audio pin voltage, and matching the charging protocol corresponding to the mobile device according to the audio pin voltage; controlling the dual-branch on / off state of the switch control circuit, and generating a corresponding on / off voltage according to the result of the dual-branch on / off state; performing signal conversion and audio superposition on the audio data to obtain an audio analog signal; generating a corresponding DC charging voltage using the DC-DC conversion circuit according to the on / off voltage, outputting the audio analog signal, and charging the mobile device according to the DC charging voltage. This application achieves the switching and multiplexing effect of simultaneously charging the mobile device and connecting to an external audio device.
[0029] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 The first embodiment of the switching and splitting method in this invention includes:
[0031] 101. When the interface connection status of the external interface circuit is detected to be a preset dual connection status, read the audio data corresponding to the mobile device connected to the external interface circuit.
[0032] It is understood that the executing entity of this invention can be a switching and splitting device, a terminal, or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.
[0033] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0034] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0035] In this embodiment, the adapter / splitter device refers to a device that splits the data output from the interface of a mobile device (such as a mobile phone, tablet, etc.) to achieve the effect of simultaneous charging and listening to music; the external interface circuit refers to the interface used by the adapter / splitter device to connect with the mobile device, charging device, and audio device; the DC-DC conversion circuit is a circuit that converts the circuit provided by the external charging device into the voltage required for charging the mobile device; the switch control circuit refers to the control circuit used to control whether the DC-DC conversion circuit works; and the dual connection state refers to the simultaneous connection of the audio device and the charging device to the adapter / splitter device.
[0036] In practical applications, the input voltage value of the power pin in the charging interface is detected, as well as whether the audio interface receives a data exchange command. If the input voltage value is a preset voltage value and the audio interface receives a data exchange command, the interface connection status of the external interface circuit is determined to be a preset dual connection status. When the interface connection status of the external interface circuit is detected to be a preset dual connection status, the audio data transmitted by the mobile device is read using the data exchange pin of the connection interface between the adapter and the mobile device.
[0037] 102. Detect the voltage value of the pin corresponding to the audio data to obtain the audio pin voltage, and match the charging protocol corresponding to the mobile device based on the audio pin voltage;
[0038] In this embodiment, the charging protocol refers to the protocol used by different brands of mobile devices when charging. Only when the corresponding charging protocol is matched can the mobile device better match the required voltage and current for charging.
[0039] In practical applications, based on the dual-connection state, multiple sets of test voltage signals are generated using the external interface circuit, and the voltage of the corresponding pin for reading audio data is matched using each test voltage signal to obtain the audio pin voltage; then, based on the audio pin voltage, the charging voltage value and charging indicator corresponding to the mobile device are determined; thus, based on the charging voltage value and charging indicator, multiple charging protocols corresponding to the mobile device are matched.
[0040] 103. Control the switching circuit to control the dual-circuit on / off state, and generate the corresponding on / off voltage based on the result of the dual-circuit on / off state, as well as perform signal conversion and audio superposition on the audio data to obtain the audio analog signal;
[0041] In this embodiment, the dual-circuit conduction refers to the conduction of both the corresponding switch control circuit connected to the mobile device and the corresponding switch control circuit connected to the charging device. The connection status controls the continuity of these circuits. When the charging device is not connected, only the switch control circuit connected to the mobile device is activated, allowing the entire device to operate normally. When the charging device is connected, both circuits are activated, enabling the charging device to charge the mobile device. Furthermore, by performing analog-to-digital conversion and noise reduction on the digital audio signal transmitted by the mobile device, a cleaner analog audio signal can be played.
[0042] In practical applications, the input voltage signal of the external interface circuit is read according to the charging protocol; and a switch control signal is generated based on the input voltage signal; then, the first switch control signal is used to control the on / off state of the first switch circuit, and the second switch control signal is used to control the on / off state of the second switch circuit; the audio data is converted from analog to digital by the main control circuit to obtain the corresponding initial audio analog signal; then, it is determined whether the noise reduction function of the corresponding adapter is enabled; if the noise reduction function of the corresponding adapter is enabled, the branch noise signal in the environment of the adapter is detected, and then the initial audio analog signal is superimposed using the branch noise signal to obtain the noise-reduced analog signal, and the noise-reduced analog signal is mixed and divided into left and right channels to obtain the first audio analog signal; if the noise reduction function of the corresponding adapter is not enabled, the initial audio analog signal is mixed and divided into left and right channels to obtain the second audio analog signal, wherein each audio analog signal includes the first audio analog signal and the second audio analog signal.
[0043] 104. Based on the on / off voltage, a DC-DC converter circuit is used to generate a corresponding DC charging voltage, and an audio analog signal is output, and the mobile device is charged according to the DC charging voltage.
[0044] In this embodiment, the charging voltage corresponding to the charging protocol of the mobile device is generated according to the corresponding power-on voltage, thereby realizing fast charging of the mobile device. Furthermore, the adapter circuit device is used to enable the mobile device to charge and play audio simultaneously, while also ensuring fast charging and high-quality audio output.
[0045] In practical applications, the on / off voltage is detected to be greater than a threshold voltage. If the on / off voltage is not greater than the threshold voltage, a first DC-DC converter circuit is used to boost the DC voltage to obtain a first DC voltage. That is, based on the on / off voltage, the first DC-DC converter circuit is used to boost the DC voltage to obtain an initial boost voltage. Based on the on / off voltage and using a preset feedback resistor ratio, the initial boost voltage is divided and calculated, and the result of the voltage division calculation is regulated and filtered to obtain the first DC voltage, which is used as the first DC charging voltage. If the on / off voltage is greater than the threshold voltage, the first DC-DC converter circuit is used to boost the primary DC voltage to obtain a second DC voltage. Based on the second DC voltage, the second DC-DC converter circuit is used to boost the secondary DC voltage to obtain a third DC voltage. Based on the second and third DC voltages, a second DC charging voltage is generated, which includes the first and second DC charging voltages. Then, the audio analog signal is output, and the mobile device is charged according to the DC charging voltage.
[0046] In this embodiment of the invention, the present application is used for a switching device, which includes an external interface circuit, a DC-DC conversion circuit, and a switch control circuit. When the interface connection state of the external interface circuit is detected to be a preset dual-connection state, the audio data corresponding to the mobile device connected to the external interface circuit is read; the voltage value of the corresponding pin of the audio data is detected and read to obtain the audio pin voltage, and the charging protocol corresponding to the mobile device is matched according to the audio pin voltage; the dual-spin-off of the switch control circuit is controlled, and the corresponding on / off voltage is generated according to the result of the dual-spin-off, and the audio data is converted and superimposed to obtain an audio analog signal; according to the on / off voltage, the DC-DC conversion circuit generates a corresponding DC charging voltage, and the audio analog signal is output, and the mobile device is charged according to the DC charging voltage. Compared to existing technologies, this application determines the connection status of the current adapter / splitter, reads the corresponding audio data and the charging protocol of the mobile device, and then performs digital-to-analog conversion and noise reduction on the audio data. Simultaneously, according to the charging protocol, it controls the corresponding DC-DC conversion circuit to generate the corresponding charging voltage, and then outputs the processed audio data and charging voltage. This achieves matching the corresponding charging voltage and outputting the corresponding audio data for different devices, and realizes noise reduction processing of the output audio signal. Pure audio output can be achieved without special noise-canceling headphones, expanding the application scenarios of the adapter / splitter.
[0047] Please see Figure 2 The second embodiment of the switching and splitting method in this invention includes:
[0048] 201. Use the main control circuit to perform conversion authentication on the charging interface and audio interface, and select the charging interface and audio interface that meet the preset conversion conditions based on the authentication result.
[0049] In this embodiment, the conversion function of the line is verified by the charging data line connected to the current conversion splitter and the audio data line connected to the audio interface. The corresponding charging verification information is sent to the corresponding verification pin of the charging data line to check whether the current charging data line meets the charging requirements (such as whether it is working normally or whether it is another type of data line). The corresponding audio verification information is sent to the corresponding verification pin of the audio data line to check whether the current audio data line meets the audio transmission and playback functions (such as whether it transmits data normally or whether it is working normally).
[0050] 202. Detect the input voltage value of the power pin in the charging interface, and detect whether the audio interface has received a data exchange command;
[0051] In this embodiment, the charging interface refers to a Type-C interface or a Lightning interface, etc.; the audio interface refers to a Type-C interface, a Lightning interface, or a 3.5mm headphone jack, etc.; and the data exchange command refers to the connection identification that occurs between the audio interface and external audio data when the audio interface is connected, checking whether the currently connected device is an audio device.
[0052] In practical applications, the voltage of the power pin in the charging interface of the external interface circuit is detected to determine whether the current voltage of the power pin is higher than the threshold voltage, and whether the audio interface has received a data exchange command.
[0053] 203. If the input voltage value is the preset voltage value and the audio interface receives a data exchange command, then the interface connection status of the external interface circuit is determined to be the preset dual connection status.
[0054] In this embodiment, if the input voltage value is a preset voltage value (i.e., the input voltage value of the power pin in the charging interface exceeds the threshold voltage value), and the audio interface receives a data exchange command, then the interface connection state of the external interface circuit is determined to be a preset dual connection state.
[0055] 204. Based on the dual-connection state, multiple sets of test voltage signals are generated using the external interface circuit, and the voltage of the corresponding pin for reading audio data is matched using each test voltage signal to obtain the audio pin voltage.
[0056] In this embodiment, when the interface connection state of the external interface circuit is detected to be a preset dual connection state, multiple sets of test voltage signals are generated by the external interface circuit according to the preset test voltage generation strategy to detect the charging protocol of the mobile device. Then, the voltage of the corresponding pin for reading audio data is matched by each test voltage signal to obtain the audio pin voltage.
[0057] 205. Determine the charging voltage and charging indicator for the mobile device based on the audio pin voltage;
[0058] In this embodiment, the charging identifier of the current mobile device model is identified based on the audio pin voltage, and the charging voltage value of the corresponding mobile device model is matched with the audio pin voltage. For example, Qualcomm's QC protocol fast charging is completed by D+ and D- to different voltage values, and different audio pin voltages correspond to the voltage value of a corresponding charging protocol.
[0059] 206. Match multiple charging protocols corresponding to the mobile device based on the charging voltage value and charging identifier;
[0060] In this embodiment, based on the charging identifier of the charging voltage value mentioned above, the corresponding mobile device model is matched using the corresponding protocol voltage correspondence table, and the charging protocol supported by the model is determined.
[0061] 207. Control the switching circuit to control the dual-circuit on / off state, and generate the corresponding on / off voltage based on the result of the dual-circuit on / off state, as well as perform signal conversion and audio superposition on the audio data to obtain the audio analog signal;
[0062] 208. Based on the on / off voltage, a DC-DC converter circuit is used to generate a corresponding DC charging voltage, and an audio analog signal is output, and the mobile device is charged according to the DC charging voltage.
[0063] In this embodiment of the invention, the input voltage value of the power pin in the charging interface is detected, and whether the audio interface receives a data exchange command is also detected. If the input voltage value is a preset voltage value and the audio interface receives a data exchange command, the interface connection state of the external interface circuit is determined to be a preset dual-connection state. Based on the dual-connection state, multiple sets of test voltage signals are generated using the external interface circuit, and the voltage of the corresponding pin for reading audio data is matched using each test voltage signal to obtain the audio pin voltage. Based on the audio pin voltage, the charging voltage value and charging identifier corresponding to the mobile device are determined. Based on the charging voltage value and charging identifier, multiple charging protocols corresponding to the mobile device are matched. Compared with the prior art, this application detects the interface connection status of the adapter and splitter device, and based on the detection results, obtains the corresponding audio data and the charging protocol of the mobile device under the dual-connection state, thereby achieving the matching of corresponding fast charging voltages for different mobile devices and realizing the multiplexing of fast charging and music playback for mobile devices.
[0064] Please see Figure 3 The third embodiment of the switching and splitting method in this invention includes:
[0065] 301. When the interface connection status of the external interface circuit is detected to be a preset dual connection status, read the audio data corresponding to the mobile device connected to the external interface circuit.
[0066] 302. Detect the voltage value of the pin corresponding to the audio data to obtain the audio pin voltage, and match the charging protocol corresponding to the mobile device based on the audio pin voltage;
[0067] 303. Read the input voltage signal of the charging interface in the external interface circuit;
[0068] In this embodiment, the first input voltage of the charging interface in the external interface circuit and the second input voltage of the charging interface connecting the external interface circuit and the mobile device are read. Based on the first input voltage, the surplus / deficit voltage of the mobile device is determined. The difference between the surplus / deficit voltage and the second input voltage is compared to determine the corresponding input voltage signal.
[0069] 304. Based on the input voltage signal, match the corresponding charging voltage value in the charging protocol, and generate a first switch control signal and a second switch control signal based on the charging voltage value;
[0070] In this embodiment, based on the input voltage signal, the charging protocol described above is used to match the charging voltage value of the corresponding voltage range, and it is determined whether the charging voltage value is not lower than the preset charging voltage threshold. If so, a first switch control signal is generated; otherwise, a second switch control signal is generated.
[0071] 305. The first switch control signal is used to control the on / off state of the first switch circuit, and the second switch control signal is used to control the on / off state of the second switch circuit.
[0072] In this embodiment, a first switch control signal is used to control the on / off state of the first switch circuit, and a second switch control signal is used to control the on / off state of the second switch circuit. That is, the charging on / off state of the first switch circuit is controlled according to the on / off command of the first switch control signal, and the charging on / off state of the second switch circuit is controlled according to the on / off command of the second switch control signal.
[0073] 306. Use the main control circuit to perform analog-to-digital conversion on the audio data to obtain the corresponding initial audio analog signal;
[0074] In this embodiment, the main control circuit is used to perform analog-to-digital conversion on the audio data, converting the digital audio baseband signal into the corresponding analog audio signal. By quantizing and encoding the audio baseband signal, the corresponding initial analog audio signal is obtained.
[0075] 307. Determine whether the noise reduction function of the corresponding switching and branching equipment is enabled;
[0076] In this embodiment, the noise reduction function switch corresponding to the switching and branching device is turned on.
[0077] 308. If the noise reduction function corresponding to the switching device is enabled, then detect the switching noise signal in the environment of the switching device.
[0078] In this embodiment, if the noise reduction function of the switching device is enabled, the corresponding microphone in the switching device is used to collect the ambient noise signal, and the main control chip is used to analyze the current noise signal of the device. The ambient noise signal and the current noise signal are then superimposed to generate the split noise signal.
[0079] 309. Using the split noise signal, the initial audio analog signal is superimposed to obtain the noise-reduced analog signal, and the noise-reduced analog signal is mixed and divided into left and right channels to obtain the first audio analog signal.
[0080] In this embodiment, based on the branch noise signal, the switching and branching device generates a corresponding reverse noise signal with opposite amplitude according to the characteristics of the noise signal. Then, using the reverse noise signal obtained by the above processing and the initial analog audio signal, the noise signal is used to perform noise reduction and superposition operation on the initial analog audio signal, thereby eliminating the noise influence in the initial analog audio signal. The signal after noise reduction and superposition operation is then mixed and divided into left and right channels according to the left and right channels to obtain the first audio output signal.
[0081] 310. If the noise reduction function of the switching device is not enabled, the initial audio analog signal is mixed and the left and right channels are divided to obtain the second audio analog signal.
[0082] In this embodiment, if the noise reduction function corresponding to the switching device is not enabled, the initial audio analog signal is mixed and the left and right channels are divided according to the left and right channel division method to obtain the second audio analog signal.
[0083] 311. Check whether the switching voltage is greater than the threshold voltage;
[0084] In this embodiment, it is detected whether the on / off voltage is greater than the threshold voltage.
[0085] 312. If the switching voltage is not greater than the threshold voltage, the first DC-DC converter circuit is used to boost the DC voltage to obtain the first DC voltage, and the first DC voltage is used as the first DC charging voltage.
[0086] In this embodiment, if the on / off voltage is not greater than the threshold voltage, the first DC-DC converter circuit is used to perform DC boost. That is, based on the on / off voltage, the first DC-DC converter circuit is used to perform DC boost to obtain the initial boost voltage. Then, based on the on / off voltage and using the preset feedback resistor ratio, the initial boost voltage is divided and calculated. The result of the voltage division calculation is then regulated and filtered to obtain the first DC voltage, which is used as the first DC charging voltage.
[0087] 313. If the switching voltage is greater than the threshold voltage, the first DC-DC converter circuit is used to perform primary DC boost to obtain the second DC voltage, and based on the second DC voltage, the second DC-DC converter circuit is used to perform secondary DC boost to obtain the third DC voltage.
[0088] In this embodiment, if the switching voltage is greater than the threshold voltage, a primary DC-DC boost is performed using the first DC-DC conversion circuit. That is, an initial boost voltage is obtained by using the first DC-DC conversion circuit to perform DC-DC boost. Then, a second DC voltage is obtained by using a preset feedback resistor ratio to perform voltage division calculation on the initial boost voltage. Then, based on the first DC voltage, a secondary DC-DC boost is performed using the second DC-DC conversion circuit. That is, an initial boost voltage is obtained by using the second DC-DC conversion circuit to perform DC-DC boost. Then, a third DC voltage is obtained by using a preset feedback resistor ratio to perform voltage division calculation on the initial boost voltage.
[0089] 314. Based on the second DC voltage and the third DC voltage, generate the second DC charging voltage.
[0090] In this embodiment, based on the aforementioned second DC voltage and third DC voltage, voltage superposition calculation is performed to obtain the second DC charging voltage; then, the audio analog signal is output, and the mobile device is charged according to the DC charging voltage.
[0091] In this embodiment of the invention, the input voltage signal of the external interface circuit is read according to the charging protocol; and a switch control signal is generated based on the input voltage signal; the first switch control signal is used to control the on / off state of the first switch circuit, and the second switch control signal is used to control the on / off state of the second switch circuit; the main control circuit performs analog-to-digital conversion on the audio data to obtain the corresponding initial audio analog signal; it is determined whether the noise reduction function corresponding to the adapter / splitter is enabled; if the noise reduction function corresponding to the adapter / splitter is enabled, the branch noise signal in the environment of the adapter / splitter is detected; the initial audio analog signal is superimposed using the branch noise signal to obtain the noise-reduced analog signal, and the noise-reduced analog signal is mixed and divided into left and right channels to obtain the first audio analog signal; if the noise reduction function corresponding to the adapter / splitter is not enabled, the initial audio analog signal is mixed and divided into left and right channels to obtain the second audio analog signal; based on the on / off voltage, the DC-DC conversion circuit generates the corresponding DC charging voltage, and the audio analog signal is output, and the mobile device is charged based on the DC charging voltage. Compared to existing technologies, this application utilizes a corresponding charging protocol, a switch control signal, and a DC-DC conversion circuit to generate a corresponding charging voltage. It also performs analog-to-digital conversion and noise reduction on the transmitted audio data, thereby maintaining fast charging of mobile devices while ensuring the output of high-fidelity audio signals, achieving efficient multiplexing of charging and audio output for mobile devices.
[0092] The switching and branching method in the embodiments of the present invention has been described above. The switching and branching device in the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 4 One embodiment of the switching and branching device in this invention includes:
[0093] The data reading module 401 is used to read the audio data corresponding to the mobile device connected to the external interface circuit when the interface connection status of the external interface circuit is detected to be a preset dual connection status.
[0094] The protocol matching module 402 is used to detect the voltage value of the pin corresponding to the audio data, obtain the audio pin voltage, and match the charging protocol corresponding to the mobile device according to the audio pin voltage.
[0095] The circuit conduction module 403 is used to control the dual-circuit on / off of the switch control circuit, generate corresponding on / off voltages based on the results of the dual-circuit on / off, and perform signal conversion and audio superposition on the audio data to obtain an audio analog signal.
[0096] The multiplexed output module 404 is used to generate a corresponding DC charging voltage using the DC-DC conversion circuit according to the on / off voltage, output the audio analog signal, and charge the mobile device according to the DC charging voltage.
[0097] In this embodiment of the invention, the present application is used for a switching device, which includes an external interface circuit, a DC-DC conversion circuit, and a switch control circuit. When the interface connection state of the external interface circuit is detected to be a preset dual-connection state, the audio data corresponding to the mobile device connected to the external interface circuit is read; the voltage value of the corresponding pin of the audio data is detected and read to obtain the audio pin voltage, and the charging protocol corresponding to the mobile device is matched according to the audio pin voltage; the dual-spin-off of the switch control circuit is controlled, and the corresponding on / off voltage is generated according to the result of the dual-spin-off, and the audio data is converted and superimposed to obtain an audio analog signal; according to the on / off voltage, the DC-DC conversion circuit generates the corresponding DC charging voltage, and the audio analog signal is output, and the mobile device is charged according to the DC charging voltage. Compared with the prior art, the present application determines the connection state of the current switching device, reads the corresponding audio data and the charging protocol of the mobile device, and then performs digital-to-analog conversion and noise reduction processing on the audio data. At the same time, according to the charging protocol, the corresponding DC-DC conversion circuit is controlled to generate the corresponding charging voltage, and then the processed audio data and charging voltage are output, thereby realizing the matching of the corresponding charging voltage and the output of the corresponding audio data for different devices.
[0098] Please see Figure 5 Another embodiment of the switching and branching device in this invention includes:
[0099] The data reading module 401 is used to read the audio data corresponding to the mobile device connected to the external interface circuit when the interface connection status of the external interface circuit is detected to be a preset dual connection status.
[0100] The protocol matching module 402 is used to detect the voltage value of the pin corresponding to the audio data, obtain the audio pin voltage, and match the charging protocol corresponding to the mobile device according to the audio pin voltage.
[0101] The circuit conduction module 403 is used to control the dual-circuit on / off of the switch control circuit, generate corresponding on / off voltages based on the results of the dual-circuit on / off, and perform signal conversion and audio superposition on the audio data to obtain an audio analog signal.
[0102] The multiplexed output module 404 is used to generate a corresponding DC charging voltage using the DC-DC conversion circuit according to the on / off voltage, output the audio analog signal, and charge the mobile device according to the DC charging voltage.
[0103] Furthermore, an interface detection module 405 is included before the data reading module 401, and the interface detection module 405 includes:
[0104] The authentication unit 4051 is used to perform connection authentication on the charging interface and the audio interface using the main control circuit, and select the charging interface and audio interface that meet the preset connection conditions based on the authentication result.
[0105] The input detection unit 4052 is used to detect the input voltage value of the power pin in the charging interface and to detect whether the audio interface has received a data exchange command.
[0106] The connection determination unit 4053 is used to determine that the interface connection state of the external interface circuit is a preset dual connection state if the input voltage value is a preset voltage value and the audio interface receives a data exchange command.
[0107] Furthermore, the protocol matching module 402 includes:
[0108] The voltage matching unit 4021 is used to generate multiple sets of test voltage signals using the external interface circuit based on the dual connection state, and to perform voltage matching on the corresponding pin for reading the audio data using each of the test voltage signals to obtain the audio pin voltage.
[0109] The identifier determination unit 4022 is used to determine the charging voltage value and charging identifier corresponding to the mobile device based on the audio pin voltage;
[0110] The protocol matching unit 4023 is used to match multiple charging protocols corresponding to the mobile device based on the charging voltage value and the charging identifier.
[0111] Furthermore, the circuit conduction module 403 includes:
[0112] The voltage reading unit 4031 is used to read the input voltage signal of the charging interface in the external interface circuit;
[0113] The signal generation unit 4032 is used to match the corresponding charging voltage value in the charging protocol according to the input voltage signal, and generate a first switch control signal and a second switch control signal based on the charging voltage value.
[0114] The switch control unit 4033 is used to control the first switch circuit to open and close using the first switch control signal and to control the second switch circuit to open and close using the second switch control signal.
[0115] Furthermore, the circuit conduction module 403 also includes:
[0116] The analog-to-digital conversion unit 4034 is used to perform analog-to-digital conversion on the audio data using the main control circuit to obtain the corresponding initial audio analog signal;
[0117] Condition determination unit 4035 is used to determine whether the noise reduction function corresponding to the switching and branching device is enabled;
[0118] The noise reduction activation unit 4036 is used to detect the branch noise signal in the environment of the switching device if the noise reduction function corresponding to the switching device is activated.
[0119] The first optimization unit 4037 is used to superimpose the initial audio analog signal using the split noise signal to obtain a noise-reduced analog signal, and to perform mixing and left and right channel frequency division processing on the noise-reduced analog signal to obtain a first audio analog signal.
[0120] The second optimization unit 4038 is used to perform mixing and left and right channel frequency division processing on the initial audio analog signal to obtain a second audio analog signal if the noise reduction function corresponding to the switching and splitting device is not enabled.
[0121] Furthermore, the multiplexing output module 404 includes:
[0122] The numerical detection unit 4041 is used to detect whether the switching voltage is greater than the threshold voltage;
[0123] The first boost unit 4042 is used to perform DC boosting using the first DC conversion circuit to obtain a first DC voltage if the on / off voltage is not greater than the threshold voltage, and to use the first DC voltage as the first DC charging voltage.
[0124] The second boost unit 4043 is used to perform primary DC boosting using the first DC conversion circuit to obtain a second DC voltage if the on / off voltage is greater than the threshold voltage, and to perform secondary DC boosting using the second DC conversion circuit to obtain a third DC voltage based on the second DC voltage.
[0125] The voltage superposition unit 4044 is used to generate a second DC charging voltage based on the second DC voltage and the third DC voltage.
[0126] Furthermore, the first boost unit 4042 includes:
[0127] Based on the on / off voltage, the first DC-DC converter circuit is used to boost the on / off voltage to obtain an initial boost voltage; based on the on / off voltage and using a preset feedback resistor ratio, the initial boost voltage is divided and calculated, and the result of the voltage division calculation is regulated and filtered to obtain a first DC voltage.
[0128] In this embodiment of the invention, the present application determines the connection status of the current switching device, reads the corresponding audio data and the charging protocol of the mobile device, and then performs digital-to-analog conversion and noise reduction on the audio data. At the same time, according to the charging protocol, it controls the corresponding DC-DC conversion circuit to generate the corresponding charging voltage, and then outputs the processed audio data and charging voltage, thereby realizing the matching of the corresponding charging voltage and the output of the corresponding audio data for different devices.
[0129] above Figure 4 and Figure 5 The switching and branching device in the embodiments of the present invention will be described in detail from the perspective of modular functional entities. The switching and branching device in the embodiments of the present invention will be described in detail from the perspective of hardware processing.
[0130] Figure 6 This is a schematic diagram of a switching and splitting device 600 provided in an embodiment of the present invention. The switching and splitting device 600 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 610 (e.g., one or more processors) and a memory 620, and one or more storage media 630 (e.g., one or more mass storage devices) storing application programs 633 or data 632. The memory 620 and storage media 630 can be temporary or persistent storage. The program stored in the storage media 630 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the switching and splitting device 600. Furthermore, the processor 610 may be configured to communicate with the storage media 630 and execute the series of instruction operations in the storage media 630 on the switching and splitting device 600.
[0131] The switching device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input / output interfaces 660, and / or one or more operating systems 631, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 6The illustrated switching device structure does not constitute a limitation on the switching device and may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0132] The present invention also provides a switching and splitting device, wherein the computer device includes a memory and a processor, the memory storing computer-readable instructions, which, when executed by the processor, cause the processor to perform the various steps of the switching and splitting methods described in the above embodiments. The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, storing instructions that, when executed on a computer, cause the computer to perform the various steps of the switching and splitting methods.
[0133] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0134] If the integrated unit is implemented as 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 invention, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0135] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0136] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method of transit branching, applied to a transit branching device, characterized by, The switching and branching device includes an external interface circuit, a DC-DC conversion circuit, a switch control circuit, and a main control circuit. The switching and branching method includes: When the interface connection status of the external interface circuit is detected to be a preset dual connection status, the audio data corresponding to the mobile device connected to the external interface circuit is read. The voltage value of the pin corresponding to the audio data is detected and read to obtain the audio pin voltage. Based on the audio pin voltage, the charging protocol corresponding to the mobile device is matched. The switch control circuit controls the dual-circuit switching on and off, and generates corresponding switching voltages based on the dual-circuit switching results. It also performs signal conversion and audio superposition on the audio data to obtain an audio analog signal. Based on the on / off voltage, the DC-DC conversion circuit generates a corresponding DC charging voltage, outputs the audio analog signal, and charges the mobile device based on the DC charging voltage. The step of performing signal conversion and audio superposition on the audio data to obtain an analog audio signal includes: The main control circuit is used to perform analog-to-digital conversion on the audio data to obtain the corresponding initial analog audio signal. Determine whether the noise reduction function corresponding to the switching and branching device is enabled; If the noise reduction function corresponding to the switching device is enabled, then the switching noise signal in the environment of the switching device is detected; Using the split noise signal, the initial audio analog signal is superimposed to obtain a noise-reduced analog signal, and the noise-reduced analog signal is mixed and divided into left and right channels to obtain a first audio analog signal. If the noise reduction function corresponding to the switching and splitting device is not enabled, the initial audio analog signal is mixed and the left and right channels are divided to obtain the second audio analog signal.
2. The switching and branching method according to claim 1, characterized in that, The external interface circuit includes a charging interface and an audio interface. Before the main control circuit reads the audio data corresponding to the mobile device connected to the external interface circuit when it detects that the interface connection state of the external interface circuit is a preset dual-connection state, the main control circuit includes: The main control circuit is used to perform connection authentication on the charging interface and the audio interface, and based on the authentication result, the charging interface and audio interface that meet the preset connection conditions are selected. The system detects the input voltage value of the power pin in the charging interface and whether the audio interface receives a data exchange command. If the input voltage value is a preset voltage value and the audio interface receives a data exchange command, then the interface connection state of the external interface circuit is determined to be a preset dual connection state.
3. The switching and branching method according to claim 2, characterized in that, The step of detecting and reading the voltage value of the pin corresponding to the audio data, obtaining the audio pin voltage, and matching the charging protocol corresponding to the mobile device based on the audio pin voltage includes: Based on the dual-connection state, multiple sets of test voltage signals are generated using the external interface circuit, and the voltage of the corresponding pin for reading the audio data is matched using each of the test voltage signals to obtain the audio pin voltage. Based on the audio pin voltage, determine the charging voltage value and charging indicator corresponding to the mobile device; Based on the charging voltage value and the charging identifier, multiple charging protocols corresponding to the mobile device are matched.
4. The switching and branching method according to claim 3, characterized in that, The switch control circuit includes a first switch circuit and a second switch circuit. The control of the dual-circuit switching of the switch control circuit includes: Read the input voltage signal of the charging interface in the external interface circuit; Based on the input voltage signal, the corresponding charging voltage value in the charging protocol is matched, and based on the charging voltage value, a first switch control signal and a second switch control signal are generated; The first switch control signal is used to control the on / off state of the first switch circuit, and the second switch control signal is used to control the on / off state of the second switch circuit.
5. The switching and branching method according to claim 1, characterized in that, The DC-DC conversion circuit includes a first DC-DC conversion circuit and a second DC-DC conversion circuit. The DC charging voltage includes a first DC charging voltage and a second DC charging voltage. Generating a corresponding DC charging voltage using the DC-DC conversion circuit based on the on / off voltage includes: Detect whether the switching voltage is greater than the threshold voltage; If the switching voltage is not greater than the threshold voltage, the first DC-DC converter circuit is used to boost the DC voltage to obtain the first DC voltage, and the first DC voltage is used as the first DC charging voltage. If the switching voltage is greater than the threshold voltage, the first DC-DC converter circuit is used to perform a primary DC boost to obtain a second DC voltage, and based on the second DC voltage, the second DC-DC converter circuit is used to perform a secondary DC boost to obtain a third DC voltage. A second DC charging voltage is generated based on the second DC voltage and the third DC voltage.
6. The switching and branching method according to claim 5, characterized in that, The step of using the first DC-DC converter circuit to boost the DC voltage to obtain the first DC voltage includes: Based on the on / off voltage, the first DC-DC converter circuit is used to DC boost the on / off voltage to obtain the initial boost voltage. Using a preset feedback resistor ratio, the initial boost voltage is divided and calculated, and the result of the voltage division calculation is regulated and filtered to obtain the first DC voltage.
7. A switching and branching device, applied to switching and branching equipment, characterized in that, The switching and branching equipment includes an external interface circuit, a DC-DC conversion circuit, a switch control circuit, and a main control circuit. The switching and branching device includes: The data reading module is used to read the audio data corresponding to the mobile device connected to the external interface circuit when the interface connection status of the external interface circuit is detected to be a preset dual connection status. The protocol matching module is used to detect the voltage value of the pin corresponding to the audio data, obtain the audio pin voltage, and match the charging protocol corresponding to the mobile device based on the audio pin voltage. The circuit conduction module is used to control the dual-circuit on / off state of the switch control circuit, generate corresponding on / off voltages based on the dual-circuit on / off results, and perform signal conversion and audio superposition on the audio data to obtain an audio analog signal. The multiplexed output module is used to generate a corresponding DC charging voltage using the DC-DC conversion circuit according to the on / off voltage, output the audio analog signal, and charge the mobile device according to the DC charging voltage; The circuit conduction module further includes: an analog-to-digital conversion unit, used to perform analog-to-digital conversion on the audio data using the main control circuit to obtain a corresponding initial audio analog signal; a condition determination unit, used to determine whether the noise reduction function corresponding to the switching device is enabled; a noise reduction enabling unit, used to detect the branch noise signal in the environment of the switching device if the noise reduction function corresponding to the switching device is enabled; a first optimization unit, used to superimpose the initial audio analog signal using the branch noise signal to obtain a noise-reduced analog signal, and to perform mixing and left / right channel frequency division processing on the noise-reduced analog signal to obtain a first audio analog signal; and a second optimization unit, used to perform mixing and left / right channel frequency division processing on the initial audio analog signal if the noise reduction function corresponding to the switching device is not enabled to obtain a second audio analog signal.
8. The switching and branching device according to claim 7, characterized in that, The circuit conduction module includes: a voltage reading unit for reading the input voltage signal of the charging interface in the external interface circuit; a signal generation unit for matching the corresponding charging voltage value in the charging protocol according to the input voltage signal, and generating a first switch control signal and a second switch control signal based on the charging voltage value; and a switch control unit for controlling the first switch circuit to open and close using the first switch control signal and controlling the second switch circuit to open and close using the second switch control signal.
9. A switching and branching device, characterized in that, The switching device includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the switching device to perform the steps of the switching method as described in any one of claims 1-6.
10. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions are executed by the processor, they implement the various steps of the switching and splitting method as described in any one of claims 1-6.