JP2003196114A - Management and confirmation method for internal data - Google Patents

Management and confirmation method for internal data

Info

Publication number
JP2003196114A
JP2003196114A JP2001396318A JP2001396318A JP2003196114A JP 2003196114 A JP2003196114 A JP 2003196114A JP 2001396318 A JP2001396318 A JP 2001396318A JP 2001396318 A JP2001396318 A JP 2001396318A JP 2003196114 A JP2003196114 A JP 2003196114A
Authority
JP
Japan
Prior art keywords
program
data
area
management
rewritable
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
JP2001396318A
Other languages
Japanese (ja)
Inventor
Hiroto Hideshima
裕人 秀島
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP2001396318A priority Critical patent/JP2003196114A/en
Publication of JP2003196114A publication Critical patent/JP2003196114A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method for managing a program or confirming the propriety thereof when writing the program from a personal computer through an interface by use of an on-line rewritable device as storage medium. <P>SOLUTION: In this method, an area for storing a management mark displayed on a display device to confirm the property of the rewritable device and an area for confirming the propriety by use of a control program in writing are provided. When a write-in signal from the personal computer is received, it is compared with the value calculated by the control program, the program or data is stored in the write-in area of the rewritable device when the propriety is confirmed, and the management mark of the program or data is written in the management mark storage area. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル保護継
電器におけるオンライン書換え可能デバイスに対する書
き込みプログラム又はデータの書換え方法に係わり、特
に書き込みプログラム等の内部データの管理とそのデー
タの正当性確認方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for rewriting a write program or data for an online rewritable device in a digital protective relay, and more particularly to a method for managing internal data such as a write program and a method for confirming the correctness of the data. is there.

【0002】[0002]

【従来の技術】ディジタル保護継電器におけるプログラ
ムや固定の設定データ等は、EPROM等のROM(以
下単に書換え可能デバイスという)にROMライターを
用いて書き込み、保護継電器に実装している。近年、デ
ィジタル保護継電器の高機能化が進み、プログラム等を
格納する書換え可能デバイスも、従来のEPROM等か
らフラッシュROM等のオンライン書換え可能デバイス
になっている。このため、従来においてはプログラム等
の管理はROMという現物にプログラム等を書き込んで
実装していることに伴い、ROMを管理することを行な
っている。
2. Description of the Related Art Programs and fixed setting data in a digital protective relay are written in a ROM such as EPROM (hereinafter simply referred to as a rewritable device) by using a ROM writer and mounted on the protective relay. In recent years, as digital protection relays have become more sophisticated, rewritable devices that store programs and the like have changed from conventional EPROMs and the like to online rewritable devices such as flash ROMs. For this reason, in the related art, the management of the program and the like is performed by writing the program and the like into an actual product called a ROM and mounting it.

【0003】また、オンライン書換え可能デバイス移行
後における従来のオンライン書き込みは、図8で示すよ
うな方法で行われている。すなわち、書換えにあたって
は、プログラムの格納先であるオンライン書換え可能デ
バイスに既に書き込まれているオンライン書き込み制御
プログラムをRAM等の別の一時格納デバイス上で動か
し、その書換え制御プログラムとRS232C等の伝送
路を介して接続されるホストPC(パーソナルコンピュ
ータ)とで通信を行いながら新しいプログラムを書換え
ている。
The conventional online writing after the transfer of the online rewritable device is performed by the method shown in FIG. That is, in rewriting, the online writing control program already written in the online rewritable device that is the storage destination of the program is run on another temporary storage device such as RAM, and the rewriting control program and the transmission path such as RS232C are connected. A new program is rewritten while communicating with a host PC (personal computer) connected via the computer.

【0004】[0004]

【発明が解決しようとする課題】上述のように、EPR
OMからフラッシュROMのようなオンライン書換え可
能デバイスに移行されたことにより、このデバイスに対
しては装置に実装された状態でデバイス内部のプログラ
ムやデータなどの格納された対象物が書換えられるた
め、従来のようなROM現物での管理は不可能となって
きた。また、従来におけるオンライン書替え可能デバイ
ス使用時には、その書換え時に誤ったプログラムや壊れ
たデータ等を書き込んでしまうと、書き込み完了後に正
常な動作をしなくなり、オンライン書換え機能すら失わ
れる可能性がある。このような状態となると、通常は復
旧に多大な労力が必要となる。したがって、オンライン
書換え可能デバイスを使用する場合には、当該デバイス
に書かれたプログラムやデータの管理や、書換え時の正
当性確認方法が求められている。
As described above, the EPR
By moving from OM to an online rewritable device such as a flash ROM, a stored object such as a program or data inside the device can be rewritten in the device mounted on the device. It has become impossible to manage with the actual ROM. Further, when the conventional online rewritable device is used, if an incorrect program, broken data, or the like is written at the time of the rewriting, normal operation may not be performed after the writing is completed, and even the online rewriting function may be lost. In such a state, a great deal of labor is usually required for restoration. Therefore, when an online rewritable device is used, there is a demand for management of programs and data written in the device and a method for confirming the validity at the time of rewriting.

【0005】本発明は、かかる点に鑑みてなされたもの
で、その目的とするところは有効なる内部データ管理と
データの確認方法を提供することにある。
The present invention has been made in view of the above points, and an object thereof is to provide an effective internal data management and data confirmation method.

【0006】[0006]

【課題を解決するための手段】本発明の第1は、記憶体
としてオンライン書換え可能デバイスを有し、この書換
え可能デバイスに対してパーソナルコンピュータよりイ
ンターフェースを通してシリアル通信し、制御プログラ
ムを介して書換え可能デバイスにプログラムやデータを
格納するものにおいて、表示デバイスに表示して前記書
換え可能デバイスの素性を確認するための管理記号が格
納される領域と、書き込み時に制御プログラムで正当性
を確認のための領域を設け、前記パーソナルコンピュー
タよりの書き込み信号受信時に、前記制御プログラムで
算出した値と比較し、正当性確認時にプログラムやデー
タを前記書換え可能デバイスの書き込み領域に格納する
と共に、当該プログラムやデータの管理記号を前記管理
記号格納領域に書き込むことを特徴としたものである。
According to a first aspect of the present invention, an online rewritable device is provided as a memory, and the rewritable device is serially communicated from a personal computer through an interface and rewritable via a control program. In the case of storing programs and data in a device, an area for storing a management symbol for displaying on the display device to confirm the identity of the rewritable device and an area for confirming the correctness by the control program at the time of writing When the write signal is received from the personal computer, the value is compared with the value calculated by the control program, and the program and data are stored in the write area of the rewritable device when the validity is confirmed, and the program and data are managed. Write the symbol in the management symbol storage area Is obtained is characterized in that writing.

【0007】本発明の第2は、記憶体としてオンライン
書換え可能デバイスを有し、この書換え可能デバイスに
対してパーソナルコンピュータよりインターフェースを
通してシリアル通信し、制御プログラムを介して書換え
可能デバイスにプログラムやデータを格納するものにお
いて、表示デバイスに表示して前記書換え可能デバイス
の素性を確認するための管理記号が格納される領域と、
書き込み時に制御プログラムで正当性を確認のためのコ
ード領域を設け、前記パーソナルコンピュータ側で前記
書換え可能デバイスに対して書き込みを行うプログラム
やデータの固定位置に所定コードを埋込み、制御プログ
ラムはパーソナルコンピュータよりの信号受信時に所定
コードを確認し、正当性確認時に当該プログラムやデー
タを前記書換え可能デバイスの書き込み領域に格納する
と共に、当該プログラムやデータの管理記号を前記管理
記号格納領域に書き込むことを特徴としたものである。
A second aspect of the present invention is to have an online rewritable device as a memory, and the personal computer serially communicates with the rewritable device through an interface, and the rewritable device is supplied with programs and data via a control program. In what is stored, an area in which a management symbol for displaying on a display device and confirming the identity of the rewritable device is stored,
A code area for confirming the correctness by a control program at the time of writing is provided, and a predetermined code is embedded in a fixed position of a program or data for writing to the rewritable device on the personal computer side, and the control program is transmitted from the personal computer. When the signal is received, the predetermined code is confirmed, and when the validity is confirmed, the program or data is stored in the writing area of the rewritable device, and the management symbol of the program or data is written in the management symbol storage area. It was done.

【0008】本発明の第3は、前記書換え可能デバイス
へのプログラムやデバイスの書き込み時に制御プログラ
ムによって正当性を確認のための領域を設け、前記パー
ソナルコンピュータよりの書き込み信号受信時に、前記
制御プログラムで算出した値と比較し、正当性確認時に
プログラムやデータを前記書換え可能デバイスの書き込
み領域に格納することを特徴としたものである。
A third aspect of the present invention is to provide an area for confirming the correctness by a control program at the time of writing the program or the device in the rewritable device, and the control program is provided when the write signal is received from the personal computer. It is characterized in that the program and data are stored in the writing area of the rewritable device at the time of confirmation of validity by comparing with the calculated value.

【0009】本発明の第4は、前記書換え可能デバイス
の各領域に格納された管理記号,正当性確認用記号及び
所定コード番号を表示デバイスに表示することを特徴と
したものである。
A fourth aspect of the present invention is characterized in that a management symbol, a legitimacy confirmation symbol and a predetermined code number stored in each area of the rewritable device are displayed on a display device.

【0010】本発明の第5は、前記書換え可能デバイス
に格納後の確認対象プログラムやデータの正当性確認は
チェックサムまたはCRCによる確認手段にて確認し、
この確認算出値を格納するための保管領域を書換え可能
デバイスに設け、この算出値保管領域に格納された算出
値を用いて定期的に確認演算を実行し、前回値と今回値
とが異なる場合複数回を繰り返して正当性の有無を判断
することを特徴としたものである。
A fifth aspect of the present invention is to confirm the correctness of the program and data to be confirmed after being stored in the rewritable device by using a checksum or CRC confirmation means.
If a rewritable device is provided with a storage area for storing this confirmation calculated value, and a confirmation calculation is executed periodically using the calculated value stored in this calculated value storage area, and the previous value and the current value are different The feature is that the validity is judged by repeating a plurality of times.

【0011】本発明の第6は、前記書換え可能デバイス
に格納された確認対象プログラムやデータの格納領域と
算出値保管領域および正当性確認手段領域をそれぞれ二
重に設けて正当性有無演算を実行し、何れかの確認対象
領域でのプログラムやデータの正当性保障ができない場
合には正当性保障側の領域からプログラムやデータを復
元することを特徴としたものである。
In a sixth aspect of the present invention, a correctness presence / absence calculation is performed by doubling the storage area of the confirmation target program or data stored in the rewritable device, the calculated value storage area, and the validity confirmation means area. However, when it is not possible to guarantee the correctness of the program or data in any of the confirmation target areas, the characteristic is to restore the program or data from the area on the side of ensuring the correctness.

【0012】[0012]

【発明の実施の形態】図1は、本発明の実施形態を示す
ものである。1はディジタル保護継電器等の装置に組み
込まれてたフラッシュROM等のオンライン書換え可能
デバイスで、このデバイスにはプログラムやデータが格
納される領域11と、管理記号が書き込まれる領域12
と正当性確認領域13および図示省略されているが制御
プログラム格納領域とを備えている。2はホストPC、
3はシリアル転送用インターフェースで、RS232C
等が使用される。プログラム等の格納領域11には変更
プログラム等,又は全く新規な新プログラム等が書き込
まれ、管理記号領域12には、例えば、ROM名称,管
理番号が書き込まれ、表示デバイスにこの管理記号を表
示することによって書き込み内容の素性を確認するため
に用いられる。正当性確認領域13にはプログラムやデ
ータのチェックサム又はCRC(Cyclic Redundancy Ch
eck)の確認手段が埋め込まれて、書き込み時に制御プ
ログラムによって正当性を確認するために用いられる。
DETAILED DESCRIPTION OF THE INVENTION FIG. 1 shows an embodiment of the present invention. Reference numeral 1 denotes an online rewritable device such as a flash ROM incorporated in a device such as a digital protective relay. In this device, an area 11 in which programs and data are stored and an area 12 in which management symbols are written.
And a validity confirmation area 13 and a control program storage area (not shown). 2 is the host PC,
3 is an interface for serial transfer, RS232C
Etc. are used. A change program or a completely new program is written in the storage area 11 for programs and the like, and a ROM name and a management number are written in the management symbol area 12, and the management symbol is displayed on the display device. It is used to confirm the identity of the written content. The correctness confirmation area 13 has a checksum or CRC (Cyclic Redundancy Ch
eck) confirmation means is embedded and used to confirm the correctness by the control program at the time of writing.

【0013】書き込みを行うプログラムやデータの正当
性の確認方法としては、ホストPC側で、オンライン書
換え可能デバイス1に対して書き込みを行うプログラム
等の固定位置(番地)にそのプログラム等のチェックサ
ム(又はCRC)を算出して埋め込む。装置側の制御プ
ログラムは、ホストPC2よりインターフェース3を介
して書き込み対象プログラム等を受信したとき、そのチ
ェックサムを制御プログラム側で算出してこの算出値と
比較し、その正当性を判断する。判断結果、正当性が確
認されたときのみ制御プログラムは当該プログラム等を
領域11に書き込む。
As a method for confirming the correctness of the program to be written and the data, the checksum of the program or the like is fixed at a fixed position (address) of the program or the like to be written to the online rewritable device 1 on the host PC side. Or CRC) is calculated and embedded. When the control program on the device side receives the program to be written or the like from the host PC 2 via the interface 3, the control program side calculates the checksum and compares it with this calculated value to judge its validity. As a result of the determination, the control program writes the program and the like in the area 11 only when the correctness is confirmed.

【0014】次に、書き込まれたプログラムやデータの
管理用として、ホストPC2側において、そのプログラ
ムやデータの名称,管理番号等を書き込むプログラムや
データ内に埋込む。受信側装置(ディジタル保護継電器
側)では、数値表示器や液晶表示器等の表示デバイスを
用いて表示し、操作者に対して内部プログラムやデータ
の素性を明確にする。したがって、操作者は表示された
内部プログラムの素性を確認することができ、意図した
書き込み結果であるか否かの判断ができる。
Next, for management of the written programs and data, the host PC 2 side embeds the names and management numbers of the programs and data in the programs and data to be written. On the receiving side device (digital protection relay side), display is made using a display device such as a numerical display or liquid crystal display to clarify the features of the internal program and data to the operator. Therefore, the operator can confirm the feature of the displayed internal program and can judge whether or not it is the intended writing result.

【0015】図2は第2の実施形態を示したもので、オ
ンライン書き込み可能デバイス1に管理記号格納領域1
2の外に、所定コード格納領域14を設けたものであ
る。ホストPC2側で、書換え可能デバイス1に対して
書き込みを行うプログラムやデータの固定位置に所定の
コードを埋め込む。制御プログラムは、前もって所定コ
ードが認識されており、ホストPC2からの書き込み対
象プログラムやデータを受信した際にそのコードを確認
し、正当性を判断する。他は、図1で示したものと同様
である。
FIG. 2 shows a second embodiment, in which the management symbol storage area 1 is provided in the online writable device 1.
In addition to 2, the predetermined code storage area 14 is provided. On the host PC 2 side, a predetermined code is embedded in a fixed position of a program or data to be written in the rewritable device 1. The control program recognizes a predetermined code in advance, and when the program to be written or data from the host PC 2 is received, the code is confirmed and the validity is judged. Others are the same as those shown in FIG.

【0016】図3は第3の実施形態を示したもので、図
2で示した実施形態のものに、チェックサム又はCRC
の領域13を設けたものである。したがって、この場合
にはコードを含めたプログラムやデータのチェックサム
(又はCRC)を算出して埋め込まれる。制御プログラ
ムは、ホストPC2側からの書き込み対象プログラム等
を受信したとき、所定コードと、そのチェックサムを制
御プログラム側で算出した値と比較し、正当性を判断す
る。正当性が確認された場合のみ制御プログラムはデバ
イスの領域11に対して新プログラム等の書換えを行
う。管理方法については、図1の実施形態と同様であ
る。
FIG. 3 shows a third embodiment, which is the same as the embodiment shown in FIG.
The area 13 is provided. Therefore, in this case, the checksum (or CRC) of the program and data including the code is calculated and embedded. When receiving the program to be written from the host PC 2 side, the control program compares the predetermined code and its checksum with the value calculated on the control program side to judge the validity. Only when the correctness is confirmed, the control program rewrites a new program or the like in the device area 11. The management method is the same as in the embodiment of FIG.

【0017】図4は第4の実施形態を示したもので、こ
の例は実施形態1〜3(ここでは、第3の実施形態)の
内の何れかの確認方法に、更に操作者による再確認を組
み合わせたものである。すなわち、前記第3の実施形態
と同様に、ホストPC側と制御プログラム側で正当性確
認が行われる。その正当性が確認できた後に制御プログ
ラム側において数値表示器や液晶表示器等の表示デバイ
ス4を用いてプログラム等の名称,管理番号,チェック
サム値等を表示し、操作者の再確認を求める。操作者
は、例えば入力スイッチ等何らかの入力デバイスで確認
結果の意思表示を行い、その結果が肯定されたときのみ
制御プログラムは領域11の書換えを行う。管理方法に
ついては、図1と同様にして行なわれる。
FIG. 4 shows a fourth embodiment. In this example, the confirmation method according to any one of the first to third embodiments (here, the third embodiment) is added to the confirmation method by the operator. It is a combination of confirmations. That is, just as in the third embodiment, the correctness is confirmed on the host PC side and the control program side. After confirming the correctness, the control program displays the name of the program, management number, checksum value, etc. using the display device 4 such as a numerical display or liquid crystal display, and requests the operator's reconfirmation. . The operator indicates the intention of the confirmation result with some input device such as an input switch, and only when the result is affirmed, the control program rewrites the area 11. The management method is the same as in FIG.

【0018】上記の各実施形態によれば、オンライン書
換え可能デバイス内部の書換え時に、既存プログラム等
の機能破壊を防ぎながらの書換えが可能となり、且つ、
書き込まれたデータやプログラムの管理が容易となる
が、しかし、使用中等においてプログラム暴走によるデ
ータ破壊が生ずる惧れを有している。
According to each of the above-described embodiments, it is possible to rewrite the inside of the online rewritable device while preventing functional destruction of the existing program and the like.
Although it becomes easy to manage written data and programs, there is a possibility that data may be destroyed due to program runaway during use.

【0019】図5は第5の実施形態を示したもので、領
域13のチェックサム又はCRCを用いて書換え可能デ
バイス1内のデータ破壊を検出するものである。書換え
可能デバイスには、前述のように正当性の確認されたプ
ログラムやデータが格納されているが、その際のチェッ
クサムを算出して算出値保管領域15内に保管されてい
る。なお、算出対象には領域13は含まれないものとす
る。
FIG. 5 shows a fifth embodiment, in which the checksum of the area 13 or the CRC is used to detect data corruption in the rewritable device 1. As described above, the rewritable device stores a program and data whose validity has been confirmed, and the checksum at that time is calculated and stored in the calculated value storage area 15. Note that the calculation target does not include the area 13.

【0020】図6は正当性確認のためのフローチャート
で、この正当性確認は定期的に実行されるが、ステップ
S1では計算時刻となったことを判断し、所定時刻とな
ったときには書換え可能デバイスの領域11の計算(ス
テップS2)を行う。ステップS3では、算出値保管領
域15に格納されている前回の算出値と今回算出された
値とを比較して正当性を判断する。判断結果、正当性が
保障された場合にはそのままエンドとなるが、正当性保
障なしと判断された場合にはステップS4に移行し、前
もって定められた複数回の再確認のためのチェックサム
算出を繰り返えしたか否かが判断される。所定回数に足
りない場合にはステップS2に戻って計算し、所定回数
の確認が実行された場合にはS5において外部出力し、
LED表示等の方法で警報表示することによって書換え
可能デバイス内のデータ破損を検出する。
FIG. 6 is a flow chart for confirming the validity. The validity check is periodically executed. In step S1, it is judged that the calculation time has come, and when the predetermined time comes, the rewritable device The area 11 is calculated (step S2). In step S3, the validity is determined by comparing the previous calculated value stored in the calculated value storage area 15 with the value calculated this time. As a result of the judgment, if the correctness is guaranteed, the process ends as it is, but if it is judged that the correctness is not guaranteed, the process proceeds to step S4, and a checksum is calculated for a plurality of predetermined reconfirmations. It is determined whether or not has been repeated. If the predetermined number of times is insufficient, the process returns to step S2 to perform the calculation, and if the predetermined number of times of confirmation is performed, external output is performed in S5,
Data damage in the rewritable device is detected by displaying an alarm using a method such as LED display.

【0021】図7は第6の実施形態を示したもので、書
換え可能デバイス内の破損データの復旧と復旧不可時を
検出するものである。この実施形態は、図5における対
象データの二重化に相当するもので、元データの格納領
域11aと、この元データをコピーして保存する領域1
1bを備え、それぞれの領域におけるチェックサムの算
出値保管領域15a,15b及びチェックサム又はCR
C領域13a,13bを有している。元データ側とコピ
ー側の正当性確認は図6で示すフローチャートに基づい
てそれぞれ各別に行われて正当性の可否が判断される。
判断結果、領域11aまたは11bの何れかに正当性が
保障できない事態が発生した場合には、正当性が保障さ
れる側の領域からデータを復旧する。また、領域11
a,11bのデータが共に正当性なしと判断された場合
には、複数回の再確認を繰り返し、それでも正当性が保
障出来ない旨を警報表示する。
FIG. 7 shows a sixth embodiment, which is for detecting the recovery of damaged data in a rewritable device and the time when recovery is not possible. This embodiment corresponds to duplication of the target data in FIG. 5, and includes a storage area 11a for the original data and an area 1 for copying and saving the original data.
1b, the checksum calculated value storage areas 15a and 15b in each area and the checksum or CR
It has C regions 13a and 13b. The legitimacy confirmation on the original data side and the copy side is separately performed based on the flowchart shown in FIG. 6 to judge the validity of the legitimacy.
As a result of the judgment, when the situation in which the correctness cannot be guaranteed occurs in either the area 11a or 11b, the data is restored from the area on the side where the correctness is guaranteed. In addition, the area 11
When it is determined that both the data a and 11b are not valid, reconfirmation is repeated a plurality of times, and an alarm is displayed to the effect that the validity cannot be guaranteed.

【0022】[0022]

【発明の効果】以上のとおり本発明によれば、現物管理
不可能なオンライン書換え可能デバイス内部に書き込ま
れたデータ等の管理ができ、また、データ等の書き込み
時に正当性の確認を行った後に書換えを行うようにした
ものであるから、壊れたプログラム等の書き込みによる
既存プログラム等の持つ機能の破壊を防止することがで
きる。更に、プログラムの暴走等による予期せぬデバイ
ス内部のデータ破壊に対して、定期的に書換え可能の全
領域又は一部の正当性の確認ができ、万一にもデータ破
壊が生じていた場合には、その検出と、復旧を行うこと
ができる。
As described above, according to the present invention, it is possible to manage the data and the like written in the online rewritable device that cannot be physically managed, and after confirming the correctness at the time of writing the data and the like. Since the rewriting is performed, it is possible to prevent the destruction of the function of the existing program or the like due to the writing of the broken program or the like. In addition, in case of unexpected data corruption inside the device due to program runaway, etc., the correctness of all or part of the rewritable area can be confirmed periodically, and in the unlikely event of data corruption. Can detect and recover it.

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

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

【図2】本発明の第2の実施形態を示す構成図。FIG. 2 is a configuration diagram showing a second embodiment of the present invention.

【図3】本発明の第3の実施形態を示す構成図。FIG. 3 is a configuration diagram showing a third embodiment of the present invention.

【図4】本発明の第4の実施形態を示す構成図。FIG. 4 is a configuration diagram showing a fourth embodiment of the present invention.

【図5】本発明の第5の実施形態を示す構成図。FIG. 5 is a configuration diagram showing a fifth embodiment of the present invention.

【図6】本発明の実施形態を示すデータ破損検出処理の
フローチャート。
FIG. 6 is a flowchart of data corruption detection processing according to the embodiment of the present invention.

【図7】本発明の第6の実施形態を示す構成図。FIG. 7 is a configuration diagram showing a sixth embodiment of the present invention.

【図8】従来の書替え方法を示す説明図。FIG. 8 is an explanatory diagram showing a conventional rewriting method.

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

1…書換え可能デバイス 2…ホストPC 3…インターフェース 4…表示デバイス 11…書換え対象領域 12…管理記号領域 13…正当性確認領域 14…コード領域 15…算出値保管領域 1. Rewritable device 2 ... Host PC 3 ... Interface 4 ... Display device 11 ... Rewriting target area 12 ... Control symbol area 13 ... Validation area 14 ... Code area 15: Calculated value storage area

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 記憶体としてオンライン書換え可能デバ
イスを有し、この書換え可能デバイスに対してパーソナ
ルコンピュータよりインターフェースを通してシリアル
通信し、制御プログラムを介して書換え可能デバイスに
プログラムやデータを格納するものにおいて、表示デバ
イスに表示して前記書換え可能デバイスの素性を確認す
るための管理記号が格納される領域と、書き込み時に制
御プログラムで正当性を確認のための領域を設け、前記
パーソナルコンピュータよりの書き込み信号受信時に、
前記制御プログラムで算出した値と比較し、正当性確認
時にプログラムやデータを前記書換え可能デバイスの書
き込み領域に格納すると共に、当該プログラムやデータ
の管理記号を前記管理記号格納領域に書き込むことを特
徴とした内部データの管理・確認方法。
1. A device having an online rewritable device as a memory, serially communicating with the rewritable device through an interface from a personal computer, and storing a program or data in the rewritable device via a control program, An area for storing a management symbol for displaying on a display device to confirm the identity of the rewritable device and an area for confirming the correctness by a control program at the time of writing are provided, and a write signal is received from the personal computer. Sometimes
Comparing with a value calculated by the control program, the program and data are stored in the write area of the rewritable device at the time of confirmation of validity, and the management symbol of the program or data is written in the management symbol storage area. How to manage and confirm the internal data you have provided.
【請求項2】 記憶体としてオンライン書換え可能デバ
イスを有し、この書換え可能デバイスに対してパーソナ
ルコンピュータよりインターフェースを通してシリアル
通信し、制御プログラムを介して書換え可能デバイスに
プログラムやデータを格納するものにおいて、表示デバ
イスに表示して前記書換え可能デバイスの素性を確認す
るための管理記号が格納される領域と、書き込み時に制
御プログラムで正当性を確認のためのコード領域を設
け、前記パーソナルコンピュータ側で前記書換え可能デ
バイスに対して書き込みを行うプログラムやデータの固
定位置に所定コードを埋込み、制御プログラムはパーソ
ナルコンピュータよりの信号受信時に所定コードを確認
し、正当性確認時に当該プログラムやデータを前記書換
え可能デバイスの書き込み領域に格納すると共に、当該
プログラムやデータの管理記号を前記管理記号格納領域
に書き込むことを特徴とした内部データの管理・確認方
法。
2. A device having an online rewritable device as a memory, serially communicating with the rewritable device through an interface from a personal computer, and storing a program or data in the rewritable device via a control program, An area for storing a management symbol for displaying on the display device to confirm the identity of the rewritable device and a code area for confirming the correctness by the control program at the time of writing are provided, and the rewriting is performed on the personal computer side. A predetermined code is embedded in a fixed position of a program or data to be written in the rewritable device, and the control program confirms the predetermined code when a signal is received from a personal computer, and confirms the program or the data of the rewritable device when the validity is confirmed. Writing A method of managing and confirming internal data, characterized in that the management code of the program or data is stored in the storage area and the management code of the program or data is written in the management code storage area.
【請求項3】 前記書換え可能デバイスへのプログラム
やデバイスの書き込み時に制御プログラムによって正当
性を確認のための領域を設け、前記パーソナルコンピュ
ータよりの書き込み信号受信時に、前記制御プログラム
で算出した値と比較し、正当性確認時にプログラムやデ
ータを前記書換え可能デバイスの書き込み領域に格納す
ることを特徴とした請求項2記載の内部データ管理・確
認方法。
3. An area for confirming correctness is provided by a control program when writing a program or device to the rewritable device, and compared with a value calculated by the control program when a write signal is received from the personal computer. The internal data management / confirmation method according to claim 2, wherein the program and the data are stored in the writing area of the rewritable device at the time of confirming the correctness.
【請求項4】 前記書換え可能デバイスの各領域に格納
された管理記号,正当性確認用記号及び所定コード番号
を表示デバイスに表示することを特徴とした請求項1乃
至3記載の内部データの管理・確認方法。
4. The management of internal data according to claim 1, wherein a management symbol, a validity confirmation symbol and a predetermined code number stored in each area of the rewritable device are displayed on a display device. ·Confirmation method.
【請求項5】 前記書換え可能デバイスに格納後の確認
対象プログラムやデータの正当性確認はチェックサムま
たはCRCによる確認手段にて確認し、この確認算出値
を格納するための保管領域を書換え可能デバイスに設
け、この算出値保管領域に格納された算出値を用いて定
期的に確認演算を実行し、前回値と今回値とが異なる場
合複数回を繰り返して正当性の有無を判断することを特
徴とした請求項1乃至4記載の内部データ管理・確認方
法。
5. The rewritable device is a rewritable device for confirming the correctness of a confirmation target program and data after being stored in the rewritable device by a confirmation means by a checksum or CRC, and storing the confirmation calculated value. It is characterized in that the calculation value stored in this calculated value storage area is used to periodically perform a confirmation calculation, and if the previous value and the current value are different, multiple times are repeated to determine the validity. 5. The internal data management / confirmation method according to claim 1.
【請求項6】 前記書換え可能デバイスに格納された確
認対象プログラムやデータの格納領域と算出値保管領域
および正当性確認手段領域をそれぞれ二重に設けて正当
性有無演算を実行し、何れかの確認対象領域でのプログ
ラムやデータの正当性保障ができない場合には正当性保
障側の領域からプログラムやデータを復元することを特
徴とした請求項6記載の内部データ管理・確認方法。
6. A correctness presence / absence calculation is performed by duplicating a storage area for a confirmation target program or data stored in the rewritable device, a calculated value storage area, and a validity checking means area, and executing the validity checking operation. 7. The internal data management / verification method according to claim 6, wherein if the correctness of the program or data cannot be guaranteed in the confirmation target area, the program or data is restored from the area on the side of ensuring the correctness.
JP2001396318A 2001-12-27 2001-12-27 Management and confirmation method for internal data Pending JP2003196114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001396318A JP2003196114A (en) 2001-12-27 2001-12-27 Management and confirmation method for internal data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001396318A JP2003196114A (en) 2001-12-27 2001-12-27 Management and confirmation method for internal data

Publications (1)

Publication Number Publication Date
JP2003196114A true JP2003196114A (en) 2003-07-11

Family

ID=27602446

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001396318A Pending JP2003196114A (en) 2001-12-27 2001-12-27 Management and confirmation method for internal data

Country Status (1)

Country Link
JP (1) JP2003196114A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011060186A (en) * 2009-09-14 2011-03-24 Kyosan Electric Mfg Co Ltd Program writing device
JP2013140426A (en) * 2011-12-28 2013-07-18 Daihatsu Motor Co Ltd In-vehicle storage processing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05225073A (en) * 1991-11-08 1993-09-03 Yokogawa Electric Corp Data processor and physical amount measuring device
JPH09134307A (en) * 1995-11-13 1997-05-20 Denso Corp Memory rewriting system for electronic controller, the electronic controller and memory rewriting device
JPH111049A (en) * 1997-06-13 1999-01-06 Konica Corp Image processor
JP2000020302A (en) * 1998-07-03 2000-01-21 Toshiba Corp Vending machine control information writing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05225073A (en) * 1991-11-08 1993-09-03 Yokogawa Electric Corp Data processor and physical amount measuring device
JPH09134307A (en) * 1995-11-13 1997-05-20 Denso Corp Memory rewriting system for electronic controller, the electronic controller and memory rewriting device
JPH111049A (en) * 1997-06-13 1999-01-06 Konica Corp Image processor
JP2000020302A (en) * 1998-07-03 2000-01-21 Toshiba Corp Vending machine control information writing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011060186A (en) * 2009-09-14 2011-03-24 Kyosan Electric Mfg Co Ltd Program writing device
JP2013140426A (en) * 2011-12-28 2013-07-18 Daihatsu Motor Co Ltd In-vehicle storage processing device

Similar Documents

Publication Publication Date Title
JP4345860B2 (en) Vehicle memory management device
JP2846739B2 (en) Method for safely updating EEPROM memory
CN107239411B (en) Memory management method and system for vehicle-mounted controller
CN111090545A (en) Method, device and medium for recovering failed CPLD
JP2020160747A (en) Information processing device, control method therefor, and program
JP3675375B2 (en) Nonvolatile memory and data rewriting method of nonvolatile memory
KR102110340B1 (en) Method for EEPROM Recovery of Slave Device in PLC Communication Module
JP2003196114A (en) Management and confirmation method for internal data
JP4802339B2 (en) Nonvolatile memory update method
JP4863472B2 (en) Memory management method
US7353348B2 (en) Nonvolatile memory and card reader provided with the same
JPH0784894A (en) Method for writing nonvolatile memory
JPH09161493A (en) Management method for rewritable nonvolatile memory
US20050034034A1 (en) Control device with rewriteable control data
CN112099987A (en) Data management method, device, equipment and storage medium
JP4066667B2 (en) Vehicle process management system and method
US7313648B2 (en) Corruption tolerant method and system for deploying and modifying data in flash memory
JP4258312B2 (en) Image forming apparatus and program update history management method thereof
JP2007041798A (en) Information processor and memory rewriting method for information processor
JP3314719B2 (en) Flash EEPROM and its test method
JP4450161B2 (en) Unit and programmable controller
JP2007148570A (en) Diagnostic device and diagnostic method for storage device
JP2004030030A (en) Data transfer system
JP3835753B2 (en) IC card
JP5267534B2 (en) Storage device and storage device control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070109

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070515