Control method, system and device for USB interface
By setting up an authentication terminal between the mobile terminal and the USB device to perform identity authentication and heartbeat signal management, the information security risks and compatibility issues of the USB interface are resolved, achieving a balance between security and cost-effectiveness.
Patent Information
- Application Number
- CN202411097310.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-22
AI Technical Summary
In the existing technology, the USB interface of mobile terminals has problems such as information security risks due to improper use, and customized connectors are costly, have long production cycles and poor compatibility.
An authentication terminal is set up between the mobile terminal and the USB device. The USB function is managed through identity authentication and heartbeat signals to ensure that it is only allowed to be used normally when the authentication is successful, otherwise the USB function is turned off.
This approach prevents unauthorized access without affecting the functionality of the USB interface, reducing information security risks, while also lowering costs and production cycles and improving compatibility.
Smart Images

Figure CN119004571A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer interface security management, and in particular to a management and control method, system and device for a USB interface. Background Art
[0002] With the development of technology, mobile terminals (such as handheld devices, PDAs, etc.) are playing an increasingly important role in supermarkets, logistics, manufacturing and other fields. While providing convenience for production and life, mobile terminals also bring new problems. Irregular use of USB devices on mobile terminals can obtain data on mobile terminals, or inject malware and data into mobile terminals, affecting the use of mobile terminals. Therefore, it is necessary to carry out security protection for mobile terminals.
[0003] Traditional security protection methods are divided into source protection and interface protection. Among them, interface protection usually adopts customized connectors, but customized connectors have inherent defects such as greatly increased connector costs, long production cycles, high minimum order quantities, and incompatibility with general terminals. Therefore, there is an urgent need for an interface protection method that uses non-customized interfaces, and the present invention is created to meet this practical need. Summary of the invention
[0004] In order to solve the above problems, the purpose of the present invention is to provide a new technology for managing and controlling the USB interface on a mobile terminal to prevent the outside world from damaging the information security of the mobile terminal through the USB interface.
[0005] In order to achieve the above technical objectives, the present application provides a method for controlling a USB interface, wherein an authentication terminal is set between a mobile terminal having a first USB interface and a first USB device, and the first USB interface of the mobile terminal is controlled by the authentication terminal, comprising the following steps:
[0006] In response to the connection between the mobile terminal and the first USB device, after the mobile terminal sends a USB signal to the authentication terminal for successful identity authentication, the authentication terminal is connected to the first USB device;
[0007] In response to the connection between the mobile terminal and the authentication terminal, the mobile terminal periodically sends a "heartbeat" signal to the authentication terminal to determine the connection relationship between the authentication terminal and the first USB device. When the authentication terminal is disconnected from the first USB device, the USB function is turned off.
[0008] Preferably, during the identity authentication process, the USB function of the mobile terminal is briefly turned on, and identity authentication is performed within the turned-on time. If successful, the USB function is used normally, otherwise the USB function is turned off, wherein the identity authentication is performed using the serial number of the authentication terminal stored in the mobile terminal.
[0009] Preferably, in the process of determining the connection relationship, the start-up time is used as a response time threshold of the authentication terminal, and the connection relationship between the authentication terminal and the first USB device is determined based on the response time threshold.
[0010] Preferably, in the process of determining the connection relationship, when the authentication terminal is connected to multiple first USB devices, a second USB device connected to the mobile terminal is obtained, and the connection relationship between the second USB device and the authentication terminal is determined, wherein data is interacted between the mobile terminal and the first USB device, the second USB device is determined, and the USB function is briefly turned on for identity authentication.
[0011] The present invention discloses a management and control system for a USB interface, the system is used to implement a management and control method, and the system includes:
[0012] A first function response unit, used to respond to the connection between the mobile terminal and the first USB device, and after the mobile terminal sends a USB signal to the authentication terminal for successful identity authentication, connect with the first USB device through the authentication terminal;
[0013] The second function response unit is used to respond to the connection between the mobile terminal and the authentication terminal, and periodically send a "heartbeat" signal to the authentication terminal through the mobile terminal to determine the connection relationship between the authentication terminal and the first USB device. When the authentication terminal is disconnected from the first USB device, the USB function is turned off.
[0014] Preferably, the first function response unit is also used to briefly turn on the USB function of the mobile terminal, and perform identity authentication during the turn-on time. If successful, the USB function is used normally, otherwise the USB function is turned off, wherein the identity authentication is performed through the serial number of the authentication terminal stored in the mobile terminal.
[0015] Preferably, the second function response unit is further configured to use the start-up time as a response time threshold of the authentication terminal, and determine the connection relationship between the authentication terminal and the first USB device according to the response time threshold.
[0016] Preferably, the second function response unit is also used to, in the process of determining the connection relationship, when the authentication terminal is connected to multiple first USB devices, obtain the second USB device connected to the mobile terminal and judge the connection relationship between the second USB device and the authentication terminal, wherein the second USB device is determined by exchanging data with the first USB device through the mobile terminal, and the USB function is briefly enabled for identity authentication.
[0017] The present invention also discloses a control device for a USB interface, which is an authentication terminal, and is composed of a Type-C USB interface, a plurality of second USB interfaces for connecting a first USB device, a microprocessor MCU and a USB HUB;
[0018] The microprocessor MCU is electrically connected to the Type-C USB interface and multiple second USB interfaces through a USB HUB, and is used to electrically connect to the first USB interface of the mobile terminal through the Type-C USB interface, authenticate the mobile terminal, and determine the connection relationship with the first USB device through the second USB interface.
[0019] Preferably, the microprocessor MCU is also used to obtain a short open time of the first USB interface of the mobile terminal, and perform identity authentication and confirmation of the connection relationship based on the open time, wherein the short open time is obtained based on a data interaction relationship between the mobile terminal and a second USB device among the multiple first USB devices.
[0020] The present invention discloses the following technical effects:
[0021] The present invention retains all functions of the USB interface. When the USB device is not needed, the authentication terminal is kept in a unified manner, which can prevent the USB device from invading the mobile terminal and play a significant role in the field of information security. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION
[0024] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0025] The present application provides a method for controlling a USB interface. An authentication terminal is set between a mobile terminal having a first USB interface and a first USB device. The first USB interface of the mobile terminal is controlled by the authentication terminal, and the method includes the following steps:
[0026] In response to the connection between the mobile terminal and the first USB device, after the mobile terminal sends a USB signal to the authentication terminal for successful identity authentication, the authentication terminal is connected to the first USB device;
[0027] In response to the connection between the mobile terminal and the authentication terminal, the mobile terminal periodically sends a "heartbeat" signal to the authentication terminal to determine the connection relationship between the authentication terminal and the first USB device. When the authentication terminal is disconnected from the first USB device, the USB function is turned off.
[0028] Further preferably, the management and control method provided by the present invention briefly turns on the USB function of the mobile terminal during the identity authentication process, performs identity authentication within the turn-on time, and uses the USB function normally after success, otherwise turns off the USB function, wherein the identity authentication is performed through the serial number of the authentication terminal stored in the mobile terminal.
[0029] Further preferably, in the management and control method provided by the present invention, in the process of determining the connection relationship, the startup time is used as the response time threshold of the authentication terminal, and the connection relationship between the authentication terminal and the first USB device is judged according to the response time threshold.
[0030] Further preferably, in the management and control method provided by the present invention, in the process of determining the connection relationship, when the authentication terminal is connected to multiple first USB devices, a second USB device connected to the mobile terminal is obtained, and the connection relationship between the second USB device and the authentication terminal is determined, wherein data is interacted between the mobile terminal and the first USB device, the second USB device is determined, and the USB function is briefly enabled for identity authentication.
[0031] The present invention discloses a management and control system for a USB interface, the system is used to implement a management and control method, and the system includes:
[0032] A first function response unit, used to respond to the connection between the mobile terminal and the first USB device, and after the mobile terminal sends a USB signal to the authentication terminal for successful identity authentication, connect with the first USB device through the authentication terminal;
[0033] The second function response unit is used to respond to the connection between the mobile terminal and the authentication terminal, and periodically send a "heartbeat" signal to the authentication terminal through the mobile terminal to determine the connection relationship between the authentication terminal and the first USB device. When the authentication terminal is disconnected from the first USB device, the USB function is turned off.
[0034] Further preferably, the first function response unit of the management and control system disclosed in the present invention is also used to temporarily turn on the USB function of the mobile terminal, and perform identity authentication within the turn-on time. After success, the USB function is used normally, otherwise the USB function is turned off, wherein the identity authentication is performed through the serial number of the authentication terminal stored in the mobile terminal.
[0035] Further preferably, the second functional response unit of the management and control system disclosed in the present invention is also used to use the start-up time as the response time threshold of the authentication terminal, and judge the connection relationship between the authentication terminal and the first USB device according to the response time threshold.
[0036] Further preferably, the second function response unit of the management and control system disclosed in the present invention is also used to, in the process of determining the connection relationship, when the authentication terminal is connected to multiple first USB devices, obtain the second USB device connected to the mobile terminal, and judge the connection relationship between the second USB device and the authentication terminal, wherein data is interacted between the mobile terminal and the first USB device, the second USB device is determined, and the USB function is briefly enabled for identity authentication.
[0037] The present invention also discloses a control device for a USB interface, which is an authentication terminal, and is composed of a Type-C USB interface, a plurality of second USB interfaces for connecting a first USB device, a microprocessor MCU and a USB HUB;
[0038] The microprocessor MCU is electrically connected to the Type-C USB interface and multiple second USB interfaces through a USB HUB, and is used to electrically connect to the first USB interface of the mobile terminal through the Type-C USB interface, authenticate the mobile terminal, and determine the connection relationship with the first USB device through the second USB interface.
[0039] Further preferably, the microprocessor MCU of the management and control device disclosed in the present invention is also used to obtain a short turn-on time of the first USB interface of the mobile terminal, and to perform identity authentication and confirmation of the connection relationship based on the turn-on time, wherein the short turn-on time is obtained based on the data interaction relationship between the mobile terminal and a second USB device among the multiple first USB devices.
[0040] Example: Figure 1 As shown, the present invention provides a schematic diagram of the composition of a USB interface control method and device. Figure 1 , which illustrates the implementation mode of the present invention, but does not limit the present invention; the method includes the following contents:
[0041] (1) Install an authentication terminal. An authentication terminal is installed between the USB device and the mobile terminal, and the USB device is connected to the mobile terminal through the authentication terminal;
[0042] In specific implementation, the USB device is connected to the lower USB interface of the authentication terminal, and the upper Type-C USB interface of the authentication terminal is connected to the Type-C USB interface of the mobile terminal through connectivity.
[0043] (2) Identity authentication. After the mobile terminal detects the USB device, it briefly turns on the USB function and uses the USB signal to authenticate with the authentication terminal. After the authentication is completed within the specified time, the USB function continues to be used normally, otherwise it is turned off.
[0044] In specific implementation, a variety of identity authentication methods can be used. For example, the simplest identity authentication method is to store the serial number of the authentication terminal on the mobile terminal in advance, and the mobile terminal confirms the identity of the authentication terminal through the serial number of the authentication terminal.
[0045] (3) Heartbeat detection: After successfully authenticating with the authentication terminal, the mobile terminal sends a "heartbeat" signal at regular intervals to ensure that the USB function can be turned off in time after the authentication terminal is disconnected.
[0046] In specific implementation, the mobile terminal sends a heartbeat data packet to the authentication terminal every 10 seconds, and waits for the authentication terminal to respond within 1 second; if the authentication terminal responds in time, the USB function is maintained; otherwise, the USB function is turned off.
[0047] To implement the above method, the present invention proposes a device called an authentication terminal, which is similar to a USB docking station in structure, but includes a small microprocessor MCU for implementing the authentication function.
[0048] In specific implementation, the authentication terminal includes a Type-C USB interface for uplink, multiple USB interfaces for connecting USB devices, a microprocessor MCU, and a USB HUB. The Type-C USB interface, USB interface, and microprocessor MCU are all connected to the USB HUB.
[0049] During specific implementation, the microprocessor MCU of the authentication terminal receives and processes authentication and heartbeat messages through the USB interface.
[0050] The present invention proposes a new technology for USB interface control, which can achieve the following effects: (1) It can be compatible with universal adapters and data cables for data import / export, thereby enhancing terminal compatibility; (2) It can prevent data acquisition personnel from using universal data cables to import / export data, thereby enhancing terminal protection; (3) It can reduce procurement costs to the level of procurement costs in ordinary industries; (4) It can shorten the production cycle to the level of procurement cycles in ordinary industries; (5) It can reduce the minimum order quantity requirements to the level of procurement minimum order quantities in ordinary industries; and (6) It does not affect the original functions of Type-C.
[0051] In actual use, data collectors can use universal adapters and data cables for charging operations. The authentication terminal is in the hands of data collectors (supervisors, etc.), ensuring that most personnel cannot import / export data. This can effectively reduce the risk of information leakage while limiting the increase in costs.
[0052] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0053] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0054] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for controlling a USB interface, It is characterized in that An authentication terminal is arranged between a mobile terminal having a first USB interface and a first USB device, and the first USB interface of the mobile terminal is managed and controlled by the authentication terminal, including the following steps: In response to the connection between the mobile terminal and the first USB device, after the mobile terminal sends a USB signal to the authentication terminal for successful identity authentication, the authentication terminal is connected to the first USB device; In response to the connection between the mobile terminal and the authentication terminal, the mobile terminal periodically sends a "heartbeat" signal to the authentication terminal to determine the connection relationship between the authentication terminal and the first USB device. When the authentication terminal is disconnected from the first USB device, the USB function is turned off.
2. A method for controlling a USB interface according to claim 1, Features: During the identity authentication process, the USB function of the mobile terminal is briefly turned on, and identity authentication is performed within the turned-on time. If successful, the USB function is used normally, otherwise the USB function is turned off, wherein identity authentication is performed using the serial number of the authentication terminal stored in the mobile terminal.
3. A method for controlling a USB interface according to claim 2, Features: In the process of determining the connection relationship, the start time is used as a response time threshold of the authentication terminal, and the connection relationship between the authentication terminal and the first USB device is determined according to the response time threshold.
4. A method for controlling a USB interface according to claim 3, Features: In the process of determining the connection relationship, when the authentication terminal is connected to multiple first USB devices, a second USB device connected to the mobile terminal is obtained, and the connection relationship between the second USB device and the authentication terminal is determined, wherein data is interacted between the mobile terminal and the first USB device, the second USB device is determined, and the USB function is briefly enabled for identity authentication.
5. A management and control system for USB interface, Features: The system is used to implement a control method for a USB interface as claimed in any one of claims 1 to 4, and the system includes: A first function response unit, configured to respond to the connection between the mobile terminal and the first USB device, and after the mobile terminal sends a USB signal to the authentication terminal for successful identity authentication, connect with the first USB device through the authentication terminal; The second function response unit is used to respond to the connection between the mobile terminal and the authentication terminal, and periodically send a "heartbeat" signal to the authentication terminal through the mobile terminal to determine the connection relationship between the authentication terminal and the first USB device. When the authentication terminal is disconnected from the first USB device, the USB function is turned off.
6. A management and control system for a USB interface according to claim 5, Features: The first function response unit is also used to temporarily enable the USB function of the mobile terminal, and perform identity authentication during the enable time. If successful, the USB function is used normally, otherwise the USB function is turned off, wherein the identity authentication is performed through the serial number of the authentication terminal stored in the mobile terminal.
7. A management and control system for a USB interface according to claim 6, Features: The second function response unit is further configured to use the start time as a response time threshold of the authentication terminal, and determine a connection relationship between the authentication terminal and the first USB device according to the response time threshold.
8. A management and control system for a USB interface according to claim 7, Features: The second function response unit is further used to, in the process of determining the connection relationship, when the authentication terminal is connected to multiple first USB devices, obtain a second USB device connected to the mobile terminal and determine the connection relationship between the second USB device and the authentication terminal, wherein the second USB device is determined by exchanging data with the first USB device through the mobile terminal, and the USB function is briefly enabled for identity authentication.
9. A control device for a USB interface, It is characterized in that The device is an authentication terminal, which is composed of a Type-C USB interface, a plurality of second USB interfaces for connecting a first USB device, a microprocessor MCU and a USB HUB; The microprocessor MCU is electrically connected to the Type-C USB interface and multiple second USB interfaces respectively through the USB HUBs, and is used to electrically connect to the first USB interface of the mobile terminal through the Type-C USB interface, authenticate the mobile terminal, and determine the connection relationship with the first USB device through the second USB interface.
10. A control device for a USB interface according to claim 9, Features: The microprocessor MCU is further used to obtain a short open time of the first USB interface of the mobile terminal, and perform identity authentication and confirmation of the connection relationship according to the open time, wherein the short open time is obtained according to a data interaction relationship between the mobile terminal and a second USB device among the multiple first USB devices.
