Intelligent USB switcher

By establishing a direct connection between the PC and the USB interface of the keyboard and mouse, using the MCU to parse the signal and generate control signals, the problems of fast USB switching and physical isolation are solved, and efficient PC switching control and security guarantee are achieved.

CN223245100UActive Publication Date: 2025-08-19联想长风科技(北京)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421479132.2
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2025-08-19
Estimated Expiration
2034-06-26

AI Technical Summary

Technical Problem

The prior art cannot take into account the need for fast USB switching between different PCs, and there are limited operation and response of USB interfaces and security risks.

Method used

By establishing a direct connection between the intelligent USB controller and the USB interface of the PC terminal and the USB interface of the keyboard and mouse terminal, the MCU receives and analyzes signals, generates control signals to control the electrical control area and signal switching area, realizes intelligent switching control of the peripheral PC terminal, and synchronous switching control is performed in combination with the network time protocol.

Benefits of technology

On the basis of meeting the physical isolation of USB interface, it realizes rapid switching, improves switching efficiency and accuracy, and effectively avoids the risks under cross-linking of multiple devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223245100U_ABST
    Figure CN223245100U_ABST
Patent Text Reader

Abstract

The utility model provides an intelligent switching control method based on an MCU and an intelligent USB switcher, and relates to the technical field of intelligent control. Direct connection between an intelligent USB controller and a PC end USB interface and between the intelligent USB controller and a keyboard and mouse USB interface is established; and the MCU receives the input signal, analyzes the signal content, determines the type of the signal, generates a type of control signal if the signal is a keyboard and mouse special signal, and performs intelligent switching control of the peripheral PC terminal. The technical problems that in the prior art, the requirement for quick USB switching between different PCs cannot be considered, physical isolation, operation and response of USB interfaces between different PCs are limited, and certain safety risks exist are solved, the requirements for physical isolation and quick switching are considered, the intelligent USB switcher can quickly and effectively analyze signal content of a keyboard and mouse end, and the intelligent USB switcher is convenient to use. The switching efficiency and precision are improved, and the risk under multi-device cross-linking can be effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to an intelligent switching control method based on an MCU and an intelligent USB switch. Background Art

[0002] Modern society is an era of information explosion. Faced with massive amounts of information data, people are gradually accustomed to using multiple PCs and monitors at the same time. Usually, different PCs require different keyboards and mice, but users only use the keyboard and mouse corresponding to one PC at a time, which will result in the desktop being cluttered with different keyboards and mice, which is not only complicated and confusing but also prone to incorrect operations. For some special application scenarios, users do not want these PCs to be physically connected to each other to avoid data leakage and malicious virus intrusion. Therefore, smart USB switches that can intelligently and quickly switch USBs and physically isolate the switching links have certain application scenarios.

[0003] The existing technology cannot take into account the demand for fast USB switching between different PCs, the physical isolation of USB interfaces between different PCs, limited operation and response, and certain security risks. Summary of the Invention

[0004] This application provides an MCU-based intelligent switching control method and an intelligent USB switch, which are used to solve the technical problems existing in the prior art, such as the inability to take into account the demand for fast USB switching between different PCs, the physical isolation of USB interfaces between different PCs, limited operation and response, and certain security risks.

[0005] In view of the above problems, the present application provides an intelligent switching control method based on MCU.

[0006] In a first aspect, the present application provides an MCU-based intelligent switching control method, the method comprising:

[0007] Establish a direct connection between the intelligent USB controller and the PC USB interface and the keyboard and mouse USB interface;

[0008] The MCU receives the input signal, analyzes the signal content, and determines the signal type. The input signal is initiated by the keyboard and mouse end;

[0009] If the signal type is a special keyboard and mouse signal, a type of control signal is generated, and the type of control signal is used to control the electrical control area and the signal switching area;

[0010] Based on the first type of control signal, intelligent switching control of the peripheral PC side is performed.

[0011] Among them, the MCU-based intelligent switching control method also includes: if the signal type is not a special keyboard and mouse signal, generating a second type of control signal; based on the second type of control signal, forwarding and executing the second type of control signal, and the second type of control signal is used to perform normal keyboard and mouse functions.

[0012] The MCU-based intelligent switching control method further includes: the type of control signal includes SEL1 and SEL2, the SEL1 responds to the electrical control area, and the SEL2 responds to the signal switching area.

[0013] Among them, the intelligent switching control of the peripheral PC side also includes: the switching control elements include USB power, ground, DM, and DP; combined with the network time protocol, the switching control elements are synchronously switched based on the synchronization timestamp.

[0014] Among them, the MCU-based intelligent switching control method also includes: determining the wiring distribution of the intelligent USB switch based on the number of connections on the peripheral PC end; the wiring of the intelligent USB switch is 2 input and 2n output, where n is the number of connections on the peripheral PC end, and 2 is the number of connections between the keyboard and mouse end and the intelligent USB switch.

[0015] In a second aspect, the present application provides an intelligent USB switch, the intelligent USB switch comprising:

[0016] MCU, the MCU is directly connected to the keyboard and mouse via USB, and the MCU is used to receive and analyze keyboard and mouse signals;

[0017] An electrical control area, one end of which is directly connected to the USB port of the keyboard and mouse, and the other end is directly connected to the USB port of the PC;

[0018] A signal switching area, one end of the signal switching area is directly connected to the MCU, and the other end is directly connected to the USB interface on the PC.

[0019] Wherein, the intelligent USB switch further includes: the network access type of the peripheral PC end can be different.

[0020] The intelligent USB switch also includes: unlimited number of PC connections

[0021] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0022] The embodiment of the present application provides an MCU-based intelligent switching control method, including: establishing a direct connection between an intelligent USB controller and a PC-side USB interface and a keyboard and mouse USB interface; the MCU receives an input signal, parses the signal content, and determines the signal type, wherein the input signal is initiated by the keyboard and mouse; if the signal type is a special keyboard and mouse signal, generates a type of control signal, and the type of control signal is used to control an electrical control area and a signal switching area; based on the type of control signal, performs intelligent switching control of the peripheral PC side.

[0023] An intelligent USB switch is provided, comprising: an MCU, which is directly connected to the USB of a keyboard and mouse and is used to receive and parse keyboard and mouse signals; an electrical control area, one end of which is directly connected to the USB of a keyboard and mouse and the other end is directly connected to a USB interface on a PC; and a signal switching area, one end of which is directly connected to the MCU and the other end is directly connected to a USB interface on a PC.

[0024] On the basis of meeting the physical isolation of USB interfaces between different PCs, and realizing the demand for fast USB switching between different PCs, the configuration of the intelligent USB switch can quickly and effectively analyze the signal content of the keyboard and mouse, and accurately perform switching control responses. At the same time, it can effectively avoid the risks of multi-device cross-linking. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 This application provides a structural diagram of an MCU-based intelligent switching control method and an intelligent USB switch;

[0026] Figure 2 This application provides a structural diagram of an MCU-based intelligent switching control method. DETAILED DESCRIPTION

[0027] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.

[0028] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0029] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict, and the terms “first\second” involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. The terms “including” and “having” and any variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or modules that are not clearly listed or that are inherent to these processes, methods, products, or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used herein are for the purpose of describing the embodiments of this application only.

[0030] This application provides an MCU-based intelligent switching control method and an intelligent USB switch to solve the technical problems in the prior art, such as the inability to meet the demand for fast USB switching between different PCs, the physical isolation of USB interfaces between different PCs, limited operation and response, and certain security risks.

[0031] Example 1: Figure 1 As shown, the present application provides an MCU-based intelligent switching control method, the method comprising:

[0032] S1: Establish a direct connection between the intelligent USB controller and the USB interface and keyboard and mouse USB interface on the PC;

[0033] At present, most of the cross-linking operations are based on the collaboration of multiple PCs and monitors. In order to avoid the cumbersome wiring caused by the lack of physical connection, which is also prone to erroneous operations due to the complexity and confusion, intelligent switching management is performed through intelligent fast switching of USB. However, the current existing technology still has certain limitations. The existing technology cannot take into account the demand for fast USB switching between different PCs, the physical isolation of USB interfaces between different PCs, the limited operation and response, and certain security risks.

[0034] The intelligent USB controller is a transit connection structure, one end of which is connected to the USB interface on the PC side and the other end is connected to the USB interface of the keyboard and mouse. By analyzing and responding to the signal instructions sent by the USB interface of the keyboard and mouse, the control of the PC side is intelligently switched, and fast switching management of the PC side is performed on the basis of achieving physical isolation.

[0035] S2: The MCU receives an input signal, analyzes the signal content, and determines the signal type. The input signal is initiated by the keyboard and mouse.

[0036] S3: If the signal type is a special keyboard and mouse signal, generate a type of control signal, wherein the type of control signal is used to control the electrical control area and the signal switching area;

[0037] S4: Based on the first type of control signal, perform intelligent switching control of the peripheral PC end.

[0038] In an embodiment of the present application, the MCU is a block that receives and parses keyboard and mouse signals. The keyboard and mouse end initiates a signal and transmits it to the MCU. The MCU receives the signal and parses it, identifies the signal content, and determines the signal type of the signal content. The signal type includes special signal types and non-special signal types.

[0039] Among them, the special signal type is a signal instruction related to PC-side switching, including a shortcut key signal or an operation instruction signal, such as double-clicking the right button of the mouse, or pressing the win key on the keyboard, which is used as a shortcut key for PC-side switching.

[0040] If the signal type is a special keyboard and mouse signal, PC-side switching control needs to be executed, and the MCU generates a corresponding control signal. In response to the electrical control area and the signal switching area, the control signal corresponding to the special signal type is used as the first type of control signal. The electrical control area and the signal switching area are functionally parallel, with one end connected to the MCU and the other end connected to the PC side, and are used to respond to the MCU's command signal, perform connection and disconnection control on the PC side, and perform switching control on the PC side.

[0041] Furthermore, the MCU-based intelligent switching control method further includes:

[0042] If the signal type is not a special keyboard and mouse signal, a second type of control signal is generated;

[0043] Based on the second type of control signal, the second type of control signal is forwarded and executed, and the second type of control signal is used to execute normal keyboard and mouse functions.

[0044] In an embodiment of the present application, the signal types sent by the keyboard and mouse are divided into two categories, keyboard and mouse special signals and non-keyboard and mouse special signals. The signal is parsed by the MCU. If it is a non-keyboard and mouse special signal, there is no need to execute the switching control of the PC side, and the operation signal sent by the keyboard and mouse side continues to be executed on the currently connected peripheral PC device.

[0045] That is, if the signal type is not a special keyboard and mouse signal, signal conversion processing is performed, and in response to the electrical control area and the signal switching area, the input signal is executed, that is, normal keyboard and mouse functions are executed to perform operation control of the currently connected peripheral PC device.

[0046] Furthermore, the MCU-based intelligent switching control method further includes:

[0047] The type of control signal includes SEL1 and SEL2 , wherein SEL1 responds to the electrical control region, and SEL2 responds to the signal switching region.

[0048] In an embodiment of the present application, the MCU generates signals SEL1 and SEL2, i.e., the type of control signals, after analyzing the input signals from the keyboard and mouse. The SEL1 responds to the electrical control area to control the connection and disconnection of the peripheral PC device, thereby realizing interface switching of the peripheral PC end.

[0049] Furthermore, the intelligent switching control of the peripheral PC side includes:

[0050] Switching control elements include USB power, ground, DM, and DP;

[0051] In combination with the network time protocol, the switching control elements are synchronously controlled based on the synchronization timestamp.

[0052] The intelligent USB switch includes multiple switching control elements, including USB power, ground, DM, and DP. By adjusting the connection and disconnection of these switching control elements, fast switching control is achieved. The connection and disconnection of these switching control elements are synchronized as much as possible to avoid wiring anomalies and deviations that affect the control state.

[0053] Preferably, the network time protocol is configured to control the connection and disconnection of the switching control elements, that is, the connection or disconnection control of each connection is synchronized, and by identifying the synchronization timestamp, synchronous switching control is performed to ensure the immediacy and effectiveness of the response. At the same time, the overall switching of USB power, ground, DM, and DP is realized within the module.

[0054] Furthermore, the MCU-based intelligent switching control method further includes:

[0055] Determining the wiring distribution of the intelligent USB switch based on the number of connections on the peripheral PC side;

[0056] The wiring of the smart USB switch is 2 input and 2n output, where n is the number of connections on the peripheral PC end, and 2 is the number of connections between the keyboard and mouse end and the smart USB switch.

[0057] In the embodiment of the present application, there is no requirement for the number of peripheral PC terminals. Multi-terminal collaborative connections can be made based on operational requirements, and autonomous switching control can be performed based on real-time needs. The intelligent USB switch has 2 inputs and 2n outputs. The number of connection lines between the keyboard and mouse USB interface and the intelligent USB switch is 2, representing the connection between the keyboard and mouse and the intelligent USB switch, respectively. n is the number of peripheral PC terminal connections, including the number of output lines from the electrical control area (2n) and the number of output lines from the signal switching area (2n). Each peripheral PC terminal corresponds to 4 connections.

[0058] Embodiment 2: Based on the same inventive concept as the MCU-based intelligent switching control method in the previous embodiment, Figure 2 As shown, the present application provides an intelligent USB switch, which includes:

[0059] MCU, the MCU is directly connected to the keyboard and mouse via USB, and the MCU is used to receive and analyze keyboard and mouse signals;

[0060] An electrical control area, one end of which is directly connected to the USB interface of the keyboard and mouse, and the other end of which is directly connected to the USB interface of the PC;

[0061] A signal switching area, one end of the signal switching area is directly connected to the MCU, and the other end is directly connected to the USB interface on the PC.

[0062] In an embodiment of the present application, the intelligent USB switch connects the keyboard and mouse to the PC and performs signal analysis and processing to quickly switch peripherals between the PC and the device. The intelligent USB switch includes the following structure: an MCU, an electrical control area, and a signal switching area. The MCU is used to perform signal analysis and processing, and the electrical control area and the signal switching area are used to execute and respond to the processing results of the MCU.

[0063] Specifically, the MCU is directly connected to the keyboard and mouse USB, receives the input signal sent by the keyboard and mouse, parses and identifies the signal content, determines whether the signal type is a special keyboard and mouse signal or a non-keyboard and mouse special signal, generates a response instruction and sends it to the electrical control area and the signal switching area. One end of the electrical control area is directly connected to the keyboard and mouse USB interface, and the other end is directly connected to the PC USB interface; one end of the signal switching area is directly connected to the MCU, and the other end is directly connected to the PC USB interface. It responds to the instructions of the MCU and performs switching control and operation execution of the peripheral PC end.

[0064] Preferably, the electrical control area and signal switching area mentioned in the embodiment of the present application can be components corresponding to multiple functions, and no specific restrictions are imposed in the embodiment of the present application. For example, relays and analog switches, PMOS / NMOS tubes, PNP / NPN transistors, mechanical relays, solid-state relays and other switching devices can also use MOSFET tubes, diodes, triodes and other devices to achieve the same logical function.

[0065] Furthermore, the intelligent USB switch further includes: the network access type of the peripheral PC end can be different.

[0066] Furthermore, the intelligent USB switch also includes: unlimited number of PC-side connections.

[0067] In the embodiment of the present application, the number of connections of the peripheral PC end of the intelligent USB switch is not limited, and can be autonomously adjusted according to the collaborative processing requirements, and the network access type of the peripheral PC end can be different. No specific restrictions are made in the embodiment of the present application, and it does not affect the implementation and execution of the method of the embodiment of the present application.

[0068] This application provides an MCU-based intelligent switching control method and an intelligent USB switch, which have the following technical effects:

[0069] The present application provides an MCU-based intelligent switching control method, including: establishing a direct connection between an intelligent USB controller and a PC-side USB interface and a keyboard and mouse USB interface; the MCU receives an input signal, parses the signal content, and determines the signal type, wherein the input signal is initiated by the keyboard and mouse; if the signal type is a special keyboard and mouse signal, generates a type of control signal, and the type of control signal is used to control an electrical control area and a signal switching area; based on the type of control signal, performs intelligent switching control on the peripheral PC side.

[0070] An intelligent USB switch is provided, comprising: an MCU, which is directly connected to the USB of a keyboard and mouse and is used to receive and parse keyboard and mouse signals; an electrical control area, one end of which is directly connected to the USB of a keyboard and mouse and the other end is directly connected to a USB interface on a PC; and a signal switching area, one end of which is directly connected to the MCU and the other end is directly connected to a USB interface on a PC.

[0071] On the basis of meeting the physical isolation of USB interfaces between different PCs, and realizing the demand for fast USB switching between different PCs, the configuration of the intelligent USB switch can quickly and effectively analyze the signal content of the keyboard and mouse, and accurately perform switching control responses. At the same time, it can effectively avoid the risks of multi-device cross-linking.

[0072] Through the detailed description of the MCU-based intelligent switching control method in the foregoing specification, those skilled in the art can clearly understand the MCU-based intelligent switching control method and the intelligent USB switch in this embodiment. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0073] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An intelligent USB switch, characterized in that: The intelligent USB switch includes: MCU, the MCU is directly connected to the keyboard and mouse via USB, and the MCU is used to receive and analyze keyboard and mouse signals; An electrical control area, one end of which is directly connected to the USB port of the keyboard and mouse, and the other end is directly connected to the USB port of the PC; A signal switching area, one end of which is directly connected to the MCU, and the other end of which is directly connected to the USB interface on the PC; Establish a direct connection between the intelligent USB controller and the PC USB interface and the keyboard and mouse USB interface; The MCU receives the input signal, analyzes the signal content, and determines the signal type. The input signal is initiated by the keyboard and mouse end; If the signal type is a special keyboard and mouse signal, a type of control signal is generated, and the type of control signal is used to control the electrical control area and the signal switching area; Based on the first type of control signal, intelligent switching control of the peripheral PC side is performed; If the signal type is not a special keyboard and mouse signal, a second type of control signal is generated; Based on the second type of control signal, forwarding and executing the second type of control signal, wherein the second type of control signal is used to perform normal keyboard and mouse functions; The type of control signal includes SEL1 and SEL2, wherein SEL1 responds to the electrical control area and SEL2 responds to the signal switching area; The intelligent switching control of the peripheral PC side includes: Switching control elements include USB power, ground, DM, and DP; In combination with the network time protocol, the switching control element is synchronously controlled based on the synchronization timestamp; Determining the wiring distribution of the intelligent USB switch based on the number of connections on the peripheral PC side; The wiring of the smart USB switch is 2 input and 2n output, where n is the number of connections on the peripheral PC end, and 2 is the number of connections between the keyboard and mouse end and the smart USB switch.

2. The intelligent USB switch according to claim 1, wherein: The network access type of the peripheral PC can be different.

3. The intelligent USB switch according to claim 2, wherein: There is no limit on the number of PC connections.