TWI386816B - System with automatic switch machine scheduling and automatic switching machine scheduling control method - Google Patents

System with automatic switch machine scheduling and automatic switching machine scheduling control method Download PDF

Info

Publication number
TWI386816B
TWI386816B TW98109805A TW98109805A TWI386816B TW I386816 B TWI386816 B TW I386816B TW 98109805 A TW98109805 A TW 98109805A TW 98109805 A TW98109805 A TW 98109805A TW I386816 B TWI386816 B TW I386816B
Authority
TW
Taiwan
Prior art keywords
time
control method
electronic device
automatic switch
scheduling control
Prior art date
Application number
TW98109805A
Other languages
Chinese (zh)
Other versions
TW201035778A (en
Inventor
Chih Hao Lin
Original Assignee
Giga Byte Tech 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 Giga Byte Tech Co Ltd filed Critical Giga Byte Tech Co Ltd
Priority to TW98109805A priority Critical patent/TWI386816B/en
Publication of TW201035778A publication Critical patent/TW201035778A/en
Application granted granted Critical
Publication of TWI386816B publication Critical patent/TWI386816B/en

Links

Landscapes

  • Power Sources (AREA)

Description

具有自動開關機排程的系統及其自動開關機排程控制方法System with automatic switch machine scheduling and automatic switch machine scheduling control method thereof

本發明係關於一種系統及其控制方法,特別是一種具有自動開關機排程的系統及其自動開關機排程控制方法。The invention relates to a system and a control method thereof, in particular to a system with automatic switch machine scheduling and an automatic switch machine scheduling control method thereof.

目前的電子裝置中,一般都整合有許多與個人電腦相同的組件,例如主機板(Mother Board)、隨機記憶體(Random Access Memory;RAM)、基本輸出入系統(Basic Input Output System;BIOS)甚至網路卡等。In current electronic devices, many components similar to personal computers are generally integrated, such as a Motherboard, a Random Access Memory (RAM), a Basic Input Output System (BIOS), or even a Basic Input Output System (BIOS). Network card, etc.

由於許多時候使用者因為必須離開等原因,無法在某一時間點對電子裝置執行開機的動作,來讓電子裝置執行開機程序。但若使用者先行對電子裝置執行開機的動作時,又可能造成讓電子裝置閒置運作而消耗電力等。同樣的,在許多時候使用者因為必須離開等原因,但是電子裝置上又正在運行某種程序而無法立即關機,因此只能讓電子裝置持續開機中。Since the user cannot perform the booting action on the electronic device at a certain point in time because of the necessity of leaving, etc., the electronic device performs the booting process. However, if the user first performs an action to turn on the electronic device, it may cause the electronic device to operate idle and consume power. Similarly, in many cases, because the user has to leave, etc., but the electronic device is running a certain program and cannot be shut down immediately, the electronic device can only be turned on continuously.

為了避免使用者無法在當下執行開機動作或關機動作,因此電子裝置的基本輸入輸出系統(Basic I/O System,BIOS)提供喚醒機制以讓使用者可以設定何時讓電子裝置執行開機程序。當前之喚醒機制有多種,例如數據機開機(Resume On Ring)、網路喚醒(Wake On LAN)及數據機喚醒(Wakeup On Ring)等。電子裝置內的運行的許多軟體能提供預約關機時間等,讓使用者可以設定何時讓電子裝置執行關機程序。In order to prevent the user from performing the power-on action or the power-off action at present, the basic I/O system (BIOS) of the electronic device provides a wake-up mechanism to allow the user to set when the electronic device performs the boot process. There are various wake-up mechanisms currently available, such as Resume On Ring, Wake On LAN, and Wakeup On Ring. Many software running in the electronic device can provide an appointment shutdown time, etc., so that the user can set when the electronic device performs the shutdown process.

但電子裝置的基本輸入輸出系統僅提供一次喚醒機制設定,並無法提供多次不同時間的喚醒機制設定。而電子裝置內的運行軟體亦只能提供當次的預約關機設定,而無法提供多次不同時間的預約關機設定。無論是電子裝置的基本輸入輸出系統或是電子裝置內的運行程序皆無法提供電子裝置多次的系統自動開關機的排程控制。However, the basic input/output system of the electronic device only provides one wake-up mechanism setting, and cannot provide wake-up mechanism settings for multiple different times. The operating software in the electronic device can only provide the current scheduled shutdown setting, and cannot provide multiple scheduled shutdown settings at different times. No matter whether it is the basic input/output system of the electronic device or the running program in the electronic device, the scheduling control of the system automatic switching machine of the electronic device multiple times cannot be provided.

本發明提供一種具有自動開關機排程的系統及其自動開關機排程控制方法,可以避免電子裝置僅能藉由應用程序來達成一次的自動關機或藉由基本輸入輸出系統(Basic I/O System,BIOS)來達成一次的自動開機,而無法達到多次的系統自動開關機的排程控制。The invention provides a system with automatic switch machine scheduling and an automatic switch machine scheduling control method thereof, which can prevent the electronic device from being able to achieve only one automatic shutdown by an application or by a basic input/output system (Basic I/O) System, BIOS) to achieve an automatic start, but can not achieve multiple system automatic switch machine scheduling control.

根據本發明之系統的自動開關機排程控制方法係應用於一電子裝置。系統的自動開關機排程控制方法包含:首先,開啟電子裝置的系統電源,以執行電子裝置的開機程序(步驟一);接著,搜尋自動開關機的設定資料(步驟二);然後,當有讀取到自動開關機的設定資料後,致動一週期性中斷(Periodic Interrupt)(步驟三);接著,完成電子裝置的開機程序(步驟四);然後,讀取自動開關機的設定資料中的關機時間(步驟五);利用週期性中斷檢查電子裝置的系統時間,並比對系統時間與讀取到的關機時間(步驟六);其中,當系統時間符合關機時間時,設定下一次開機時間(步驟七);接著,偵測進階組態與電源介面管理設備(Advanced Configuration and Power Interface,ACPI)的作業系統(步驟八);以及當進階組態與電源介面管理設備的作業系統於執行狀態時,由進階組態與電源介面管理設備的作業系統執行電子裝置的關機程序(步驟九)。The automatic switch machine scheduling control method of the system according to the present invention is applied to an electronic device. The automatic switch scheduling control method of the system comprises: first, turning on the system power of the electronic device to execute the booting process of the electronic device (step 1); then, searching for the setting data of the automatic switching machine (step 2); then, when there is After reading the setting data of the automatic switching machine, a periodic interrupt (period interrupt) is activated (step 3); then, the starting process of the electronic device is completed (step 4); then, the setting data of the automatic switching machine is read. Shutdown time (step 5); use the periodic interrupt 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 meets the shutdown time, set the next boot Time (step 7); then, to detect the Advanced Configuration and Power Interface (ACPI) operating system (step 8); and when the advanced configuration and power interface management device operating system In the execution state, the shutdown process of the electronic device is executed by the operating system of the advanced configuration and power interface management device (step 9).

其中,每一組開關機時間的設定資料係儲存於設定儲存裝置中,如:互補式金屬-氧化層-半導體、非揮發性記憶體(Non-Volatile Random Access Memory,NVRAM)、快閃記憶體(Flash disk)或硬碟(Hard Disk,HD)...等。Among them, each set of switch time setting data is stored in the set storage device, such as: complementary metal-oxide-semiconductor, non-volatile memory (NV-RAM), non-volatile memory (NVRAM), flash memory (Flash disk) or hard disk (Hard Disk, HD)...etc.

其中,步驟五係由設定儲存裝置讀取到目前的系統時間。Step 5 is to read the current system time by the setting storage device.

其中步驟七中設定下一次開機時間,主要係在設定儲存裝置中設定系統下一次的開機時間,其步驟包括:清除警示標籤(Alarm Flag);設定喚醒時間(wakeup time);啟用警示中斷(alarm interrupt);清除輸入/輸出緩衝器的紀錄;以及啟用警示喚醒事件。The next boot time is set in step seven, mainly setting the next boot time of the system in the setting storage device, the steps include: clearing the alert flag (Alarm Flag); setting the wake-up time (wakeup time); enabling the alert interrupt (alarm) Interrupt); clears the input/output buffer record; and enables the alert wake event.

其中,步驟八會先行搜尋一進階組態與電源介面管理設備旗標,當進階組態與電源介面管理設備旗標為致能時,判定進階組態與電源介面管理設備的作業系統於執行狀態。Among them, step 8 will first search for an advanced configuration and power interface management device flag, and determine the advanced configuration and power interface management device operating system when the advanced configuration and power interface management device flag is enabled. In the execution state.

步驟九可係當進階組態與電源介面管理設備的作業系統於未執行狀態時,則返回並執行步驟五。步驟九也可係當進階組態與電源介面管理設備的作業系統不存在時,則由傳統的作業系統執行電子裝置的關機程序。亦即,可由使用者或處理模組對進階組態與電源介面管理設備埠寫入一軟關機指令(soft off command)以執行電子裝置的關機程序。Step 9 may return to step 5 when the operating system of the advanced configuration and power interface management device is in an unexecuted state. Step 9 may also be performed when the operating system of the advanced configuration and the power interface management device does not exist, and the shutdown process of the electronic device is performed by the conventional operating system. That is, a soft off command can be written to the advanced configuration and power interface management device by the user or the processing module to execute the shutdown process of the electronic device.

根據本發明之系統的自動開關機排程控制方法更包括:檢查電子裝置的系統時間並比對系統時間與於該自動開關機的設定資料中的下一次開機時間(步驟十);以及當系統時間符合下一次開機時間,返回並執行步驟一(步驟十一)。The automatic switch machine scheduling control method of the system according to the present invention further comprises: checking the system time of the electronic device and comparing the system time with the next boot time in the setting data of the automatic power switch (step 10); and when the system The time matches the next boot time, return and perform step one (step 11).

根據本發明所揭露之具有自動開關機排程的系統可係應用於運行有作業系統的電子裝置。本發明之具有自動開關機排程的系統包含有:基板、設定儲存裝置、連接單元與外接裝置。A system having an automatic power switch schedule disclosed in accordance with the present invention can be applied to an electronic device running a work system. The system with automatic switch machine scheduling of the present invention comprises: a substrate, a setting storage device, a connecting unit and an external device.

由於基板係位於電子裝置內,且設定儲存裝置連接於基板上。Since the substrate is located in the electronic device, the setting storage device is connected to the substrate.

連接單元位於基板上且電性連接設定儲存裝置。The connecting unit is located on the substrate and electrically connected to the setting storage device.

外接裝置電性連接連接單元,用以改變基本輸入輸出系統的設定以運行系統的自動開關機排程控制方法。The external device is electrically connected to the connection unit for changing the setting of the basic input/output system to operate the automatic on/off scheduling control method of the system.

其中,具有自動開關機排程的系統係藉由外接裝置連接於連接單元來改變設定儲存裝置中基本輸入輸出系統的設定,以運行上述之系統的自動開關機排程控制方法。Among them, the system with automatic switch machine scheduling changes the setting of the basic input/output system in the setting storage device by connecting the external device to the connection unit to run the automatic switch machine scheduling control method of the above system.

於此,本發明之具有自動開關機排程的系統及其自動開關機排程控制方法藉由韌體程序達成多次的系統自動開關機的排程控制,且可以根據使用者的設定,自動判斷開機或關機時間,並在到達設定的時間時,執行開機或關機動作,無須使用者操作開關按鍵,即能自行開啟或關閉。In this case, the system with the automatic switch machine scheduling and the automatic switch machine scheduling control method thereof achieve the scheduling control of the system automatic switch machine by the firmware program multiple times, and can be automatically determined according to the user's setting. Determine the power on or off time, and when the set time is reached, perform the power on or off action, and you can turn it on or off without the user operating the switch button.

有關本發明的特徵與實作,茲配合圖示作最佳實施例詳細說明如下。The features and implementations of the present invention are described in detail below with reference to the preferred embodiments.

根據本發明之系統的自動開關機排程控制方法之流程可依序分為三個部份:第一部份、第二部分與第三部份。其中,第一部分係為系統的自動開關機排程控制方法的開機過程;第二部分係由系統的自動開關機排程控制方法的開機後的過程至關機過程;第三部分係由系統的自動開關機排程控制方法的關機後的過程至下次開機的過程。The flow of the automatic switch machine 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. The first part is the booting process of the automatic switch machine scheduling control method of the system; the second part is the process of the automatic switch machine scheduling control method of the system to the shutdown process; the third part is automatically controlled by the system. The process after the shutdown of the switch scheduling control method to the next boot process.

「第1圖」係為根據本發明之系統的自動開關機排程控制方法的第一部分流程圖。「第2圖」係為根據本發明之系統的自動開關機排程控制方法的第二部分流程圖。「第3圖」係為根據本發明之系統的自動開關機排程控制方法的第三部分流程圖。"FIG. 1" is a flow chart of the first part of the automatic on-off machine scheduling control method of the system according to the present invention. Fig. 2 is a flow chart showing the second part of the automatic switch scheduling control method of the system according to the present invention. Fig. 3 is a flow chart showing the third part of the automatic on-off machine scheduling control method of the system according to the present invention.

請參照「第1圖」、「第2圖」與「第3圖」,根據本發明之系統的自動開關機排程控制方法係應用於一電子裝置。系統的自動開關機排程控制方法包含:首先,開啟電子裝置的系統電源,以執行電子裝置的開機程序(步驟一);接著,搜尋自動開關機的設定資料(步驟二);然後,當有讀取到自動開關機的設定資料後,致動一週期性中斷(Periodic Interrupt)(步驟三);接著,完成電子裝置的開機程序(步驟四);然後,讀取自動開關機的設定資料中的關機時間(步驟五);利用週期性中斷檢查電子裝置的系統時間,並比對系統時間與讀取到的關機時間(步驟六);其中,當系統時間符合關機時間時,設定下一次開機時間(步驟七);接著,偵測進階組態與電源介面管理設備(Advanced Configuration and Power Interface,ACPI)的作業系統(步驟八);以及當進階組態與電源介面管理設備的作業系統於執行狀態時,由進階組態與電源介面管理設備的作業系統執行電子裝置的關機程序(步驟九)。Referring to "1st drawing", "2nd drawing" and "3rd drawing", the automatic switch machine scheduling control method of the system according to the present invention is applied to an electronic device. The automatic switch scheduling control method of the system comprises: first, turning on the system power of the electronic device to execute the booting process of the electronic device (step 1); then, searching for the setting data of the automatic switching machine (step 2); then, when there is After reading the setting data of the automatic switching machine, a periodic interrupt (period interrupt) is activated (step 3); then, the starting process of the electronic device is completed (step 4); then, the setting data of the automatic switching machine is read. Shutdown time (step 5); use the periodic interrupt 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 meets the shutdown time, set the next boot Time (step 7); then, to detect the Advanced Configuration and Power Interface (ACPI) operating system (step 8); and when the advanced configuration and power interface management device operating system In the execution state, the shutdown process of the electronic device is executed by the operating system of the advanced configuration and power interface management device (step 9).

根據本發明之系統的自動開關機排程控制方法中,步驟一係先行啟動電子裝置的系統電源,以執行電子裝置的開機程序,亦即運行基本輸入輸出系統(Basic I/O System,BIOS)。In the automatic switch machine scheduling control method of the system according to the present invention, the first step is to start the system power supply of the electronic device to execute the booting process of the electronic device, that is, the basic I/O system (BIOS). .

其中,啟動電子裝置的方法可係透過開啟電源致動件(例如:電源開關、開機鍵等的硬體裝置),又或是其他方式來達成啟動電子裝置。The method of starting the electronic device may be to activate the electronic device by turning on a power actuator (for example, a hardware device such as a power switch or a power button).

由於基本輸入輸出系統是用以管理電子裝置中硬體的韌體,因此開機後BIOS最先被啟動,然後它會對電腦的設備進行完全徹底的檢驗和測試。接著,步驟二則是搜尋自動開關機的設定資料,亦即由電子裝置的處理模組搜尋自動開關機的每一組開關機時間的設定資料。其中每一組開關機時間的設定資料可儲存於設定儲存裝置中。設定儲存裝置可為互補式金屬-氧化層-半導體(Complementary Metal-Oxide-Semiconductor,CMOS)、非揮發性記憶體(Non-Volatile Random Access Memory,NVRAM)、快閃記憶體(Flash disk)或硬碟(Hard Disk,HD)...等。Since the basic input/output system is used to manage the firmware of the hardware in the electronic device, the BIOS is first activated after booting, and then it thoroughly tests and tests the computer device. Next, the second step is to search for the setting data of the automatic switch machine, that is, the processing module of the electronic device searches for the setting data of each group of the switch time of the automatic switch machine. The setting data of each group of switch time can be stored in the setting storage device. The storage device can be a Complementary Metal-Oxide-Semiconductor (CMOS), a Non-Volatile Random Access Memory (NVRAM), a Flash memory or a hard memory. Disc (Hard Disk, HD)...etc.

步驟三係當有讀取到自動開關機的設定資料後,致動一週期性中斷的功能。其中,週期性中斷依據硬體與晶片組不同,可以選擇利用晶片組中的系統管理中斷(System Management Interrupt,SMI)、電源管理計時器(Power Management Timer,PM timer)或串列中斷請求(Serial Interrupt Request,Serial IRQ)等功能來產生週期性的系統中斷。藉由晶片組中的系統管理中斷或電源管理計時器等功能所產生的週期性的系統中斷來檢查系統時間並比對使用者所設定的自動開關機時間。Step 3 is to activate a periodic interrupt function after reading the setting data of the automatic switch machine. Among them, the periodic interrupt is different from the chipset according to the hardware, and can choose to use the system management interrupt (SMI), the power management timer (PM timer) or the serial interrupt request (Serial) in the chipset. Interrupt Request, Serial IRQ) and other functions to generate periodic system interrupts. The system time is checked by the periodic system interruptions generated by functions such as system management interrupts or power management timers in the chipset and the automatic on/off time set by the user is compared.

接著,步驟四係偵測電子裝置連接的所有硬體與系統設定以完成開機程序。Next, step four detects all hardware and system settings connected to the electronic device to complete the boot process.

其中,在步驟二中若處理模組搜尋不到自動開關機的設定資料時,則接續原本的開機程序(例如:偵測電子裝置連接的所有硬體與系統設定)以完成開機程序(步驟四),亦即在步驟二中若搜尋不到自動開關機的設定資料時,則直接進行步驟四。In the second step, if the processing module cannot find the setting data of the automatic switching machine, the original booting process (for example, detecting all the hardware and system settings connected to the electronic device) is completed to complete the booting process (step four). ), that is, if the setting data of the automatic power switch is not found in step 2, step 4 is directly performed.

步驟一至步驟四可為本發明之系統的自動開關機排程控制方法的開機過程,亦即系統的自動開關機排程控制方法流程的第一部份。Steps 1 to 4 may be the starting process of the automatic switch machine scheduling control method of the system of the present invention, that is, the first part of the system automatic switching machine scheduling control method flow.

接著,步驟五係由處理模組讀取儲存於設定儲存裝置中的自動開關機的設定資料中的關機時間。Next, in step 5, the processing module reads the shutdown time in the setting data of the automatic power on/off stored in the setting storage device.

然後,步驟六係由處理模組藉由晶片組的週期性的系統中斷功能來不斷檢查電子裝置的系統時間,並與處理模組由設定儲存裝置中所讀取到的關機時間(使用者所設定的自動關機時間)進行比對,以確認系統時間與讀取到的關機時間是否相符合。Then, in step 6, the processing module continuously checks the system time of the electronic device by the periodic system interruption function of the chipset, and the shutdown time read by the processing module from the setting storage device (user The set auto power off time is compared to confirm whether the system time matches the read shutdown time.

當步驟六中的系統時間與讀取到的關機時間不相符時,則回到步驟五,由處理模組重新讀取儲存於設定儲存裝置中的自動開關機的設定資料中的關機時間後,再次進行步驟六以確認系統時間與讀取到的關機時間是否相符合。When the system time in step 6 does not match the read shutdown time, return to step 5, after the processing module re-reads the shutdown time in the setting data of the automatic power on/off stored in the setting storage device, Perform step 6 again to confirm that the system time matches the read shutdown time.

其中,處理模組藉由晶片組的週期性的系統中斷功能來檢查系統時間的步驟係由處理模組透過設定儲存裝置來讀取到目前的系統時間。The processing module checks the system time by the periodic system interruption function of the chipset, and the processing module reads the current system time through the setting storage device.

當步驟六中的系統時間與讀取到的關機時間相符時,則進行步驟七來設定下一次開機時間。When the system time in step 6 matches the read shutdown time, proceed to step 7 to set the next boot time.

其中,設定下一次開機時間的步驟係在設定儲存裝置中設定好下一次開機時間。在設定儲存裝置中設定好下一次開機時間的步驟主要係先行清除警示標籤(Alarm Flag),然後接著設定喚醒時間(RTC wakeup time),接著啟用警示中斷(alarm interrupt),然後清除輸入/輸出緩衝器的紀錄,最後啟用警示喚醒事件。Among them, the step of setting the next boot time is to set the next boot time in the setting storage device. The step of setting the next boot time in the setting storage device is mainly to clear the alarm flag (Alarm Flag) first, then set the wake-up time (RTC wakeup time), then enable the alarm interrupt, and then clear the input/output buffer. The record of the device is finally enabled to alert the wake event.

其中,步驟五至步驟七可為本發明之系統的自動開關機排程控制方法中由系統的自動開關機排程控制方法的開機過程至關機前的過程,亦即系統的自動開關機排程控制方法流程的第二部份。Step 5 to step 7 may be the process of the automatic switch machine scheduling control method of the system of the present invention, from the booting process of the automatic switch scheduling control method of the system to the process before the shutdown, that is, the automatic switch scheduling of the system The second part of the control method flow.

然後,步驟八係由處理模組偵測是否有進階組態與電源介面管理設備(Advanced Configuration and Power Interface,ACPI)的作業系統的存在,亦即由處理模組搜尋進階組態與電源介面管理設備旗標(ACPI enabled flag)。其中,當進階組態與電源介面管理設備旗標為致能時,判定進階組態與電源介面管理設備的作業系統於執行狀態。Then, step 8 is performed by the processing module to detect whether there is an advanced configuration and power interface management device (ACPI) operating system, that is, the processing module searches for advanced configuration and power supply. Interface management device flag (ACPI enabled flag). Wherein, when the advanced configuration and the power interface management device flag are enabled, the operating system of the advanced configuration and the power interface management device is determined to be in an execution state.

換句話說,當系統進入進階組態與電源介面管理設備(Advanced Configuration 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, the values of the advanced configuration and power interface management device enable are filled into the system management interrupt. SMI command port, when the system management interrupt command (SMI command port) is filled in the advanced configuration and power interface management device enable, a flag is stored in the set storage device for processing mode. The group determines whether there is an operating system with advanced configuration and power interface management equipment.

而當進階組態與電源介面管理設備的作業系統存在且於未執行狀態時,則返回並執行步驟五。When the operating system of the advanced configuration and power interface management device exists and is not executed, go back and execute step 5.

於是,步驟九可當進階組態與電源介面管理設備的作業系統存在且於執行狀態時,由進階組態與電源介面管理設備的作業系統執行電子裝置的關機程序。Therefore, in step 9, when the operating system of the advanced configuration and the power interface management device exists and is in the execution state, the shutdown process of the electronic device is executed by the operating system of the advanced configuration and the power interface management device.

步驟九也可當進階組態與電源介面管理設備的作業系統不存在時,則由傳統的作業系統執行電子裝置的關機程序。亦即,可由使用者或處理模組對進階組態與電源介面管理設備埠寫入一軟關機指令(soft off command)以執行電子裝置的關機程序。Step 9 may also be performed by the conventional operating system when the operating system of the advanced configuration and the power interface management device does not exist. That is, a soft off command can be written to the advanced configuration and power interface management device by the user or the processing module to execute the shutdown process of the electronic device.

根據本發明之系統的自動開關機排程控制方法更包括:檢查電子裝置的系統時間並比對系統時間與於自動開關機的設定資料中的下一次開機時間(步驟十);以及當系統時間符合下一次開機時間,返回並執行步驟一(步驟十一)。The automatic switch machine scheduling control method of the system according to the present invention further comprises: 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-off machine (step ten); and when the system time Match the next boot time, go back and perform step one (step 11).

當電子裝置執行關機程序後,仍需一待命的電源以提供內部處理模組、晶片組或設定儲存裝置的運行。此時電子裝置內部的時鐘晶片(Real Time Clock,RTC)會在電腦關機後,藉著充電池或乾電池等供應的電源,時鐘仍會繼續工作以維持正確的系統時間。因此步驟十係由晶片組的週期性的系統中斷功能不斷檢查電子裝置的系統時間並比對系統時間與於自動開關機的設定資料中的下一次開機時間。After the electronic device performs the shutdown process, a standby power source is still required to provide operation of the internal processing module, the chipset, or the set storage device. At this time, the clock (Real Time Clock, RTC) inside the electronic device will continue to work to maintain the correct system time by the power supply of the rechargeable battery or the dry battery after the computer is turned off. Therefore, the tenth step is to continuously check the system time of the electronic device by the periodic system interruption function of the chipset and compare the system time with the next power-on time in the setting data of the automatic power switch.

最後,步驟十一係當晶片組的週期性的系統中斷功能檢查到系統時間符合下一次開機時間,則啟動電子裝置的系統電源,以執行電子裝置的開機程序,亦即返回並執行步驟一。Finally, in step 11, when the periodic system interruption function of the chipset checks that the system time meets the next boot time, the system power of the electronic device is started to execute the booting process of the electronic device, that is, return and execute step one.

其中,步驟十至步驟十一可為本發明之系統的自動開關機排程控制方法中由系統的自動開關機排程控制方法的關機後的過程至下次開機的過程,亦即系統的自動開關機排程控制方法流程的第三部份。Step 10 to step 11 may be the process of the automatic switch machine scheduling control method of the system of the present invention, the process from the shutdown process of the system automatic switch machine scheduling control method to the next power-on process, that is, the automatic system. The third part of the process of switching machine scheduling control method.

於此,系統的自動開關機排程控制方法可由使用者設定多組的自動開關機時間,並利用晶片組的週期性的系統中斷功能產生的週期性系統中斷來檢查系統時間。當系統時間到達或超過設定的自動關機時間,則設定下一次的開機時間,待設定完成後逕行關機。下次開機後重新啟動晶片組產生的週期性系統中斷來檢查系統時間,並比對使用者設定的下一組開關機時間。不斷的重複循環,直到所有設定的自動開關機時間都執行完畢。Here, the system's automatic on/off scheduling control method can set multiple sets of automatic on/off time by the user, and check the system time by using the periodic system interruption generated by the periodic system interruption function of the chipset. When the system time reaches or exceeds the set automatic shutdown time, the next power-on time is set, and the system is shut down after the setting is completed. After the next power-on, restart the periodic system interrupt generated by the chipset to check the system time and compare the next set of switch time set by the user. Repeat the cycle until all set auto-switch time is completed.

本發明之系統的自動開關機排程控制方法藉由韌體程序達成多次的系統自動開關機的排程控制,且可以根據使用者的設定,自動判斷開機或關機時間,並在到達設定的時間時,執行開機或關機動作,無須使用者操作開關按鍵,即能自行開啟或關閉。The automatic switch machine scheduling control method of the system of the invention automatically achieves the scheduling control of the system automatic switch machine by the firmware program, and can automatically determine the power on or off time according to the user's setting, and arrive at the set time. When the time is up, the power-on or power-off action can be turned on or off without the user operating the switch button.

「第4圖」係為根據本發明之具有自動開關機排程的系統示意圖。"FIG. 4" is a schematic diagram of a system having an automatic power switch schedule according to the present invention.

請參照「第4圖」,並合併參照前述實施例。本發明之具有自動開關機排程的系統可應用於運行有作業系統的電子裝置100。本發明之具有自動開關機排程的系統包含有:基板20、設定儲存裝置30、連接單元40與外接裝置50。Please refer to "Fig. 4" and refer to the foregoing embodiment in combination. The system of the present invention having an automatic power on/off schedule can be applied to an electronic device 100 running a work system. The system with automatic switch scheduling of the present invention comprises a substrate 20, a setting storage device 30, a connecting unit 40 and an external device 50.

由於基板20係位於電子裝置100內,且設定儲存裝置30連接於基板20上。Since the substrate 20 is located in the electronic device 100, the setting storage device 30 is connected to the substrate 20.

連接單元40位於基板20上且電性連接設定儲存裝置30。The connecting unit 40 is located on the substrate 20 and electrically connected to the setting storage device 30.

外接裝置50電性連接單元40,用以改變基本輸入輸出系統的設定以運行系統的自動開關機排程控制方法。The external device 50 is electrically connected to the unit 40 for changing the setting of the basic input/output system to operate the automatic on/off scheduling control method of the system.

基板20可為印刷電路板,且基板20可係為硬板與軟板中之一。The substrate 20 can be a printed circuit board, and the substrate 20 can be one of a hard board and a soft board.

設定儲存裝置30可為唯讀記憶體。The setting storage device 30 can be a read only memory.

連接單元40係通用串列匯流排(USB)介面,也可以係為1394等連接介面。The connection unit 40 is a universal serial bus (USB) interface, and may be a connection interface such as 1394.

其中,具有自動開關機排程的系統係藉由外接裝置50連接於連接單元40來改變設定儲存裝置30中基本輸入輸出系統的設定,以運行上述之系統的自動開關機排程控制方法。Among them, the system with automatic switch machine scheduling changes the setting of the basic input/output system in the setting storage device 30 by connecting the external device 50 to the connection unit 40 to operate the automatic switch machine scheduling control method of the above system.

本發明之具有自動開關機排程的系統及其自動開關機排程控制方法藉由韌體程序達成多次的系統自動開關機的排程控制,且可以根據使用者的設定,自動判斷開機或關機時間,並在到達設定的時間時,執行開機或關機動作,無須使用者操作開關按鍵,即能自行開啟或關閉。The system with automatic switch machine scheduling and the automatic switch machine scheduling control method thereof achieve the scheduling control of the system automatic switch machine by the firmware program, and can automatically determine the power on or according to the user's setting. Turn off the time, and when the set time is reached, perform the power on or off action, and you can turn it on or off without the user operating the switch button.

雖然本發明以前述之較佳實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。While the present invention has been described above in terms of the preferred embodiments thereof, it is not intended to limit the invention, and the invention may be modified and modified without departing from the spirit and scope of the invention. The patent protection scope of the invention is subject to the definition of the scope of the patent application attached to the specification.

20...基板20. . . Substrate

30...設定儲存裝置30. . . Setting storage device

40...連接單元40. . . Connection unit

50...外接裝置50. . . External device

100...電子裝置100. . . Electronic device

第1圖係為根據本發明之系統的自動開關機排程控制方法的第一部分流程圖;1 is a flow chart of a first part of an automatic switch machine scheduling control method according to the system of the present invention;

第2圖係為根據本發明之系統的自動開關機排程控制方法的第二部分流程圖;Figure 2 is a flow chart showing the second part of the automatic switch machine scheduling control method of the system according to the present invention;

第3圖係為根據本發明之系統的自動開關機排程控制方法的第三部分流程圖;以及Figure 3 is a flow chart showing the third part of the automatic switch machine scheduling control method of the system according to the present invention;

第4圖係為根據本發明之具有自動開關機排程的系統示意圖。Figure 4 is a schematic illustration of a system with automatic power cycle scheduling in accordance with the present invention.

Claims (12)

一種系統的自動開關機排程控制方法,應用於一電子裝置,包含:步驟一:開啟該電子裝置的一系統電源以執行該電子裝置的一開機程序;步驟二:搜尋一自動開關機的設定資料;步驟三:當有讀取到該自動開關機的設定資料後,致動一週期性中斷(Periodic Interrupt);步驟四:完成該電子裝置的該開機程序;步驟五:讀取該自動開關機的設定資料中的一關機時間;步驟六:利用該週期性中斷檢查該電子裝置的一系統時間並比對該系統時間與讀取到的該關機時間;步驟七:當該系統時間符合該關機時間時,設定下一次開機時間;步驟八:偵測一進階組態與電源介面管理設備(Advanced Configuration and Power Interface,ACPI)的作業系統;以及步驟九:當該進階組態與電源介面管理設備的作業系統於執行狀態時,由該進階組態與電源介面管理設備的作業系統執行該電子裝置的一關機程序。 A system automatic switch machine scheduling control method is applied to an electronic device, comprising: Step 1: Turning on a system power of the electronic device to execute a booting process of the electronic device; Step 2: Searching for an automatic switch setting Data; Step 3: When a setting data of the automatic switching machine is read, a periodic interrupt is activated; Step 4: completing the booting process of the electronic device; Step 5: reading the automatic switch a shutdown time in the setting data of the machine; step 6: using the periodic interruption to check a system time of the electronic device and comparing the system time with the shutdown time; step 7: when the system time meets the Set the next boot time when the power is off; Step 8: Detect an advanced configuration and power interface management device (ACPI) operating system; and Step 9: When the advanced configuration and power supply When the operating system of the interface management device is in the execution state, the electronic system is executed by the operating system of the advanced configuration and power interface management device Facing a shutdown procedure. 如請求項1所述之系統的自動開關機排程控制方法,其中該步驟九更包含:當該進階組態與電源介面管理設備的作業系統於未執行狀態時,返回並執行該步驟五。 The automatic switch scheduling control method of the system of claim 1, wherein the step 9 further comprises: when the advanced configuration and the power interface management device operating system are in an unexecuted state, returning and executing the step 5 . 如請求項1所述之系統的自動開關機排程控制方法,其中該步驟九更包含:當該進階組態與電源介面管理設備的作業系統不存在時,由一傳統的作業系統執行該電子裝置的該關機程序。 The automatic switch scheduling control method of the system of claim 1, wherein the step 9 further comprises: when the advanced configuration and the operating system of the power interface management device are not present, the traditional operating system executes the The shutdown procedure of the electronic device. 如請求項3所述之系統的自動開關機排程控制方法,其中該由該傳統的作業系統執行該電子裝置的該關機程序的步驟包括:對一進階組態與電源介面管理設備埠寫入一軟關機指令(soft off command)以執行該電子裝置的該關機程序。 The automatic switch scheduling control method of the system of claim 3, wherein the step of executing the shutdown procedure of the electronic device by the conventional operating system comprises: writing to an advanced configuration and power interface management device A soft off command is entered to execute the shutdown procedure of the electronic device. 如請求項1所述之系統的自動開關機排程控制方法,其中該步驟六所述之檢查該電子裝置的該系統時間,係透過一設定儲存裝置讀取目前的該系統時間。 The automatic switch scheduling control method of the system of claim 1, wherein the checking the system time of the electronic device in the step 6 is to read the current system time through a setting storage device. 如請求項1所述之系統的自動開關機排程控制方法,其中每一組開關機時間的設定資料係儲存於一設定儲存裝置中。 The automatic switch scheduling control method of the system of claim 1, wherein each set of switch time setting data is stored in a setting storage device. 如請求項1所述之系統的自動開關機排程控制方法,其中該步驟八包括:搜尋一進階組態與電源介面管理設備旗標;其中,當該進階組態與電源介面管理設備旗標為致能時,判定該進階組態與電源介面管理設備的作業系統於執行狀態。 The automatic switch scheduling control method of the system of claim 1, wherein the step 8 comprises: searching for an advanced configuration and power interface management device flag; wherein, when the advanced configuration and power interface management device When the flag is enabled, it is determined that the advanced configuration and the operating system of the power interface management device are in an execution state. 如請求項6所述之系統的自動開關機排程控制方法,其中該步驟七包括:在該設定儲存裝置中設定下一次開機時間。 The automatic switch scheduling control method of the system of claim 6, wherein the step 7 comprises: setting a next boot time in the setting storage device. 如請求項8所述之系統的自動開關機排程控制方法,其中該在該設定儲存裝置中設定該下一次開機時間的步驟包括:清除一警示標籤(Alarm Flag); 設定一喚醒時間(RTC wakeup time);啟用一警示中斷(alarm interrupt);清除一輸入/輸出緩衝器的紀錄;以及啟用一警示喚醒事件。 The automatic switch scheduling control method of the system of claim 8, wherein the step of setting the next power-on time in the setting storage device comprises: clearing an alert flag (Alarm Flag); Set a wake-up time (RTC wakeup time); enable an alert interrupt; clear an input/output buffer record; and enable an alert wake-up event. 如請求項1所述之系統的自動開關機排程控制方法,更包括:步驟十:檢查該電子裝置的該系統時間並比對該系統時間與於該自動開關機的設定資料中的下一次開機時間。 The automatic switch scheduling control method of the system of claim 1, further comprising: step ten: checking the system time of the electronic device and comparing the system time with the next time in the setting data of the automatic power switch boot time. 如請求項10所述之系統的自動開關機排程控制方法,更包括:步驟十一:當該系統時間符合下一次開機時間,返回並執行該步驟一。 The automatic switch scheduling control method of the system of claim 10 further includes: Step 11: When the system time meets the next boot time, return and execute the step 1. 一種具有自動開關機排程的系統,應用於運行有一作業系統的一電子裝置,包含有:一基板,位於該電子裝置內;一設定儲存裝置,位於該基板上,具有一基本輸入輸出系統;一連接單元,位於該基板上且電性連接該設定儲存裝置;以及一外接裝置,電性連接該連接單元,用以改變該基本輸入輸出系統的設定,以運行一系統的自動開關機排程控制方法。A system with an automatic switch machine scheduling, applied to an electronic device running an operating system, comprising: a substrate, located in the electronic device; a setting storage device, located on the substrate, having a basic input and output system; a connecting unit, located on the substrate and electrically connected to the setting storage device; and an external device electrically connected to the connecting unit for changing the setting of the basic input/output system to run a system of automatic switching machine scheduling Control Method.
TW98109805A 2009-03-25 2009-03-25 System with automatic switch machine scheduling and automatic switching machine scheduling control method TWI386816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98109805A TWI386816B (en) 2009-03-25 2009-03-25 System with automatic switch machine scheduling and automatic switching machine scheduling control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98109805A TWI386816B (en) 2009-03-25 2009-03-25 System with automatic switch machine scheduling and automatic switching machine scheduling control method

Publications (2)

Publication Number Publication Date
TW201035778A TW201035778A (en) 2010-10-01
TWI386816B true TWI386816B (en) 2013-02-21

Family

ID=44855982

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98109805A TWI386816B (en) 2009-03-25 2009-03-25 System with automatic switch machine scheduling and automatic switching machine scheduling control method

Country Status (1)

Country Link
TW (1) TWI386816B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6446213B1 (en) * 1997-09-01 2002-09-03 Kabushiki Kaisha Toshiba Software-based sleep control of operating system directed power management system with minimum advanced configuration power interface (ACPI)-implementing hardware
TW200502860A (en) * 2003-07-10 2005-01-16 Power Whale Information Ltd Method for achieving mulitple automatic timing bootup scheduling of computer system
WO2007148177A1 (en) * 2006-06-22 2007-12-27 Pramac S.P.A. Apparatus for controlling the switching on/off of a power unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6446213B1 (en) * 1997-09-01 2002-09-03 Kabushiki Kaisha Toshiba Software-based sleep control of operating system directed power management system with minimum advanced configuration power interface (ACPI)-implementing hardware
TW200502860A (en) * 2003-07-10 2005-01-16 Power Whale Information Ltd Method for achieving mulitple automatic timing bootup scheduling of computer system
WO2007148177A1 (en) * 2006-06-22 2007-12-27 Pramac S.P.A. Apparatus for controlling the switching on/off of a power unit

Also Published As

Publication number Publication date
TW201035778A (en) 2010-10-01

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
US7685466B2 (en) BIOS for saving and restoring operational state in the absence of AC power
JP4448851B2 (en) BIOS for saving and restoring operating state in case of AC power shortage
US20090138738A1 (en) Method for automatically switching power states
US11216053B2 (en) Systems, apparatus, and methods for transitioning between multiple operating states
TWI522794B (en) Energy-efficient nonvolatile microprocessor
US9880610B2 (en) Power supplying method, power supplying system, and electronic device
US10394307B2 (en) Information processing apparatus, information processing method, and program
EP2791758A1 (en) Implementing a power off state in a computing device
JP5281625B2 (en) Computer reset method and computer
US9672048B2 (en) Electronic device and method for waking up operating system thereof
CN101281416A (en) Method for ensuring system closedown completion
CN101872233B (en) Automatic on-off schedule control method and system thereof
TWI386816B (en) System with automatic switch machine scheduling and automatic switching machine scheduling control method
CN115826728A (en) Chip power management method and device
TWI482090B (en) System capable of booting through a universal serial bus device and method thereof
WO2012126345A1 (en) Computer startup method, startup apparatus, state transition method, and state transition apparatus
EP2234002A1 (en) System having automatic turn on/off schedule and a method of system automatic turn on/off schedule control
TWI489260B (en) Stand-by management method and related management module and computer system
KR101085405B1 (en) System with an automatic ON/OFF processor and method for controlling the system's automatic On/Off processor
US10338664B2 (en) Control module for data retention and method of operating control module
TWI783163B (en) Power control device, computer system and related power control method
JP6102204B2 (en) Electronic device, control program and control method thereof

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees