JP2000200193A - Data processor - Google Patents

Data processor

Info

Publication number
JP2000200193A
JP2000200193A JP11000944A JP94499A JP2000200193A JP 2000200193 A JP2000200193 A JP 2000200193A JP 11000944 A JP11000944 A JP 11000944A JP 94499 A JP94499 A JP 94499A JP 2000200193 A JP2000200193 A JP 2000200193A
Authority
JP
Japan
Prior art keywords
initial load
load program
stored
program
rewrite
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.)
Abandoned
Application number
JP11000944A
Other languages
Japanese (ja)
Inventor
Shinichi Nara
信一 奈良
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP11000944A priority Critical patent/JP2000200193A/en
Publication of JP2000200193A publication Critical patent/JP2000200193A/en
Abandoned legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To surely rewrite an initial load program while guaranteeing the activation of the initial load program. SOLUTION: An initial load program 2 is constituted of two sequences, a rewrite program is activated in the case that the rewrite is requested from the outside, the initial load program stored in a second initial load program is made rewritable and also write completion 1 is made storable and holdable in a rewrite completion flag (IPL2F) after the complete rewrite end of the initial load program. Then, when the rewrite completion 1 is stored and held in the rewrite completion flag (IPL2F) at the time of supplying power, the initial load program stored in the second initial load program part is made activatable. In the case that the rewrite completion 1 is not stored and held in the rewrite completion flag (IPL2F), the initial load program stored in a first initial load program part is made activatable.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、イニシャルロード
プログラム部とアプリケーションプログラム部とを有
し、外部からのイニシャルロードプログラムの書換要求
に応えてイニシャルロードプログラム部に格納されたイ
ニシャルロードプログラムを書換可能に形成されたデー
タ処理装置に関する。
The present invention has an initial load program section and an application program section, and can rewrite an initial load program stored in the initial load program section in response to an external initial program rewrite request. The present invention relates to a data processing device formed in the above.

【0002】[0002]

【従来の技術】例えば、プリンタ,複写機,画像形成装
置,POSシステムの端末(例えば、電子キャッシュレ
ジスタ)等として利用されるデータ処理装置の中には、
外部から各種プログラムを書換え可能に形成する場合が
ある。
2. Description of the Related Art For example, some data processing apparatuses used as printers, copiers, image forming apparatuses, POS system terminals (for example, electronic cash registers), and the like include:
In some cases, various programs can be rewritten from the outside.

【0003】例えば、図5に示すデータ処理装置20
(駆動制御部30,動作ユニット50)は、駆動制御部
30内のアプリケーションプログラム部(APL部)に
アプリケーションプログラムを格納し、このアプリケー
ションプログラムを起動するためのイニシャルロードプ
ログラムをイニシャルロードプログラム部(IPL部)
に格納し、外部(制御系ホストコンピュータ10)から
の書換要求(ダウンロードコマンド等)に応えて書換プ
ログラムを起動しイニシャルロードプログラムを書換可
能に形成されている。
For example, a data processing device 20 shown in FIG.
The (drive control unit 30, operation unit 50) stores an application program in an application program unit (APL unit) in the drive control unit 30, and stores an initial load program for activating the application program in an initial load program unit (IPL). Part)
The reload program is started in response to a rewrite request (download command or the like) from the outside (the control system host computer 10), and the initial load program is rewritten.

【0004】すなわち、かかるデータ処理装置20で
は、最初にイニシャルロードプログラムが起動し、しか
る後にアプリケーションプログラムを起動して、データ
処理(動作ユニットを制御)する。ここで、外部(1
0)からイニシャルロードプログラムの書換要求をダウ
ンロードすると、駆動制御部30は、ダウンロードプロ
グラム(書換え実行プログラム)を起動して、当該イニ
シャルロードプログラムの一部を書き換える。例えば、
イニシャルロードプログラム中のルーチンAとルーチン
Bとの実行順序を逆転させる書換えである。
That is, in the data processing apparatus 20, an initial load program is started first, and then an application program is started to perform data processing (controls an operation unit). Here, outside (1
When the reload request of the initial load program is downloaded from 0), the drive control unit 30 starts the download program (rewrite execution program) and rewrites a part of the initial load program. For example,
This is rewriting for reversing the execution order of the routine A and the routine B in the initial load program.

【0005】[0005]

【発明が解決しようとする課題】ところで、起動時に何
らかの原因でイニシャルロードプログラムに暴走やハン
グアップが発生すると、アプリケーションプログラムを
起動できない。つまり、装置が立ち上らない。起動後の
イニシャルロードプログラムの書換え中に電源が落とさ
れたり停電した場合にもイニシャルロードプログラムが
未完成になるので、再起動できなくなる。稀にはバグが
発見される場合がある。いずれの場合も、例えばアプリ
ケーションプログラム部に格納されたダウンロードプロ
グラム(書換プログラム)を起動できなくなってしま
う。したがって、外部(10)から当該イニシャルロー
ドプログラムの書換え要求をしても、当該イニシャルロ
ードプログラムの書換えができないから、永遠に最新バ
ージョンでのデータ処理が出来なくなってしまう問題が
ある。
If the initial load program runs away or hangs up for some reason at the time of startup, the application program cannot be started. That is, the device does not start. If the power is turned off or the power is interrupted during the rewriting of the initial load program after the start, the initial load program is incomplete and cannot be restarted. In rare cases, bugs may be found. In either case, for example, the download program (rewrite program) stored in the application program unit cannot be started. Therefore, even if a request for rewriting the initial load program is issued from the outside (10), the initial load program cannot be rewritten, so that there is a problem that data processing with the latest version cannot be performed forever.

【0006】本発明の目的は、イニシャルロードプログ
ラムの起動を保障しつつイニシャルロードプログラムの
書換えを確実に行えるデータ処理装置を提供することに
ある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a data processing apparatus capable of reliably rewriting an initial load program while guaranteeing activation of the initial load program.

【0007】[0007]

【課題を解決するための手段】請求項1の発明は、イニ
シャルロードプログラム部とアプリケーションプログラ
ム部とを有し、外部からのイニシャルロードプログラム
の書換要求に応えて書換プログラムを起動してイニシャ
ルロードプログラム部に格納されたイニシャルロードプ
ログラムを書換可能に形成されたデータ処理装置におい
て、前記イニシャルロードプログラム部を2系列に構成
し、前記外部から書換要求があった場合に前記書換プロ
グラムを起動しかつ第1のイニシャルロードプログラム
部に格納されたイニシャルロードプログラムはそのまま
として、第2のイニシャルロードプログラム部に格納さ
れたイニシャルロードプログラムを書換可能かつ第2の
イニシャルロードプログラム部に格納されたイニシャル
ロードプログラムの完全書換終了後に書換完了フラグを
記憶保持可能であるとともに、電源投入時に書換完了フ
ラグが記憶保持されていると判別した場合には第2のイ
ニシャルロードプログラム部に格納されたイニシャルロ
ードプログラムを起動可能で、記憶保持されていないと
判別した場合には第1のイニシャルロードプログラム部
に格納されたイニシャルロードプログラムを起動可能に
形成したデータ処理装置である。
According to a first aspect of the present invention, there is provided an initial load program having an initial load program section and an application program section, and activating a rewrite program in response to an external initial program rewrite request. In the data processing device formed such that the initial load program stored in the unit is rewritable, the initial load program unit is configured in two lines, and when there is a rewrite request from the outside, the rewrite program is started and The initial load program stored in the second initial load program section is rewritable while the initial load program stored in the first initial load program section is kept as it is and the initial load program stored in the second initial load program section The rewrite completion flag can be stored and held after the completion of the complete rewrite, and the initial load program stored in the second initial load program unit can be started when it is determined that the rewrite completion flag is stored and held when the power is turned on. In the data processing device, when it is determined that the initial load program is not stored and held, the initial load program stored in the first initial load program unit can be started.

【0008】かかる発明では、第1のイニシャルロード
プログラム部および第2のイニシャルロードプログラム
部に例えば同一のイニシャルロードプログラムを格納さ
せておく。第1回目の電源投入をすると、第1のイニシ
ャルロードプログラム部に格納されたイニシャルロード
プログラムを起動して、アプリケーションプログラムを
起動する。これにより、データ処理を行う。
According to this invention, for example, the same initial load program is stored in the first initial load program section and the second initial load program section. When the power is turned on for the first time, the initial load program stored in the first initial load program section is started, and the application program is started. Thereby, data processing is performed.

【0009】ここに、外部から書換要求があると、書換
プログラムを起動しかつ第1のイニシャルロードプログ
ラム部に格納されたイニシャルロードプログラムはその
ままとして、第2のイニシャルロードプログラム部に格
納されたイニシャルロードプログラムを書換える。そし
て、第2のイニシャルロードプログラム部に格納された
イニシャルロードプログラムの完全書換終了したら、書
換完了フラグを記憶保持する。データ処理終了で、電源
を落とす。
Here, when there is a rewriting request from outside, the rewriting program is started, and the initial loading program stored in the first initial loading program section is left as it is, and the initial loading program stored in the second initial loading program section is kept. Rewrite the load program. Then, when complete rewriting of the initial load program stored in the second initial load program section is completed, the rewriting completion flag is stored and held. At the end of data processing, turn off the power.

【0010】第2回目の電源投入をすると、書換完了フ
ラグが記憶保持されているか否かを判別する。今度は、
書換完了フラグが記憶保持されているので、第2のイニ
シャルロードプログラム部に格納されたイニシャルロー
ドプログラムを起動する。これにより、アプリケーショ
ンプログラムを起動して、データ処理を行う。
When the power is turned on for the second time, it is determined whether or not the rewrite completion flag is stored. Next time,
Since the rewrite completion flag is stored and held, the initial load program stored in the second initial load program section is started. As a result, the application program is activated to perform data processing.

【0011】この起動中に、外部から書換要求がある
と、書換プログラムを起動しかつ第1のイニシャルロー
ドプログラム部に格納されたイニシャルロードプログラ
ムはそのままとして、第2のイニシャルロードプログラ
ム部に格納されたイニシャルロードプログラムを書換え
る。そして、第2のイニシャルロードプログラム部に格
納されたイニシャルロードプログラムの完全書換終了し
たら、改めて書換完了フラグを記憶保持する。データ処
理終了で、電源を落とす。
During this startup, if there is a rewrite request from the outside, the rewrite program is started and the initial load program stored in the first initial load program section is stored in the second initial load program section as it is. Rewrite the initial load program. When complete rewriting of the initial load program stored in the second initial load program section is completed, the rewriting completion flag is stored and held again. At the end of data processing, turn off the power.

【0012】第1回目および第2(〜N)回目のいずれ
の場合も、第2のイニシャルロードプログラム部に格納
されたイニシャルロードプログラムの書換え中に停電等
があると、当該イニシャルロードプログラムの完全書換
が終了できないので、書換完了フラグが記憶保持される
ことがない。
In both the first and second (-N) times, if there is a power failure or the like during rewriting of the initial load program stored in the second initial load program section, the initial load program is completely rewritten. Since the rewriting cannot be completed, the rewriting completion flag is not stored and held.

【0013】したがって、その後の電源投入時は、書換
完了フラグが記憶保持されていないと判別されるから、
第1のイニシャルロードプログラム部に格納されたイニ
シャルロードプログラムを起動して、データ処理する。
第1のイニシャルロードプログラム部に格納されたイニ
シャルロードプログラムは、当初のままであるからその
後の書換えは行われていないが、起動そのものは確実に
行える。かくして、第1のイニシャルロードプログラム
部に格納されたイニシャルロードプログラムを起動して
装置を立ち上げ、第2のイニシャルロードプログラム部
に格納されたイニシャルロードプログラムを最新のバー
ジョンに書換えることができる。
Therefore, when the power is turned on thereafter, it is determined that the rewrite completion flag is not stored and held.
Activate the initial load program stored in the first initial load program section and perform data processing.
The initial load program stored in the first initial load program section is not rewritten since the initial load program remains as it is, but the start itself can be reliably performed. Thus, the apparatus can be started by activating the initial load program stored in the first initial load program section, and rewriting the initial load program stored in the second initial load program section to the latest version.

【0014】よって、イニシャルロードプログラムの起
動を保障しつつイニシャルロードプログラムの書換えを
確実に行える。
Therefore, the rewriting of the initial load program can be reliably performed while guaranteeing the activation of the initial load program.

【0015】また、請求項2の発明は、前記書換プログ
ラムが前記アプリケーションプログラム部に格納されて
いるデータ処理装置である。
[0015] The invention of claim 2 is a data processing device in which the rewriting program is stored in the application program section.

【0016】かかる発明では、書換プログラムが、第1
のイニシャルロードプログラム部に格納されたイニシャ
ルロードプログラムおよび第2のイニシャルロードプロ
グラム部に格納されたイニシャルロードプログラムに共
通なアプリケーションプログラム部に格納されているの
で、請求項1の発明の場合と同様な作用効果を奏するこ
とができることに加え、さらに各イニシャルロードプロ
グラム部のそれぞれに書換プログラムを格納する場合に
比較してメモリ容量を半減することができる。
In this invention, the rewriting program stores the first program.
Since the initial load program stored in the initial load program section and the initial load program stored in the second initial load program section are stored in an application program section common to the first and second initial load program sections, the same as in the first aspect of the present invention. In addition to providing the effect, the memory capacity can be halved as compared with the case where the rewrite program is stored in each of the initial load program units.

【0017】また、請求項3の発明は、前記外部がホス
トコンピュータとされかつ前記書換要求がデータ通信回
線を介して入力されるデータ処理装置である。
Further, the invention according to claim 3 is a data processing apparatus wherein the outside is a host computer and the rewrite request is inputted via a data communication line.

【0018】かかる発明では、書換要求およびデータが
データ通信回線を介してホストコンピュータ側から入力
される。したがって、請求項1および請求項2の各発明
の場合と同様な作用効果を奏することができることに加
え、さらに何時でも簡単にイニシャルロードプログラム
の書換えを行える。
In this invention, the rewrite request and data are input from the host computer through the data communication line. Therefore, in addition to providing the same effects as those of the first and second aspects of the invention, the initial load program can be easily rewritten at any time.

【0019】さらに、請求項4の発明は、前記外部が記
憶媒体とされかつ前記書換要求が記憶媒体からデータを
読取可能なデータ読取装置を介して入力されるデータ処
理装置である。
Further, the invention according to claim 4 is a data processing apparatus wherein the outside is a storage medium and the rewrite request is input via a data reading device capable of reading data from the storage medium.

【0020】かかる発明では、記憶媒体(例えば、フロ
ッピーディスク)を用いて書換要求およびデータを入力
できる。したがって、請求項1および請求項2の各発明
の場合と同様な作用効果を奏することができることに加
え、さらに書換途中に停電があったとしても直ちに再書
換を行える。
In this invention, a rewrite request and data can be input using a storage medium (eg, a floppy disk). Therefore, in addition to providing the same operation and effect as in each of the first and second aspects of the present invention, rewriting can be performed immediately even if a power failure occurs during rewriting.

【0021】[0021]

【発明の実施の形態】以下、本発明の実施形態について
図面を参照して説明する。本データ処理装置20は、図
1に示す如く基本的構成が従来例(図5)の場合と同様
とされているが、図2に示すようにさらにイニシャルロ
ードプログラム部を2系列(34B,34C)に構成
し、外部(10)から書換要求があった場合に書換プロ
グラムを起動しかつ第1のイニシャルロードプログラム
部(34B)に格納されたイニシャルロードプログラム
はそのままとして、第2のイニシャルロードプログラム
部(34C)に格納されたイニシャルロードプログラム
を書換可能かつ第2のイニシャルロードプログラム部
(34C)に格納されたイニシャルロードプログラムの
完全書換終了後に書換完了フラグを記憶保持可能である
とともに、電源投入時に書換完了フラグが記憶保持され
ていると判別した場合には第2のイニシャルロードプロ
グラム部(34C)に格納されたイニシャルロードプロ
グラムを起動可能で、記憶保持されていないと判別した
場合には第1のイニシャルロードプログラム部(34
B)に格納されたイニシャルロードプログラムを起動可
能に形成されている。
Embodiments of the present invention will be described below with reference to the drawings. The data processing apparatus 20 has a basic configuration similar to that of the conventional example (FIG. 5) as shown in FIG. 1, but further includes two initial load program sections (34B, 34C) as shown in FIG. ), The rewriting program is started when there is a rewriting request from the outside (10), and the second initial load program stored in the first initial load program section (34B) is left as it is. The initial load program stored in the first load program section (34C) can be rewritten, and the complete rewrite of the initial load program stored in the second initial load program section (34C) can be stored and retained after the complete rewrite, and the power is turned on. At the time when the rewrite completion flag is stored and held, Program unit initial loading program stored in the (34C) can be activated, the first initial loading program portion in case where it is determined not to be stored and held (34
The initial load program stored in B) can be started.

【0022】なお、従来例(図5)の場合と共通する部
分については同一の符号を付し、それらの説明について
は簡略化または省略する。
Parts common to those in the conventional example (FIG. 5) are denoted by the same reference numerals, and description thereof will be simplified or omitted.

【0023】図1において、駆動制御部30は、制御部
31と、これにバス接続されたキースイッチ36,グラ
フィカルディスプレイ37,ブザー38,HDD39,
FDD40,制御系ホストコンピュータ用インターフェ
イス45および動作ユニット用インターフェイス55等
を含み、装置(20)全体を駆動制御することができ
る。
In FIG. 1, a drive control unit 30 includes a control unit 31 and a key switch 36, a graphical display 37, a buzzer 38, a HDD 39,
The entire device (20) can be driven and controlled, including the FDD 40, the control system host computer interface 45, the operation unit interface 55, and the like.

【0024】駆動制御部30は、CPU32,RAM3
3,Flash ROM34およびEEP ROM35
を含み、Flash ROM34に図2に示す各部34
A〜34Eが設けられている。
The drive control unit 30 includes a CPU 32, a RAM 3
3, Flash ROM 34 and EEPROM ROM 35
The flash ROM 34 includes the components 34 shown in FIG.
A to 34E are provided.

【0025】図2に示す起動共通部34Aは、図3に示
す電源(PWR)の投入(ON)時に、ST10〜ST
12を実行するためのプログラムを格納する。IPL1
エリア34Bが第1のイニシャルロードプログラム部を
形成し、IPL2エリア34Cが第2のイニシャルロー
ドプログラム部を形成する。各エリア34B,34Cに
は、当初、例えばFDD40(フロッピー(登録商標)
ディスクFD)を用いて例えば同一のイニシャルロード
プログラム(IPL)がインストールされる。
When the power supply (PWR) shown in FIG. 3 is turned on (ON), the start common unit 34A shown in FIG.
12 is stored. IPL1
The area 34B forms a first initial load program section, and the IPL2 area 34C forms a second initial load program section. Initially, for example, the FDD 40 (Floppy (registered trademark)) is provided in each of the areas 34B and 34C.
For example, the same initial load program (IPL) is installed using the disk FD).

【0026】アプリケーションプログラム部を形成する
図2のAPLエリア34Dには、各動作ユニット50を
制御(データ処理)するためのアプリケーションプログ
ラム(APL)が格納されている。また、このAPLエ
リア34Dの一部には、書換プログラムを格納する書換
プログラムエリア34Eが設けられている。各イニシャ
ルロードプログラム部(34B,34C)のそれぞれに
書換プログラムを格納する場合に比較してメモリ容量を
半減することができる。
An application program (APL) for controlling each operation unit 50 (data processing) is stored in the APL area 34D of FIG. A rewrite program area 34E for storing a rewrite program is provided in a part of the APL area 34D. The memory capacity can be reduced by half as compared with the case where the rewrite program is stored in each of the initial load program sections (34B, 34C).

【0027】図1のEEP ROM35に、書換完了フ
ラグIPL2Fの状態(“1”…書換完了,“0”…書
換未了)を記憶保持するものとされている。
The state of the rewrite completion flag IPL2F ("1"... Rewrite completed, "0"... Rewrite incomplete) is stored and retained in the EEPROM 35 of FIG.

【0028】イニシャルロードプログラムの書換要求を
する外部は、ホストコンピュータ10とされ、かつデー
タ通信回線15を介して制御部31に書換要求およびデ
ータを入力(ダウンロード)する。したがって、何時で
も簡単にイニシャルロードプログラムの書換えを行え
る。
The outside that requests the rewriting of the initial load program is the host computer 10 and inputs (downloads) the rewriting request and data to the control unit 31 via the data communication line 15. Therefore, the initial load program can be easily rewritten at any time.

【0029】ただし、外部を記憶媒体(例えば、フロッ
ピーディスクFD)とし、この記憶媒体からデータを読
取可能なデータ読取装置(FDD40)を介して入力す
るように形成してもよい。かくすれば、イニシャルロー
ドプログラムの書換途中に停電があったとしても、その
復電後に、直ちに再書換を行える。以下では、外部をホ
ストコンピュータ10とした場合について説明する。
However, a storage medium (for example, a floppy disk FD) may be used as an external device, and data may be read from the storage medium via a data reading device (FDD 40) capable of reading the data. Thus, even if a power failure occurs during the rewriting of the initial load program, rewriting can be performed immediately after the power is restored. The case where the outside is the host computer 10 will be described below.

【0030】ここにおいて、第1回目の電源を投入(図
3)すると、起動制御手段(CPU32,Flash
ROM34内の起動共通部34A)は、EEP ROM
35を参照し書換完了フラグIPL2Fに(“1”)が
記憶保持されているか否かを判別(ST10)し、記憶
保持されていない(“0”)と判別(ST10のNO)
する。この場合には、第1のイニシャルロードプログラ
ム部(34B)に格納されたイニシャルロードプログラ
ムIPL1を起動(ST12)して、アプリケーション
プログラムAPLを起動する(ST13)。これによ
り、データ処理を行う。
Here, when the first power supply is turned on (FIG. 3), the activation control means (CPU 32, Flash)
The start common unit 34A) in the ROM 34 is an EEPROM
With reference to 35, it is determined whether or not (“1”) is stored and held in the rewrite completion flag IPL2F (ST10), and it is determined that it is not (“0”) (NO in ST10).
I do. In this case, the initial load program IPL1 stored in the first initial load program section (34B) is activated (ST12), and the application program APL is activated (ST13). Thereby, data processing is performed.

【0031】アプリケーションプログラムAPLの起動
中(図4)に、入力(ST131のYES)されたコマ
ンドが通常コマンドの場合(ST132のNO)には、
通常の当該処理(ST138)を実行する。
If the command input (YES in ST131) is a normal command (NO in ST132) while the application program APL is running (FIG. 4),
The normal process (ST138) is executed.

【0032】しかし、外部(10)からの書換要求コマ
ンドである場合(ST132のYES)には、書換プロ
グラムエリア34Eに格納された書換プログラムを起動
して、EEP ROM35に記憶されたた書換完了フラ
グIPL2Fを(“1”→“0”)とする(ST13
3)。なお、初期値は、“0”である。この段階では、
“0”である。
However, if the command is a rewrite request command from the outside (10) (YES in ST132), the rewrite program stored in the rewrite program area 34E is started, and the rewrite completion flag stored in the EEPROM 35 is stored. IPL2F is changed from “1” to “0” (ST13)
3). Note that the initial value is “0”. At this stage,
It is "0".

【0033】しかる後に、外部(10)からの書換要求
データを受信(ST134)し、かつ第1のイニシャル
ロードプログラム部(34B)に格納されたイニシャル
ロードプログラムIPL1はそのままとして、第2のイ
ニシャルロードプログラム部(34C)に格納されたイ
ニシャルロードプログラムIPL2を書換える(ST1
35)。
After that, the second initial load is received by receiving the rewrite request data from the outside (10) (ST134) and leaving the initial load program IPL1 stored in the first initial load program section (34B) as it is. Rewrite the initial load program IPL2 stored in the program section (34C) (ST1)
35).

【0034】そして、第2のイニシャルロードプログラ
ム部(34C)に格納されたイニシャルロードプログラ
ムIPL2の書換が完全に終了(ST136のYES)
したら、書換完了フラグ(“1”)を記憶保持する(S
T137)。再びデータ処理に戻る(ST139のN
O)。データ処理終了(ST139のYES)で、電源
を落とす。
Then, the rewriting of the initial load program IPL2 stored in the second initial load program section (34C) is completely completed (YES in ST136).
Then, the rewriting completion flag ("1") is stored and held (S
T137). Return to data processing again (N in ST139)
O). When the data processing is completed (YES in ST139), the power is turned off.

【0035】第2回目の電源投入(図3)をすると、起
動制御手段(31,34A)が、書換完了フラグIPL
2Fに(“1”)を記憶保持しているか否かを判別する
(ST10)。今度は、書換完了フラグIPL2Fに
(“1”)を記憶保持しているので、第2のイニシャル
ロードプログラム部(34C)に格納されたイニシャル
ロードプログラムIPL2を起動する(ST11)。こ
れにより、アプリケーションプログラムAPLを起動
(ST13)して、データ処理(図4)を行う。
When the power is turned on for the second time (FIG. 3), the activation control means (31, 34A) issues a rewrite completion flag IPL.
It is determined whether ("1") is stored and held in 2F (ST10). This time, since “1” is stored in the rewrite completion flag IPL2F, the initial load program IPL2 stored in the second initial load program section (34C) is started (ST11). As a result, the application program APL is started (ST13), and data processing (FIG. 4) is performed.

【0036】この起動中に、外部(10)から書換要求
がある(ST131のYES,ST132のYES)
と、書換プログラムを起動しかつ第1のイニシャルロー
ドプログラム部(34B)に格納されたイニシャルロー
ドプログラムIPL1はそのままとして、かつ書換完了
フラグを“1”→“0”にリセット(ST133)して
から、第2のイニシャルロードプログラム部(34C)
に格納されたイニシャルロードプログラムIPL2を書
換える(ST134,ST135)。
During this startup, there is a rewrite request from the outside (10) (YES in ST131, YES in ST132).
After the rewriting program is started, the initial load program IPL1 stored in the first initial load program section (34B) is left as it is, and the rewrite completion flag is reset from “1” to “0” (ST133). , Second initial load program section (34C)
Is rewritten (ST134, ST135).

【0037】そして、第2のイニシャルロードプログラ
ム部(34C)に格納されたイニシャルロードプログラ
ムIPL2の完全書換が終了(ST136のYES)し
たら、改めて書換完了フラグIPL2Fに(“1”)を
記憶保持(“0”→“1”)する(ST137)。デー
タ処理終了(ST139のYES)で、電源を落とす。
When complete rewriting of the initial load program IPL2 stored in the second initial load program section (34C) is completed (YES in ST136), (“1”) is stored and held in the rewrite completion flag IPL2F again (step S136). “0” → “1”) is performed (ST137). When the data processing is completed (YES in ST139), the power is turned off.

【0038】第1回目および第2(〜N)回目のいずれ
の場合も、第2のイニシャルロードプログラム部(34
C)に格納されたイニシャルロードプログラムIPL2
の書換え中(ST134〜ST136のNO)に停電等
があると、当該イニシャルロードプログラムIPL2の
完全書換が終了できないので、書換完了フラグ
(“1”)が記憶保持されることがない。つまり、ST
137に進めないから、フラグは書換未了(不完全)を
意味する“0”のままである。
In each of the first and second (-N) times, the second initial load program section (34)
Initial load program IPL2 stored in C)
If a power failure or the like occurs during rewriting (NO in ST134 to ST136), the complete rewriting of the initial load program IPL2 cannot be completed, so that the rewriting completion flag (“1”) is not stored and held. That is, ST
Since the process does not proceed to 137, the flag remains at "0" meaning rewriting has not been completed (incomplete).

【0039】したがって、その後の電源投入時には、書
換完了フラグが記憶保持されていないと判別(図3のS
T10でNO)されるから、第1のイニシャルロードプ
ログラム部(34B)に格納されたイニシャルロードプ
ログラムIPL1を起動(ST12)して、データ処理
する(ST13,図4)。
Therefore, when the power is turned on thereafter, it is determined that the rewrite completion flag is not stored and held (S in FIG. 3).
Since the result is NO in T10), the initial load program IPL1 stored in the first initial load program section (34B) is started (ST12) and data is processed (ST13, FIG. 4).

【0040】すなわち、第1のイニシャルロードプログ
ラム部(34B)に格納されたイニシャルロードプログ
ラムIPL1は、当初のままである。つまり、その後の
書換え(バージョンアップ)は行われていないが、それ
ゆえに起動(ST12)そのものは確実に行える。
That is, the initial load program IPL1 stored in the first initial load program section (34B) remains as it was at the beginning. In other words, subsequent rewriting (version upgrading) is not performed, and therefore, activation (ST12) itself can be reliably performed.

【0041】かくして、第1のイニシャルロードプログ
ラム部(34B)に格納されたイニシャルロードプログ
ラムIPL1を起動して立ち上げ、第2のイニシャルロ
ードプログラム部(34C)に格納されたイニシャルロ
ードプログラムIPL2を、その後の外部(10)から
の書換要求により最新のバージョンに書換えることがで
きる(図4のST134からST136のYES)。よ
って、イニシャルロードプログラム(IPL2,IPL
1)の起動を保障しつつイニシャルロードプログラム
(IPL2)の書換えを確実に行える。
Thus, the initial load program IPL1 stored in the first initial load program section (34B) is started and started up, and the initial load program IPL2 stored in the second initial load program section (34C) is Thereafter, it can be rewritten to the latest version in response to a rewrite request from the outside (10) (YES in ST134 to ST136 in FIG. 4). Therefore, the initial load program (IPL2, IPL
The initial load program (IPL2) can be reliably rewritten while guaranteeing the activation of 1).

【0042】また、書換完了フラグIPL2Fの初期値
を“0”としているので、書換要求コマンド以前では無
条件にIPL1が選択される。つまり、初めから第2の
イニシャルロードプログラムエリア(IPL2エリア3
4C)にイニシャルロードプログラムをインストールし
ておかなくてもよい。したがって、一方のイニシャルロ
ードプログラム部(34B)に従来例通りに初期のイニ
シャルロードプログラムをインストールするだけでよい
から、格別の手間・時間を必要としないで機能拡大でき
る。
Since the initial value of the rewrite completion flag IPL2F is "0", IPL1 is selected unconditionally before the rewrite request command. That is, the second initial load program area (IPL2 area 3
It is not necessary to install the initial load program in 4C). Therefore, it is only necessary to install the initial initial load program in one of the initial load program sections (34B) as in the conventional example, so that the function can be expanded without requiring extra labor and time.

【0043】[0043]

【発明の効果】請求項1の発明によれば、イニシャルロ
ードプログラム部を2系列に構成し、外部から書換要求
があった場合に書換プログラムを起動しかつ第1のイニ
シャルロードプログラム部に格納されたイニシャルロー
ドプログラムはそのままとして、第2のイニシャルロー
ドプログラム部に格納されたイニシャルロードプログラ
ムを書換可能かつ当該イニシャルロードプログラムの完
全書換終了後に書換完了フラグを記憶保持可能で、電源
投入時に書換完了フラグが記憶保持されていれば第2の
イニシャルロードプログラム部に格納されたイニシャル
ロードプログラムを起動可能で、記憶保持されていない
場合には第1のイニシャルロードプログラム部に格納さ
れたイニシャルロードプログラムを起動可能に形成され
たデータ処理装置であるから、第2のイニシャルロード
プログラム部に格納されたイニシャルロードプログラム
を最新のバージョンに書換えることができ、かつ第2の
イニシャルロードプログラム部に格納されたイニシャル
ロードプログラムに書換不完全を含む異常が発生したと
しても第1のイニシャルロードプログラム部に格納され
たイニシャルロードプログラムでバックアップすること
ができる。よって、イニシャルロードプログラムの起動
を保障しつつイニシャルロードプログラムの書換えを確
実に行える。
According to the first aspect of the present invention, the initial load program section is composed of two lines, and when an external rewrite request is made, the rewrite program is started and stored in the first initial load program section. The initial load program stored in the second initial load program section can be rewritten while the initial load program remains unchanged, and a rewrite complete flag can be stored and held after the complete rewrite of the initial load program is completed. Is stored and held, the initial load program stored in the second initial load program unit can be started, and if not stored, the initial load program stored in the first initial load program unit is started. Data processing device formed to be possible Therefore, the initial load program stored in the second initial load program section can be rewritten to the latest version, and the initial load program stored in the second initial load program section contains an incomplete rewrite. Can be backed up by the initial load program stored in the first initial load program section. Therefore, it is possible to reliably rewrite the initial load program while guaranteeing activation of the initial load program.

【0044】また、請求項2の発明によれば、書換プロ
グラムがアプリケーションプログラム部に格納されてい
るので、請求項1の発明の場合と同様な効果を奏するこ
とができることに加え、さらに各イニシャルロードプロ
グラム部のそれぞれに書換プログラムを格納する場合に
比較してメモリ容量を半減することができる。
According to the second aspect of the present invention, since the rewriting program is stored in the application program section, the same effect as that of the first aspect of the invention can be obtained. The memory capacity can be reduced by half as compared with the case where the rewriting program is stored in each of the program sections.

【0045】また、請求項3の発明によれば、外部がホ
ストコンピュータとされかつ書換要求がデータ通信回線
を介して入力可能に形成されているので、請求項1およ
び請求項2の各発明の場合と同様な効果を奏することが
できることに加え、さらに何時でも簡単にイニシャルロ
ードプログラムの書換えを行える。
According to the third aspect of the present invention, the external device is a host computer, and the rewrite request is formed so as to be input via a data communication line. In addition to providing the same effect as in the case, the initial load program can be easily rewritten at any time.

【0046】さらに、請求項4の発明によれば、外部が
記憶媒体とされかつ書換要求が記憶媒体からデータを読
取可能なデータ読取装置を介して入力可能に形成されて
いるので、請求項1および請求項2の各発明の場合と同
様な効果を奏することができることに加え、さらに書換
途中に停電があったとしても、復電後に、直ちに再書換
を行える。
Further, according to the invention of claim 4, since the external device is a storage medium, the rewrite request can be input through a data reading device capable of reading data from the storage medium. In addition to the effects similar to those of the inventions of the second aspect, even if a power failure occurs during rewriting, rewriting can be performed immediately after power is restored.

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

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

【図2】同じく、第1および第2のイニシャルロードプ
ログラム部等を説明するための図である。
FIG. 2 is also a diagram for explaining a first and a second initial load program section and the like.

【図3】同じく、電源投入時の動作を説明するためのフ
ローチャートである。
FIG. 3 is a flowchart for explaining the operation at the time of turning on the power.

【図4】同じく、イニシャルロードプログラムの書換動
作等を説明するためのフローチャートである。
FIG. 4 is a flowchart for explaining an initial load program rewriting operation and the like.

【図5】従来例を説明するための図である。FIG. 5 is a diagram for explaining a conventional example.

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

10 ホストコンピュータ(外部) 20 データ処理装置 30 駆動制御部 31 制御部 32 CPU 33 RAM 34 Flash ROM 34A 起動共通部 34B IPL1エリア(第1のイニシャルロードプロ
グラム部) 34C IPL2エリア(第2のイニシャルロードプロ
グラム部) 34D APLエリア(アプリケーションプログラム
部) 34E 書換プログラムエリア 39 HDD 40 FDD(データ読取装置) FD フロッピーディスク(記憶媒体…外部) 50 動作ユニット
Reference Signs List 10 host computer (external) 20 data processing device 30 drive control unit 31 control unit 32 CPU 33 RAM 34 Flash ROM 34A start common unit 34B IPL1 area (first initial load program unit) 34C IPL2 area (second initial load program) Part) 34D APL area (application program part) 34E rewriting program area 39 HDD 40 FDD (data reading device) FD floppy disk (storage medium ... external) 50 operation unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 イニシャルロードプログラム部とアプリ
ケーションプログラム部とを有し、外部からのイニシャ
ルロードプログラムの書換要求に応えて書換プログラム
を起動してイニシャルロードプログラム部に格納された
イニシャルロードプログラムを書換可能に形成されたデ
ータ処理装置において、 前記イニシャルロードプログラム部を2系列に構成し、
前記外部から書換要求があった場合に前記書換プログラ
ムを起動しかつ第1のイニシャルロードプログラム部に
格納されたイニシャルロードプログラムはそのままとし
て、第2のイニシャルロードプログラム部に格納された
イニシャルロードプログラムを書換可能かつ第2のイニ
シャルロードプログラム部に格納されたイニシャルロー
ドプログラムの完全書換終了後に書換完了フラグを記憶
保持可能であるとともに、電源投入時に書換完了フラグ
が記憶保持されていると判別した場合には第2のイニシ
ャルロードプログラム部に格納されたイニシャルロード
プログラムを起動可能で、記憶保持されていないと判別
した場合には第1のイニシャルロードプログラム部に格
納されたイニシャルロードプログラムを起動可能に形成
したデータ処理装置。
An initial load program section and an application program section are provided, and a rewrite program is started in response to an external initial load program rewrite request to rewrite an initial load program stored in the initial load program section. In the data processing device formed in the above, the initial load program unit is configured in two lines,
When the rewriting request is received from the outside, the rewriting program is started, and the initial load program stored in the second initial load program unit is left as it is, while the initial load program stored in the first initial load program unit remains unchanged. When it is determined that the rewrite completion flag can be stored after the complete rewriting of the initial load program stored in the second initial load program unit is completed and the rewrite completion flag is stored and held when the power is turned on. Is capable of starting the initial load program stored in the second initial load program section, and forming the initial load program stored in the first initial load program section to be startable when it is determined that the initial load program is not stored. Data processing equipment .
【請求項2】 前記書換プログラムが前記アプリケーシ
ョンプログラム部に格納されている請求項1記載のデー
タ処理装置。
2. The data processing device according to claim 1, wherein the rewriting program is stored in the application program unit.
【請求項3】 前記外部がホストコンピュータとされか
つ前記書換要求がデータ通信回線を介して入力される請
求項1または請求項2記載のデータ処理装置。
3. The data processing apparatus according to claim 1, wherein the external device is a host computer, and the rewrite request is input via a data communication line.
【請求項4】 前記外部が記憶媒体とされかつ前記書換
要求が記憶媒体からデータを読取可能なデータ読取装置
を介して入力される請求項1または請求項2記載のデー
タ処理装置。
4. The data processing device according to claim 1, wherein the external device is a storage medium, and the rewrite request is input via a data reading device capable of reading data from the storage medium.
JP11000944A 1999-01-06 1999-01-06 Data processor Abandoned JP2000200193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11000944A JP2000200193A (en) 1999-01-06 1999-01-06 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11000944A JP2000200193A (en) 1999-01-06 1999-01-06 Data processor

Publications (1)

Publication Number Publication Date
JP2000200193A true JP2000200193A (en) 2000-07-18

Family

ID=11487797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11000944A Abandoned JP2000200193A (en) 1999-01-06 1999-01-06 Data processor

Country Status (1)

Country Link
JP (1) JP2000200193A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003019374A1 (en) * 2001-08-23 2003-03-06 Sony Corporation Information processing apparatus and method
US7190336B2 (en) 2002-09-10 2007-03-13 Sony Corporation Information processing apparatus and method, recording medium and program
JP2007184753A (en) * 2006-01-06 2007-07-19 Sony Corp Reception display system, receiving device, and display terminal
JP2007233963A (en) * 2006-03-03 2007-09-13 Funai Electric Co Ltd Printer and electric apparatus
JP2017091057A (en) * 2015-11-05 2017-05-25 株式会社デンソー Electronic control device and data rewrite system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003019374A1 (en) * 2001-08-23 2003-03-06 Sony Corporation Information processing apparatus and method
US7600224B2 (en) 2001-08-23 2009-10-06 Sony Corporation Information processing apparatus including storage
US7190336B2 (en) 2002-09-10 2007-03-13 Sony Corporation Information processing apparatus and method, recording medium and program
JP2007184753A (en) * 2006-01-06 2007-07-19 Sony Corp Reception display system, receiving device, and display terminal
JP2007233963A (en) * 2006-03-03 2007-09-13 Funai Electric Co Ltd Printer and electric apparatus
JP2017091057A (en) * 2015-11-05 2017-05-25 株式会社デンソー Electronic control device and data rewrite system

Similar Documents

Publication Publication Date Title
JP2002244874A (en) Information processor and firmware updating method
CN102089753B (en) System and method for safely updating thin client operating system over a network
WO2012068087A1 (en) Networked recovery system
JP2007094766A (en) Controller, upgrade method and program
JP3886539B2 (en) How to load the operating system
JP2002244877A (en) Printer device and program updating method for the same
CN106155713B (en) Startup information management method and device
JP2000200193A (en) Data processor
JP2002175193A (en) Device and method for rewriting program
JP2003044284A (en) Activation method for computer system and program for activation
JP2005050079A (en) Server device, bios updating program, bootstrap program, and bios updating method
US7075518B2 (en) Method for updating a keyboard controller in a notebook computer
JP2001228938A (en) Remote starting method
JP2021089643A (en) Electronic control apparatus and electronic control method
JP3308920B2 (en) Information processing device
JPH0793276A (en) Starting system for computer
TW200923782A (en) A bootloader self-update system and method thereof
JP2001273143A (en) Electronic controller
US20220405083A1 (en) Ota master, system, method, non-transitory storage medium, and vehicle
JP2001051844A (en) Computer peripheral equipment and firmware updating method
JPH09265399A (en) Bios write method
JP6149624B2 (en) Firmware execution apparatus, firmware execution method, computer program, and computer apparatus
JP2004272629A (en) Device for programmable controller, and programmable updating method and program starting method for the same
JP2003131896A (en) Information processing device, restarting method and restarting program
JP2022024904A (en) Firmware updating system and firmware updating method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040315

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051122

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20060123