JP2827702B2 - Computer system - Google Patents

Computer system

Info

Publication number
JP2827702B2
JP2827702B2 JP4141794A JP14179492A JP2827702B2 JP 2827702 B2 JP2827702 B2 JP 2827702B2 JP 4141794 A JP4141794 A JP 4141794A JP 14179492 A JP14179492 A JP 14179492A JP 2827702 B2 JP2827702 B2 JP 2827702B2
Authority
JP
Japan
Prior art keywords
state
computer system
communication network
network
predetermined communication
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.)
Expired - Fee Related
Application number
JP4141794A
Other languages
Japanese (ja)
Other versions
JPH05333962A (en
Inventor
政登 杉井
学 明石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP4141794A priority Critical patent/JP2827702B2/en
Publication of JPH05333962A publication Critical patent/JPH05333962A/en
Application granted granted Critical
Publication of JP2827702B2 publication Critical patent/JP2827702B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、ポータブル型のワー
クステーション、パーソナルコンピュータなどのコンピ
ュータシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system such as a portable workstation and a personal computer.

【0002】[0002]

【従来の技術】近年、ポータブル型のワークステーショ
ン、パーソナルコンピュータなどのコンピュータシステ
ムの普及により、コンピュータシステムの可搬性が向上
してきている。これに伴い、システムを移動する前に電
源をオフ状態にし、再度、電源を投入(オン状態に)し
た時点で直ちに以前のシステム状態を回復するようにし
た機能を有するコンピュータシステムも実現されてい
る。この機能を利用することにより、ユーザは、以前の
システム状態で、素早く仕事を継続することができる。
2. Description of the Related Art In recent years, with the spread of computer systems such as portable workstations and personal computers, the portability of computer systems has been improved. Accordingly, a computer system having a function of turning off the power before moving the system and immediately restoring the previous system state when the power is turned on (turned on) again has been realized. . By using this function, the user can quickly continue working in the previous system state.

【0003】また、このようなコンピュータシステムに
は、2次記憶装置、プリンタ、モデムおよびネットワー
クインタフェース装置などの周辺装置が接続可能であ
り、モデム及びネットワークインタフェース装置を接続
することにより、モデムと接続される公衆電話回線やネ
ットワークインタフェース装置と接続されるネットワー
クを介して他のコンピュータシステムと通信する機能が
備えられている。
In addition, peripheral devices such as a secondary storage device, a printer, a modem, and a network interface device can be connected to such a computer system, and by connecting the modem and the network interface device, the computer system can be connected to the modem. It has a function of communicating with another computer system via a public telephone line or a network connected to a network interface device.

【0004】この場合、電源を切断した後、電源を再投
入した際にシステム状態を回復する場合において、電源
切断前の周辺装置の構成または周辺装置と接続されてい
るネットワークの構成が、電源投入後において変更され
ている場合がある。
In this case, in a case where the system state is restored when the power is turned off and then turned on again, the configuration of the peripheral device before the power is turned off or the configuration of the network connected to the peripheral device is changed. May be changed later.

【0005】このように周辺装置またはネットワークの
構成に変更があった場合のシステムの再起動の方法とし
ては、特願平2−230355号公報に開示されてもの
が知られている。この公報に開示されたものは、電源切
断前の周辺装置の構成を示す情報をシステム内部の特定
の場所に前状態として保存しておき、電源投入後、その
前状態(前の周辺装置の構成を示す情報)と現在の周辺
装置の構成を示す情報と比較し、この比較結果に基づい
て必要な初期化を行うようにしている。
[0005] As a method of restarting the system when the configuration of the peripheral device or the network is changed as described above, a method disclosed in Japanese Patent Application No. 2-230355 is known. According to the technique disclosed in this publication, information indicating the configuration of a peripheral device before power-off is stored as a previous state in a specific location inside the system, and after power-on, the previous state (the configuration of the previous peripheral device) is saved. ) Is compared with information indicating the current configuration of the peripheral device, and necessary initialization is performed based on the comparison result.

【0006】また他の方法としては、システム状態の回
復をあきらめて、新たにシステムを通常の起動方法で初
期化するようにした方法がある。
As another method, there is a method in which recovery of the system state is abandoned and the system is newly initialized by a normal boot method.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記公
報に開示されたものでは、周辺装置の構成を示す構成情
報を、それを記憶するためのCMOSメモリ装置等の特
別なハードウェアに保存しなければならず、メモリ資源
を有効に利用することができなかった。
However, in the apparatus disclosed in the above publication, the configuration information indicating the configuration of the peripheral device must be stored in special hardware such as a CMOS memory device for storing the configuration information. In addition, the memory resources could not be used effectively.

【0008】また、電源切断直前の周辺装置の構成を示
す構成と、電源投入後の現在の周辺装置の構成とを比較
し、該比較結果に応じて周辺装置の構成を示す構成デー
タを初期化しなければならず、このため、電源投入後
は、必ず、CMOSメモリ装置の記憶内容に対してアク
セスして、その記憶内容全てについて、前の周辺装置の
構成と現在の周辺装置の構成(状態)との比較(一致す
るか否か)の処理を実行しなければならないので、初期
化処理を迅速に行うことができない。
Further, the configuration indicating the configuration of the peripheral device immediately before the power is turned off is compared with the configuration of the current peripheral device after the power is turned on, and the configuration data indicating the configuration of the peripheral device is initialized according to the comparison result. Therefore, after the power is turned on, the storage contents of the CMOS memory device are always accessed, and the configuration of the previous peripheral device and the current configuration (state) of the current peripheral device are accessed for all the stored contents. Must be executed (match or not), and the initialization process cannot be performed quickly.

【0009】この発明は、通信装置を含む周辺装置の初
期化処理を迅速に行うことにより、システム起動時間を
大幅に短縮することのできるコンピュータシステムを提
供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a computer system capable of greatly shortening a system start-up time by rapidly performing a peripheral device including a communication device.

【0010】[0010]

【課題を解決するための手段】請求項1に係る発明は、
所定の通信ネットワークとの間の接続処理を行うインタ
ーフェース手段を有するコンピュータシステムであっ
て、前記インターフェース手段が前記所定の通信ネット
ワークと物理的に接続された状態で、前記所定の通信ネ
ットワーク上の情報を検出し、該情報をもとに前記イン
ターフェース手段が前記所定の通信ネットワークと論理
的な接続が可能な状態であるか否かを判別する判別手段
と、電源再投入時に前記判別手段によって判別された状
態に応じた初期化ルーチンを用いて前記インターフェー
ス手段を含めた当該コンピュータシステムのネットワー
ク環境を初期化する初期化手段とを具備したことを特徴
とするコンピュータシステム。
The invention according to claim 1 is
A computer system having an interface unit for performing a connection process with a predetermined communication network, wherein the interface unit is configured to physically connect the information on the predetermined communication network with the predetermined communication network. Detecting means for determining whether the interface means is logically connectable to the predetermined communication network based on the information, and determining when the power is turned on again by the determining means. A computer system, comprising: initialization means for initializing a network environment of the computer system including the interface means using an initialization routine according to a state.

【0011】請求項2に係る発明は、請求項1に係る発
明において、前記判別手段は、高速通信を行うネットワ
ークから順次接続が行われているか否かによって前記所
定の通信ネットワークと論理的な接続が可能な状態であ
るか否かを判別することを特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the determining means logically connects to the predetermined communication network based on whether or not a connection is sequentially performed from a network performing high-speed communication. It is characterized in that it is determined whether or not is possible.

【0012】請求項3に係る発明は、請求項1に係る発
明において、前記判別手段が判別した前記所定の通信ネ
ットワークとの論理的な接続状態をユーザに報知する報
知手段をさらに具備したことを特徴とする。
According to a third aspect of the present invention, in the first aspect of the present invention, there is further provided a notifying means for notifying a user of a logical connection state with the predetermined communication network determined by the determining means. Features.

【0013】[0013]

【作用】本願請求項1に係る発明は、判別手段が、イン
ターフェース手段が接続する所定の通信ネットワークと
物理的に接続された状態で、前記所定の通信ネットワー
ク上の情報を検出し、該情報をもとに前記インターフェ
ース手段が所定の通信ネットワークと論理的な接続が可
能な状態であるか否かを判別し、初期化手段が、電源再
投入時に前記判別手段によって判別された状態に応じた
初期化ルーチンを用いて前記インターフェース手段を含
めたコンピュータシステムのネットワーク環境を初期化
することを特徴とし、これによって論理的に接続可能な
通信ネットワーク環境の初期化を効率的かつ適正に行う
ことができる。
According to the invention of claim 1 of the present application, the discriminating means detects information on the predetermined communication network while being physically connected to the predetermined communication network connected to the interface means, and detects the information. Initially, the interface means determines whether or not a logical connection with a predetermined communication network is possible, and the initialization means determines an initial state according to the state determined by the determination means when power is turned on again. A network environment of the computer system including the interface means is initialized by using a conversion routine, whereby a logically connectable communication network environment can be initialized efficiently and properly.

【0014】さらに、本願請求項5に係る発明では、格
納手段に格納されている電源切断直前の記憶内容を電源
再投入時に回復できるようにするとともに、判別手段に
よって判別された論理的に接続が可能な通信ネットワー
クのネットワーク環境の初期化をも、その都度行うこと
を特徴とし、これにより、電源切断直前と電源再投入時
との環境変化の有り得るネットワーク環境については電
源再投入時毎に初期化し、電源切断直前と電源再投入時
との変化のない記憶内容についてはその記憶内容によっ
て初期化するようにしているので、常に効率的で適正な
初期化を行うことができる。
Further, according to the invention of claim 5 of the present application, the contents stored in the storage means immediately before the power is turned off can be restored when the power is turned on again, and the logical connection determined by the determination means can be restored. The network environment of a possible communication network is also initialized each time, so that the network environment that may have an environmental change between immediately before the power is turned off and when the power is turned on is reset every time the power is turned on again. Since the stored contents that do not change between immediately before the power is turned off and when the power is turned on are initialized by the stored contents, efficient and proper initialization can always be performed.

【0015】[0015]

【実施例】以下、本発明の第1の実施例および第2の実
施例を添付図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment and a second embodiment of the present invention will be described below with reference to the accompanying drawings.

【0016】最初に、本発明の第1の実施例を図1乃至
図5を参照して説明する。
First, a first embodiment of the present invention will be described with reference to FIGS.

【0017】図1は、本発明に係るコンピュータシステ
ムの第1の実施例をブロックで示したものである。
FIG. 1 is a block diagram showing a first embodiment of a computer system according to the present invention.

【0018】同図において、コンピュータシステム1
は、リスタート命令を与えるキーボード10と、ディス
プレイ20と、上述した主記憶手段の機能を果たすメモ
リ30と、フロッピディスク40と、上述した格納手段
の機能を果たすハードディスク50と、上述したインタ
フェース手段の機能を果たすLANボード60及びシリ
アル・インタフェースとしてのRS232Cインタフェ
ース70と、中央処理装置(以下、CPUという)80
とがシステムバス90に接続されて構成されている。ま
たLANボード60には通信装置である図示しないネッ
トワークインタフェース装置を介してイーサネットなど
のネットワーク100が接続され、更にRS232Cイ
ンタフェース70には通信装置であるモデム110とプ
リンタ120とが接続される。この結果、周知のよう
に、LANボード60及びRS232Cインタフェース
70を通じて、外部ネットワークと通信が可能となる。
なお、通常、これらの通信手段はいずれか一方が使用さ
れる。
In FIG. 1, a computer system 1
A keyboard 10 for giving a restart command, a display 20, a memory 30 for performing the function of the above-mentioned main storage means, a floppy disk 40, a hard disk 50 for performing the function of the above-mentioned storage means, and a A LAN board 60 performing a function, an RS232C interface 70 as a serial interface, and a central processing unit (hereinafter referred to as a CPU) 80
Are connected to the system bus 90. A network 100 such as Ethernet is connected to the LAN board 60 via a network interface device (not shown) which is a communication device, and a modem 110 and a printer 120 which are communication devices are connected to the RS232C interface 70. As a result, it is possible to communicate with an external network through the LAN board 60 and the RS232C interface 70, as is well known.
Normally, one of these communication means is used.

【0019】メモリ30には、システムの内部状態(以
下、システム状態という)を示すデータ、例えばネット
ワークのルーティング情報、プロセス、データ、ファイ
ルシステムなどが記憶される。
The memory 30 stores data indicating the internal state of the system (hereinafter referred to as system state), for example, network routing information, processes, data, file systems, and the like.

【0020】ハードディスク50には、図2に示すよう
に、通常のシステム起動時にメモリ30にロードされる
システムファイル210と、リスタート時に使用され
る、必要最小限の処理のみを含んでいる一時システムフ
ァイル220とが格納されており、更にシステム状態フ
ァイル230が格納される。システム状態ファイル23
0は電源切断直前のメモリ30のメモリイメージを格納
したファイルである。電源再投入後、そのシステム状態
ファイル230を再びメモリ30内に読み込むことによ
って、電源切断直前のシステム状態を回復することがで
きる。
As shown in FIG. 2, the hard disk 50 includes a system file 210 loaded into the memory 30 at the time of normal system startup, and a temporary system including only necessary minimum processing used at the time of restart. A file 220 is stored, and a system state file 230 is further stored. System state file 23
0 is a file storing a memory image of the memory 30 immediately before the power is turned off. After the power is turned on again, the system state immediately before the power is turned off can be recovered by reading the system state file 230 into the memory 30 again.

【0021】こうしてシステム状態を回復した後、通信
装置を含む周辺装置の構成や周辺装置としての通信装置
(ネットワークインタフェース装置やモデム)と接続さ
れるネットワーク(イーサネットや公衆回線)の構成が
変化している場合も有り得るので、メモリ30内に残っ
ているデータを、現在の周辺装置の状態やネットワーク
の接続状態を判断して再初期化する。これにより不必要
な初期化や、ネットワークとの接続がないにも関わらず
アクセスを行って長時間制御が戻ってこないという様な
事態を避けることができる。
After the system status is recovered in this way, the configuration of the peripheral device including the communication device and the configuration of the network (Ethernet or public line) connected to the communication device (network interface device or modem) as the peripheral device change. Therefore, the data remaining in the memory 30 is reinitialized by judging the current state of the peripheral devices and the state of the network connection. As a result, it is possible to avoid unnecessary initialization and a situation in which access is performed and control does not return for a long time even when there is no connection to the network.

【0022】この実施例では、上述した状態格納処理手
段、状態回復手段、及び初期化手段は、それぞれの手段
の機能を遂行させるためのソフトウェア(プログラム)
をCPU80が実行することにより実現される。
In this embodiment, the above-described state storage processing means, state recovery means, and initialization means are software (program) for executing the functions of the respective means.
Is executed by the CPU 80.

【0023】係る構成において、コンピュータシステム
の再初期化処理について、図3乃至図5を参照しながら
説明する。
The re-initialization processing of the computer system having such a configuration will be described with reference to FIGS.

【0024】なお、図3は状態格納処理手段の機能を遂
行させるためのプログラムに対応する状態格納処理プロ
セスの処理手順を示し、図4は初期化手段の機能を遂行
させるためのプログラムに対応する初期化プロセスの処
理手順を示し、図5は状態回復手段の機能を遂行させる
ためのプログラムに対応する状態回復プロセスの処理手
順を示している。CPU80はそれらの処理手順に従っ
て再初期化処理を実行する。
FIG. 3 shows a processing procedure of a state storage processing process corresponding to a program for performing the function of the state storage processing means, and FIG. 4 corresponds to a program for performing the function of the initialization means. FIG. 5 shows a procedure of an initialization process, and FIG. 5 shows a procedure of a state recovery process corresponding to a program for performing the function of the state recovery means. The CPU 80 executes the re-initialization processing according to those processing procedures.

【0025】最初に図3に示すように、利用者からリス
タート処理の命令が与えられると、状態格納処理プロセ
スは、アプリケーションプロセスの書き込みを禁止する
(ステップ301)。
First, as shown in FIG. 3, when a command for restart processing is given from the user, the state storage processing process prohibits the writing of the application process (step 301).

【0026】これは、この実施例では、メモリ30の内
容をファイル等の不揮発性記憶装置に保持するようにな
っているため、一般的なマルチプロセスのオペレーティ
ングシステム上では、メモリ30の内容をファイルに書
き込んでいる最中に、他のプロセスがメモリ30の一部
のデータを更新したり、ハードディスク50への書き込
みを禁止しなければならないからである。
In this embodiment, since the contents of the memory 30 are stored in a nonvolatile storage device such as a file, the contents of the memory 30 are stored on a general multi-process operating system. This is because other processes must update some data in the memory 30 or prohibit writing to the hard disk 50 while writing to the hard disk 50.

【0027】具体的には、状態格納処理プロセスが、全
てのアプリケーションプロセスより優先順位が高く、シ
ステムの入出力処理より低いか、又は同じ優先順位を持
つ他のプロセスを生成し、該他のプロセスは単に空のル
ープを続けるという方法がある。これにより、アプリケ
ーションプロセスの処理を停止でき、本来の処理を安全
に継続することが可能となる。
More specifically, the state storage processing process has a higher priority than all the application processes and is lower than the system input / output processing, or generates another process having the same priority. There is a way to simply continue the empty loop. As a result, the processing of the application process can be stopped, and the original processing can be safely continued.

【0028】上記ステップ301が終了したならば、状
態格納処理プロセスは、システム状態を保存するための
システム状態ファイルをハードディスク50に生成する
(ステップ302)。
When step 301 is completed, the status storage process creates a system status file for storing the system status on the hard disk 50 (step 302).

【0029】このシステム状態ファイルは、システムの
メモリ30の大きさに、ヘッダの大きさを加えたサイズ
になっている。そのヘッダには、このシステム状態ファ
イル230が置かれる論理ボリューム(Volume)
が最後に書き込みのためにオープンされた日時が書き込
まれている必要がある。このヘッダ情報は、後でシステ
ム状態ファイル230をメモリ30内に読み込むとき
に、ハードディスク50内のシステム状態ファイル23
0の内容とメモリ30上のファイルシステムの写しに不
整合が生じないようチェックするのに使用される。これ
は、間違って古いシステム状態ファイルがディスク50
に残っていて、そのファイルを現在のシステム状態とし
て回復するのを防止するためである。
This system status file has a size obtained by adding the size of the header to the size of the memory 30 of the system. The header includes a logical volume (Volume) in which the system state file 230 is placed.
The date and time when the file was last opened for writing must be written. This header information is stored in the system state file 23 in the hard disk 50 when the system state file 230 is read into the memory 30 later.
It is used to check that no inconsistency occurs between the contents of 0 and the copy of the file system on the memory 30. This is because the old system state file is incorrectly
In order to prevent the file from being restored to the current system state.

【0030】ステップ302が終了したならば、状態格
納処理プロセスは、ハードディスク50内の一時システ
ムファイル220をオープンして(ステップ303)、
この一時システムファイル220の物理的な位置を調べ
ると共に、該一時システムファイル220を、電源投入
時のシステム起動ファイルとして物理ボリューム(Vo
lume)に書き込む(ステップ304)。なお、この
システム起動ファイルは、物理ボリュームの他、EPR
OMなどのブートアドレス領域に書き込むようにしても
良い。
When step 302 is completed, the status storage process opens the temporary system file 220 in the hard disk 50 (step 303).
The physical position of the temporary system file 220 is checked, and the temporary system file 220 is used as a system startup file at power-on as a physical volume (Vo).
write (step 304). Note that this system startup file contains not only physical volumes but also EPRs.
The data may be written in a boot address area such as OM.

【0031】次に、状態格納処理プロセスは、CPU8
0の状態語(レジスタ)をメモリ30内のシステム領域
にストアし(ステップ305)、その後、メモリ30の
メモリイメージをハードディスク50内のシステム状態
ファイルに書き込み(ステップ306)、さらに、その
書き込みが成功したか否かを判断する(ステップ30
7)。
Next, the status storing process is executed by the CPU 8
The status word (register) of 0 is stored in the system area in the memory 30 (step 305), and then the memory image of the memory 30 is written in the system state file in the hard disk 50 (step 306). (Step 30)
7).

【0032】ステップ306においては、現在のメモリ
30の全内容をステップ303で生成した一時システム
ファイル220に書き込むI/O動作であるが、この実
施例においては、このI/O動作はCPU80のマイク
ロコードとして実装されており、I/O動作中にメモリ
30の状態が変化することがないことが保証されてい
る。もちろん、マイクロコードで実装する必要はなく、
付加的なハードウェアや専用のバッファなどを用いるな
どして、メモリ30の内容を変更することなくI/O動
作が可能ならばどの様な方法でも良い。
Step 306 is an I / O operation for writing the entire contents of the current memory 30 to the temporary system file 220 generated in step 303. In this embodiment, this I / O operation is performed by the microcontroller of the CPU 80. It is implemented as code, and it is guaranteed that the state of the memory 30 does not change during the I / O operation. Of course, there is no need to implement in microcode,
Any method may be used as long as the I / O operation can be performed without changing the contents of the memory 30 by using additional hardware or a dedicated buffer.

【0033】またステップ305、306の処理におい
ては、1つのプロシージャ呼出しとなっている。このプ
ロシージャは、メモリ30のメモリイメージを、指定さ
れたファイルに書き込むことに成功したら返り値(戻り
値)として“TRUE”を、状態格納処理プロセスに返
すようになっており。また電源再投入後、メモリ30の
内容およびCPU80の状態語が回復したら、返り値と
して“FALSE”を状態格納処理プロセスに返すよう
になっている。
In the processing of steps 305 and 306, one procedure is called. This procedure returns “TRUE” as a return value (return value) to the state storage processing process when the memory image of the memory 30 is successfully written to the specified file. When the contents of the memory 30 and the state word of the CPU 80 are restored after the power is turned on again, "FALSE" is returned to the state storage processing process as a return value.

【0034】このような戻り値が状態格納処理プロセス
に返され後の制御は、プロシージャ呼出しの直後に移行
する。このような動作を行わせるには、プロシージャ呼
出しの直後にスタックに保存されている戻り先アドレス
をCPU80のプログラムカウンタとしてメモリ30に
保存し、その後、その戻り先アドレスをCPU80のプ
ログラムカウンタにロードするようにする。
After such a return value is returned to the state storage processing process, control is transferred immediately after the procedure is called. In order to perform such an operation, the return address stored in the stack immediately after the procedure call is stored in the memory 30 as the program counter of the CPU 80, and then the return address is loaded into the program counter of the CPU 80. To do.

【0035】ところで、状態格納処理プロセスは、ステ
ップ307において、“TRUE”が返ってきたら、利
用者に電源切断をしても良い旨を通知し、その後、シス
テムを停止(Halt)して(ステップ308)、処理
を終了する。一方、“FALSE”が返ってきたら、電
源が再投入され、以前のシステム状態が回復されたと判
断して(電源再投入後の処理については後述する)、周
辺装置の再初期化の処理を行う(ステップ309)。
When the status storage process returns "TRUE" in step 307, it notifies the user that the power may be turned off, and then stops the system (Halt) (step 307). 308), and the process ends. On the other hand, when "FALSE" is returned, it is determined that the power is turned on again and the previous system state is restored (the processing after the power is turned on will be described later), and the peripheral device is re-initialized. (Step 309).

【0036】次に、周辺装置の再初期化処理を行う初期
化プロセスの処理手順について、図4のフローチャート
を参照して説明する。
Next, the processing procedure of the initialization process for reinitializing the peripheral device will be described with reference to the flowchart of FIG.

【0037】この再初期化処理は、電源切断前と電源再
投入後とで、通信装置を含む周辺装置の構成(更には、
通信装置と接続されるネットワークの構成)が変化して
いた場合のための周辺装置の再初期化である。
The re-initialization process is performed before and after the power is turned off and after the power is turned on again.
This is the re-initialization of the peripheral device in the case where the configuration of the network connected to the communication device has changed.

【0038】さて最初に、図4に示すように、初期化プ
ロセスは、停止しているアプリケーションプロセスの書
き込みを許可する(ステップ401)。具体的には、空
のループを続けていた上述した他のプロセス(状態格納
処理プロセスによって生成されたプロセス)を削除す
る。これにより、比較的優先順位の低いアプリケーショ
ンプロセスの処理が再開される。
First, as shown in FIG. 4, the initialization process permits writing of a stopped application process (step 401). Specifically, the other processes (processes generated by the status storage process) that have continued the empty loop are deleted. As a result, the process of the application process having a relatively lower priority is restarted.

【0039】ステップ401が終了したら、初期化プロ
セスは、メモリ30に記憶されているネットワークのル
ーティングテーブル(Routing Table )を無効化(すな
わち再初期化)する(ステップ402)。何故ならば、
この時点でシステム内にあるルーティングテーブルの内
容は電源切断前のネットワーク構成に関するものであ
り、現時点では無意味な情報である可能性が高いからで
ある。
When step 401 is completed, the initialization process invalidates (ie, re-initializes) the routing table of the network stored in the memory 30 (step 402). because,
This is because the contents of the routing table in the system at this time relate to the network configuration before the power is turned off, and it is highly likely that the information is meaningless at this time.

【0040】ステップ402が終了したら、初期化プロ
セスは、イーサネット(Ethernet)パケットの受信を開
始し(ステップ403)、その受信したパケットの内容
に基づいてイーサネットの接続状態を判断する(ステッ
プ404)。LANボード60に接続されている図示し
ないネットワークインタフェース装置にイーサネットが
接続されていれば、処理を終了し、一方、接続されてい
なければ、RS232Cインタフェース70の接続状態
を調べる(ステップ405)。
When step 402 is completed, the initialization process starts receiving an Ethernet (Ethernet) packet (step 403), and determines the connection state of the Ethernet based on the content of the received packet (step 404). If Ethernet is connected to a network interface device (not shown) connected to the LAN board 60, the process is terminated. If not, the connection state of the RS232C interface 70 is checked (step 405).

【0041】ステップ405において、RS232Cイ
ンタフェース70にモデム110が接続されていなけれ
ば処理を終了し、これに対し、モデム110が接続され
ていれば、モデム110の再初期化を行い(ステップ4
06)、その後、モデム110と接続されている公衆回
線との接続準備を行う。
In step 405, if the modem 110 is not connected to the RS232C interface 70, the process is terminated. If the modem 110 is connected, the modem 110 is reinitialized (step 4).
06) Then, preparations are made for connection to a public line connected to the modem 110.

【0042】これで、利用者がネットワーク構成を含む
周辺装置の構成変更を意識することなく、作業を素早く
再開することができる。
Thus, the operation can be quickly resumed without the user being aware of the change in the configuration of the peripheral device including the network configuration.

【0043】次に、電源再投入直後にシステム状態を回
復させるための状態回復プロセスの処理手順について、
図5のフローチャートを参照して説明する。
Next, the processing procedure of the state recovery process for recovering the system state immediately after the power is turned on again will be described.
This will be described with reference to the flowchart of FIG.

【0044】最初に、CPU80のマイクロコードによ
って実行されるIPL(Initial Program Loader)によ
り一時システムフアィル220が読み込まれる。次に、
状態回復プロセスが、読み込まれた一時システムファイ
ル220に含まれている必要最小限の処理を実行する。
First, the temporary system file 220 is read by an IPL (Initial Program Loader) executed by the microcode of the CPU 80. next,
The state recovery process executes the minimum necessary processing included in the read temporary system file 220.

【0045】すなわち、状態回復プロセスは、ハードデ
ィスク50の初期化やオペレーティングシステムの核の
初期化など、必要最小限のシステムの初期化シーケンス
を実行し(ステップ501)、その後、システム状態フ
ァイル230を調べる(ステップ502)。
That is, the state recovery process executes a minimum necessary system initialization sequence such as initialization of the hard disk 50 and initialization of the core of the operating system (step 501), and then examines the system state file 230. (Step 502).

【0046】ステップ502の処理は、システム状態フ
ァイル230の置かれた論理ボリュームを読み出し専用
でオープンし、図3のステップ306においてメモリ内
容が書き込まれたシステム状態ファイル230の存在を
確認し、そのシステム状態ファイル230のヘッダ部分
を読み込んで、ハードディスク50の論理ボリュームが
最後に書き込みのためにオープンされた日付と、システ
ム状態ファイル230のヘッダに書かれた日付とが一致
するかどうかを調べる。
In the process of step 502, the logical volume in which the system state file 230 is placed is opened for reading only, and in step 306 of FIG. 3, the existence of the system state file 230 in which the memory contents are written is confirmed. The header of the status file 230 is read to determine whether the date when the logical volume of the hard disk 50 was last opened for writing matches the date written in the header of the system status file 230.

【0047】ステップ502が終了したら、状態回復プ
ロセスは、ファイルが問題ないか否か(日付が一致する
か否か)を判断する(ステップ503)。なお上記ステ
ップ501〜ステップ503までの処理が、状態回復プ
ロセスによる、IPL(Initial Program Loader)によ
り読み込まれた一時システムフアィル220に含まれて
いる必要最小限の処理である。
When step 502 is completed, the state recovery process determines whether the file is in a good condition (whether the dates match) (step 503). Note that the processing from step 501 to step 503 is the minimum necessary processing included in the temporary system file 220 read by the IPL (Initial Program Loader) by the state recovery process.

【0048】ステップ503において、日付が一致しな
い場合には、リスタートをあきらめて、通常のブートシ
ーケンスを実行し(ステップ504)、一方、日付が一
致する場合は、システム状態ファイル230をハードデ
ィスク50からメモリ30に読み込み(ステップ50
5)、更に、図3のステップ305においてメモリ30
のシステム領域にストアされたCPU80の状態語をC
PU80のレジスタにロードする(ステップ506)。
In step 503, if the dates do not match, the restart is abandoned and the normal boot sequence is executed (step 504). If the dates match, the system status file 230 is deleted from the hard disk 50. Read into memory 30 (step 50
5) Further, in step 305 of FIG.
The state word of the CPU 80 stored in the system area of
The data is loaded into the register of the PU 80 (step 506).

【0049】ステップ506終了後は、図3のステップ
307に進む。このとき、図3のステップ307におい
ては、CPU80の状態語の読み出しであるので、“F
ALSE”となり、周辺装置の再初期化処理が実行され
る。
After step 506, the process proceeds to step 307 in FIG. At this time, in step 307 of FIG.
ALSE ", and the peripheral device is re-initialized.

【0050】なお上記実施例において、周辺装置の再初
期化処理結果に基づいて現在の周辺装置又はネットワー
クの構成をユーザに報知するためのメッセージ発生手段
を更に設けるようにしても良い。この場合も、メッセー
ジ発生手段は、この手段の機能を遂行させるためのソフ
トウェア(プログラム)をCPU80が実行することに
より実現される。このメッセージ発生手段により発生さ
れたメッセージ、例えば“イーサネットが接続されてい
る旨”、“公衆回線が接続されている旨”などのメッセ
ージがディスプレイ20に表示されることになる。
In the above embodiment, a message generating means for notifying the user of the current configuration of the peripheral device or the network based on the result of the reinitialization processing of the peripheral device may be further provided. Also in this case, the message generating means is realized by the CPU 80 executing software (program) for performing the function of this means. A message generated by the message generating means, for example, a message such as "Ethernet is connected" or "Public line is connected" is displayed on the display 20.

【0051】以上説明したように第1の実施例によれ
ば、システムの現在の内部状態を保存し、システムの電
源をオフ状態にした後、電源切断前のシステム状態を回
復する際に、ネットワークを含む周辺装置の動的な変更
に対して必要な再初期化を行い、周辺装置の構成の変更
に関わらずシステムの再起動時間を短縮し、利用者が素
早く作業を継続することができる。
As described above, according to the first embodiment, when the current internal state of the system is saved, and after the system is turned off, the system state before the power is turned off is restored. The necessary re-initialization is performed for the dynamic change of the peripheral device including the above, the restart time of the system is shortened irrespective of the change of the configuration of the peripheral device, and the user can continue the work quickly.

【0052】次に、本発明の第2の実施例を図6乃至図
13を参照して説明する。
Next, a second embodiment of the present invention will be described with reference to FIGS.

【0053】図6は、本発明に係るコンピュータシステ
ムの第2の実施例をブロック図で示したものである。
FIG. 6 is a block diagram showing a second embodiment of the computer system according to the present invention.

【0054】同図において、コンピュータシステムは、
キーボード及びマウス装置610と、表示装置620
と、メモリ630と、フロッピディスク装置640と、
固定ディスク装置650と、イーサネット装置660
と、通信モデム装置670と、CPU680とがシステ
ムバス690に接続されて構成されている。
In the figure, the computer system is:
Keyboard and mouse device 610 and display device 620
, A memory 630, a floppy disk device 640,
Fixed disk device 650 and Ethernet device 660
, A communication modem device 670 and a CPU 680 are connected to a system bus 690.

【0055】この実施例では、上述した状態検出手段及
び構成データ初期化手段は、それぞれの手段の機能を遂
行させるためのソフトウェア(プログラム)をCPU6
80が実行することにより実現される。
In this embodiment, the above-mentioned state detecting means and configuration data initializing means execute software (program) for executing the functions of the respective means by the CPU 6.
80 is implemented.

【0056】図7は、コンピュータシステム710、7
20がイーサネット730に接続され、コンピュータシ
ステム720が、イーサネット730にパケットを送出
している様子を示している。
FIG. 7 shows computer systems 710 and 7
20 is connected to the Ethernet 730, and the computer system 720 is transmitting packets to the Ethernet 730.

【0057】この実施例においては、システムの始動時
に読み込まれるイーサネットに伝送されているパケット
を検出することによって、コンピュータシステムの初期
化を制御し、通信装置の構成を決定し、そして利用者と
対話せずに適当な変更を行うようにしたものである。
In this embodiment, the initialization of the computer system is controlled, the configuration of the communication device is determined, and the dialog with the user is detected by detecting the packet transmitted on the Ethernet which is read at the time of system startup. Instead, appropriate changes are made.

【0058】具体的には、システムの始動時に、システ
ムが持っているイーサネットの接続状態を管理している
データを初期化するために、イーサネット上に伝送され
ているパケットが読み込まれる。この処理は、システム
のメインの初期化シーケンスによって実行されるもので
あり、具体的には、このシーケンス中に実行されるパケ
ット検出ルーチンによって実行される。このパケット検
出ルーチンは、パケットの読み込み時に実行され、イー
サネットに自分以外が送出したパケットが伝送されてい
るか否かを調べてイーサネットの接続の有無を検知し、
この検知結果をシステムのメインの初期化シーケンスに
知らせる。システムのメインの初期化シーケンスは、こ
のパケット検出ルーチンの実行により得られたパケット
の情報を用いて、該当するサブルーチンを呼出す。この
呼び出されたサブルーチンによって、通信装置に合った
適切なシステムの初期化が行われる。
More specifically, when the system is started, a packet transmitted on the Ethernet is read in order to initialize data for managing the Ethernet connection state of the system. This processing is executed by a main initialization sequence of the system, and specifically, is executed by a packet detection routine executed during this sequence. This packet detection routine is executed at the time of reading a packet, and checks whether or not a packet transmitted by anyone other than itself is transmitted to the Ethernet to detect the presence or absence of an Ethernet connection,
This detection result is notified to the main initialization sequence of the system. The main initialization sequence of the system calls a corresponding subroutine using the information of the packet obtained by executing the packet detection routine. The called subroutine initializes the appropriate system for the communication device.

【0059】なお、パケット検出ルーチンは、それ自体
単独で動作するのではなく、オペレーティングシステム
の他のプロセス(例えばディスパッチャ(Dispatcher)
プロセス)と協力して処理を実行するようになってい
る。
It should be noted that the packet detection routine does not operate by itself, but instead operates in another process of the operating system (for example, a dispatcher).
Process) to execute the process.

【0060】このDispatcherプロセスは一般にシステム
の低レベルのプロセスで、ネットワーク処理のため常時
実行されており、コールバック関数呼び出し機構を備え
ている。
The Dispatcher process is generally a low-level process of the system, is always executed for network processing, and has a callback function calling mechanism.

【0061】このコールバック関数MySpyProc は、パケ
ット検出ルーチンによってコールバック関数として一時
的にシステムに登録され、Dispatcherプロセスによって
呼び出される。このプロシージャ(コールバック関数My
SpyProc )が実際に受信パケットを検出する処理を受け
持つ。
This callback function MySpyProc is temporarily registered in the system as a callback function by the packet detection routine, and is called by the Dispatcher process. This procedure (callback function My
SpyProc) is responsible for the process of actually detecting the received packet.

【0062】次に、システムのメインの初期化シーケン
スの処理手順について図8のフローチャートを参照して
説明する。
Next, the processing procedure of the main initialization sequence of the system will be described with reference to the flowchart of FIG.

【0063】ここでは、図7に示すネットワークシステ
ムにおいて、コンピュータシステム710が起動し、こ
のシステムが通信装置の初期化を行う場合の処理につい
て説明する。
Here, a description will be given of a process in a case where the computer system 710 is activated in the network system shown in FIG. 7 and this system initializes the communication device.

【0064】コンピュータシステム710が始動される
と、初期化シーケンスは、メモリ630に記憶されてい
るネットワークのルーティング情報を管理しているデー
タを初期化し(ステップ801)、その後、メモリ63
0に記憶されているイーサネットの接続状態を管理して
いるデータを初期化するためにイーサネット上に伝送さ
れているパケットを読み込む(ステップ802)。これ
は、イーサネットドライバの送受信プロセスを起動する
ことにより、この送受信プロセスがパケットを読み込む
ようになっている。
When the computer system 710 is started, the initialization sequence initializes the data for managing the routing information of the network stored in the memory 630 (step 801).
A packet transmitted on the Ethernet is read in order to initialize data for managing the Ethernet connection state stored in 0 (step 802). In this method, a transmission / reception process of the Ethernet driver is started, and the transmission / reception process reads a packet.

【0065】パケットが読み込まれると、初期化シーケ
ンスは、パケット検出ルーチンを呼び出して実行するこ
とによりそのパケットを検査し(ステップ803)、こ
の検査結果に応じて、サブルーチン1又はサブルーチン
2を呼び出す(ステップ804)。
When a packet is read, the initialization sequence checks the packet by calling and executing a packet detection routine (step 803), and calls subroutine 1 or subroutine 2 according to the check result (step 803). 804).

【0066】ステップ804において、検査したパケッ
トがコンピュータシステム710以外のものである場合
は、サブルーチン1が呼び出される。この呼び出された
サブルーチン1は、図9に示す様に、ネットワーク形態
がイーサネットの構成に変更されたと判断する。そして
サブルーチン1は、必要ならメインの初期化シーケンス
の残りの初期化を行い(ステップ901)、その後、シ
ステムの再構成を完了(初期化を終了)する(ステップ
902)。
In step 804, if the inspected packet is other than the one in the computer system 710, the subroutine 1 is called. The called subroutine 1 determines that the network configuration has been changed to the Ethernet configuration as shown in FIG. Then, the subroutine 1 performs the remaining initialization of the main initialization sequence if necessary (step 901), and thereafter completes the reconfiguration of the system (ends the initialization) (step 902).

【0067】一方、ステップ804において、検査した
パケットがネットワークシステム710以外のものでな
かったり(つまり、コンピュータシステム710が送出
したパケットであった場合)、パケット自体が検出でき
なかった場合は、サブルーチン2が呼び出される。この
呼び出されたサブルーチン2は、図10に示す様に、ネ
ットワーク形態がイーサネット構成でないと判断して、
通信モデム装置670の初期化ルーチンを実行する(ス
テップ1001)。そしてサブルーチン2は、必要なら
メインの初期化シーケンスの残りの初期化を行い(ステ
ップ1002)、システムの再構成を完了(初期化を終
了)する(ステップ1003)。
On the other hand, if it is determined in step 804 that the inspected packet is not a packet other than the network system 710 (that is, if the packet is transmitted by the computer system 710), or if the packet itself cannot be detected, the subroutine 2 Is called. The called subroutine 2 judges that the network configuration is not the Ethernet configuration as shown in FIG.
An initialization routine of the communication modem 670 is executed (step 1001). Then, the subroutine 2 performs the remaining initialization of the main initialization sequence if necessary (step 1002), and completes the reconfiguration of the system (ends the initialization) (step 1003).

【0068】次に、上記図8のステップ803における
パケット検出ルーチンによるネートワーク(イーサネッ
ト)が接続されているか否かを判定する判定処理につい
て、図11乃至図13を参照して説明する。
Next, the determination processing for determining whether or not a network (Ethernet) is connected by the packet detection routine in step 803 in FIG. 8 will be described with reference to FIGS.

【0069】なお、これらの図において、“b”は受信
パケットへのポインタを示し、“spyProc ”はプロシー
ジャ変数を示し、“condition ”はコンディション変数
を示し、“wait”は論理型(BOOLEAN)変数を示
している。また“NOTIFY”及び“WAIT”は並
列処理を実行する際に使用されるオペレーティングシス
テムのコマンドである。なお、“コンディション変
数”、“NOTIFY”及び“WAIT”は、周知のよ
うにオペレーティングシステム、並列処理の古典的概念
の1つであり、「ホーアのMONITOR(モニタ)モ
デル」として知られている。
In these figures, “b” indicates a pointer to a received packet, “spyProc” indicates a procedure variable, “condition” indicates a condition variable, and “wait” indicates a logical (BOOLEAN) variable. Is shown. “NOTIFY” and “WAIT” are operating system commands used when executing parallel processing. Note that "condition variable", "NOTIFY", and "WAIT" are one of the classic concepts of the operating system and the parallel processing, as is well known, and are known as "Hore's MONITOR (monitor) model".

【0070】最初に、パケット検出ルーチンと協同して
所定の処理を行うDispatcherプロセスの処理手順につい
て、図11のフローチャートを参照して説明する。
First, a processing procedure of the Dispatcher process for performing predetermined processing in cooperation with the packet detection routine will be described with reference to the flowchart of FIG.

【0071】Dispatcherプロセスは、上位のソフトウェ
アから渡された送信データに必要なヘッダ部を付加し
て、デバイスドライバに送信要求を出すとともに(ステ
ップ1101)、デバイスドライバから渡された受信パ
ケットへのポインタbに基づいて、その受信パケットの
データ部を取り出す(ステップ1102)。
The Dispatcher process sends a transmission request to the device driver by adding a necessary header portion to the transmission data passed from the higher-level software (step 1101), and a pointer to the received packet passed from the device driver. The data part of the received packet is extracted based on b (step 1102).

【0072】次にDispatcherプロセスは、自己のプロセ
スに含まれているプロシージャ変数spyProc の値が有効
か否かを調べ(ステップ1103)、その値が有効の場
合は、プロシージャ変数spyProc を、受信パケットへの
ポインタbを引数として呼び出し実行する(ステップ1
104)。そして、デバイスドライバから受け取った受
信パケットを上位のソフトウェアに渡す(ステップ11
05)。ステップ1103においてプロシージャ変数sp
yProc の値が有効でない場合は、ステップ1105に進
む。ステップ1105終了後はステップ1101に戻り
このステップ以降が実行される。
Next, the Dispatcher process checks whether or not the value of the procedure variable spyProc included in its own process is valid (step 1103). If the value is valid, the Dispatcher process adds the procedure variable spyProc to the received packet. (Step 1)
104). Then, the received packet received from the device driver is passed to the upper software (step 11).
05). In step 1103, the procedure variable sp
If the value of yProc is not valid, the process proceeds to step 1105. After the end of step 1105, the process returns to step 1101 and the steps after this step are executed.

【0073】次にパケット検出ルーチンの処理手順につ
いて、図12のフローチャートを参照して説明する。
Next, the processing procedure of the packet detection routine will be described with reference to the flowchart of FIG.

【0074】パケット検出ルーチンは、コンディション
変数condition のタイムアウトを5秒(人間にとって待
ちどうしくなく、ネットワークがパケットを処理するの
に十分長い時間であれば良い)に設定し(ステップ12
01)、その後、現在のプロシージャ変数spyProc を古
いプロシージャ変数oldSpyProcに待避すると共に(ステ
ップ1202)、自分で用意したコールバック関数MySp
yProc をプロシージャ変数spyProc として登録する(ス
テップ1203)。
In the packet detection routine, the timeout of the condition variable condition is set to 5 seconds (it is sufficient for a human to wait, and it is sufficient if the network takes a long enough time to process the packet) (step 12).
01) Then, the current procedure variable spyProc is saved to the old procedure variable oldSpyProc (step 1202), and the callback function MySp
yProc is registered as a procedure variable spyProc (step 1203).

【0075】この時点で別プロセスとして動作している
Dispatcherプロセスによってコールバック関数MySpyPro
c の実行が開始される。
At this point, it is operating as a separate process.
MySpyPro callback function by Dispatcher process
Execution of c is started.

【0076】続いて、パケット検出ルーチンは、グロー
バール変数としての論理型(Boolean )変数waitをTR
UE(真)とし(ステップ1204)、更にコンディシ
ョン変数condition をWAITする(ステップ120
5)。これによって、パケット検出ルーチンのプロセス
はコンディション変数condition 上でWAITする。こ
のパケット検出ルーチンのプロセスの処理が再び実行さ
れるのはコンディション変数condition がコールバック
関数MySpyProc のなかでNOTIFYされるか、或い
は、いかなるプロセスによってもコンディション変数co
ndition がNOTIFYされず、そのまま5秒経過した
場合である。
Subsequently, the packet detection routine sets a logical (Boolean) variable wait as a global variable to TR.
UE (true) (step 1204), and further waits for the condition variable condition (step 120).
5). As a result, the process of the packet detection routine waits on the condition variable condition. The processing of this packet detection routine process is executed again because the condition variable condition is NOTIFYed in the callback function MySpyProc, or the condition variable co is
This is the case where 5 seconds have elapsed without ndition being NOTIFY.

【0077】従って、コンディション変数condition が
NOTIFYされず、5秒経過した場にはパケット検出
ルーチンは実行を再開することになり、このパケット検
出ルーチンは、古いプロシージャ変数oldSpyProcに待避
しておいた現在のプロシージャ変数spyProc を復元した
後(ステップ1206)、論理型(Boolean )変数wait
がTRUEか否かを判断する(ステップ1207)。
Therefore, if the condition variable condition is not NOTIFY and five seconds have elapsed, the packet detection routine will resume execution, and this packet detection routine will save the current procedure variable saved in the old procedure variable oldSpyProc. After restoring the procedure variable spyProc (step 1206), a Boolean variable (wait)
Is TRUE or not (step 1207).

【0078】ステップ1207において、論理型(Bool
ean )変数waitがTRUEの場合は(タイムアウトによ
る再開なので)パケットが無いと判断し、その旨を結果
として、システムのメインの初期化シーケンスに返し
(ステップ1208)、一方、論理型(Boolean )変数
waitがTRUEでない場合(コールバック関数MySpyPro
c がNOTIFYしたので)はパケットがあると判断
し、その旨を結果としてシステムのメインの初期化シー
ケンスに返す(ステップ1209)。ステップ1208
又はステップ1209終了後は、制御は、図8のステッ
プ803に戻りステップ804に進む。
At step 1207, the logical type (Bool
ean) If the variable wait is TRUE, it is determined that there is no packet (because of resumption due to timeout), and the result is returned to the main initialization sequence of the system (step 1208), while a Boolean variable
If wait is not TRUE (callback function MySpyPro
It is determined that there is a packet (because c was NOTIFY), and the fact is returned to the main initialization sequence of the system as a result (step 1209). Step 1208
Alternatively, after the end of step 1209, the control returns to step 803 in FIG.

【0079】続いて、パケット検出ルーチンによってコ
ールバック関数として一時的にシステムに登録され、更
にDispatcherプロセスによって呼び出されるコールバッ
ク関数MySpyProc のプロシージャについて、図13のフ
ローチャートを参照して説明する。
Next, the procedure of the callback function MySpyProc, which is temporarily registered in the system as a callback function by the packet detection routine and further called by the Dispatcher process, will be described with reference to the flowchart of FIG.

【0080】コールバック関数MySpyProc はDispatcher
プロセスがパケットを受信したときしか呼び出されない
ので、コンピュータシステム710がネットワークに接
続されていない場合は、コンディション変数condition
をNOTIFYしない。パケットを受信したときは、そ
のパケットのタイプが正しい値を持つか否かを調べ、異
常な値の場合はそのままリターンする。
The callback function MySpyProc is called Dispatcher
If the computer system 710 is not connected to a network, it is called only when the process receives a packet.
Is not NOTIFY. When a packet is received, it is checked whether the type of the packet has a correct value. If the packet has an abnormal value, the process returns.

【0081】例えば、通信プロトコルがXNS(Xerox
Network System)の場合は、コールバック関数MySpyPro
c のプロシージャは、パケットのタイプがns(=1)
か否かを判断し(ステップ1301)、nsタイプのパ
ケットの場合は、受信パケットへのポインタbで示され
るバッファからソースアドレス(パケットの送信元アド
レス)を取得し(ステップ1302)、そのアドレスが
自己のホスト(host)アドレス(自己のコンピュータシ
ステムのアドレス)と同じか否かを調べる(ステップ1
303)。このステップの処理が必要な理由は、自己が
ブロードキャストパケット(全てのホスト(host)に宛
てて送信されるパケット)を送出するなどして、自分自
信で自分宛てのパケットを受信するからである。
For example, if the communication protocol is XNS (Xerox
Network System), the callback function MySpyPro
The procedure for c is that the packet type is ns (= 1)
It is determined whether or not the packet is an ns type packet (step 1301). If the packet is an ns type packet, the source address (source address of the packet) is obtained from the buffer indicated by the pointer b to the received packet (step 1302). Check whether it is the same as its own host address (address of its own computer system) (Step 1)
303). The reason why the processing in this step is necessary is that the receiver itself receives a packet addressed to itself by transmitting a broadcast packet (a packet transmitted to all hosts (host)).

【0082】ステップ1303において、自己のホスト
(host)アドレスと異なる場合(すなわち他のホスト
(host)から送出されたパケットの場合)は、論理型
(Boolean )変数waitがTRUEか否かを調べる(ステ
ップ1304)。
If it is determined in step 1303 that the address is different from its own host address (that is, if the packet is sent from another host), it is checked whether the logical (Boolean) variable wait is TRUE (step 1303). Step 1304).

【0083】ステップ1304においてTRUEの場合
は、論理型(Boolean )変数waitをFALSEとし(ス
テップ1305)、またコンディション変数condition
をNOTIFYする(ステップ1306)。ここで、論
理型(Boolean )変数waitはグローバル変数であるの
で、ステップ1305において、論理型(Boolean )変
数waitがFALSEされた場合は、パケット検出ルーチ
ンは、図12のステップ1205において論理型(Bool
ean )変数wait=FALSEであると判断することとな
る。
If TRUE in step 1304, the logical type (Boolean) variable wait is set to FALSE (step 1305), and the condition variable condition
Is NOTIFY (step 1306). Here, since the logical type (Boolean) variable wait is a global variable, if the logical type (Boolean) variable wait is FALSE in step 1305, the packet detection routine determines the logical type (Bool) in step 1205 in FIG.
ean) It is determined that the variable wait = FALSE.

【0084】なおステップ1301においてnsタイプ
のパケットでない場合、ステップ1303において自己
のホスト(host)アドレスと同じ場合、ステップ130
4においてTRUEでない場合は、何もせずDispatcher
プロセス(図11のステップ1104)にリターンす
る。
If it is determined in step 1301 that the packet is not an ns type packet, and if it is the same as its own host address in step 1303,
If it is not TRUE in 4, Dispatcher without doing anything
The process returns to the process (Step 1104 in FIG. 11).

【0085】なおこの実施例においては、ステップ13
04YESの評価の後、ステップ1305、1306が
実行されるのは、最初に他のホスト(host)から送出さ
れたパケットを認識したときの1度だけである。
In this embodiment, step 13
After the evaluation of 04YES, the steps 1305 and 1306 are executed only once when a packet transmitted from another host (host) is first recognized.

【0086】上述した様に第2の実施例によれば、シス
テム始動時にイーサネットに伝送されるパケットを読み
込むようにし、このとき他のコンピュータシステムから
のパケットが存在するか否かを判断し、この判断結果に
基づいて、自己のコンピュータシステムのイーサネット
の接続状態を認識すると共に、イーサネットが接続され
ていると認識した場合は、RS232C及びモデムの初
期化処理は行わないようにしているので、イーサネット
の接続状態の認識結果によっては、不必要な初期化シー
ケンス(RS232C及びモデムの初期化処理)をバイ
パスでき、かつイーサネットの接続状態に応じた初期化
シーケンスを実行することができる。従って、システム
の起動時間を短縮することができる。
As described above, according to the second embodiment, a packet transmitted to the Ethernet is read when the system is started. At this time, it is determined whether or not there is a packet from another computer system. Based on the judgment result, the connection state of the Ethernet of the own computer system is recognized, and when it is recognized that the Ethernet is connected, the initialization process of the RS232C and the modem is not performed. Depending on the recognition result of the connection state, an unnecessary initialization sequence (initialization processing of the RS232C and the modem) can be bypassed, and an initialization sequence corresponding to the Ethernet connection state can be executed. Therefore, the system startup time can be reduced.

【0087】また、第2の実施例におけるシステムのメ
インの初期化シーケンスは、第1の実施例における初期
化プロセスによる周辺装置の初期化処理の一部として使
用することもできる。具体的には、システムのメインの
初期化シーケンス(図8の処理手順)を、図4のステッ
プ402〜ステップ406の処理手順として使用するこ
とができる。
Further, the main initialization sequence of the system in the second embodiment can be used as a part of the initialization processing of the peripheral device by the initialization process in the first embodiment. Specifically, the main initialization sequence of the system (the processing procedure of FIG. 8) can be used as the processing procedure of steps 402 to 406 of FIG.

【0088】更に、第2の実施例におけるパケット検出
ルーチン(図8のステップ803)は、コンピュータシ
ステムの初期化時の処理に加えて、例えばシステムの稼
働中に、イーサネットが外れていないかを検査する目的
の処理にも利用することができる。
Further, the packet detection routine (step 803 in FIG. 8) in the second embodiment checks whether the Ethernet has been disconnected during the operation of the system, for example, in addition to the processing at the time of initialization of the computer system. It can also be used for the purpose of processing.

【0089】以上説明したように本実施例では、電源切
断直前の周辺装置の構成を示す構成情報をCMOSメモ
リ装置に記憶し、電源再投入後に、電源切断直前の周辺
装置の構成を示す構成と、電源投入後の現在の周辺装置
の構成とを比較し、該比較結果に応じて周辺装置の構成
を示す構成データを初期化するようにはしていないの
で、従来の如く、CMOSメモリ装置の記憶内容に対し
てアクセスして、その記憶内容全てについて、電源切断
直前の周辺装置の構成と電源再投入後の現在の周辺装置
の構成(状態)との比較(一致するか否か)処理を実行
する必要はないこととなり、初期化処理を迅速に行うこ
とができる。
As described above, in this embodiment, the configuration information indicating the configuration of the peripheral device immediately before the power is turned off is stored in the CMOS memory device, and after the power is turned on again, the configuration indicating the configuration of the peripheral device immediately before the power is turned off. The configuration of the peripheral device is not compared with the configuration of the peripheral device after the power is turned on, and the configuration data indicating the configuration of the peripheral device is not initialized according to the comparison result. The stored contents are accessed, and for all the stored contents, a process of comparing (matching or not matching) the configuration of the peripheral device immediately before power-off with the current configuration (state) of the peripheral device after power-on is performed. It is not necessary to execute the process, and the initialization process can be performed quickly.

【0090】[0090]

【発明の効果】以上説明したように本発明によれば、状
態格納処理手段によって、電源切断直前の主記憶手段に
記憶されているシステムの内部状態を示すデータを格納
手段に格納し、状態回復手段によって、電源再投入時
に、格納手段に格納されているシステムの内部状態を示
すデータを回復し、さらに、初期化手段によって、状態
回復手段により回復されたシステムの内部状態を示すデ
ータの一部を、現在の周辺装置の状態に基づいて初期化
するようにしたので、従来と比較して、電源切断直前の
周辺装置の状態を示すデータを記憶する必要がないの
で、メモリ資源を有効に利用することができる。
As described above, according to the present invention, the state storage processing means stores the data indicating the internal state of the system, which is stored in the main storage means immediately before the power is turned off, in the storage means, and recovers the state. Means for restoring data indicating the internal state of the system stored in the storage means when the power is turned on again, and a part of the data indicating the internal state of the system restored by the state restoration means by the initialization means. Is initialized on the basis of the current state of the peripheral device, so there is no need to store data indicating the state of the peripheral device immediately before the power is turned off, so that the memory resources are used effectively. can do.

【0091】また従来の如く、CMOSメモリ装置の記
憶内容に対してアクセスして、その記憶内容全てについ
て、電源切断直前の周辺装置の構成と電源再投入後の現
在の周辺装置の構成(状態)との比較(一致するか否
か)処理を実行する必要はないので、周辺装置の初期化
処理を迅速に行うことができる。こののため、システム
起動時間を大幅に短縮することのできるコンピュータシ
ステムを提供することができる。
Further, as in the prior art, the stored contents of the CMOS memory device are accessed, and for all the stored contents, the configuration (state) of the peripheral device immediately before the power is turned off and the current peripheral device after the power is turned on again (state). It is not necessary to execute the comparison process (whether or not they match), so that the peripheral device can be quickly initialized. Therefore, it is possible to provide a computer system that can significantly reduce the system startup time.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明に係わるコンピュータシステムの第1の
実施例を示すブロック図。
FIG. 1 is a block diagram showing a first embodiment of a computer system according to the present invention.

【図2】第1の実施例におけるハードディスクに保存さ
れるファイルを説明するための図。
FIG. 2 is an exemplary view for explaining files stored in a hard disk according to the first embodiment;

【図3】第1の実施例における状態格納処理プロセスの
処理手順を示すフローチャート。
FIG. 3 is a flowchart illustrating a processing procedure of a state storage processing process according to the first embodiment.

【図4】第1の実施例における初期化プロセスの処理手
順を示すフローチャート。
FIG. 4 is a flowchart illustrating a processing procedure of an initialization process according to the first embodiment.

【図5】第1の実施例における状態回復プロセスの処理
手順を示すフローチャート。
FIG. 5 is a flowchart showing a processing procedure of a state recovery process in the first embodiment.

【図6】本発明に係わるコンピュータシステムの第2の
実施例を示すブロック図。
FIG. 6 is a block diagram showing a second embodiment of the computer system according to the present invention.

【図7】本発明に係わるコンピュータシステムを有して
構成されるネットワークシステムの一例を示す図。
FIG. 7 is a diagram showing an example of a network system including a computer system according to the present invention.

【図8】第2の実施例におけるシステムのメインの初期
化シーケンスの処理手順を示すフローチャート。
FIG. 8 is a flowchart illustrating a processing procedure of a main initialization sequence of the system according to the second embodiment.

【図9】第2の実施例におけるシステムのメインの初期
化シーケンスのサブルーチンを示すフローチャート。
FIG. 9 is a flowchart illustrating a subroutine of a main initialization sequence of the system according to the second embodiment.

【図10】第2の実施例におけるシステムのメインの初
期化シーケンスのサブルーチンを示すフローチャート。
FIG. 10 is a flowchart illustrating a subroutine of a main initialization sequence of the system according to the second embodiment.

【図11】第2の実施例におけるネートワーク処理のた
めに常時実行されるプロセスの処理手順を示すフローチ
ャート。
FIG. 11 is a flowchart illustrating a processing procedure of a process that is constantly executed for network processing in the second embodiment.

【図12】第2の実施例におけるパケット検索ルーチン
の処理手順を示すフローチャート。
FIG. 12 is a flowchart illustrating a processing procedure of a packet search routine according to the second embodiment.

【図13】第2の実施例におけるコールバック関数のプ
ロシージャの処理手順を示すフローチャート。
FIG. 13 is a flowchart showing a processing procedure of a procedure of a callback function in the second embodiment.

【符号の説明】[Explanation of symbols]

10…キーボード、20…ディスプレイ、30、630
…メモリ、40…フロッピディスク、50…ハードディ
スク、60…LANボード、70…RS232Cインタ
フェース、80、680…中央処理装置、90、690
…システムバス、100…ネットワーク、110…モデ
ム、210…通常のシステムフアィル、220…一時シ
ステムファイル、230…システム状態ファイル、61
0…キーボード/マウス装置、620…表示装置、64
0…フロッピディスク装置、650…固定ディスク装
置、660…イーサネット装置、670…通信モデム装
置。
10 ... keyboard, 20 ... display, 30,630
... Memory, 40 ... Floppy disk, 50 ... Hard disk, 60 ... LAN board, 70 ... RS232C interface, 80,680 ... Central processing unit, 90,690
... System bus, 100 ... Network, 110 ... Modem, 210 ... Normal system file, 220 ... Temporary system file, 230 ... System state file, 61
0: keyboard / mouse device, 620: display device, 64
0: Floppy disk device, 650: Fixed disk device, 660: Ethernet device, 670: Communication modem device

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−136220(JP,A) 特開 昭63−54616(JP,A) 実開 昭63−31640(JP,U) (58)調査した分野(Int.Cl.6,DB名) G06F 1/24 G06F 1/30 G06F 13/00──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-1-136220 (JP, A) JP-A-63-54616 (JP, A) JP-A-63-31640 (JP, U) (58) Survey Field (Int.Cl. 6 , DB name) G06F 1/24 G06F 1/30 G06F 13/00

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定の通信ネットワークとの間の接続処
理を行うインターフェース手段を有するコンピュータシ
ステムであって、 前記インターフェース手段が前記所定の通信ネットワー
クと物理的に接続された状態で、前記所定の通信ネット
ワーク上の情報を検出し、該情報をもとに前記インター
フェース手段が前記所定の通信ネットワークと論理的な
接続が可能な状態であるか否かを判別する判別手段と、 電源再投入時に前記判別手段によって判別された状態に
応じた初期化ルーチンを用いて前記インターフェース手
段を含めた当該コンピュータシステムのネットワーク環
境を初期化する初期化手段とを具備したことを特徴とす
るコンピュータシステム。
1. A computer system having an interface unit for performing a connection process with a predetermined communication network, wherein the interface unit is physically connected to the predetermined communication network and the predetermined communication is performed. Determining means for detecting information on the network and determining, based on the information, whether the interface means is in a state capable of logically connecting to the predetermined communication network; A computer system comprising: initialization means for initializing a network environment of the computer system including the interface means using an initialization routine corresponding to a state determined by the means.
【請求項2】 前記判別手段は、 高速通信を行うネットワークから順次接続が行われてい
るか否かによって前記所定の通信ネットワークと論理的
な接続が可能な状態であるか否かを判別することを特徴
とする請求項1に記載のコンピュータシステム。
2. The method according to claim 1, wherein the determining unit determines whether or not a logical connection with the predetermined communication network is possible based on whether or not a connection is sequentially performed from a network that performs high-speed communication. The computer system according to claim 1, wherein:
【請求項3】 前記判別手段が判別した前記所定の通信
ネットワークとの論理的な接続状態をユーザに報知する
報知手段をさらに具備したことを特徴とする請求項1に
記載のネットワークシステム。
3. The network system according to claim 1, further comprising a notifying unit that notifies a user of a logical connection state with the predetermined communication network determined by the determining unit.
【請求項4】 前記判別手段は、 前記インターフェース手段が自装置以外の装置から送ら
れたパケットを受信した場合に、前記通信ネットワーク
と論理的な接続が可能な状態であると判別することを特
徴とする請求項1に記載のコンピュータシステム。
4. The method according to claim 1, wherein the determining unit determines that a logical connection with the communication network is possible when the interface unit receives a packet transmitted from a device other than the own device. The computer system according to claim 1, wherein
【請求項5】 システムの内部状態を示すデータを記憶
する主記憶手段と、所定の通信ネットワークとの間の接
続処理を行うインターフェース手段とを有するコンピュ
ータシステムであって、 前記主記憶手段の記憶内容を格納する格納手段と、 電源切断直前の前記主記憶手段の記憶内容を前記格納手
段に格納させる状態格納処理手段と、 電源再投入時に前記格納手段に格納された前記記憶内容
を回復させる状態回復手段と、 電源再投入時に前記インターフェース手段が前記所定の
通信ネットワークと物理的に接続された状態で、前記所
定の通信ネットワーク上の情報を検出し、該情報をもと
に前記インターフェース手段が前記所定の通信ネットワ
ークと論理的な接続が可能な状態であるか否かを判別す
る判別手段と、 電源再投入時に前記判別手段によって判別された状態に
応じた初期化ルーチンを用いて、前記状態回復手段が回
復した記憶内容の一部として前記ネットワーク環境を初
期化する初期化手段とを具備したことを特徴とするコン
ピュータシステム。
5. A computer system comprising: a main storage means for storing data indicating an internal state of the system; and an interface means for performing a connection process with a predetermined communication network, wherein a storage content of the main storage means is provided. Storage means for storing the contents stored in the main storage means immediately before power-off in the storage means; and state recovery means for recovering the storage contents stored in the storage means when power is turned on again. Means for detecting information on the predetermined communication network in a state where the interface means is physically connected to the predetermined communication network when power is turned on again, and based on the information, the interface means detects the information on the predetermined communication network. Determining means for determining whether a logical connection with the communication network is possible or not; and A computer system comprising: an initialization unit for initializing the network environment as a part of the storage contents recovered by the state recovery unit using an initialization routine according to the state determined by the unit. .
【請求項6】 システムの内部状態を示すデータを記憶
する主記憶手段と、所定の通信ネットワークとの間の接
続処理を行うインターフェース手段とを有するコンピュ
ータシステムであって、 前記主記憶手段の記憶内容を格納する格納手段と、 電源切断直前の前記主記憶手段の記憶内容を前記格納手
段に格納させる状態格納処理手段と、 電源再投入時に、前記格納手段に格納されている記憶内
容の書込日時と前記格納手段へのアクセス日時とが一致
しない場合、前記記憶内容の回復処理を停止させ、当該
記憶内容がない場合の通常の立上げ処理を行わせる立上
げ制御手段とを具備したことを特徴とするコンピュータ
システム。
6. A computer system comprising: a main storage unit that stores data indicating an internal state of the system; and an interface unit that performs a connection process with a predetermined communication network. Storage means for storing the contents stored in the main storage means immediately before power-off in the storage means; and when the power is turned on again, the date and time of writing the storage contents stored in the storage means. And a start-up control unit for stopping a recovery process of the stored contents when the access date and time of the storage unit do not match with each other and performing a normal start-up process when the stored contents do not exist. And a computer system.
JP4141794A 1992-06-02 1992-06-02 Computer system Expired - Fee Related JP2827702B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4141794A JP2827702B2 (en) 1992-06-02 1992-06-02 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4141794A JP2827702B2 (en) 1992-06-02 1992-06-02 Computer system

Publications (2)

Publication Number Publication Date
JPH05333962A JPH05333962A (en) 1993-12-17
JP2827702B2 true JP2827702B2 (en) 1998-11-25

Family

ID=15300301

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4141794A Expired - Fee Related JP2827702B2 (en) 1992-06-02 1992-06-02 Computer system

Country Status (1)

Country Link
JP (1) JP2827702B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007306143A (en) * 2006-05-09 2007-11-22 Ricoh Co Ltd Image processing apparatus

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8914653B2 (en) 2008-09-05 2014-12-16 Hewlett-Packard Development Company, L.P. Method and system for providing hybrid-shutdown and fast startup processes
US8135972B2 (en) * 2009-03-10 2012-03-13 Cortina Systems, Inc. Data interface power consumption control
JP6648513B2 (en) * 2015-12-17 2020-02-14 コニカミノルタ株式会社 Image forming apparatus and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01136220A (en) * 1987-11-24 1989-05-29 Nec Home Electron Ltd Data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007306143A (en) * 2006-05-09 2007-11-22 Ricoh Co Ltd Image processing apparatus

Also Published As

Publication number Publication date
JPH05333962A (en) 1993-12-17

Similar Documents

Publication Publication Date Title
US6393560B1 (en) Initializing and restarting operating systems
US6928543B2 (en) System for real-time adaptation to changes in display configuration
US7111203B2 (en) Method for implementing data backup and recovery in computer hard disk
US7840796B2 (en) Booting to a recovery/maintenance environment
US6314455B1 (en) Data processing system and method for permitting a server to remotely initiate a client's boot block recovery
KR100961349B1 (en) Vex - virtual extension framework
JP4066325B2 (en) User data backup method
US7237102B2 (en) Methods and apparatus for configuring hardware resources in a pre-boot environment without requiring a system reset
US7543048B2 (en) Methods and apparatus for enabling of a remote management agent independent of an operating system
US8302089B2 (en) Rebootless display driver upgrades
US6393583B1 (en) Method of performing checkpoint/restart of a parallel program
US20040172578A1 (en) Method and system of operating system recovery
US20040015941A1 (en) Information-processing apparatus equipped with nonvolatile memory device and firmware-updating method for use in the apparatus
US20060026319A1 (en) Rollback of data
JPH07101376B2 (en) System restart device
US7418487B2 (en) Apparatus and the method for integrating NICs with RDMA capability but no hardware memory protection in a system without dedicated monitoring processes
US6275930B1 (en) Method, computer, and article of manufacturing for fault tolerant booting
US6467049B1 (en) Method and apparatus for configuration in multi processing engine computer systems
JP2827702B2 (en) Computer system
US20070157014A1 (en) Apparatus for remote flashing of a bios memory in a data processing system
EP1313013A2 (en) Method and system of file protection
EP0661632A1 (en) Booting of operating systems in computers
JP2642082B2 (en) Starting the communication program
JPH11120016A (en) Device performing automatically performing system recovery in case of abnormal end and recording medium
JPH04273564A (en) Terminal attribute restoration control system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees