USB-KEY control method, USB-KEY, terminal equipment and storage medium

By detecting the wireless signal strength of the USB-KEY and the mobile terminal, it automatically controls the status of the terminal device, solving the problem of difficulty in protecting the security of the USB-KEY when the user leaves, improving work efficiency and security, and is suitable for a variety of scenarios.

CN118695260APending Publication Date: 2024-09-24SHANGHAI HUASHEN INTELLIGENT IC CARD APPL SYST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410926316.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

It is difficult to effectively protect the security of existing USB-KEY when the user is away. Common solutions such as automatic locking, screen savers, physical devices and regular password changes have problems that affect work efficiency or increase management burden.

Method used

By detecting the wireless signal strength between the USB-KEY and the mobile terminal, it automatically controls the lock screen and unlock status of the terminal device, pauses or resumes encryption and decryption operations, and ensures the data protection of the USB-KEY under unsupervised conditions.

Benefits of technology

It improves the work efficiency of USB-KEY, is suitable for different scenarios, enhances the security and applicability of the system, reduces user operation steps, and avoids the risk of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118695260A
    Figure CN118695260A
Patent Text Reader

Abstract

The invention provides a USB-KEY control method, a USB-KEY, a terminal device and a storage medium. The USB-KEY control method comprises the following steps: detecting the intensity of a wireless signal between the USB-KEY and the mobile terminal; when the intensity of the wireless signal is lower than a preset threshold value, controlling the terminal equipment to trigger a first state; the first state comprises a screen locking state; when the intensity of the wireless signal is higher than the preset threshold value, controlling the terminal equipment to trigger a second state; the second state comprises an unlocking state. According to the method and the system, data protection of the USB-KEY under unmanned supervision is realized, the working efficiency of a user using the USB-KEY is improved, the use requirements in different scenes are also considered, and the applicability of the system is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of USB-KEY secure communication, and in particular to a USB-KEY control method, a USB-KEY, a terminal device and a storage medium. Background Art

[0002] USB-KEY is usually called USB security token or U shield, which is used to enhance the security of computer system and provide users with a secure means of identity authentication and data protection. If the user leaves the computer during use, the risk of USB-KEY being illegally used by others or data leakage may increase. The common practices to protect the security of USB-KEY when the user leaves are: setting automatic lock, screen saver, physical device, encrypted storage device, regular password change, etc. However, setting automatic lock will affect the user's work efficiency due to frequent automatic lock, or reduce security due to extended lock time; if the user is only away for a short time, the screen saver does not have enough time to start; physical device is not suitable for some temporary workplaces; using encrypted storage devices may cause data inaccessibility; regular password change improves security, but it increases the burden of password management for users. Summary of the invention

[0003] The purpose of the present invention is to provide a USB-KEY control method, USB-KEY, terminal device and storage medium, so as to realize data protection of USB-KEY under unsupervised conditions, control the safe use of U shield by detecting the strength of wireless signal connected to USB-KEY, improve the work efficiency of users when using USB-KEY, take into account the use requirements in different scenarios, and enhance the applicability of the system.

[0004] The technical solution provided by the present invention is as follows:

[0005] The present invention provides a USB-KEY control method, wherein the USB-KEY is plugged into a terminal device, and the USB-KEY also establishes a wireless communication connection with a mobile terminal, and the method comprises the following steps:

[0006] Detect the strength of the wireless signal between the USB-KEY and the mobile terminal.

[0007] When the strength of the wireless signal is lower than a preset threshold, the terminal device is controlled to trigger a first state; the first state includes a locked screen state.

[0008] When the strength of the wireless signal is higher than a preset threshold, the terminal device is controlled to trigger a second state; the second state includes an unlocked state.

[0009] Furthermore, when the strength of the wireless signal is lower than a preset threshold, the method further includes:

[0010] The USB-KEY that has passed authentication and is in a login state is controlled to suspend execution of a first operation instruction; the first operation instruction includes encryption, decryption and signature operations.

[0011] Furthermore, when the strength of the wireless signal is lower than a preset threshold, the method further includes:

[0012] When a wireless signal interruption is detected and it is recognized that the USB-KEY has passed the authentication and is in the login state, the USB-KEY is controlled to clear the login state.

[0013] Further, after detecting that the wireless signal is interrupted, the method further includes:

[0014] When it is detected that the strength of the wireless signal is restored to above the preset threshold, the control displays an interface for re-authenticating and logging into the USB-KEY.

[0015] Furthermore, after the control displays the interface for re-authenticating and logging into the USB-KEY, it includes:

[0016] After detecting that the USB-KEY has passed the authentication and is in the login state, an authorization confirmation of the USB-KEY is sent to the mobile terminal.

[0017] After detecting the authorization confirmation by the mobile terminal, the USB-KEY is controlled to respond and execute the first operation instruction.

[0018] Furthermore, it also includes:

[0019] Control the sending of files with the mobile terminal in encrypted form via USB-KEY.

[0020] The present invention also provides a USB-KEY having a function of sending wireless signals, comprising:

[0021] Interface module, which establishes a physical connection with the terminal device.

[0022] The wireless communication module establishes a wireless communication connection with the mobile terminal after establishing a physical connection with the terminal device; the wireless communication connection includes a Bluetooth connection.

[0023] Furthermore, it also includes:

[0024] The control module, when the strength of the wireless signal is lower than a preset threshold, responds to the execution of the USB-KEY that has passed the authentication and is in the login state, and suspends the execution of the first operation instruction; the first operation instruction includes encryption, decryption and signing operations.

[0025] The present invention also provides a terminal device for controlling the lock screen and unlock status of a device physically connected to a USB-KEY, comprising a processor for calling instructions stored in a memory, and when the instructions are executed, the terminal device executes a USB-KEY control method.

[0026] The present invention also provides a storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operation performed by the USB-KEY control method.

[0027] Through the USB-KEY control method, USB-KEY, terminal device and storage medium provided by the present invention, data of USB-KEY can be protected under unsupervised conditions, and the communication security of U shield can be enhanced, which not only improves the work efficiency of users when using USB-KEY, but also takes into account the usage requirements in different scenarios, thereby enhancing the applicability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The following will explain the preferred implementation mode in a clear and understandable manner with reference to the accompanying drawings, and further explain the above-mentioned characteristics, technical features, advantages and implementation methods of a USB-KEY control method, USB-KEY, terminal device and storage medium.

[0029] Figure 1 It is a structural schematic diagram of an embodiment of a USB-KEY of the present invention;

[0030] Figure 2 is a flow chart of an embodiment of a USB-KEY control method of the present invention;

[0031] Figure 3 is a flow chart of another embodiment of a USB-KEY control method of the present invention;

[0032] Figure 4 It is a structural schematic diagram of an embodiment of a terminal device of the present invention. DETAILED DESCRIPTION

[0033] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0034] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.

[0035] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0036] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0038] USB-KEY is a security device that is usually used to provide authentication and data encryption services. It is a hardware device that can be connected to a computer or other electronic device through a USB interface. USB-KEY is widely used in a variety of scenarios, such as online banking, e-government, internal enterprise systems, etc. It can effectively protect information security and prevent information leakage and illegal access. When using USB-KEY, the user needs to insert it into the USB interface of the computer, and then authenticate by entering a password or using biometric technology (such as fingerprint, facial recognition, etc.). Once the verification is successful, the user can access the relevant systems and data.

[0039] Under the existing technology, when using USB-KEY for identity authentication and data encryption, if the user leaves the computer and does not unplug the USB-KEY during this period, the login status of the USB-KEY will not change, and leaving may increase the risk of illegal use of the device by others or data leakage. The current common practices to protect the security of USB-KEY when the user is away are: set automatic lock, automatically lock the screen after no operation for a certain period of time, and require USB-KEY identity authentication to use; use a screen saver, start when the user leaves the computer, and enter the correct password to unlock the protection; use a physical device to fix the computer to prevent others from moving the computer when the user is away; encrypt the storage device, and encrypt it on the storage device when using USB-KEY to store sensitive data; regularly change the password of USB-KEY to reduce security risks.

[0040] However, setting automatic lock may affect user work efficiency due to frequent automatic lock, or reduce security due to extended lock time; if the user is away for only a short time, there is not enough time to start the screen saver; the physical device may be damaged and is not suitable for some temporary workplaces; the use of encrypted storage devices may increase the time for data storage and access, affecting work efficiency and causing data inaccessibility; although regular password changes improve security, the new password may be forgotten due to frequent password changes, increasing the burden of password management for users.

[0041] For a conventional USB-KEY, when it is inserted into the USB port of a local device, the operating system of the local device recognizes the USB-KEY through a driver, and the driver establishes a communication connection with the USB-KEY so as to send and receive data after identity authentication. Conventional USB-KEYs usually do not contain Bluetooth or other wireless connection devices, and cannot be wirelessly connected to mobile devices. They are mainly connected to computers or other devices through physical USB interfaces.

[0042] The USB-KEY of the present invention includes a wireless connection device, which can realize wireless connection with a mobile terminal, and execute the screen status of the terminal device and the instruction operation of the USB-KEY according to the detection of the wireless signal strength between the USB-KEY and the mobile terminal. By using the wireless communication module of the USB-KEY, combined with the security features of wireless communication and conventional U shield, a higher level of multi-factor authentication is achieved to ensure the security of information exchange between devices. In addition, a security token service is also provided, which serves as a generator of security tokens, provides dynamic authentication, and enhances the security of using USB-KEY.

[0043] Therefore, the present invention provides a USB-KEY control method, which establishes a wireless connection with the USB-KEY, compares the detected wireless signal strength with a preset threshold, and then maintains the unlocked state of the terminal device or performs a lock screen operation; and also personalizes the USB-KEY according to the degree of security requirements, and the wireless signal can operate in conjunction with the USB-KEY encryption process.

[0044] The USB-KEY with wireless communication function uses the USB-KEY control method to realize data protection of USB-KEY under unsupervised conditions, strengthen the communication security of the U-Shield, improve the work efficiency of users when using USB-KEY, take into account the usage needs in different scenarios, and enhance the applicability of the system.

[0045] The following is a description with reference to the accompanying drawings:

[0046] In one embodiment of the present invention, Figure 1As shown, a USB-KEY comprises:

[0047] The interface module 110 establishes a physical connection with the terminal device.

[0048] The wireless communication module 120 establishes a wireless communication connection with the mobile terminal after establishing a physical connection with the terminal device; the wireless communication connection includes a Bluetooth connection.

[0049] Specifically, the interface module 110 of USB-KEY includes USB interface, power management, communication protocol support, etc., wherein USB-KEY usually uses a standard USB interface (such as USB TYPE-A) to connect to a terminal device (such as a computer); power management is used to manage the power supply of USB-KEY to ensure that the device can work normally when the USB is connected; the communication protocol supports USB-KEY to realize data exchange with the host device.

[0050] The wireless communication module 120 of USB-KEY includes a wireless communication chip, an antenna, a microcontroller or processor, a wireless communication interface, etc., wherein the dedicated wireless communication chip can support Bluetooth, Wi-Fi, NFC or other wireless technologies, for example, it can be connected to a mobile phone via Bluetooth; the antenna is used for sending and receiving wireless signals, and the antenna can be a built-in antenna; the dedicated microcontroller is used to process wireless communication tasks, for example, sending wireless signals; the wireless communication interface is used to provide a hardware interface with the wireless communication chip, for example, SPI or I2C.

[0051] When the USB-KEY is inserted into the USB port of the terminal device, the interface module 110 therein can establish a physical connection with the terminal device. The operating system of the terminal device recognizes the U shield through the driver, and the driver establishes a communication connection with the USB-KEY to send and receive data after identity authentication.

[0052] After the USB-KEY establishes a physical connection, its wireless communication module 120 sends a wireless signal, the wireless device of the mobile terminal is turned on, the mobile terminal searches for and connects to the wireless signal of the USB-KEY, and the mobile terminal and the USB-KEY establish a stable wireless signal connection, and the wireless signal includes a Bluetooth signal. In this embodiment, the wireless signal of the mobile terminal is sent to the terminal device in real time, and the strength of the wireless signal of the mobile terminal is used as a key parameter to trigger the change of the lock screen state of the terminal device that establishes a physical connection with the USB-KEY.

[0053] Please refer to Figure 1 , when using wireless signals to control the operation of the USB-KEY, it also includes:

[0054] The control module 130, when the strength of the wireless signal is lower than a preset threshold, responds to the execution of the USB-KEY that has passed the authentication and is in the login state, and suspends the execution of the first operation instruction; the first operation instruction includes encryption, decryption and signing operations.

[0055] Specifically, the control module 130 of the USB-KEY includes a microprocessor, a memory, a security chip, an input / output interface, an identity authentication mechanism, etc., wherein the microcontroller is the core of the USB-KEY, responsible for executing program instructions and controlling all operations of the USB-KEY; the memory (such as EEPROM or Flash) is used to store firmware, certificates, keys and other data; the security chip is used to securely store keys and perform identity authentication, encryption and decryption operations; the input / output interface controls the communication between the USB-KEY and external devices, including the USB interface; the identity authentication mechanism controls access to the USB-KEY, for example, PIN code verification or other biometric verification.

[0056] For a USB-KEY that has been logged in and authenticated on a terminal device, when the wireless signal of a mobile terminal connected to the USB-KEY is lower than the set wireless signal threshold, it means that the user has left the terminal device, and encryption, decryption, signing and other operations on the USB-KEY will be suspended.

[0057] In this embodiment, the USB-KEY not only has traditional functions such as identity authentication and data encryption, but also innovatively integrates a wireless communication module, enabling it to actively perform wireless signal pairing and signal strength monitoring with a mobile terminal. This integrated design is a significant improvement over existing USB-KEY devices.

[0058] The USB-KEY of the present invention has a wireless communication function and can be connected to an intelligent mobile terminal device, such as a smart phone, a tablet, a smart bracelet, etc. After the USB-KEY establishes a physical connection with the terminal device through the interface module 110, it is paired and connected with the mobile terminal through the built-in wireless communication module 120. Among them, the terminal device can be a local device or a cloud server. The relevant operations of the USB-KEY are controlled by the wireless signal strength of the mobile terminal, and the wireless signal can be a Bluetooth signal, a radio frequency identification signal, a cellular network signal, etc. The USB-KEY of the present invention is executed based on a USB-KEY control method to realize data protection of the USB-KEY under unsupervised conditions, strengthen the communication security of the U shield, improve the work efficiency of users when using the USB-KEY, and take into account the use requirements in different security scenarios.

[0059] The following is a description with reference to the accompanying drawings:

[0060] In one embodiment of the present invention, please refer to Figure 2, which shows a flow chart of a USB-KEY control method provided in some embodiments of the present disclosure. The method is executed by a terminal device and includes at least the following steps:

[0061] S100 detects the strength of the wireless signal between the USB-KEY and the mobile terminal.

[0062] S200: When the strength of the wireless signal is lower than a preset threshold, the terminal device is controlled to trigger a first state, where the first state includes a screen lock state.

[0063] S300: When the strength of the wireless signal is higher than a preset threshold, the terminal device is controlled to trigger a second state, where the second state includes an unlocked state.

[0064] Specifically, the terminal device is equipped with a USB interface for receiving the USB-KEY command. The dedicated control software is installed on the terminal device for receiving the wireless signal strength detected by the USB-KEY and controlling the screen state of the terminal device with the USB-KEY inserted according to the information.

[0065] After the USB-KEY establishes a physical connection with the terminal device, the wireless communication module of the USB-KEY sends a wireless signal, which puts the USB-KEY into wireless signal pairing mode. The user searches and connects to the wireless signal of the USB-KEY through the mobile terminal, and the mobile terminal establishes a stable wireless signal connection with the USB-KEY, and the wireless signal includes a Bluetooth signal.

[0066] Users can adjust the wireless signal strength threshold through the dedicated control software of the terminal device according to their work environment and personal habits to achieve personalized settings of the lock screen trigger distance. This not only ensures data security, but also takes into account the usage needs in different scenarios, enhancing the adaptability of the system.

[0067] The USB-KEY monitors the wireless signal strength of the paired mobile device in real time, and the dedicated control software on the terminal device receives the wireless signal strength of the mobile terminal. The dedicated control software of the terminal device compares the received wireless signal strength with the preset threshold to determine whether to maintain the unlocked state or perform a lock screen operation. When the strength of the wireless signal is lower than the preset threshold, the terminal device is controlled to trigger the first state, which may be a lock screen state, so that the terminal device cannot continue to operate the inserted USB-KEY; when the strength of the wireless signal is higher than the preset threshold, the terminal device is controlled to trigger the second state, which may be to maintain the unlocked state, so that the user continues to operate the USB-KEY through the terminal device.

[0068] In order to enable the mobile terminal to send encrypted files to the terminal device, the USB-KEY control method also includes: controlling the sending of files in an encrypted manner with the mobile terminal via the USB-KEY.

[0069] Specifically, USB-KEY sends the encryption and decryption key to the mobile terminal. The mobile terminal encrypts the file using the key and transmits it to the terminal device via wireless communication. The terminal device decrypts the sent file through USB-KEY.

[0070] After inserting the USB-KEY into a terminal device without wireless communication function, the terminal device will have the function of transferring files between the mobile terminal and the wireless signal. When the mobile terminal and the terminal device are transferring files, the USB-KEY generates a set of random numbers as the file encryption and decryption keys and sends them to the mobile terminal. The mobile terminal encrypts the file with the set of keys and transmits it to the terminal device via wireless communication. The terminal device establishes a physical connection with the USB-KEY and then decrypts the file to obtain the original text of the file. By sending files in an encrypted manner, the wireless signal strength can be linked with the encryption process of the USB-KEY, which not only ensures the security of the file, but also improves the convenience of file transfer.

[0071] In this embodiment, the USB-KEY control method uses the wireless signal strength of the mobile terminal as a key parameter to trigger the screen state change of the terminal device with the USB-KEY inserted. This method of judging whether the user is near the terminal device with the USB-KEY inserted based on the wireless signal strength and locking the screen or maintaining the unlocking operation accordingly is a significant improvement over the traditional timed, manual or biometric recognition lock screen method.

[0072] When the strength of the wireless signal is lower than the preset threshold, it may be that the wireless signal strength is weak or the wireless signal is interrupted. Now we will explain one of the situations. Please refer to Figure 3 , the above step S200 may include:

[0073] S210: When it is detected that the wireless signal is interrupted and it is recognized that the USB-KEY has passed the authentication and is in the login state, the USB-KEY is controlled to clear the login state.

[0074] S220 When it is detected that the strength of the wireless signal is restored to above the preset threshold, control the display of the interface for re-authenticating and logging into the USB-KEY.

[0075] After detecting that the USB-KEY has passed the authentication and is in the login state, S230 sends the USB-KEY authorization confirmation to the mobile terminal.

[0076] S240 controls the USB-KEY to respond and execute the first operation instruction after detecting the authorization confirmation by the mobile terminal.

[0077] Specifically, when the strength of the wireless signal is lower than a preset threshold, the terminal device is controlled to trigger a first state, which may be a locked screen state, so that the terminal device cannot continue to operate the inserted USB-KEY. However, the wireless signal being lower than the preset threshold may be a wireless signal interruption. When the dedicated control software of the terminal device detects that the wireless signal is interrupted, and the USB-KEY has verified that the user's PIN code is in a logged-in state and has the authority to operate the private key in the USB-KEY, the USB-KEY will be controlled to automatically clear its own login status on the terminal device. Even if the terminal device is reopened by others, they will not have the authority to perform private key operations on the inserted USB-KEY.

[0078] If the wireless signal is interrupted and then the strength of the wireless signal is detected to be restored to above the preset threshold, after reopening the terminal device, there is no permission to perform private key operations such as signing on the inserted USB-KEY. It is necessary to re-verify the PIN code of the USB-KEY to log in before it can be used.

[0079] In this embodiment, for some operations that require a high level of security (such as bank transfers), dual identity authentication can be added. Even if the current wireless signal strength of the mobile terminal is above the preset threshold and the user has verified the PIN code of the USB-KEY, the USB-KEY operation authority cannot be obtained immediately. Specifically, after detecting that the USB-KEY has passed the authentication and is in the login state, the wireless communication module of the USB-KEY can send a security prompt message to the mobile terminal, and the user needs to click on the security prompt to confirm the authorization on the mobile terminal. After detecting that the authorization confirmation has been passed by the mobile terminal, the USB-KEY obtains dual authentication, so that the USB-KEY can be used to perform the first operation instruction with a higher security level. The first operation instruction can be an encryption, decryption, or signature operation.

[0080] In order to ensure the security of USB-KEY communication in response to situations such as Bluetooth signal interruption and false triggering, the USB-KEY control method of the present invention can protect the wireless communication security between the USB-KEY and the user's mobile terminal, prevent a third party from maliciously hijacking or eavesdropping on the communication content, and prevent the computer from being maliciously controlled or invaded due to the sending of instructions without authorization and confirmation by the mobile terminal, so as to ensure the reliability of the system and the security of user privacy.

[0081] Now, the case where the strength of the wireless signal is weak is described. The above step S200 may also include: controlling the USB-KEY that has passed the authentication and is in the login state to suspend the execution of the first operation instruction; the first operation instruction includes encryption, decryption and signature operations.

[0082] Specifically, when the USB-KEY is performing symmetric encryption and decryption, asymmetric encryption and decryption, summary, signature and other operations, the USB-KEY is already in the logged-in state and has passed the authentication. The dedicated control software of the terminal device compares the received wireless signal with the preset threshold. If the wireless signal strength is lower than the preset threshold, in addition to locking the screen of the terminal device, the ongoing operation of the USB-KEY is also suspended. These suspended operations can be encryption and decryption, signature operations, and the control of suspending the USB-KEY operation can be checked in the operation item list through the dedicated control software on the terminal device.

[0083] In this embodiment, the USB-KEY control method is used to control the screen status and operation of the terminal device. The user does not need to manually set a complex timed lock screen or frequently plug and unplug the USB-KEY. The user only needs to bring the mobile terminal close to the terminal device to automatically unlock it. When leaving the terminal device, the system can also automatically lock it, providing a smoother working experience. For users who need to leave the terminal device frequently, such as employees or students in office scenarios, unnecessary operation steps can be reduced, which not only improves work efficiency but also ensures the security of the USB-KEY.

[0084] One embodiment of the present invention, as Figure 4 As shown, a terminal device 400 includes a processor 410 and a memory 420, wherein the memory 420 is used to store a computer program 421; the processor 410 is used to execute the computer program 421 stored in the memory 420 to implement the USB-KEY control method in the above-mentioned corresponding method embodiment.

[0085] The terminal device 400 may be a desktop computer, a notebook, a PDA, a tablet computer, a mobile phone, a human-computer interaction screen, etc. The terminal device 400 may include, but is not limited to, a processor 410 and a memory 420. Those skilled in the art will appreciate that Figure 4 It is only an example of the smart terminal device 400 and does not constitute a limitation on the terminal device 400. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, the smart watch 400 may also include an input / output interface, a display device, a network access device, a communication bus, a communication interface, etc. The communication interface and the communication bus may also include an input / output interface, wherein the processor 410, the memory 420, the input / output interface and the communication interface communicate with each other through the communication bus. The memory 420 stores a computer program 421, and the processor 410 is used to execute the computer program 421 stored in the memory 420 to implement the USB-KEY control method in the above-mentioned corresponding method embodiment.

[0086] The processor 410 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0087] The memory 420 may be an internal storage unit of the terminal device 400, such as a hard disk or memory of a smart device. The memory may also be an external storage device of the smart device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the smart device. Furthermore, the memory 420 may include both an internal storage unit of the smart device terminal 400 and an external storage device. The memory 420 is used to store the computer program 421 and other programs and data required by the smart terminal device 400. The memory may also be used to temporarily store data that has been output or is to be output.

[0088] The communication bus is a circuit that connects the elements described and realizes transmission between these elements. For example, the processor 410 receives commands from other elements through the communication bus, decrypts the received commands, and performs calculations or data processing according to the decrypted commands. The memory 420 may include program modules, such as kernels, middleware, application programming interfaces (APIs) and applications. The program modules may be composed of software, firmware or hardware, or at least two of them. The input / output interface forwards commands or data input by the user through the input / output interface (such as sensors, keyboards, touch screens). The communication interface connects the intelligent terminal device 400 with other network devices, user devices, and networks. For example, the communication interface can be connected to the network by wire or wireless to connect to other external network devices or user devices. Wireless communication may include at least one of the following: wireless fidelity (WiFi), Bluetooth (BT), near field communication technology (NFC), global satellite positioning system (GPS), and cellular communication, etc. Wired communication may include at least one of the following: Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), RS-232, etc. The network may be a telecommunication network and a communication network. The communication network may be a computer network, the Internet, the Internet of Things, or a telephone network. The terminal device 400 may be connected to the network via a communication interface, and the protocol used by the terminal device 400 and other network devices to communicate may be supported by at least one of an application, an application programming interface (API), a middleware, a kernel, and a communication interface.

[0089] One embodiment of the present invention is a storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operation performed by the corresponding embodiment of the above-mentioned USB-KEY control method. For example, the storage medium can be a read-only memory (ROM), a random access memory (RAM), a read-only compact disk (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.

[0090] They can be implemented with program codes executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0091] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0092] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed with hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0093] In the embodiments provided in the present application, it should be understood that the disclosed devices / smart watches and methods can be implemented in other ways. For example, the device / smart watch embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0095] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0096] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by sending instructions to related hardware through a computer program 421. The computer program 421 can be stored in a storage medium. When the computer program 421 is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program 421 can be in the form of source code, object code, executable file or some intermediate form. The storage medium may include: any entity or device capable of carrying the computer program 421, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.

[0097] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.

Claims

1. A USB-KEY control method, characterized in that: The USB-KEY is plugged into the terminal device, and the USB-KEY also establishes a wireless communication connection with the mobile terminal. The method includes the following steps: Detect the strength of the wireless signal between the USB-KEY and the mobile terminal; When the strength of the wireless signal is lower than a preset threshold, the terminal device is controlled to trigger a first state; the first state includes a locked screen state; When the strength of the wireless signal is higher than the preset threshold, the terminal device is controlled to trigger a second state; the second state includes an unlocked state.

2. The USB-KEY control method according to claim 1, characterized in that: When the strength of the wireless signal is lower than a preset threshold, the method further includes: The USB-KEY that has passed authentication and is in a login state is controlled to suspend execution of a first operation instruction; the first operation instruction includes encryption, decryption, and signature operations.

3. The USB-KEY control method according to claim 1, characterized in that: When the strength of the wireless signal is lower than a preset threshold, the method further includes: When it is detected that the wireless signal is interrupted, and it is recognized that the USB-KEY has passed the authentication and is in the login state, the USB-KEY is controlled to clear the login state.

4. The USB-KEY control method according to claim 3, characterized in that: After detecting that the wireless signal is interrupted, the method further includes: When it is detected that the strength of the wireless signal is restored to above the preset threshold, the interface for re-authentication and logging into the USB-KEY is controlled to be displayed.

5. The USB-KEY control method according to claim 4, characterized in that: After the control display re-authenticates and logs into the USB-KEY interface, it includes: After detecting that the USB-KEY has passed authentication and is in a logged-in state, sending an authorization confirmation of the USB-KEY to the mobile terminal; After detecting the authorization confirmation by the mobile terminal, the USB-KEY is controlled to respond and execute the first operation instruction.

6. The USB-KEY control method according to claim 1, characterized in that: Also includes: Control the sending of files with the mobile terminal in an encrypted manner through the USB-KEY.

7. A USB-KEY, characterized in that: It has the function of sending wireless signals, including: Interface module, establishing a physical connection with the terminal device; The wireless communication module establishes a wireless communication connection with the mobile terminal after establishing a physical connection with the terminal device; the wireless communication connection includes a Bluetooth connection.

8. The USB-KEY according to claim 7, characterized in that: Also includes: The control module, when the strength of the wireless signal is lower than a preset threshold, responds to the USB-KEY that has passed the authentication and is in the login state and suspends the execution of the first operation instruction; the first operation instruction includes encryption, decryption and signing operations.

9. A terminal device, characterized in that: Used to control the lock screen and unlock status of a device physically connected to a USB-KEY, including a processor for calling instructions stored in a memory, which, when executed, causes the terminal device to execute the USB-KEY control method as described in any one of claims 1-6.

10. A storage medium, characterized in that: The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the operation performed by the USB-KEY control method as described in any one of claims 1-6.