JP5342801B2 - Power supply control circuit, computer having the same, and power supply control method - Google Patents

Power supply control circuit, computer having the same, and power supply control method Download PDF

Info

Publication number
JP5342801B2
JP5342801B2 JP2008097577A JP2008097577A JP5342801B2 JP 5342801 B2 JP5342801 B2 JP 5342801B2 JP 2008097577 A JP2008097577 A JP 2008097577A JP 2008097577 A JP2008097577 A JP 2008097577A JP 5342801 B2 JP5342801 B2 JP 5342801B2
Authority
JP
Japan
Prior art keywords
power
computer
power supply
signal
initialization
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
Application number
JP2008097577A
Other languages
Japanese (ja)
Other versions
JP2009251829A (en
Inventor
康夫 北平
Original Assignee
萩原電気株式会社
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 萩原電気株式会社 filed Critical 萩原電気株式会社
Priority to JP2008097577A priority Critical patent/JP5342801B2/en
Publication of JP2009251829A publication Critical patent/JP2009251829A/en
Application granted granted Critical
Publication of JP5342801B2 publication Critical patent/JP5342801B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a power source control circuit, a computer, and a power source control method, which can reliably and rapidly shut off a computer power source until shifting to processing of an OS after power-on. <P>SOLUTION: The power source control circuit 20a is provided with a reading means 21 for reading progress of initialization and a diagnosis test of own hardware to be executed after power-on of a computer 10, a storage means 22 for detecting and storing a power switch signal for controlling the power of the computer, an initialization waiting means 23a for waiting until the reading means 21 reads a result indicating that a predetermined hardware resource has been initialized, and a signal generation means 24 for transmitting an instruction signal for power-off to the computer after the completion of waiting if the power switch signal is detected during the waiting. Another control circuit is provided with, in place of the initialization waiting means 23a, a boot waiting means 23b for waiting until a predetermined time elapses after a result indicating boot start of the OS is read. <P>COPYRIGHT: (C)2010,JPO&amp;INPIT

Description

本発明はコンピュータの電源制御回路及びこれを備えるコンピュータ並びに電源制御方法に関し、詳しくは、電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行するコンピュータの電源投入後、オペレーティングシステムの処理に移行するまでの電源遮断の制御に関する。   The present invention relates to a power supply control circuit for a computer, a computer including the same, and a power supply control method. More specifically, the computer executes at least initialization of its own hardware and a diagnostic test when the power is turned on. The present invention relates to control of power shutdown until transition.

広範な産業用途において、パーソナルコンピュータ(PC)と互換性を有するコンピュータが使用されている。かかるコンピュータには、入出力機器の制御等を行うBIOS(Basic Input/Output System)が搭載されており、コンピュータの電源が投入されると先ずBIOSが動作する。典型的なコンピュータにおいては、最初にコンピュータ・ハードウェアの初期化と診断テストが実行される。この初期化及び診断テストのプログラムはROMに格納されており、一般にはBIOSに含まれている。診断テストにおいては、CPUや外部キャッシュメモリ、メインメモリ(RAM)、ROM、入出力ブリッジ等マザーボード上のハードウェアのほか、キーボード、シリアルポート、パラレルポート、ディスクインターフェイス、グラフィックスシステム等がテストされる。そして、初期化及び診断テストの実行後、オペレーティングシステム(OS)がブートされる。
以上のようなコンピュータの代表的な例として、PCの一般的なアーキテクチャであるPC/AT(IBM社)機と互換性を有するコンピュータが挙げられる。このPC/AT互換機において、前記診断テストは「Power On Self Test(POST)」と呼ばれている。
通常、コンピュータの電源がオフの状態で電源スイッチを押下等するとコンピュータが起動される。そして、コンピュータの電源がオンの状態で電源スイッチを押下等すると、コンピュータは動作中のファイルやシステム状態を保存した後に電源を遮断する(シャットダウン処理)ように設計されている。OSが稼働している状態であれば、OSがシャットダウン処理を実行した後に、コンピュータの電源が遮断される。
Computers compatible with personal computers (PCs) are used in a wide range of industrial applications. Such a computer is equipped with a BIOS (Basic Input / Output System) for controlling input / output devices and the like. When the computer is turned on, the BIOS is first operated. In a typical computer, computer hardware initialization and diagnostic tests are first performed. The initialization and diagnostic test programs are stored in the ROM and are generally included in the BIOS. In the diagnostic test, the hardware on the motherboard such as CPU, external cache memory, main memory (RAM), ROM, I / O bridge, keyboard, serial port, parallel port, disk interface, graphics system, etc. are tested. . Then, after the initialization and the diagnostic test are executed, the operating system (OS) is booted.
A typical example of such a computer is a computer having compatibility with a PC / AT (IBM) machine, which is a general architecture of a PC. In this PC / AT compatible machine, the diagnostic test is called “Power On Self Test (POST)”.
Usually, when the computer is turned off, when the power switch is pressed, the computer is started. When the computer is turned on and the power switch is pressed, the computer is designed to shut down the power (shutdown process) after saving the operating file and system state. If the OS is operating, the computer is turned off after the OS executes the shutdown process.

しかし、一般に、コンピュータの電源投入直後の電源制御についてはしばしば不具合が発生するため、従来その防止技術が開示されている。例えば、電源投入直後の不用意な電源オフを防止する技術(特許文献1 参照)、コンピュータの再起動時に無停電電源の停電が検出されたような場合にOSをブートすることなくシャットダウンさせる停電制御方法(特許文献2 参照)等がある。
最近の一般的なBIOSを搭載したコンピュータにおいては、電源投入直後に電源スイッチを押下等しても、コンピュータがシャットダウンされない場合がある。
また、OSがブートされている間に電源スイッチを押下等したとき、システム状態の保存が不完全なまま電源が遮断される場合(ダーティ・シャットダウン)があり、コンピュータを再起動したときに正常にシステムが立ち上がらないという不具合を招いた。
However, in general, problems often occur with respect to power control immediately after the computer is turned on. Therefore, the prevention technique has been disclosed. For example, a technique for preventing inadvertent power-off immediately after power-on (see Patent Document 1), power failure control for shutting down without booting the OS when a power failure of the uninterruptible power source is detected when the computer is restarted Method (see Patent Document 2).
In a computer equipped with a recent general BIOS, the computer may not be shut down even if the power switch is pressed immediately after the power is turned on.
Also, when the power switch is pressed while the OS is booted, the power may be shut down (dirty shutdown) with incomplete system state saving. The system was not able to start up.

特開平5−66860号公報JP-A-5-66860 特開2005−196464号公報JP 2005-196464 A

OSを搭載したコンピュータは、機器の制御やマンマシン・インタフェース、情報処理等の目的で応用システムに使用され、また機器・装置に組み込んで使用される。こうしたシステムにおいては、コンピュータの電源の投入・遮断は、操作者が電源スイッチを押下して行う場合に限らず、コンピュータに接続された外部機器・装置が出力する信号によって制御される場合も多い。
特に、コンピュータの電源の投入・遮断を自動的に制御するような自動運転(無人)システムにおいては、コンピュータの電源を遮断すべき要因が一旦生じた場合には、確実にコンピュータをシャットダウンすることが求められる。コンピュータの電源投入直後であってOSの処理に移行する前であっても、外部装置等からコンピュータに対して電源遮断を要求する信号が発信されたときや、操作者がコンピュータの電源スイッチを押下したときには、コンピュータの電源を確実かつ速やかに遮断する必要がある。
A computer equipped with an OS is used in an application system for purposes such as device control, man-machine interface, and information processing, and is incorporated into a device / device. In such a system, turning on / off the computer is not limited to being performed by an operator pressing a power switch, but is often controlled by a signal output from an external device / device connected to the computer.
In particular, in an automatic operation (unattended) system that automatically controls the turning on / off of the computer, if a factor that should turn off the computer occurs once, the computer can be shut down reliably. Desired. Even after the computer is turned on and before the OS process is started, an external device or the like sends a signal to the computer to turn off the power, or the operator presses the computer's power switch. In such a case, it is necessary to shut off the power supply of the computer reliably and promptly.

しかし、前記のとおり、従来の技術においては、電源投入直後に電源スイッチを押下等してもコンピュータがシャットダウンされない場合がある。BIOSによって一定のハードウェア資源が初期化されるまで、電源遮断を要求する信号が無効とされ、CPUに認識されないためである。この場合、いったん発生した前記信号は消失してしまうこととなり、当該信号によってコンピュータがシャットダウンされないという不具合を生じる。操作者がコンピュータを操作する環境においては電源スイッチを再度押下する等の対処が可能であるが、自動運転システムにおいてはコンピュータの電源が遮断されないという障害を招いた。
また、BIOSによって一定のハードウェア資源が初期化された後は電源遮断を要求する信号は有効となるが、前記のとおり、OSのブート中に電源を遮断しようとした場合にダーティ・シャットダウンが生じる場合があった。その結果、次にコンピュータを起動したときにシステムの再立ち上げが正常にできなくなる不具合を生じ、自動運転システムにおいてはコンピュータが起動時に停止するという故障を招いた。
However, as described above, in the conventional technique, the computer may not be shut down even if the power switch is pressed immediately after the power is turned on. This is because a signal for requesting power-off is invalidated and not recognized by the CPU until certain hardware resources are initialized by the BIOS. In this case, the signal once generated is lost, and the computer is not shut down by the signal. In an environment where the operator operates the computer, it is possible to cope with such as pressing the power switch again. However, in the automatic operation system, the computer power is not shut off.
In addition, after a certain hardware resource is initialized by the BIOS, a signal for requesting power-off is valid. However, as described above, when the power is turned off during booting of the OS, a dirty shutdown occurs. There was a case. As a result, when the computer is started next time, the system cannot be restarted normally. In the automatic operation system, the computer stops at the time of startup.

本発明は、ハードウェア資源の初期化の進捗状況を診断テスト等の経過を読み取ることによって判断することができる点に着目してなされたものであり、電源投入後OSの処理に移行するまでの間のコンピュータの電源の遮断を確実かつ速やかに行うことができる電源制御回路及びそれを備えたコンピュータ並びに電源制御方法を提供することを目的としている。   The present invention has been made paying attention to the fact that the progress of initialization of hardware resources can be determined by reading the progress of a diagnostic test or the like. It is an object of the present invention to provide a power supply control circuit capable of reliably and promptly shutting off the power supply of the computer, a computer including the same, and a power supply control method.

本発明は以下の通りである。
1.電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行するプログラムが搭載されたコンピュータの電源を制御する電源制御回路であって、前記プログラムによる初期化及び診断テストの経過を読み取る読取手段と、前記電源を制御するための電源スイッチ信号を検出し該検出を記憶する記憶手段と、前記読取手段によって少なくとも前記ハードウェアの所定の入出力資源が初期化されたことを示す結果を含む前記経過を読み取るまで待機する初期化時待機手段と、前記初期化時待機手段によって前記待機が終了したとき前記記憶手段によって前記検出が記憶されている場合は、前記ハードウェアに具備する電源制御入力に電源の遮断を指示する制御信号を送信する信号発生手段と、を備え前記所定の入出力資源は、前記電源制御入力からの入力信号を前記コンピュータが有効に検出し該信号に基づき電源遮断処理を実行するために必要なハードウェア資源であることを特徴とする電源制御回路。
.前記プログラムが前記初期化及び診断テストを実行した後にオペレーティングシステムをブートするコンピュータであって、前記読取手段によって少なくとも前記オペレーティングシステムのブートの開始を示す結果を含む前記経過を読み取ってから所定時間が経過するまで待機するブート時待機手段と、前記ブート時待機手段によって前記待機される間は電源の遮断の指示を禁止し、当該待機が終了したとき前記記憶手段によって前記検出が記憶されている場合は、前記電源制御入力に電源の遮断を指示する制御信号を送信する信号発生手段と、を更に備え、前記所定時間は、前記オペレーティングシステムのブートが開始されてから前記電源制御入力からの入力信号によって該オペレーティングシステムが正常に電源遮断処理ができる状態になるまでの時間以上の一定の時間である前記1.記載の電源制御回路。
.電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行した後にオペレーティングシステムをブートするプログラムが搭載されたコンピュータの電源を制御する電源制御回路であって、前記プログラムによる初期化及び診断テストの経過を読み取る読取手段と、前記電源を制御するための電源スイッチ信号を検出し該検出を記憶する記憶手段と、前記読取手段によって少なくとも前記オペレーティングシステムのブートの開始を示す結果を含む前記経過を読み取ってから所定時間が経過するまで待機するブート時待機手段と、前記ブート時待機手段によって前記待機される間は電源の遮断の指示を禁止し、当該待機が終了したとき前記記憶手段によって前記検出が記憶されている場合は、前記ハードウェアに具備する電源制御入力に電源の遮断を指示する制御信号を送信する信号発生手段と、を備え前記所定時間は、前記オペレーティングシステムのブートが開始されてから前記電源制御入力からの入力信号によって該オペレーティングシステムが正常に電源遮断処理ができる状態になるまでの時間以上の一定の時間であることを特徴とする電源制御回路。
.電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行するプログラムが搭載されたコンピュータであって、前記1.記載の電源制御回路を備えるコンピュータ。
.電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行した後にオペレーティングシステムをブートするプログラムが搭載されたコンピュータであって、前記2.又は3.に記載の電源制御回路を備えるコンピュータ。
.電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行するプログラムが搭載されたコンピュータの電源を制御する電源制御方法であって、前記プログラムによる初期化及び診断テストの経過を読み取り、少なくとも前記コンピュータが電源遮断の指示を有効に認識し該指示に基づき電源遮断処理を実行するために必要なハードウェア資源が初期化されたことを示す結果を含む前記経過を読み取るまで待機する初期化時待機工程と、前記初期化時待機工程と並行し、前記電源を制御するための電源スイッチ信号を監視して該信号を検出したときは該検出を記憶する記憶工程と、前記初期化時待機工程の後に、前記記憶工程によって前記検出が記憶されている場合は前記コンピュータに電源の遮断を指示する初期化時遮断指示工程と、を備えることを特徴とする電源制御方法。
.前記プログラムが前記初期化及び診断テストを実行した後にオペレーティングシステムをブートするコンピュータであって、前記初期化時遮断指示工程の後更に前記プログラムによる初期化及び診断テストの経過を読み取り、少なくとも前記オペレーティングシステムのブートの開始を示す結果を含む前記経過を読み取るまで待機する読取工程と、前記読取工程の後、該オペレーティングシステムのブートの開始から該オペレーティングシステムが正常に電源遮断処理ができる状態になるまでの時間以上の一定の時間が経過するまで待機し、該待機の間は前記コンピュータに対する電源遮断の指示を保留するブート時待機工程と、前記ブート時待機工程と並行し、前記電源を制御するための電源スイッチ信号を監視して該信号を検出したときは該検出を記憶する記憶工程と、前記ブート時待機工程の後に、前記記憶工程によって前記検出が記憶されている場合は前記コンピュータに電源遮断を指示する遮断指示工程と、を更に備える前記.記載の電源制御方法。
.電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行した後にオペレーティングシステムをブートするプログラムが搭載されたコンピュータの電源を制御する電源制御方法であって、前記プログラムによる初期化及び診断テストの経過を読み取り、少なくとも前記オペレーティングシステムのブートの開始を示す結果を含む前記経過を読み取るまで待機する読取工程と、前記読取工程の後、該オペレーティングシステムのブートの開始から該オペレーティングシステムが正常に電源遮断処理ができる状態になるまでの時間以上の一定の時間が経過するまで待機し、該待機の間は前記コンピュータに対する電源遮断の指示を保留するブート時待機工程と、前記ブート時待機工程と並行し、前記電源を制御するための電源スイッチ信号を監視して該信号を検出したときは該検出を記憶する記憶工程と、前記ブート時待機工程の後に、前記記憶工程によって前記検出が記憶されている場合は前記コンピュータに電源遮断を指示する遮断指示工程と、を備えることを特徴とする電源制御方法。
The present invention is as follows.
1. A power supply control circuit for controlling the power supply of a computer on which a program for executing at least initialization of hardware and a diagnostic test is installed when power is turned on, and reading means for reading the progress of initialization and diagnostic test by the program; The process comprising: a storage means for detecting a power switch signal for controlling the power supply and storing the detection; and a result indicating that at least a predetermined input / output resource of the hardware is initialized by the reading means When the standby is completed by the initialization standby unit and when the detection is stored by the storage unit when the standby is completed by the initialization unit, a power is supplied to a power control input provided in the hardware. and a signal generating means for transmitting a control signal for instructing the cutoff, the predetermined input resources, before Power supply control circuit, which is a hardware resources necessary for the input signal from the power control input the computer executes a power-off processing based on effectively detect the signal.
2 . A computer that boots an operating system after the program has executed the initialization and diagnostic tests, and a predetermined time has elapsed since the reading means read at least the result indicating the start of booting of the operating system. If the standby means for booting that waits until the booting and the instruction for shutting off the power supply during the standby by the standby means for booting are prohibited, and the detection is stored by the storage means when the standby is completed And a signal generating means for transmitting a control signal instructing the power supply control input to shut off the power supply, and the predetermined time is determined by an input signal from the power supply control input after the boot of the operating system is started. The operating system can normally shut down the power Wherein a constant time or more time until 1. The power supply control circuit described.
3 . A power supply control circuit for controlling the power supply of a computer on which a program for booting an operating system is executed after executing at least initialization of hardware and diagnostic test of its own hardware when power is turned on. Reading means for reading the progress, storage means for detecting a power switch signal for controlling the power supply and storing the detection, and reading the progress including a result indicating at least the start of booting of the operating system by the reading means. A boot standby unit that waits until a predetermined time elapses, and prohibits a power-off instruction during the standby by the boot standby unit, and the storage unit detects the detection when the standby is completed. If stored, the power supply provided in the hardware And a signal generating means for transmitting a control signal for instructing the interruption of power supply to the control input, said predetermined time, said operating system by an input signal from the power control input from said been operating system boot start A power supply control circuit characterized in that the power supply control circuit has a fixed time equal to or longer than a time until the power supply can be normally shut off.
4 . A computer on which a program for executing at least initialization of hardware and a diagnostic test at the time of power-on is installed. A computer comprising the described power supply control circuit.
5 . 1. A computer equipped with a program for booting an operating system after executing at least initialization of its own hardware and a diagnostic test when power is turned on . Or 3. A computer comprising the power supply control circuit according to 1.
6 . A power supply control method for controlling the power supply of a computer on which a program for executing at least initialization of hardware and a diagnostic test is executed at the time of power-on, comprising reading the progress of initialization and diagnostic test by the program, Wait for initialization when the computer recognizes the power-off instruction effectively and waits for reading the progress including the result indicating that the hardware resources necessary for executing the power-off process are initialized based on the instruction. In parallel with the initialization standby step, a storage step for monitoring the power switch signal for controlling the power supply and detecting the signal when the signal is detected, and a initialization standby step Later, when the detection is stored by the storage step, the initialization interruption instruction that instructs the computer to turn off the power supply Power control method characterized by comprising the steps, a.
7 . A computer that boots an operating system after the program executes the initialization and diagnostic test, and further reads the progress of the initialization and diagnostic test by the program after the shutdown instruction step at initialization, and at least the operating system A reading process that waits until the progress including the result indicating the start of booting is read, and after the reading process, until the operating system is in a state in which the power supply can be normally shut down from the start of the operating system boot. Waiting until a certain time more than a certain period of time has elapsed, and during the waiting time, the boot standby process for holding the power-off instruction to the computer, and the boot standby process for controlling the power supply When the power switch signal is monitored and detected A storage step of storing said detection, after the boot standby step, wherein if the detection by the storage step are stored further comprises a blocking instruction step for instructing power-off to the computer 6. The power supply control method described.
8 . A power supply control method for controlling the power supply of a computer having a program for booting an operating system after executing at least initialization of hardware and diagnostic test of the hardware at the time of power-on. A reading step of reading the progress and waiting for reading of the progress including at least a result indicating the start of booting of the operating system; and after the reading step, the operating system is normally powered off from the start of booting of the operating system Waiting for a certain period of time or more until the processing is ready, and during the standby, a boot standby process in which a power-off instruction to the computer is suspended, and a boot standby process in parallel A power supply for controlling the power supply When the signal is detected by monitoring the switch signal, the storage step for storing the detection, and after the boot standby time step, if the detection is stored by the storage step, the computer is turned off. A power supply control method comprising: a shut-off instruction step for instructing.

本発明の主たる電源制御回路によって、コンピュータが電源投入後自己の所定の入出力資源の初期化を終えるまでに電源スイッチ信号が受信された場合には、当該初期化後に確実にコンピュータの電源を遮断させることができる。また、前記コンピュータが自己のハードウェアの初期化及び診断テストを実行した後にOSをブートするコンピュータである場合には、OSをブートすることなく速やかにコンピュータの電源を遮断させることができる。
前記所定の入出力資源、コンピュータが電源遮断の指示を有効に検出し該指示に基づいて電源遮断処理を実行するために必要なハードウェア資源であるため、最小限の入出力資源が初期化された後速やかにコンピュータの電源を遮断させることができる。
更に、OSのブートの開始から所定時間が経過するまで待機し、その待機中に電源スイッチ信号が受信された場合には待機後にコンピュータに電源遮断の指示をする別の手段を備えることによって、電源遮断に起因するシステムトラブルを招くことなく確実にコンピュータの電源を遮断させることができる。
本発明の別の電源制御回路は、コンピュータがOSのブートを開始してから所定時間が経過するまで待機し、その待機中に電源スイッチ信号が受信された場合には待機後にコンピュータに電源遮断の指示をする手段を備えることによって、OSのブートの開始前に電源スイッチ信号が受信された場合にはただちにコンピュータの電源を遮断させることができ、OSのブートの開始後に電源スイッチ信号が受信された場合には、電源遮断に起因するシステムトラブルを招くことなく確実にコンピュータの電源を遮断させることができる。
前記所定時間、OSのブートが開始されてから該OSが正常に電源遮断処理ができる状態になるまでの時間以上の一定時間であるため、その間に電源スイッチ信号が受信された場合、OSが起動してからそのOSに確実にシャットダウン処理を実行させることができる。
前記主たる電源制御回路を備えるコンピュータによって、電源投入後自己の所定の入出力資源の初期化を終えるまでに電源スイッチ信号が受信された場合には、当該初期化後に確実に自己の電源を遮断し、自己のハードウェアの初期化及び診断テストを実行した後にOSをブートするコンピュータである場合には、OSをブートすることなく速やかに自己の電源を遮断するコンピュータを提供することができる。
前記別の電源制御回路を備えるコンピュータ、又は前記主たる電源制御回路に前記別の手段を更に備えるコンピュータによって、OSのブートの開始前に電源スイッチ信号が受信された場合には速やかに自己の電源を遮断し、OSのブートの開始後に電源スイッチ信号が受信された場合には、電源遮断に起因するシステムトラブルを招くことなく自己の電源を遮断するコンピュータを提供することができる。
本発明の電源制御方法によって、コンピュータが電源投入後自己の所定の入出力資源の初期化を終えるまでに電源スイッチ信号が受信された場合、当該初期化がされた後に確実にコンピュータの電源を遮断させることができ、自己のハードウェアの初期化及び診断テストを実行した後にOSをブートするコンピュータである場合には、OSをブートすることなくコンピュータの電源を遮断させることができる。また、本電源制御方法の工程はハードウェア又はソフトウェアにより実現することができる。
更に、OSのブートの開始から所定時間が経過するまで待機し、その待機中に電源スイッチ信号が受信された場合には待機後にコンピュータに電源遮断の指示をする工程を備えることによって、電源遮断に起因するシステムトラブルを招くことなく、OSにより確実にコンピュータの電源を遮断させることができる。
本発明の別の電源制御方法は、コンピュータがOSのブートを開始してから所定時間が経過するまで待機し、その待機中に電源スイッチ信号が受信された場合には待機後にコンピュータに電源遮断の指示をする工程を備えることによって、OSのブートの開始前に電源スイッチ信号が受信された場合にはただちにコンピュータの電源を遮断させることができ、OSのブートの開始後に電源スイッチ信号が受信された場合には、電源遮断に起因するシステムトラブルを招くことなく、OSにより確実にコンピュータの電源を遮断させることができる。また、本電源制御方法の工程はハードウェア又はソフトウェアにより実現することができる。
If the power switch signal is received by the main power control circuit of the present invention until the computer finishes initialization of its predetermined input / output resources after the power is turned on, the power of the computer is surely shut off after the initialization. Can be made. Further, when the computer is a computer that boots an OS after executing its own hardware initialization and diagnostic test, it is possible to quickly shut off the computer without booting the OS.
The predetermined input resources, because the computer is the hardware resources necessary to execute the power-off processing based on the effective detection and the instruction the instruction of power-off, the initialization minimal input and output resources The computer power can be shut off immediately after being released.
Furthermore, the system waits until a predetermined time elapses from the start of booting of the OS, and when a power switch signal is received during the standby, it is provided with another means for instructing the computer to turn off the power after the standby. The computer can be reliably shut off without causing a system trouble due to the shut-off.
Another power supply control circuit according to the present invention waits until a predetermined time elapses after the computer starts booting the OS. If a power switch signal is received during the standby, the computer shuts off the power after the standby. By providing the means for instructing, when the power switch signal is received before the start of the OS boot, the power of the computer can be shut off immediately, and the power switch signal is received after the start of the OS boot. In this case, it is possible to reliably shut off the computer without causing a system trouble due to the power shutdown.
The predetermined time is a fixed time that is longer than the time from when the booting of the OS is started until the OS can normally perform the power-off processing. Therefore, when the power switch signal is received during that time, the OS It is possible to cause the OS to execute the shutdown process reliably after starting.
When a power switch signal is received by the computer having the main power control circuit before the initialization of its predetermined input / output resource after the power is turned on, the power supply is surely shut off after the initialization. In the case of a computer that boots the OS after executing its own hardware initialization and diagnostic test, it is possible to provide a computer that quickly shuts down its own power supply without booting the OS.
If a power switch signal is received before the start of OS booting by a computer including the other power control circuit or a computer further including the other means in the main power control circuit, the power supply is immediately turned on. If a power switch signal is received after the OS is booted and the OS is booted, a computer can be provided that shuts off its own power without causing a system trouble due to the power shutdown.
When a power switch signal is received by the power control method of the present invention after the computer is turned on and before the initialization of its predetermined input / output resource is completed, the power of the computer is surely shut off after the initialization. In the case of a computer that boots the OS after executing its own hardware initialization and diagnostic test, the power of the computer can be shut off without booting the OS. Further, the steps of the power supply control method can be realized by hardware or software.
Furthermore, the system waits until a predetermined time has elapsed from the start of booting of the OS, and when the power switch signal is received during the standby, the computer is provided with a step of instructing the computer to turn off the power after the standby. The power of the computer can be surely shut off by the OS without causing a system trouble.
Another power control method of the present invention waits until a predetermined time elapses after the computer starts booting the OS, and when a power switch signal is received during the standby, the computer shuts off the power after the standby. By providing an instruction step, if the power switch signal is received before the start of the OS boot, the power of the computer can be shut off immediately, and the power switch signal is received after the start of the OS boot. In such a case, the power of the computer can be surely shut off by the OS without causing a system trouble due to the power shut-off. Further, the steps of the power supply control method can be realized by hardware or software.

以上の各発明によって、応用システム(特に自動運転システム)において、起動直後にコンピュータの電源が遮断されないという不具合や、コンピュータの再立ち上げが正常にできなくなるという故障を防止することができ、システムの信頼性・保守性、安全性を向上させることができる。   According to each of the above inventions, in an application system (especially an automatic operation system), it is possible to prevent a problem that the computer power is not shut off immediately after startup and a failure that the computer cannot be restarted normally. Reliability, maintainability and safety can be improved.

さらに、上記の各発明は、PCの事実上の標準となっているハードウェア及びソフトウェア資源に関係なく適用することができる。すなわち、一般に流通するいわゆるチップセット等のLSI、BIOS、OS等をそのまま使用でき、それらを変更する場合に必要となる多大な開発負担及びコストを省くことができる解決策を提供する。   Furthermore, each of the above-described inventions can be applied regardless of hardware and software resources that have become a de facto standard for PCs. That is, it provides a solution that can use LSI, BIOS, OS, etc. such as so-called chip sets that are generally distributed as they are, and can save a great development burden and cost required for changing them.

本発明の電源制御回路及びその制御対象であるコンピュータの構成を図1に示す。以下の説明・図面において、本発明の電源制御と関わらないコンピュータの構成要素や機能は省略してある。
コンピュータ10を構成するハードウェア10aは、CPU11、メインメモリ(RAM)13、BIOSを格納したROM14、OSを格納したハードディスクドライブ(HDD)等15、I/Oブリッジ12、電源回路16、バス17などを備える。ただし、これらの他、コンピュータ10は表示装置、キーボード、DVDドライブ等を備えるものであってもよく、ハードウェア10aはCPUブリッジ、各種バス、グラフィックス・コントローラ、LANその他の各種インターフェイス等を備えるものであってもよい。
前記I/Oブリッジ12は、各種内部バスの接続、各種入出力インターフェイス、DMAコントロール、割り込みコントロール等の機能を有し、多くの場合これらの機能を集積したチップセットと呼ばれるLSIが使用される。
FIG. 1 shows the configuration of a power supply control circuit of the present invention and a computer that is a control target thereof. In the following description and drawings, components and functions of the computer that are not related to the power control of the present invention are omitted.
The hardware 10a constituting the computer 10 includes a CPU 11, a main memory (RAM) 13, a ROM 14 storing a BIOS, a hard disk drive (HDD) 15 storing an OS, an I / O bridge 12, a power supply circuit 16, a bus 17, and the like. Is provided. However, in addition to these, the computer 10 may include a display device, a keyboard, a DVD drive, and the like, and the hardware 10a includes a CPU bridge, various buses, a graphics controller, a LAN, and various other interfaces. It may be.
The I / O bridge 12 has functions such as connection of various internal buses, various input / output interfaces, DMA control, and interrupt control. In many cases, an LSI called a chip set in which these functions are integrated is used.

I/Oブリッジ12に備えられたバス17は、入出力データの伝送等に用いられるバスである。電源投入後に実行される診断テストの経過は、例えば、代表的なPC/AT互換機においては入出力ポート80Hに出力されるため、バスを介して読み取ることができる。ただし、前記経過の取得方法は、入出力ポートによる読み取りに限るものではなく、例えばコンピュータ10上のソフトウェアによって取得してもよい。
コンピュータのハードウェアの初期化は、診断テストと並行して進められる。本書において、単に「診断テスト」という場合もハードウェア10a各部の初期化を含み、「診断テストの経過(診断コード)」とは、ハードウェア10a内の資源の初期化の結果及び診断テストにおける各テストの結果をいう。初期化及び診断テストの手順や診断コードは、使用するBIOSによって異なる。
The bus 17 provided in the I / O bridge 12 is a bus used for transmission of input / output data and the like. The progress of the diagnostic test executed after power-on is output to the input / output port 80H in a typical PC / AT compatible machine, for example, and can be read via the bus. However, the acquisition method of the progress is not limited to reading by the input / output port, and may be acquired by software on the computer 10, for example.
Initialization of the computer hardware proceeds in parallel with the diagnostic test. In this document, the term “diagnostic test” also includes initialization of each part of the hardware 10a. “Diagnosis test (diagnostic code)” means the result of initialization of resources in the hardware 10a and each of the diagnostic tests. The test result. Initialization and diagnostic test procedures and diagnostic codes differ depending on the BIOS used.

電源回路16は、ハードウェア10aに電源を供給する電源回路である。I/Oブリッジ12にはコンピュータ10の電源を管理する機能が含まれ、コンピュータのハードウェア各部への電源の供給・遮断が制御される。
通常、コンピュータ10の電源がオフの状態(停止状態)においては、電源回路16から最小限のハードウェア部分に補助電源162が供給されており、主電源161は遮断されている。本書において「電源」とは、特に断らない限り主電源161をいう。
ただし、コンピュータによってはさまざまな停止状態が設定できる。例えば、メモリにデータを保存したまま停止する状態、HDD等にデータを保存して停止する状態等がある。本発明は、主として、電源を再投入したときにハードウェアが初期化されシステムがHDD等から再ブートされる停止状態を対象としている。
The power supply circuit 16 is a power supply circuit that supplies power to the hardware 10a. The I / O bridge 12 includes a function for managing the power supply of the computer 10 and controls the supply / cutoff of power to each hardware part of the computer.
Normally, when the computer 10 is turned off (stopped), the auxiliary power 162 is supplied from the power supply circuit 16 to the minimum hardware portion, and the main power supply 161 is cut off. In this document, “power supply” refers to the main power supply 161 unless otherwise specified.
However, various stop states can be set depending on the computer. For example, there are a state where the data is stopped while being stored in the memory, a state where the data is stored in the HDD or the like and the state is stopped. The present invention is mainly directed to a stopped state in which the hardware is initialized and the system is rebooted from the HDD or the like when the power is turned on again.

I/Oブリッジ12に備えられた電源制御入力120は、コンピュータ10に対して電源の投入/遮断を指示するための信号の入力端子である。本端子は、例えば、PC/AT互換機に用いられるチップセットでは、「Power Button」等と呼ばれる入力端子であり、元来は電源スイッチ30を当該端子に接続することができる。
本書で、コンピュータ10に対して電源の投入又は遮断を指示するために前記電源制御入力120に送信される制御信号を、電源制御信号(Ps)という。電源制御信号Psは、確実に受信されるために少なくともオンとなる時間が100ミリ秒以上の信号であることが望ましい。また、例えばPC/AT互換機においては、4秒間以上オンとなる(いわゆる「長押し」)信号が前記電源制御入力に入力された場合には、コンピュータの強制的な電源遮断を要求する信号とされる。このため、後述する信号発生手段24によって発生される電源制御信号Psは、4秒より短い時間オンとなる信号とする。
The power control input 120 provided in the I / O bridge 12 is a signal input terminal for instructing the computer 10 to turn on / off the power. For example, in a chip set used for a PC / AT compatible machine, this terminal is an input terminal called “Power Button” or the like, and originally the power switch 30 can be connected to the terminal.
In this document, a control signal transmitted to the power control input 120 to instruct the computer 10 to turn on or off the power is referred to as a power control signal (Ps). The power supply control signal Ps is desirably a signal that is at least 100 milliseconds or more in order to be reliably received. Also, for example, in a PC / AT compatible machine, when a signal that is on for more than 4 seconds (so-called “long press”) is input to the power control input, Is done. For this reason, the power control signal Ps generated by the signal generation means 24 described later is a signal that is turned on for a time shorter than 4 seconds.

電源制御回路20aは、コンピュータ10に対して電源の遮断を制御するための主たる発明の回路である。電源制御回路20aには、電源スイッチ30及び外部装置等40を接続することができる。
電源スイッチ30は、操作者がコンピュータ10の電源を投入/遮断するためのスイッチである。通常、パーソナルコンピュータでは電源スイッチ30はコンピュータ10の筐体に一体として実装されているが、前記電源制御回路20aは前記電源制御入力120と電源スイッチ30との間に介在する回路であるため、本書においては、電源スイッチ30と、コンピュータ10及びハードウェア10aとを、切り離して表記する。
電源スイッチ30は、コンピュータ10の電源を制御するための電源スイッチ信号S1を発生する。コンピュータの電源がオフの間、必要な場合は、電源スイッチ30に前記補助電源162が供給される。電源スイッチ30には、多くはモーメンタリ型スイッチが使用され、スイッチを押下すると前記電源スイッチ信号S1がオンとなる。ただし、スイッチの構成はこれに限るものではなく、例えば、電源投入と遮断のスイッチを別個に備えてもよい。
外部装置等40は、コンピュータ10が使用されるシステムが備える機器・装置等であり、例えば、応用システムの電源スイッチ、コントローラ、機械、無停電電源などが挙げられる。外部装置等40は、コンピュータ10の電源を制御するための電源スイッチ信号S2を発生する。
前記電源スイッチ信号S1及びS2をまとめて、以下では電源スイッチ信号Swという。
ただし、前記信号S1又はS2の電圧、継続時間その他の信号形式が前記電源制御入力120の入力信号の規格・特性と互換性を有しない場合は、変換のための電子回路を電源制御回路20aの信号S1又はS2入力部に内蔵することによって、電源制御入力120の入力信号の規格・特性と互換性を有する信号形式に変換することができる。例えば、電源スイッチ30がオン・オフの停止位置を手動で切り替えるトグルスイッチである場合、スイッチがオン側にある間電源スイッチ信号S1はオンとなる。この場合、信号S1がオンとなったときに、コンピュータに電源投入を指示するため短時間オンとなる電源スイッチ信号Swを発生し、信号S1がオフとなったときに、電源の遮断を指示するため短時間オンとなる電源スイッチ信号Swを発生させることができる。
したがって、電源スイッチ信号Swは、前記信号S1又はS2のいずれかを受信したときにオンとなる信号であって、電源制御入力120の要求規格・特性と互換性を有する信号とする。
The power supply control circuit 20a is a circuit of the main invention for controlling the computer 10 to shut off the power supply. A power switch 30 and an external device 40 can be connected to the power control circuit 20a.
The power switch 30 is a switch for the operator to turn on / off the computer 10. Normally, in a personal computer, the power switch 30 is integrally mounted on the housing of the computer 10, but the power control circuit 20 a is a circuit interposed between the power control input 120 and the power switch 30. In FIG. 2, the power switch 30, the computer 10, and the hardware 10a are separated from each other.
The power switch 30 generates a power switch signal S1 for controlling the power supply of the computer 10. If necessary, the auxiliary power 162 is supplied to the power switch 30 while the computer is turned off. Most of the power switch 30 is a momentary switch, and when the switch is pressed, the power switch signal S1 is turned on. However, the configuration of the switch is not limited to this, and for example, a switch for turning on and off the power may be provided separately.
The external device 40 is a device / device provided in a system in which the computer 10 is used, and examples thereof include a power switch, a controller, a machine, and an uninterruptible power supply of an application system. The external device 40 generates a power switch signal S2 for controlling the power supply of the computer 10.
The power switch signals S1 and S2 are collectively referred to as a power switch signal Sw below.
However, if the voltage, duration or other signal format of the signal S1 or S2 is not compatible with the standard / characteristics of the input signal of the power supply control input 120, the electronic circuit for conversion is replaced with the power supply control circuit 20a. By incorporating it in the signal S1 or S2 input section, it can be converted into a signal format compatible with the standard and characteristics of the input signal of the power control input 120. For example, when the power switch 30 is a toggle switch that manually switches the on / off stop position, the power switch signal S1 is on while the switch is on. In this case, when the signal S1 is turned on, the power switch signal Sw that is turned on for a short time is generated to instruct the computer to turn on the power, and when the signal S1 is turned off, the power supply is instructed to be cut off. Therefore, the power switch signal Sw that is turned on for a short time can be generated.
Therefore, the power switch signal Sw is a signal that is turned on when either the signal S1 or S2 is received and is compatible with the required standard / characteristic of the power control input 120.

前記電源制御回路20aは、読取手段21、記憶手段22、初期化時待機手段23a及び信号発生手段24を備える。コンピュータ10の電源がオフの状態では、記憶手段22及び信号発生手段24に前記補助電源162が供給される。コンピュータ10の電源がオフの状態で、電源スイッチ30又は外部装置40からの信号S1又はS2が記憶手段22で受信されたときは、電源スイッチ信号Swがそのまま信号発生手段24によって電源制御信号Psに伝達され、コンピュータ10が起動される。また、コンピュータ10の電源が投入された状態においては、初期化時待機手段23aによって後述の待機状態とされる期間を除いて、前記信号S1又はS2が受信されたときは電源スイッチ信号Swがそのまま電源制御信号Psに伝達され、電源制御入力120に入力される。   The power control circuit 20 a includes a reading unit 21, a storage unit 22, an initialization standby unit 23 a, and a signal generation unit 24. When the computer 10 is turned off, the auxiliary power 162 is supplied to the storage means 22 and the signal generation means 24. When the computer 10 is off and the signal S1 or S2 from the power switch 30 or the external device 40 is received by the storage means 22, the power switch signal Sw is directly used as the power control signal Ps by the signal generating means 24. Then, the computer 10 is started. When the computer 10 is powered on, the power switch signal Sw remains as it is when the signal S1 or S2 is received, except for a period of time when the initialization standby unit 23a is in a standby state to be described later. It is transmitted to the power control signal Ps and input to the power control input 120.

読取手段21は、前記バス17に接続され、前記診断コードを読み取って、その診断コードを初期化時待機手段23aに送る。
初期化時待機手段23aは、所定コードと一致する診断コードが前記読取手段21によって読み取られるまで待機する。以下、前記所定コードをCa、前記待機の状態であることを示す信号を待機信号Taとする。
所定コードCaは、少なくともハードウェア10aの所定の入出力資源が初期化されたことを示す結果を含む診断コードである。前記所定コードは、前記初期化が終了した後に実行される他の初期化又は診断テストの結果を示すものであればよいが、所定の入出力資源の初期化が終了した直後に出力される診断コードであることが望ましい。
前記所定の入出力資源は、ハードウェア10aに具備される電源制御入力120からの入力信号をコンピュータ10が有効に検出し、該信号に基づく処理を実行するために必要なハードウェア資源とすることができる。当該ハードウェア資源は、ハードウェア10a内の電源制御入出力回路及びそれに係るコントローラ、前記処理を実行するために必要なメモリ等である。すなわち、所定コードCaは、これら最小限のハードウェア資源の初期化の結果を示す診断コードとすることができる。
The reading means 21 is connected to the bus 17, reads the diagnostic code, and sends the diagnostic code to the initialization standby means 23a.
The initialization standby unit 23a waits until the reading unit 21 reads a diagnostic code that matches a predetermined code. Hereinafter, the predetermined code is Ca, and a signal indicating the standby state is a standby signal Ta.
The predetermined code Ca is a diagnostic code including a result indicating that at least a predetermined input / output resource of the hardware 10a has been initialized. The predetermined code only needs to indicate the result of another initialization or diagnostic test executed after the initialization is completed, but the diagnosis output immediately after the initialization of the predetermined input / output resource is completed. The code is desirable.
The predetermined input / output resource is a hardware resource necessary for the computer 10 to effectively detect an input signal from the power control input 120 provided in the hardware 10a and execute processing based on the signal. Can do. The hardware resources include a power supply control input / output circuit in the hardware 10a, a controller related to the power control input / output circuit, a memory necessary for executing the processing, and the like. That is, the predetermined code Ca can be a diagnostic code indicating the result of initialization of these minimum hardware resources.

記憶手段22は、前記電源スイッチ信号Swの状態を監視し、当該信号がオンとなったことを検出した場合にはその検出を記憶する。以下、当該記憶された検出信号をShとする。
信号発生手段24は、前記初期化時待機手段23aから待機信号Taを、前記記憶手段22から電源スイッチ信号Sw及び検出信号Shを受信する。そして、前記電源制御入力120に電源制御信号Psを送信する。
The storage means 22 monitors the state of the power switch signal Sw and stores the detection when detecting that the signal is turned on. Hereinafter, the stored detection signal is referred to as Sh.
The signal generating unit 24 receives the standby signal Ta from the initialization standby unit 23 a and the power switch signal Sw and the detection signal Sh from the storage unit 22. Then, a power control signal Ps is transmitted to the power control input 120.

図2は電源制御回路20aの動作を示すタイムチャートである。以下、図2により電源制御回路20aの動作を説明する。
コンピュータ10の主電源161がoffの状態で電源スイッチ信号Swがon(イ)となると、電源制御入力120に入力される電源制御信号Psがonとなる。電源制御信号Psのon期間は具体的な回路構成によって異なるが、本信号によって主電源161が供給され、コンピュータが起動される。初期化時待機手段23aによって、待機状態であることを示す待機信号Taはonにセットされる。
コンピュータ10において、電源投入後、一定の入出力資源が初期化されるまでの期間(以下、不感期間t1とする。)、電源制御入力120に入力される信号は無効とされる。すなわち、不感期間t1の間に電源スイッチ信号Sw(ロ)が発生し、電源制御信号Psが入力されたとしても、当該信号はコンピュータ10には認識されず、電源遮断の処理は開始されないこととなる。そこで、記憶手段22によって、電源スイッチ信号Swがon(ロ)となったことが検出された場合には、当該検出が記憶されて検出信号Shがonにセットされる。
一方、電源投入後に実行される診断テストの経過は読取手段21によって読み取られる。前記所定の入出力資源が初期化された結果を含む所定コードCaに相当する診断コード(ハ)が読み取られたときには、前記不感期間t1は終了しており、コンピュータは電源制御入力120への入力信号を有効に認識できる状態になっている。そこで、初期化時待機手段23aによって、待機信号Taはoffにリセットされる(T1)。
FIG. 2 is a time chart showing the operation of the power supply control circuit 20a. Hereinafter, the operation of the power supply control circuit 20a will be described with reference to FIG.
When the power switch signal Sw is turned on while the main power supply 161 of the computer 10 is off, the power control signal Ps input to the power control input 120 is turned on. The on period of the power supply control signal Ps varies depending on the specific circuit configuration, but the main power supply 161 is supplied by this signal and the computer is started. The standby signal Ta indicating the standby state is set to on by the initialization standby means 23a.
In the computer 10, after the power is turned on, a signal input to the power control input 120 is invalidated until a certain input / output resource is initialized (hereinafter referred to as a dead time t1). That is, even if the power switch signal Sw (b) is generated during the dead period t1 and the power control signal Ps is input, the signal is not recognized by the computer 10 and the power shut-off process is not started. Become. Therefore, when the storage means 22 detects that the power switch signal Sw is turned on, the detection is stored and the detection signal Sh is set to on.
On the other hand, the progress of the diagnostic test executed after the power is turned on is read by the reading means 21. When the diagnostic code (c) corresponding to the predetermined code Ca including the result of initializing the predetermined input / output resource is read, the dead period t1 has ended, and the computer inputs to the power control input 120. The signal can be recognized effectively. Therefore, the standby signal Ta is reset to off by the initialization standby unit 23a (T1).

待機信号Taがオフにリセットされたとき(T1)、検出信号Shがonにセットされている場合には、信号発生手段24によって、電源制御入力120に電源制御信号Ps(ロ’)が送信される。保留された電源スイッチ信号(ロ)が、電源制御信号Ps(ロ’)として送信されたこととなり、記憶手段22によって検出信号Shはoffにリセットされる。
電源制御信号Ps(ロ’)の送信によって、コンピュータ10は電源遮断処理を開始し、その終了後に主電源161が遮断される。
また、前記待機状態が終了した後は、信号発生手段24によって、電源スイッチ信号Swの状態が電源制御信号Psに透過的に伝達される。すなわち、電源スイッチ信号Swがonとなったときは、保留されることなく電源制御信号Psがonとされ、ただちにコンピュータ10に電源遮断処理を開始させる。
When the standby signal Ta is reset to OFF (T1), when the detection signal Sh is set to on, the signal generator 24 transmits the power control signal Ps (b ') to the power control input 120. The The held power switch signal (b) is transmitted as the power control signal Ps (b ′), and the detection signal Sh is reset to off by the storage unit 22.
By transmitting the power control signal Ps (b ′), the computer 10 starts the power shut-off process, and after the end, the main power supply 161 is shut off.
Further, after the standby state is completed, the state of the power switch signal Sw is transparently transmitted to the power control signal Ps by the signal generator 24. That is, when the power switch signal Sw is turned on, the power control signal Ps is turned on without being suspended, and immediately causes the computer 10 to start the power shutdown process.

本発明の別の電源制御回路20bは、図3に示す通り、読取手段21、記憶手段22、ブート時待機手段23b及び信号発生手段24を備える。本回路の制御対象となるハードウェア10a、I/Oブリッジ12及び電源制御入力120、電源回路16、バス17、電源スイッチ30及び外部装置40については、前記電源制御回路20aの場合と同じである。また、電源スイッチ30及び外部装置40からの電源スイッチ信号S1及びS2、内部の電源スイッチ信号Sw及び検出信号Sh、電源制御入力120に送出される電源制御信号Psについても、前記電源制御回路20aの場合と同じである。
コンピュータ10の電源がオフの状態では、記憶手段22及び信号発生手段24に前記補助電源162が供給される。コンピュータ10の電源がオフの状態で電源スイッチ30又は外部装置40からの信号S1又はS2が記憶手段22で受信されたときは、電源スイッチ信号Swがそのまま電源制御信号Psに伝達され、コンピュータ10が起動される。また、コンピュータ10の電源が投入された状態においては、ブート時待機手段23bによって後述の待機状態とされる期間を除いて、前記信号S1又はS2が受信されたときは電源スイッチ信号Swがそのまま電源制御信号Psに伝達され、電源制御入力120に入力される。
As shown in FIG. 3, another power supply control circuit 20 b of the present invention includes a reading unit 21, a storage unit 22, a boot standby unit 23 b, and a signal generation unit 24. The hardware 10a, the I / O bridge 12, the power control input 120, the power circuit 16, the bus 17, the power switch 30, and the external device 40 to be controlled by this circuit are the same as those of the power control circuit 20a. . The power switch signal S1 and S2 from the power switch 30 and the external device 40, the internal power switch signal Sw and the detection signal Sh, and the power control signal Ps sent to the power control input 120 are also included in the power control circuit 20a. Same as the case.
When the computer 10 is turned off, the auxiliary power 162 is supplied to the storage means 22 and the signal generation means 24. When the signal S1 or S2 from the power switch 30 or the external device 40 is received by the storage means 22 with the computer 10 turned off, the power switch signal Sw is transmitted as it is to the power control signal Ps, and the computer 10 It is activated. When the computer 10 is turned on, the power switch signal Sw remains unchanged when the signal S1 or S2 is received, except during a period when the boot standby unit 23b is in a standby state to be described later. It is transmitted to the control signal Ps and input to the power supply control input 120.

コンピュータ10は、自己のハードウェア10aの初期化及び診断テストを行った後、HDD等15からメインメモリ13へのOSの読み込み(ブート)を開始する。このOSのブートの開始は、診断テストの経過(診断コード)を読み取ることによって知ることができる。読取手段21は、前記電源制御回路20aの読取手段と同じであり、前記診断コードを読み取る。
ブート時待機手段23bは、前記読取手段21によって読み取られた診断コードが所定コードと一致した後、所定時間が経過するまでの間待機する。当該所定時間を計時するため、ブート時待機手段23bはタイマーを内蔵する。以下、前記所定コードをCb、前記所定時間をtb、前記待機の状態であることを示す信号を待機信号Tbとする。
所定コードCbは、少なくともOSのブートの開始を示す結果を含む診断コードである。当該所定コードCbは、OSのブートの開始より前に実行される初期化又は診断テストの結果を示す診断コードであればよいが、OSのブートの開始直前に出力される診断コードであることが望ましい。
前記所定時間tbは、コンピュータ10がOSのブートを開始してから、前記電源制御入力120からの入力信号によって当該OSが正常に電源遮断処理を行うことができる状態になるまでの時間(以下、t2とする。)以上の、一定の時間とすることができる。当該時間t2は、コンピュータの構成や使用するOSの規模等によって大幅に異なるが、例えば、OSをHDD等からブートする場合、数秒から数十秒程度である。
The computer 10 initializes its own hardware 10a and performs a diagnostic test, and then starts reading (booting) the OS from the HDD 15 or the like to the main memory 13. The start of booting of the OS can be known by reading the progress of the diagnostic test (diagnostic code). The reading means 21 is the same as the reading means of the power supply control circuit 20a, and reads the diagnostic code.
The boot standby unit 23b waits until a predetermined time elapses after the diagnostic code read by the reading unit 21 matches the predetermined code. In order to time the predetermined time, the boot time standby means 23b incorporates a timer. Hereinafter, the predetermined code is Cb, the predetermined time is tb, and a signal indicating the standby state is a standby signal Tb.
The predetermined code Cb is a diagnostic code including at least a result indicating the start of booting of the OS. The predetermined code Cb may be a diagnostic code indicating the result of initialization or a diagnostic test executed before the start of the OS boot, but may be a diagnostic code output immediately before the start of the OS boot. desirable.
The predetermined time tb is a time from when the computer 10 starts booting the OS until the OS can perform a power-off process normally by an input signal from the power control input 120 (hereinafter, referred to as the “time tb”). t2)) It is possible to set a certain time as described above. The time t2 varies greatly depending on the configuration of the computer, the scale of the OS to be used, and the like. For example, when the OS is booted from the HDD or the like, it is about several seconds to several tens of seconds.

信号発生手段24は、前記ブート時待機手段23bから待機信号Tbを、前記記憶手段22から電源スイッチ信号Sw及び検出信号Shを受信する。そして、前記電源制御入力120に電源制御信号Psを送信する。   The signal generator 24 receives the standby signal Tb from the boot standby unit 23b and the power switch signal Sw and the detection signal Sh from the storage unit 22. Then, a power control signal Ps is transmitted to the power control input 120.

図4は電源制御回路20bの動作を示すタイムチャートである。以下、図4により電源制御回路20bの動作を説明する。
コンピュータ10の主電源161がoffの状態で電源スイッチ信号Swがon(イ)となると、電源制御信号Psがonとなる。電源制御信号Psのon期間は具体的な回路構成によって異なるが、本信号によって主電源161が供給され、コンピュータが起動される。ブート時待機手段23bによって、待機信号Tbはoffにリセットされる。
電源投入後に診断テストが実行され、読取手段21によって診断コードが読み取られる。そして、少なくともOSのブートの開始を示す結果を含む前記所定コードCbに相当する診断コード(ニ)を読み取ったとき、ブート時待機手段23bによって待機信号Tbがonにセットされると同時にタイマーがスタートされる(Ts)。前記待機信号Tbがonの間、信号発生手段24によって電源制御信号Psの送信は禁止される。
当該タイマーは、前記所定時間tbを計時する。所定時間tbは、前述の通り、OSのブート開始から、当該OSが正常に電源遮断処理を行うことができる状態になるまでの時間t2以上の、一定の時間とすることができる。それにより、OSの正常な処理に確実に移行するまで電源遮断を禁止することができる。所定時間tbが経過したとき、待機信号Tbはoffにリセットされる(T2)。
一方、待機状態、すなわち待機信号Tbがonである期間に電源スイッチ信号Swがon(ロ)となった場合、当該信号は記憶手段22によって記憶され、当該検出を示す検出信号Shがonにセットされる。
FIG. 4 is a time chart showing the operation of the power supply control circuit 20b. Hereinafter, the operation of the power supply control circuit 20b will be described with reference to FIG.
When the power switch signal Sw is turned on while the main power supply 161 of the computer 10 is off, the power control signal Ps is turned on. The on period of the power supply control signal Ps varies depending on the specific circuit configuration, but the main power supply 161 is supplied by this signal and the computer is started. The standby signal Tb is reset to off by the boot standby unit 23b.
A diagnostic test is executed after the power is turned on, and the diagnostic code is read by the reading means 21. When a diagnostic code (d) corresponding to the predetermined code Cb including at least a result indicating the start of booting of the OS is read, the timer is started simultaneously with the standby signal Tb being set by the boot standby unit 23b. (Ts). While the standby signal Tb is on, the signal generator 24 prohibits transmission of the power control signal Ps.
The timer times the predetermined time tb. As described above, the predetermined time tb can be a certain time that is equal to or longer than the time t2 from when the OS starts to boot until the OS can normally perform the power-off process. As a result, it is possible to prohibit power-off until the OS is surely shifted to normal processing. When the predetermined time tb has elapsed, the standby signal Tb is reset to off (T2).
On the other hand, when the power switch signal Sw is turned on in the standby state, that is, the period when the standby signal Tb is on, the signal is stored by the storage means 22 and the detection signal Sh indicating the detection is set to on. Is done.

待機信号Tbがoffにリセットされたとき(T2)、検出信号Shがonにセットされている場合には、信号発生手段24によって電源制御入力120に電源制御信号Ps(ロ’)が送信される。保留した電源スイッチ信号Sw(ロ)が電源制御信号Ps(ロ’)として送信されたこととなり、記憶手段22によって検出信号Shがoffにリセットされる。
電源制御信号Ps(ロ’)の送信によって、コンピュータ10は電源遮断処理を開始し、その終了後に主電源161が遮断される。
また、前記待機状態ではないとき、すなわちTsより前又はT2より後においては、信号発生手段24によって、電源スイッチ信号Swの状態が電源制御信号Psに透過的に伝達される。すなわち、電源スイッチ信号Swがonとなったときは、保留されることなく電源制御信号Psがonとされ、ただちにコンピュータ10に電源遮断処理を開始させる。
When the standby signal Tb is reset to off (T2), when the detection signal Sh is set to on, the power generation control signal Ps (b ') is transmitted to the power supply control input 120 by the signal generator 24. . The held power switch signal Sw (b) is transmitted as the power control signal Ps (b ′), and the storage unit 22 resets the detection signal Sh to off.
By transmitting the power control signal Ps (b ′), the computer 10 starts the power shut-off process, and after the end, the main power supply 161 is shut off.
When not in the standby state, that is, before Ts or after T2, the state of the power switch signal Sw is transparently transmitted to the power control signal Ps by the signal generator 24. That is, when the power switch signal Sw is turned on, the power control signal Ps is turned on without being suspended, and immediately causes the computer 10 to start the power shutdown process.

主たる発明である前記電源制御回路20aは、別の発明である前記ブート時待機手段23bを更に備えることができる。この場合、電源制御回路20aにおいて、初期化時待機手段23aと並列にブート時待機手段23bを更に備え、読取手段21の出力信号は前記待機手段23a及び23bに入力される。また、前記待機手段23a及び23bがそれぞれ出力する待機信号Ta及びTbが信号発生手段24に送られ、信号発生手段24はTa又はTbのいずれかの信号がonのとき待機状態と判断する。
図5は、コンピュータの電源投入直後に初期化時待機手段23aが動作し、その後、ブート時待機手段23bが動作する場合のタイムチャートである。図5において、T1は所定の入出力資源が初期化されたことを示す結果を含む診断コード「ハ」を読み取った時、TsはOSのブート開始を示す結果を含む診断コード「ニ」を読み取った時、T2はTsから所定時間tbが経過した時を示す。
電源が投入されてからT1までの間、及びTsからT2までの間、待機信号(Ta又はTb)がonにセットされ、その間に電源スイッチ信号Swを受信した場合には、前記待機信号がoffとされた直後に電源制御信号Psが送信され、コンピュータの電源遮断処理が開始される(図示せず)。T1からTsまでの前記待機信号がoffの間に電源スイッチ信号Swを受信した場合には、ただちに電源制御信号Psが出力され、OSをブートすることなくコンピュータの電源遮断処理が開始される(図示せず)。
The power supply control circuit 20a which is a main invention can further include the boot standby unit 23b which is another invention. In this case, the power supply control circuit 20a further includes a boot standby unit 23b in parallel with the initialization standby unit 23a, and an output signal of the reading unit 21 is input to the standby units 23a and 23b. The standby signals Ta and Tb output from the standby units 23a and 23b are sent to the signal generating unit 24. The signal generating unit 24 determines that the standby state is established when either the Ta or Tb signal is on.
FIG. 5 is a time chart when the initialization standby unit 23a operates immediately after the computer is turned on, and the boot standby unit 23b operates thereafter. In FIG. 5, when T1 reads a diagnostic code “c” including a result indicating that a predetermined input / output resource is initialized, Ts reads a diagnostic code “d” including a result indicating the start of booting of the OS. T2 indicates the time when a predetermined time tb has elapsed from Ts.
The standby signal (Ta or Tb) is set to on during T1 after power is turned on and from Ts to T2, and when the power switch signal Sw is received during that time, the standby signal is turned off. Immediately after that, the power control signal Ps is transmitted, and the power-off process of the computer is started (not shown). When the power switch signal Sw is received while the standby signal from T1 to Ts is off, the power control signal Ps is output immediately, and the power-off process of the computer is started without booting the OS (see FIG. Not shown).

電源制御回路20a及び電源制御回路20bは、詳しくは図6に例示するような回路によって構成することができる。
読取手段21は、バス入力回路211からなり、診断コードを読み取る。
記憶手段22は、電源スイッチ信号入力回路221及び記憶回路222を備える。電源スイッチ信号入力回路221は、電源スイッチ30・外部装置等40からの信号S1・S2を受信し、電源スイッチ信号Swを生成する。前記信号S1又はS2の規格・特性が電源制御入力120の規格・特性と異なる場合は、本回路によって電源制御入力120と規格・特性と互換性を有する電源スイッチ信号Swに変換することができる。記憶回路222は、電源スイッチ信号Swを受信したとき、検出信号Shをセットする。検出信号Shは、電源制御信号Psが送出されたときリセットされる。
初期化時待機手段23aは、比較回路a(231a)及び待機回路a(233a)を備える。比較回路aは、診断コードが前述の所定コードCaと一致したとき待機回路aに信号(Ca検出)を送り、該信号により待機回路aは待機信号Taをリセットする。
ブート時待機手段23bは、比較回路b(231b)、タイマー回路(232)及び待機回路b(233b)を備える。比較回路bは、診断コードが前述の所定コードCbと一致したとき信号(Cb検出)を出力し、該信号によってタイマー回路がスタートされると同時に待機回路bは待機信号Tbをセットする。そしてタイマー回路によって所定時間が経過したとき、待機回路bは待機信号Tbをリセットする。
信号発生手段24は、信号発生回路242及び周辺ロジックを備える。信号発生回路242は、前記Ta又はTbのいずれかの待機信号(Ta+Tb)がリセットされたとき、記憶回路222によって検出信号Shがセットされていた場合は、電源制御信号Psを送信する。また、素子245は、前記待機信号がセットされていないときは、電源スイッチ信号Swを受信したとき、保留することなく電源制御信号Psとして送信するための回路である。
Specifically, the power supply control circuit 20a and the power supply control circuit 20b can be configured by a circuit illustrated in FIG.
The reading unit 21 includes a bus input circuit 211 and reads a diagnostic code.
The storage unit 22 includes a power switch signal input circuit 221 and a storage circuit 222. The power switch signal input circuit 221 receives the signals S1 and S2 from the power switch 30 and the external device 40, and generates a power switch signal Sw. When the standard / characteristic of the signal S1 or S2 is different from the standard / characteristic of the power supply control input 120, it can be converted into a power switch signal Sw compatible with the power supply control input 120 and the standard / characteristic by this circuit. The memory circuit 222 sets the detection signal Sh when receiving the power switch signal Sw. The detection signal Sh is reset when the power supply control signal Ps is sent.
The initialization standby unit 23a includes a comparison circuit a (231a) and a standby circuit a (233a). The comparison circuit a sends a signal (Ca detection) to the standby circuit a when the diagnostic code matches the predetermined code Ca, and the standby circuit a resets the standby signal Ta by the signal.
The boot standby unit 23b includes a comparison circuit b (231b), a timer circuit (232), and a standby circuit b (233b). The comparison circuit b outputs a signal (Cb detection) when the diagnostic code matches the predetermined code Cb, and the standby circuit b sets the standby signal Tb at the same time when the timer circuit is started by the signal. Then, when a predetermined time has elapsed by the timer circuit, the standby circuit b resets the standby signal Tb.
The signal generation means 24 includes a signal generation circuit 242 and peripheral logic. When the standby signal (Ta + Tb) of either Ta or Tb is reset when the detection signal Sh is set by the memory circuit 222, the signal generation circuit 242 transmits the power control signal Ps. The element 245 is a circuit for transmitting the power switch signal Sw without being put on hold when the power switch signal Sw is received when the standby signal is not set.

以上に述べた電源制御回路を前記ハードウェア10aの一部として備えたコンピュータを実現することができる。
第1に、電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行するコンピュータであって、前記電源制御回路20aを備えるコンピュータである。
第2に、電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行した後にOSを起動するコンピュータであって、前記電源制御回路20bを備えたコンピュータ、又は前記電源制御回路20aに更に前記ブート時待機手段23bを備えたコンピュータである。
A computer including the power supply control circuit described above as a part of the hardware 10a can be realized.
The first is a computer that performs at least initialization of its own hardware and a diagnostic test when the power is turned on, and includes the power supply control circuit 20a.
Second, a computer that starts up an OS after executing at least initialization of hardware and a diagnostic test when power is turned on, the computer including the power control circuit 20b, or the power control circuit 20a It is a computer provided with boot time standby means 23b.

本発明の電源制御方法は、電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを行うコンピュータの電源を制御する電源制御方法である。当該コンピュータは、前記コンピュータ10と同じである。
本電源制御方法は、そのすべてをハードウェアにより実現することができる。当該ハードウェアは、単独又は他の制御機能と合わせて、コンピュータ10の一部に組み込まれて実装されてもよい。例えば、前記電源制御回路20aを前記ハードウェア10aの一部に備えるコンピュータである。
また、本電源制御方法は、その大半をソフトウェアによって実現することもできる。当該ソフトウェアは、コンピュータ10上のプログラムとして実現されてもよく、前記ハードウェア10a上のファームウェアとして実現されてもよい。単独又は他の制御機能と合わせて、例えば、組込みコントローラ、プログラマブル・ロジック・デバイス等のプログラムとして実装されることができる。
The power supply control method of the present invention is a power supply control method for controlling the power supply of a computer that performs at least initialization of hardware and a diagnostic test when power is turned on. The computer is the same as the computer 10.
All of the power control method can be realized by hardware. The hardware may be implemented by being incorporated in a part of the computer 10 alone or in combination with other control functions. For example, it is a computer provided with the power supply control circuit 20a as a part of the hardware 10a.
Further, most of the power control method can be realized by software. The software may be realized as a program on the computer 10 or may be realized as firmware on the hardware 10a. For example, it can be implemented as a program of an embedded controller, a programmable logic device, etc. alone or in combination with other control functions.

第1の電源制御方法は、前記コンピュータの電源投入後、そのハードウェアの初期化時における電源制御方法である。図7はその制御方法を示すフローチャートである。
本電源制御方法は、前記初期化及び診断テストの経過を読み取り、少なくとも所定の結果を含む前記経過を読み取るまで待機する初期化時待機工程(P1)と、前記待機工程P1を実行する間、前記コンピュータの電源を制御するための電源スイッチ信号を監視して、該信号を検出したときは該検出を記憶する記憶工程(P2)と、前記待機工程P1の後に行われ、前記記憶工程P2によって前記検出が記憶されている場合はコンピュータに電源の遮断を指示する遮断指示工程(P3)とを備える。
前記所定の結果とは、前記コンピュータが電源遮断の指示を有効に認識し該指示に基づき電源遮断処理を実行するために必要なハードウェア資源が初期化されたことを示す結果である。以下、少なくとも当該結果を含む初期化及び診断テストの経過を、所定コードCaとする。
前期電源スイッチ信号とは、前記電源スイッチ30又は前記外部装置等40によって発生される信号である。これらの信号は、ハードウェア又はソフトウェアの処理により、前述の電源スイッチ信号Swと同様にコンピュータの電源の遮断を要求する信号として検出することができる。
コンピュータに電源の遮断を指示するとは、例えば、前記ハードウェア10aに具備する電源制御入力120に電源の遮断を指示する制御信号を送信することである。
The first power control method is a power control method when the hardware is initialized after the computer is turned on. FIG. 7 is a flowchart showing the control method.
This power supply control method reads the progress of the initialization and diagnostic tests, waits until the progress including at least a predetermined result is read, and the initialization standby step (P1), while executing the standby step P1 A power switch signal for controlling the power supply of the computer is monitored, and when the signal is detected, a storage step (P2) for storing the detection is performed after the standby step P1 and the storage step P2 In the case where the detection is stored, a shutdown instruction step (P3) for instructing the computer to shut off the power supply is provided.
The predetermined result is a result indicating that the hardware resource necessary for the computer to effectively recognize the power-off instruction and execute the power-off process based on the instruction is initialized. Hereinafter, at least the initialization and diagnostic test process including the result are defined as a predetermined code Ca.
The previous power switch signal is a signal generated by the power switch 30 or the external device 40 or the like. These signals can be detected by hardware or software processing as signals that request the computer to be turned off, similar to the power switch signal Sw described above.
Instructing the computer to turn off the power is, for example, transmitting a control signal instructing to turn off the power to the power control input 120 provided in the hardware 10a.

最初に、コンピュータの電源が投入されると、BIOSによってコンピュータのハードウェアの初期化及び診断テストが開始される(S101)。
初期化時待機工程P1は、前記初期化及び診断テストの経過を読み取るステップ(S113)と、読み取った前記経過が前記所定コードCaと一致するか否かを判断するステップ(S114)を備え、所定コードCaと一致する前記経過が読み取られるまで待機する。
記憶工程P2は、前記初期化時待機工程P1における待機の間、前記電源スイッチ信号の状態を監視するステップ(S111)と、当該電源スイッチ信号を検出した場合に当該検出を記憶するステップ(S112)を備える。
初期化時遮断指示工程P3は、前記初期化時待機工程P1によって待機が終了した後、前記記憶工程P2において電源スイッチ信号の検出が記憶されているか否かを判断するステップ(S121)と、当該検出が記憶されている場合はコンピュータに電源遮断を指示するステップ(S122)を備える。
First, when the computer is turned on, initialization of the computer hardware and a diagnostic test are started by the BIOS (S101).
The initialization standby process P1 includes a step of reading the progress of the initialization and diagnostic test (S113) and a step of determining whether the read progress matches the predetermined code Ca (S114). Wait until the process that matches the code Ca is read.
The storing step P2 monitors the state of the power switch signal during the standby in the initialization standby step P1 (S111), and stores the detection when the power switch signal is detected (S112). Is provided.
The initialization shutoff instruction process P3 includes a step (S121) of determining whether or not the detection of the power switch signal is stored in the storage process P2 after the standby is completed in the initialization standby process P1. When the detection is stored, the computer includes a step (S122) of instructing the computer to turn off the power.

第2の電源制御方法は、電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを行った後にOSをブートするコンピュータにおいて、OSのブート時を中心とする電源制御方法である。図8はその制御方法を示すフローチャートである。
本電源制御方法は、前記初期化及び診断テストの経過を読み取り、少なくとも所定の結果を含む前記経過を読み取るまで待機する読取工程(P4)と、前記読取工程P4の後、所定の時間が経過するまで待機するブート時待機工程(P5)と、前記ブート時待機工程P5における待機の間、前記電源を制御するための電源スイッチ信号を監視して該信号を検出したときは前記コンピュータへの電源の遮断の指示を保留して該検出を記憶するブート時記憶工程(P6)と、前記ブート時待機工程P5の後、前記ブート時記憶工程P6によって前記検出が記憶されている場合は前記コンピュータに電源の遮断を指示する遮断指示工程(P7)とを備える。
前記所定の結果とは、OSのブートの開始を示す結果である。以下、少なくとも当該結果を含む初期化及び診断テストの経過を、所定コードCbとする。
前記所定の時間は、OSのブートの開始から該OSが正常に電源の遮断処理ができる状態になるまでの時間以上の一定の時間とすることができる。
前期電源スイッチ信号は、前記第1の電源制御方法の場合と同じである。
コンピュータに電源の遮断を指示する意義も、前記第1の電源制御方法の場合と同じである。
The second power supply control method is a power supply control method centering on the time of booting the OS in a computer that boots the OS after performing at least initialization of hardware and a diagnostic test at the time of power-on. FIG. 8 is a flowchart showing the control method.
In this power supply control method, a reading process (P4) that waits until the progress including at least a predetermined result is read after reading the initialization and the diagnostic test, and a predetermined time elapses after the reading process P4. During the standby time in booting (P5) and waiting in the standby time in booting P5, when the power switch signal for controlling the power supply is monitored and detected, the power supply to the computer is After the boot storage process (P6) for storing the detection by holding the shutdown instruction and the boot standby process P5, if the detection is stored by the boot storage process P6, the computer is powered on. And a shut-off instruction step (P7) for instructing shut-off.
The predetermined result is a result indicating the start of booting of the OS. Hereinafter, the progress of initialization and diagnostic test including at least the result is referred to as a predetermined code Cb.
The predetermined time may be a certain time that is equal to or longer than the time from the start of the OS boot until the OS is in a state where the power can be normally shut off.
The first power switch signal is the same as that in the first power control method.
The significance of instructing the computer to turn off the power is the same as in the first power control method.

読取工程P4は、前記初期化及び診断テストの経過を読み取るステップ(S201)と、当該経過が所定コードCbと一致するか否かを判断するステップ(S202)を備え、所定コードCbと一致する前記経過が読み取られるまで待機する。
前記読取工程P4に組み込まれた副工程(P41)は、電源スイッチ信号の状態を監視するステップ(S203)と、電源スイッチ信号を検出した場合にはコンピュータに電源遮断を指示するステップ(S204)を備える。副工程P41によって、読取工程P4の間に電源スイッチ信号を受信した場合には、ただちにコンピュータに電源遮断を指示して、OSをブートすることなくコンピュータの電源を遮断することができる。
ブート時待機工程P5は、前記読取工程P4の後、コンピュータに対する電源遮断の指示を禁止するとともにタイマーをスタートさせるステップ(S211)と、当該タイマーによって前記所定時間が計時されるまで待機するステップ(S214)を備える。
ブート時記憶工程P6は、前記ブート時待機工程P5における待機の間、電源スイッチ信号を監視するステップ(S212)と、該信号を検出した場合は該検出を記憶するステップ(S213)を備える。
ブート時遮断指示工程P7は、前記ブート時待機工程P5によって待機が終了した後、前記ブート時記憶工程P6によって電源スイッチ信号の検出が記憶されているか否かを判断するステップ(S221)と、当該検出が記憶されている場合はコンピュータに電源遮断を指示するステップ(S222)を備える。
The reading step P4 includes a step (S201) of reading the progress of the initialization and diagnostic test, and a step (S202) of determining whether the progress matches the predetermined code Cb, and the reading step P4 matches the predetermined code Cb. Wait until the progress is read.
The sub-process (P41) incorporated in the reading process P4 includes a step of monitoring the state of the power switch signal (S203) and a step of instructing the computer to turn off the power when the power switch signal is detected (S204). Prepare. When the power switch signal is received during the reading process P4 by the sub-process P41, it is possible to immediately instruct the computer to shut off the power and shut off the computer without booting the OS.
In the boot standby process P5, after the reading process P4, a step of prohibiting a power-off instruction to the computer and starting a timer (S211), and a step of waiting until the predetermined time is counted by the timer (S214) ).
The boot time storage process P6 includes a step of monitoring the power switch signal during the standby in the boot time standby process P5 (S212) and a step of storing the detection when the signal is detected (S213).
The boot shut-off instruction process P7 includes a step (S221) of determining whether the detection of the power switch signal is stored in the boot storage process P6 after the standby is completed in the boot standby process P5, When the detection is stored, the computer includes a step (S222) of instructing the computer to turn off the power.

上記第2の電源制御方法の工程P4〜P7は、前記第1の電源制御方法の工程P1〜P3(S111〜S122)の後に行われる工程であるが、前記第1の電源制御方法を使用しない場合は、初期化及び診断テストの開始(図6 S101)後に行われてもよい。   Steps P4 to P7 of the second power supply control method are steps performed after steps P1 to P3 (S111 to S122) of the first power supply control method, but the first power supply control method is not used. The case may be performed after the initialization and the start of the diagnostic test (S101 in FIG. 6).

コンピュータ及び電源制御回路の構成を示すブロック図である。It is a block diagram which shows the structure of a computer and a power supply control circuit. 初期化時の電源制御回路の動作を示すタイムチャートである。It is a time chart which shows operation | movement of the power supply control circuit at the time of initialization. ブート時の電源制御回路の構成を示すブロック図である。It is a block diagram which shows the structure of the power supply control circuit at the time of booting. ブート時の電源制御回路の動作を示すタイムチャートである。It is a time chart which shows operation | movement of the power supply control circuit at the time of booting. 初期化時に続くブート時の電源制御回路の動作を示すタイムチャートである。It is a time chart which shows operation | movement of the power supply control circuit at the time of a boot following the initialization. 電源制御回路の構成例を示す回路図である。It is a circuit diagram which shows the structural example of a power supply control circuit. 第1の電源制御方法を示すフローチャートである。It is a flowchart which shows the 1st power supply control method. 第2の電源制御方法を示すフローチャートである。It is a flowchart which shows the 2nd power supply control method.

符号の説明Explanation of symbols

10;コンピュータ、10a;ハードウェア、12;I/Oブリッジ、16;電源回路、17;バス、20a、20b;電源制御回路、21;読取手段、22;記憶手段、23a;初期化時待機手段、23b;ブート時待機手段、24;信号発生手段、30;電源スイッチ、40;外部装置等、120;電源制御入力、161;電源(主電源)、162;補助電源、Sw;電源スイッチ信号、Sh;検出信号、Ta、Tb;待機信号、Ps;電源制御信号 DESCRIPTION OF SYMBOLS 10; Computer, 10a; Hardware, 12; I / O bridge, 16; Power supply circuit, 17; Bus, 20a, 20b; Power supply control circuit, 21; Reading means, 22; Storage means, 23a; 23b; boot standby means 24; signal generating means 30; power switch 40; external device etc. 120 power supply control input 161 power supply (main power supply) 162 power supply switch Sw power switch signal Sh: Detection signal, Ta, Tb: Standby signal, Ps: Power control signal

Claims (8)

電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行するプログラムが搭載されたコンピュータの電源を制御する電源制御回路であって、
前記プログラムによる初期化及び診断テストの経過を読み取る読取手段と、
前記電源を制御するための電源スイッチ信号を検出し該検出を記憶する記憶手段と、
前記読取手段によって少なくとも前記ハードウェアの所定の入出力資源が初期化されたことを示す結果を含む前記経過を読み取るまで待機する初期化時待機手段と、
前記初期化時待機手段によって前記待機が終了したとき前記記憶手段によって前記検出が記憶されている場合は、前記ハードウェアに具備する電源制御入力に電源の遮断を指示する制御信号を送信する信号発生手段と、
を備え
前記所定の入出力資源は、前記電源制御入力からの入力信号を前記コンピュータが有効に検出し該信号に基づき電源遮断処理を実行するために必要なハードウェア資源であることを特徴とする電源制御回路。
A power supply control circuit for controlling the power supply of a computer on which a program for executing at least initialization of hardware and a diagnostic test at the time of power-on is installed,
Reading means for reading the progress of initialization and diagnostic test by the program;
Storage means for detecting a power switch signal for controlling the power supply and storing the detection;
An initialization wait unit for waiting until the reading unit reads the progress including a result indicating that at least a predetermined input / output resource of the hardware is initialized by the reading unit;
When the standby is completed by the initialization standby unit, when the detection is stored by the storage unit, a signal is generated to transmit a control signal instructing power supply to the power control input provided in the hardware Means,
Equipped with a,
The predetermined input / output resource is a hardware resource necessary for the computer to effectively detect an input signal from the power control input and execute a power shutdown process based on the signal. circuit.
前記プログラムが前記初期化及び診断テストを実行した後にオペレーティングシステムをブートするコンピュータであって、
前記読取手段によって少なくとも前記オペレーティングシステムのブートの開始を示す結果を含む前記経過を読み取ってから所定時間が経過するまで待機するブート時待機手段と、
前記ブート時待機手段によって前記待機される間は電源の遮断の指示を禁止し、当該待機が終了したとき前記記憶手段によって前記検出が記憶されている場合は、前記電源制御入力に電源の遮断を指示する制御信号を送信する信号発生手段と、
を更に備え、
前記所定時間は、前記オペレーティングシステムのブートが開始されてから前記電源制御入力からの入力信号によって該オペレーティングシステムが正常に電源遮断処理ができる状態になるまでの時間以上の一定の時間である請求項1記載の電源制御回路。
A computer that boots an operating system after the program has performed the initialization and diagnostic tests;
Boot time standby means for waiting until a predetermined time elapses after reading the progress including at least a result indicating the start of booting of the operating system by the reading means;
While the standby by the boot time waiting means is prohibited, an instruction to turn off the power is prohibited. When the detection is stored by the storage means when the standby is completed, the power supply control input is turned off. Signal generating means for transmitting a control signal to instruct;
Further comprising
The predetermined time is a fixed time that is equal to or longer than a time from when the boot of the operating system is started until the operating system can normally perform power-off processing by an input signal from the power control input. The power supply control circuit according to 1.
電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行した後にオペレーティングシステムをブートするプログラムが搭載されたコンピュータの電源を制御する電源制御回路であって、
前記プログラムによる初期化及び診断テストの経過を読み取る読取手段と、
前記電源を制御するための電源スイッチ信号を検出し該検出を記憶する記憶手段と、
前記読取手段によって少なくとも前記オペレーティングシステムのブートの開始を示す結果を含む前記経過を読み取ってから所定時間が経過するまでは待機するブート時待機手段と、
前記ブート時待機手段によって前記待機される間は電源の遮断の指示を禁止し、当該待機が終了したとき前記記憶手段によって前記検出が記憶されている場合は、前記ハードウェアに具備する電源制御入力に電源の遮断を指示する制御信号を送信する信号発生手段と、
を備え
前記所定時間は、前記オペレーティングシステムのブートが開始されてから前記電源制御入力からの入力信号によって該オペレーティングシステムが正常に電源遮断処理ができる状態になるまでの時間以上の一定の時間であることを特徴とする電源制御回路。
A power supply control circuit for controlling the power supply of a computer equipped with a program for booting an operating system after executing at least initialization of hardware and a diagnostic test at the time of power-on,
Reading means for reading the progress of initialization and diagnostic test by the program;
Storage means for detecting a power switch signal for controlling the power supply and storing the detection;
Boot time standby means for waiting until a predetermined time elapses after reading the progress including at least a result indicating the start of booting of the operating system by the reading means;
The power-off control instruction provided in the hardware is prohibited when an instruction to shut off the power supply is prohibited during the standby by the boot time standby means, and the detection is stored by the storage means when the standby is completed. A signal generating means for transmitting a control signal instructing to shut off the power to
Equipped with a,
The predetermined time is a fixed time equal to or longer than a time from when the booting of the operating system is started until the operating system can normally perform power-off processing by an input signal from the power control input. A characteristic power supply control circuit.
電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行するプログラムが搭載されたコンピュータであって、請求項1記載の電源制御回路を備えるコンピュータ。   2. A computer having a power control circuit according to claim 1, wherein the computer is equipped with a program for executing at least initialization of hardware and a diagnostic test when power is turned on. 電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行した後にオペレーティングシステムをブートするプログラムが搭載されたコンピュータであって、請求項2又は3に記載の電源制御回路を備えるコンピュータ。 A computer equipped with a program for booting an operating system after executing at least initialization of hardware and a diagnostic test when power is turned on, and comprising the power supply control circuit according to claim 2 or 3 . 電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行するプログラムが搭載されたコンピュータの電源を制御する電源制御方法であって、
前記プログラムによる初期化及び診断テストの経過を読み取り、少なくとも前記コンピュータが電源遮断の指示を有効に認識し該指示に基づき電源遮断処理を実行するために必要なハードウェア資源が初期化されたことを示す結果を含む前記経過を読み取るまで待機する初期化時待機工程と、
前記初期化時待機工程と並行し、前記電源を制御するための電源スイッチ信号を監視して該信号を検出したときは該検出を記憶する記憶工程と、
前記初期化時待機工程の後に、前記記憶工程によって前記検出が記憶されている場合は前記コンピュータに電源の遮断を指示する初期化時遮断指示工程と、
を備えることを特徴とする電源制御方法。
A power supply control method for controlling the power supply of a computer on which a program for executing at least initialization of hardware and diagnostic tests at the time of power-on is installed,
The progress of initialization and diagnostic tests by the program is read, and at least the computer recognizes the power-off instruction effectively, and the hardware resources necessary for executing the power-off process based on the instruction are initialized. An initialization standby step of waiting until reading the progress including the result shown;
In parallel with the initialization standby step, a storage step of monitoring the power switch signal for controlling the power source and storing the detection when the signal is detected;
After the initialization standby step, when the detection is stored by the storage step, an initialization shutdown instruction step that instructs the computer to turn off the power;
A power supply control method comprising:
前記プログラムが前記初期化及び診断テストを実行した後にオペレーティングシステムをブートするコンピュータであって、
前記初期化時遮断指示工程の後更に前記プログラムによる初期化及び診断テストの経過を読み取り、少なくとも前記オペレーティングシステムのブートの開始を示す結果を含む前記経過を読み取るまで待機する読取工程と、
前記読取工程の後、該オペレーティングシステムのブートの開始から該オペレーティングシステムが正常に電源遮断処理ができる状態になるまでの時間以上の一定の時間が経過するまで待機し、該待機の間は前記コンピュータに対する電源遮断の指示を保留するブート時待機工程と、
前記ブート時待機工程と並行し、前記電源を制御するための電源スイッチ信号を監視して該信号を検出したときは該検出を記憶する記憶工程と、
前記ブート時待機工程の後に、前記記憶工程によって前記検出が記憶されている場合は前記コンピュータに電源遮断を指示する遮断指示工程と、
を更に備える請求項記載の電源制御方法。
A computer that boots an operating system after the program has performed the initialization and diagnostic tests;
A reading step of reading the progress of the initialization and diagnostic test by the program after the shut-off instruction step at initialization and waiting until the progress including at least a result indicating the start of booting of the operating system is read;
After the reading step, the computer waits until a certain period of time from the start of booting of the operating system to a state where the operating system can normally perform power-off processing elapses. A standby process at the time of holding the power-off instruction for
In parallel with the standby process at the time of booting, a storage process for monitoring the power switch signal for controlling the power supply and storing the detection when the signal is detected;
If the detection is stored by the storage step after the boot standby step, a shutdown instruction step for instructing the computer to turn off the power;
The power supply control method according to claim 6 , further comprising:
電源投入時に少なくとも自己のハードウェアの初期化及び診断テストを実行した後にオペレーティングシステムをブートするプログラムが搭載されたコンピュータの電源を制御する電源制御方法であって、
前記プログラムによる初期化及び診断テストの経過を読み取り、少なくとも前記オペレーティングシステムのブートの開始を示す結果を含む前記経過を読み取るまで待機する読取工程と、
前記読取工程の後、該オペレーティングシステムのブートの開始から該オペレーティングシステムが正常に電源遮断処理ができる状態になるまでの時間以上の一定の時間が経過するまで待機し、該待機の間は前記コンピュータに対する電源遮断の指示を保留するブート時待機工程と、
前記ブート時待機工程と並行し、前記電源を制御するための電源スイッチ信号を監視して該信号を検出したときは該検出を記憶する記憶工程と、
前記ブート時待機工程の後に、前記記憶工程によって前記検出が記憶されている場合は前記コンピュータに電源遮断を指示する遮断指示工程と、
を備えることを特徴とする電源制御方法。
A power supply control method for controlling the power supply of a computer equipped with a program for booting an operating system after executing at least initialization of hardware and a diagnostic test at the time of power-on,
A reading step of reading the progress of the initialization and diagnostic tests by the program and waiting until reading the progress including at least a result indicating the start of booting of the operating system;
After the reading step, the computer waits until a certain period of time from the start of booting of the operating system to a state where the operating system can normally perform power-off processing elapses. A standby process at the time of holding the power-off instruction for
In parallel with the standby process at the time of booting, a storage process for monitoring the power switch signal for controlling the power supply and storing the detection when the signal is detected;
If the detection is stored by the storage step after the boot standby step, a shutdown instruction step for instructing the computer to turn off the power;
A power supply control method comprising:
JP2008097577A 2008-04-03 2008-04-03 Power supply control circuit, computer having the same, and power supply control method Active JP5342801B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008097577A JP5342801B2 (en) 2008-04-03 2008-04-03 Power supply control circuit, computer having the same, and power supply control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008097577A JP5342801B2 (en) 2008-04-03 2008-04-03 Power supply control circuit, computer having the same, and power supply control method

Publications (2)

Publication Number Publication Date
JP2009251829A JP2009251829A (en) 2009-10-29
JP5342801B2 true JP5342801B2 (en) 2013-11-13

Family

ID=41312496

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008097577A Active JP5342801B2 (en) 2008-04-03 2008-04-03 Power supply control circuit, computer having the same, and power supply control method

Country Status (1)

Country Link
JP (1) JP5342801B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6512948B2 (en) * 2015-05-29 2019-05-15 キヤノン株式会社 INFORMATION PROCESSING APPARATUS, IMAGE FORMING APPARATUS, CONTROL METHOD, AND PROGRAM

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0566860A (en) * 1991-09-05 1993-03-19 Toshiba Corp Power source controller
JPH11232183A (en) * 1998-02-11 1999-08-27 Nec Data Terminal Ltd Printer control information managing device and recording medium for recording control information management program
JP3373434B2 (en) * 1998-06-18 2003-02-04 シャープ株式会社 Information processing device
JP2004302731A (en) * 2003-03-31 2004-10-28 Toshiba Corp Information processor and method for trouble diagnosis
JP2006113722A (en) * 2004-10-13 2006-04-27 Canon Inc Shutdown processing system, control method, and storage medium
US20060090090A1 (en) * 2004-10-21 2006-04-27 Chiy-Ferng Perng Multifunction computer power button
JP2007244167A (en) * 2006-03-13 2007-09-20 Fujitsu Ltd Power supply control unit and power supply control method
JP4886558B2 (en) * 2007-03-13 2012-02-29 株式会社東芝 Information processing device

Also Published As

Publication number Publication date
JP2009251829A (en) 2009-10-29

Similar Documents

Publication Publication Date Title
US7624260B2 (en) System executing a fast boot wake-up
US8667264B2 (en) Expedited computer boot system and method
US7996665B2 (en) Information processing device, power supply control method and storage medium
JP4544246B2 (en) Control device and method, program, and recording medium
US8032773B2 (en) Power-saving control apparatus and method for computer system in standby mode
US8874889B2 (en) Method of switching between multiple operating systems of computer system
US7962734B2 (en) Method of restarting a computer platform
US9380181B2 (en) Information processing apparatus and method of controlling launch thereof
TWI498822B (en) Electronic device for bios updatable and bios updating method thereof
US20110040958A1 (en) Method of switching computer operating systems
EP2924538B1 (en) Computer system and method for its operation
TWI526934B (en) Method, apparatus, and computer program product for booting an information handling system
US9684519B2 (en) Electronic device using trigger signal and status signal to execute a plurality of booting modes
US20160179626A1 (en) Computer system, adaptable hibernation control module and control method thereof
JP5342801B2 (en) Power supply control circuit, computer having the same, and power supply control method
US9342392B2 (en) Image forming apparatus, image forming apparatus control method, and recording medium
CN106484438B (en) Computer startup method and system
KR101497706B1 (en) Apparatus and method for shutting down computer system
WO2012126345A1 (en) Computer startup method, startup apparatus, state transition method, and state transition apparatus
JP2010079572A (en) Information processor, external memory and control method
GB2572038A (en) Computer system, operational method for a microcontroller, and computer program product
KR100490392B1 (en) Computer system having the function of alarming power button override
JP7054037B1 (en) Information processing equipment and programs
JP2007004364A (en) Debug system, debug method, and program
JP2007323601A (en) Automatically restorable computer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110315

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120605

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120801

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20121106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130409

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130530

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130730

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130812

R150 Certificate of patent or registration of utility model

Ref document number: 5342801

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250