JPH10177474A - Data storage method, data storage device and data processing device - Google Patents
Data storage method, data storage device and data processing deviceInfo
- Publication number
- JPH10177474A JPH10177474A JP33588496A JP33588496A JPH10177474A JP H10177474 A JPH10177474 A JP H10177474A JP 33588496 A JP33588496 A JP 33588496A JP 33588496 A JP33588496 A JP 33588496A JP H10177474 A JPH10177474 A JP H10177474A
- Authority
- JP
- Japan
- Prior art keywords
- data
- old
- new
- program
- difference
- 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
Links
- 238000013500 data storage Methods 0.000 title claims description 49
- 238000000034 method Methods 0.000 title claims description 29
- 238000004891 communication Methods 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 8
- 238000007906 compression Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
(57)【要約】
【課題】 より効率的にバージョンアップされた新デー
タを旧データに戻す。
【解決手段】 CPU11は、旧プログラムの記憶指示
があった場合、HDD30から新プログラムを読み出
し、差分データを読み出し、RAM13に記憶させる。
そして、RAM13上の差分データを解凍し、新プログ
ラムに基づき、旧プログラムを計算し、新プログラムに
代えてHDD30に記憶させる。
(57) [Summary] [Problem] To restore new data upgraded more efficiently to old data. When an instruction to store an old program is issued, a CPU reads a new program from an HDD, reads difference data, and stores the data in a RAM.
Then, the difference data on the RAM 13 is decompressed, the old program is calculated based on the new program, and stored in the HDD 30 instead of the new program.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、データ処理におけ
るデータ記憶に関する。[0001] The present invention relates to data storage in data processing.
【0002】[0002]
【従来の技術及び発明が解決しようとする課題】従来、
プログラムに基づき何らかの処理を行う装置では、既存
の処理を変更したり、新しい処理を追加したり、あるい
は、処理に介在する利用者の操作性を向上させたりする
等の目的のために、プログラムのバージョンアップを行
うことが一般的である。2. Description of the Related Art
In an apparatus that performs some processing based on a program, the processing of the program is performed for the purpose of changing existing processing, adding new processing, or improving the operability of a user who is involved in the processing. It is common to upgrade the version.
【0003】プログラムのバージョンアップにおいて
は、ROM等のメモリやハードディスク等に記憶されて
いる古いプログラム(以下「旧プログラム」という。)
に代えて新しいプログラム(以下「新プログラム」とい
う。)が記憶される。そして、通常はバージョンアップ
によって旧プログラムは使用されなくなる。In upgrading a program, an old program (hereinafter referred to as an "old program") stored in a memory such as a ROM or a hard disk or the like.
, A new program (hereinafter referred to as “new program”) is stored. Then, the old program is usually not used by the version upgrade.
【0004】ところが、新プログラムに不都合が生じて
バージョンアップしたプログラムを元に戻したい場合、
すなわち新プログラムを旧プログラムに戻したいという
場合も生じる。例えば、新プログラムにバグが内包され
ており、旧プログラムでは実行可能であった処理が実行
不可能となってしまうような場合がそうであるし、ま
た、例えば画像の処理をするプログラムの場合に、旧プ
ログラムに基づき処理された画像の方がきれいであると
いう評価が新プログラムのリリース後になされる場合も
そうである。However, when a new program is inconvenient and it is desired to restore a version-upgraded program,
That is, there is a case where it is desired to return a new program to an old program. For example, there is a case where a bug is included in a new program, and a process that was executable in the old program becomes infeasible. For example, in a case of a program that processes images, This is also the case when an image processed based on the old program is evaluated as being cleaner after the release of the new program.
【0005】上述のように、バージョンアップした新プ
ログラムを旧プログラムに戻す場合には、以下に示すよ
うな問題点があった。 (1)まず、バージョンアップしたときに、ROM等の
メモリやハードディスクから旧プログラムを消去した場
合を考える。旧プログラムを消去する理由としては、R
OM等のメモリやハードディスクの記憶容量が有限であ
り、旧プログラムを保存するための十分な記憶領域がな
かったり、使用しないと思われる旧プログラムを保存す
るために記憶領域を使用するほど記憶領域に余裕がない
ことが挙げられる。なお、ここでは記憶領域に記憶でき
る情報量はその記憶領域の大きさに比例するものとす
る。As described above, when the upgraded new program is returned to the old program, there are the following problems. (1) First, consider a case where an old program is erased from a memory such as a ROM or a hard disk when a version is upgraded. The reason for deleting the old program is that R
The storage capacity of the memory such as the OM and the hard disk is limited, and there is not enough storage area to store the old program, or the storage area is used to store the old program which is considered not to be used. There is no room for it. Here, the amount of information that can be stored in the storage area is proportional to the size of the storage area.
【0006】このときは、旧プログラムをメモリやハー
ドディスクにインストールしなおす必要があった。例え
ば、フロッピーディスクやCD−ROM等の記憶媒体か
らロードしてインストールしなおしたり、あるいは、通
信回線を介してホストから再度ダウンロードしてインス
トールしなおしたりする必要があった。その結果、新プ
ログラムから旧プログラムへ戻すという作業は手間のか
かるものであった。従って、このような作業が度々発生
するような装置では、作業を行う者の負担が大きくなっ
ていた。 (2)一方、バージョンアップしたときに、ROM等の
メモリやハードディスクに旧プログラムを保存する場合
を考える。At this time, it is necessary to re-install the old program in the memory or the hard disk. For example, it has been necessary to load and install from a storage medium such as a floppy disk or CD-ROM, or to download and install again from a host via a communication line. As a result, the task of returning from the new program to the old program was time-consuming. Therefore, in an apparatus in which such work frequently occurs, the burden on the person who performs the work has increased. (2) On the other hand, consider a case where the old program is stored in a memory such as a ROM or a hard disk when the version is upgraded.
【0007】このときは、(1)に示したように、フロ
ッピーディスクやCD−ROM等の記憶媒体、又は通信
回線を介したホストからロードするというような手間の
かかる作業は必要なくなる。しかし、使用されるかどう
かわからない旧プログラムを全て保存する必要があり、
旧プログラムを保存するために、ある記憶領域が使用さ
れることになる。その結果、その記憶領域は他の目的で
使用することができなくなってしまう。In this case, as shown in (1), a cumbersome operation such as loading from a storage medium such as a floppy disk or CD-ROM or a host via a communication line is not required. However, it is necessary to save all old programs that are not used or not,
A certain storage area will be used to store the old program. As a result, the storage area cannot be used for another purpose.
【0008】本発明は、上述の問題点を解決するために
なされたものであり、旧プログラム等の旧データの全て
を保存又は外部からロードすることなく、バージョンア
ップされた新プログラム等の新データを旧プログラム等
の旧データへ戻すことを目的とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and new data such as upgraded new programs are stored without saving or loading all of the old data such as old programs. To the old data such as the old program.
【0009】[0009]
【課題を解決するための手段及び発明の効果】上述の目
的を達成するためになされた請求項1に記載のデータ記
憶方法は、記憶した新データに代えて旧データを記憶す
るときには、新データと旧データとの差分データに基づ
き旧データを計算し、新データに代えて計算した旧デー
タを記憶することを特徴としている。According to the first aspect of the present invention, there is provided a data storage method for storing old data in place of stored new data. The old data is calculated based on the difference data between the old data and the old data, and the calculated old data is stored in place of the new data.
【0010】上述の差分データとしては、例えば請求項
2に示すように、予め記憶されている旧データに代えて
新データを記憶するときに、旧データと新データとから
算出され、新データと共に記憶されたものであることも
考えられるし、請求項3に示すように、外部より供給さ
れるものであることも考えられる。The difference data is calculated from the old data and the new data when the new data is stored in place of the previously stored old data. The information may be stored, or may be supplied from the outside as described in claim 3.
【0011】従来、例えば旧データに新データを上書き
するというように旧データに代えて新データを記憶する
場合、旧データを消去することが多く、旧データに戻す
ときに旧データを全てロードしなおすという手間がかか
っていた。一方、旧データを消去せず保存しておけば、
旧データに戻すときにロードしなおすという手間はなく
なるが、旧データの全てを記憶するための記憶領域が必
要となっていた。Conventionally, when storing new data in place of old data, for example, overwriting old data with new data, the old data is often erased. When returning to the old data, all the old data is loaded. It took time to fix it. On the other hand, if you keep old data without erasing it,
Although there is no need to reload data when returning to old data, a storage area for storing all of the old data is required.
【0012】それに対して、本発明のデータ記憶方法に
よれば、記憶した新データを旧データに戻すときには、
新データと旧データとの差分データに基づいて旧データ
を計算し、新データに代えて旧データを記憶する。つま
り、本発明では、旧データそのものではなく新データと
旧データとの差分データに基づいて旧データを復元する
のである。このとき、旧データと新データとで同一の部
分があった場合、その部分に対する差分は生じない。そ
の結果、差分データは旧データそのものよりも小さなデ
ータとなる。これによって、例えば、予め記憶されてい
る旧データに代えて新データを記憶するときに、この差
分データを旧データと新データとから算出し、新データ
と共に記憶しておく場合にも、旧データの全てを記憶し
ておく場合に比べて必要な記憶領域は小さくなる。ま
た、この差分データを外部から取得する場合にも、旧デ
ータの全てをロードしなおすよりもロードに要する時間
は短くなる。On the other hand, according to the data storage method of the present invention, when returning the stored new data to the old data,
The old data is calculated based on the difference data between the new data and the old data, and the old data is stored in place of the new data. That is, in the present invention, the old data is restored not based on the old data itself but on the difference data between the new data and the old data. At this time, if there is an identical portion between the old data and the new data, no difference occurs between the portions. As a result, the difference data becomes smaller than the old data itself. Thus, for example, when storing new data in place of previously stored old data, the difference data is calculated from the old data and the new data, and the difference data is stored together with the new data. Is smaller than in the case where all of the above are stored. Also, when acquiring the difference data from the outside, the time required for loading is shorter than reloading all the old data.
【0013】なお、ここでいう旧データ及び新データ
は、どのようなデータであってもよいが、例えば請求項
4に示すように、旧データ及び新データは、所定の処理
を行うためのプログラムであることが考えられる。この
場合、旧プログラムに代えて新プログラムを記憶すると
は、いわゆるプログラムのバージョンアップを意味す
る。このようなプログラムのバージョンアップにおいて
は、新プログラムに旧プログラムとの同一の部分が多い
ことが予想されるため、その差分データはより小さくな
ることが期待できる。Here, the old data and the new data may be any data. For example, as described in claim 4, the old data and the new data are a program for performing a predetermined process. It is thought that it is. In this case, storing the new program in place of the old program means a so-called program upgrade. In such a version upgrade of a program, it is expected that the new program will have many of the same parts as the old program, so that the difference data can be expected to be smaller.
【0014】また、差分データは差分そのものであって
もよいし、あるいは、データ量を小さくするような所定
の処理を施したものであってもよい。例えば、請求項5
に示すように、差分データは、旧データと新データとの
差分の冗長部分を取り除いて圧縮したものであってもよ
い。この場合、差分データは差分そのものよりもさらに
小さなデータとなる。Further, the difference data may be the difference itself, or may have been subjected to a predetermined process for reducing the data amount. For example, claim 5
As shown in (1), the difference data may be compressed by removing the redundant part of the difference between the old data and the new data. In this case, the difference data is smaller than the difference itself.
【0015】このように、旧データを復元するための差
分データがより小さなデータとなることにより、差分デ
ータを記憶しておく場合にはその記憶領域をより小さく
することができ、差分データを外部から取得する場合に
はその取得のためのロード時間をより短縮することがで
きる。As described above, since the difference data for restoring the old data becomes smaller, when the difference data is stored, the storage area can be made smaller, and the difference data can be stored in the external storage. When the data is acquired from the server, the load time for the acquisition can be further reduced.
【0016】さらにまた、請求項6に示すように、旧デ
ータ及び新データは通信回線を介して供給されてもよ
い。従来、旧データが消去された場合には、旧データ及
び新データが通信回線を介してホストからダウンロード
により供給される装置では、フロッピーディスクやCD
−ROM等の記憶媒体により通信回線を介さず供給され
る装置と違って、旧データに戻す場合にはダウンロード
が必要となってくる。そのため、ダウンロードに要する
時間及び通信回線の使用料等がかかることになってい
た。Furthermore, the old data and the new data may be supplied via a communication line. Conventionally, when old data is erased, a device in which old data and new data are supplied from a host via a communication line by download is a floppy disk or CD.
-Unlike a device that is supplied by a storage medium such as a ROM without passing through a communication line, a download is required to restore old data. Therefore, the time required for the download and the usage fee of the communication line are required.
【0017】それに対して、本発明のデータ記憶方法で
は、新データを旧データに戻す場合には、記憶した新デ
ータ及び差分データに基づいて旧データを計算する。そ
の結果、旧データに戻す場合には、少なくとも旧データ
そのものをダウンロードする必要はない。つまり、差分
データを記憶しておけばダウンロードは必要なくなる
し、差分データをダウンロードにより取得する場合であ
っても、旧データの全てをダウンロードするのに比べて
ダウンロードに要する時間は短くなる。これによって、
通信回線の使用料を抑えることが可能となる。On the other hand, in the data storage method of the present invention, when returning new data to old data, old data is calculated based on the stored new data and difference data. As a result, when returning to the old data, it is not necessary to download at least the old data itself. In other words, if the difference data is stored, no download is required, and even if the difference data is acquired by downloading, the time required for the download is shorter than when all the old data is downloaded. by this,
It is possible to reduce the usage fee of the communication line.
【0018】ところで、上述のデータ記憶方法を適用し
たデータ記憶装置は、例えば請求項7に示すような構成
が考えられる。すなわち、そのデータ記憶装置は、デー
タを記憶するデータ記憶手段と、データ記憶手段に記憶
された旧データに代えて新データを記憶するときには、
旧データと新データとから差分データを計算する計算手
段と、計算手段によって計算された差分データをデータ
記憶手段に記憶すると共に、旧データに代えて新データ
をデータ記憶手段に記憶するデータ更新手段と、データ
記憶手段に記憶された新データに代えて旧データを記憶
するときには、データ記憶手段に記憶された新データ及
び差分データに基づき旧データを計算する旧データ計算
手段と、旧データ計算手段によって計算された旧データ
を新データに代えてデータ記憶手段に記憶する旧データ
書込手段とを備えたことを特徴としている。By the way, a data storage device to which the above-described data storage method is applied may have a configuration as described in claim 7 for example. That is, when the data storage device stores new data in place of the old data stored in the data storage device and the data storage device that stores the data,
Calculating means for calculating difference data from old data and new data, and data updating means for storing the difference data calculated by the calculating means in the data storage means and storing new data in the data storage means in place of the old data When storing old data in place of the new data stored in the data storage means, the old data calculation means for calculating old data based on the new data and the difference data stored in the data storage means; And old data writing means for storing the old data calculated in the data storage means in place of the new data.
【0019】本発明のデータ記憶装置は、データを記憶
するための例えばROM等のメモリやハードディスクで
あるデータ記憶手段を備えている。このデータ記憶手段
は、物理的に1つの記憶媒体であることも考えられる
し、複数の記憶媒体であることも考えられる。例えばハ
ードディスクであってもよいし、あるいは、ROM等の
メモリ及びハードディスクであってもよい。The data storage device of the present invention includes a data storage means such as a memory such as a ROM or a hard disk for storing data. This data storage means may be physically one storage medium, or may be a plurality of storage media. For example, it may be a hard disk, or a memory such as a ROM and a hard disk.
【0020】そして、データ記憶手段に予め記憶されて
いる旧データに代えて新データを記憶するときには、計
算手段が旧データと新データとから差分データを計算す
る。この差分データは旧データと新データとの差分その
ものであってもよいし、あるいは、その差分に所定の処
理を施したものであってもよい。そして、データ更新手
段が、差分データと新データとをデータ記憶手段に記憶
する。When storing new data in place of the old data previously stored in the data storage means, the calculation means calculates difference data from the old data and the new data. This difference data may be the difference between the old data and the new data, or may be a result of performing a predetermined process on the difference. Then, the data updating means stores the difference data and the new data in the data storage means.
【0021】一方、新データを旧データに戻すときに
は、記憶した差分データ及び新データに基づいて、旧デ
ータ計算手段が旧データを計算する。そして、旧データ
書込手段が計算された旧データを新データに代えてデー
タ記憶手段に記憶する。これによって、旧データを全て
保存するのに必要な記憶領域よりも小さな記憶領域を使
用して、ロード等の作業をすることなく、新データを旧
データへ戻すことが可能となる。On the other hand, when returning the new data to the old data, the old data calculating means calculates the old data based on the stored difference data and the new data. Then, the old data writing means stores the calculated old data in the data storage means instead of the new data. This makes it possible to use the storage area smaller than the storage area necessary to store all the old data, and to return the new data to the old data without performing an operation such as loading.
【0022】また、別の構成のデータ記憶装置として、
例えば請求項8に示すような構成も考えられる。すなわ
ち、そのデータ記憶装置は、データを記憶するデータ記
憶手段と、データ記憶手段に記憶された新データと旧デ
ータとの差分データを外部から取得する差分データ取得
手段と、新データに代えて旧データを記憶するときに
は、新データ及び差分データ取得手段によって取得した
差分データに基づき旧データを計算する旧データ計算手
段と、旧データ計算手段によって計算された旧データを
新データに代えてデータ記憶手段に記憶する旧データ書
込手段とを備えたことを特徴としている。As another data storage device having another configuration,
For example, a configuration as described in claim 8 is also conceivable. That is, the data storage device includes a data storage unit that stores data, a difference data acquisition unit that acquires difference data between new data and old data stored in the data storage unit from outside, and an old data instead of the new data. When storing data, an old data calculation means for calculating old data based on the new data and the difference data obtained by the difference data obtaining means, and a data storage means for replacing the old data calculated by the old data calculation means with the new data And an old data writing means for storing the data in the memory.
【0023】この場合は、データを記憶するための例え
ばROM等のメモリやハードディスクであるデータ記憶
手段に記憶された新データと、新データを記憶するとき
に消去された旧データとの差分データを差分データ取得
手段が外部から取得する。この差分データは、新データ
を記憶する際に取得してデータ記憶手段に記憶しておく
ことも考えられるし、旧データを復元する際に取得する
ことも考えられる。新データを記憶する際に取得する場
合は取得した差分データをデータ記憶手段に記憶してお
かなければならないため、旧データを復元する際に取得
することが現実的である。なお、「差分データ取得手
段」は、通信回線により差分データを取得する場合に
は、例えばホスト装置との通信制御を行うCPUやモデ
ムが該当し、例えばフロッピーディスクから差分データ
をロードして取得する場合にはフロッピーディスクドラ
イブ装置が該当する。In this case, difference data between new data stored in a memory such as a ROM for storing data or data storage means such as a hard disk and old data deleted when storing the new data is stored. The difference data acquisition means acquires from outside. This difference data may be acquired when storing new data and stored in the data storage unit, or may be acquired when restoring old data. When acquiring the new data when storing it, the acquired difference data must be stored in the data storage means, so it is realistic to acquire the old data when restoring the old data. In the case of acquiring difference data via a communication line, the "difference data acquisition means" corresponds to, for example, a CPU or a modem for controlling communication with a host device. For example, the difference data is acquired from a floppy disk by loading it. In such a case, a floppy disk drive device is applicable.
【0024】そして、新データを旧データに戻すときに
は、取得した差分データ及び新データに基づいて、旧デ
ータ計算手段が旧データを計算する。そして、旧データ
書込手段が計算された旧データを新データに代えてデー
タ記憶手段に記憶する。これによって、旧データの全て
をロードすることに比べて、旧データよりも小さな差分
データをロードすることになるため、ロードに要する時
間が短縮されることになる。特に通信回線から差分デー
タをダウンロードする場合を考えれば、通信回線の使用
時間を短くすることが可能となる。When returning the new data to the old data, the old data calculation means calculates the old data based on the acquired difference data and the new data. Then, the old data writing means stores the calculated old data in the data storage means instead of the new data. As a result, compared to loading all the old data, the difference data smaller than the old data is loaded, so that the time required for loading is reduced. In particular, when the difference data is downloaded from the communication line, the use time of the communication line can be reduced.
【0025】もちろん、請求項9に示したように、旧デ
ータ及び新データは所定の処理を行うためのプログラム
としてもよい。ところで、旧データ及び新データがプロ
グラムである場合、請求項10に示すように、請求項9
に記載のデータ記憶装置を備え、データ記憶手段に記憶
されているプログラムに基づく処理を実行可能に構成さ
れていることを特徴とするデータ処理装置を構成しても
よい。この場合、データ処理装置では、新プログラムに
バージョンアップしたときにも、旧プログラムに戻した
ときにもすぐにそれぞれのプログラムに基づく処理を実
行することが可能となる。As a matter of course, the old data and the new data may be a program for performing a predetermined process. In the case where the old data and the new data are programs, as in claim 10, claim 9
And a data processing device characterized by being configured to be able to execute a process based on a program stored in the data storage means. In this case, the data processing device can immediately execute processing based on the respective programs both when upgrading to a new program and when returning to the old program.
【0026】[0026]
【発明の実施の形態】以下、本発明のデータ処理装置を
具体化した実施形態を図面を参照して説明する。図1
は、本発明のデータ処理装置の一実施形態である情報セ
ンタ1の概略構成を示すブロック図である。情報センタ
1は端末70と伝送路60を介して接続されている。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment embodying a data processing device of the present invention will be described below with reference to the drawings. FIG.
1 is a block diagram illustrating a schematic configuration of an information center 1 which is an embodiment of a data processing device according to the present invention. The information center 1 is connected to a terminal 70 via a transmission line 60.
【0027】情報センタ1は、映像を再生するビデオ装
置50と、ビデオ装置50から出力される映像データを
圧縮し、符号化して出力するエンコーダ10と、エンコ
ーダ10への指示を与えるための入力装置20と、「デ
ータ記憶手段」としてのハードディスクドライブ装置
(以下「HDD」と記述する。)30と、フロッピーデ
ィスクドライブ装置(以下「FDD」と記述する。)4
0とを備えている。The information center 1 includes a video device 50 for reproducing video, an encoder 10 for compressing, encoding and outputting video data output from the video device 50, and an input device for giving an instruction to the encoder 10. 20, a hard disk drive (hereinafter referred to as “HDD”) 30 as “data storage means”, and a floppy disk drive (hereinafter referred to as “FDD”) 4
0.
【0028】このとき、HDD30はドライブ機構及び
ハードディスクを備えているのに対して、FDD40は
ドライブ機構だけを備えたものであり、いわゆる記憶媒
体であるフロッピーディスク(以下「FD」と記述す
る。)41をセットしてデータの読み書きを行うことが
可能となる。At this time, the HDD 30 has a drive mechanism and a hard disk, whereas the FDD 40 has only a drive mechanism, and is a so-called storage medium, a floppy disk (hereinafter referred to as "FD"). It becomes possible to read and write data by setting 41.
【0029】エンコーダ10は、制御手段としてのCP
U11と、ROM12と、一時記憶手段としてのRAM
13と、入力装置20、HDD30及びFDD40との
インターフェースである入出力I/F(入出力インター
フェース)14と、ビデオ装置50からの映像データが
入力される入力部17と、入力部17からの映像データ
を圧縮して符号化するエンコード部16と、エンコード
部16で符号化した映像データを伝送路60を介して端
末70へ出力する出力部15とを備えている。The encoder 10 has a CP as a control means.
U11, ROM 12, and RAM as temporary storage means
13, an input / output I / F (input / output interface) 14, which is an interface between the input device 20, the HDD 30, and the FDD 40, an input unit 17 to which video data from the video device 50 is input, and a video from the input unit 17. An encoding unit 16 for compressing and encoding data is provided, and an output unit 15 for outputting video data encoded by the encoding unit 16 to a terminal 70 via a transmission path 60.
【0030】エンコード部16で圧縮処理を行うための
プログラムはHDD30に記憶されている。そして、C
PU11がこのプログラムをHDD30からRAM13
上に読み出し、このプログラムに基づく処理を実行する
ことよって、エンコード部16での圧縮処理が行われ
る。A program for performing a compression process in the encoding unit 16 is stored in the HDD 30. And C
The PU 11 transfers this program from the HDD 30 to the RAM 13
By reading out the above and executing the processing based on this program, the compression processing in the encoding unit 16 is performed.
【0031】本実施形態の情報センタ1は、この圧縮処
理を行うプログラムのバージョンアップに関する処理に
特徴がある。詳しくは、(イ)圧縮処理を行うためのプ
ログラムとしてHDD30に記憶されている旧プログラ
ムに代えてバージョンアップしたプログラムである新プ
ログラムを記憶する処理と、(ロ)バージョンアップし
た新プログラムの不具合等より記憶した新プログラムを
再び旧プログラムへ戻す処理に特徴がある。なお、本実
施形態の情報センタ1では、プログラムはFDD40か
ら読み出すことが可能なFD41で供給され、HDD3
0へ記憶することにより利用される。The information center 1 according to the present embodiment is characterized by processing relating to version upgrade of a program for performing the compression processing. More specifically, (a) a process of storing a new program that is an upgraded program in place of an old program stored in the HDD 30 as a program for performing a compression process, and (b) a defect of the upgraded new program. There is a feature in the process of returning the stored new program to the old program again. In the information center 1 of the present embodiment, the program is supplied by the FD 41 which can be read from the FDD 40,
It is used by storing to 0.
【0032】次に、図2のフローチャートに基づいて、
上述の(イ)の処理、エンコーダ10のCPU11にお
ける新プログラム記憶処理を詳しく説明する。まず、最
初のステップS100において、新プログラムの記憶指
示があったか否かを判断する。この判断は、図1中の入
力装置20からの入力に基づいて行う。ここで、新プロ
グラムの記憶指示があった場合(S100:YES)、
S110へ移行する。一方、新プログラムの記憶指示が
なかった場合(S100:NO)、本新プログラム記憶
処理を終了する。Next, based on the flowchart of FIG.
The process (a) and the new program storage process in the CPU 11 of the encoder 10 will be described in detail. First, in the first step S100, it is determined whether or not an instruction to store a new program has been issued. This determination is made based on the input from the input device 20 in FIG. Here, when there is an instruction to store the new program (S100: YES),
Move to S110. On the other hand, if there is no instruction to store the new program (S100: NO), the new program storage processing ends.
【0033】S110では、新プログラムの読み出しを
行う。本実施形態の情報センタ1では、上述のように新
プログラムはFD41により提供されるため、利用者が
FD41をFDD40へセットすることにより、FD4
1より新プログラムを読み出してエンコーダ10のRA
M13へ記憶する。At S110, a new program is read. In the information center 1 of the present embodiment, since the new program is provided by the FD 41 as described above, the user sets the FD 41 to the FDD 40, and the FD 41
1 to read the new program and
Store it in M13.
【0034】S120では、旧プログラムの読み出しを
行う。旧プログラムはHDD30に記憶されているた
め、HDD30から読み出してエンコーダ10のRAM
13へ記憶する。続くS130では、エンコーダ10の
RAM13に記憶した旧プログラムと新プログラムとに
基づいて、その2つのプログラムの差分を計算する。S
140では計算した差分の冗長部分を取り除き圧縮して
差分データを作成する。At S120, the old program is read. Since the old program is stored in the HDD 30, the old program is read from the HDD 30 and read from the RAM of the encoder 10.
13 is stored. At S130, based on the old program and the new program stored in the RAM 13 of the encoder 10, a difference between the two programs is calculated. S
At 140, the redundant part of the calculated difference is removed and compressed to create difference data.
【0035】S150では、新プログラムを旧プログラ
ムに代えてHDD30に記憶する。このとき、旧プログ
ラムは新プログラムに上書きされることにより消去され
ることになる。S160では、差分データをHDD30
に記憶する。なお、エンコーダ10のCPU11が「計
算手段」及び「データ更新手段」に該当し、上述のS1
30及びS140の処理が計算手段としての処理に、ま
た上述のS150及びS160の処理がデータ更新手段
としての処理に該当する。In S150, the new program is stored in the HDD 30 in place of the old program. At this time, the old program is erased by overwriting the new program. In S160, the difference data is stored in the HDD 30
To memorize. Note that the CPU 11 of the encoder 10 corresponds to the “calculating means” and the “data updating means”, and
The processing of S30 and S140 corresponds to the processing as the calculating means, and the processing of S150 and S160 corresponds to the processing as the data updating means.
【0036】次に、図3のフローチャートに基づいて、
上述の(ロ)に示したエンコーダ10のCPU11によ
る旧プログラム記憶処理を詳しく説明する。まず、最初
のステップS200において、旧プログラムの記憶指示
があったか否かを判断する。この判断は、図1中の入力
装置20からの入力に基づいて行う。ここで、旧プログ
ラムの記憶指示があった場合(S200:YES)、S
210へ移行する。一方、旧プログラムの記憶指示がな
い場合(S200:NO)、本旧プログラム記憶処理を
終了する。Next, based on the flowchart of FIG.
The old program storage process by the CPU 11 of the encoder 10 shown in (b) above will be described in detail. First, in the first step S200, it is determined whether or not an instruction to store the old program has been issued. This determination is made based on the input from the input device 20 in FIG. Here, if there is an instruction to store the old program (S200: YES), S
Move to 210. On the other hand, if there is no instruction to store the old program (S200: NO), the old program storage processing ends.
【0037】S210では、新プログラムの読み出しを
行う。図2中のS150の処理によって、新プログラム
はHDD30に記憶されている。従って、HDD30か
ら新プログラムを読み出してエンコーダ10のRAM1
3に記憶する。S220では、差分データの読み出しを
行う。図2中のS160の処理によって、差分データは
新プログラムと共にHDD30に記憶されている。従っ
て、HDD30から差分データを読み出してエンコーダ
10のRAM13に記憶する。続くS230では、エン
コーダ10のRAM13上に読み出した差分データを解
凍する。これは、図2中のS140の圧縮処理に対応す
る処理である。At S210, a new program is read. The new program is stored in the HDD 30 by the processing of S150 in FIG. Therefore, the new program is read from the HDD 30 and the RAM 1 of the encoder 10 is read out.
3 is stored. In S220, difference data is read. By the processing of S160 in FIG. 2, the difference data is stored in the HDD 30 together with the new program. Therefore, the difference data is read from the HDD 30 and stored in the RAM 13 of the encoder 10. In subsequent S230, the difference data read on the RAM 13 of the encoder 10 is decompressed. This is a process corresponding to the compression process of S140 in FIG.
【0038】S240では、エンコーダ10のRAM1
3上に読み出して解凍した差分データ及び新プログラム
に基づいて、旧プログラムを計算する。続くS250
で、計算した旧プログラムを新プログラムに代えてHD
D30へ記憶する。なお、エンコーダ10のCPU11
が「旧データ計算手段」及び「旧データ書込手段」に該
当し、上述のS240の処理が旧データ計算手段として
の処理に、また上述のS250の処理が旧データ書込手
段としての処理に該当する。In S240, the RAM 1 of the encoder 10
3, an old program is calculated based on the difference data read and decompressed and the new program. S250 that follows
Then, replace the calculated old program with the new program
Store in D30. The CPU 11 of the encoder 10
Corresponds to “old data calculation means” and “old data writing means”, and the processing of S240 described above corresponds to processing as old data calculation means, and the processing of S250 described above corresponds to processing as old data writing means. Applicable.
【0039】ここで、本実施形態の情報センタ1の発揮
する効果に対する理解を容易にするために、従来問題と
なっていた点を繰り返し説明する。従来、例えば旧プロ
グラムに新プログラムを上書きするというように旧プロ
グラムに代えて新プログラムをHDD30に記憶する場
合、旧プログラムをHDD30から消去することが多
く、旧プログラムに戻すときに旧プログラムを全てFD
41からFDD40によりロードしなおすという手間が
かかっていた。一方、旧プログラムを消去せずHDD3
0に保存しておけば、旧プログラムに戻すときにFD4
1からFDD40によりロードしなおすという手間はな
くなるが、旧プログラムの全てを記憶するための記憶領
域がHDD30に必要となっていた。Here, in order to facilitate understanding of the effects exhibited by the information center 1 of the present embodiment, the points which have been a problem in the past will be repeatedly described. Conventionally, when storing a new program in the HDD 30 instead of the old program, for example, overwriting the old program with the new program, the old program is often erased from the HDD 30, and when returning to the old program, all the old programs are stored in the FD.
It took time and effort to reload from 41 with FDD40. On the other hand, without deleting the old program
If you save to 0, FD4 when returning to the old program
Although it is no longer necessary to reload the program from 1 using the FDD 40, the HDD 30 needs a storage area for storing all the old programs.
【0040】それに対して、本実施形態の情報センタ1
では、新プログラムをHDD30に記憶する(図2中の
S150)と共に、差分データをHDD30に記憶する
(図2中のS160)。そして、旧プログラムに戻すと
きには、この差分データに基づいて旧プログラムを計算
し(図3中のS240)、計算した旧プログラムを新プ
ログラムに代えて記憶する(図3中のS250)。On the other hand, the information center 1 of the present embodiment
Then, the new program is stored in the HDD 30 (S150 in FIG. 2), and the difference data is stored in the HDD 30 (S160 in FIG. 2). When returning to the old program, the old program is calculated based on the difference data (S240 in FIG. 3), and the calculated old program is stored in place of the new program (S250 in FIG. 3).
【0041】従って、旧プログラムに戻すときにもFD
D40に旧プログラムの記憶されているFD41をセッ
トし、ロードしてHDD30に記憶するというような手
間のかかる作業は必要なくなる。しかも、旧プログラム
の全てを保存しておくわけではなく、旧プログラムと新
プログラムとに基づく差分データを記録しておく。この
差分データは、旧プログラムと新プログラムとの差分を
計算し(図2中のS130)、さらにその差分の冗長部
分を取り除いて圧縮した(図2中のS140)ものであ
る。バージョンアップした新プログラムは旧プログラム
と同一部分が多いと予想されるため、その差分は小さく
なることが期待できる。そして、その差分の冗長部分を
取り除いた差分データは差分そのものよりもさらに小さ
くなる。これによって、差分データを記憶するための記
憶領域は、旧プログラムを記憶するための記憶領域より
も小さくなる。Therefore, when returning to the old program, the FD
The troublesome work of setting the FD 41 in which the old program is stored in the D 40 and loading and storing the FD 41 in the HDD 30 is not required. In addition, not all of the old program is stored, but difference data based on the old program and the new program is recorded. This difference data is obtained by calculating the difference between the old program and the new program (S130 in FIG. 2), and further removing the redundant portion of the difference and compressing it (S140 in FIG. 2). Since the upgraded new program is expected to have many parts identical to the old program, the difference can be expected to be small. Then, the difference data from which the redundant part of the difference has been removed becomes even smaller than the difference itself. Thus, the storage area for storing the difference data is smaller than the storage area for storing the old program.
【0042】また、本実施形態の情報センタ1では、H
DD30に記憶されたプログラムに基づいて、ビデオ装
置50からの映像データを処理することが可能である。
従って、新プログラムを旧プログラムに代えて記憶した
ときにも、また、旧プログラムを新プログラムに代えて
記憶したときにも、すぐにHDD30に記憶されている
旧プログラム又は新プログラムに基づいてビデオ装置5
0からの映像データを処理することができる。In the information center 1 of the present embodiment, H
The video data from the video device 50 can be processed based on the program stored in the DD 30.
Therefore, even when the new program is stored in place of the old program, or when the old program is stored in place of the new program, the video device is immediately stored in the HDD 30 based on the old program or the new program. 5
Video data from 0 can be processed.
【0043】以上、本発明はこのような実施形態に何等
限定されるものではなく、本発明の主旨を逸脱しない範
囲において種々なる形態で実施し得る。例えば、上記実
施形態では、旧プログラムに代えて新プログラムをFD
41からロードする際に、差分データを計算してHDD
30に記憶するように構成されていたが、差分データは
旧プログラムを復元する必要が生じた際にFD41から
ロードするような構成であってもよい。その場合には、
FDD40が「差分データ取得手段」に該当する。As described above, the present invention is not limited to such an embodiment, and can be implemented in various forms without departing from the gist of the present invention. For example, in the above embodiment, the new program is replaced by the FD instead of the old program.
When loading from HDD 41, calculate the difference data and
The configuration is such that the difference data is stored in the FD 41 when it is necessary to restore the old program. In that case,
The FDD 40 corresponds to “difference data acquisition means”.
【0044】また、上記実施形態では、HDD30に記
憶される対象となるデータはプログラムであったが、例
えばプログラムに基づく処理によって使用されるデータ
であってもよい。さらにまた、上記実施形態の情報セン
タ1では、プログラムがFD41で供給されるものであ
ったが、例えば、プログラムが通信回線を介してホスト
から供給されるような装置では、旧プログラムを通信回
線を介してホストからダウンロードする必要がでてく
る。プログラムを通信回線を介してホストからダウンロ
ードするような装置に本発明を適用した場合には、旧プ
ログラムに戻すときには少なくとも旧プログラムを全て
ダウンロードする必要はなくなる。差分データを記憶し
ておけば、旧プログラムの復元のためにダウンロードす
る必要はなくなるし、差分データを外部からダウンロー
ドにより取得する場合であっても、ダウンロードに要す
る時間を短縮することができる。Further, in the above embodiment, the data to be stored in the HDD 30 is a program, but may be data used by processing based on the program, for example. Furthermore, in the information center 1 of the above embodiment, the program is supplied by the FD 41. For example, in an apparatus in which the program is supplied from the host via the communication line, the old program is connected to the communication line. Will need to be downloaded from the host via When the present invention is applied to an apparatus that downloads a program from a host via a communication line, it is not necessary to download at least all of the old program when returning to the old program. If the difference data is stored, it is not necessary to download the difference program for restoring the old program, and even if the difference data is obtained by downloading from outside, the time required for downloading can be reduced.
【図1】情報センタの概略構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a schematic configuration of an information center.
【図2】エンコーダのCPUによる新プログラム記憶処
理を示すフローチャートである。FIG. 2 is a flowchart showing a new program storage process by a CPU of an encoder.
【図3】エンコーダのCPUによる旧プログラム記憶処
理を示すフローチャートである。FIG. 3 is a flowchart showing an old program storage process by a CPU of an encoder.
1…情報センタ 10…エンコーダ 11…CPU 12…ROM 13…RAM 14…入出力イン
ターフェース 15…出力部 16…エンコード
部 17…入力部 20…入力装置 30…ハードディスクドライブ装置 40…フロッピー
ディスクドライブ装置 50…ビデオ装置 60…伝送路 70…端末DESCRIPTION OF SYMBOLS 1 ... Information center 10 ... Encoder 11 ... CPU 12 ... ROM 13 ... RAM 14 ... Input / output interface 15 ... Output part 16 ... Encoding part 17 ... Input part 20 ... Input device 30 ... Hard disk drive device 40 ... Floppy disk drive device 50 ... Video device 60: transmission line 70: terminal
Claims (10)
憶するときには、前記新データと前記旧データとの差分
データに基づき旧データを計算し、前記新データに代え
て前記計算した旧データを記憶することを特徴とするデ
ータ記憶方法。When storing old data in place of stored new data, old data is calculated based on difference data between the new data and the old data, and the calculated old data is replaced with the new data. A data storage method characterized by storing.
旧データに代えて新データを記憶するときに、前記旧デ
ータと前記新データとから算出され、前記新データと共
に記憶されたものであることを特徴とする請求項1に記
載のデータ記憶方法。2. The difference data is calculated from the old data and the new data when new data is stored in place of the previously stored old data, and is stored together with the new data. The data storage method according to claim 1, wherein:
ものであることを特徴とする請求項1に記載のデータ記
憶方法。3. The data storage method according to claim 1, wherein the difference data is supplied from outside.
の処理を行うためのプログラムであることを特徴とする
請求項1〜3のいずれかに記載のデータ記憶方法。4. The data storage method according to claim 1, wherein the old data and the new data are programs for performing a predetermined process.
新データとの差分の冗長部分を取り除いて圧縮したもの
であることを特徴とする請求項1〜4のいずれかに記載
のデータ記憶方法。5. The data storage method according to claim 1, wherein the difference data is obtained by removing a redundant part of a difference between the old data and the new data and compressing the difference data. .
線を介して供給されることを特徴とする請求項1〜5の
いずれかに記載のデータ記憶方法。6. The data storage method according to claim 1, wherein the old data and the new data are supplied via a communication line.
ータを記憶するときには、前記旧データと前記新データ
とから差分データを計算する計算手段と、 該計算手段によって計算された差分データを前記データ
記憶手段に記憶すると共に、前記旧データに代えて前記
新データを前記データ記憶手段に記憶するデータ更新手
段と、 前記データ記憶手段に記憶された新データに代えて前記
旧データを記憶するときには、前記データ記憶手段に記
憶された新データ及び差分データに基づき前記旧データ
を計算する旧データ計算手段と、 該旧データ計算手段によって計算された旧データを新デ
ータに代えて前記データ記憶手段に記憶する旧データ書
込手段とを備えたことを特徴とするデータ記憶装置。7. A data storing means for storing data, and a calculating means for calculating difference data from the old data and the new data when storing new data in place of the old data stored in the data storing means. Data update means for storing the difference data calculated by the calculation means in the data storage means, and storing the new data in the data storage means in place of the old data; and When storing the old data in place of the new data, the old data calculating means for calculating the old data based on the new data and the difference data stored in the data storing means; An old data writing means for storing old data in the data storage means in place of new data. Location.
の差分データを外部から取得する差分データ取得手段
と、 前記新データに代えて前記旧データを記憶するときに
は、前記新データ及び前記差分データ取得手段によって
取得した差分データに基づき前記旧データを計算する旧
データ計算手段と、 該旧データ計算手段によって計算された旧データを新デ
ータに代えて前記データ記憶手段に記憶する旧データ書
込手段とを備えたことを特徴とするデータ記憶装置。8. A data storage unit for storing data, a difference data obtaining unit for obtaining difference data between new data and old data stored in the data storage unit from outside, and the old data instead of the new data. When storing data, an old data calculating means for calculating the old data based on the new data and the difference data obtained by the difference data obtaining means; and replacing old data calculated by the old data calculating means with new data. And an old data writing means for storing the data in the data storage means.
の処理を行うためのプログラムであることを特徴とする
請求項7又は8に記載のデータ記憶装置。9. The data storage device according to claim 7, wherein the old data and the new data are programs for performing a predetermined process.
え、前記データ記憶手段に記憶されている前記プログラ
ムに基づく処理を実行することが可能に構成されている
ことを特徴とするデータ処理装置。10. A data processing device comprising the data storage device according to claim 9, wherein the data storage device is configured to execute a process based on the program stored in the data storage means. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP33588496A JPH10177474A (en) | 1996-12-16 | 1996-12-16 | Data storage method, data storage device and data processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP33588496A JPH10177474A (en) | 1996-12-16 | 1996-12-16 | Data storage method, data storage device and data processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH10177474A true JPH10177474A (en) | 1998-06-30 |
Family
ID=18293461
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP33588496A Pending JPH10177474A (en) | 1996-12-16 | 1996-12-16 | Data storage method, data storage device and data processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH10177474A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002236587A (en) * | 2001-02-07 | 2002-08-23 | Nec System Technologies Ltd | Initial start time shortening method, installing method, personal computer, and program |
| JP2007163937A (en) * | 2005-12-15 | 2007-06-28 | Alpine Electronics Inc | Map data updating method and map data updating apparatus |
| JP2023089697A (en) * | 2021-12-16 | 2023-06-28 | 富士電機株式会社 | Embedded device, rollback method and program |
-
1996
- 1996-12-16 JP JP33588496A patent/JPH10177474A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002236587A (en) * | 2001-02-07 | 2002-08-23 | Nec System Technologies Ltd | Initial start time shortening method, installing method, personal computer, and program |
| JP2007163937A (en) * | 2005-12-15 | 2007-06-28 | Alpine Electronics Inc | Map data updating method and map data updating apparatus |
| JP2023089697A (en) * | 2021-12-16 | 2023-06-28 | 富士電機株式会社 | Embedded device, rollback method and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6668261B1 (en) | Method of upgrading a program using associated configuration data | |
| CN102132258B (en) | Firmware update system, information device and program | |
| US9081639B2 (en) | System and method for remotely re-imaging a computer system | |
| JPH0844598A (en) | File management method and apparatus | |
| JPH0782432B2 (en) | How to upgrade software in an electronic printing system | |
| US20070038801A1 (en) | Control circuit, electronic device using the same, and firmware update method | |
| JPH1021060A (en) | Communication system having automatic program update processing function and recording medium provided with program for executing program update processing | |
| JPH10177474A (en) | Data storage method, data storage device and data processing device | |
| US7007036B2 (en) | Method and apparatus for embedding configuration data | |
| JP5133230B2 (en) | Information processing apparatus, information processing method, and program | |
| US7818557B2 (en) | Method for re-imaging a computer system | |
| JP2009048584A (en) | Information processing apparatus, information processing method, and computer program | |
| JP2004013536A (en) | Flash memory rewrite control system, flash memory rewrite control method, program for executing each step of flash memory rewrite control method, and information recording medium | |
| JPH11282687A (en) | Program automatic revision method | |
| JP2009009494A (en) | Information processing apparatus, information processing method, and control program | |
| JP2008129678A (en) | System, method and program for automatically determining file compression | |
| JPH11353215A (en) | Journal-after-update collecting process system | |
| JPH05113920A (en) | File management method and device | |
| JPH06187206A (en) | File control unit | |
| JPH0793276A (en) | Starting system for computer | |
| JP2002007152A (en) | Download method and device | |
| US12190001B2 (en) | Printing apparatus having data overwriting, control method of printing apparatus, and storage medium | |
| JPH07129079A (en) | How to install the programming loader | |
| US20250328502A1 (en) | File management system and file management method | |
| JPH1091500A (en) | Client/server system, differential file down loading method in client/server system and storage medium storing program for differential file down loading |