JPH0784890A - Doubling system for control information - Google Patents

Doubling system for control information

Info

Publication number
JPH0784890A
JPH0784890A JP5232843A JP23284393A JPH0784890A JP H0784890 A JPH0784890 A JP H0784890A JP 5232843 A JP5232843 A JP 5232843A JP 23284393 A JP23284393 A JP 23284393A JP H0784890 A JPH0784890 A JP H0784890A
Authority
JP
Japan
Prior art keywords
control information
ram
eeprom
stored
check
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.)
Pending
Application number
JP5232843A
Other languages
Japanese (ja)
Inventor
Kazuto Enomoto
和人 榎本
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5232843A priority Critical patent/JPH0784890A/en
Publication of JPH0784890A publication Critical patent/JPH0784890A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To automatically restore control information in a short time by writing control information of a backup memory in a main memory when the control information is abnormal. CONSTITUTION:Once a printer device 1 is powered ON, a CPU 7 executes a check program in a ROM 5 to check control information in a RAM 3. If it is judged that there is an error in the control information in the RAM 3 as a result of the check, control information stored in an EEPROM 6 is overwritten in the area of a ROM 3 where the control information is written. In this case, the EEPROM 6 is stored with the latest backup data at the time of last actuation. Thus, the latest control information is stored in the EEPROM 6 at all times, so even if a noise is generated in the RAM 3 and its data are destroyed, or if a battery is dead and data are lost, the control information in the RAM 3 can easily be restored.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数の記憶手段をもつ
制御装置における制御情報の保護に関し、特に制御装置
に必要な制御情報を自動的に復旧するに最適な制御情報
の二重化方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to protection of control information in a control device having a plurality of storage means, and more particularly to a control information duplication system optimal for automatically recovering control information required for the control device.

【0002】[0002]

【従来の技術】一般的なコンピュータシステムにおい
て、システムプログラムは内部のROMあるいは外部記
憶装置からロードされる。その際、システムの状態や、
システム固有の動作環境に応じて設定された制御情報を
参照しながら、システムの立ち上げが行われることによ
り、そのシステムに最も適した状態の設定が実現される
ものである。
2. Description of the Related Art In a general computer system, a system program is loaded from an internal ROM or an external storage device. At that time, the state of the system,
The system is started up while referring to the control information set according to the operating environment peculiar to the system, whereby the setting of the most suitable state for the system is realized.

【0003】このように、制御情報はシステムにとって
非常に重要な意味を持つものであるため、事故や障害に
よって起こる制御情報の損失を回避する必要が生じる。
As described above, since the control information has a very important meaning for the system, it is necessary to avoid the loss of the control information caused by an accident or a failure.

【0004】このような技術の一例として、例えば特開
昭61−262895号公報に、バッテリーによってバ
ックアップされたRAM内に保持されている設定情報
を、バッテリーの点検時には電気的に書き込み可能なE
PROMに退避させることにより、設定データを確実に
保全する方法が開示されている。
As an example of such a technique, for example, in Japanese Patent Laid-Open No. 61-262895, the setting information held in the RAM backed up by a battery can be electrically written when the battery is inspected.
A method is disclosed in which the setting data is surely preserved by saving it in the PROM.

【0005】[0005]

【発明が解決しようとする課題】しかしながらこのよう
なデータのバックアップ方法では、あらかじめ点検作業
を通知しなければならず、まったく予期しない事故や障
害によるデータの損失には対処できないという問題があ
った。このような事故や障害が起こった場合、制御情報
を失ったコンピュータシステムを、それまでの動作環境
に設定しなおすにはオペレータによる修復作業が必要と
される。一般にそれは多大な時間と労力がかかるもので
あり、場合によっては2度と回復できないこともあっ
た。
However, in such a data backup method, there is a problem that the inspection work must be notified in advance, and the data loss due to an unexpected accident or failure cannot be dealt with at all. In the event of such an accident or failure, a repair work by the operator is required to reset the computer system that has lost control information to the previous operating environment. In general, it took a lot of time and effort, and in some cases it could never be recovered.

【0006】したがって本発明の目的は、不慮の際にお
ける制御情報の損失を防ぎ、またシステムの動作環境や
状態が設定される制御情報を、事故や障害によって破壊
される前の状態に短時間でしかも自動的に修復すること
が可能な制御情報の2重化方式を提供することにある。
Therefore, it is an object of the present invention to prevent loss of control information in the event of an accident, and to control the control information in which the operating environment and state of the system are set to a state before being destroyed by an accident or failure in a short time. Moreover, it is to provide a duplication method of control information that can be automatically restored.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するため
に本発明では、情報機器を制御する制御装置において、
電池により情報機器の制御情報が保持されたメインメモ
リと、電池不要の不揮発性メモリからなる前記制御情報
のバックアップ用メモリを有し、制御装置の待機時にメ
インメモリの制御情報をチェックしそのデータが正常で
あるならば、バックアップ用メモリにその制御情報を書
き込み、前記チェックにおいて制御情報に何らかの異常
がある場合には、バックアップ用メモリの制御情報をメ
インメモリに書き込むことにより達成される。
In order to solve the above-mentioned problems, according to the present invention, in a control device for controlling information equipment,
It has a main memory that holds control information for information equipment by a battery and a backup memory for the control information that is a non-volatile memory that does not require a battery. If it is normal, the control information is written in the backup memory, and if there is any abnormality in the control information in the above check, the control information in the backup memory is written in the main memory.

【0008】[0008]

【作用】制御装置の待機時に常にメインメモリをチェッ
クし、メインメモリの制御情報に異常がある場合には、
バックアップ用メモリに格納する制御情報を、メインメ
モリに転送することにより、制御情報が破壊されたとき
オペレータに要求される制御情報の再入力を不要とする
事が出来る。
When the control device is on standby, the main memory is constantly checked, and if the control information in the main memory is abnormal,
By transferring the control information stored in the backup memory to the main memory, it is not necessary to re-input the control information required by the operator when the control information is destroyed.

【0009】[0009]

【実施例】以下本発明の一実施例を図面によって詳細に
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings.

【0010】図1は本発明をプリンタ装置に利用した場
合のブロック図である。
FIG. 1 is a block diagram when the present invention is applied to a printer device.

【0011】図1において、1はプリンタ装置、2はそ
のプリンタ装置における各種制御を行う制御部、3は、
制御プログラムやプリンタ装置の制御情報を格納し、作
業用のワークエリア等を有する随時読み書きが可能な主
記憶部(以下、RAM3とする)である。4はRAM3
の記憶内容を保持しておくためのバッテリー電源部であ
り、このバッテリー電源部4により、RAM3に記憶さ
れている内容は、プリンタ装置の電源を切ったときで
も、失われることがない。
In FIG. 1, 1 is a printer device, 2 is a control unit for performing various controls in the printer device, and 3 is
It is a main storage unit (hereinafter referred to as RAM 3) that stores a control program and control information of the printer device and has a work area for work and is readable and writable at any time. 4 is RAM3
This is a battery power supply unit for holding the stored contents of the above. The battery power supply unit 4 does not lose the contents stored in the RAM 3 even when the power of the printer device is turned off.

【0012】5は、プリンタ装置1の立ち上がり時にお
いて、各部をチェックし、動作可能状態にする初期設定
プログラムが格納されている読み出し専用記憶部(以
下、ROM5とする)であり、6は、例えばEEPRO
Mのようなバッテリー電源部を必要としない不揮発性記
憶素子からなる、バックアップ用記憶部である(以下、
EEPROM6とする)。7は、各種プログラムに従い
実行処理を行う、中央処理部(以下、CPU7とする)
である。
Reference numeral 5 denotes a read-only storage unit (hereinafter referred to as ROM 5) that stores an initial setting program that checks each unit when the printer apparatus 1 starts up and makes it operable. EEPRO
A backup storage unit including a non-volatile storage element such as M that does not require a battery power supply unit (hereinafter,
EEPROM 6). Reference numeral 7 denotes a central processing unit (hereinafter referred to as CPU 7) that executes an execution process according to various programs.
Is.

【0013】また8は、印字ヘッドやゴムローラ等を有
し印字処理を行う印字部であり、9は、このプリンタ装
置1の動作指示や制御の変更あるいは環境の設定といっ
た制御情報の入力を行うための入力部であり、10は、
入力部9から入力された制御情報や現在の動作状況など
を確認するための表示部である。11は外部とのデータ
の入出力を行うインターフェース部であり、12の接続
ケーブルにより13の上位装置と接続されている。
Reference numeral 8 denotes a printing unit having a print head, a rubber roller and the like for performing a printing process, and 9 for inputting operation information of the printer device 1 and control information such as control change or environment setting. Is the input part of
It is a display unit for confirming the control information input from the input unit 9 and the current operation status. Reference numeral 11 denotes an interface unit for inputting / outputting data to / from the outside, which is connected to a host device of 13 by a connection cable of 12.

【0014】プリンタ装置1は、この上位装置13から
送られてくる印刷データを受け印字を行うものであり、
また上位装置13からプリンタ装置1の動作環境の設定
といったような制御情報を変更することも可能である。
The printer device 1 receives the print data sent from the host device 13 and prints it.
It is also possible to change control information such as the setting of the operating environment of the printer device 1 from the host device 13.

【0015】入力部9あるいは上位装置13から設定さ
れた制御情報は、RAM3にて保持され、この制御情報
をもとに制御プログラムの修正が行われ、プリンタ装置
1は、その使用環境に応じて様々な設定が可能となる。
The control information set from the input unit 9 or the higher-level device 13 is held in the RAM 3, the control program is modified based on this control information, and the printer device 1 is changed according to its use environment. Various settings are possible.

【0016】また、RAM3の制御情報には、印字部8
における印字回数をカウントし、それにより得られた印
字ヘッドやゴムローラの使用回数といったメンテナンス
用の情報も格納されており、これによりヘッドやゴムロ
ーラなどの取り替え時期を管理する。
Further, the control information in the RAM 3 includes a printing section 8
The number of times of printing in is counted, and maintenance information such as the number of times of use of the print head and the rubber roller obtained by the counting is also stored, and the replacement time of the head and the rubber roller is managed by this.

【0017】このように制御情報は、プリンタ装置1に
とって非常に重要なものであるため、簡単に失われるこ
とがないようにRAM3は常時バッテリー電源4によっ
て保持されており、プリンタ装置1の電源を切ってもそ
のデータは失われることがない。しかし、これだけで
は、ノイズやバッテリー電源4のバッテリー切れによる
制御情報の損失を防ぐことができないため、本発明では
さらにバッテリーを必要としないEEPROM6をバッ
クアップ用のメモリとすることで、より一層安全性を高
めている。
As described above, since the control information is very important for the printer device 1, the RAM 3 is always held by the battery power source 4 so that the RAM 3 is not easily lost. Even if you turn it off, the data will not be lost. However, this alone cannot prevent the loss of control information due to noise or the battery power of the battery power source 4 running out. Therefore, in the present invention, the EEPROM 6 that does not require a battery is used as a backup memory to further improve safety. I am raising.

【0018】次に、このプリンタ装置1の、特に制御部
2における制御情報に関する動作を、図2のフローチャ
ートによって詳細に説明する。
Next, the operation relating to the control information in the printer unit 1, particularly in the control unit 2, will be described in detail with reference to the flowchart of FIG.

【0019】まずプリンタ装置1の電源投入すると、R
OM5にあるチェックプログラムをCPU7で実行する
ことによりRAM3にある制御情報のチェックを行う
(ステップ201)。チェックプログラムは例えば、チ
ェックサム方式でもよいし、またパリティチェック方式
でも効果は同じである。そしてチェックした結果、RA
M3の制御情報にエラーがあると判断されれば(ステッ
プ202)、EEPROM6に格納されている制御情報
がRAM3の制御情報が書き込まれているエリアに上書
きされる(ステップ203)。この場合、EEPROM
6には前回の起動時における一番最後のバックアップデ
ータが記憶されている。
First, when the printer device 1 is powered on, R
The CPU 7 executes the check program stored in the OM 5 to check the control information stored in the RAM 3 (step 201). The check program may be, for example, a checksum method or a parity check method with the same effect. And as a result of checking, RA
When it is determined that the control information of M3 has an error (step 202), the control information stored in the EEPROM 6 is overwritten in the area of the RAM 3 where the control information is written (step 203). In this case, the EEPROM
6 stores the last backup data at the time of the previous startup.

【0020】RAM3の制御情報に異常がなければ、C
PU7はROM5の初期設定プログラムを実行し、プリ
ント装置1を待機状態とする。
If there is no abnormality in the control information in RAM 3, C
The PU 7 executes the initialization program of the ROM 5 and puts the printing apparatus 1 in a standby state.

【0021】この待機状態において上位装置13から何
の印刷指示も行われず、また入力部9における入力操作
もなければ、CPU7の空き時間を利用して(ステップ
204)、RAM3の制御情報を随時チェックする(ス
テップ205)。もしもRAM3の制御情報に異常があ
ったならば、その制御情報は破壊されていると判断し
(ステップ206)、EEPROM6に格納されている
制御情報をRAM3の制御情報が書き込まれているエリ
アに上書きするが(ステップ207)、RAM3の制御
情報に何の異常もない場合は、その制御情報をEEPR
OM6に格納する(ステップ208)。このようにし
て、CPU7の空き時間を利用し、制御情報のチェック
およびバックアップを繰り返す。
In this standby state, if no print instruction is issued from the host device 13 and no input operation is performed on the input unit 9, the idle time of the CPU 7 is used (step 204) to check the control information of the RAM 3 as needed. (Step 205). If the control information in the RAM 3 is abnormal, it is determined that the control information is destroyed (step 206), and the control information stored in the EEPROM 6 is overwritten in the area in which the control information in the RAM 3 is written. However, if there is no abnormality in the control information of the RAM 3 (step 207), the control information is set to EEPR.
Store in OM6 (step 208). In this way, the free time of the CPU 7 is used to repeat the check and backup of the control information.

【0022】EEPROM6には常に最新の制御情報が
格納されているため、RAM3にノイズが生じそのデー
タが破壊されたとしても、あるいはバッテリーがきれて
データが損失したとしても、容易にRAM3の制御情報
を復旧することができる。
Since the latest control information is always stored in the EEPROM 6, even if the data is destroyed due to noise in the RAM 3 or the data is lost due to battery exhaustion, the control information in the RAM 3 can be easily stored. Can be restored.

【0023】なお、上記実施例では、制御情報のバック
アップ用のメモリとしてをEEPROMを用いている
が、これは他の書換え可能な不揮発性メモリでも良いこ
とは言うまでもない。
In the above embodiment, the EEPROM is used as the memory for backing up the control information, but it goes without saying that this may be another rewritable nonvolatile memory.

【0024】本発明における第2の実施例としては、図
3に示すように制御部2においてEEPROM6のよう
な不揮発性メモリを複数用意し、利用者や使用環境毎
に、それぞれ異なる制御情報を格納するようにし、制御
情報の切り替えにより複数の動作環境を使い分けるよう
にすることで、例えば利用者毎に異なる環境をひとつの
機器で使えるようにすることができる。またひとつの不
揮発性メモリをアドレスで複数のエリアに分割するよう
にしても、同様である。
As a second embodiment of the present invention, as shown in FIG. 3, a plurality of non-volatile memories such as an EEPROM 6 are prepared in the control unit 2, and different control information is stored for each user and each usage environment. In this way, by switching the control information so as to properly use a plurality of operating environments, for example, different environments can be used by one device for each user. The same applies when one non-volatile memory is divided into a plurality of areas by addresses.

【0025】[0025]

【発明の効果】以上述べたように、本発明によれば、書
換え可能な不揮発性メモリー内に格納された制御情報を
プログラムが参照して動作する機器において、電源投入
時に制御情報が破壊されていた場合、制御情報を絶対に
破壊されないエリア(以下エリアAとする)から、通常
処理時、プログラムが参照できるエリア(以下エリアB
とする)に転送し、通常の空き時間には、エリアBを監
視し、何らかの原因でエリアBにある制御情報が破壊さ
れたとき、エリアAからエリアBへ制御情報を自動的に
転送するようにしたので、メモリー破壊時の立ちあげ時
間が短縮され、処理能力向上に大きな効果をもたらすも
のである。
As described above, according to the present invention, the control information stored in the rewritable non-volatile memory is operated by the program referring to the control information, and the control information is destroyed when the power is turned on. If the control information is not destroyed (hereinafter referred to as area A), the program can refer to it during normal processing (hereinafter referred to as area B).
When the control information in the area B is destroyed for some reason, the control information is automatically transferred from the area A to the area B. As a result, the startup time at the time of memory destruction is shortened, which has a great effect on the improvement of processing capacity.

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

【図1】本発明の1実施例の構成形態を示すブロック
図。
FIG. 1 is a block diagram showing a configuration form of an embodiment of the present invention.

【図2】機器の電源投入からの処理フローチャート。FIG. 2 is a process flowchart after turning on the power of the device.

【図3】本発明における第2の実施例の制御部を示すブ
ロック図。
FIG. 3 is a block diagram showing a control unit according to a second embodiment of the present invention.

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

1 プリンタ装置 2 制御部 3 RAM 4 バッテリー電源部 5 ROM 6 EEPROM 7 CPU 8 印字部 9 入力部 10 表示部 11 インターフェース部 12 接続ケーブル 13 上位装置 1 Printer device 2 Control part 3 RAM 4 Battery power supply part 5 ROM 6 EEPROM 7 CPU 8 Printing part 9 Input part 10 Display part 11 Interface part 12 Connection cable 13 Upper device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】情報機器を制御する制御装置において、電
池により情報機器の制御情報が保持されたメインメモリ
と、電池不要の不揮発性メモリからなる前記制御情報の
バックアップ用メモリを有し、制御装置の待機時にメイ
ンメモリの制御情報をチェックしそのデータが正常であ
るならば、バックアップ用メモリにその制御情報を書き
込み、前記チェックにおいて制御情報に何らかの異常が
ある場合には、バックアップ用メモリの制御情報をメイ
ンメモリに書き込むことを特徴とする制御情報の二重化
方式。
1. A control device for controlling information equipment, comprising: a main memory in which control information for the information equipment is held by a battery; and a backup memory for the control information, which is a non-volatile memory that does not require a battery. Check the control information of the main memory during standby, and if the data is normal, write the control information to the backup memory, and if there is any abnormality in the control information in the above check, control information of the backup memory A control information duplication method characterized by writing data to the main memory.
JP5232843A 1993-09-20 1993-09-20 Doubling system for control information Pending JPH0784890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5232843A JPH0784890A (en) 1993-09-20 1993-09-20 Doubling system for control information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5232843A JPH0784890A (en) 1993-09-20 1993-09-20 Doubling system for control information

Publications (1)

Publication Number Publication Date
JPH0784890A true JPH0784890A (en) 1995-03-31

Family

ID=16945676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5232843A Pending JPH0784890A (en) 1993-09-20 1993-09-20 Doubling system for control information

Country Status (1)

Country Link
JP (1) JPH0784890A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001265344A (en) * 2000-03-22 2001-09-28 Yamaha Corp Musical sound generator control method, timbre data transfer method, timbre data control device, and storage medium
JP2010074268A (en) * 2008-09-16 2010-04-02 Hitachi Kokusai Electric Inc Radio communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001265344A (en) * 2000-03-22 2001-09-28 Yamaha Corp Musical sound generator control method, timbre data transfer method, timbre data control device, and storage medium
JP2010074268A (en) * 2008-09-16 2010-04-02 Hitachi Kokusai Electric Inc Radio communication system

Similar Documents

Publication Publication Date Title
JP2000090011A (en) Memory rewriting method and computer system
JP5041290B2 (en) PROGRAMMABLE CONTROLLER AND ITS ERROR RECOVERY METHOD
JPH0784890A (en) Doubling system for control information
JP2868001B1 (en) Disk array device control method and disk array device
JP2004054616A (en) Information processor with function to automatically restore firmware
JPH0784894A (en) Method for writing nonvolatile memory
JP2010198314A (en) Information management device
JP2000322333A (en) Automatic saving/automatic restoration system and method for information specific to computer system
JP2000235483A (en) Information processor
JP2005035229A (en) Printer
JPH08190461A (en) Disk array system
JPH1145105A (en) Backup system for data for cnc device
JPH033051A (en) Information processor
JP2812285B2 (en) Network interface card for printer
JP2004348546A (en) Device and method for switching control program
JPH08153005A (en) Patch processing system
JPS6077252A (en) Input/output control device
JPS62284440A (en) Software resource maintenance system for terminal equipment
JPH1125007A (en) Method for storing/recovering backup data
JP3381588B2 (en) Storage device normality check device and information processing device
JPH09197941A (en) Printer device and control method therefor
JP3060376U (en) Memory device
JPS6127000A (en) Inspection method of ram
JPH07244613A (en) Dual-memory control method
JP2001175543A (en) Data controller