CN101872233B - Automatic switch machine scheduling control method and system - Google Patents
Automatic switch machine scheduling control method and system Download PDFInfo
- Publication number
- CN101872233B CN101872233B CN2009101310911A CN200910131091A CN101872233B CN 101872233 B CN101872233 B CN 101872233B CN 2009101310911 A CN2009101310911 A CN 2009101310911A CN 200910131091 A CN200910131091 A CN 200910131091A CN 101872233 B CN101872233 B CN 101872233B
- Authority
- CN
- China
- Prior art keywords
- time
- automatic
- control method
- power
- electronic installation
- 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.)
- Active
Links
Images
Landscapes
- Stored Programmes (AREA)
- Power Sources (AREA)
Abstract
Description
技术领域 technical field
本发明有关一种系统及其控制方法,特别是有关一种具有自动开关机排程的系统及其自动开关机排程控制方法。The present invention relates to a system and its control method, in particular to a system with automatic on-off schedule and its automatic on-off schedule control method.
背景技术 Background technique
目前的电子装置中,一般都整合有许多与个人计算机相同的组件,例如主机板(Mother Board)、随机内存(Random Access Memory;RAM)、基本输出入系统(Basic Input Output System;BIOS)甚至网络卡等。In current electronic devices, many of the same components as personal computers are generally integrated, such as motherboard (Mother Board), random access memory (Random Access Memory; RAM), basic input output system (Basic Input Output System; BIOS) and even network card etc.
由于许多时候使用者因为必须离开等原因,无法在某一时间点对电子装置执行开机的动作,来让电子装置执行开机程序。但若使用者先行对电子装置执行开机动作时,又可能造成电子装置闲置运作而消耗电力等问题。同样的,在许多时候使用者因为必须离开等原因,但是电子装置上又正在运行某种程序而无法立即关机,因此只能让电子装置持续开机。Because many times, the user cannot perform the action of starting the electronic device at a certain point of time due to reasons such as having to leave, so as to allow the electronic device to execute the booting procedure. However, if the user executes the power-on action on the electronic device first, it may cause problems such as idle operation of the electronic device and power consumption. Similarly, in many cases, the user has to leave and other reasons, but some program is running on the electronic device and cannot be shut down immediately, so the electronic device can only be turned on continuously.
为了避免使用者无法在当下执行开机动作或关机动作,电子装置的基本输入输出系统(Basic I/O System,BIOS)提供唤醒机制以让使用者可以设定何时让电子装置执行开机程序。当前的唤醒机制有多种,例如调制解调器开机(ResumeOn Ring)、网络唤醒(Wake On LAN)及调制解调器唤醒(Wakeup On Ring)等。电子装置内运行的许多软件能提供预约关机时间等,让使用者可以设定何时让电子装置执行关机程序。In order to prevent the user from being unable to perform the boot-up or shutdown action at the moment, the Basic I/O System (BIOS) of the electronic device provides a wake-up mechanism so that the user can set when the electronic device executes the boot-up procedure. There are various wake-up mechanisms, such as Resume On Ring, Wake On LAN, and Wakeup On Ring. Many software running in the electronic device can provide scheduled shutdown time, etc., so that the user can set when to let the electronic device execute the shutdown procedure.
但电子装置的基本输入输出系统仅提供一次唤醒机制设定,并无法提供多次不同时间的唤醒机制设定。而电子装置内的运行软件亦只能提供当次的预约关机设定,而无法提供多次不同时间的预约关机设定。无论是电子装置的基本输入输出系统或是电子装置内的运行程序皆无法提供电子装置多次的系统自动开关机的排程控制。However, the basic input and output system of the electronic device only provides one wake-up mechanism setting, and cannot provide multiple wake-up mechanism settings at different times. And the running software in the electronic device can only provide the scheduled shutdown setting of the current time, but cannot provide the scheduled shutdown settings of multiple different times. Neither the basic input and output system of the electronic device nor the operating program in the electronic device can provide the scheduling control of the automatic power on and off of the electronic device multiple times.
发明内容 Contents of the invention
本发明提供一种具有自动开关机排程的系统及其自动开关机排程控制方法,可以避免电子装置仅能藉由应用程序来完成一次的自动关机或藉由基本输入输出系统(Basic I/O System,BIOS)来完成一次的自动开机,而无法达到多次的系统自动开关机的排程控制。The present invention provides a system with automatic power on and off scheduling and its automatic power on and off scheduling control method, which can avoid the automatic power off of the electronic device only once through the application program or through the basic input and output system (Basic I/O) O System, BIOS) to complete one automatic power-on, but cannot achieve the scheduling control of multiple system automatic power-on and power-off.
根据本发明的系统的自动开关机排程控制方法应用于一电子装置。系统的自动开关机排程控制方法包含:首先,开启电子装置的系统电源,以执行电子装置的开机程序(步骤一);接着,搜寻自动开关机的设定数据(步骤二);然后,当读取到有自动开关机的设定数据后,启动一周期性中断(Periodic Interrupt)(步骤三);接着,完成电子装置的开机程序(步骤四);然后,读取自动开关机的设定数据中的关机时间(步骤五);利用周期性中断检查电子装置的系统时间,并比对系统时间与读取到的关机时间(步骤六);其中,当系统时间符合关机时间时,设定下一次开机时间(步骤七);接着,侦测高级配置与电源接口管理设备(Advanced Configuration and Power Interface,ACPI)的操作系统(步骤八);以及当高级配置与电源接口管理设备的操作系统于执行状态时,由高级配置与电源接口管理设备的操作系统执行电子装置的关机程序(步骤九)。The automatic power on/off scheduling control method of the system according to the present invention is applied to an electronic device. The automatic power-on/off schedule control method of the system includes: firstly, turning on the system power of the electronic device to execute the boot-up procedure of the electronic device (step 1); then, searching for the setting data of the automatic power-on/off (step 2); and then, when After reading the setting data with automatic power on and off, start a periodic interrupt (Periodic Interrupt) (step three); then, complete the booting procedure of the electronic device (step four); then, read the setting of automatic power on and off Shutdown time in the data (step 5); use periodic interruption to check the system time of the electronic device, and compare the system time with the read shutdown time (step 6); wherein, when the system time matches the shutdown time, set Next boot time (step seven); then, detect the operating system of the advanced configuration and power interface management device (Advanced Configuration and Power Interface, ACPI) (step eight); and when the operating system of the advanced configuration and power interface management device is in In the execution state, the operating system of the advanced configuration and power interface management device executes the shutdown procedure of the electronic device (step 9).
其中,每一组开关机时间的设定数据储存在设定储存装置中,如:互补式金属-氧化层-半导体、非挥发性内存(Non-Volatile Random Access Memory,NVRAM)、闪存(Flash disk)或硬盘(Hard Disk,HD)等。Among them, the setting data of each group of switching time is stored in the setting storage device, such as: complementary metal-oxide layer-semiconductor, non-volatile memory (Non-Volatile Random Access Memory, NVRAM), flash memory (Flash disk ) or hard disk (Hard Disk, HD), etc.
其中,步骤五由设定储存装置读取目前的系统时间。Wherein, in step five, the current system time is read from the setting storage device.
其中步骤七中设定下一次开机时间,主要是在设定储存装置中设定系统下一次的开机时间,其步骤包括:清除警示标签(Alarm Flag);设定唤醒时间(wakeup time);启用警示中断(alarm interrupt);清除输入/输出缓冲器的纪录;以及启用警示唤醒事件。Among them, the setting of the next boot time in step 7 is mainly to set the next boot time of the system in the setting storage device, and the steps include: clearing the warning label (Alarm Flag); setting the wakeup time (wakeup time); enabling Alarm interrupt (alarm interrupt); clear I/O buffer records; and enable alarm wakeup events.
其中,步骤八会先行搜寻一高级配置与电源接口管理设备旗标,当高级配置与电源接口管理设备旗标为启动时,判定高级配置与电源接口管理设备的操作系统处于执行状态。Wherein, step eight first searches for an advanced configuration and power interface management device flag, and when the advanced configuration and power interface management device flag is activated, it is determined that the operating system of the advanced configuration and power interface management device is in the execution state.
步骤九为当高级配置与电源接口管理设备的操作系统处于未执行状态时,则返回并执行步骤五。步骤九也可为当高级配置与电源接口管理设备的操作系统不存在时,则由沿用已久(Legacy)的操作系统执行电子装置的关机程序。亦即,可由使用者或处理模块对高级配置与电源接口管理设备端口写入一软关机指令(soft off command)以执行电子装置的关机程序。Step nine is to return to and execute step five when the operating system of the advanced configuration and power interface management device is not in execution state. In step 9, when the operating system of the advanced configuration and power interface management device does not exist, the shutdown procedure of the electronic device is executed by a legacy operating system. That is, the user or the processing module can write a soft off command to the port of the advanced configuration and power interface management device to execute the shutdown procedure of the electronic device.
根据本发明的系统的自动开关机排程控制方法更包括:检查电子装置的系统时间并比对系统时间与该自动开关机的设定数据中的下一次开机时间(步骤十);以及当系统时间符合下一次开机时间,返回并执行步骤一(步骤十一)。According to the automatic power-on/off schedule control method of the system of the present invention, it further includes: checking the system time of the electronic device and comparing the system time with the next power-on time in the setting data of the automatic power-on/off machine (step ten); and when the system If the time matches the next power-on time, go back and execute step 1 (step 11).
根据本发明所揭露的具有自动开关机排程的系统可应用于运行有操作系统的电子装置。本发明的具有自动开关机排程的系统包含有:基板、储存单元、连接单元与外接装置。The system with automatic power-on and power-off scheduling disclosed in the present invention can be applied to electronic devices running an operating system. The system with automatic power on and off scheduling of the present invention includes: a substrate, a storage unit, a connection unit and an external device.
基板位于电子装置内,且储存单元连接于基板上。The substrate is located in the electronic device, and the storage unit is connected to the substrate.
连接单元位于基板上且电性连接储存单元。The connection unit is located on the substrate and is electrically connected to the storage unit.
外接装置电性连接连接单元,用以改变基本输入输出系统的设定以运行系统的自动开关机排程控制方法。The external device is electrically connected to the connecting unit, and is used to change the setting of the basic input and output system to operate the automatic power-on and power-off scheduling control method of the system.
其中,具有自动开关机排程的系统藉由外接装置连接于连接单元来改变储存单元中基本输入输出系统的设定,以运行上述系统的自动开关机排程控制方法。Wherein, the system with automatic power on and off schedule changes the setting of the basic input and output system in the storage unit by connecting the external device to the connection unit, so as to run the automatic power on and off schedule control method of the above system.
于此,本发明的具有自动开关机排程的系统及其自动开关机排程控制方法藉由固件程序达成多次的系统自动开关机的排程控制,且可以根据使用者的设定,自动判断开机或关机时间,并在到达设定的时间时,执行开机或关机动作,无须使用者操作开关按键,即能自行开启或关闭。Here, the system with automatic on/off scheduling and its automatic on/off scheduling control method of the present invention achieve multiple times of system automatic on/off scheduling control through the firmware program, and can automatically Judging the power-on or power-off time, and when the set time is reached, the power-on or power-off action is executed, and it can be turned on or off automatically without the user operating the switch button.
有关本发明的特征与具体实施方式,配合附图作详细说明如下。The features and specific implementations of the present invention will be described in detail as follows in conjunction with the accompanying drawings.
附图说明 Description of drawings
图1为根据本发明的系统的自动开关机排程控制方法的第一部分流程图;Fig. 1 is the flow chart of the first part of the automatic switching on and off scheduling control method of the system according to the present invention;
图2为根据本发明的系统的自动开关机排程控制方法的第二部分流程图;Fig. 2 is the flow chart of the second part of the automatic switching on and off scheduling control method of the system according to the present invention;
图3为根据本发明的系统的自动开关机排程控制方法的第三部分流程图;以及Fig. 3 is the flow chart of the third part of the automatic power on/off schedule control method of the system according to the present invention; and
图4为根据本发明的具有自动开关机排程的系统示意图。FIG. 4 is a schematic diagram of a system with automatic power-on/off scheduling according to the present invention.
具体实施方式 Detailed ways
根据本发明的系统的自动开关机排程控制方法的流程可依序分为三个部份:第一部分、第二部分与第三部分。其中,第一部分为系统的自动开关机排程控制方法的开机过程;第二部分由系统的自动开关机排程控制方法的开机后的过程至关机过程;第三部分由系统的自动开关机排程控制方法的关机后的过程至下次开机的过程。The flow of the automatic power on/off scheduling control method of the system according to the present invention can be divided into three parts in sequence: the first part, the second part and the third part. Among them, the first part is the start-up process of the automatic power-on and power-off scheduling control method of the system; the second part is from the process after power-on to the power-off process of the automatic power-on and power-off scheduling control method of the system; the third part is the automatic power-on and power-off scheduling control method of the system The process after shutting down of the program control method to the process of starting up next time.
图1为根据本发明的系统的自动开关机排程控制方法的第一部分流程图。图2为根据本发明的系统的自动开关机排程控制方法的第二部分流程图。图3为根据本发明的系统的自动开关机排程控制方法的第三部分流程图。FIG. 1 is a flow chart of the first part of the automatic power on/off schedule control method of the system according to the present invention. FIG. 2 is a flow chart of the second part of the automatic power on/off schedule control method of the system according to the present invention. FIG. 3 is a flow chart of the third part of the automatic power on/off schedule control method of the system according to the present invention.
请参照图1、图2与图3,根据本发明的系统的自动开关机排程控制方法应用于一电子装置。系统的自动开关机排程控制方法包含:首先,开启电子装置的系统电源,以执行电子装置的开机程序(步骤一);接着,搜寻自动开关机的设定数据(步骤二);然后,当读取到有自动开关机的设定数据后,启动一周期性中断(Periodic Interrupt)(步骤三);接着,完成电子装置的开机程序(步骤四);然后,读取自动开关机的设定数据中的关机时间(步骤五);利用周期性中断检查电子装置的系统时间,并比对系统时间与读取到的关机时间(步骤六);其中,当系统时间符合关机时间时,设定下一次开机时间(步骤七);接着,侦测高级配置与电源接口管理设备(Advanced Configuration and Power Interface,ACPI)的操作系统(步骤八);以及当高级配置与电源接口管理设备的操作系统处于执行状态时,由高级配置与电源接口管理设备的操作系统执行电子装置的关机程序(步骤九)。Please refer to FIG. 1 , FIG. 2 and FIG. 3 , the automatic power on/off scheduling control method of the system according to the present invention is applied to an electronic device. The automatic power-on/off schedule control method of the system includes: firstly, turning on the system power of the electronic device to execute the boot-up procedure of the electronic device (step 1); then, searching for the setting data of the automatic power-on/off (step 2); and then, when After reading the setting data with automatic power on and off, start a periodic interrupt (Periodic Interrupt) (step three); then, complete the booting procedure of the electronic device (step four); then, read the setting of automatic power on and off Shutdown time in the data (step 5); use periodic interruption to check the system time of the electronic device, and compare the system time with the read shutdown time (step 6); wherein, when the system time matches the shutdown time, set The next boot time (step seven); then, detect the operating system of the advanced configuration and power interface management device (Advanced Configuration and Power Interface, ACPI) (step eight); and when the operating system of the advanced configuration and power interface management device is in In the execution state, the operating system of the advanced configuration and power interface management device executes the shutdown procedure of the electronic device (step 9).
根据本发明的系统的自动开关机排程控制方法中,步骤一先行启动电子装置的系统电源,以执行电子装置的开机程序,亦即运行基本输入输出系统(BasicI/O System,BIOS)。According to the automatic power on/off schedule control method of the system of the present invention, in step 1, the system power supply of the electronic device is first activated to execute the booting procedure of the electronic device, that is, to run the Basic I/O System (BIOS).
其中,启动电子装置的方法可透过开启电源致动件(例如:电源开关、开机键等的硬件装置),又或是其它方式来达成启动电子装置。Wherein, the method for activating the electronic device can be achieved by turning on the power actuator (such as hardware devices such as a power switch and a power button), or by other means.
由于基本输入输出系统是用以管理电子装置中硬件的固件,因此开机后BIOS最先被启动,然后它会对计算机的设备进行完全彻底的检验和测试。接着,步骤二则是搜寻自动开关机的设定数据,亦即由电子装置的处理模块搜寻自动开关机的每一组开关机时间的设定数据。其中每一组开关机时间的设定数据可储存于设定储存装置中。设定储存装置可为互补式金属-氧化层-半导体(Complementary Metal-Oxide-Semiconductor,CMOS)、非挥发性内存(Non-Volatile Random Access Memory,NVRAM)、闪存(Flash disk)或硬盘(HardDisk,HD)等。Since the basic input output system is the firmware used to manage the hardware in the electronic device, the BIOS is first activated after booting, and then it will perform a complete and thorough inspection and test on the equipment of the computer. Then, the second step is to search the setting data of the automatic switch, that is, the processing module of the electronic device searches for the setting data of each group of switch time of the automatic switch. The setting data of each group of switching time can be stored in the setting storage device. The setting storage device can be complementary metal-oxide layer-semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS), non-volatile memory (Non-Volatile Random Access Memory, NVRAM), flash memory (Flash disk) or hard disk (HardDisk, HD) etc.
步骤三为当读取到有自动开关机的设定数据后,启动一周期性中断的功能。其中,周期性中断依据硬件与芯片组不同,可以选择利用芯片组中的系统管理中断(System Management Interrupt,SMI)、电源管理定时器(Power ManagementTimer,PM timer)或串行中断请求(Serial Interrupt Request,Serial IRQ)等功能来产生周期性的系统中断。藉由芯片组中的系统管理中断或电源管理定时器等功能所产生的周期性的系统中断来检查系统时间并比对使用者所设定的自动开关机时间。Step 3 is to start a periodic interrupt function after reading the setting data with automatic power on and off. Among them, the periodic interrupt depends on the difference between the hardware and the chipset, and you can choose to use the system management interrupt (System Management Interrupt, SMI), power management timer (Power Management Timer, PM timer) or serial interrupt request (Serial Interrupt Request) in the chipset. , Serial IRQ) and other functions to generate periodic system interrupts. The periodic system interrupts generated by the system management interrupt or power management timer in the chipset are used to check the system time and compare it with the automatic shutdown time set by the user.
接着,步骤四侦测电子装置连接的所有硬件与系统设定以完成开机程序。Then, step 4 detects all hardware and system settings connected to the electronic device to complete the boot process.
其中,在步骤二中若处理模块搜寻不到自动开关机的设定数据时,则继续原本的开机程序(例如:侦测电子装置连接的所有硬件与系统设定)以完成开机程序(步骤四),亦即在步骤二中若搜寻不到自动开关机的设定数据时,则直接进行步骤四。Wherein, in step 2, if the processing module cannot search for the setting data of automatic power-on and off, then continue the original boot-up procedure (for example: detect all hardware and system settings connected to the electronic device) to complete the boot-up procedure (step 4 ), that is, if the setting data of automatic power-on/off cannot be searched in step 2, then proceed to step 4 directly.
步骤一至步骤四可为本发明的系统的自动开关机排程控制方法的开机过程,亦即系统的自动开关机排程控制方法流程的第一部分。Steps 1 to 4 can be the start-up process of the system's automatic on-off schedule control method of the present invention, that is, the first part of the flow of the system's automatic on-off schedule control method.
接着,步骤五由处理模块读取储存于设定储存装置中的自动开关机的设定数据中的关机时间。Next, in step five, the processing module reads the power-off time stored in the setting data of automatic power-off in the setting storage device.
然后,步骤六由处理模块藉由芯片组的周期性的系统中断功能来不断检查电子装置的系统时间,并与处理模块由设定储存装置中所读取到的关机时间(使用者所设定的自动关机时间)进行比对,以确认系统时间与读取到的关机时间是否相符合。Then, in step 6, the processing module constantly checks the system time of the electronic device through the periodic system interrupt function of the chipset, and the shutdown time (set by the user) read from the setting storage device with the processing module Automatic shutdown time) to confirm whether the system time is consistent with the read shutdown time.
当步骤六中的系统时间与读取到的关机时间不相符时,则回到步骤五,由处理模块重新读取储存于设定储存装置中的自动开关机的设定数据中的关机时间后,再次进行步骤六以确认系统时间与读取到的关机时间是否相符合。When the system time in step 6 does not match the read shutdown time, then return to step 5, after the processing module re-reads the shutdown time stored in the setting data of the automatic power-off machine in the setting storage device , go to step 6 again to confirm whether the system time is consistent with the shutdown time read.
其中,处理模块藉由芯片组的周期性的系统中断功能来检查系统时间的步骤由处理模块透过设定储存装置来读取到目前的系统时间。Wherein, in the step of checking the system time by the processing module through the periodic system interrupt function of the chipset, the processing module reads the current system time by setting the storage device.
当步骤六中的系统时间与读取到的关机时间相符时,则进行步骤七来设定下一次开机时间。When the system time in step 6 matches the read shutdown time, proceed to step 7 to set the next startup time.
其中,设定下一次开机时间的步骤是在设定储存装置中设定好下一次开机时间。在设定储存装置中设定好下一次开机时间的步骤主要是先行清除警示标签(Alarm Flag),然后接着设定唤醒时间(RTC wakeup time),接着启用警示中断(alarm interrupt),然后清除输入/输出缓冲器的纪录,最后启用警示唤醒事件。Wherein, the step of setting the next boot time is to set the next boot time in the setting storage device. The steps to set the next boot time in the setting storage device are mainly to first clear the alarm flag (Alarm Flag), then set the wake-up time (RTC wakeup time), then enable the alarm interrupt (alarm interrupt), and then clear the input /Output buffer record, last enable alert wakeup event.
其中,步骤五至步骤七可为本发明的系统的自动开关机排程控制方法中由系统的自动开关机排程控制方法的开机过程至关机前的过程,亦即系统的自动开关机排程控制方法流程的第二部分。Wherein, step 5 to step 7 can be the process from the start-up process of the system's automatic on-off schedule control method to the process before shutdown in the system's automatic on-off schedule control method of the present invention, that is, the system's automatic on-off schedule The second part of the control method flow.
然后,步骤八由处理模块侦测是否有高级配置与电源接口管理设备(Advanced Configuration and Power Interface,ACPI)的操作系统的存在,亦即由处理模块搜寻高级配置与电源接口管理设备旗标(ACPI enabled flag)。其中,当高级配置与电源接口管理设备旗标为启动时,判定高级配置与电源接口管理设备的操作系统处于执行状态。Then, in step eight, the processing module detects whether there is an operating system of Advanced Configuration and Power Interface (ACPI), that is, the processing module searches for the flag of Advanced Configuration and Power Interface (ACPI) enabled flag). Wherein, when the flag of the advanced configuration and power interface management device is activated, it is determined that the operating system of the advanced configuration and power interface management device is in the execution state.
换句话说,当系统进入高级配置与电源接口管理设备(AdvancedConfiguration and Power Interface,ACPI)的操作系统时,会将高级配置与电源接口管理设备启动的数值填入系统管理中断命令端口(SMI command port),当系统管理中断命令端口(SMI command port)被填写高级配置与电源接口管理设备启动时,会纪录一个旗标储存于储存单元内,以供处理模块来判断目前是不是存在有高级配置与电源接口管理设备的操作系统。In other words, when the system enters the Advanced Configuration and Power Interface (ACPI) operating system, it will fill the value of the advanced configuration and power interface management device into the system management interrupt command port (SMI command port) ), when the system management interrupt command port (SMI command port) is filled with advanced configuration and power interface management equipment to start, a flag will be recorded and stored in the storage unit for the processing module to determine whether there is currently an advanced configuration and power interface management device The power interface manages the operating system of the device.
而当高级配置与电源接口管理设备的操作系统存在且处于未执行状态时,则返回并执行步骤五。However, when the operating system of the advanced configuration and power interface management device exists and is in an unexecuted state, return to and perform step five.
于是,步骤九可为当高级配置与电源接口管理设备的操作系统存在且处于执行状态时,由高级配置与电源接口管理设备的操作系统执行电子装置的关机程序。Therefore, in step 9, when the operating system of the advanced configuration and power interface management device exists and is in the execution state, the operating system of the advanced configuration and power interface management device executes the shutdown procedure of the electronic device.
步骤九也可为当高级配置与电源接口管理设备的操作系统不存在时,则由传统的操作系统执行电子装置的关机程序。亦即,可由使用者或处理模块对高级配置与电源接口管理设备端口写入一软关机指令(soft off command)以执行电子装置的关机程序。In step 9, when the operating system of the advanced configuration and power interface management device does not exist, the traditional operating system executes the shutdown procedure of the electronic device. That is, the user or the processing module can write a soft off command to the port of the advanced configuration and power interface management device to execute the shutdown procedure of the electronic device.
根据本发明的系统的自动开关机排程控制方法更包括:检查电子装置的系统时间并比对系统时间与在自动开关机的设定数据中的下一次开机时间(步骤十);以及当系统时间符合下一次开机时间,返回并执行步骤一(步骤十一)。According to the automatic power on/off scheduling control method of the system of the present invention, it further includes: checking the system time of the electronic device and comparing the system time with the next power-on time in the setting data of the automatic power on/off (step ten); and when the system If the time matches the next power-on time, go back and execute step 1 (step 11).
当电子装置执行关机程序后,仍需一待命的电源以提供内部处理模块、芯片组或设定储存装置的运行。此时电子装置内部的时钟芯片(Real Time Clock,RTC)会在计算机关机后,借由充电电池或干电池等电源,时钟仍会继续工作以维持正确的系统时间。因此步骤十为由芯片组的周期性的系统中断功能不断检查电子装置的系统时间并比对系统时间与在自动开关机的设定数据中的下一次开机时间。After the electronic device executes the shutdown procedure, it still needs a standby power supply to provide the operation of the internal processing module, chipset or configuration storage device. At this time, the clock chip (Real Time Clock, RTC) inside the electronic device will continue to work to maintain the correct system time with the help of rechargeable batteries or dry batteries and other power sources after the computer is turned off. Therefore, step ten is to continuously check the system time of the electronic device by the periodic system interrupt function of the chipset and compare the system time with the next power-on time in the setting data of the automatic power-on/off machine.
最后,步骤十一为当芯片组的周期性的系统中断功能检查到系统时间符合下一次开机时间,则启动电子装置的系统电源,以执行电子装置的开机程序,亦即返回并执行步骤一。Finally, in step eleven, when the periodic system interrupt function of the chipset checks that the system time matches the next boot time, start the system power of the electronic device to execute the boot procedure of the electronic device, that is, go back and execute step one.
其中,步骤十至步骤十一可为本发明的系统的自动开关机排程控制方法中由系统的自动开关机排程控制方法的关机后的过程至下次开机的过程,亦即系统的自动开关机排程控制方法流程的第三部分Among them, step 10 to step 11 can be the process from the shutdown process to the next startup process of the automatic shutdown schedule control method of the system in the system's automatic shutdown schedule control method of the present invention, that is, the automatic shutdown of the system. The third part of the flow of the power on and off schedule control method
于此,系统的自动开关机排程控制方法可由使用者设定多组的自动开关机时间,并利用芯片组的周期性的系统中断功能产生的周期性系统中断来检查系统时间。当系统时间到达或超过设定的自动关机时间,则设定下一次的开机时间,待设定完成后径行关机。下次开机后重新启动芯片组产生的周期性系统中断来检查系统时间,并比对使用者设定的下一组开关机时间。不断的重复循环,直到所有设定的自动开关机时间都执行完毕。Herein, in the automatic power-on/off schedule control method of the system, the user can set multiple sets of automatic power-on/off time, and check the system time by using the periodic system interrupt generated by the periodic system interrupt function of the chipset. When the system time reaches or exceeds the set automatic shutdown time, set the next startup time, and shut down directly after the setting is completed. After the next startup, the periodic system interrupt generated by restarting the chipset is used to check the system time and compare it with the next set of power-on and off times set by the user. The cycle is repeated continuously until all the set automatic power-on and power-off times are executed.
本发明的系统的自动开关机排程控制方法藉由固件程序达成多次的系统自动开关机的排程控制,且可以根据使用者的设定,自动判断开机或关机时间,并在到达设定的时间时,执行开机或关机动作,无须使用者操作开关按键,即能自行开启或关闭。The automatic power-on/off scheduling control method of the system of the present invention achieves the scheduling control of the automatic power-on/off of the system multiple times through the firmware program, and can automatically judge the power-on or power-off time according to the user's setting, and when the setting is reached When the time is set, the power-on or power-off action is performed, and it can be turned on or off by itself without the user operating the switch button.
图4为根据本发明的具有自动开关机排程的系统示意图。FIG. 4 is a schematic diagram of a system with automatic power-on/off scheduling according to the present invention.
请参照图4,并合并参照前述实施例。本发明的具有自动开关机排程的系统可应用于运行有操作系统的电子装置100。本发明的具有自动开关机排程的系统包含有:基板20、设定储存装置30、连接单元40与外接装置50。Please refer to FIG. 4 and refer to the foregoing embodiments in conjunction. The system with automatic power on and off scheduling of the present invention can be applied to the
基板20位于电子装置100内,且设定储存装置30连接于基板20上。The
连接单元40位于基板20上且电性连接设定储存装置30。The
外接装置50电性连接单元40,用以改变基本输入输出系统的设定以运行系统的自动开关机排程控制方法。The
基板20可为印刷电路板,且基板20可为硬板与软板中之一。The
设定储存装置30可为只读存储器。The setting
连接单元40可为通用串行总线(USB)接口,也可为1394等连接接口。The
其中,具有自动开关机排程的系统藉由外接装置50连接于连接单元40来改变设定储存装置30中基本输入输出系统的设定,以运行上述的系统的自动开关机排程控制方法。Wherein, the system with automatic power on and off scheduling uses the
本发明的具有自动开关机排程的系统及其自动开关机排程控制方法藉由固件程序达成多次的系统自动开关机的排程控制,且可以根据使用者的设定,自动判断开机或关机时间,并在到达设定的时间时,执行开机或关机动作,无须使用者操作开关按键,即能自行开启或关闭。The system with automatic power-on and power-off scheduling and its automatic power-on and power-off scheduling control method of the present invention achieve multiple times of system automatic power-on and power-off scheduling control through the firmware program, and can automatically determine whether to power on or off according to the user's settings. Shutdown time, and when the set time is reached, it will perform the power-on or shutdown action, and it can be turned on or off by itself without the user operating the switch button.
虽然本发明以前述较佳实施例揭露如上,然其并非用以限定本发明,任何熟习相像技艺者,在不脱离本发明的精神和范围内,当可作些许更动与润饰,本发明的保护范围以权利要求所界定者为准。Although the present invention is disclosed above with the aforementioned preferred embodiments, it is not intended to limit the present invention. Any person familiar with the similar art can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection is subject to what is defined in the claims.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101310911A CN101872233B (en) | 2009-04-22 | 2009-04-22 | Automatic switch machine scheduling control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101310911A CN101872233B (en) | 2009-04-22 | 2009-04-22 | Automatic switch machine scheduling control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101872233A CN101872233A (en) | 2010-10-27 |
CN101872233B true CN101872233B (en) | 2012-02-08 |
Family
ID=42997136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101310911A Active CN101872233B (en) | 2009-04-22 | 2009-04-22 | Automatic switch machine scheduling control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101872233B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064491A (en) * | 2011-10-19 | 2013-04-24 | 宏碁股份有限公司 | Electronic device and method of controlling the same |
CN105955844A (en) * | 2016-04-27 | 2016-09-21 | 成都爱可信科技有限公司 | Secret-related file backup method of data center |
CN106874015A (en) * | 2017-03-06 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of method and system for realizing that PowerButton is invalid |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1614532A (en) * | 2004-11-16 | 2005-05-11 | 威盛电子股份有限公司 | Reboot card and its method for deciding when to test the reboot mechanism |
EP1748348A2 (en) * | 2005-07-26 | 2007-01-31 | LG Electronics Inc. | Controlling power supply to a storage device |
CN101303653A (en) * | 2007-05-11 | 2008-11-12 | 纬创资通股份有限公司 | Method for judging whether computer system executes rebooting or not and computer system thereof |
-
2009
- 2009-04-22 CN CN2009101310911A patent/CN101872233B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1614532A (en) * | 2004-11-16 | 2005-05-11 | 威盛电子股份有限公司 | Reboot card and its method for deciding when to test the reboot mechanism |
EP1748348A2 (en) * | 2005-07-26 | 2007-01-31 | LG Electronics Inc. | Controlling power supply to a storage device |
CN101303653A (en) * | 2007-05-11 | 2008-11-12 | 纬创资通股份有限公司 | Method for judging whether computer system executes rebooting or not and computer system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN101872233A (en) | 2010-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI386791B (en) | Transitioning a computing platform to a low power system state | |
US9367446B2 (en) | Computer system and data recovery method for a computer system having an embedded controller | |
TWI475368B (en) | Power control system and method thereof | |
EP2791758B1 (en) | Implementing a power off state in a computing device | |
TWI522794B (en) | Energy-efficient nonvolatile microprocessor | |
EP2843502B1 (en) | Information processing device, information processing method, and program | |
US20190004818A1 (en) | Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof | |
TW201933097A (en) | Computer-implemented method and computer system for preserving memory data | |
CN102736928B (en) | Quickly wake up computer system method and computer system | |
US20130179672A1 (en) | Computer and quick booting method thereof | |
CN101872233B (en) | Automatic switch machine scheduling control method and system | |
JP5281625B2 (en) | Computer reset method and computer | |
US20070130480A1 (en) | System and method for enabling fast power-on times when using a large operating system to control an instrumentation system | |
TWI526817B (en) | Computer system, adaptable hibernation control module and control method thereof | |
CN101281416A (en) | Method for ensuring system shutdown completion | |
CN101436097B (en) | Electronic device and wake-up method thereof | |
TWI482090B (en) | System capable of booting through a universal serial bus device and method thereof | |
CN105824650A (en) | Computer system, adaptive sleep control module and control method thereof | |
TWI386816B (en) | System with automatic switch machine scheduling and automatic switching machine scheduling control method | |
US20140019740A1 (en) | Computer Startup Method, Startup Apparatus, State Transition Method And State Transition Apparatus | |
JP3769541B2 (en) | Computer apparatus, miniPCI card, automatic power-on circuit, and automatic startup method | |
EP2234002A1 (en) | System having automatic turn on/off schedule and a method of system automatic turn on/off schedule control | |
CN112286585A (en) | System and method for regularly starting loongson desktop BIOS (basic input/output System) setting | |
KR101085405B1 (en) | System with an automatic ON/OFF processor and method for controlling the system's automatic On/Off processor | |
TWI454936B (en) | Booting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |