Method, system and device for managing and controlling USB interface on mobile terminal
By setting up an authentication terminal between the mobile terminal and the USB device, and using the SUB signal line for identity authentication and heartbeat detection, the security problem of the USB interface of the mobile terminal is solved, and the security control effect of reducing costs and enhanced compatibility is achieved.
Patent Information
- Application Number
- CN202411097303.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
The USB interface on a mobile terminal is likely to lead to data leakage or malware injection when used incorrectly. Traditional interface protection methods have problems such as high cost, long production cycle and incompatibility of general terminals.
Set up an authentication terminal between the mobile terminal and the USB device, and perform identity authentication and heartbeat packet detection through the SUB signal line, and control the connection and disconnection of the USB interface to ensure information security.
It realizes security control of the USB interface of the mobile terminal, is compatible with general-purpose adapters and data cables, reduces costs and production cycles, and enhances the protection and compatibility of the terminal.
Smart Images

Figure CN119004570A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of interface protection, and in particular to a method, system and device for controlling a USB interface on a mobile terminal. 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 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 on a mobile terminal, wherein an authentication terminal is arranged between the mobile terminal and the USB device, and the authentication terminal is connected to the mobile terminal via a SUB signal line. The method for controlling the USB interface of the mobile terminal via the authentication terminal comprises the following steps:
[0006] In response to a connection request from the mobile terminal, the mobile terminal is authenticated by the authentication terminal and then connected to the USB device;
[0007] In response to the connection process between the mobile terminal and the USB device, a heartbeat data packet is sent to the authentication terminal through the mobile terminal to detect whether the authentication terminal and the USB device are disconnected. When disconnected, the USB function of the mobile terminal is turned off.
[0008] Preferably, during the identity authentication process, the identity authentication is performed according to the terminal serial number, or according to a symmetric cryptographic algorithm, or according to an asymmetric cryptographic algorithm.
[0009] Preferably, in the process of sending the heartbeat data packet, a heartbeat data packet is sent to the authentication terminal every several seconds through the mobile terminal, and the authentication terminal is waited for to respond within several seconds; if the authentication terminal responds in time, the USB function is maintained; otherwise, the USB function is turned off.
[0010] The present invention discloses a management and control system for a USB interface on a mobile terminal, the system is used to implement a management and control method for a USB interface on a mobile terminal, the system comprising:
[0011] A first response module, used to respond to a connection request from a mobile terminal, and connect to the USB device after the mobile terminal is authenticated by an authentication terminal;
[0012] The second response module is used to respond to the connection process between the mobile terminal and the USB device, send a heartbeat data packet to the authentication terminal through the mobile terminal, detect whether the authentication terminal and the USB device are disconnected, and when disconnected, turn off the USB function of the mobile terminal.
[0013] Preferably, the first response module is further used to perform identity authentication according to the terminal serial number, or to perform identity authentication according to a symmetric encryption algorithm, or to perform identity authentication according to an asymmetric encryption algorithm.
[0014] Preferably, the second response module is also used to send a heartbeat data packet to the authentication terminal every several seconds through the mobile terminal, and wait for the authentication terminal to respond within several seconds; if the authentication terminal responds in time, the USB function is maintained; otherwise, the USB function is turned off.
[0015] The present invention also discloses a control device for a USB interface on a mobile terminal, which is an authentication terminal and includes:
[0016] Type-C USB interface, used to connect to mobile terminals;
[0017] Multiple USB ports for connecting USB devices;
[0018] The microprocessor MCU is electrically connected to the Type-C USB interface and multiple USB interfaces, and is used to authenticate the mobile terminal and control the mobile terminal to connect with the USB device. When the USB device is disconnected from the MCU, the USB interface of the mobile terminal is turned off.
[0019] Preferably, the microprocessor MCU is also used to obtain the terminal serial number sent by the mobile terminal for identity authentication, or to perform identity authentication according to a symmetric encryption algorithm sent by the mobile terminal, or to perform identity authentication according to an asymmetric encryption algorithm sent by the mobile terminal.
[0020] Preferably, the microprocessor MCU is also used to obtain the heartbeat data packet sent regularly by the mobile terminal, perform verification according to the connection status of the USB device and the authentication terminal, and turn off the USB function of the mobile terminal when the USB device is disconnected from the authentication terminal.
[0021] Preferably, the authentication terminal is connected to a plurality of USB devices, and the mobile terminal is connected to one or more USB devices through the authentication terminal.
[0022] The present invention discloses the following technical effects:
[0023] (1) Compatible with universal adapters and data cables for data import / export, enhancing terminal compatibility;
[0024] (2) It can prevent data collectors from using common data cables to import / export data, thus enhancing terminal protection;
[0025] (3) Reduce procurement costs to the level of ordinary industry procurement costs;
[0026] (4) Shorten the production cycle to the level of the procurement cycle of ordinary industries;
[0027] (5) Reduce the minimum order quantity required to reach the minimum order quantity level for ordinary industry purchases;
[0028] (6) Does not affect the original common functions of Type-C. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] 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.
[0030] Figure 1 It is a schematic diagram of the structure of the device described in the present invention. DETAILED DESCRIPTION
[0031] 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.
[0032] The present invention provides a method for controlling a USB interface on a mobile terminal. An authentication terminal is arranged between the mobile terminal and a USB device. The authentication terminal is connected to the mobile terminal via a SUB signal line. The method for controlling the USB interface of the mobile terminal via the authentication terminal includes the following steps:
[0033] In response to a connection request from the mobile terminal, the mobile terminal is authenticated by the authentication terminal and then connected to the USB device;
[0034] In response to the connection process between the mobile terminal and the USB device, a heartbeat data packet is sent to the authentication terminal through the mobile terminal to detect whether the authentication terminal and the USB device are disconnected. When disconnected, the USB function of the mobile terminal is turned off.
[0035] Further preferably, the management and control method for the USB interface on the mobile terminal provided by the present invention performs identity authentication according to the terminal serial number, or performs identity authentication according to a symmetric encryption algorithm, or performs identity authentication according to an asymmetric encryption algorithm during the identity authentication process.
[0036] Further preferably, the management and control method for the USB interface on a mobile terminal provided by the present invention, in the process of sending a heartbeat data packet, sends a heartbeat data packet to the authentication terminal every several seconds through the mobile terminal, and waits for the authentication terminal to respond within several seconds; if the authentication terminal responds in time, the USB function is maintained; otherwise, the USB function is turned off.
[0037] The present invention discloses a management and control system for a USB interface on a mobile terminal, the system is used to implement a management and control method for a USB interface on a mobile terminal, the system comprising:
[0038] A first response module, used to respond to a connection request from a mobile terminal, and connect to the USB device after the mobile terminal is authenticated by an authentication terminal;
[0039] The second response module is used to respond to the connection process between the mobile terminal and the USB device, send a heartbeat data packet to the authentication terminal through the mobile terminal, detect whether the authentication terminal and the USB device are disconnected, and when disconnected, turn off the USB function of the mobile terminal.
[0040] Further preferably, the first response module of the management and control system for the USB interface on the mobile terminal disclosed in the present invention is also used to perform identity authentication according to the terminal serial number, or to perform identity authentication according to a symmetric encryption algorithm, or to perform identity authentication according to an asymmetric encryption algorithm.
[0041] Further preferably, the second response module of the management and control system for the USB interface on the mobile terminal disclosed in the present invention is also used to send a heartbeat data packet to the authentication terminal through the mobile terminal every several seconds, and wait for the authentication terminal to respond within several seconds; if the authentication terminal responds in time, the USB function is maintained; otherwise, the USB function is turned off.
[0042] The present invention also discloses a control device for a USB interface on a mobile terminal, which is an authentication terminal and includes:
[0043] Type-C USB interface, used to connect to mobile terminals;
[0044] Multiple USB ports for connecting USB devices;
[0045] The microprocessor MCU is electrically connected to the Type-C USB interface and multiple USB interfaces, and is used to authenticate the mobile terminal and control the mobile terminal to connect with the USB device. When the USB device is disconnected from the MCU, the USB interface of the mobile terminal is turned off.
[0046] Further preferably, the microprocessor MCU of the authentication terminal disclosed in the present invention is also used to obtain the terminal serial number sent by the mobile terminal for identity authentication, or to perform identity authentication according to the symmetric encryption algorithm sent by the mobile terminal, or to perform identity authentication according to the asymmetric encryption algorithm sent by the mobile terminal.
[0047] Further preferably, the microprocessor MCU of the authentication terminal disclosed in the present invention is also used to obtain the heartbeat data packet sent periodically by the mobile terminal, and perform verification according to the connection status of the USB device and the authentication terminal. When the USB device is disconnected from the authentication terminal, the USB function of the mobile terminal is turned off.
[0048] Further preferably, the authentication terminal disclosed in the present invention is connected to a plurality of USB devices, and the mobile terminal is connected to one or more USB devices through the authentication terminal.
[0049] Examples, such as Figure 1As shown, the present invention provides 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.
[0050] In a specific implementation, the authentication terminal includes a Type-C USB interface for uplink, multiple USB interfaces for connecting USB devices, and a microprocessor MCU. The microprocessor MCU and the USB interface are connected to the Type-C USB interface.
[0051] In specific implementation, the SUB signal line is used to transmit authentication data between the authentication terminal and the mobile terminal. There are 24 signal lines in the standard Type-C interface definition, including: 8 power lines (including ground lines), 4 USB2.0 signals, 8 USB3.0 signals, 2 CC lines, and 2 SUB lines. The power line (including ground line) and CC line are mainly used for terminal charging and fast charging protocol interaction, USB2.0 and USB3.0 signal lines are used for data transmission; SUB signal lines are mainly used as backup channels for audio transmission when transmitting DP (Display Port) signals and as transmission channels for microphones when connecting analog audio headphones. In most scenarios, the probability of using SUB signal lines is extremely low and will not affect the normal functions of USB devices.
[0052] In specific implementation, the mobile terminal turns on the host USB function after successfully authenticating through the SUB signal line. In this way, the microprocessor MCU of the authentication terminal only needs to process authentication and heartbeat messages. The authentication link will not affect the performance indicators of the USB interface of the mobile terminal.
[0053] Based on the device proposed by the present invention, a method for using the device to perform USB interface management and control includes the following steps:
[0054] (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;
[0055] 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.
[0056] (2) Identity authentication. The mobile terminal authenticates itself with the authentication terminal through the SUB signal line in the USB interface. After the authentication is completed within the specified time, the USB function is normally enabled, otherwise the USB function is disabled.
[0057] 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.
[0058] (3) Heartbeat detection. After successfully authenticating with the authentication terminal, the mobile terminal periodically sends a "heartbeat" signal to ensure that the USB function can be turned off in time after the authentication terminal is disconnected. The mobile terminal sends a heartbeat data packet to the authentication terminal every few seconds and waits for the authentication terminal to respond within a few seconds; if the authentication terminal responds in time, the USB function is maintained; otherwise, the USB function is turned off.
[0059] 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.
[0060] In actual use, the device provided by the present invention can be charged by a universal adapter and a data cable for data collection personnel. The authentication terminal is in the hands of data collectors (supervisors, etc.), ensuring that most personnel cannot import / export data. The risk of information leakage can be effectively reduced while the cost is limited.
[0061] 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.
[0062] 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.
[0063] 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 on a mobile terminal, characterized in that: An authentication terminal is set between a mobile terminal and a USB device, and the authentication terminal is connected to the mobile terminal via a SUB signal line. The method for controlling the USB interface of the mobile terminal via the authentication terminal includes the following steps: In response to a connection request from a mobile terminal, the mobile terminal is authenticated by the authentication terminal and then connected to the USB device; In response to the connection process between the mobile terminal and the USB device, a heartbeat data packet is sent to the authentication terminal through the mobile terminal to detect whether the authentication terminal is disconnected from the USB device. When disconnected, the USB function of the mobile terminal is turned off.
2. A method for controlling a USB interface on a mobile terminal according to claim 1, characterized in that: During the identity authentication process, the identity authentication is performed according to the terminal serial number, or according to a symmetric encryption algorithm, or according to an asymmetric encryption algorithm.
3. A method for controlling a USB interface on a mobile terminal according to claim 2, characterized in that: In the process of sending the heartbeat data packet, the mobile terminal sends a heartbeat data packet to the authentication terminal every several seconds, and waits for the authentication terminal to respond within several seconds; if the authentication terminal responds in time, the USB function is maintained; otherwise, the USB function is turned off.
4. A management and control system for a USB interface on a mobile terminal, characterized in that: The system is used to implement a method for controlling a USB interface on a mobile terminal as claimed in any one of claims 1 to 3, and the system comprises: A first response module, used for responding to a connection request from a mobile terminal, and connecting with the USB device after identity authentication of the mobile terminal by the authentication terminal; The second response module is used to respond to the connection process between the mobile terminal and the USB device, send a heartbeat data packet to the authentication terminal through the mobile terminal, detect whether the authentication terminal is disconnected from the USB device, and when disconnected, turn off the USB function of the mobile terminal.
5. A management and control system for a USB interface on a mobile terminal according to claim 4, characterized in that: The first response module is further used to perform identity authentication according to the terminal serial number, or to perform identity authentication according to a symmetric encryption algorithm, or to perform identity authentication according to an asymmetric encryption algorithm.
6. A management and control system for a USB interface on a mobile terminal according to claim 5, characterized in that: The second response module is also used to send a heartbeat data packet to the authentication terminal every several seconds through the mobile terminal, and wait for the authentication terminal to respond within several seconds; if the authentication terminal responds in time, the USB function is maintained; otherwise, the USB function is turned off.
7. A control device for a USB interface on a mobile terminal, characterized in that: The device is an authentication terminal, comprising: Type-C USB interface, used to connect to the mobile terminal; Multiple USB ports for connecting USB devices; The microprocessor MCU is electrically connected to the Type-C USB interface and multiple USB interfaces, and is used to authenticate the mobile terminal and control the mobile terminal to connect with the USB device. When the USB device is disconnected from the MCU, the USB interface of the mobile terminal is closed.
8. A control device for a USB interface on a mobile terminal according to claim 7, characterized in that: The microprocessor MCU is also used to obtain the terminal serial number sent by the mobile terminal for identity authentication, or to perform identity authentication according to the symmetric encryption algorithm sent by the mobile terminal, or to perform identity authentication according to the asymmetric encryption algorithm sent by the mobile terminal.
9. A control device for a USB interface on a mobile terminal according to claim 8, characterized in that: The microprocessor MCU is also used to obtain the heartbeat data packet sent regularly by the mobile terminal, and perform verification according to the connection status between the USB device and the authentication terminal. When the USB device is disconnected from the authentication terminal, the USB function of the mobile terminal is turned off.
10. A control device for a USB interface on a mobile terminal according to claim 9, characterized in that: The authentication terminal is connected to a plurality of the USB devices, and the mobile terminal is connected to one or more of the USB devices through the authentication terminal.
