[go: up one dir, main page]

CN114818017A - A computer wake-up and interface encryption method, device, device and medium - Google Patents

A computer wake-up and interface encryption method, device, device and medium Download PDF

Info

Publication number
CN114818017A
CN114818017A CN202210606092.2A CN202210606092A CN114818017A CN 114818017 A CN114818017 A CN 114818017A CN 202210606092 A CN202210606092 A CN 202210606092A CN 114818017 A CN114818017 A CN 114818017A
Authority
CN
China
Prior art keywords
usb
computer
state
interface
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202210606092.2A
Other languages
Chinese (zh)
Inventor
刘坤选
李岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Shandong Computer Technology Co Ltd
Original Assignee
Inspur Shandong Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Shandong Computer Technology Co Ltd filed Critical Inspur Shandong Computer Technology Co Ltd
Priority to CN202210606092.2A priority Critical patent/CN114818017A/en
Publication of CN114818017A publication Critical patent/CN114818017A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/85Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/575Secure boot
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/81Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for awakening a computer and encrypting an interface, which relate to the technical field of computers and comprise the following steps: when detecting that the USB controller is in an activated state and the USB interface is in a power supply state, and when detecting a PCIE signal, controlling a target computer to be powered on based on the PCIE signal; the PCIE signal is generated based on an external device keying signal; the switch state of the USB interface is controlled to be a power supply loss state through the USB controller and the control signal in the CPU. It is thus clear that this application when the computer is in the dormant state, can awaken up the computer through external equipment key input signal alright, solved the computer and had just can awaken up the problem that the specific start button can be awakened up when the dormant state, improved the convenience that the computer used, in addition, this application can reach the hard encryption effect through the power supply state that sets up computer USB interface. In conclusion, the application improves the convenience and the safety of the computer.

Description

一种计算机唤醒及接口加密方法、装置、设备、介质A computer wake-up and interface encryption method, device, device and medium

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种计算机唤醒及接口加密方法、装置、设备及介质。The present invention relates to the field of computer technology, and in particular, to a computer wake-up and interface encryption method, device, device and medium.

背景技术Background technique

随着科技的进步,计算机的使用越来越广泛,与此同时,使用者希望计算机能带来更好的便利性、安全性、智能化等。例如:指纹开机、组合键开机、功能设定、USB(UniversalSerial Bus,通用串行总线)接口加密、可逆性故障显示等。With the advancement of science and technology, the use of computers has become more and more extensive. At the same time, users hope that computers can bring better convenience, security, and intelligence. For example: fingerprint boot, key combination boot, function setting, USB (Universal Serial Bus, Universal Serial Bus) interface encryption, reversible fault display, etc.

在使用计算机正常办公或日常生活中,都习惯性的使其经常处于睡眠或休眠状态。当计算机处于休眠状态时,功耗最低且数据不被丢失,唤醒后可以从上一次工作状态继续进行,良好的做到了节能、便捷、安全可靠等,但是由于使用者需要按开机按键才能唤醒计算机,而如果主机被锁在办公桌下面的柜子或箱子里面,还需要先开锁然后再按开机按键,如此一来,给使用者带来很大的不便。其次,通过计算机的USB接口拷贝资料的安全性是本领域重点关注的问题,现在许多企业使用自己的局域网,然后通过注册表禁用USB接口、通过组策略禁用USB接口、专门的封USB接口软件等,防止企业机密文件被盗,通过以上局域网禁用USB接口或软件加密的方式属于软加密,都有被破解的风险。When using a computer for normal office or daily life, it is habitual to make it often in a sleep or hibernation state. When the computer is in the sleep state, the power consumption is the lowest and the data is not lost. After waking up, it can continue from the last working state, which is energy-saving, convenient, safe and reliable. However, because the user needs to press the power button to wake up the computer , and if the host is locked in a cabinet or box under the desk, it is necessary to unlock the lock first and then press the power button, which brings great inconvenience to the user. Secondly, the security of copying data through the USB interface of the computer is a key concern in this field. Now many companies use their own local area network, and then disable the USB interface through the registry, disable the USB interface through group policies, and special software for sealing the USB interface, etc. , to prevent the theft of corporate confidential files, the above methods of disabling the USB interface or software encryption through the above LAN belong to soft encryption, and there is a risk of being cracked.

为此,如何使计算机在休眠状态时无需启动特定的开机按键就能被唤醒以及保证USB接口不易被破解,以提高计算机使用的便捷性与安全性是本领域亟待解决的问题。Therefore, how to make the computer wake up in the dormant state without activating a specific power-on button and ensure that the USB interface is not easy to be cracked, so as to improve the convenience and security of the computer use, is an urgent problem to be solved in the art.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供一种计算机唤醒及接口加密方法、装置、设备、介质,能够使计算机在休眠状态时无需启动特定的开机按键就能被唤醒以及保证了USB接口不易被破解,从而提高了计算机使用的便捷性与安全性,其具体方案如下:In view of this, the purpose of the present invention is to provide a computer wake-up and interface encryption method, device, device, and medium, which can enable the computer to be awakened without starting a specific power-on button when in a dormant state, and ensure that the USB interface is not easy to be cracked. , so as to improve the convenience and security of computer use, the specific scheme is as follows:

第一方面,本申请公开了一种计算机唤醒及接口加密方法,其特征在于,应用于目标计算机的CPU,所述CPU与若干数量个USB控制器建立通信,每个所述USB控制器与若干数量个USB接口建立通信,所述方法包括:In the first aspect, the present application discloses a computer wake-up and interface encryption method, which is characterized in that it is applied to a CPU of a target computer, the CPU establishes communication with a number of USB controllers, and each of the USB controllers communicates with a number of USB controllers. A number of USB interfaces establish communication, and the method includes:

当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;When it is detected that the USB controller is in an active state and the USB interface is in a power supply state, and when a PCIE signal sent by the USB controller is detected, the target computer is controlled to power on based on the PCIE signal; The PCIE signal is generated by the USB controller based on the USB signal, and the USB signal is an external device key-in signal;

通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。The switch state corresponding to the USB interface is controlled to be a power loss state through the control signal in the USB controller and the CPU, so as to perform hard encryption on the USB interface.

可选的,所述计算机唤醒及接口加密方法,其特征在于,所述基于所述PCIE信号控制所述目标计算机进行上电,包括:Optionally, the computer wake-up and interface encryption method, wherein the controlling the target computer to power on based on the PCIE signal includes:

基于所述PCIE信号驱动所述CPU中的电源控制模块;Drive the power control module in the CPU based on the PCIE signal;

通过所述电源控制模块控制所述目标计算机进行上电。The target computer is controlled to be powered on by the power control module.

可选的,所述通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密,包括:Optionally, the control signal in the USB controller and the CPU to jointly control the switch state corresponding to the USB interface to be a power loss state, so as to perform hard encryption on the USB interface, including:

通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有所述USB接口对应的开关状态为供电丢失状态,以便对所有所述USB接口进行硬加密。All the USB controllers and the control signals in the CPU jointly control the switch states corresponding to all the USB interfaces to be a power loss state, so as to perform hard encryption on all the USB interfaces.

可选的,所述通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密,包括:Optionally, the control signal in the USB controller and the CPU to jointly control the switch state corresponding to the USB interface to be a power loss state, so as to perform hard encryption on the USB interface, including:

通过目标USB控制器以及所述CPU中的控制信号共同控制目标USB接口对应的开关状态为供电丢失状态,以便对所述目标USB接口进行硬加密。The switch state corresponding to the target USB interface is jointly controlled by the target USB controller and the control signal in the CPU to be a power loss state, so as to perform hard encryption on the target USB interface.

可选的,所述通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有所述USB接口对应的开关状态为供电丢失状态,包括:Optionally, the switching states corresponding to all the USB interfaces are jointly controlled by the control signals in all the USB controllers and the CPU to be a power supply loss state, including:

通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有逻辑单元为有效状态,并在所有负载开关上电的情况下,通过所有所述逻辑单元控制所有所述负载开关中与所有所述USB接口对应的开关状态为供电丢失状态。The control signals in all the USB controllers and the CPU jointly control all the logic units to be in an active state, and when all the load switches are powered on, control all the load switches and all the load switches through all the logic units. The switch state corresponding to the USB interface is a power loss state.

可选的,所述通过目标USB控制器以及所述CPU中的控制信号共同控制目标USB接口对应的开关状态为供电丢失状态,包括:Optionally, the switch state corresponding to the target USB interface is jointly controlled by the target USB controller and the control signal in the CPU to be a power loss state, including:

通过目标USB控制器以及所述CPU中的控制信号共同控制目标逻辑单元为有效状态,并在目标负载开关上电的情况下,通过所述目标逻辑单元控制所述目标负载开关中与目标USB接口对应的开关状态为供电丢失状态。The target logic unit is jointly controlled by the target USB controller and the control signal in the CPU to be in an active state, and when the target load switch is powered on, the target logic unit controls the interface between the target load switch and the target USB through the target logic unit The corresponding switch state is the power loss state.

可选的,所述计算机唤醒及接口加密方法,还包括:Optionally, the computer wake-up and interface encryption method further includes:

判断所述目标计算机是否处于休眠状态;Determine whether the target computer is in a dormant state;

如果所述目标计算机处于休眠状态,则向所述USB控制器发送指令,并基于所述指令对所述USB控制器内部中的寄存器的值进行修改,以便控制所述USB控制器为低功耗状态。If the target computer is in a dormant state, send an instruction to the USB controller, and based on the instruction, modify the value of a register in the USB controller, so as to control the USB controller to have low power consumption state.

第二方面,本申请公开了一种计算机唤醒及接口加密装置,应用于目标计算机的CPU,所述CPU与第一预设数量个USB控制器建立通信,每个所述USB控制器与第二预设数量个USB接口建立通信,所述装置包括:In a second aspect, the present application discloses a computer wake-up and interface encryption device, which is applied to a CPU of a target computer, the CPU establishes communication with a first preset number of USB controllers, and each of the USB controllers communicates with a second A preset number of USB interfaces establish communication, and the device includes:

唤醒模块,用于当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;The wake-up module is used to control the target computer based on the PCIE signal to control the target computer to perform uploading when it is detected that the USB controller is in an active state and the USB interface is in a power supply state, and when a PCIE signal sent by the USB controller is detected. electricity; wherein, the PCIE signal is generated by the USB controller based on a USB signal, and the USB signal is an external device key-in signal;

加密模块,用于通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。The encryption module is configured to jointly control the switch state corresponding to the USB interface to a power loss state through the USB controller and the control signal in the CPU, so as to perform hard encryption on the USB interface.

第三方面,本申请公开了一种电子设备,包括:In a third aspect, the present application discloses an electronic device, comprising:

存储器,用于保存计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现前述公开的计算机唤醒及接口加密方法。The processor is configured to execute the computer program to implement the computer wake-up and interface encryption methods disclosed above.

第四方面,本申请公开了一种计算机可读存储介质,用于保存计算机程序;其中,所述计算机程序被处理器执行时实现前述公开的计算机唤醒及接口加密方法。In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the computer wake-up and interface encryption methods disclosed above are implemented.

可见,本申请提出一种计算机唤醒及接口加密方法,包括:当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。由此可见,本申请在计算机处于休眠状态时,通过外部设备键入信号便可以唤醒计算机,解决了计算机在休眠状态时必须启动特定的开机按键才能被唤醒的问题,提高了计算机使用的便捷性,此外,本申请能够通过设置计算机USB接口的供电状态,达到硬加密效果,解决了软加密方式中USB接口易被破解的问题。综上所述,本申请提高了计算机使用的便捷性与安全性。It can be seen that the present application proposes a computer wake-up and interface encryption method, including: when it is detected that a USB controller is in an active state and a USB interface is in a power supply state, and when it is detected that a PCIE signal sent by the USB controller is detected, based on The PCIE signal controls the target computer to be powered on; wherein, the PCIE signal is generated by the USB controller based on the USB signal, and the USB signal is an external device input signal; through the USB controller and the CPU The control signals in together control the switch state corresponding to the USB interface to a power loss state, so as to perform hard encryption on the USB interface. It can be seen that the present application can wake up the computer by entering a signal through an external device when the computer is in a dormant state, which solves the problem that the computer must activate a specific power-on button to be woken up when the computer is in a dormant state, and improves the convenience of the computer. In addition, the present application can achieve the effect of hard encryption by setting the power supply state of the USB interface of the computer, and solve the problem that the USB interface is easy to be cracked in the soft encryption method. To sum up, the present application improves the convenience and security of computer use.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.

图1为本申请公开的一种计算机唤醒及接口加密方法流程图;1 is a flowchart of a computer wake-up and interface encryption method disclosed in the application;

图2为本申请公开的一种具体的计算机唤醒及接口加密方法流程图;2 is a flowchart of a specific computer wake-up and interface encryption method disclosed in the application;

图3为本申请公开的一种具体的计算机唤醒及接口加密方法流程图;3 is a flowchart of a specific computer wake-up and interface encryption method disclosed in the application;

图4为本申请公开的一种计算机唤醒及接口加密方法的架构示意图;4 is a schematic structural diagram of a computer wake-up and interface encryption method disclosed in the present application;

图5为本申请公开的一种计算机唤醒及接口加密方法的子模块示意图;5 is a schematic diagram of sub-modules of a computer wake-up and interface encryption method disclosed in the application;

图6为本申请公开的一种计算机唤醒及接口加密装置结构示意图;6 is a schematic structural diagram of a computer wake-up and interface encryption device disclosed in the present application;

图7为本申请公开的一种电子设备结构图。FIG. 7 is a structural diagram of an electronic device disclosed in this application.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

当计算机处于休眠状态时,需要按开机按键才能唤醒计算机,这会给用者带来很大的不便。其次,通过局域网禁用USB接口或软件加密的方式属于软加密,都有被破解的风险。When the computer is in the hibernation state, it is necessary to press the power button to wake up the computer, which brings great inconvenience to the user. Secondly, disabling the USB interface or software encryption through the local area network belongs to soft encryption, and there is a risk of being cracked.

为此,本申请实施例提出一种计算机唤醒及接口加密方案,能够使计算机在休眠状态时无需启动特定的开机按键就能被唤醒以及保证USB接口不易被破解,以提高计算机使用的便捷性与安全性。To this end, the embodiment of the present application proposes a computer wake-up and interface encryption scheme, which can enable the computer to be awakened without starting a specific power-on button when in a dormant state, and ensure that the USB interface is not easily cracked, so as to improve the convenience and convenience of computer use. safety.

本申请实施例公开了一种计算机唤醒及接口加密方法,应用于目标计算机的CPU,所述CPU与若干数量个USB控制器建立通信,每个所述USB控制器与若干数量个USB接口建立通信,参见图1所示,该方法包括:The embodiment of the present application discloses a computer wake-up and interface encryption method, which is applied to a CPU of a target computer. The CPU establishes communication with a number of USB controllers, and each of the USB controllers establishes communication with a number of USB interfaces. , as shown in Figure 1, the method includes:

步骤S11:当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号。Step S11: when it is detected that the USB controller is in the active state and the USB interface is in the power supply state, and when the PCIE signal sent by the USB controller is detected, the target computer is controlled to be powered on based on the PCIE signal; Wherein, the PCIE signal is generated by the USB controller based on a USB signal, and the USB signal is a key-in signal of an external device.

可以理解的是,所述USB控制器能够用于将PCIE(Peripheral ComponentInterconnect Express,高级串行计算机扩展总线)信号与USB信号进行互相转换。It can be understood that, the USB controller can be used to convert PCIE (Peripheral Component Interconnect Express, Advanced Serial Computer Expansion Bus) signals and USB signals to each other.

本实施例中,所述基于所述PCIE信号控制所述目标计算机进行上电的过程具体包括:基于所述PCIE信号驱动所述CPU中的电源控制模块;通过所述电源控制模块控制所述目标计算机进行上电,如此一来,本申请在目标计算机处于休眠状态时,通过外部设备键入信号便可以唤醒所述目标计算机,解决了目标计算机在休眠状态时必须启动特定的开机按键才能被唤醒的问题,提高了计算机使用的便捷性。In this embodiment, the process of controlling the target computer to power on based on the PCIE signal specifically includes: driving a power control module in the CPU based on the PCIE signal; controlling the target computer through the power control module The computer is powered on, in this way, when the target computer is in a dormant state, the target computer can be woken up by inputting a signal through an external device, which solves the problem that the target computer must activate a specific power-on button to be awakened when it is in the dormant state. problem, and improve the convenience of computer use.

需要指出的是,所述外部设备包括但不限于键盘、鼠标等设备,相应的,所述外部设备键入信号包括但不限于敲击键盘产生的信号。It should be pointed out that the external device includes but is not limited to a keyboard, a mouse and other devices, and correspondingly, the input signal of the external device includes but is not limited to a signal generated by hitting the keyboard.

本实施例中,若目标计算机处于休眠状态,还可以向所述USB控制器发送指令,并基于所述指令对所述USB控制器内部中的寄存器的值进行修改,以便控制所述USB控制器为低功耗状态。如此一来,降低了计算机无效的功耗。In this embodiment, if the target computer is in a dormant state, an instruction can also be sent to the USB controller, and based on the instruction, the value of a register in the USB controller can be modified, so as to control the USB controller into a low power state. As a result, ineffective power consumption of the computer is reduced.

步骤S12:通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。Step S12: Control the switch state corresponding to the USB interface to a power loss state through the control signal in the USB controller and the CPU, so as to perform hard encryption on the USB interface.

本实施例中,在通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态之前,需要通过所述目标计算机控制所述USB控制器的使能信号为高电平状态,然后通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。如此一来,解决了软加密方式中USB接口易被破解的问题,提高了所述目标计算机的安全性。In this embodiment, before the switch state corresponding to the USB interface is jointly controlled to be a power loss state by the USB controller and the control signal in the CPU, the target computer needs to control the use of the USB controller. The power signal is in a high-level state, and the USB controller and the control signal in the CPU jointly control the switch state corresponding to the USB interface to be a power-loss state, so as to perform hard encryption on the USB interface. In this way, the problem that the USB interface is easily cracked in the soft encryption method is solved, and the security of the target computer is improved.

需要指出的是,所述计算机唤醒及接口加密方法不限于计算机产品,还能够应用于其他设备上,例如交换机、探测器等,所述USB控制器以及所述逻辑单元可以是单个芯片,也可以是能够实现此功能的模块。It should be pointed out that the computer wake-up and interface encryption method is not limited to computer products, but can also be applied to other devices, such as switches, detectors, etc. The USB controller and the logic unit may be a single chip or is the module that can implement this function.

可见,本申请提出一种计算机唤醒及接口加密方法,包括:当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。由此可见,本申请在计算机处于休眠状态时,通过外部设备键入信号便可以唤醒计算机,解决了计算机在休眠状态时必须启动特定的开机按键才能被唤醒的问题,提高了计算机使用的便捷性,此外,本申请能够通过设置计算机USB接口的供电状态,达到硬加密效果,解决了软加密方式中USB接口易被破解的问题。综上所述,本申请提高了计算机使用的便捷性与安全性。It can be seen that the present application proposes a computer wake-up and interface encryption method, including: when it is detected that a USB controller is in an active state and a USB interface is in a power supply state, and when it is detected that a PCIE signal sent by the USB controller is detected, based on The PCIE signal controls the target computer to be powered on; wherein, the PCIE signal is generated by the USB controller based on the USB signal, and the USB signal is an external device input signal; through the USB controller and the CPU The control signals in together control the switch state corresponding to the USB interface to a power loss state, so as to perform hard encryption on the USB interface. It can be seen that the present application can wake up the computer by entering a signal through an external device when the computer is in a dormant state, which solves the problem that the computer must activate a specific power-on button to be woken up when the computer is in a dormant state, and improves the convenience of the computer. In addition, the present application can achieve the effect of hard encryption by setting the power supply state of the USB interface of the computer, and solve the problem that the USB interface is easy to be cracked in the soft encryption method. To sum up, the present application improves the convenience and security of computer use.

本申请实施例公开了一种具体的计算机唤醒及接口加密方法,应用于目标计算机的CPU,所述CPU与若干数量个USB控制器建立通信,每个所述USB控制器与若干数量个USB接口建立通信,相对于上一实施例,本实施例对技术方案作了进一步的说明和优化。参见图2所示,具体包括:The embodiment of the present application discloses a specific computer wake-up and interface encryption method, which is applied to the CPU of a target computer. The CPU establishes communication with a number of USB controllers, and each of the USB controllers is connected with a number of USB interfaces. To establish communication, compared with the previous embodiment, this embodiment further describes and optimizes the technical solution. See Figure 2, which includes:

步骤S21:当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号。Step S21: when it is detected that the USB controller is in the active state and the USB interface is in the power supply state, and when the PCIE signal sent by the USB controller is detected, then control the target computer to power on based on the PCIE signal; Wherein, the PCIE signal is generated by the USB controller based on a USB signal, and the USB signal is a key-in signal of an external device.

其中,关于步骤S21更加具体的过程参见前述公开的实施例所示,在此不做具体赘述。Wherein, for a more specific process of step S21, refer to the embodiments disclosed above, and details are not repeated here.

步骤S22:通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有所述USB接口对应的开关状态为供电丢失状态,以便对所有所述USB接口进行硬加密。Step S22: Control the switch states corresponding to all the USB interfaces to a power-loss state through the control signals in all the USB controllers and the CPU, so as to perform hard encryption on all the USB interfaces.

本实施例中,当存在整体管控USB接口的功能的需求,例如企业级计算机整体管控所有USB接口时,则通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有所述USB接口对应的开关状态为供电丢失状态,以便对所有所述USB接口进行硬加密,具体的,通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有逻辑单元为有效状态,并在所有负载开关上电的情况下,通过所有所述逻辑单元控制所有所述负载开关中与所有所述USB接口对应的开关状态为供电丢失状态。因此,可以理解的是,所述USB控制器还能够用来控制逻辑单元的状态。如此一来,本实施例实现了对所有USB接口均加密的效果,这种整体管控USB接口的方式对企业级计算机来说比较适用。In this embodiment, when there is a need to control the functions of the USB interfaces as a whole, for example, when an enterprise-level computer controls all the USB interfaces as a whole, all the USB interfaces are jointly controlled by the control signals in all the USB controllers and the CPU. The corresponding switch state is the power supply loss state, so that all the USB interfaces are hard encrypted. When the load switch is powered on, all the logic units control the switch states of all the load switches corresponding to all the USB interfaces to be a power loss state. Therefore, it can be understood that the USB controller can also be used to control the state of the logic unit. In this way, the present embodiment achieves the effect of encrypting all the USB interfaces, and this method of overall management and control of the USB interfaces is more suitable for enterprise-level computers.

可见,本申请提出一种计算机唤醒及接口加密方法,包括:当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有所述USB接口对应的开关状态为供电丢失状态,以便对所有所述USB接口进行硬加密,由此可见,本申请在计算机处于休眠状态时,通过外部设备键入信号便可以唤醒计算机,解决了计算机在休眠状态时必须启动特定的开机按键才能被唤醒的问题,提高了计算机使用的便捷性,此外,本申请能够通过设置计算机所有USB接口的供电状态,达到对所有USB接口硬加密的效果,解决了软加密方式中USB接口易被破解的问题,对企业级计算机比较适用。综上所述,本申请提高了计算机使用的便捷性与安全性。It can be seen that the present application proposes a computer wake-up and interface encryption method, including: when it is detected that a USB controller is in an active state and a USB interface is in a power supply state, and when it is detected that a PCIE signal sent by the USB controller is detected, based on The PCIE signal controls the target computer to be powered on; wherein, the PCIE signal is generated by the USB controller based on a USB signal, and the USB signal is an external device input signal; through all the USB controllers and the The control signals in the CPU jointly control the switch states corresponding to all the USB interfaces to the power supply loss state, so as to perform hard encryption on all the USB interfaces. It can be seen that in the present application, when the computer is in a dormant state, a signal is entered through an external device. Then the computer can be woken up, which solves the problem that the computer must activate a specific power-on button to be awakened when it is in a dormant state, and improves the convenience of using the computer. The effect of hard encryption of the USB interface solves the problem that the USB interface is easy to be cracked in the soft encryption method, which is more suitable for enterprise-level computers. To sum up, the present application improves the convenience and security of computer use.

本申请实施例公开了一种具体的计算机唤醒及接口加密方法,应用于目标计算机的CPU,所述CPU与若干数量个USB控制器建立通信,每个所述USB控制器与若干数量个USB接口建立通信,相对于上一实施例,本实施例对技术方案作了进一步的说明和优化。参见图3所示,具体包括:The embodiment of the present application discloses a specific computer wake-up and interface encryption method, which is applied to the CPU of a target computer. The CPU establishes communication with a number of USB controllers, and each of the USB controllers is connected with a number of USB interfaces. To establish communication, compared with the previous embodiment, this embodiment further describes and optimizes the technical solution. See Figure 3, which includes:

步骤S31:当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号。Step S31: when it is detected that the USB controller is in the active state and the USB interface is in the power supply state, and when the PCIE signal sent by the USB controller is detected, then control the target computer to power on based on the PCIE signal; Wherein, the PCIE signal is generated by the USB controller based on a USB signal, and the USB signal is a key-in signal of an external device.

其中,关于步骤S31更加具体的过程参见前述公开的实施例所示,在此不做具体赘述。Wherein, for a more specific process of step S31, refer to the embodiments disclosed above, and details are not repeated here.

步骤S32:通过目标USB控制器以及所述CPU中的控制信号共同控制目标USB接口对应的开关状态为供电丢失状态,以便对所述目标USB接口进行硬加密。Step S32: Control the switch state corresponding to the target USB interface to a power-loss state through the target USB controller and the control signal in the CPU jointly, so as to perform hard encryption on the target USB interface.

针对个人办公电脑目前还未能够自由设置USB接口加密的问题,本实施例中,当存在单独管控USB接口的功能的需求,例如个人计算机管控目标USB接口时,则通过目标USB控制器以及所述CPU中的控制信号共同控制目标USB接口对应的开关状态为供电丢失状态,以便对所述目标USB接口进行硬加密。具体的,通过目标USB控制器以及所述CPU中的控制信号共同控制目标逻辑单元为有效状态,并在目标负载开关上电的情况下,通过所述目标逻辑单元控制所述目标负载开关中与目标USB接口对应的开关状态为供电丢失状态。如此一来,本实施例实现了对目标USB接口加密的效果,这种单独管控USB接口的方式对个人计算机来说比较适用。Aiming at the problem that the personal office computer has not yet been able to freely set the encryption of the USB interface, in this embodiment, when there is a need to independently control the functions of the USB interface, for example, when the personal computer controls the target USB interface, the target USB controller and the The control signals in the CPU jointly control the switch state corresponding to the target USB interface to be a power loss state, so as to perform hard encryption on the target USB interface. Specifically, the target logic unit is jointly controlled by the target USB controller and the control signal in the CPU to be in an active state, and when the target load switch is powered on, the target logic unit is used to control the connection between the target load switch and the target load switch. The switch state corresponding to the target USB interface is the power loss state. In this way, the present embodiment achieves the effect of encrypting the target USB interface, and this method of individually controlling the USB interface is more suitable for personal computers.

可见,本申请提出一种计算机唤醒及接口加密方法,包括:当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;通过目标USB控制器以及所述CPU中的控制信号共同控制目标USB接口对应的开关状态为供电丢失状态,以便对所述目标USB接口进行硬加密,由此可见,本申请在计算机处于休眠状态时,通过外部设备键入信号便可以唤醒计算机,解决了计算机在休眠状态时必须启动特定的开机按键才能被唤醒的问题,提高了计算机使用的便捷性,此外,本申请能够通过设置计算机目标USB接口的供电状态,达到对目标USB接口硬加密的效果,解决了软加密方式中USB接口易被破解的问题,对个人计算机比较适用。综上所述,本申请提高了计算机使用的便捷性与安全性。It can be seen that the present application proposes a computer wake-up and interface encryption method, including: when it is detected that a USB controller is in an active state and a USB interface is in a power supply state, and when it is detected that a PCIE signal sent by the USB controller is detected, based on The PCIE signal controls the target computer to be powered on; wherein, the PCIE signal is generated by the USB controller based on the USB signal, and the USB signal is an external device input signal; The control signal of the control signal jointly controls the switch state corresponding to the target USB interface to be a power loss state, so that the target USB interface is hard-encrypted. It can be seen that when the computer is in a dormant state, the computer can be woken up by entering a signal through an external device. , solves the problem that the computer must activate a specific power-on button to be woken up when it is in a dormant state, and improves the convenience of computer use. In addition, the present application can achieve hard encryption of the target USB interface by setting the power supply state of the target USB interface of the computer. It solves the problem that the USB interface is easy to be cracked in the soft encryption method, and is more suitable for personal computers. To sum up, the present application improves the convenience and security of computer use.

为了清楚的说明本申请技术方案的实现,结合图4以及图5说明实现步骤。图4为本申请公开的一种计算机唤醒及接口加密方法的架构示意图,图5为本申请公开的一种计算机唤醒及接口加密的子模块示意图。In order to clearly illustrate the implementation of the technical solution of the present application, the implementation steps are described with reference to FIG. 4 and FIG. 5 . FIG. 4 is a schematic structural diagram of a computer wake-up and interface encryption method disclosed in the application, and FIG. 5 is a schematic diagram of a sub-module of a computer wake-up and interface encryption method disclosed in the application.

参见图4所示,所述整体结构示意图基于若干个子模块构成。具体的,所述整体结构示意图由包括目标计算机中的CPU以及与所述CPU建立通信连接的若干数量个计算机唤醒及接口加密子模块。参见图5所示,每个所述唤醒及接口加密子模块包括USB控制器、逻辑单元、负载开关以及与所述USB控制器建立通信连接的若干数量个USB接口。需要指出的是,CPU内部还集成了PCIE控制器模块,USB控制器能够用于将PCIE信号与USB信号进行互相转换。在一种具体的实施方式中,一个USB控制器可以转4个USB接口信号。在CPU内部PCIE控制器模块满足的条件下,USB接口的数量可以根据市场需求进行配置;CPU的控制信号与USB控制器的使能信号(Enable,EN)并联与逻辑模块通信,用于控制负载开关的状态,进一步控制USB口是否供电。Referring to FIG. 4 , the overall structural schematic diagram is formed based on several sub-modules. Specifically, the overall structure schematic diagram includes a CPU in a target computer and a number of computer wake-up and interface encryption sub-modules that establish communication connections with the CPU. Referring to FIG. 5 , each of the wake-up and interface encryption sub-modules includes a USB controller, a logic unit, a load switch, and a number of USB interfaces for establishing communication connections with the USB controller. It should be pointed out that a PCIE controller module is also integrated inside the CPU, and the USB controller can be used to convert PCIE signals and USB signals to each other. In a specific implementation, one USB controller can transfer four USB interface signals. Under the condition that the PCIE controller module inside the CPU satisfies, the number of USB interfaces can be configured according to the market demand; the control signal of the CPU and the enable signal (Enable, EN) of the USB controller communicate with the logic module in parallel to control the load The state of the switch further controls whether the USB port is powered.

详细步骤如下所示:The detailed steps are as follows:

(1)休眠状态,当USB接口处于供电状态,且USB控制器处于激活状态,此时敲击键盘任意按键,键盘信号也即USB信号传输到USB控制器器,所述USB控制器通过将所述USB信号转换为PCIE信号并传送到CPU,CPU逐渐驱动相应的电源控制模块使计算机上电被唤醒,达到休眠状态键盘唤醒的功能;(1) Dormant state, when the USB interface is in a power supply state and the USB controller is in an active state, at this time, any key on the keyboard is tapped, and the keyboard signal, that is, the USB signal, is transmitted to the USB controller. The USB signal is converted into a PCIE signal and sent to the CPU, and the CPU gradually drives the corresponding power control module to wake up the computer when it is powered on, so as to achieve the function of waking up the keyboard in the dormant state;

(2)当计算机处于休眠状态时,CPU通过发送指令修改USB控制器内部寄存器的值,使其处于低功耗模式,起到节能环保的作用;(2) When the computer is in a dormant state, the CPU modifies the value of the internal register of the USB controller by sending an instruction to make it in a low-power mode, which plays a role in energy conservation and environmental protection;

(3)在计算机的设置界面,使用者可以单独或整体设置USB接口的功能;具体的,当整体管控USB接口的功能时,通过所有USB控制器以及CPU中的控制信号共同控制所有逻辑模块为有效状态,并在所有负载开关上电的情况下,通过所有逻辑模块控制所有负载开关中与所有USB接口对应的开关状态为供电丢失状态。当单独管控目标USB接口的功能时,通过目标USB控制器以及CPU中的控制信号共同控制目标逻辑单元为有效状态,并在目标负载开关上电的情况下,通过目标逻辑单元控制目标负载开关中与目标USB接口对应的开关状态为供电丢失状态。本申请基于不同应用场景实现了对所有USB接口或对目标USB接口加密的效果,使用者可根据实际场景进行选择。由此可见,本申请在计算机处于休眠状态时,通过外部设备键入信号便可以唤醒计算机,解决了计算机在休眠状态时必须启动特定的开机按键才能被唤醒的问题,提高了计算机使用的便捷性,此外,本申请能够通过设置计算机USB接口的供电状态,达到硬加密效果,解决了软加密方式中USB接口易被破解的问题。综上所述,本申请提高了计算机使用的便捷性与安全性。(3) In the setting interface of the computer, the user can set the function of the USB interface individually or as a whole; specifically, when the function of the USB interface is controlled as a whole, all the logic modules are jointly controlled by the control signals in all the USB controllers and the CPU to be In a valid state, and when all load switches are powered on, the switch states of all load switches corresponding to all USB interfaces in all load switches are controlled to be a power loss state through all logic modules. When the function of the target USB interface is independently controlled, the target logic unit is controlled to be in an active state through the target USB controller and the control signal in the CPU, and when the target load switch is powered on, the target logic unit is used to control the target load switch. The switch state corresponding to the target USB interface is the power loss state. The present application realizes the effect of encrypting all USB interfaces or the target USB interface based on different application scenarios, and users can choose according to actual scenarios. It can be seen that the present application can wake up the computer by entering a signal through an external device when the computer is in a dormant state, which solves the problem that the computer must activate a specific power-on button to be woken up when the computer is in a dormant state, and improves the convenience of the computer. In addition, the present application can achieve the effect of hard encryption by setting the power supply state of the USB interface of the computer, and solve the problem that the USB interface is easy to be cracked in the soft encryption method. To sum up, the present application improves the convenience and security of computer use.

相应的,本申请实施例还公开了一种计算机唤醒及接口加密装置,参见图6所示,该装置包括:Correspondingly, an embodiment of the present application also discloses a computer wake-up and interface encryption device, as shown in FIG. 6 , the device includes:

唤醒模块11,用于当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;The wake-up module 11 is configured to control the target computer based on the PCIE signal to control the target computer to perform the procedure when it is detected that the USB controller is in an active state and the USB interface is in a power supply state, and when the PCIE signal sent by the USB controller is detected. Power on; wherein, the PCIE signal is generated by the USB controller based on a USB signal, and the USB signal is an external device key-in signal;

加密模块12,用于通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。The encryption module 12 is configured to jointly control the switch state corresponding to the USB interface to a power-loss state through the USB controller and the control signal in the CPU, so as to perform hard encryption on the USB interface.

其中,关于上述各个模块更加具体的工作过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。For more specific working processes of the above-mentioned modules, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which will not be repeated here.

可见,本申请提出一种计算机唤醒及接口加密装置,包括:唤醒模块,用于当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;加密模块,用于通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。由此可见,本申请在计算机处于休眠状态时,通过外部设备键入信号便可以唤醒计算机,解决了计算机在休眠状态时必须启动特定的开机按键才能被唤醒的问题,提高了计算机使用的便捷性,此外,本申请能够通过设置计算机USB接口的供电状态,达到硬加密效果,解决了软加密方式中USB接口易被破解的问题。综上所述,本申请提高了计算机使用的便捷性与安全性。It can be seen that the present application proposes a computer wake-up and interface encryption device, comprising: a wake-up module for detecting that a USB controller is in an active state and a USB interface is in a power supply state, and when detecting that the USB controller sends a PCIE signal, control the target computer to power on based on the PCIE signal; wherein, the PCIE signal is generated by the USB controller based on the USB signal, and the USB signal is an external device input signal; the encryption module is used for The switch state corresponding to the USB interface is controlled to be a power loss state through the control signal in the USB controller and the CPU, so as to perform hard encryption on the USB interface. It can be seen that the present application can wake up the computer by entering a signal through an external device when the computer is in a dormant state, which solves the problem that the computer must activate a specific power-on button to be woken up when the computer is in a dormant state, and improves the convenience of the computer. In addition, the present application can achieve the effect of hard encryption by setting the power supply state of the USB interface of the computer, and solve the problem that the USB interface is easy to be cracked in the soft encryption method. To sum up, the present application improves the convenience and security of computer use.

在一些具体实施例中,所述唤醒模块11,具体可以包括:In some specific embodiments, the wake-up module 11 may specifically include:

唤醒单元,用于基于所述PCIE信号驱动所述CPU中的电源控制模块;通过所述电源控制模块控制所述目标计算机进行上电。A wake-up unit, configured to drive a power supply control module in the CPU based on the PCIE signal; and control the target computer to power on through the power supply control module.

在一些具体实施例中,所述加密模块12,具体可以包括:In some specific embodiments, the encryption module 12 may specifically include:

整体加密单元,用于通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有所述USB接口对应的开关状态为供电丢失状态,以便对所有所述USB接口进行硬加密。The overall encryption unit is configured to jointly control the switch states corresponding to all the USB interfaces to a power-loss state through the control signals in all the USB controllers and the CPU, so as to perform hard encryption on all the USB interfaces.

在一些具体实施例中,所述加密模块12,具体可以包括:In some specific embodiments, the encryption module 12 may specifically include:

目标加密单元,用于通过目标USB控制器以及所述CPU中的控制信号共同控制目标USB接口对应的开关状态为供电丢失状态,以便对所述目标USB接口进行硬加密。The target encryption unit is configured to jointly control the switch state corresponding to the target USB interface to a power loss state through the target USB controller and the control signal in the CPU, so as to perform hard encryption on the target USB interface.

在一些具体实施例中,所述整体加密单元,具体可以用于:In some specific embodiments, the overall encryption unit may be specifically used for:

通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有逻辑单元为有效状态,并在所有负载开关上电的情况下,通过所有所述逻辑单元控制所有所述负载开关中与所有所述USB接口对应的开关状态为供电丢失状态。The control signals in all the USB controllers and the CPU jointly control all the logic units to be in an active state, and when all the load switches are powered on, control all the load switches and all the load switches through all the logic units. The switch state corresponding to the USB interface is a power loss state.

在一些具体实施例中,所述目标加密单元,具体可以用于:In some specific embodiments, the target encryption unit can be specifically used for:

通过目标USB控制器以及所述CPU中的控制信号共同控制目标逻辑单元为有效状态,并在目标负载开关上电的情况下,通过所述目标逻辑单元控制所述目标负载开关中与目标USB接口对应的开关状态为供电丢失状态。The target logic unit is jointly controlled by the target USB controller and the control signal in the CPU to be in an active state, and when the target load switch is powered on, the target logic unit controls the interface between the target load switch and the target USB through the target logic unit The corresponding switch state is the power loss state.

在一些具体实施例中,所述计算机唤醒及接口加密装置,还包括:In some specific embodiments, the computer wake-up and interface encryption device further includes:

低功耗模块,用于判断所述目标计算机是否处于休眠状态;如果所述目标计算机处于休眠状态,则向所述USB控制器发送指令,并基于所述指令对所述USB控制器内部中的寄存器的值进行修改,以便控制所述USB控制器为低功耗状态。A low power consumption module is used to judge whether the target computer is in a dormant state; if the target computer is in a dormant state, send an instruction to the USB controller, and based on the instruction The value of the register is modified in order to control the USB controller to a low power consumption state.

进一步的,本申请实施例还提供了一种电子设备。图7是根据一示例性实施例示出的电子设备20结构图,图中的内容不能认为是对本申请的使用范围的任何限制。Further, the embodiments of the present application also provide an electronic device. FIG. 7 is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the contents in the diagram should not be considered as any limitation on the scope of use of the present application.

图7为本申请实施例提供的一种电子设备20的结构示意图。该电子设备20,具体可以包括:至少一个处理器21、至少一个存储器22、显示屏23、输入输出接口24、通信接口25、电源26、和通信总线27。其中,所述存储器22用于存储计算机程序,所述计算机程序由所述处理器21加载并执行,以实现以下步骤:FIG. 7 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21 , at least one memory 22 , a display screen 23 , an input and output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 . Wherein, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to realize the following steps:

当检测到存在USB控制器处于激活状态以及存在USB接口处于供电状态,并且当检测到所述USB控制器发送的PCIE信号,则基于所述PCIE信号控制所述目标计算机进行上电;其中,所述PCIE信号为所述USB控制器基于USB信号生成,所述USB信号为外部设备键入信号;When it is detected that the USB controller is in an active state and the USB interface is in a power supply state, and when a PCIE signal sent by the USB controller is detected, the target computer is controlled to power on based on the PCIE signal; The PCIE signal is generated by the USB controller based on the USB signal, and the USB signal is an external device key-in signal;

通过所述USB控制器以及所述CPU中的控制信号共同控制所述USB接口对应的开关状态为供电丢失状态,以便对所述USB接口进行硬加密。The switch state corresponding to the USB interface is controlled to be a power loss state through the control signal in the USB controller and the CPU, so as to perform hard encryption on the USB interface.

在一些具体实施方式中,所述处理器通过执行所述存储器中保存的计算机程序,具体可以实现以下步骤:In some specific embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:

基于所述PCIE信号驱动所述CPU中的电源控制模块;Drive the power control module in the CPU based on the PCIE signal;

通过所述电源控制模块控制所述目标计算机进行上电。The target computer is controlled to be powered on by the power control module.

在一些具体实施方式中,所述处理器通过执行所述存储器中保存的计算机程序,具体可以实现以下步骤:In some specific embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:

通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有所述USB接口对应的开关状态为供电丢失状态,以便对所有所述USB接口进行硬加密。All the USB controllers and the control signals in the CPU jointly control the switch states corresponding to all the USB interfaces to be a power loss state, so as to perform hard encryption on all the USB interfaces.

在一些具体实施方式中,所述处理器通过执行所述存储器中保存的计算机程序,具体可以实现以下步骤:In some specific embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:

通过目标USB控制器以及所述CPU中的控制信号共同控制目标USB接口对应的开关状态为供电丢失状态,以便对所述目标USB接口进行硬加密。The switch state corresponding to the target USB interface is jointly controlled by the target USB controller and the control signal in the CPU to be a power loss state, so as to perform hard encryption on the target USB interface.

在一些具体实施方式中,所述处理器通过执行所述存储器中保存的计算机程序,具体可以实现以下步骤:In some specific embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:

通过所有所述USB控制器以及所述CPU中的控制信号共同控制所有逻辑单元为有效状态,并在所有负载开关上电的情况下,通过所有所述逻辑单元控制所有所述负载开关中与所有所述USB接口对应的开关状态为供电丢失状态。The control signals in all the USB controllers and the CPU jointly control all the logic units to be in an active state, and when all the load switches are powered on, control all the load switches and all the load switches through all the logic units. The switch state corresponding to the USB interface is a power loss state.

在一些具体实施方式中,所述处理器通过执行所述存储器中保存的计算机程序,具体可以实现以下步骤:In some specific embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:

通过目标USB控制器以及所述CPU中的控制信号共同控制目标逻辑单元为有效状态,并在目标负载开关上电的情况下,通过所述目标逻辑单元控制所述目标负载开关中与目标USB接口对应的开关状态为供电丢失状态。The target logic unit is jointly controlled by the target USB controller and the control signal in the CPU to be in an active state, and when the target load switch is powered on, the target logic unit controls the interface between the target load switch and the target USB through the target logic unit The corresponding switch state is the power loss state.

在一些具体实施方式中,所述处理器通过执行所述存储器中保存的计算机程序,还可以进一步包括以下步骤:In some specific embodiments, the processor may further include the following steps by executing the computer program stored in the memory:

判断所述目标计算机是否处于休眠状态;Determine whether the target computer is in a dormant state;

如果所述目标计算机处于休眠状态,则向所述USB控制器发送指令,并基于所述指令对所述USB控制器内部中的寄存器的值进行修改,以便控制所述USB控制器为低功耗状态。If the target computer is in a dormant state, send an instruction to the USB controller, and based on the instruction, modify the value of a register in the USB controller, so as to control the USB controller to have low power consumption state.

本实施例中,电源26用于为电子设备20上的各硬件设备提供工作电压;通信接口25能够为电子设备20创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口24,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is applicable Any communication protocol in the technical solution of the present application is not specifically limited here; the input and output interface 24 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, here No specific limitation is imposed.

另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源可以包括计算机程序221,存储方式可以是短暂存储或者永久存储。其中,计算机程序221除了包括能够用于完成前述任一实施例公开的由电子设备20执行的计算机唤醒及接口加密方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。In addition, the memory 22, as a resource storage carrier, can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc. The resources stored thereon can include a computer program 221, and the storage method can be short-term storage or permanent storage. The computer program 221 may further include a computer program that can be used to complete other specific tasks in addition to the computer program that can be used to complete the computer wake-up and interface encryption method executed by the electronic device 20 disclosed in any of the foregoing embodiments. .

进一步的,本申请实施例还公开了一种计算机可读存储介质,用于存储计算机程序;其中,所述计算机程序被处理器执行时实现前述公开的计算机唤醒及接口加密方法。Further, the embodiment of the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the computer wake-up and interface encryption methods disclosed above are implemented.

关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。For the specific steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

本申请书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this application are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts of the various embodiments can be disclosed by referring to each other. As for the device, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

以上对本申请所提供的一种计算机唤醒及接口加密方法、装置、设备、存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A computer wake-up and interface encryption method, device, device, and storage medium provided by the present application have been described in detail above. The principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only It is used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. The contents of the description should not be construed as limiting the application.

Claims (10)

1. A computer awakening and interface encryption method is characterized in that the method is applied to a CPU of a target computer, the CPU is communicated with a plurality of USB controllers, and each USB controller is communicated with a plurality of USB interfaces, and the method comprises the following steps:
when detecting that the USB controller is in an activated state and the USB interface is in a power supply state, and when detecting that a PCIE signal sent by the USB controller, controlling the target computer to be powered on based on the PCIE signal; the PCIE signal is generated by the USB controller based on a USB signal, and the USB signal is a key-in signal of external equipment;
and controlling the corresponding switch state of the USB interface to be a power supply loss state through the USB controller and the control signal in the CPU so as to carry out hard encryption on the USB interface.
2. The computer wake-up and interface encryption method of claim 1, wherein the controlling the target computer to power on based on the PCIE signal comprises:
driving a power supply control module in the CPU based on the PCIE signal;
and controlling the target computer to be electrified through the power supply control module.
3. The computer wake-up and interface encryption method according to claim 1, wherein the controlling signals in the USB controller and the CPU together control a corresponding switch state of the USB interface to be a power loss state, so as to perform hard encryption on the USB interface, includes:
and controlling the switch states corresponding to all the USB interfaces to be power supply loss states through all the USB controllers and control signals in the CPU so as to carry out hard encryption on all the USB interfaces.
4. The computer wake-up and interface encryption method according to claim 1, wherein the controlling signals in the USB controller and the CPU together control a corresponding switch state of the USB interface to be a power loss state, so as to perform hard encryption on the USB interface, includes:
and controlling the corresponding switch state of the target USB interface to be a power supply loss state through the target USB controller and the control signal in the CPU so as to carry out hard encryption on the target USB interface.
5. The computer wake-up and interface encryption method according to claim 3, wherein the controlling the switch states corresponding to all the USB interfaces to be power loss states by all the USB controllers and the control signals in the CPU comprises:
and controlling all logic units to be in an effective state through all the USB controllers and control signals in the CPU, and controlling the switch states corresponding to all the USB interfaces in all the load switches to be in a power supply loss state through all the logic units under the condition that all the load switches are powered on.
6. The computer wake-up and interface encryption method according to claim 4, wherein the controlling the switch state corresponding to the target USB interface to be the power loss state by the target USB controller and the control signal in the CPU comprises:
and controlling a target logic unit to be in an effective state through a target USB controller and a control signal in the CPU, and controlling a switch state corresponding to a target USB interface in the target load switch to be in a power supply loss state through the target logic unit under the condition that a target load switch is electrified.
7. The computer wake-up and interface encryption method according to any one of claims 1 to 6, further comprising:
judging whether the target computer is in a dormant state or not;
if the target computer is in a sleep state, sending an instruction to the USB controller, and modifying the value of a register in the interior of the USB controller based on the instruction so as to control the USB controller to be in a low power consumption state.
8. The utility model provides a computer awakens up and interface encryption device which characterized in that, is applied to the CPU of target computer, CPU and the first USB controller of predetermineeing quantity establish communication, every USB controller and the second USB interface of predetermineeing quantity establish communication, the device includes:
the wake-up module is used for controlling the target computer to be powered on based on the PCIE signal when detecting that the USB controller is in an activated state and the USB interface is in a power supply state; the PCIE signal is generated by the USB controller based on a USB signal, and the USB signal is a key-in signal of external equipment;
and the encryption module is used for controlling the switch state corresponding to the USB interface to be a power supply loss state through the USB controller and the control signal in the CPU so as to carry out hard encryption on the USB interface.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the computer wake-up and interface encryption method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the computer wake-up and interface encryption method of any one of claims 1 to 7.
CN202210606092.2A 2022-05-31 2022-05-31 A computer wake-up and interface encryption method, device, device and medium Withdrawn CN114818017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210606092.2A CN114818017A (en) 2022-05-31 2022-05-31 A computer wake-up and interface encryption method, device, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210606092.2A CN114818017A (en) 2022-05-31 2022-05-31 A computer wake-up and interface encryption method, device, device and medium

Publications (1)

Publication Number Publication Date
CN114818017A true CN114818017A (en) 2022-07-29

Family

ID=82520129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210606092.2A Withdrawn CN114818017A (en) 2022-05-31 2022-05-31 A computer wake-up and interface encryption method, device, device and medium

Country Status (1)

Country Link
CN (1) CN114818017A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118093034A (en) * 2024-04-22 2024-05-28 联想长风科技(北京)有限公司 Awakening method and device for sleep mode of computer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080229121A1 (en) * 2007-03-14 2008-09-18 Paul Lassa Selectively Powered Data Interfaces
WO2020073916A1 (en) * 2018-10-09 2020-04-16 中兴通讯股份有限公司 Encryption method and apparatus for storage device, and storage medium
CN213582165U (en) * 2020-11-18 2021-06-29 联想长风科技(北京)有限公司 Electronic device and electronic system
CN214670566U (en) * 2021-02-07 2021-11-09 广州视源电子科技股份有限公司 Computer wake-up circuit and computer
CN114036488A (en) * 2021-11-09 2022-02-11 联想长风科技(北京)有限公司 USB port safety control method of computer
WO2022071925A1 (en) * 2020-09-30 2022-04-07 Hewlett-Packard Development Company, L.P. Wake settings

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080229121A1 (en) * 2007-03-14 2008-09-18 Paul Lassa Selectively Powered Data Interfaces
WO2020073916A1 (en) * 2018-10-09 2020-04-16 中兴通讯股份有限公司 Encryption method and apparatus for storage device, and storage medium
WO2022071925A1 (en) * 2020-09-30 2022-04-07 Hewlett-Packard Development Company, L.P. Wake settings
CN213582165U (en) * 2020-11-18 2021-06-29 联想长风科技(北京)有限公司 Electronic device and electronic system
CN214670566U (en) * 2021-02-07 2021-11-09 广州视源电子科技股份有限公司 Computer wake-up circuit and computer
CN114036488A (en) * 2021-11-09 2022-02-11 联想长风科技(北京)有限公司 USB port safety control method of computer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118093034A (en) * 2024-04-22 2024-05-28 联想长风科技(北京)有限公司 Awakening method and device for sleep mode of computer

Similar Documents

Publication Publication Date Title
CN103294970B (en) Method for sharing encryption setting by dual operating systems and electronic device
CN105225316B (en) A kind of dormancy of electron key low-power consumption power supply plan and awakening method
US8914649B2 (en) Bios controlled peripheral device port power
JP3074230U (en) Computer power security control
JP5095682B2 (en) Information processing apparatus, power control method for information processing apparatus, and computer-executable program
JP2003195989A (en) Computer device, power source supply control method and program
WO2012027991A1 (en) Method, device and system for bidirectional wake-up based on universal serial bus
KR100385020B1 (en) An automatic security code verifying method of a computer system operated by a remote controller
US9886568B2 (en) Systems and methods for secure remote management controller reset
US20160092377A1 (en) Method for fast access to a shared memory
WO2018157689A1 (en) Method for implementing low power consumption on standby for bluetooth security device and bluetooth security device
CN103116402A (en) Computer system with voice control function and voice control method
CN102799248B (en) A kind of network wake-up device, cyber-net awakening method
CN102437917B (en) A kind of network wake-up method, network wake-up device and computer
US9170640B2 (en) System and method for turning off unused components in a plurality of limited operation modes, users have different terminal usage rights for each
TW200532230A (en) Power management method for an electronic apparatus
CN114818017A (en) A computer wake-up and interface encryption method, device, device and medium
CN101997963B (en) Power management method and system for portable communication device
EP3598269B1 (en) Computer power saving method and computer waking method
WO2021078261A1 (en) Power supply control method, system and device
JP5941490B2 (en) Method for controlling power state, computer program and computer
CN101655734B (en) Computer with power-saving state control and its control method
TWM446935U (en) A device for wake up a system and the computer system thereof
US10645166B2 (en) Network interface card
WO2024193257A1 (en) Wake-up device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220729