[go: up one dir, main page]

CN114816553A - One-key recovery device and method for computer system software - Google Patents

One-key recovery device and method for computer system software Download PDF

Info

Publication number
CN114816553A
CN114816553A CN202210619226.4A CN202210619226A CN114816553A CN 114816553 A CN114816553 A CN 114816553A CN 202210619226 A CN202210619226 A CN 202210619226A CN 114816553 A CN114816553 A CN 114816553A
Authority
CN
China
Prior art keywords
power supply
storage
circuit
host
control
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.)
Granted
Application number
CN202210619226.4A
Other languages
Chinese (zh)
Other versions
CN114816553B (en
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.)
Beijing Jingyi Qiangyuan Technology Co ltd
Original Assignee
Beijing Jingyi Qiangyuan 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 Beijing Jingyi Qiangyuan Technology Co ltd filed Critical Beijing Jingyi Qiangyuan Technology Co ltd
Priority to CN202210619226.4A priority Critical patent/CN114816553B/en
Publication of CN114816553A publication Critical patent/CN114816553A/en
Application granted granted Critical
Publication of CN114816553B publication Critical patent/CN114816553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means

Landscapes

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

Abstract

The invention relates to a computer system software one-key recovery device and a method, comprising the following steps: the interface circuit can be connected with a host in a plug-in mode, the interface circuit is connected with a storage socket circuit which can be connected with storage equipment with built-in bootstrap programs, data backup recovery software and backup data, the interface circuit and the storage socket circuit are connected with a control circuit and a storage power supply circuit, and the control circuit is connected with the control power supply circuit. The device is provided with two sets of power supply circuits, one set is used for the control circuit, the other set is used for the storage circuit, and the purpose of separate power supply is to conveniently cut off the power when the device does not work so as to protect the device from being attacked. Meanwhile, the two sets of power supply circuits are arranged, so that the operating system for recovering or reinstalling the host can be completely automated, the operation for recovering the operating system becomes very simple by matching with the interface circuit which is convenient to plug, and a user basically without computer knowledge can also very easily perform the operation of installing, backing up and recovering the operating system of the host.

Description

一种计算机系统软件一键恢复装置和方法Device and method for one-key recovery of computer system software

技术领域technical field

本发明涉及一种计算机系统软件一键恢复装置和方法,是一种电数字数据处理装置和方法,是一种用于电数字数据处理装置的数据故障的恢复装置和方法。The invention relates to a one-key recovery device and method for computer system software, which is an electrical digital data processing device and method, and a recovery device and method for data failure of the electrical digital data processing device.

背景技术Background technique

操作系统崩溃是一种十分常见的计算机系统故障,对于计算机专业人员或有一些计算机知识的人员来说,这只是简单系统恢复问题,但对于绝大多数计算机的使用者确是一个十分棘手的问题,特别是工作完全依赖计算机及其网络的人员,一旦系统崩溃,所产生的影响十分严重。即便不出现系统崩溃,长期使用的计算机会产生大量的垃圾信息,而清除这些垃圾最好的方式就是重新安装操作系统。如何在没有任何技术指导的情况下,方便的重装操作系统是多数没有任何计算机专业背景的计算机操作人员所希望的。Operating system crash is a very common computer system failure. For computer professionals or people with some computer knowledge, this is just a simple system recovery problem, but it is indeed a very difficult problem for most computer users. , especially for people whose work is completely dependent on computers and their networks, once the system crashes, the impact is very serious. Even if there is no system crash, a computer that is used for a long time will generate a lot of garbage, and the best way to remove this garbage is to reinstall the operating system. How to easily reinstall the operating system without any technical guidance is what most computer operators want without any computer professional background.

现有的计算机操作系统恢复的方式多种多样,但仍然存在一些问题,包括:Existing computer operating systems can be recovered in a variety of ways, but there are still some problems, including:

1.一些计算机系统的一键恢复装置是通过计算机系统本地的存储空间作为备份空间,当该空间由于分区表、文件系统超级块等原因损坏后,该备份数据将无法恢复。如中国专利《基于一键恢复功能的计算机系统、恢复装置和恢复方法》(申请号200610083036.6)。1. The one-key recovery device of some computer systems uses the local storage space of the computer system as the backup space. When the space is damaged due to the partition table, file system super block, etc., the backup data cannot be recovered. Such as the Chinese patent "Computer System, Restoration Device and Restoration Method Based on One-Key Restoration Function" (application number 200610083036.6).

2.在本地存储的另一问题是容易遭受网络攻击,一旦备份文件被攻击而修改,则即便操作系统恢复,也带有病毒,继续污染重装的操作系统。2. Another problem of local storage is that it is vulnerable to network attacks. Once the backup file is attacked and modified, even if the operating system is restored, it will still contain a virus, which will continue to pollute the reinstalled operating system.

3.现有一些独立于主机的一键恢复装置的安装通常比较复杂,需要修改BIOS、南桥等芯片的程序,必须是计算机专业人员才能完成。3. The installation of some existing one-key recovery devices that are independent of the host is usually complicated, and it is necessary to modify the programs of the BIOS, South Bridge and other chips, which must be completed by computer professionals.

4.几乎所有现有的独立于主机的一键恢复装置在主机系统工作时,都是加电的,与主机关系密切,不能简单的插拔。也就是说,在没有专业知识的情况下不能随意的插拔一键恢复装置。这不但耗费电能,而且对于非专业人员来说是一个很大的限制,使非专业人员不敢自行恢复操作系统。4. Almost all existing one-key recovery devices that are independent of the host are powered on when the host system is working, are closely related to the host, and cannot be simply plugged in or pulled out. That is to say, the one-key recovery device cannot be plugged and unplugged at will without professional knowledge. This not only consumes power, but also is a big limitation for non-professionals, making non-professionals afraid to restore the operating system by themselves.

发明内容SUMMARY OF THE INVENTION

本发明涉及一种计算机系统软件一键恢复装置和方法。所述的一键恢复装置和方法特别强调的是,使用者是完全没有计算机专业知识的用户,在没有专业人员的指导下,自行安装所述的一键恢复装置,并在安装后,能够自行按下“一键恢复”按钮,完成系统恢复操作。也可以在系统配置完成后,经过简单的屏幕选项,对当前系统进行备份操作。所述一键恢复装置的备份空间完全独立于主机。当需要备份或恢复系统时,一键恢复装置自带的存储空间自动连接主机。而当无需备份或恢复系统时,即便不从主机上拔出一键恢复装置,则一键恢复装置也能够自动断电,并以离线的形式将自带的存储空间与主机系统断开,以确保该存储空间不因为主机系统病毒、人为误操作等原因而损坏。The invention relates to a one-key recovery device and method for computer system software. The one-key recovery device and method particularly emphasizes that the user is a user who has no professional knowledge of computers at all. Without the guidance of professionals, the one-key recovery device can be installed by himself, and after installation, he can install the one-key recovery device by himself. Press the "OneKey Recovery" button to complete the system recovery operation. You can also back up the current system through simple screen options after the system configuration is complete. The backup space of the one-key recovery device is completely independent of the host. When the system needs to be backed up or restored, the storage space that comes with the one-key recovery device automatically connects to the host. When there is no need to back up or restore the system, even if the one-key recovery device is not pulled out from the host, the one-key recovery device can automatically power off, and disconnect the built-in storage space from the host system in an offline form, so that the Make sure that the storage space is not damaged due to host system virus, human error, etc.

本发明的目的是通过以下技术方案实现的:一种计算机系统软件一键恢复装置,包括:能够插接连接主机的接口电路,所述的接口电路与能够连接内置引导程序、数据备份恢复软件和备份数据的存储设备的存储插座电路连接,所述的接口电路、存储插座电路与控制电路、存储供电电路连接,所述的控制电路与控制供电电路连接;The object of the present invention is achieved through the following technical solutions: a one-key recovery device for computer system software, comprising: an interface circuit that can be plugged and connected to a host, and the interface circuit can be connected to a built-in boot program, data backup and recovery software and The storage socket circuit of the data backup storage device is connected, the interface circuit and the storage socket circuit are connected with the control circuit and the storage power supply circuit, and the control circuit is connected with the control power supply circuit;

所述的控制电路设有延时启动端、控制供电维持端、存储供电维持端;The control circuit is provided with a delay start terminal, a control power supply maintenance terminal, and a storage power supply maintenance terminal;

所述的控制供电电路内置一按键,所述的按键通过肖特基二极管分别连接控制供电MOS管的栅极和所述的延时启动端,所述的控制供电MOS管的源极和漏极分别与总线输入端和电源高端连接,所述控制供电电路还设有控制供电开关管,所述的控制供电开关管的基极与所述的控制供电维持端连接,所述的控制供电开关管的集电极与控制供电MOS管的栅极连接;The control power supply circuit has a built-in button, and the button is respectively connected to the gate of the control power supply MOS tube and the delay start terminal through a Schottky diode, and the source and drain of the control power supply MOS tube. are respectively connected with the bus input terminal and the high-end power supply, the control power supply circuit is also provided with a control power supply switch tube, the base of the control power supply switch tube is connected with the control power supply maintenance terminal, and the control power supply switch tube The collector is connected to the gate of the control power supply MOS tube;

所述的存储供电电路设有存储供电MOS管和存储供电开关管,所述的存储供电MOS管的源极和漏极分别与总线输入端和总线输出端连接,所述的存储供电MOS管的栅极与所述的存储供电开关管的集电极连接,所述的存储供电开关管的基极与存储供电维持端连接。The storage power supply circuit is provided with a storage power supply MOS tube and a storage power supply switch tube, the source and drain of the storage power supply MOS tube are respectively connected with the bus input terminal and the bus output terminal, and the storage power supply MOS tube has a The grid is connected to the collector of the storage power supply switch tube, and the base electrode of the storage power supply switch tube is connected to the storage power supply maintenance terminal.

进一步的,所述的控制电路还设有用于展示运行状态的指示灯。Further, the control circuit is also provided with an indicator light for displaying the running state.

进一步的,所述的接口电路是USB、PCI、PCI-E之一,当接口电路为USB接口电路时,接口电路为USB插头电路;所述的存储插座电路是USB插座电路。Further, the interface circuit is one of USB, PCI and PCI-E. When the interface circuit is a USB interface circuit, the interface circuit is a USB plug circuit; the storage socket circuit is a USB socket circuit.

进一步的,所述的USB插头电路和USB插座电路为USB2.0、USB3.0或USB3.1;所述的存储设备是USB接口设备,包括:U盘、移动硬盘、USB读卡器之一。Further, the USB plug circuit and the USB socket circuit are USB2.0, USB3.0 or USB3.1; the storage device is a USB interface device, including: one of a U disk, a mobile hard disk, and a USB card reader .

进一步的,所述控制电路还连接5PIN插针。Further, the control circuit is also connected to a 5PIN pin.

进一步的,所述的计算机系统软件一键恢复装置的外形为板卡形。Further, the shape of the one-key recovery device for computer system software is board-shaped.

进一步的,所述的计算机系统软件一键恢复装置的外形为机箱形。Further, the appearance of the one-key recovery device for computer system software is in the shape of a chassis.

一种基于上述装置的计算机系统软件一键恢复方法,包括:主机正常工作过程、恢复主机操作系统过程、主机操作系统备份过程;A one-key recovery method for computer system software based on the above device, comprising: a normal working process of a host, a process of restoring a host operating system, and a backup process of the host operating system;

主机正常工作过程:当主机正常工作时,如果所述装置插接在主机上则有:按键处于断开状态,延时启动端、控制供电维持端、存储供电维持端均无信号,控制供电MOS管和存储供电MOS管处于截止状态,使控制电路未加电,从而使存储供电电路、存储插座电路均未加电;整个所述装置处于断电状态;The normal working process of the host: when the host is working normally, if the device is plugged into the host, there are: the button is disconnected, the delay start terminal, the control power supply maintenance terminal, and the storage power supply maintenance terminal have no signals, and the control power supply MOS The tube and the storage power supply MOS tube are in a cut-off state, so that the control circuit is not powered on, so that the storage power supply circuit and the storage socket circuit are not powered on; the entire device is in a power-off state;

所述的恢复主机操作系统过程或主机操作系统备份过程包括以下步骤:The process of restoring the host operating system or the host operating system backup process includes the following steps:

步骤1,按键触发:不论主机是否加电,首先确认所述装置是否插接在主机上,确认后启动或重新启动主机,当主机一经加电,立刻按动按键并维持按压;Step 1, button triggering: regardless of whether the host is powered on, first confirm whether the device is plugged into the host, start or restart the host after confirmation, and press the button immediately and keep pressing when the host is powered on;

步骤2,临时供电:在按键维持按压期间,肖特基二极管分别导通控制供电MOS管和触发控制电路;控制供电MOS管将总线输入端和电源高端导通,使主机电源对控制电路供电,并使控制电路延时计时开启,指示灯开始快速闪烁;Step 2: Temporary power supply: During the period when the button is maintained and pressed, the Schottky diode conducts the control power supply MOS tube and the trigger control circuit respectively; the control power supply MOS tube conducts the bus input terminal and the high end of the power supply, so that the host power supply supplies power to the control circuit, And make the control circuit delay timing on, and the indicator light starts to flash rapidly;

步骤3,正常供电启动:延时到时后,控制电路向控制供电开关管、存储供电开关管发出导通电平,使控制供电开关管、存储供电开关管导通,从而导致控制供电MOS管、存储供电MOS管导通,为控制电路、存储插座电路以及插在USB插口上的存储设备供电,指示灯继续快速闪烁;Step 3, normal power supply start: after the delay time expires, the control circuit sends a conduction level to the control power supply switch tube and the storage power supply switch tube, so that the control power supply switch tube and the storage power supply switch tube are turned on, thereby causing the control power supply MOS tube to be turned on. , The storage power supply MOS tube is turned on to supply power to the control circuit, the storage socket circuit and the storage device plugged into the USB socket, and the indicator light continues to flash rapidly;

步骤4,临时供电断开:控制电路、存储插座电路以及存储设备得电后,指示灯开始慢速闪烁,按键断开;按键断开后,由于控制电路维持了控制供电开关管、存储供电开关管的导通电平,使控制供电开关管、存储供电开关管维持导通,从而维持了控制供电MOS管、存储供电MOS管的导通,并从而维持了控制电路、存储插座电路、存储设备的供电;Step 4: Temporary power supply disconnection: After the control circuit, the storage socket circuit and the storage device are powered on, the indicator light starts to flash slowly, and the button is disconnected; The conduction level of the tube keeps the control power supply switch tube and the storage power supply switch tube on, thereby maintaining the conduction of the control power supply MOS tube and the storage power supply MOS tube, and thus maintaining the control circuit, storage socket circuit, storage device. power supply;

步骤5,主机系统维护:由于控制电路、接口电路、存储插座电路以及插在USB插口上的存储设备持续得电,主机的BIOS能够找到所述存储设备所存储的内置引导程序,从而启动对主机操作系统的恢复操作或备份操作;Step 5, host system maintenance: Since the control circuit, interface circuit, storage socket circuit and the storage device plugged into the USB socket are continuously powered on, the BIOS of the host can find the built-in boot program stored in the storage device, thereby starting the host computer. Operating system restore operations or backup operations;

步骤6:完成断开:主机操作系统的恢复操作或备份操作结束后,或者长按按键,使所述装置与主机断开;或者关闭主机并重新启动主机,按键维持断开状态,主机不能对控制电路供电,从而使所述装置失电而与主机断开;或者关闭主机,并将所述装置从主机上拔除,物理断开。Step 6: Complete disconnection: After the recovery operation or backup operation of the host operating system is completed, or long press the button to disconnect the device from the host; or turn off the host and restart the host, the button remains disconnected, and the host cannot connect to the host. The control circuit supplies power, thereby de-energizing the device and disconnecting it from the host; or shutting down the host and unplugging the device from the host to physically disconnect the device.

进一步的,长按按键的断开包括:在按键维持按压期间,控制电路延时计时开启,指示灯开始快速闪烁;延时到时后,控制电路向控制供电开关管、存储供电开关管发出关断电平,使控制供电开关管、存储供电开关管关断,从而导致存储供电MOS管关断,存储插座电路以及插在USB插口上的存储设备失电,由于按键维持按压期间肖特基二极管持续导通控制供电MOS管,因此控制供电MOS管持续将总线输入端和电源高端导通,使主机电源维持对控制电路供电,指示灯继续快速闪烁;存储插座电路以及存储设备失电后,指示灯常亮一定时间后熄灭,按键断开;按键断开后,肖特基二极管关断控制供电MOS管,从而关断控制电路的供电,整个所述装置处于断电状态。Further, the disconnection of the long-pressing button includes: during the period when the button is maintained and pressed, the control circuit delays the timing to turn on, and the indicator light starts to flash rapidly; after the delay expires, the control circuit sends a switch to the control power supply switch tube and the storage power supply switch tube. Turn off the power supply switch tube and the storage power supply switch tube, which will cause the storage power supply MOS tube to be turned off, the storage socket circuit and the storage device plugged into the USB socket to lose power. The control power supply MOS tube is continuously turned on, so the control power supply MOS tube continues to conduct the bus input terminal and the high-end power supply, so that the host power supply maintains power supply to the control circuit, and the indicator light continues to flash rapidly; after the storage socket circuit and the storage device lose power, the indicator The light is always on for a certain period of time and then goes out, and the button is disconnected; after the button is disconnected, the Schottky diode turns off the control power supply MOS tube, thereby turning off the power supply of the control circuit, and the entire device is in a power-off state.

进一步的,所述的主机操作系统备份过程启动时,内置引导程序引导数据备份恢复软件运行,数据备份恢复软件提示选择需要备份的硬盘数据,并自动将指定的硬盘数据备份到存储设备中,所述的存储设备中设有两个区域:用于存储引导程序和数据备份恢复软件的FAT32分区和用于存储备份数据的ext4分区;主机的备份文件以gzip压缩的方式存入存储设备,同时记录备份时间。Further, when the host operating system backup process is started, the built-in boot program guides the data backup and recovery software to run, the data backup and recovery software prompts to select the hard disk data that needs to be backed up, and automatically backs up the specified hard disk data to the storage device, so There are two areas in the storage device described: the FAT32 partition for storing the boot program and the data backup and recovery software and the ext4 partition for storing the backup data; the backup file of the host is stored in the storage device in the form of gzip compression, and records are recorded at the same time. backup time.

本发明的有益效果是:本发明所述的装置设置了两套供电电路,一套用于控制电路,一套用于存储电路,分开供电的目的是便于在所述装置不工作时予以断电,以保护所述装置不受攻击。同时设置两套供电电路可以使恢复或重新安装主机的操作系统完全自动化,配合方便插接的接口电路,使恢复操作系统的操作变得十分简单,基本没有计算机知识的计算机使用者也能够十分轻松的进行主机操作系统的安装、备份和恢复操作。与现有的一键恢复操作系统相比,本发明所提供的一键恢复装置和方法能够完全避免遭受攻击,更加安全,对于操作者而言,更加简便易学。在主机BIOS已经设置好的情况下,由电脑使用者启动电脑、按键等简单操作就能够成功进行系统恢复。这对于完全没有计算机知识的操作人员来说无需他人指导,以及过多的操作选项即可实现。由于所述装置平时可以与主机断开连接,仅在需要时才连接,因此不会被病毒或人为操作等损坏,并且所述装置平时处于离线装置,电力消耗为零,更加节约电力。The beneficial effect of the present invention is that: the device of the present invention is provided with two sets of power supply circuits, one for the control circuit and the other for the storage circuit, and the purpose of the separate power supply is to facilitate the power off when the device is not working, so as to avoid The device is protected from attack. Simultaneously setting up two sets of power supply circuits can fully automate the restoration or reinstallation of the operating system of the host computer, and with the interface circuit that is easy to plug in, the operation of restoring the operating system becomes very simple, and computer users without basic computer knowledge can also easily to perform host operating system installation, backup, and restore operations. Compared with the existing one-key recovery operating system, the one-key recovery device and method provided by the present invention can completely avoid being attacked, is more secure, and is easier for operators to learn. In the case that the host BIOS has been set, the system recovery can be successfully performed by simple operations such as starting the computer and pressing keys by the computer user. This can be done without guidance and with a plethora of operating options for operators with absolutely no computer knowledge. Since the device can be disconnected from the host at ordinary times and only connected when needed, it will not be damaged by viruses or human operations, and the device is usually offline, with zero power consumption, which saves more power.

附图说明Description of drawings

下面结合附图和实施例对本发明作进一步说明。The present invention will be further described below with reference to the accompanying drawings and embodiments.

图1是本发明实施例一所述一键恢复装置的电路原理图;1 is a circuit schematic diagram of the one-key recovery device according to Embodiment 1 of the present invention;

图2是本发明实施例八所述方法进行系统恢复或系统备份过程的流程图。FIG. 2 is a flowchart of a system recovery or system backup process by the method according to Embodiment 8 of the present invention.

具体实施方式Detailed ways

实施例一:Example 1:

本实施例提供了一种计算机系统软件一键恢复装置,如图1所示。本实施例包括:能够插接连接主机的接口电路,所述的接口电路与能够连接内置引导程序、数据备份恢复软件和备份数据的存储设备的存储插座电路连接,所述的接口电路、存储插座电路与控制电路、存储供电电路连接,所述的控制电路与控制供电电路连接。This embodiment provides a one-key recovery device for computer system software, as shown in FIG. 1 . This embodiment includes: an interface circuit capable of being plugged and connected to a host, the interface circuit being connected to a storage socket circuit capable of connecting a built-in boot program, data backup and recovery software, and a storage device for backing up data, the interface circuit, the storage socket The circuit is connected with the control circuit and the storage power supply circuit, and the control circuit is connected with the control power supply circuit.

所述的控制电路设有延时启动端P3.3、控制供电维持端P3.4、存储供电维持端P3.5。The control circuit is provided with a delay start terminal P3.3, a control power supply maintenance terminal P3.4, and a storage power supply maintenance terminal P3.5.

所述的控制供电电路内置一按键SW1,所述的按键通过肖特基二极管D1分别连接控制供电MOS管Q1的栅极和所述的延时启动端P3.3,所述的控制供电MOS管Q1的源极和漏极分别与总线输入端VBUS_IN和电源高端VCC连接,所述控制供电电路还设有控制供电开关管Q3,所述的控制供电开关管Q3的基极与所述的控制供电维持端P3.4连接,所述的控制供电开关管Q3的集电极与控制供电MOS管Q1的栅极连接。The control power supply circuit has a built-in button SW1, and the button is respectively connected to the gate of the control power supply MOS transistor Q1 and the delay start terminal P3.3 through the Schottky diode D1. The control power supply MOS transistor The source and drain of Q1 are respectively connected to the bus input terminal VBUS_IN and the high-end VCC of the power supply. The control power supply circuit is further provided with a control power supply switch Q3, and the base of the control power supply switch Q3 is connected to the control power supply The maintenance terminal P3.4 is connected, and the collector of the control power supply switch Q3 is connected to the gate of the control power supply MOS transistor Q1.

所述的存储供电电路设有存储供电MOS管Q2和存储供电开关管Q4,所述的存储供电MOS管Q2的源极和漏极分别与总线输入端VBUS_IN和总线输出端VBUS_OUT连接,所述的存储供电MOS管Q2的栅极与所述的存储供电开关管Q4的集电极连接,所述的存储供电开关管Q4的基极与存储供电维持端P3.5连接。The storage power supply circuit is provided with a storage power supply MOS tube Q2 and a storage power supply switch tube Q4. The source and drain of the storage power supply MOS tube Q2 are respectively connected to the bus input terminal VBUS_IN and the bus output terminal VBUS_OUT. The gate of the storage power supply MOS transistor Q2 is connected to the collector of the storage power supply switch tube Q4, and the base of the storage power supply switch tube Q4 is connected to the storage power supply maintenance terminal P3.5.

应当说明的是,图1是以控制电路芯片为单片机为核心、接口电路以USB插口、配置相应电容、电阻等原件为例的典型电路,本实施例不限于这种配置,控制电路可以是其他控制芯片,如MCU等,与主机连接的接口电路,以及连存储设备的接口,可以是其他类型的接口。It should be noted that Fig. 1 is a typical circuit in which the control circuit chip is the single-chip microcomputer as the core, and the interface circuit is an example of a USB socket, configuration of corresponding capacitors, resistors and other original components. This embodiment is not limited to this configuration, and the control circuit may be other The control chip, such as MCU, etc., the interface circuit connected with the host, and the interface connected with the storage device, can be other types of interfaces.

本实施例的目的之一是建立一个能够完全由电脑使用者在无需他人指导下自己就可以毫无障碍的重新安装电脑操作系统的装置。为此本实施例设置了一个按键以及五部分电路:控制供电电路、控制电路、存储供电电路、接口电路、存储插座电路。需要使用者操作的只是将所述装置插接在主机上,启动电脑,按动唯一的操作键——按键并维持几秒钟,再通过主机的屏幕和鼠标选择一下要进行的操作,如系统重新安装或系统备份,之后则完全不用操作,全部自动完成。One of the objectives of the present embodiment is to establish a device that can completely reinstall the computer operating system by the computer user without the need of others' guidance. To this end, this embodiment provides a button and five circuits: a control power supply circuit, a control circuit, a storage power supply circuit, an interface circuit, and a storage socket circuit. All that the user needs to operate is to plug the device into the host, start the computer, press the only operation key-press and hold it for a few seconds, and then select the operation to be performed through the screen and mouse of the host, such as the system Reinstallation or system backup, after that, no operation is required at all, and it is all done automatically.

所述的控制电路是接口控制器用于对接口电路、存储插座电路进行数据传输控制。接口电路用于与主机联系,即可以是USB插头电路,或是PCI、PCI-E插板电路,使本实施例最终产生可以呈现为直接插在电脑USB接口上的小盒子,也可以是安装在电脑后背或前脸的专用启动面板。控制电路中还可以设置专门的操作系统恢复指示灯D2,指示灯与按钮SW1可以合一设置,即按动SW1按钮,按钮的闪烁表示操作系统安装、备份或恢复。The control circuit is an interface controller used to perform data transmission control on the interface circuit and the storage socket circuit. The interface circuit is used to communicate with the host, that is, it can be a USB plug circuit, or a PCI or PCI-E plug-in circuit, so that this embodiment finally produces a small box that can be directly inserted into the USB interface of the computer, or can be installed A dedicated launchpad on the back or front of the computer. In the control circuit, a special operating system recovery indicator light D2 can also be set, and the indicator light and the button SW1 can be set in one, that is, press the SW1 button, and the flashing of the button indicates the installation, backup or recovery of the operating system.

应当说明的是,本实施例所述的主机可以是台式电脑、笔记本电脑或安装在机柜中的机架式服务器、刀片服务器,以及存储阵列等具有计算和存储功能的电子设备。It should be noted that the host described in this embodiment may be a desktop computer, a notebook computer, a rack-mounted server, a blade server, and an electronic device with computing and storage functions such as a storage array installed in a cabinet.

存储插座电路主要用于插接U盘或其他存储设备,如移动硬盘等,存储设备中内置数据备份恢复软件和备份的操作系统或数据,备份的操作系统可以是Linux系统,也可以是Windows、Unix或其他操作系统。采用本实施例所述的一键恢复装置无需对主机的计算机系统的操作系统、引导方式、引导扇区以及BIOS固件做任何修改,对已有系统软件没有任何影响。仅将BIOS的引导顺序修改为一键恢复装置优先即可。在不允许修改BIOS引导顺序的情况下,也可在主机启动时手动选择从一键恢复装置引导。如果本装置采用是板卡的形式,则需要螺丝刀之类的普通工具进行安装,如果采用USB盒子的形式,则无需任何工具,直接插在主机的USB接口上即可使用,非常方便。The storage socket circuit is mainly used to plug U disk or other storage devices, such as mobile hard disks, etc. The storage device has built-in data backup and recovery software and the backup operating system or data. The backup operating system can be a Linux system, or Windows, Unix or other operating system. Using the one-key recovery device described in this embodiment does not require any modification to the operating system, boot mode, boot sector and BIOS firmware of the computer system of the host, and has no impact on the existing system software. Just modify the boot order of the BIOS to give priority to the one-key recovery device. In the case that the modification of the BIOS boot order is not allowed, you can also manually choose to boot from the one-key recovery device when the host starts up. If the device is in the form of a board, a common tool such as a screwdriver is required for installation. If it is in the form of a USB box, it can be used directly by plugging it into the USB interface of the host without any tools, which is very convenient.

本实施例由两套供电电路,分别针对单片机和存储设备进行供电。所述的控制供电电路主要为控制电路供电,是本实施例的关键。所述的存储供电电路主要为存储插座电路供电。In this embodiment, two sets of power supply circuits are used to supply power to the single-chip microcomputer and the storage device respectively. The control power supply circuit mainly supplies power to the control circuit, which is the key of this embodiment. The storage power supply circuit mainly supplies power to the storage socket circuit.

控制供电电路设有一个按钮,负责供电的总启动,还设有MOS管Q1控制负责开关控制电路(单片机U1)的电源,并设立开关管Q3负责控制MOS管的栅极。主机上电后,在按键按下之前,MOS管Q1和Q2均不导通,因此不对单片机供电,当然也不对所连接的存储设备供电。这时所述一键恢复装置和其连接的存储设备处于断电状态,功耗均为零。The control power supply circuit is provided with a button, which is responsible for the general start of the power supply, and a MOS tube Q1 to control the power supply of the switch control circuit (MCU U1), and a switch tube Q3 to control the gate of the MOS tube. After the host is powered on, before the button is pressed, the MOS transistors Q1 and Q2 are not turned on, so they do not supply power to the single-chip microcomputer, and of course, do not supply power to the connected storage device. At this time, the one-key recovery device and the storage device connected thereto are in a power-off state, and the power consumption is zero.

当按下按键并维持时,肖特基二极管D1将控制MOS管Q1的栅极对地导通,使接口电路的电源总线与单片机的VCC接通,单片机上电。同时肖特基二极管D1的另一个输入端将单片机U1的延时启动端P3.3对地导通,使单片机延时计时,当达到延时时间后,单片机触发对USB存储设备供电流程。When the button is pressed and maintained, the Schottky diode D1 will conduct the gate of the control MOS transistor Q1 to the ground, so that the power bus of the interface circuit is connected to the VCC of the microcontroller, and the microcontroller is powered on. At the same time, the other input terminal of Schottky diode D1 conducts the delay start terminal P3.3 of the microcontroller U1 to the ground, so that the microcontroller delays timing. When the delay time is reached, the microcontroller triggers the process of supplying power to the USB storage device.

单片机运行后,单片机控制开关管Q3导通,Q3导通后使MOS管Q1持续导通,从而保持单片机的供电(即使按键松开后也可通过单片机和控制电路维持单片机的供电),也可以根据软件设定,延迟保持单片机的供电(即单片机的供电仍由按键控制,按键松开即停止单片机的供电)。单片机可以通过肖特基二极管D1获取按键的按下状态。After the single-chip microcomputer runs, the single-chip microcomputer controls the switch tube Q3 to be turned on. After Q3 is turned on, the MOS tube Q1 is continuously turned on, so as to maintain the power supply of the single-chip microcomputer (even after the button is released, the single-chip microcomputer and the control circuit can maintain the power supply of the single-chip microcomputer), or you can According to the software setting, the power supply of the single-chip microcomputer is delayed and maintained (that is, the power supply of the single-chip microcomputer is still controlled by the button, and the power supply of the single-chip microcomputer is stopped when the button is released). The microcontroller can obtain the pressed state of the button through the Schottky diode D1.

单片机根据按键按下的时长,决定是否对USB存储设备供电。单片机通过开关管Q4导通,Q4导通后使MOS管Q2导通,从而控制USB存储设备的供电。The single-chip computer decides whether to supply power to the USB storage device according to the duration of the button pressing. The single-chip microcomputer is turned on through the switch tube Q4, and after the Q4 is turned on, the MOS tube Q2 is turned on, thereby controlling the power supply of the USB storage device.

存储供电电路主要用于对控制存储插座电路的供电,当单片机的存储供电维持端P3.5给出高电平时,Q4导通,从而使Q2源极和漏极导通,则将接口电路的VBUS_IN和存储插座电路的VBUS_OUT联通,为存储器供电。The storage power supply circuit is mainly used to supply power to the control storage socket circuit. When the storage power supply maintenance terminal P3.5 of the microcontroller gives a high level, Q4 is turned on, so that the source and drain of Q2 are turned on, and the interface circuit is turned on. VBUS_IN is connected with VBUS_OUT of the storage socket circuit to supply power to the storage.

实施例二:Embodiment 2:

本实施例是实施例一的改进,是实施例一关于控制电路的细化。本实施例所述的控制电路还设有用于展示运行状态的指示灯D2,如图1所示。This embodiment is an improvement of the first embodiment, and is a refinement of the control circuit of the first embodiment. The control circuit described in this embodiment is further provided with an indicator light D2 for displaying the running state, as shown in FIG. 1 .

本实施例在单片机的P3.2连接一LED发光二极管,作为指示灯,并设定在按下按键和维持按键按压时,指示灯快速闪烁,在单片机正常工作时慢速闪烁。In this embodiment, an LED light-emitting diode is connected to P3.2 of the single-chip microcomputer as an indicator light, and it is set that when the button is pressed and the button is maintained, the indicator light flashes rapidly, and when the single-chip microcomputer works normally, the indicator flashes slowly.

实施例三:Embodiment three:

实施例是上述实施例的改进,是上述实施例关于接口电路的细化。本实施例所述的接口电路是USB、PCI、PCI-E之一,当接口电路为USB接口电路时,接口电路为USB插头电路;所述的存储插座电路是USB插座电路。The embodiment is an improvement of the above-mentioned embodiment, and is a refinement of the above-mentioned embodiment regarding the interface circuit. The interface circuit described in this embodiment is one of USB, PCI, and PCI-E. When the interface circuit is a USB interface circuit, the interface circuit is a USB plug circuit; the storage socket circuit is a USB socket circuit.

本实施例所述的接口电路是连接主机主板的桥梁,也涉及到所述装置形成产品的形状,如果是板卡形,则可以使用PCI或PCI-E,或USB ,如果采用盒子形,则采用USB接口更加合适,可以直接插接在电脑的面板或背板上,直接进行操作,更加方便。The interface circuit described in this embodiment is a bridge connecting the mainboard of the host computer, and also involves the shape of the product formed by the device. If it is in the shape of a board, PCI, PCI-E, or USB can be used. It is more suitable to use the USB interface, which can be directly plugged into the panel or back panel of the computer for direct operation, which is more convenient.

实施例四:Embodiment 4:

实施例是上述实施例的改进,是上述实施例关于接口电路的细化。本实施例所述的USB插头电路和USB插座电路为USB2.0、USB3.0或USB3.1。所述的存储设备是USB接口设备,包括:U盘、移动硬盘、USB读卡器之一。The embodiment is an improvement of the above-mentioned embodiment, and is a refinement of the above-mentioned embodiment regarding the interface circuit. The USB plug circuit and the USB socket circuit described in this embodiment are USB2.0, USB3.0 or USB3.1. The storage device is a USB interface device, including one of a U disk, a mobile hard disk, and a USB card reader.

本实施例能够使用多种版本的USB接口协议。由于可以使用多种USB接口协议,则可以使用各种USB存储设备,如:U盘、移动硬盘、SD/TF读卡器等USB接口的存储设备。This embodiment can use various versions of USB interface protocols. Since a variety of USB interface protocols can be used, various USB storage devices can be used, such as: U disk, mobile hard disk, SD/TF card reader and other USB interface storage devices.

实施例五:Embodiment 5:

实施例是上述实施例的改进,是上述实施例关于控制电路的细化。本实施例所述控制电路还连接5PIN插针TP,如图1所示。The embodiment is an improvement of the above-mentioned embodiment, and is a refinement of the above-mentioned embodiment regarding the control circuit. The control circuit in this embodiment is also connected to a 5PIN pin TP, as shown in FIG. 1 .

设置5PIN插针为了方便将单片机软件烧录到单片机内,也可作为调试串口使用。5PIN插针可不焊接在电路板上,仅在电路板上保留焊盘,利用夹具进行连接。The 5PIN pin is set for the convenience of burning the MCU software into the MCU, and it can also be used as a debugging serial port. The 5PIN pin can not be soldered on the circuit board, only the pads are reserved on the circuit board, and the connection is made with a clamp.

实施例六:Embodiment 6:

根据权利要求5所述的计算机系统软件一键恢复装置,其特征在于,所述的计算机系统软件一键恢复装置的外形为板卡形。The one-key recovery device for computer system software according to claim 5, wherein the one-key recovery device for computer system software is in the shape of a board.

所述的板卡形是指可以插接在电脑前面板或后面板的电路板,板卡一般没有外壳,只有一片与电脑箱连接的连接片。插接的方式可以是PCI或PCI-E插槽,或者直接用螺丝拧紧在电脑箱体或机架上。The board-card shape refers to a circuit board that can be plugged into the front panel or rear panel of a computer. The board card generally does not have a casing, but only has a connecting piece connected to the computer case. The way of plugging can be PCI or PCI-E slot, or directly screwed on the computer case or rack.

实施例七:Embodiment 7:

根据权利要求5所述的计算机系统软件一键恢复装置,其特征在于,所述的计算机系统软件一键恢复装置的外形为机箱形。The one-key recovery device for computer system software according to claim 5, wherein the one-key recovery device for computer system software is in the shape of a box.

机箱形是指使用一个盒子将整个装置放在其中,形成一个完整的产品。盒子的某一个面上设置USB插头,可以插接在主机的USB插口上,并在盒子的某个面上设置按键以及指示灯,作为装置的启动和状态指示。Chassis-shaped refers to the use of a box in which the entire unit is placed to form a complete product. A USB plug is set on one side of the box, which can be plugged into the USB socket of the host, and buttons and indicator lights are set on a certain side of the box as the startup and status indication of the device.

实施例八:Embodiment 8:

本实施例是一种基于上述实施例所述装置的计算机系统软件一键恢复方法。本实施例包括:主机正常工作过程、恢复主机系统过程、备份主机系统过程。主机正常工作过程是指主机开启正常的操作系统,并执行正常的业务,这时所述的装置可以连接在主机上,也可以不与主机连接。当所述装置不与主机连接时,装置与主机物理断开,装置没有加电,则不会产生任何工作过程,也不会被病毒侵袭。This embodiment is a one-key recovery method for computer system software based on the device described in the foregoing embodiment. This embodiment includes: the normal working process of the host, the process of restoring the host system, and the process of backing up the host system. The normal working process of the host means that the host starts a normal operating system and executes normal services. In this case, the device may be connected to the host or not connected to the host. When the device is not connected to the host, the device is physically disconnected from the host, and the device is not powered on, so no working process will occur, and no virus will be attacked.

应当说明的是本实施例以图1的单片机架构为例进行说明,本实施例不限于单片机架构。It should be noted that this embodiment is described by taking the single-chip microcomputer architecture of FIG. 1 as an example, and this embodiment is not limited to the single-chip microcomputer architecture.

当主机正常工作时,如果所述装置插接在主机上则有:按键SW1处于断开状态,延时启动端P3.3、控制供电维持端P3.4、存储供电维持端P3.5均无信号,控制供电MOS管Q1和存储供电MOS管Q2处于截止状态,使控制电路未加电,从而使存储供电电路、存储插座电路均未加电;整个所述装置处于断电状态。由此可以看出,这时所述装置处于断电状态,指示灯也不会发亮,病毒无法入侵,装置处于完全安全状态。When the host is working normally, if the device is plugged into the host, there are: the button SW1 is disconnected, the delay start terminal P3.3, the control power supply maintenance terminal P3.4, and the storage power supply maintenance terminal P3.5 are not available. The signal controls the power supply MOS transistor Q1 and the storage power supply MOS transistor Q2 to be in an off state, so that the control circuit is not powered on, so that neither the storage power supply circuit nor the storage socket circuit is powered on; the entire device is powered off. It can be seen from this that the device is in a power-off state at this time, the indicator light will not light up, the virus cannot invade, and the device is in a completely safe state.

恢复主机操作系统过程和主机操作系统备份过程的装置启动方式是相同的,只是在加载内置数据备份恢复软件时设置了两个选项供操作人员选择,以分别进行系统恢复或系统备份,也可以配置默认操作或流程,使操作人员在按键断开后无需任何操作,数据备份恢复软件自动按默认操作或流程完成主机系统维护并关机。具体过程包括以下步骤,流程如图2所示:The device startup methods for restoring the host operating system and the host operating system backup process are the same, except that two options are set for the operator to choose when loading the built-in data backup and recovery software to perform system recovery or system backup respectively, and can also be configured The default operation or process makes the operator do not need any operation after the key is disconnected, and the data backup and recovery software automatically completes the maintenance of the host system and shuts down according to the default operation or process. The specific process includes the following steps, as shown in Figure 2:

步骤1,按键触发:不论主机是否加电,首先确认所述装置是否插接在主机上,确认后启动或重新启动主机,当主机一经加电,立刻按动按键SW1并维持按压。Step 1. Button triggering: Regardless of whether the host is powered on, first confirm whether the device is plugged into the host, and then start or restart the host after confirmation. When the host is powered on, immediately press the button SW1 and keep pressing.

按键SW1是所述装置唯一需要操作的按钮,在确认所述装置稳固插接在主机后,再确认主机是否加电。如果主机在加电状态,就要重新启动,如果主机在断电状态则启动主机。启动的目的是使装置的内置引导程序能够自动引导数据备份恢复软件进入主机系统维护状态。应当说明的是,主机BIOS应当处于所述装置与主机插接接口为优先选择的状态。即:如果接口为USB则主机BIOS为USB优先,如果接口为PCI或PCI-E则为PCI或PCI-E优先。The button SW1 is the only button of the device that needs to be operated. After confirming that the device is firmly plugged into the host, confirm whether the host is powered on. If the host is powered on, it will be restarted, and if the host is powered off, the host will be powered on. The purpose of startup is to enable the built-in boot program of the device to automatically guide the data backup and recovery software into the host system maintenance state. It should be noted that the host BIOS should be in a state where the plug interface between the device and the host is the preferred choice. That is: if the interface is USB, the host BIOS will give priority to USB, and if the interface is PCI or PCI-E, it will give priority to PCI or PCI-E.

步骤2,临时供电:在按键维持按压期间,肖特基二极管分别导通控制供电MOS管Q1和延时启动端P3.3触发控制电路;控制供电MOS管Q1将总线输入端和电源高端导通,使主机电源对控制电路供电,并使控制电路延时计时开启,指示灯D2开始快速闪烁。Step 2: Temporary power supply: During the period when the button is maintained and pressed, the Schottky diode is turned on to control the power supply MOS transistor Q1 and the delay start terminal P3.3 to trigger the control circuit; the control power supply MOS transistor Q1 turns on the bus input terminal and the high-end power supply , so that the host power supply supplies power to the control circuit, and the control circuit is turned on after a delay time, and the indicator light D2 starts to flash rapidly.

临时供电主要是将控制供电电路与主机的电源连接,触发控制电路,为安全起见,可以设置延时触发,例如按压按键3-6秒,再触发控制电路,也可以不设置延时,按压按键直接触发供电电路。为区别于启动状态和工作状态,可以设置指示灯的变化。例如可以设置指示灯的快速闪烁表示启动状态,用慢速闪烁或常亮表示工作状态。也可以使用双色指示灯表示不同工作状态。按键接通肖特基二极管D1的一个输入端对地导通,使控制供电MOS管Q1的栅极对地导通,Q1栅极的低电平使Q1的源极和漏极导通,也就是控制电路的单片机与主机电源连接,单片机加电。同时肖特基二极管的另一个输入端将触发电平输给单片机U1,使单片机触发,进入延时启动状态。Temporary power supply mainly connects the control power supply circuit with the power supply of the host, and triggers the control circuit. For safety reasons, a delay trigger can be set. For example, press the button for 3-6 seconds, and then trigger the control circuit. You can also press the button without setting the delay. Directly trigger the power supply circuit. In order to distinguish it from the startup state and the working state, the change of the indicator light can be set. For example, you can set the indicator light to flash quickly to indicate the startup state, and to flash slowly or constantly to indicate the working status. Two-color indicator lights can also be used to indicate different working states. The button turns on one input terminal of Schottky diode D1 and conducts to ground, so that the gate of the control power MOS transistor Q1 is conducted to ground, and the low level of the gate of Q1 makes the source and drain of Q1 conduct, also That is, the single-chip microcomputer of the control circuit is connected to the power supply of the host computer, and the single-chip microcomputer is powered on. At the same time, the other input end of the Schottky diode outputs the trigger level to the microcontroller U1, so that the microcontroller triggers and enters the delayed start state.

步骤3,正常供电启动:延时到时后,控制电路向控制供电开关管Q3、存储供电开关管Q4发出导通电平,使控制供电开关管Q3、存储供电开关管Q4导通,从而导致控制供电MOS管、存储供电MOS管导通,为控制电路、存储插座电路以及插在USB插口上的存储设备供电,指示灯D2继续快速闪烁。Step 3, normal power supply start: after the delay expires, the control circuit sends a conduction level to the control power supply switch tube Q3 and the storage power supply switch tube Q4, so that the control power supply switch tube Q3 and the storage power supply switch tube Q4 are turned on, resulting in The control power supply MOS tube and the storage power supply MOS tube are turned on to supply power to the control circuit, the storage socket circuit and the storage device plugged into the USB socket, and the indicator light D2 continues to flash rapidly.

当控制电路启动后,控制电路通过控制供电维持端P3.4、存储供电维持端P3.5向控制供电电路和存储供电电路的开关管Q3、Q4的基极发出高电平,使Q3、Q4的集电极对地导通,从而导致Q1、Q2导通,使主机的电源与控制供电电路、存储供电电路连接并供电。When the control circuit is started, the control circuit sends a high level to the bases of the switching tubes Q3 and Q4 of the control power supply circuit and the storage power supply circuit through the control power supply maintenance terminal P3.4 and the storage power supply maintenance terminal P3.5, so that Q3 and Q4 The collector is turned on to the ground, which leads to the conduction of Q1 and Q2, so that the power supply of the host is connected to the control power supply circuit and the storage power supply circuit and supplies power.

步骤4,临时供电断开:控制电路、存储插座电路以及存储设备得电后,指示灯开始慢速闪烁,按键断开;按键断开后,由于控制电路维持了控制供电开关管Q3、存储供电开关管Q4的导通电平,使控制供电开关管Q3、存储供电开关管Q4维持导通,从而维持了控制供电MOS管Q1、存储供电MOS管Q3的导通,并从而维持了控制电路、存储插座电路、存储设备的供电。Step 4: Temporary power supply disconnection: After the control circuit, the storage socket circuit and the storage device are powered on, the indicator light starts to flash slowly, and the button is disconnected; The conduction level of the switch tube Q4 keeps the control power supply switch tube Q3 and the storage power supply switch tube Q4 turned on, thereby maintaining the conduction of the control power supply MOS tube Q1 and the storage power supply MOS tube Q3, and thus maintaining the control circuit, Storage socket circuits, power supply to storage devices.

由于单片机U1已经启动,持续不断的维持控制供电维持端P3.4、存储供电维持端P3.5的导通信号,使Q3、Q4维持导通,从而维持Q1、Q2导通,为控制供电电路和存储供电电路持续供电,临时供电已经没有意义,这时可以放开按压按键SW1,断开肖特基二极管D1对控制供电电路的供电,这时主机电源为控制电路和存储设备持续正常供电。Since the single-chip microcomputer U1 has been started, it continuously maintains the conduction signal of the control power supply maintenance terminal P3.4 and the storage power supply maintenance terminal P3.5, so that Q3 and Q4 are kept on, so as to maintain the conduction of Q1 and Q2, which is used to control the power supply circuit. Continuous power supply with the storage power supply circuit, temporary power supply is meaningless, then you can release the press button SW1, disconnect the Schottky diode D1 power supply to the control power supply circuit, then the host power supply continues to supply the control circuit and the storage device normally.

步骤5,主机系统维护:由于控制电路、接口电路、存储插座电路以及插在USB插口上的存储设备持续得电,主机的BIOS能够找到所述存储设备所存储的内置引导程序,从而启动对主机操作系统的恢复操作或备份操作。Step 5, host system maintenance: Since the control circuit, interface circuit, storage socket circuit and the storage device plugged into the USB socket are continuously powered on, the BIOS of the host can find the built-in boot program stored in the storage device, thereby starting the host computer. A restore or backup operation of the operating system.

主机系统维护包括两个操作:恢复操作系统和备份现有的操作系统。本实施例中所述的存储设备中存储的备份操作系统是指包含基本操作系统和常用应用软件以及相应设置的操作系统。一般情况下,所述的恢复操作系统是指重新安装操作系统并同时安装一些常用的应用软件,以及一些常规的系统设置,而不是单纯的安装操作系统。Host system maintenance consists of two operations: restoring the operating system and backing up the existing operating system. The backup operating system stored in the storage device described in this embodiment refers to an operating system that includes a basic operating system, common application software, and corresponding settings. Generally speaking, restoring the operating system refers to reinstalling the operating system and simultaneously installing some common application software and some conventional system settings, rather than simply installing the operating system.

步骤6:完成断开:主机操作系统的恢复操作或备份操作结束后,或者长按按键,使所述装置与主机断开;或者关闭主机并重新启动主机,按键维持断开状态,主机不能对控制电路供电,从而使所述装置失电而与主机断开;或者关闭主机,并将所述装置从主机上拔除,物理断开。Step 6: Complete disconnection: After the recovery operation or backup operation of the host operating system is completed, or long press the button to disconnect the device from the host; or turn off the host and restart the host, the button remains disconnected, and the host cannot connect to the host. The control circuit supplies power, thereby de-energizing the device and disconnecting it from the host; or shutting down the host and unplugging the device from the host to physically disconnect the device.

操作系统安装或备份之后,主机和一键恢复装置都在加电状态,为安全起见这时需要将主机和一键恢复装置断开。断开的方式有三种:长按按键的断开、重新启动主机的断开和物理断开。可以在单片机中设定一个长按程序,在装置加电情况下,长按按键即能够将装置的电源与主机的电源断开,使一键恢复装置断电,实现长按按键的断开。重新启动主机的断开是主机安装或备份后,直接关闭主机,主机断电后,主机电源无法维持控制电路的供电,单片机因失电而无法运行,控制供电维持端P3.4和存储供电维持端P3.5无信号,从而使存储供电MOS管Q3和存储供电开关管Q4关断,从而使控制供电MOS管Q1和存储供电MOS管Q2截止,一键恢复装置恢复初始关闭状态。主机一旦启动,只要不按压按键SW1,整个一键恢复装置就不会加电,自动的与主机断开联系,实现重新启动主机的断开。当主机关闭时可以直接从主机上拔除一键恢复装置,实现物理断开。After the operating system is installed or backed up, both the host and the one-key recovery device are powered on. For safety reasons, the host and the one-key recovery device need to be disconnected. There are three ways of disconnection: disconnection by long pressing the button, disconnection by restarting the host, and physical disconnection. A long-press program can be set in the single-chip microcomputer. When the device is powered on, long-pressing the button can disconnect the power supply of the device from the power supply of the host, so that the one-key recovery device is powered off and the long-pressing button is disconnected. The disconnection of restarting the host is to directly shut down the host after the host is installed or backed up. After the host is powered off, the host power supply cannot maintain the power supply of the control circuit, and the single-chip microcomputer cannot run due to power loss. The control power supply maintenance terminal P3.4 and the storage power supply maintain There is no signal at the terminal P3.5, so that the storage power supply MOS transistor Q3 and the storage power supply switch transistor Q4 are turned off, so that the control power supply MOS transistor Q1 and the storage power supply MOS transistor Q2 are turned off, and the one-key recovery device returns to the initial off state. Once the host is started, as long as the button SW1 is not pressed, the entire one-key recovery device will not be powered on, and will automatically disconnect from the host to realize the disconnection of the restarting host. When the host is turned off, the one-key recovery device can be directly removed from the host to achieve physical disconnection.

实施例九:Embodiment 9:

本实施例是实施例八的改进,是实施例八所述的长按按键的断开的细化。本实施例所述长按按键的断开包括:在按键维持按压期间,肖特基二极管将单片机的延时启动端P3.3对地导通,使控制电路延时计时开启,指示灯开始快速闪烁;延时到时后,控制电路向控制供电开关管Q3、存储供电开关管Q4发出关断电平,使控制供电开关管Q3、存储供电开关管Q4关断,从而导致存储供电MOS管Q2关断,存储插座电路以及插在USB插口上的存储设备失电,由于按键维持按压期间肖特基二极管持续导通控制供电MOS管Q1,因此控制供电MOS管Q1持续将总线输入端和电源高端导通,使主机电源维持对控制电路供电,指示灯继续快速闪烁;存储插座电路以及存储设备失电后,指示灯常亮一定时间后熄灭,按键断开;按键断开后,肖特基二极管关断控制供电MOS管Q1,从而关断控制电路的供电,整个所述装置处于断电状态。This embodiment is an improvement of the eighth embodiment, and is a refinement of the disconnection of the long-press button described in the eighth embodiment. The disconnection of the long-pressed button in this embodiment includes: during the period when the button is maintained and pressed, the Schottky diode conducts the delay start terminal P3.3 of the single-chip microcomputer to the ground, so that the control circuit is turned on after a delay time, and the indicator light starts quickly. Blinking; after the delay expires, the control circuit sends a turn-off level to the control power supply switch Q3 and the storage power supply switch Q4, so that the control power supply switch Q3 and the storage power supply switch Q4 are turned off, resulting in the storage power supply MOS tube Q2. When the power is turned off, the storage socket circuit and the storage device plugged into the USB socket lose power. Since the Schottky diode continues to conduct the control power supply MOS transistor Q1 during the period when the key is maintained and pressed, the control power supply MOS transistor Q1 continues to connect the bus input terminal and the high-end power supply. It is turned on, so that the host power supply maintains power supply to the control circuit, and the indicator light continues to flash rapidly; after the storage socket circuit and the storage device lose power, the indicator light is always on for a certain period of time and then goes out, and the button is disconnected; after the button is disconnected, the Schottky diode The control power supply MOS transistor Q1 is turned off, thereby turning off the power supply of the control circuit, and the whole device is in a power-off state.

本实施例是在主机和一键恢复装置连接在一起并同时加电的情况下,进行的。在单片机中同时设置一个延时开启程序和一个延时关闭程序,当一键恢复装置处于整体失电状态时,按动按键则启动延时开启程序,当一键恢复装置整体处于加电状态时,按动按键则启动延时关闭程序,在本实施例中这一启动和关闭均由单片机的延时启动端P3.3承担。This embodiment is carried out under the condition that the host computer and the one-key recovery device are connected together and powered on at the same time. A delay opening program and a delay closing program are set in the single-chip microcomputer at the same time. When the one-key recovery device is in an overall power-off state, pressing the button will start the delay opening program. When the one-key recovery device is in a power-on state as a whole , press the button to start the delay shutdown program, in this embodiment, the startup and shutdown are both undertaken by the delay startup terminal P3.3 of the single-chip microcomputer.

实施例十:Embodiment ten:

本实施例是实施例九的改进,是实施例九关于备份过程的细化。本实施例所述的操作系统备份过程启动时,内置引导程序引导数据备份恢复软件运行,数据备份恢复软件提示选择需要备份的硬盘数据,并自动将指定的硬盘数据备份到存储设备中,所述的存储设备中设有两个区域:用于存储引导程序和数据备份恢复软件的FAT32分区和用于存储备份数据的ext4分区。主机的备份文件以gzip压缩的方式存入存储设备,同时记录备份时间。This embodiment is an improvement of the ninth embodiment, and is a refinement of the backup process of the ninth embodiment. When the operating system backup process described in this embodiment starts, the built-in boot program guides the data backup and recovery software to run, the data backup and recovery software prompts to select the hard disk data to be backed up, and automatically backs up the specified hard disk data to the storage device. There are two areas in the storage device: FAT32 partition for storing bootloader and data backup and recovery software and ext4 partition for storing backup data. The backup files of the host are stored in the storage device in the form of gzip compression, and the backup time is recorded at the same time.

本实施例所述的存储设备内置独立引导程序和操作系统,不依赖于主机中安装的操作系统和软件。即使主机的操作系统和软件完全崩溃也不影响一键恢复程序的运行。The storage device described in this embodiment has a built-in independent boot program and an operating system, and does not depend on the operating system and software installed in the host. Even if the host's operating system and software completely crash, it will not affect the operation of the one-key recovery program.

USB存储设备存在两个分区,第一个分区为FAT32分区,用于存储引导程序和数据备份恢复软件的FAT32分区,第二个分区为ext4分区,用于存储计算机系统的备份数据。There are two partitions in the USB storage device. The first partition is a FAT32 partition, which is used to store the FAT32 partition of the boot program and data backup and recovery software, and the second partition is an ext4 partition, which is used to store the backup data of the computer system.

存储设备的存储区可以预先存放出厂设置的计算机系统硬盘备份文件。存储设备通过软件可以无需人为干预自动恢复主机硬盘或RAID组(独立磁盘冗余磁盘阵列)的数据,也可以人为通过鼠标、键盘选择或确认需要备份和恢复的硬盘或RAID组。The storage area of the storage device can store the factory-set computer system hard disk backup files in advance. The storage device can automatically restore the data of the host hard disk or RAID group (redundant disk array of independent disks) through software without human intervention, or manually select or confirm the hard disk or RAID group that needs to be backed up and restored through the mouse and keyboard.

进行数据备份或恢复时,可以在显示器上显示进度条、已用时间和预计剩余时间供操作人员参考。存储设备中的数据备份恢复软件可以用块设备完整镜像的方式进行计算机系统硬盘和数据硬盘备份和恢复,也可以用文件拷贝方式进行备份和恢复。主机的备份文件以gzip压缩的方式存入存储设备,同时记录备份时间。During data backup or restoration, a progress bar, elapsed time and estimated remaining time can be displayed on the display for the operator's reference. The data backup and recovery software in the storage device can backup and restore the computer system hard disk and data hard disk in the form of a complete image of the block device, and can also use the file copy method to back up and restore. The backup files of the host are stored in the storage device in the form of gzip compression, and the backup time is recorded at the same time.

可以通过软件设置屏蔽计算机系统中的大容量硬盘或大容量RAID组,针对大容量存储系统可避免将系统盘的备份文件误恢复到数据盘。The large-capacity hard disks or large-capacity RAID groups in the computer system can be shielded through software settings, and for large-capacity storage systems, the backup files of the system disk can be prevented from being restored to the data disk by mistake.

每一次的备份和恢复操作,在存储设备中均有日志记录,避免误操作带来的争议。Every backup and recovery operation is logged in the storage device to avoid disputes caused by misoperation.

最后应说明的是,以上仅用以说明本发明的技术方案而非限制,尽管参照较佳布置方案对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案(比如电路的整体布局、各种接口的应用、各种电路元件的接法、步骤的先后顺序等)进行修改或者等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above is only used to illustrate the technical solution of the present invention and not to limit it. Although the present invention has been described in detail with reference to the preferred arrangement solution, those of ordinary skill in the art should understand that the technical solution of the present invention (such as The overall layout of the circuit, the application of various interfaces, the connection of various circuit elements, the sequence of steps, etc.) can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A computer system software one-key recovery apparatus, comprising: the interface circuit can be connected with a host in a plugging manner, the interface circuit is connected with a storage socket circuit which can be connected with a storage device with built-in bootstrap program, data backup recovery software and backup data, the interface circuit and the storage socket circuit are connected with a control circuit and a storage power supply circuit, and the control circuit is connected with a control power supply circuit;
the control circuit is provided with a delay starting end, a control power supply maintaining end and a storage power supply maintaining end;
the control power supply circuit is internally provided with a key, the key is respectively connected with a grid electrode of a control power supply MOS tube and the delay starting end through a Schottky diode, a source electrode and a drain electrode of the control power supply MOS tube are respectively connected with a bus input end and a power supply high end, the control power supply circuit is also provided with a control power supply switching tube, a base electrode of the control power supply switching tube is connected with the control power supply maintaining end, and a collector electrode of the control power supply switching tube is connected with the grid electrode of the control power supply MOS tube;
the storage power supply circuit is provided with a storage power supply MOS tube and a storage power supply switch tube, the source electrode and the drain electrode of the storage power supply MOS tube are respectively connected with the bus input end and the bus output end, the grid electrode of the storage power supply MOS tube is connected with the collector electrode of the storage power supply switch tube, and the base electrode of the storage power supply switch tube is connected with the storage power supply maintaining end.
2. The computer system software one-key recovery device of claim 1, wherein the control circuit is further provided with an indicator light for showing the operation status.
3. The computer system software one-key recovery device of claim 2, wherein the interface circuit is one of USB, PCI, and PCI-E, and when the interface circuit is a USB interface circuit, the interface circuit is a USB plug circuit; the storage socket circuit is a USB socket circuit.
4. The computer system software one-key recovery device of claim 3, wherein the USB plug circuit and the USB socket circuit are USB2.0, USB3.0 or USB 3.1; the storage device is a USB interface device, including: one of a U disk, a mobile hard disk and a USB card reader.
5. The computer system software one-touch recovery device of claim 4, wherein the control circuit is further connected to a 5PIN PIN.
6. The computer system software key recovery device of claim 5, wherein the computer system software key recovery device is in the shape of a board.
7. The computer system software key recovery device of claim 5, wherein the computer system software key recovery device is shaped as a box.
8. A computer system software one-key recovery method based on the device of claim 6 or 7, comprising: the method comprises the steps of a normal working process of a host, a host operating system recovery process and a host operating system backup process;
the normal working process of the host machine: when the host computer works normally, if the device is plugged in the host computer, the following steps are carried out: the key is in a disconnected state, the delay starting end, the control power supply maintaining end and the storage power supply maintaining end have no signal, the control power supply MOS tube and the storage power supply MOS tube are in a disconnected state, the control circuit is not powered on, and therefore the storage power supply circuit and the storage socket circuit are not powered on; the whole device is in a power-off state;
the process of recovering the host operating system or the backup process of the host operating system comprises the following steps:
step 1, key triggering: whether the host is powered on or not is firstly confirmed whether the device is plugged in the host or not, the host is started or restarted after confirmation, and once the host is powered on, the key is immediately pressed and kept pressed;
step 2, temporary power supply: during the period that the key is kept pressed, the Schottky diode is respectively conducted to control the power supply MOS tube and the trigger control circuit; the power supply MOS tube is controlled to conduct the bus input end and the power supply high end, so that the host power supply supplies power to the control circuit, the control circuit is started in a delayed timing mode, and the indicator lamp begins to flash rapidly;
and 3, normally supplying power and starting: after the time delay is over, the control circuit sends out a conduction level to the control power supply switch tube and the storage power supply switch tube to enable the control power supply switch tube and the storage power supply switch tube to be conducted, so that the control power supply MOS tube and the storage power supply MOS tube are conducted, power is supplied to the control circuit, the storage socket circuit and the storage equipment inserted into the USB socket, and the indicator lamp continues to flash rapidly;
step 4, temporarily supplying power and disconnecting: after the control circuit, the storage socket circuit and the storage equipment are powered on, the indicator lamp starts to flicker slowly, and the key is turned off; after the key is switched off, the control circuit maintains the conduction levels of the control power supply switching tube and the storage power supply switching tube, so that the control power supply switching tube and the storage power supply switching tube maintain conduction, the conduction of the control power supply MOS tube and the storage power supply MOS tube is maintained, and the power supply of the control circuit, the storage socket circuit and the storage device is maintained;
step 5, maintaining the host system: because the control circuit, the interface circuit, the storage socket circuit and the storage equipment plugged in the USB socket are continuously powered on, the BIOS of the host can find the built-in bootstrap program stored in the storage equipment, thereby starting the recovery operation or the backup operation of the host operating system;
step 6: and (3) completing disconnection: after the recovery operation or the backup operation of the host operating system is finished, or a key is pressed for a long time, the device is disconnected with the host; or the host is closed and restarted, the key maintains the off state, and the host can not supply power to the control circuit, so that the device is disconnected from the host due to power failure; or the host computer is closed, the device is pulled out of the host computer, and the device is physically disconnected.
9. The computer system software one-key recovery method of claim 8, wherein the disconnection of the long key comprises: during the period that the key is kept pressed, the control circuit is started in a time-delay timing mode, and the indicator light begins to flash rapidly; after the time delay comes, the control circuit sends out a turn-off level to the control power supply switching tube and the storage power supply switching tube to turn off the control power supply switching tube and the storage power supply switching tube, so that the storage power supply MOS tube is turned off, the storage socket circuit and the storage device inserted into the USB socket are powered off, and the Schottky diode is continuously conducted to control the power supply MOS tube during the period of keeping the press of the key, so that the control power supply MOS tube continuously conducts the bus input end and the high end of the power supply, the host power supply is kept supplying power to the control circuit, and the indicator lamp continuously and rapidly flashes; after the storage socket circuit and the storage equipment are powered off, the indicator lamp is turned off after being turned on for a certain time, and the key is turned off; after the key is switched off, the Schottky diode switches off the power supply MOS tube, so that the power supply of the control circuit is switched off, and the whole device is in a power-off state.
10. The computer system software one-key recovery method of claim 8, wherein when the host operating system backup process is started, the built-in boot program guides the data backup recovery software to run, the data backup recovery software prompts to select the hard disk data to be backed up and automatically backs up the designated hard disk data to the storage device, and the storage device is provided with two areas: a FAT32 partition for storing boot programs and data backup recovery software and an ext4 partition for storing backup data; the backup files of the host computer are stored in the storage device in a gzip compression mode, and the backup time is recorded at the same time.
CN202210619226.4A 2022-06-02 2022-06-02 A computer system software one-key recovery device and method Active CN114816553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210619226.4A CN114816553B (en) 2022-06-02 2022-06-02 A computer system software one-key recovery device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210619226.4A CN114816553B (en) 2022-06-02 2022-06-02 A computer system software one-key recovery device and method

Publications (2)

Publication Number Publication Date
CN114816553A true CN114816553A (en) 2022-07-29
CN114816553B CN114816553B (en) 2025-07-04

Family

ID=82519127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210619226.4A Active CN114816553B (en) 2022-06-02 2022-06-02 A computer system software one-key recovery device and method

Country Status (1)

Country Link
CN (1) CN114816553B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142085A (en) * 1995-03-28 1997-02-05 三星电子株式会社 Computer system and its control method
US20110093741A1 (en) * 2009-10-15 2011-04-21 Te-Yu Liang Method for recovering bios and computer system thereof
CN104301787A (en) * 2014-09-09 2015-01-21 来安县新元机电设备设计有限公司 System recovery control circuit and mobile terminal
CN114138553A (en) * 2021-11-16 2022-03-04 苏州浪潮智能科技有限公司 Data protection recovery system, method and device for server system disk
CN217404856U (en) * 2022-06-02 2022-09-09 北京精一强远科技有限公司 One-key recovery device for computer system software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142085A (en) * 1995-03-28 1997-02-05 三星电子株式会社 Computer system and its control method
US20110093741A1 (en) * 2009-10-15 2011-04-21 Te-Yu Liang Method for recovering bios and computer system thereof
CN104301787A (en) * 2014-09-09 2015-01-21 来安县新元机电设备设计有限公司 System recovery control circuit and mobile terminal
CN114138553A (en) * 2021-11-16 2022-03-04 苏州浪潮智能科技有限公司 Data protection recovery system, method and device for server system disk
CN217404856U (en) * 2022-06-02 2022-09-09 北京精一强远科技有限公司 One-key recovery device for computer system software

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张一璋: ""基于Android-x86的windows恢复系统研究与设计"", 《软件导刊》, vol. 15, no. 9, 30 September 2016 (2016-09-30), pages 65 - 68 *

Also Published As

Publication number Publication date
CN114816553B (en) 2025-07-04

Similar Documents

Publication Publication Date Title
US7069472B2 (en) Method for restoring CMOS in a jumperless system
US6253319B1 (en) Method and apparatus for restoring a computer to a clear CMOS configuration
TWI633487B (en) Method and computer system for automatically recovering the bios image file
CN102880527B (en) Data recovery method of baseboard management controller
TWI467375B (en) Computer system with crashed bios data recovering function and recovering method thereof
JPH0997126A (en) Expansion unit and computer connectable to this expansion unit
US20080155216A1 (en) Protection and Recovery System for Automatic Disk Recovery
CN217404856U (en) One-key recovery device for computer system software
TW200937288A (en) Update method of basic input output system and update module thereof and computer system
CN103942059B (en) Electronic device with multiple starting modes
TW563032B (en) Data processing device and method for recovering a program
CN104598153A (en) Method for controlling server and server
CN116701074A (en) A server cycle restart test device and method
CN114816553B (en) A computer system software one-key recovery device and method
CN101303655B (en) Basic input output system management device and method
US7506198B2 (en) Protection and recovery system and automatic hard disk drive (HDD) instant recovery
CN106992662A (en) Power control method and circuit and electronic equipment
CN102096608B (en) Mobile terminal equipment
CN112115000B (en) Remote resetting method and system of system component power supply and BMC remote device
CN111414067B (en) Computer starting method
CN115098342A (en) System log collection method, system, terminal and storage medium
CN221686924U (en) A flash drive circuit and a mobile terminal
CN100538715C (en) Method and device for implementing module configuration of electronic equipment
CN114817009A (en) Method and device for debugging BMC without unpacking
CN111966536A (en) A data recovery system and data recovery method for measuring instruments

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
GR01 Patent grant
GR01 Patent grant