USB communication and power supply control switch and control method
By combining a boost circuit, a buck circuit, an ARM control circuit, a decoder, and an SP6T mechanical switch, the dependence on an external 12V power supply in existing USB power supply and control switch technologies is solved. This enables the device to operate normally without an external 12V power supply and simplifies the circuit, meeting the requirements for compactness and portability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-11
- Publication Date
- 2026-03-24
AI Technical Summary
Existing USB power supply and control switch technology requires an additional 12V power supply, which limits the application of the device in scenarios where there is no external 12V power supply, and increases the structural complexity and size of the device, failing to meet the requirements of compactness and portability.
The circuit adopts a combination design of boost circuit, buck circuit, ARM control circuit, decoder, USB to serial port circuit and SP6T mechanical switch. It provides multiple power supplies through USB input interface and uses ARM control circuit and decoder to achieve precise control of SP6T mechanical switch, simplifying the circuit structure.
It enables the device to operate normally without an external 12V power supply, simplifies circuit design, reduces the complexity and size of the device, and meets the requirements of compactness and portability.
Smart Images

Figure CN121722706A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a USB communication and power supply control switch and control method. Background Technology
[0002] Due to its versatility and ease of connection, the USB interface has been widely used in power supply and data transmission scenarios for various devices. Consequently, communication and power supply control switching technologies based on the USB interface have become a research and application hotspot in related fields. These technologies typically need to balance the communication function and power supply requirements of the USB interface to achieve effective control of the target switch. They are suitable for various application scenarios such as automation control and modular design of electronic devices. The core requirement is to improve the applicability and convenience of the device through a simple and reliable circuit design, while ensuring communication stability and control accuracy.
[0003] Existing technical solutions for implementing USB power supply and control switch functions mainly combine a USB communication module with a 5V to 12V boost circuit. This means using the USB interface for data communication while a separate boost circuit converts the 5V voltage from the USB port to 12V to meet the voltage requirements of the switch operation. However, this existing technology has significant drawbacks: firstly, it requires an additional 12V power supply as auxiliary power, making the device dependent on specific external power conditions for normal operation, greatly limiting its application in scenarios without an external 12V power supply; secondly, the additional 12V power supply components increase the overall structural complexity of the device, making it larger and hindering miniaturization and portable deployment, thus failing to meet the current trend towards compact and lightweight electronic devices. Summary of the Invention
[0004] In order to solve the problems of existing USB power supply and control switches, this application provides a USB communication and power supply control switch and control method.
[0005] In a first aspect, this application provides a USB communication and power supply control switch, comprising: Boost circuit, ARM control circuit, decoder, buck circuit, USB to serial port circuit and SP6T mechanical switch; The USB input port is configured to output four power channels, including: The first path is connected to the decoder; The second circuit connects to the boost circuit and the SP6T mechanical switch in sequence; The third path connects to the step-down circuit and the ARM control circuit in sequence; The fourth channel is connected to the USB-to-serial converter circuit; The ARM control circuit is connected to the decoder signal, the decoder is connected to the SP6T mechanical switch control, and the USB to serial port circuit is connected to the ARM control circuit for communication.
[0006] In one specific implementation, the boost circuit is used to boost the USB input voltage to a first voltage and power the SP6T mechanical switch; The step-down circuit is used to step down the USB input voltage to a second voltage and power the ARM control circuit. The decoder and USB-to-serial circuit are connected to the USB input interface to obtain the operating voltage.
[0007] In one specific implementation scheme, the USB-to-serial circuit is used to receive USB control commands from the host computer and convert the USB control commands into UART signals to be sent to the ARM control circuit. The ARM control circuit is used to output corresponding control signals to the decoder based on the UART signals; The decoder is used to control the on / off state of the corresponding channels of the SP6T mechanical switch according to the control signal.
[0008] In one specific implementation scheme, the ARM control circuit includes: ARM chip and peripheral circuitry; The communication input of the ARM chip is connected to a USB-to-serial circuit, and the control output is connected to a decoder.
[0009] In one specific implementation, the decoder includes: Multiple control input terminals and multiple channel control output terminals; The control input terminal is connected to the corresponding pin of the ARM control circuit; The channel control output terminal is connected to the corresponding channel control terminal of the SP6T mechanical switch; The decoder is configured to output corresponding channel control signals based on the signals received at the control input.
[0010] In one specific feasible implementation, the USB to serial port circuit includes: USB to serial port chip and level conversion chip; The USB-to-serial chip is used to convert between the USB protocol and the UART protocol; The level conversion chip is used to perform level matching on the converted UART signal before transmitting it to the ARM control circuit.
[0011] In one specific implementation scheme, the power supply terminal of the SP6T mechanical switch is connected to the output terminal of the boost circuit and is independently powered by the first voltage.
[0012] Secondly, this application also provides a control method, comprising: The USB-to-serial converter receives USB control commands sent by the host computer and converts the USB control commands into UART signals. The ARM control circuit receives and parses UART signals, generates corresponding control signals based on the parsing results, and outputs them to the decoder. The decoder drives the corresponding channel of the SP6T mechanical switch to perform on / off operations based on the received control signal.
[0013] A third aspect of this application provides an electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the above-described method steps.
[0014] A fourth aspect of this application provides a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the method steps described above. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of a USB communication and power supply control switch provided in an embodiment of this application.
[0016] Figure 2 This is a schematic diagram of a boost circuit provided in an embodiment of this application.
[0017] Figure 3 This is a schematic diagram of a step-down circuit provided in an embodiment of this application.
[0018] Figure 4 This is a schematic diagram of a USB to serial port circuit provided in an embodiment of this application.
[0019] Figure 5 This is a flowchart illustrating a control method provided in an embodiment of this application. Detailed Implementation
[0020] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification of this application, the singular expressions “a,” “an,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to any or all possible combinations including one or more of the listed items.
[0021] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0022] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0023] Please see Figures 1 to 4 The USB communication and power control switch includes: The circuit includes a boost converter, an ARM control circuit, a decoder, a buck converter, a USB-to-serial converter, and an SP6T mechanical switch. The USB input interface is configured to output four power supplies: the first is connected to the decoder; the second is connected to the boost converter and the SP6T mechanical switch in sequence; the third is connected to the buck converter and the ARM control circuit in sequence; and the fourth is connected to the USB-to-serial converter. The ARM control circuit is signal-connected to the decoder, the decoder is control-connected to the SP6T mechanical switch, and the USB-to-serial converter is communicatively connected to the ARM control circuit.
[0024] In some embodiments, the first power supply is directly connected to the power input terminal of the decoder via a wire, with the connection point located at the VCC pin of the decoder. The power supply voltage directly provides operating power to the logic circuits and signal processing circuits inside the decoder, ensuring that the decoder can respond to external control signals in real time.
[0025] The second power supply is connected sequentially to the power input terminal of the boost circuit and the power input terminal of the SP6T mechanical switch via wires. The power supply first enters the boost circuit for voltage conversion, and the converted adaptive voltage is then transmitted to the power supply pin of the SP6T mechanical switch via a dedicated wire, providing power support for the internal contact switching of the SP6T mechanical switch.
[0026] The third power supply is connected sequentially to the power input terminal of the step-down circuit and the power input terminal of the ARM control circuit via wires. After being processed by the step-down circuit, it forms a voltage that meets the operating requirements of the ARM control circuit, and is then delivered to the power pin of the ARM control circuit through a stable power supply line to ensure the stable operation of the ARM chip and peripheral circuits.
[0027] The fourth power supply is directly connected to the power input terminal of the USB to serial port circuit via a wire, providing power directly to the internal chips and signal conversion circuits of the USB to serial port circuit, ensuring the normal implementation of the protocol conversion function.
[0028] The ARM control circuit establishes a stable signal connection with the decoder. Specifically, the general-purpose input / output pins of the ARM control circuit are soldered to the control input pins of the decoder via wires. The digital control signals generated by the ARM control circuit can be transmitted to the decoder without distortion through this connection path.
[0029] The decoder establishes a control connection with the SP6T mechanical switch. The channel control output pins of the decoder are connected one-to-one with the channel control pins of the SP6T mechanical switch via wires. The channel control signal output by the decoder can directly drive the internal contacts of the SP6T mechanical switch to operate.
[0030] In this embodiment of the application, the SP6T mechanical switch refers to a single-pole six-throw mechanical switch, which includes six independent channel mechanical switch components and can achieve selective conduction between a common terminal and six different channel terminals.
[0031] The USB-to-serial circuit establishes a bidirectional communication connection with the ARM control circuit. The transmit pin of the USB-to-serial circuit's universal asynchronous transceiver is connected to the receive pin of the ARM control circuit's universal asynchronous transceiver via a wire, and the receive pin of the USB-to-serial circuit's universal asynchronous transceiver is connected to the transmit pin of the ARM control circuit via a wire, thereby realizing the bidirectional transmission of control commands and feedback signals.
[0032] In some embodiments, the boost circuit may include a boost chip U1, capacitors C1, C2, C3, C4, C5, C6, C7, resistors R1, R2, R3, R4, R5, and inductor L1; wherein capacitors C1-C7 are filter capacitors, resistors R1-R5 are configuration resistors, and inductor L1 is an energy storage inductor.
[0033] In some embodiments, the step-down circuit may include a step-down chip U28, capacitors C86, C87, C88, C89, C90, C91, C92, resistors R102, R103, R104, R105, R106, R107, R108, and inductor L7; wherein, capacitors C86-C92 are filter capacitors, resistors R102 and R108 are current-limiting resistors, R103-R107 are voltage divider adjustment resistors, and inductor L7 is an energy storage inductor.
[0034] In some embodiments, the USB to serial port circuit may include a USB interface module U2, a USB to serial port chip U3, a level conversion chip U14, capacitors C67, C68, C69, and C70, and resistors R16 and R17; wherein, capacitors C67-C70 are filter capacitors, and resistors R16-R17 are current limiting resistors.
[0035] Based on the above embodiments, as another optional embodiment, the boost circuit is used to boost the USB input voltage to a first voltage and power the SP6T mechanical switch; the buck circuit is used to buck the USB input voltage to a second voltage and power the ARM control circuit; the decoder and the USB to serial port circuit are respectively connected to the USB input interface to obtain the operating voltage.
[0036] In this embodiment of the application, the boost circuit is a voltage boosting device based on DC-DC conversion technology. It consists of components such as a boost chip, an energy storage inductor, a filter capacitor, and a voltage divider resistor, and is used to boost the original voltage input from the USB input interface to a first voltage.
[0037] In some embodiments, the power input terminal of the boost circuit is soldered to the second power output pin of the USB input interface via a wire. After the original voltage enters the boost circuit, it is regulated by the energy storage inductor, the switching control of the internal switching transistor of the boost chip, and the voltage regulation of the filter capacitor, and outputs a stable first voltage.
[0038] The value of the first voltage matches the rated operating voltage of the SP6T mechanical switch, meeting the power requirements for driving the internal coil and switching contacts. The voltage output terminal of the boost circuit is soldered to the power input pin of the SP6T mechanical switch via a dedicated wire. The first voltage directly supplies power to the SP6T mechanical switch through this connection, ensuring that the SP6T mechanical switch can execute switching actions quickly and accurately.
[0039] In this embodiment of the application, the step-down circuit is a voltage reduction device based on low-dropout linear regulation or DC-DC conversion technology. It consists of components such as a step-down chip, filter capacitor, voltage divider resistor, and energy storage inductor, and is used to step down the original voltage input from the USB input interface to a second voltage.
[0040] In some embodiments, the power input terminal of the buck circuit is soldered to the third power output pin of the USB input interface via a wire. After the original voltage enters the buck circuit, it is regulated by the buck chip, filtered by the filter capacitor, and smoothly transitioned by the energy storage inductor to output a stable second voltage.
[0041] The value of the second voltage matches the rated operating voltage of the ARM control circuit, providing stable operating power to the ARM chip and peripheral circuits. This avoids signal processing errors caused by voltage fluctuations in the ARM control circuit. The voltage output terminal of the step-down circuit is soldered to the power input pin of the ARM control circuit via a dedicated wire. The second voltage directly powers the ARM control circuit through this connection, ensuring stable operation of the ARM control circuit.
[0042] The decoder's operating voltage is obtained directly through the connection with the USB input interface. Specifically, the first power output pin of the USB input interface is soldered to the power input pin of the decoder via a wire. The raw voltage output from the USB input interface can directly meet the decoder's operating voltage requirements, eliminating the need for additional voltage conversion components and simplifying the circuit structure.
[0043] The operating voltage of the USB-to-serial circuit is also obtained through the connection with the USB input interface. The fourth power output pin of the USB input interface is soldered to the power input pin of the USB-to-serial circuit through a wire. The original voltage output by the USB input interface can provide a stable power supply to the protocol conversion chip, level conversion chip and other components inside the USB-to-serial circuit, ensuring the normal implementation of the protocol conversion function.
[0044] In some embodiments, the first voltage can be 12 volts, the second voltage can be 3.3 volts, and the boost chip can be a TPS61088 chip.
[0045] Based on the above embodiments, as another optional embodiment, the USB to serial port circuit is used to receive USB control commands from the host computer and convert the USB control commands into UART signals to be sent to the ARM control circuit; the ARM control circuit is used to output corresponding control signals to the decoder according to the UART signals; the decoder is used to control the on / off of the corresponding channels of the SP6T mechanical switch according to the control signals.
[0046] In some embodiments, the USB-to-serial circuit establishes a physical connection with the host computer's USB interface via a USB data cable. The USB data pins of the USB-to-serial circuit are connected to the corresponding data pins of the host computer's USB interface via the USB data cable, enabling it to receive USB control commands sent by the host computer in real time.
[0047] In this embodiment of the application, the USB control command is a digital command signal generated by the host computer according to the actual control requirements, including control information such as target channel number, action type, and execution time. The action type includes on or off.
[0048] The USB-to-serial circuit integrates a protocol conversion module, including a USB-to-serial chip, which parses and decodes received control commands based on the USB protocol, and then converts them into signals based on the Universal Asynchronous Receiver / Transmitter (UART) protocol. The UART transmit pin of the USB-to-serial circuit is soldered to the UART receive pin of the ARM control circuit via a wire, and the converted UART signal is sent to the ARM control circuit through this connection path.
[0049] In some embodiments, the ARM control circuit integrates a signal parsing module and a control signal generation module. After receiving the universal asynchronous transceiver (UART) signal sent by the USB-to-serial circuit through the UART receive pin, the signal parsing module first performs frame synchronization and parity check on the signal to ensure the accuracy of signal transmission. Then, it parses out key information such as the target channel number and action type according to the preset instruction format to clarify the control intent of the host computer.
[0050] The control signal generation module generates corresponding digital control signals based on the parsed control information and preset control logic. These control signals are combinations of high and low levels, uniquely corresponding to the operation of a specific channel of the SP6T mechanical switch. The general-purpose input / output pins of the ARM control circuit are soldered to the control input pins of the decoder via wires. The ARM control circuit outputs the generated control signals to the decoder through this connection.
[0051] The decoder has an internal truth table that maps control signals to channel control signals. This truth table includes all possible combinations of control signals and their corresponding channel control output logic. After receiving control signals from the ARM control circuit via its control input pins, the decoder's internal decoding module queries the truth table based on the received control signal combinations to determine the target channel and action command corresponding to that control signal, and then generates the corresponding channel control signal.
[0052] In some embodiments, the channel control output pin of the decoder is soldered to each channel control pin of the SP6T mechanical switch via wires. The channel control signal is transmitted to the corresponding channel control terminal of the SP6T mechanical switch through this connection, driving the target channel of the SP6T mechanical switch to perform the on or off action.
[0053] In some embodiments, the SP6T mechanical switch has a pre-set channel status detection module that can collect the actual on / off status of each channel in real time. On is indicated by a high level, and off by a low level. The status signal is transmitted to the status feedback input of the decoder via a feedback wire. The decoder transmits the status signal to the ARM control circuit. The ARM control circuit compares the actual status with the control command, confirms the action execution result, and generates a feedback signal. The feedback signal is converted into a USB protocol signal via a USB-to-serial circuit and transmitted to the host computer. The host computer receives the feedback signal and displays the control result, forming a complete closed-loop control process.
[0054] In some embodiments, the protocol conversion module of the USB-to-serial circuit verifies the received USB control commands using parity checking or cyclic redundancy check, automatically identifying and discarding erroneous commands to ensure the accuracy of command transmission. When there are minor bit errors in the received universal asynchronous transceiver signal, the signal parsing module of the ARM control circuit can correct the errors and correctly identify the control commands using a redundancy algorithm. The decoding module of the decoder includes a channel priority processing unit, which can execute multiple control commands sequentially according to a preset priority order when multiple commands are received simultaneously.
[0055] Based on the above embodiments, as another optional embodiment, the ARM control circuit includes: an ARM chip and peripheral circuits; the communication input terminal of the ARM chip is connected to a USB to serial port circuit, and the control output terminal is connected to a decoder.
[0056] In some embodiments, the ARM chip is configured with a communication input terminal and a control output terminal. The communication input terminal is the universal asynchronous transceiver (UART) receive pin of the ARM chip, which is soldered to the UART transmit pin of the USB-to-serial circuit via a wire. The ARM chip can receive the UART signal sent by the USB-to-serial circuit in real time, which contains control command information from the host computer.
[0057] The control output terminals are multiple general-purpose input / output pins of the ARM chip. These pins are soldered to the corresponding control input pins of the decoder via wires. The control signals generated by the ARM chip are output to the decoder through these pins, enabling precise control of the decoder.
[0058] In some embodiments, the filtering circuit in the peripheral circuit includes an electrolytic capacitor and a ceramic capacitor. The electrolytic capacitor and the ceramic capacitor are connected in parallel between the power supply pin of the ARM chip and ground. The electrolytic capacitor is mainly used to filter out low-frequency noise in the power supply voltage, and the ceramic capacitor is mainly used to filter out high-frequency noise. Through two-stage filtering, a clean and stable power supply voltage can be provided to the ARM chip, avoiding abnormal operation of the ARM chip due to voltage noise.
[0059] In some embodiments, the peripheral circuitry further includes a power management unit and a signal amplification unit. The power management unit includes a power management chip. The input terminal of the power management chip is connected to the output terminal of the buck converter, and the output terminal is connected to the power supply pin of the ARM chip. It can dynamically adjust the output voltage and current according to the operating state of the ARM chip. When the ARM chip is in sleep mode, it reduces the supply voltage and current, and provides sufficient power during high-speed operation, significantly reducing the overall power consumption of the system. The operating states of the ARM chip include sleep, running, and high-speed operation.
[0060] In some embodiments, the signal amplification unit includes a transistor and an operational amplifier. The input terminal is connected to the general-purpose input / output pin of the ARM chip, and the output terminal is connected to the control input pin of the decoder. It can amplify the current of the control signal output by the ARM chip, enhance the driving capability of the control signal, and ensure that the decoder can reliably receive and respond to the control signal. The integrated design of these circuits improves the integration, energy efficiency and control reliability of the ARM control circuit, and has significant innovation.
[0061] Based on the above embodiments, as another optional embodiment, the decoder includes: multiple control input terminals and multiple channel control output terminals; the control input terminals are connected to corresponding pins of the ARM control circuit; the channel control output terminals are connected to corresponding channel control terminals of the SP6T mechanical switch; the decoder is configured to output corresponding channel control signals according to the signals received by the control input terminals.
[0062] In some embodiments, the decoder includes a control input terminal, a channel control output terminal, an internal decoding module, a truth table storage unit, and a fault detection unit. These components are connected via internal wires to form a complete functional circuit. The control input terminal is a dedicated port for receiving external control signals; each control input terminal corresponds to an independent pin, which uses a standard soldered pin configuration for reliable connection to external wires. The channel control output terminal is a dedicated port for outputting channel control signals; each channel control output terminal also corresponds to an independent pin, which is individually adapted to the channel control pins of the SP6T mechanical switch.
[0063] Each control input pin of the decoder is soldered to the corresponding general-purpose input / output pin of the ARM control circuit via wires. This one-to-one correspondence ensures that the control signals output by the ARM control circuit can be accurately transmitted to the designated control input of the decoder, avoiding signal confusion.
[0064] Each channel control output pin of the decoder is soldered to the corresponding channel control pin of the SP6T mechanical switch via wires. Each channel control signal output by the decoder can independently control the corresponding SP6T mechanical switch channel, realizing the individual conduction or disconnection of the channel.
[0065] The decoder's internal decoding module is internally connected to the control input terminal, truth table storage unit, and channel control output terminal. The truth table storage unit has a preset correspondence between the control signal combination and the channel control signal. This correspondence is preset based on the number of channels and control logic of the SP6T mechanical switch.
[0066] When the decoder's control input receives a control signal from the ARM control circuit, the internal decoding module first identifies the level of the control signal to determine the high or low level state of each control bit. Then, based on the combination of control bits, it queries the truth table storage unit to determine the target channel to be driven and the corresponding action command. Finally, it generates the corresponding channel control signal and outputs it to the channel control terminal of the SP6T mechanical switch through the corresponding channel control output pin, achieving precise on / off control of the corresponding channel of the SP6T mechanical switch. The action command includes either turning on or off.
[0067] In some embodiments, the fault detection unit establishes internal connections with both the control input terminal and the channel control output terminal, enabling real-time monitoring of the signal status of the control input terminal and the load status of the channel control output terminal. When a continuous high or low level abnormality is detected at the control input terminal, or when signal jitter exceeds a preset threshold, the fault detection unit determines that the control signal is abnormal; when the load current at the channel control output terminal exceeds a preset safety threshold, or when a short circuit signal is detected, the fault detection unit determines that the load is abnormal.
[0068] After detecting an abnormal situation, the fault detection unit immediately generates a fault signal. The fault signal is transmitted to the fault receiving pin of the ARM control circuit through the fault feedback pin of the decoder. After receiving the fault signal, the ARM control circuit immediately stops outputting control signals and sends a fault alarm message to the host computer through the USB to serial port circuit. At the same time, it takes protective measures such as cutting off the power supply to the SP6T mechanical switch to prevent the fault from escalating and causing damage to components. This design significantly improves the fault tolerance and safety of the system and has important innovative features.
[0069] Based on the above embodiments, as another optional embodiment, the USB to serial port circuit includes: USB to serial port chip and level conversion chip; the USB to serial port chip is used to convert between USB protocol and UART protocol; the level conversion chip is used to perform level matching on the converted UART signal and then transmit it to the ARM control circuit.
[0070] In this embodiment, the USB-to-serial chip is used to convert between the USB protocol and the Universal Asynchronous Receiver / Transmitter protocol. The level conversion chip is the core component for achieving signal level matching. The two establish a signal transmission connection through wires and work together to complete the conversion and transmission of control commands. The filter capacitor and current-limiting resistor are used to optimize signal quality and protect the safety of components.
[0071] In some embodiments, the USB-to-serial chip includes a bidirectional conversion unit for USB protocol and Universal Asynchronous Receiver / Transmitter (UART) protocol. The USB interface pins are soldered to corresponding pins of the USB input interface via USB data lines. It can receive control commands based on the USB protocol sent by the host computer, and can also convert feedback signals from the ARM control circuit into USB protocol signals and send them to the host computer. The USB interface pins include a power pin, a positive data pin, a negative data pin, and a ground pin.
[0072] The Universal Asynchronous Receiver / Transmitter (UART) signal pins of the USB-to-serial chip are soldered to the corresponding signal pins of the level conversion chip via wires. After receiving USB control commands from the host computer, the internal protocol conversion module parses and decodes the commands, converting them into signals based on the UART protocol, and then transmits them to the level conversion chip through the UART transmit pins.
[0073] In some embodiments, the level conversion chip includes a signal level adjustment unit, which can convert the level of the input universal asynchronous transceiver signal into a level signal compatible with the input level of the ARM control circuit according to the level requirements of the input and output terminals.
[0074] Since the signal level of the universal asynchronous transceiver output by the USB to serial port chip may differ from the input level of the ARM control circuit, the level conversion chip uses internal transistors or operational amplifier circuits to raise or lower the signal level to ensure that the converted signal level can be accurately recognized by the ARM control circuit.
[0075] Meanwhile, the feedback signal output by the ARM control circuit is transmitted to the input of the level conversion chip through the transmit pin of the universal asynchronous transceiver. After the level conversion chip matches the level, it is transmitted to the receive pin of the universal asynchronous transceiver of the USB to serial chip. The USB to serial chip converts the feedback signal into a USB protocol signal and sends it to the host computer through the USB data cable, thus completing the transmission of the feedback signal.
[0076] In some embodiments, the USB-to-serial chip includes a baud rate detection module, which can automatically identify the baud rate of the command sent by the host computer and adjust its own baud rate to match, thereby improving the compatibility of the system with different host computer devices.
[0077] In some embodiments, the level conversion chip includes an overvoltage protection unit. When the input signal level exceeds a preset threshold, the overvoltage protection unit triggers the current limiting protection circuit to cut off the signal transmission channel and prevent abnormal voltage from damaging the subsequent ARM control circuit.
[0078] Based on the above embodiments, as another optional embodiment: the power supply terminal of the SP6T mechanical switch is connected to the output terminal of the boost circuit and is independently powered by the first voltage.
[0079] The SP6T mechanical switch has a dedicated power supply terminal, which is the power supply pin of the SP6T mechanical switch. It is used to connect to the working power supply to provide power to the coil and drive mechanism inside the switch, ensuring that the switch contacts can switch reliably.
[0080] In some embodiments, a current-limiting protection resistor can also be connected in series in the power supply circuit of the SP6T mechanical switch. The current-limiting protection resistor is soldered between the output pin of the boost circuit and the power supply pin of the SP6T mechanical switch through a wire. It is used to limit the maximum operating current flowing into the SP6T mechanical switch. When abnormal conditions such as short circuit or overcurrent occur in the power supply circuit, the current-limiting protection resistor can quickly limit the increase of current and prevent excessive current from burning out the coil or drive mechanism inside the SP6T mechanical switch, thus playing the role of overcurrent protection.
[0081] Meanwhile, a reverse-connection protection diode is connected in series in the power supply circuit. The positive terminal of the reverse-connection protection diode is soldered to the output pin of the boost circuit through a wire, and the negative terminal is soldered to the power supply pin of the SP6T mechanical switch through a wire, forming a reverse-cut-off protection circuit. When the power supply polarity is incorrectly connected due to wiring errors or other reasons, the reverse-connection protection diode is in the cut-off state, which can quickly cut off the power supply circuit, prevent reverse current from flowing into the SP6T mechanical switch, and avoid damage to the SP6T mechanical switch due to reverse polarity, thus playing a reverse-connection protection role.
[0082] Please refer to Figure 5 Based on the above embodiments, as another optional embodiment, this application also provides a control method, including: The system receives USB control commands from the host computer via a USB-to-serial converter and converts them into UART signals. The ARM control circuit receives and parses the UART signals, generates corresponding control signals based on the parsing results, and outputs them to the decoder. The decoder then drives the corresponding channel of the SP6T mechanical switch to perform on / off operations based on the received control signals.
[0083] Based on the above embodiments, as another optional embodiment, the present application embodiment may further include a computer storage medium, which may store multiple instructions adapted for loading and executing a control method of the above embodiments by a processor. For the specific execution process, please refer to the detailed description of the above embodiments, which will not be repeated here.
[0084] Based on the above embodiments, as another optional embodiment, this application embodiment may further include an electronic device. The electronic device may include: at least one processor, at least one communication bus, a user interface, at least one network interface, and a memory.
[0085] The communication bus is used to enable communication between these components.
[0086] The user interface may include a display screen and a camera. Optional user interfaces may also include standard wired interfaces and wireless interfaces.
[0087] The network interface may include standard wired interfaces and wireless interfaces (such as Wi-Fi interfaces).
[0088] The processor may include one or more processing cores. It connects to various parts of the server via various interfaces and lines, executing instructions, programs, code sets, or instruction sets stored in memory, and accessing data stored in memory to perform various server functions and process data. Optionally, the processor may be implemented using at least one of the following hardware forms: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor.
[0089] The memory may include random access memory (RAM) or read-only memory. Optionally, the memory may include a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor. As a computer storage medium, the memory may include an operating system, a network communication module, a user interface module, and an application program for a control method.
[0090] In electronic devices, the user interface is primarily used to provide an input interface for users and to acquire user input data; while the processor can be used to call an application program stored in memory for a control method. When executed by one or more processors, the electronic device performs one or more methods as described in the above embodiments. It should be noted that, for the foregoing method embodiments, for the sake of simplicity, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0091] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0092] In the various embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between apparatuses or units may be electrical or other forms.
[0093] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0094] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0095] 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 device (CMD). Based on this understanding, the technical solution of this application, 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 memory 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 of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, portable hard drives, magnetic disks, or optical disks.
[0096] The above are merely exemplary embodiments of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Other embodiments of this disclosure will readily conceive of those skilled in the art upon consideration of the specification and the disclosure of practical truths.
[0097] This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described in this disclosure. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.
Claims
1. A USB communication and power supply control switch, characterized in that, include: Boost circuit, ARM control circuit, decoder, buck circuit, USB to serial port circuit and SP6T mechanical switch; The USB input port is configured to output four power channels, including: The first path is connected to the decoder; The second path is connected sequentially to the boost circuit and the SP6T mechanical switch; The third path is connected sequentially to the step-down circuit and the ARM control circuit; The fourth path is connected to the USB-to-serial circuit; The ARM control circuit is signal-connected to the decoder, the decoder is control-connected to the SP6T mechanical switch, and the USB-to-serial circuit is communicatively connected to the ARM control circuit.
2. The USB communication and power supply control switch according to claim 1, characterized in that: The boost circuit is used to boost the USB input voltage to a first voltage and to power the SP6T mechanical switch. The step-down circuit is used to step down the USB input voltage to a second voltage and to power the ARM control circuit. The decoder and the USB-to-serial circuit are respectively connected to the USB input interface to obtain the operating voltage.
3. The USB communication and power supply control switch according to claim 1, characterized in that: The USB-to-serial circuit is used to receive USB control commands from the host computer and convert the USB control commands into UART signals to be sent to the ARM control circuit. The ARM control circuit is used to output corresponding control signals to the decoder according to the UART signal; The decoder is used to control the on / off state of the corresponding channel of the SP6T mechanical switch according to the control signal.
4. The USB communication and power supply control switch according to claim 1, characterized in that, The ARM control circuit includes: ARM chip and peripheral circuitry; The communication input terminal of the ARM chip is connected to the USB-to-serial circuit, and the control output terminal is connected to the decoder.
5. The USB communication and power supply control switch according to claim 1, characterized in that, The decoder includes: Multiple control input terminals and multiple channel control output terminals; The control input terminal is connected to the corresponding pin of the ARM control circuit; The channel control output terminal is connected to the corresponding channel control terminal of the SP6T mechanical switch; The decoder is configured to output a corresponding channel control signal based on the signal received at the control input terminal.
6. The USB communication and power supply control switch according to claim 1, characterized in that, The USB to serial port circuit includes: USB to serial port chip and level conversion chip; The USB-to-serial chip is used to convert between the USB protocol and the UART protocol; The level conversion chip is used to perform level matching on the converted UART signal and then transmit it to the ARM control circuit.
7. The USB communication and power supply control switch according to claim 2, characterized in that: The power supply terminal of the SP6T mechanical switch is connected to the output terminal of the boost circuit and is independently powered by the first voltage.
8. A control method applied to the USB communication and power supply control switch as described in any one of claims 1-7, characterized in that, include: The USB-to-serial converter receives USB control commands sent by the host computer and converts the USB control commands into UART signals. The ARM control circuit receives and parses the UART signal, generates a corresponding control signal based on the parsing result, and outputs it to the decoder. The decoder drives the corresponding channel of the SP6T mechanical switch to perform on / off operations based on the received control signal.
9. An electronic device, characterized in that, It includes a processor, a memory, a user interface, and a network interface. The memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory to cause the electronic device to perform the method as described in claim 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores multiple instructions that are adapted to be loaded by a processor and executed as described in claim 8.
Citation Information
Patent Citations
Multi-path serial communication interface based on level conversion circuit
CN212302471U
USB power supply circuit and USB power supply
CN213547367U