JP2005108202A - Data updating system, data updating device and external storage medium - Google Patents
Data updating system, data updating device and external storage medium Download PDFInfo
- Publication number
- JP2005108202A JP2005108202A JP2004260476A JP2004260476A JP2005108202A JP 2005108202 A JP2005108202 A JP 2005108202A JP 2004260476 A JP2004260476 A JP 2004260476A JP 2004260476 A JP2004260476 A JP 2004260476A JP 2005108202 A JP2005108202 A JP 2005108202A
- Authority
- JP
- Japan
- Prior art keywords
- data
- update
- updating
- storage medium
- count
- 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.)
- Withdrawn
Links
Images
Landscapes
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、電子装置におけるプログラム等のデータを更新するデータ更新システム、データ更新装置及び外部記憶媒体に関する。 The present invention relates to a data update system for updating data such as a program in an electronic device, a data update device, and an external storage medium.
パーソナルコンピュータや、携帯通信端末などの電子装置において、プログラムの不具合の修正や機能の追加などを目的として、フレキシブルディスク、CD−ROM、DVD−ROM、ICチップなどの可搬型の記憶媒体に更新用データを記憶し、この更新用データを電子装置に読み込ませることにより、所望の更新作業を行うデータ更新方法が、広く一般に行われている。 For update to portable storage media such as flexible disks, CD-ROMs, DVD-ROMs, IC chips, etc. for the purpose of correcting program defects and adding functions in electronic devices such as personal computers and portable communication terminals Data update methods for performing desired update operations by storing data and causing the electronic device to read the update data are widely used in general.
図17に従来のデータ更新システムの構成例を示す。この従来例では、外部記憶媒体1202内の更新用データ記憶部1210に更新用データが記憶されており、端末1201は、制御部1208による制御の下で、この更新用データを、更新用データ読込み部1205を通して読み込む。そして、端末1201において、端末内データ記憶部1203に記憶されている更新前のデータを端末内データ読み書き部1207を介して読み出し、この更新前のデータと、外部記憶媒体1202から読み込んだ更新用データとから、更新後データ復元部1204により更新後のデータを復元し、復元した更新後のデータを端末内データ読み書き部1207を介して端末内データ記憶部1203に記憶するようになっている。
FIG. 17 shows a configuration example of a conventional data update system. In this conventional example, update data is stored in the update
また、更新前のデータと更新用データとから更新後のデータを復元する技術としては、例えば、特開平8−255104号公報(特許文献1)に開示されているようなデータ更新方法もある。このデータ更新方法は、ネットワークなどの通信路を介して更新用データを転送してデータ更新を行うもので、送信側装置で更新前のデータと更新後のデータとを比較して差分を抽出し、その差分データのみを更新用データとして転送して、受信側の端末装置では装置内にある更新前のデータと転送されてきた差分データとから更新後のデータを復元し、データを更新するような手順が用いられる。 As a technique for restoring post-update data from pre-update data and update data, for example, there is a data update method as disclosed in JP-A-8-255104 (Patent Document 1). In this data update method, data for update is transferred through a communication path such as a network to perform data update. The transmission side device compares the data before update with the data after update and extracts the difference. Then, only the difference data is transferred as update data, and the terminal device on the receiving side restores the updated data from the pre-update data and the transferred difference data in the device, and updates the data. A simple procedure is used.
この特許文献1の例では、更新用の差分データにおいて、指定された一連の文字を構成中のファイルにコピーするよう命令するCOPY命令と、一連の文字の追加を指示するADD命令とを含む一連の命令を作成することで、この2種類の命令の実行によって更新後のデータの復元が可能であり、かつ、転送する差分データのデータ量を削減することが可能である。
In the example of
図17に示したようなデータ更新方法は、電子装置の動作プログラム等を供給するソフトウェアメーカなどが、ユーザの手元にある電子装置を回収したりせずに、データを更新したい場合等に用いられる。電子装置を回収するには多大な費用がかかるため、更新用データを記憶させた記憶媒体を配布し、ユーザ自身によるデータ更新を可能とすることによって、回収費用の削減や、ユーザの利便性の向上が期待できる。 The data update method as shown in FIG. 17 is used when a software manufacturer or the like that supplies an operation program for an electronic device wants to update data without collecting the electronic device at hand. . Since collecting the electronic device is very expensive, it is possible to reduce the collection cost and improve user convenience by distributing the storage medium storing the update data and enabling the user to update the data. Improvement can be expected.
このように可搬型の記憶媒体に更新用データを記憶させて配布する場合には、電子装置のメーカ等の配布元が想定する正規のユーザ以外の手にも、この記憶媒体が渡ってしまうことがある。例えば、データ更新が有料であるような場合、料金を支払ったユーザが、更新用データを記憶した記憶媒体を他のユーザに渡すことで、それを譲り受けた正規でないユーザもデータ更新することができてしまう。したがって、上記のような従来のデータ更新方法では、更新用データの配布元が許可した回数よりも多くの回数のデータ更新を行われてしまうことがあった。 When the update data is stored in the portable storage medium and distributed as described above, the storage medium may be transferred to a hand other than a regular user assumed by a distribution source such as an electronic device manufacturer. There is. For example, if the data update is charged, the user who paid the fee can update the data for the non-regular user who has transferred the storage medium storing the update data to other users. End up. Therefore, in the conventional data update method as described above, the data update may be performed more times than the number permitted by the distribution source of the update data.
本発明は、上記事情に鑑みてなされたもので、可搬型記憶媒体に記憶した更新用データを配布してデータの更新を行う場合に、更新用データの配布元においてデータ更新可能な回数を任意に制限することができるデータ更新システム、データ更新装置及び外部記憶媒体を提供することを目的とする。 The present invention has been made in view of the above circumstances. When updating data stored in a portable storage medium and updating the data, the number of times data can be updated at the distribution source of the update data is arbitrarily set. An object of the present invention is to provide a data update system, a data update device, and an external storage medium that can be limited to the above.
本発明のデータ更新システムは、可搬型記憶媒体に記憶された更新用データを用いて電子装置におけるデータの更新を行うデータ更新システムであって、前記更新用データを用いてデータ更新を行うことが可能な回数に関する情報を含む更新回数データを記憶する更新回数データ記憶手段と、前記更新回数データに基づき、前記電子装置におけるデータ更新処理を行うデータ更新装置によりデータを更新する際のデータ更新許可の有無を判定する更新許可判定手段と、前記データ更新許可に基づき、前記更新用データを読み込む更新用データ読込み手段と、前記データ更新許可によって前記更新用データが前記データ更新装置に読み取られた際に、前記更新回数データを更新する更新回数更新手段と、前記更新用データと更新前データの両方または前記更新用データのみを用いて更新後データを復元する更新後データ復元手段とを備えるものである。 The data update system of the present invention is a data update system that updates data in an electronic device using update data stored in a portable storage medium, and can perform data update using the update data. Update number data storage means for storing update number data including information relating to the possible number of times, and data update permission when updating data by a data update device that performs data update processing in the electronic device based on the update number data Update permission determination means for determining presence / absence, update data reading means for reading the update data based on the data update permission, and when the update data is read by the data update device by the data update permission Update number update means for updating the update number data, both the update data and the pre-update data The other is intended and a post-update data restoring means for restoring the updated data by using only data for the update.
これにより、更新許可判定手段が更新回数データに基づいてデータ更新許可の有無を判定し、データ更新許可がある場合に更新用データ読込み手段によって更新用データが読み込まれ、更新後データ復元手段で更新後データが復元される。データ更新を行ったときに更新回数更新手段により更新回数データを更新し、データ更新を行った回数が所定の回数に達したときには、更新許可判定手段により更新許可がないと判定して、可搬型記憶媒体から更新用データを読み込ませないようにすることができるので、データ更新の回数を制限することができる。 As a result, the update permission determination means determines whether or not data update is permitted based on the update count data, and when there is data update permission, the update data is read by the update data reading means and updated by the post-update data restoration means. Later data is restored. When the data update is performed, the update count update means updates the update count data, and when the data update count reaches a predetermined number, the update permission determination means determines that there is no update permission and is portable. Since update data can be prevented from being read from the storage medium, the number of data updates can be limited.
また、本発明の一態様として、上記のデータ更新システムであって、前記更新許可判定手段によりデータ更新許可がないと判定された場合に、前記更新用データを消去する更新用データ消去手段を備えるものも含まれる。 According to another aspect of the present invention, the data update system includes an update data erasure unit that erases the update data when the update permission determination unit determines that there is no data update permission. Also included.
これにより、データ更新許可がなくなったときには更新用データを消去することができるので、不正な手段による読み込みを防ぐことができ、データ更新の回数をより確実に制限することができる。 As a result, the update data can be erased when the data update permission is lost, so reading by an unauthorized means can be prevented, and the number of data updates can be more reliably limited.
また、本発明の一態様として、上記のデータ更新システムであって、前記データ更新装置を識別するための装置識別子を記憶する識別子記憶手段を備え、前記更新回数データ記憶手段は、前記装置識別子ごとにそれぞれ前記更新回数データを記憶するものも含まれる。 Further, as one aspect of the present invention, the data update system includes an identifier storage unit that stores a device identifier for identifying the data update device, and the update count data storage unit is provided for each device identifier. Each of which stores the update count data.
これにより、装置識別子ごとに設けられた更新回数データによって、対応するデータ更新装置ごとで更新回数を管理でき、データ更新の回数を装置識別子ごとに制限することができる。 Thus, the update count data provided for each device identifier can be used to manage the update count for each corresponding data update device, and the number of data updates can be limited for each device identifier.
また、本発明の一態様として、上記のデータ更新システムであって、前記更新回数データ記憶手段は、前記データ更新装置によりデータ更新を行った更新回数を示す情報と前記データ更新が許可された上限回数を示す情報とを含む更新回数データを記憶するものも含まれる。 Further, as one aspect of the present invention, in the data update system described above, the update count data storage unit includes information indicating an update count at which data update is performed by the data update device, and an upper limit for which the data update is permitted. The storage of update number data including information indicating the number of times is also included.
これにより、更新許可判定手段において更新回数と上限回数との比較により容易にデータ更新許可の有無を判定することができる。 As a result, the update permission determination means can easily determine whether or not data update is permitted by comparing the number of updates with the upper limit number.
また、本発明の一態様として、上記のデータ更新システムであって、前記更新許可判定手段と前記更新回数更新手段とを前記可搬型記憶媒体に備えるものも含まれる。 In addition, as one aspect of the present invention, the data update system described above may include the update permission determination unit and the update count update unit provided in the portable storage medium.
これにより、可搬型記憶媒体においてデータ更新許可を判定し、データ更新許可がない場合は更新用データが可搬型記憶媒体からデータ更新装置に読み込まれることを防止でき、可搬型記憶媒体に記憶した更新用データを配布する配布元においてデータ更新可能な回数を任意に制限することができる。 As a result, permission to update data is determined in the portable storage medium, and if the data update permission is not granted, the update data stored in the portable storage medium can be prevented from being read from the portable storage medium to the data update device. The number of times data can be updated at the distribution source that distributes the business data can be arbitrarily limited.
また、本発明の一態様として、上記のデータ更新システムであって、前記更新後データ復元手段により復元された更新後データの正当性を判定する復元結果判定手段と、前記復元結果の判定に基づいて、前記更新後データの書き込みを行う更新後データ書込み手段とを備えるものも含まれる。 Further, as one aspect of the present invention, in the above data update system, based on the determination of the restoration result, the restoration result judgment unit that judges the validity of the updated data restored by the updated data restoration unit, and the restoration result And an updated data writing means for writing the updated data.
これにより、更新後データを復元したときに復元結果判定手段により更新後データの正当性を判定し、復元された更新後データが正常である場合にのみ書き込むようにできるので、データ復元の際の障害が発生した場合に不当なデータを書き込んでしまい、データを更新した装置が正常に動作しなくなるなどのおそれを軽減できる。 As a result, when the post-update data is restored, it is possible to determine the validity of the post-update data by the restoration result judging means, and to write only when the restored post-update data is normal. When a failure occurs, it is possible to reduce the risk that invalid data is written and the device that updated the data does not operate normally.
また、本発明の一態様として、上記のデータ更新システムであって、前記更新用データは、前記更新前データと前記更新後データとの差分データを含むものも含まれる。 In addition, as one aspect of the present invention, the data update system described above includes the update data including difference data between the pre-update data and the post-update data.
これにより、更新用データの差分データと更新前データとを用いて、更新後データを復元でき、更新用データのデータ量を削減できる。このため、可搬型記憶媒体において更新用データの記憶容量を低減でき、また、データ更新装置による更新用データの読み込み時間を短縮できる。 Thereby, the post-update data can be restored using the difference data of the update data and the pre-update data, and the data amount of the update data can be reduced. For this reason, the storage capacity of the update data in the portable storage medium can be reduced, and the time for reading the update data by the data update device can be shortened.
本発明の外部記憶媒体は、更新用データを用いて電子装置におけるデータの更新を行うデータ更新システムにおける外部記憶媒体であって、前記電子装置におけるデータ更新処理を行うデータ更新装置に対して接続、分離可能に構成され、前記更新用データを記憶する更新用データ記憶手段と、前記更新用データを用いてデータ更新を行うことが可能な回数に関する情報を含む更新回数データを記憶する更新回数データ記憶手段と、前記更新回数データに基づき、前記データ更新装置によりデータを更新する際のデータ更新許可の有無を判定する更新許可判定手段と、前記データ更新許可によって前記更新用データが前記データ更新装置に読み取られた際に、前記更新回数データを更新する更新回数更新手段とを備えるものである。 An external storage medium of the present invention is an external storage medium in a data update system that updates data in an electronic device using update data, and is connected to a data update device that performs data update processing in the electronic device, Update data storage means configured to be separable and for storing the update data, and update count data storage for storing update count data including information relating to the number of times data can be updated using the update data Means, update permission determination means for determining whether or not data update is permitted when data is updated by the data update device based on the update count data, and the update data is transferred to the data update device by the data update permission. Update number update means for updating the update number data when read is provided.
これにより、例えば電子装置内などにおいて構成されるデータ更新装置によりデータ更新が行われたときに、更新回数更新手段により更新回数データを更新し、データ更新を行った回数が所定の回数に達したときには、更新許可判定手段により更新許可がないと判定して、外部記憶媒体からデータ更新装置に更新用データを読み込ませないようにすることができるので、外部記憶媒体の配布元においてデータ更新の回数を制限することができる。 As a result, for example, when data update is performed by a data update device configured in an electronic device or the like, the update count data is updated by the update count update means, and the number of data updates reaches a predetermined number of times. In some cases, the update permission determination means determines that there is no update permission and prevents the data update device from reading update data from the external storage medium. Can be limited.
また、本発明の一態様として、上記の外部記憶媒体であって、前記更新許可判定手段によりデータ更新許可がないと判定された場合に、前記更新用データを消去する更新用データ消去手段を備えるものも含まれる。 According to another aspect of the present invention, the external storage medium includes an update data erasure unit that erases the update data when it is determined by the update permission determination unit that there is no data update permission. Also included.
これにより、データ更新許可がなくなったときには外部記憶媒体において更新用データを消去することができるので、不正な手段による読み込みを防ぐことができ、データ更新の回数をより確実に制限することができる。 As a result, when the data update permission is lost, the update data can be erased from the external storage medium, so reading by an unauthorized means can be prevented and the number of data updates can be more reliably limited.
また、本発明の一態様として、上記の外部記憶媒体であって、前記更新回数データ記憶手段は、前記データ更新装置を識別するための装置識別子ごとにそれぞれ前記更新回数データを記憶するものも含まれる。 Further, as one aspect of the present invention, the external storage medium described above, wherein the update count data storage means stores the update count data for each device identifier for identifying the data update device, respectively. It is.
これにより、外部記憶媒体において装置識別子ごとに設けた更新回数データによってデータ更新許可の有無を判定し、該当する装置識別子を持つデータ更新装置ごとにデータ更新の回数を制限することができる。 Accordingly, it is possible to determine whether or not data update is permitted based on the update count data provided for each device identifier in the external storage medium, and to limit the number of data updates for each data update device having the corresponding device identifier.
また、本発明の一態様として、上記の外部記憶媒体であって、前記更新回数データ記憶手段は、前記データ更新装置によりデータ更新を行った更新回数を示す情報と前記データ更新が許可された上限回数を示す情報とを含む更新回数データを記憶するものも含まれる。 Further, as one aspect of the present invention, in the above external storage medium, the update count data storage means includes information indicating an update count at which data update has been performed by the data update device and an upper limit for which the data update is permitted. The storage of update number data including information indicating the number of times is also included.
これにより、外部記憶媒体の更新許可判定手段において更新回数と上限回数との比較により容易にデータ更新許可の有無を判定することができる。 Thereby, it is possible to easily determine whether or not data update is permitted by comparing the number of updates and the upper limit number in the update permission determination unit of the external storage medium.
また、本発明は、上記いずれかの外部記憶媒体における各手段の機能をコンピュータにより実現させるためのプログラムを提供する。 The present invention also provides a program for causing a computer to realize the function of each means in any one of the above external storage media.
本発明のデータ更新装置は、更新用データを用いて電子装置におけるデータの更新を行うデータ更新システムにおけるデータ更新装置であって、前記更新用データを記憶する外部記憶媒体を接続可能に構成され、前記外部記憶媒体におけるデータ更新許可に基づき、前記更新用データを読み込む更新用データ読込み手段と、前記更新用データと更新前データの両方または前記更新用データのみを用いて更新後データを復元する更新後データ復元手段とを備えるものである。 The data update device of the present invention is a data update device in a data update system that updates data in an electronic device using update data, and is configured to be connectable to an external storage medium that stores the update data, Update data reading means for reading the update data based on data update permission in the external storage medium, and update for restoring post-update data using both the update data and pre-update data or only the update data And a post-data restoring means.
これにより、外部記憶媒体からデータ更新許可を得て、更新用データを読み込み、更新後データを復元することができ、データ更新許可によってデータ更新の回数を制限することができる。 As a result, data update permission can be obtained from the external storage medium, update data can be read and post-update data can be restored, and the number of data updates can be limited by the data update permission.
また、本発明の一態様として、上記のデータ更新装置であって、自装置を識別するための装置識別子を記憶する識別子記憶手段を備えるものも含まれる。 In addition, as one aspect of the present invention, the above data update device includes an identifier storage unit that stores a device identifier for identifying the device itself.
これにより、装置識別子によってデータ更新装置の種別や個体等を識別でき、例えばデータ更新を行う際に外部記憶媒体に装置識別子を通知することで、外部記憶媒体において装置識別子ごとにデータ更新許可の判定を行い、データ更新回数を制限することが可能となる。 As a result, the type or individual of the data update device can be identified by the device identifier. For example, by notifying the external storage medium of the device identifier when performing data update, the data update permission determination for each device identifier in the external storage medium It is possible to limit the number of data updates.
また、本発明の一態様として、上記のデータ更新装置であって、前記更新後データ復元手段により復元された更新後データの正当性を判定する復元結果判定手段と、前記復元結果の判定に基づいて、前記更新後データの書き込みを行う更新後データ書込み手段とを備えるものも含まれる。 Further, as one aspect of the present invention, the data updating apparatus is based on the restoration result determination unit that determines the validity of the updated data restored by the updated data restoration unit, and the determination of the restoration result And an updated data writing means for writing the updated data.
これにより、データ更新装置において更新後データを復元したときに復元結果判定手段により更新後データの正当性を判定し、復元された更新後データが正常である場合にのみ書き込むようにできるので、データ復元の際の障害が発生した場合に不当なデータを書き込んでしまい、データを更新した装置が正常に動作しなくなるなどのおそれを軽減できる。 As a result, when the post-update data is restored in the data update device, the restoration result judgment means judges the validity of the post-update data, and can be written only when the restored post-update data is normal. It is possible to alleviate the risk that, when a failure occurs during restoration, invalid data is written, and the device that updated the data does not operate normally.
また、本発明は、上記いずれかのデータ更新装置における各手段の機能をコンピュータにより実現させるためのプログラムを提供する。 The present invention also provides a program for causing a computer to realize the function of each means in any of the above data updating apparatuses.
本発明のデータ更新方法は、可搬型記憶媒体に記憶された更新用データを用いて電子装置におけるデータの更新を行うデータ更新方法であって、前記更新用データを用いてデータ更新を行うことが可能な回数に関する情報を含む更新回数データに基づき、前記電子装置におけるデータ更新処理を行うデータ更新装置によりデータを更新する際のデータ更新許可の有無を判定するステップと、前記データ更新許可に基づき、前記更新用データを読み込むステップと、前記データ更新許可によって前記更新用データが前記データ更新装置に読み取られた際に、前記更新回数データを更新するステップと、前記更新用データと更新前データの両方または前記更新用データのみを用いて更新後データを復元するステップとを有するものである。 The data update method of the present invention is a data update method for updating data in an electronic device using update data stored in a portable storage medium, wherein the data update is performed using the update data. Based on update number data including information on the number of possible times, determining whether or not to allow data update when updating data by a data update device that performs data update processing in the electronic device, based on the data update permission, A step of reading the update data, a step of updating the update count data when the update data is read by the data update device with the data update permission, and both the update data and the pre-update data Or the step of restoring post-update data using only the update data.
これにより、更新回数データに基づいてデータ更新許可の有無を判定し、データ更新許可がある場合に更新用データが読み込まれ、更新後データが復元される。データ更新を行ったときに更新回数データを更新し、データ更新を行った回数が所定の回数に達したときには更新許可がないと判定して、可搬型記憶媒体から更新用データを読み込ませないようにすることができるので、データ更新の回数を制限することができる。 Thereby, it is determined whether or not the data update is permitted based on the update count data. When the data update is permitted, the update data is read and the updated data is restored. Update the data when the data is updated, and when the number of data updates reaches a predetermined number, determine that there is no update permission so that the update data is not read from the portable storage medium. Therefore, the number of data updates can be limited.
また、本発明は、上記のデータ更新方法における各ステップをコンピュータにより実行させるためのプログラムを提供する。 The present invention also provides a program for causing a computer to execute each step in the data update method.
本発明によれば、可搬型記憶媒体に記憶した更新用データを配布してデータの更新を行う場合に、更新用データの配布元においてデータ更新可能な回数を任意に制限することができる効果が得られる。 According to the present invention, when the update data stored in the portable storage medium is distributed and the data is updated, it is possible to arbitrarily limit the number of times the data can be updated at the distribution source of the update data. can get.
本実施形態のデータ更新システムは、携帯電話装置や携帯情報端末(PDA)などの携帯端末装置等の電子装置に適用可能である。ここでは、更新対象のデータを持つ電子装置に相当する端末においてデータ更新装置が構成され、自装置内のデータを更新する機能を備える場合を説明する。 The data update system of the present embodiment is applicable to electronic devices such as mobile terminal devices such as mobile phone devices and personal digital assistants (PDAs). Here, a case will be described in which a data updating device is configured in a terminal corresponding to an electronic device having data to be updated, and has a function of updating data in the device itself.
(第1の実施形態)
図1は、本発明の第1の実施形態に係るデータ更新システムの機能構成を示すブロック図である。第1の実施形態のデータ更新システム101は、更新対象のデータが記憶され、更新用データを用いて自装置内に記憶されたデータの更新処理を行うデータ更新装置を含む端末102と、端末102に提供するデータ更新のための更新用データを記憶した可搬型記憶媒体の一例に相当する外部記憶媒体103とを有して構成される。この外部記憶媒体103は、可搬型の媒体からなり、端末(データ更新装置)102に対して着脱されて接続、分離可能に構成されている。
(First embodiment)
FIG. 1 is a block diagram showing a functional configuration of a data update system according to the first embodiment of the present invention. The
端末102は、更新前データ及び更新後データを記憶する端末内データ記憶部104と、端末全体の制御を行う制御部106と、更新前データと更新用データの両方、もしくは更新用データのみから更新後データを復元する更新後データ復元部(更新後データ復元手段の一例に相当する)107と、端末内データ記憶部104に記憶されているデータの読み出しと書き込みを行う端末内データ読み書き部108と、外部記憶媒体103から更新用データを読み込む更新用データ読込み部(更新用データ読込み手段の一例に相当する)109とを備えている。
The terminal 102 is updated from the in-terminal
また、外部記憶媒体103は、更新回数データから更新許可の有無を判定する更新許可判定部(更新許可判定手段の一例に相当する)110と、端末102がデータ更新を行ったときに更新回数データを更新する更新回数更新部(更新回数更新手段の一例に相当する)111と、更新回数データを記憶する更新回数データ記憶部(更新回数データ記憶手段の一例に相当する)112と、更新用データを記憶した更新用データ記憶部113とを備えている。外部記憶媒体103としては、SD(商標)メモリカード、SD(商標)I/Oカード、マルチメディアカード(MMC)、メモリースティック(商標)、コンパクトフラッシュ(商標)(CF)カード、ハードディスクドライブ、USBメモリなどの各種記憶媒体を用いることができる。
The
次に、図2から図4を参照して、第1の実施形態のデータ更新システム101の動作について説明する。
Next, the operation of the
図2は、外部記憶媒体103内の更新用データ記憶部113に記憶された更新用データを用いて、端末102内の端末内データ記憶部104に記憶された更新前データを更新する場合の動作手順を示すフローチャートである。
FIG. 2 shows an operation when the pre-update data stored in the in-terminal
端末(データ更新装置)102の制御部106がデータ更新処理を開始すると(ステップS201)、まず、外部記憶媒体103内の更新許可判定部110が、更新回数データ記憶部112から、更新回数データを読み込む(ステップS202)。次に、更新許可判定部110は、この更新回数データの内容を解釈して、更新許可の有無を判定する(ステップS203)。
When the
ステップS203で更新許可がないと判定した場合は、更新許可判定部110は更新不可であることを、端末102内の更新用データ読込み部109に通知し(ステップS209)、制御部106はデータ更新を行わずに終了する(ステップS210)。
If it is determined in step S203 that there is no update permission, the update
一方、ステップS203で更新許可があると判定した場合は、更新回数更新部111が更新回数データ記憶部112に記憶された更新回数データを更新する(ステップS204)。そして、更新許可判定部110は更新用データ記憶部113から更新用データを読み出し、更新用データ読込み部109へ渡す(ステップS205)。
On the other hand, if it is determined in step S203 that the update is permitted, the update count update unit 111 updates the update count data stored in the update count data storage unit 112 (step S204). Then, the update
次に、端末102内の更新後データ復元部107は、更新用データ読込み部109から更新用データを受け取り、端末内データ読み書き部108から端末内データ記憶部104に記憶された更新前データを受け取る(ステップS206)。そして、更新後データ復元部107は、更新前データと更新用データとから更新後データを復元する(ステップS207)。次いで、この更新後データを端末内データ読み書き部108により端末内データ記憶部104へ書き込み(ステップS208)、制御部106がデータ更新処理を終了する(ステップS210)。
Next, the post-update
図3は、更新回数データのデータ構造の一例を示した図である。更新回数データは、更新回数データ記憶部112によって外部記憶媒体103内に記憶され、更新許可の判定に用いられる。ここでは、更新回数データは、更新用データ記憶部113に記憶された更新用データによってデータ更新を行った回数を表す更新回数301と、前記更新用データによってデータ更新の実行が許可された回数を表す上限回数302とを含むデータ構造を持つものとする。
FIG. 3 is a diagram illustrating an example of the data structure of the update count data. The update count data is stored in the
図4は、更新許可判定部110における更新許可有無の判定の動作手順を示したフローチャートである。この図4では、更新回数データが図3に示した例のようなデータ構造である場合の、図2のステップS203における更新許可有無の判定ステップの詳細な手順を示す。
FIG. 4 is a flowchart showing an operation procedure for determining whether or not there is update permission in the update
更新許可判定部110は、更新許可有無の判定を開始すると(ステップS401)、まず更新回数データ記憶部112に記憶された更新回数301と上限回数302とを読み込み(ステップS402)、これらの値の大小を比較する(ステップS403)。
When the update
ステップS403で比較した結果、更新回数が上限回数未満であれば、更新許可判定部110は更新許可ありと判定し(ステップS404)、この処理を終了する(ステップS406)。一方、更新回数が上限回数に達した場合、またはそれ以上の場合は、更新許可判定部110は更新許可なしと判定し(ステップS405)、この処理を終了する(ステップS406)。
As a result of the comparison in step S403, if the number of updates is less than the upper limit number, the update
このように、第1の実施形態では、外部記憶媒体103に更新許可判定部110と更新回数更新部111と更新回数データ記憶部112とを備え、更新回数データ記憶部112において、更新用データ記憶部113に記憶された更新用データを用いてデータ更新を行った回数とデータ更新を行ってよい上限回数とを記憶し、更新許可判定部110によって、更新回数が所定の上限回数未満であるかどうかを判定する。そして、上限回数未満である場合に限りデータ更新が可能であると判断し、更新用データ記憶部113から更新用データを読み出して端末102側の更新用データ読込み部109に渡し、更新回数更新部111により更新回数データ記憶部112の更新回数を更新するようにしている。これにより、例えば更新用データの配布元で更新を許可する上限回数を設定することで、更新用データ記憶部113に記憶された更新用データを用いてユーザがデータ更新を行える回数を任意に制限することができる。
As described above, in the first embodiment, the
なお、更新回数データが図3に例示したデータ構造である場合に、更新回数データを設定するには、図5に示すような更新回数データ設定装置を用いる。図5は、外部記憶媒体103に更新回数データ設定装置151を接続した構成例を示すブロック図である。
When the update count data has the data structure illustrated in FIG. 3, an update count data setting device as shown in FIG. 5 is used to set the update count data. FIG. 5 is a block diagram illustrating a configuration example in which an update count
更新回数データ設定装置151は、外部記憶媒体103内の更新回数データを設定する装置であり、上限回数302を設定する上限回数設定部152と、更新回数301を設定する更新回数設定部153と、更新回数データを外部記憶媒体103内の更新回数データ記憶部112へ書き込む更新回数データ書込み部154とを備える。この場合、データ更新に用いられる外部記憶媒体103には、更新回数データ記憶部112において、更新回数301を記憶する更新回数記憶部131と、上限回数302を記憶する上限回数記憶部132とが設けられる。
The update count
この更新回数データ設定装置151では、更新用データの配布者の操作指示に基づき、上限回数設定部152によって上限回数302を、更新回数設定部153によって更新回数301をそれぞれ設定し、更新回数データ書込み部154によって、外部記憶媒体103内の更新回数データ記憶部112の上限回数記憶部132及び更新回数記憶部131にそれぞれデータを書き込む。
In this update count
また、更新用データを外部記憶媒体103に記憶させるためには、図6に示すような更新用データ書込み装置を用いる。図6は、外部記憶媒体103に更新用データ書込み装置161を接続した構成例を示すブロック図である。
In order to store the update data in the
更新用データ書込み装置161は、更新前データや更新後データ等の更新用データを生成するための基データを記憶するデータ記憶部162と、更新用データを生成する更新用データ生成部163と、更新用データを外部記憶媒体103内の更新用データ記憶部113へ書き込む更新用データ書込み部164とを備える。この更新用データ書込み装置161において、更新用データ生成部163により、データ記憶部162から更新前データや更新後データ等を読み出し、更新前データと更新後データとの差分データなどによる更新用データを生成し、更新用データ書込み部164によって、この更新用データを外部記憶媒体103内の更新用データ記憶部113に書き込む。
The update
なお、更新回数データは、容易に書き換えできないような領域に記憶されている。これによって、更新回数の制限をより確実に行うことが可能である。この容易に書き換えできないような領域を持つ更新回数データ記憶部112は、上記構成のように外部記憶媒体103内に設けてもよいし、端末102内部に設けてもよい。
The update count data is stored in an area that cannot be easily rewritten. This makes it possible to more reliably limit the number of updates. The update count
また、第1の実施形態の変形例として、更新許可判定部110及び更新回数更新部111を端末側に設けるような構成とすることも可能である。図7は第1の実施形態の変形例の構成を示すブロック図である。この変形例のデータ更新システム101Aは、端末102Aと外部記憶媒体103Aとを有して構成され、端末102Aにおいて更新許可判定部110及び更新回数更新部111を備え、外部記憶媒体103Aは更新回数データ記憶部112及び更新用データ記憶部113のみを備えている。その他の構成は図1に示した第1の実施形態と同様である。このように更新許可判定部110及び更新回数更新部111を端末側に設けた場合であっても、上記と同様の機能を実現できる。
Further, as a modification of the first embodiment, the update
上述した第1の実施形態によれば、可搬型の外部記憶媒体103に更新用データを記憶させて配布し、端末102内の動作プログラム等のデータの更新を行う場合に、更新用データの配布元において外部記憶媒体103に更新回数データを設定することで、データ更新可能な回数を任意に制限することが可能となる。これにより、更新用データ自体やその更新用データを記憶した外部記憶媒体103が意図しない第三者に渡った場合などに、正規でないユーザなどによって、更新用データの配布元が許可した回数よりも多くの回数のデータ更新が行われることを防止できる。
According to the first embodiment described above, update data is distributed when update data is stored and distributed in the portable
(第2の実施形態)
図8は、本発明の第2の実施形態に係るデータ更新システムの機能構成を示すブロック図である。第2の実施形態のデータ更新システム501は、第1の実施形態と同様に、更新対象のデータが記憶され、更新用データを用いて自装置内に記憶されたデータの更新処理を行うデータ更新装置を含む端末502と、端末502のデータを更新するための更新用データを記憶した外部記憶媒体503とを有して構成される。
(Second Embodiment)
FIG. 8 is a block diagram showing a functional configuration of a data update system according to the second embodiment of the present invention. As in the first embodiment, the
端末502は、更新前データ及び更新後データを記憶する端末内データ記憶部504と、端末全体の制御を行う制御部506と、更新前データと更新用データの両方、もしくは更新用データのみから更新後データを復元する更新後データ復元部507と、端末内データ記憶部504に記憶されているデータの読み出しと書き込みを行う端末内データ読み書き部508と、外部記憶媒体503から更新用データを読み込む更新用データ読込み部509とを備えている。
The terminal 502 is updated from an in-terminal
また、外部記憶媒体503は、更新回数データから更新許可の有無を判定する更新許可判定部510と、端末502がデータ更新を行ったときに更新回数データを更新する更新回数更新部511と、更新回数データを記憶する更新回数データ記憶部512と、更新用データを記憶した更新用データ記憶部513と、更新許可がなくなったことを更新許可判定部510から通知されたときに更新用データ記憶部513に記憶されている更新用データを消去する更新用データ消去部(更新用データ消去手段の一例に相当する)514とを備えている。
In addition, the
次に、図9を参照して、第2の実施形態のデータ更新システム501の動作について説明する。
Next, the operation of the
図9は、外部記憶媒体503内の更新用データ記憶部513に記憶された更新用データを用いて、端末502内の端末内データ記憶部504に記憶された更新前データを更新する場合の動作手順を示すフローチャートである。
FIG. 9 shows an operation when the pre-update data stored in the in-terminal
端末(データ更新装置)502の制御部506がデータ更新処理を開始すると(ステップS601)、まず、外部記憶媒体503内の更新許可判定部510が、更新回数データ記憶部512から、更新回数データを読み込む(ステップS602)。次に、更新許可判定部510は、この更新回数データの内容を解釈して、更新許可の有無を判定する(ステップS603)。
When the
ステップS603で更新許可がないと判定した場合は、更新許可判定部510は更新不可であることを、端末502内の更新用データ読込み部509に通知し(ステップS611)、制御部506はデータ更新を行わずに終了する(ステップS612)。
If it is determined in step S603 that there is no update permission, the update
一方、ステップS603で更新許可があると判定した場合は、更新回数更新部511が更新回数データ記憶部512に記憶された更新回数データを更新する(ステップS604)。そして、更新許可判定部510は更新用データ記憶部513から更新用データを読み出し、更新用データ読込み部509へ渡す(ステップS605)。
On the other hand, if it is determined in step S603 that the update is permitted, the update
次に、更新許可判定部510は、ステップS604において更新された更新回数データの内容を解釈して、更新許可の有無を判定する(ステップS606)。ステップS606で更新許可がないと判定した場合は、更新用データ消去部514が更新用データ記憶部513に記憶されている更新用データを消去する(ステップS607)。一方、ステップS606で更新許可があると判定した場合は、更新用データは消去しない。
Next, the update
その後、端末502内の更新後データ復元部507は、更新用データ読込み部509から更新用データを受け取り、端末内データ読み書き部508から端末内データ記憶部504に記憶された更新前データを受け取る(ステップS608)。そして、更新後データ復元部507は、更新前データと更新用データとから更新後データを復元する(ステップS609)。次いで、この更新後データを端末内データ読み書き部508により端末内データ記憶部504へ書き込み(ステップS610)、制御部506がデータ更新処理を終了する(ステップS612)。
Thereafter, the post-update
なお、上記第2の実施形態において、用いられる更新回数データのデータ構造は、図3に示した第1の実施形態と同様であるものとする。また、上記第2の実施形態の動作において、ステップS603及びステップS606における更新許可有無の判定動作は、図4により説明した第1の実施形態と同様である。 In the second embodiment, it is assumed that the data structure of the update count data used is the same as that of the first embodiment shown in FIG. Further, in the operation of the second embodiment, the operation for determining whether or not the update is permitted in step S603 and step S606 is the same as that of the first embodiment described with reference to FIG.
このように、第2の実施形態では、外部記憶媒体503に更新用データ消去部514を備え、更新回数が所定の回数に達したときには更新用データを消去することによって、不正な手段によって更新用データを読み込むことを防ぐことができ、データ更新回数をより確実に制限することができる。また、更新用データを消去することにより、記憶媒体の使用可能領域を増やすことができるので、ユーザがこの記憶媒体を他のデータ記憶用として用いる際に、記憶できるデータ量が増えるという効果もある。
As described above, in the second embodiment, the
(第3の実施形態)
図10は、本発明の第3の実施形態に係るデータ更新システムの機能構成を示すブロック図である。第3の実施形態のデータ更新システム701は、第1の実施形態と同様に、更新対象のデータが記憶され、更新用データを用いて自装置内に記憶されたデータの更新処理を行うデータ更新装置を含む端末702と、端末702のデータを更新するための更新用データを記憶した外部記憶媒体703とを有して構成される。
(Third embodiment)
FIG. 10 is a block diagram showing a functional configuration of a data update system according to the third embodiment of the present invention. As in the first embodiment, the
端末702は、端末702の更新前データ及び更新後データを記憶する端末内データ記憶部704と、端末702の全体の制御を行う制御部706と、更新前データと更新用データの両方、もしくは更新用データのみから更新後データを復元する更新後データ復元部707と、端末内データ記憶部704および端末識別子記憶部714に記憶されているデータの読み出しと書き込みを行う端末内データ読み書き部708と、外部記憶媒体703から更新用データを読み込む更新用データ読込み部709と、端末ごとに設定された端末識別子を記憶する端末識別子記憶部(識別子記憶手段の一例に相当する)714とを備えている。
The terminal 702 includes an in-terminal
また、外部記憶媒体703は、更新回数データから更新許可の有無を判定する更新許可判定部710と、端末702がデータ更新を行ったときに更新回数データを更新する更新回数更新部711と、更新回数データを記憶する更新回数データ記憶部712と、更新用データを記憶した更新用データ記憶部713とを備えている。
Further, the
更新回数データ記憶部712は、端末識別子ごとに更新回数データを記憶する。すなわち、更新回数データは、端末識別子721と、この端末識別子を持つ端末において更新用データ記憶部713に記憶された更新用データによってデータ更新を行った回数を表す更新回数722と、この端末識別子を持つ端末において前記更新用データによってデータ更新の実行が許可された回数を表す上限回数723とを含むデータ構造を持つものとする。 次に、図11を参照して、第3の実施形態のデータ更新システム701の動作について説明する。
The update count data storage unit 712 stores update count data for each terminal identifier. That is, the update count data includes a terminal identifier 721, an update count 722 indicating the number of times data update has been performed by the update data stored in the update
図11は、外部記憶媒体703内の更新用データ記憶部713に記憶された更新用データを用いて、端末702内の端末内データ記憶部704に記憶された更新前データを更新する場合の動作手順を示すフローチャートである。
FIG. 11 shows an operation when the pre-update data stored in the in-terminal
端末(データ更新装置)702の制御部706がデータ更新処理を開始すると(ステップS801)、端末内データ読み書き部708が端末識別子記憶部714に記憶されている端末識別子を読み込み、更新用データ読込み部709を通じて、外部記憶媒体703内の更新許可判定部710に渡す(ステップS802)。次に、更新許可判定部710は、更新回数データ記憶部712から、この端末識別子に対応した更新回数データを読み込む(ステップS803)。そして、更新許可判定部710は、この更新回数データの内容を解釈して、更新許可の有無を判定する(ステップS804)。
When the
ステップS804で更新許可がないと判定した場合は、更新許可判定部710は更新不可であることを、端末702内の更新用データ読込み部709に通知し(ステップS810)、制御部706はデータ更新を行わずに終了する(ステップS811)。
If it is determined in step S804 that there is no update permission, the update
一方、ステップS804で更新許可があると判定した場合は、更新回数更新部711が更新回数データ記憶部712に記憶された更新回数データのうちの、当該端末識別子に対応した部分を更新する(ステップS805)。そして、更新許可判定部710は更新用データ記憶部713から更新用データを読み出し、更新用データ読込み部709へ渡す(ステップS806)。
On the other hand, when it is determined in step S804 that the update is permitted, the update
次に、端末702内の更新後データ復元部707は、更新用データ読込み部709から更新用データを受け取り、端末内データ読み書き部708から端末内データ記憶部704に記憶された更新前データを受け取る(ステップS807)。そして、更新後データ復元部707は、更新前データと更新用データとから更新後データを復元する(ステップS808)。次いで、この更新後データを端末内データ読み書き部708により端末内データ記憶部704へ書き込み(ステップS809)、制御部706がデータ更新処理を終了する(ステップS811)。
Next, the post-update
なお、上記第3の実施形態の動作において、ステップS804における更新許可有無の判定動作は、図4により説明した第1の実施形態と同様である。 In the operation of the third embodiment, the operation for determining whether or not update is permitted in step S804 is the same as that of the first embodiment described with reference to FIG.
このように、第3の実施形態では、端末702内に端末識別子記憶部714を備え、外部記憶媒体703では、更新回数データを端末識別子ごとに記憶するデータ構造としたことにより、データ更新を可能とする回数を端末識別子ごとに細かく制限することができる。
As described above, in the third embodiment, the terminal
(第4の実施形態)
図12は、本発明の第4の実施形態に係るデータ更新システムの機能構成を示すブロック図である。第4の実施形態のデータ更新システム901は、第1の実施形態と同様に、更新対象のデータが記憶され、更新用データを用いて自装置内に記憶されたデータの更新処理を行うデータ更新装置を含む端末902と、端末902のデータを更新するための更新用データを記憶した外部記憶媒体903とを有して構成される。
(Fourth embodiment)
FIG. 12 is a block diagram showing a functional configuration of a data update system according to the fourth embodiment of the present invention. As in the first embodiment, the
端末902は、端末902の更新前データ及び更新後データを記憶する端末内データ記憶部904と、端末902の全体の制御を行う制御部906と、更新前データと更新用データの両方、もしくは更新用データのみから更新後データを復元する更新後データ復元部907と、端末内データ記憶部904に記憶されているデータの読み出しと書き込みを行う端末内データ読み書き部908と、外部記憶媒体903から更新用データを読み込む更新用データ読込み部909と、更新後データ復元部907によって復元した更新後データが正しく復元されているかどうかを判定する復元結果判定部(復元結果判定手段の一例に相当する)914とを備えている。前記端末内データ読み書き部908は、更新後データ書込み手段の機能を有している。
The terminal 902 includes an in-terminal data storage unit 904 that stores pre-update data and post-update data of the terminal 902, a
また、外部記憶媒体903は、更新回数データから更新許可の有無を判定する更新許可判定部910と、端末902がデータ更新を行ったときに更新回数データを更新する更新回数更新部911と、更新回数データを記憶する更新回数データ記憶部912と、更新用データを記憶した更新用データ記憶部913とを備えている。なお、外部記憶媒体903に記憶された更新用データは、更新前データと更新後データとの差分データと、更新後データの復元結果を判定するための判定用データとからなるものとする。
Further, the
次に、図13を参照して、第4の実施形態のデータ更新システム901の動作について説明する。
Next, the operation of the
図13は、外部記憶媒体903内の更新用データ記憶部913に記憶された更新用データを用いて、端末902内の端末内データ記憶部904に記憶された更新前データを更新する場合の動作手順を示すフローチャートである。
FIG. 13 shows an operation when the pre-update data stored in the in-terminal data storage unit 904 in the terminal 902 is updated using the update data stored in the update
端末(データ更新装置)902の制御部906がデータ更新処理を開始すると(ステップS1001)、まず、外部記憶媒体903内の更新許可判定部910が、更新回数データ記憶部912から、更新回数データを読み込む(ステップS1002)。次に、更新許可判定部910は、この更新回数データの内容を解釈して、更新許可の有無を判定する(ステップS1003)。
When the
ステップS1003で更新許可がないと判定した場合は、更新許可判定部910は更新不可であることを、端末902内の更新用データ読込み部909に通知し(ステップS1010)、制御部906はデータ更新を行わずに終了する(ステップS1011)。
If it is determined in step S1003 that there is no update permission, the update
一方、ステップS1003で更新許可があると判定した場合は、更新回数更新部911が更新回数データ記憶部912に記憶された更新回数データを更新する(ステップS1004)。そして、更新許可判定部910は更新用データ記憶部913から更新用データを読み出し、更新用データ読込み部909へ渡す(ステップS1005)。
On the other hand, if it is determined in step S1003 that the update is permitted, the update
次に、端末902内の更新後データ復元部907は、更新用データ読込み部909から更新用データを受け取り、端末内データ読み書き部908から端末内データ記憶部904に記憶された更新前データを受け取る(ステップS1006)。そして、更新後データ復元部907は、更新前データと更新用データとから更新後データを復元する(ステップS1007)。その後、復元結果判定部914は、判定用データと復元された更新後データとから、復元された更新後データの正当性を判定する(ステップS1008)。
Next, the post-update
ステップS1008で復元結果が正当なものであると判定された場合は、端末内データ読み書き部908がこの更新後データを端末内データ記憶部904へ書き込み(ステップS1009)、制御部906がデータ更新処理を終了する(ステップS1011)。一方、データ復元処理において障害等が発生し、ステップS1008で復元結果が不当なものであると判定された場合は、制御部906はデータ更新を行わずに終了する(ステップS1011)。
If it is determined in step S1008 that the restoration result is valid, the in-terminal data read /
なお、上記第4の実施形態において、用いられる更新回数データのデータ構造は、図3に示した第1の実施形態と同様であるものとする。また、上記第4の実施形態の動作において、ステップS1003における更新許可有無の判定動作は、図4により説明した第1の実施形態と同様である。 Note that in the fourth embodiment, the data structure of the update count data used is the same as that of the first embodiment shown in FIG. In the operation of the fourth embodiment, the operation for determining whether or not update is permitted in step S1003 is the same as that of the first embodiment described with reference to FIG.
また、上記のステップS1008における復元結果の判定動作、及びこのステップで参照される判定用データの構造については、広く一般に行われている誤り検出の手法(チェックサム、CRC、パリティチェック等)により実現することが可能である。 Further, the restoration result judgment operation in step S1008 and the structure of the judgment data referred to in this step are realized by widely used error detection methods (checksum, CRC, parity check, etc.). Is possible.
このように、第4の実施形態では、端末902内に復元結果判定部914を備え、更新用データに設けられる復元結果の判定用データを用いて、復元した更新後データの正当性を判定してから端末内データ記憶部904に書き込むことによって、更新後データの復元に失敗した場合に不当なデータを書き込むことを防止できる。
As described above, in the fourth embodiment, the restoration
(第5の実施形態)
図14は、本発明の第5の実施形態に係るデータ更新システムの機能構成を示すブロック図である。第5の実施形態のデータ更新システム1501は、第1の実施形態と同様に、更新対象のデータが記憶され、更新用データを用いて自装置内に記憶されたデータの更新処理を行うデータ更新装置を含む端末1502と、端末1502のデータを更新するための更新用データを記憶した外部記憶媒体1503とを有して構成される。
(Fifth embodiment)
FIG. 14 is a block diagram showing a functional configuration of a data update system according to the fifth embodiment of the present invention. As in the first embodiment, the
端末1502は、更新前データ及び更新後データを記憶する端末内データ記憶部1504と、端末全体の制御を行う制御部1506と、更新前データと更新用データの両方、もしくは更新用データのみから更新後データを復元する更新後データ復元部1507と、端末内データ記憶部1504に記憶されているデータの読み出しと書き込みを行う端末内データ読み書き部1508と、外部記憶媒体1503から更新用データを読み込む更新用データ読込み部1509と、更新回数データから更新許可の有無を判定する更新許可判定部1510と、端末1502がデータ更新を行ったときに更新回数データを更新する更新回数更新部1511と、現在の日時を記憶する現在日時記憶部1521と、更新可能な期間を記憶する更新可能期間記憶部1522とを備えている。
The terminal 1502 is updated from an in-terminal
また、外部記憶媒体1503は、更新回数データを記憶する更新回数データ記憶部1512と、更新用データを記憶した更新用データ記憶部1513とを備えている。
The
次に、図15を参照して、第5の実施形態のデータ更新システム1501の動作について説明する。
Next, the operation of the
図15は、外部記憶媒体1503内の更新用データ記憶部1513に記憶された更新用データを用いて、端末1502内の端末内データ記憶部1504に記憶された更新前データを更新する場合の動作手順を示すフローチャートである。
FIG. 15 shows an operation when the pre-update data stored in the terminal
端末(データ更新装置)1502の制御部1506がデータ更新処理を開始すると(ステップS1601)、まず、端末1502内の更新許可判定部1510が、更新可能期間記憶部1522から読み出した更新可能期間と、現在日時記憶部1521から読み出した現在日時とに基づき、現在日時が更新期間内であるかを判定する(ステップS1602)。ステップS1602で更新期間外であると判定した場合は、更新許可判定部1510は更新不可であることを、端末1502内の更新用データ読込み部1509に通知し(ステップS1610)、制御部1506はデータ更新を行わずに終了する(ステップS1611)。
When the
一方、ステップS1602で更新期間内であると判定した場合は、更新許可判定部1510は、外部記憶媒体1503内の更新回数データ記憶部1512から、更新回数データを読み込む(ステップS1603)。次に、更新許可判定部1510は、この更新回数データの内容を解釈して、更新許可の有無を判定する(ステップS1604)。
On the other hand, if it is determined in step S1602 that it is within the update period, the update
ステップS1604で更新許可がないと判定した場合は、上記更新期間外である場合と同様にステップS1610に進み、更新許可判定部1510は端末1502内の更新用データ読込み部1509に更新不可であることを通知し、制御部1506はデータ更新を行わずに終了する(ステップS1611)。
If it is determined in step S1604 that there is no update permission, the process proceeds to step S1610 as in the case where the update period is out, and the update
一方、ステップS1604で更新許可があると判定した場合は、更新回数更新部1511が更新回数データ記憶部1512に記憶された更新回数データを更新する(ステップS1605)。そして、更新許可判定部1510は更新用データ記憶部1513から更新用データを読み出し、更新用データ読込み部1509へ渡す(ステップS1606)。
On the other hand, if it is determined in step S1604 that the update is permitted, the update
次に、端末1502内の更新後データ復元部1507は、更新用データ読込み部1509から更新用データを受け取り、端末内データ読み書き部1508から端末内データ記憶部1504に記憶された更新前データを受け取る(ステップS1607)。そして、更新後データ復元部1507は、更新前データと更新用データとから更新後データを復元する(ステップS1608)。次いで、この更新後データを端末内データ読み書き部1508により端末内データ記憶部1504へ書き込み(ステップS1609)、制御部1506がデータ更新処理を終了する(ステップS1611)。
Next, the post-update
この第5の実施形態では、更新可能期間が設定可能であり、更新可能期間記憶部1522に記憶した更新可能期間外では更新ができないようになっている。また、更新可能期間外に不正に更新できないようにするため、現在日時が変更された場合は、現在日時記憶部1521における現在日時の変更と連動して更新可能期間記憶部1522の更新可能期間も変更する機能を有している。例えば、「更新可能期間が15時までで現在日時が16時であるときに、時計を2時間戻すことによってあと1時間更新可能にする」というような不正を防ぐために、現在日時を2時間戻したら更新可能期間も2時間戻すような時間変更動作を行う。
In the fifth embodiment, an updatable period can be set, and updating is not possible outside the updatable period stored in the updatable
このように更新可能期間を設定することによって、所定の期間のみ更新可能なように更新期間を制限することが可能となる。また、現在日時の変更に連動して更新可能期間を変更することによって、現在日時の変更による不正な更新を防止することが可能である。更新可能期間を端末側において保持する例としては、端末購入時やソフトウェアのインストール時などに、契約等に応じて一定期間はソフトウェア更新を無料で受けられる設定を記憶させておくような場合等に適用可能である。 By setting the updatable period in this way, it is possible to limit the update period so that only a predetermined period can be updated. Further, by changing the updatable period in conjunction with the change of the current date and time, it is possible to prevent unauthorized updating due to the change of the current date and time. An example of holding the renewable period on the terminal side is when storing settings that allow free software updates for a certain period of time, depending on the contract, etc., at the time of terminal purchase or software installation, etc. Applicable.
なお、第5の実施形態の変形例として、更新許可判定部1510、更新回数更新部1511、現在日時記憶部1521、更新可能期間記憶部1522を外部記憶媒体側に設けるような構成とすることも可能である。図16は第5の実施形態の変形例の構成を示すブロック図である。この変形例のデータ更新システム1501Aは、端末1502Aと外部記憶媒体1503Aとを有して構成され、外部記憶媒体1503Aにおいて更新許可判定部1510、更新回数更新部1511、現在日時記憶部1521、更新可能期間記憶部1522を備えている。その他の構成は図14に示した第5の実施形態と同様である。このように更新許可判定部1510、更新回数更新部1511、現在日時記憶部1521、更新可能期間記憶部1522を外部記憶媒体側に設けた場合であっても、上記と同様の機能を実現できる。更新可能期間を外部記憶媒体側において保持する例としては、更新用データの購入が、「更新用データを1ヶ月間使用できる権利を買う」というような形で行われるときに、1ヶ月という期間を更新用データとともに媒体に記憶させるような場合等に適用可能である。
As a modification of the fifth embodiment, an update
なお、本発明は上述した実施形態に何ら限定されるものではなく、その要旨を逸脱しない範囲において、種々の態様で実施し得る。 The present invention is not limited to the above-described embodiment, and can be implemented in various modes without departing from the scope of the invention.
第1、第2及び第4の実施形態では、更新回数データの構造は、図3に示すような例を用いて説明したが、今までに更新を行った回数が更新してよい上限回数に達しているか否かを知ることができるデータ構造であれば、他のデータ構造を用いてもよい。例えば、更新許可された回数だけを保持するようなデータ構造とし、データ更新を行うたびにこの許可回数を減らして行き、回数が0になったら、以降は更新を許可しないようにしてもよい。 In the first, second, and fourth embodiments, the structure of the update count data has been described using an example as shown in FIG. 3, but the number of updates performed so far is the upper limit that can be updated. Other data structures may be used as long as the data structure can know whether or not it has been reached. For example, the data structure may be configured to hold only the number of times that updating is permitted, and the number of times of permission may be reduced each time data is updated, and after that the number of times becomes 0, updating may not be permitted.
また、第3の実施形態では、更新回数データの構造は、図10に示すような端末識別子721、更新回数722、上限回数723を含む例を用いて説明したが、各々の端末識別子について上限回数に達しているか否かを知ることができるデータ構造であれば、他のデータ構造を用いてもよい。また、端末識別子は、個々の端末を一意に特定できるように付与してもよいし、複数の端末に同一の端末識別子を付与してもよい。 Further, in the third embodiment, the structure of the update count data has been described using an example including the terminal identifier 721, the update count 722, and the upper limit count 723 as shown in FIG. 10, but the upper limit count for each terminal identifier. Any other data structure may be used as long as the data structure can know whether or not the above has been reached. The terminal identifier may be assigned so that each terminal can be uniquely specified, or the same terminal identifier may be assigned to a plurality of terminals.
また、第2の実施形態では、データ更新を行うときの動作を図9のフローチャートに示すような例を用いて説明したが、次のような変形例も考えられる。例えば、図9のステップS606(更新許可有無の判定)及びステップS607(更新用データの消去)を行わず、ステップS603の更新許可有無の判定において更新許可なしと判定されたときに、更新用データを消去するような動作としてもよい。 In the second embodiment, the operation for updating data has been described using the example shown in the flowchart of FIG. 9, but the following modification is also conceivable. For example, step S606 (determination of whether or not update is permitted) and step S607 (deletion of update data) in FIG. 9 are not performed, and the update data is determined when it is determined that there is no update permission in the determination of whether or not update is permitted in step S603. The operation may be performed to erase.
また、第4の記実施形態では、データ更新を行うときの動作を図13のフローチャートに示すような例を用いて説明したが、この変形例として、例えば、ステップS1008の復元結果の判定において復元結果が不当だと判定されたときに、すぐ処理を終了せず、再度データの復元を試みるようにしてもよい。 Further, in the fourth embodiment, the operation when data update is performed has been described using an example as shown in the flowchart of FIG. 13, but as a modified example, for example, restoration is performed in determination of the restoration result in step S1008. When it is determined that the result is invalid, the process may not be terminated immediately, and data restoration may be attempted again.
また、第1ないし第4の実施形態では、更新用データと更新前データとから更新後データを復元するように説明したが、更新用データのみを用いて更新後データを復元するような更新後データ復元方法を用いることも可能である。また、更新用データが、更新後データそのものであってもよい。 In the first to fourth embodiments, the post-update data is restored from the update data and the pre-update data. However, the post-update data is restored using only the update data. It is also possible to use a data restoration method. Further, the update data may be the updated data itself.
上述したように、本実施形態では、データ更新のために配布する外部記憶媒体に更新用データと共に更新回数データを設け、更新用データを用いてデータ更新を行った際に更新回数更新部により更新回数データを更新しながら、更新許可判定部によりデータ更新を行った回数の判定を行い、更新回数が所定の回数に達したときには更新許可がないと判定し、更新許可がない場合には更新後データ復元部に更新用データを読み込ませないようにしている。これにより、更新用データの配布元でデータ更新を行える回数を制限することができる。 As described above, in the present embodiment, update number data is provided together with update data on an external storage medium distributed for data update, and is updated by the update number update unit when data update is performed using the update data. While updating the number of times data, the update permission determination unit determines the number of times the data has been updated. When the number of updates reaches a predetermined number, it is determined that there is no update permission. The data restoration unit is prevented from reading update data. As a result, the number of times data can be updated at the distribution source of the update data can be limited.
また、データ更新を所定の許可回数だけ行った後に、更新用データを消去することにより、不正な手段により更新用データを読み出されることを防止できる。これにより、データ更新の回数制限に加えて、さらにデータ更新に関する管理機能を強化できる。 In addition, it is possible to prevent the update data from being read out by unauthorized means by deleting the update data after performing the data update a predetermined number of times. As a result, in addition to limiting the number of data updates, the management function related to data update can be further strengthened.
また、端末識別子を設け、端末識別子ごとにデータ更新回数を判定することによって、端末やユーザごとにデータ更新回数を制限、管理することができる。これにより、データ更新可能な回数内であっても、正規のユーザ以外にはデータ更新を行うことができないようにすることが可能である。 Also, by providing a terminal identifier and determining the number of data updates for each terminal identifier, the number of data updates can be limited and managed for each terminal or user. Thereby, even within the number of times that data can be updated, it is possible to prevent data update by anyone other than an authorized user.
また、復元した更新後データの正当性を判定し、復元結果が正しいと判定された場合にのみ、更新後データを書き込むことによって、データ復元時に障害等が発生して更新後データが正しく復元されていなかった場合に、正しくないデータを書き込んでしまい端末が正常に動作しなくなるなどの不具合の発生を防止できる。 In addition, by judging the validity of the restored post-update data and writing the post-update data only when the restoration result is judged to be correct, a failure or the like occurs at the time of data restoration and the post-update data is restored correctly. If this is not the case, it is possible to prevent problems such as writing incorrect data and causing the terminal to not operate normally.
本発明は、可搬型記憶媒体に記憶した更新用データを配布してデータの更新を行う場合に、更新用データの配布元においてデータ更新可能な回数を任意に制限することができる効果を有し、電子装置におけるプログラム等のデータを更新するデータ更新システム、データ更新装置及び外部記憶媒体等に有用である。 The present invention has an effect of arbitrarily limiting the number of times data can be updated at the distribution source of the update data when the update data stored in the portable storage medium is distributed and the data is updated. It is useful for a data update system for updating data such as a program in an electronic device, a data update device, an external storage medium, and the like.
101、501、701、901、1501 データ更新システム
102、502、702、902、1502 端末(データ更新装置)
103、503、703、903、1503 外部記憶媒体
104、504、704、904、1504 端末内データ記憶部
106、506、706、906、1506 制御部
107、507、707、907、1507 更新後データ復元部
108、508、708、908、1508 端末内データ読み書き部
109、509、709、909、1509 更新用データ読込み部
110、510、710、910、1510 更新許可判定部
111、511、711、911、1511 更新回数更新部
112、512、712、912、1512 更新回数データ記憶部
113、513、713、913、1513 更新用データ記憶部
131 更新回数記憶部
132 上限回数記憶部
151 更新回数データ設定装置
152 上限回数設定部
153 更新回数設定部
154 更新回数データ書込み部
161 更新用データ書込み装置
162 データ記憶部
163 更新用データ生成部
164 更新用データ書込み部
301 更新回数
302 上限回数
514 更新用データ消去部
714 端末識別子記憶部
914 復元結果判定部
1521 現在日時記憶部
1522 更新可能期間記憶部
101, 501, 701, 901, 1501
103, 503, 703, 903, 1503
Claims (18)
前記更新用データを用いてデータ更新を行うことが可能な回数に関する情報を含む更新回数データを記憶する更新回数データ記憶手段と、
前記更新回数データに基づき、前記電子装置におけるデータ更新処理を行うデータ更新装置によりデータを更新する際のデータ更新許可の有無を判定する更新許可判定手段と、
前記データ更新許可に基づき、前記更新用データを読み込む更新用データ読込み手段と、
前記データ更新許可によって前記更新用データが前記データ更新装置に読み取られた際に、前記更新回数データを更新する更新回数更新手段と、
前記更新用データと更新前データの両方または前記更新用データのみを用いて更新後データを復元する更新後データ復元手段と
を備えるデータ更新システム。 A data update system for updating data in an electronic device using update data stored in a portable storage medium,
Update number data storage means for storing update number data including information on the number of times data can be updated using the update data;
Update permission determination means for determining whether or not data update is permitted when data is updated by a data update device that performs data update processing in the electronic device based on the update count data;
Update data reading means for reading the update data based on the data update permission;
Update number update means for updating the update number data when the data for update is read by the data update device by the data update permission;
A data update system comprising post-update data restoring means for restoring post-update data using both the update data and pre-update data or only the update data.
前記更新許可判定手段によりデータ更新許可がないと判定された場合に、前記更新用データを消去する更新用データ消去手段を備えるデータ更新システム。 The data update system according to claim 1,
A data update system comprising update data erasure means for erasing the update data when the update permission judgment means judges that data update permission is not given.
前記データ更新装置を識別するための装置識別子を記憶する識別子記憶手段を備え、
前記更新回数データ記憶手段は、前記装置識別子ごとにそれぞれ前記更新回数データを記憶するデータ更新システム。 The data update system according to claim 1,
Comprising identifier storage means for storing a device identifier for identifying the data updating device;
The update count data storage means stores the update count data for each device identifier.
前記更新回数データ記憶手段は、前記データ更新装置によりデータ更新を行った更新回数を示す情報と前記データ更新が許可された上限回数を示す情報とを含む更新回数データを記憶するデータ更新システム。 The data update system according to claim 1 or 3,
The update count data storage means stores update count data including information indicating the number of updates in which data update has been performed by the data update device and information indicating the upper limit count for which the data update is permitted.
前記更新許可判定手段と前記更新回数更新手段とを前記可搬型記憶媒体に備えるデータ更新システム。 A data update system according to any one of claims 1 to 4,
A data update system comprising the update permission determination means and the update count update means in the portable storage medium.
前記更新後データ復元手段により復元された更新後データの正当性を判定する復元結果判定手段と、
前記復元結果の判定に基づいて、前記更新後データの書き込みを行う更新後データ書込み手段と
を備えるデータ更新システム。 A data update system according to any one of claims 1 to 5,
A restoration result judging means for judging the validity of the updated data restored by the updated data restoring means;
A data update system comprising post-update data writing means for writing the post-update data based on the determination of the restoration result.
前記更新用データは、前記更新前データと前記更新後データとの差分データを含むデータ更新システム。 A data update system according to any one of claims 1 to 6,
The update data includes a difference data between the pre-update data and the post-update data.
前記電子装置におけるデータ更新処理を行うデータ更新装置に対して接続、分離可能に構成され、
前記更新用データを記憶する更新用データ記憶手段と、
前記更新用データを用いてデータ更新を行うことが可能な回数に関する情報を含む更新回数データを記憶する更新回数データ記憶手段と、
前記更新回数データに基づき、前記データ更新装置によりデータを更新する際のデータ更新許可の有無を判定する更新許可判定手段と、
前記データ更新許可によって前記更新用データが前記データ更新装置に読み取られた際に、前記更新回数データを更新する更新回数更新手段と
を備える外部記憶媒体。 An external storage medium in a data update system for updating data in an electronic device using update data,
It is configured to be connectable and separable to a data update device that performs data update processing in the electronic device,
Update data storage means for storing the update data;
Update number data storage means for storing update number data including information on the number of times data can be updated using the update data;
Update permission determination means for determining presence or absence of data update permission when updating data by the data update device based on the update count data;
An external storage medium comprising update number update means for updating the update number data when the data for update is read by the data update device with the data update permission.
前記更新許可判定手段によりデータ更新許可がないと判定された場合に、前記更新用データを消去する更新用データ消去手段を備える外部記憶媒体。 An external storage medium in the data update system according to claim 8,
An external storage medium comprising update data erasure means for erasing the update data when the update permission judgment means judges that data update permission is not given.
前記更新回数データ記憶手段は、前記データ更新装置を識別するための装置識別子ごとにそれぞれ前記更新回数データを記憶する外部記憶媒体。 An external storage medium in the data update system according to claim 8,
The update count data storage means is an external storage medium that stores the update count data for each device identifier for identifying the data update device.
前記更新回数データ記憶手段は、前記データ更新装置によりデータ更新を行った更新回数を示す情報と前記データ更新が許可された上限回数を示す情報とを含む更新回数データを記憶する外部記憶媒体。 An external storage medium in the data update system according to claim 8 or 10,
The update number data storage means is an external storage medium for storing update number data including information indicating the number of updates performed by the data update device and information indicating an upper limit number of times the data update is permitted.
前記更新用データを記憶する外部記憶媒体を接続可能に構成され、
前記外部記憶媒体におけるデータ更新許可に基づき、前記更新用データを読み込む更新用データ読込み手段と、
前記更新用データと更新前データの両方または前記更新用データのみを用いて更新後データを復元する更新後データ復元手段と
を備えるデータ更新装置。 A data update device in a data update system for updating data in an electronic device using update data,
An external storage medium that stores the update data is configured to be connectable,
Update data reading means for reading the update data based on data update permission in the external storage medium;
A data updating apparatus comprising: an after-update data restoring unit that restores after-update data using both the update data and the pre-update data or only the update data.
自装置を識別するための装置識別子を記憶する識別子記憶手段を備えるデータ更新装置。 A data update device in a data update system according to claim 13,
A data update device comprising identifier storage means for storing a device identifier for identifying the device itself.
前記更新後データ復元手段により復元された更新後データの正当性を判定する復元結果判定手段と、
前記復元結果の判定に基づいて、前記更新後データの書き込みを行う更新後データ書込み手段と
を備えるデータ更新装置。 A data update device in a data update system according to claim 13,
A restoration result judging means for judging the validity of the updated data restored by the updated data restoring means;
A data updating apparatus comprising: an updated data writing unit that writes the updated data based on the determination of the restoration result.
前記更新用データを用いてデータ更新を行うことが可能な回数に関する情報を含む更新回数データに基づき、前記電子装置におけるデータ更新処理を行うデータ更新装置によりデータを更新する際のデータ更新許可の有無を判定するステップと、
前記データ更新許可に基づき、前記更新用データを読み込むステップと、
前記データ更新許可によって前記更新用データが前記データ更新装置に読み取られた際に、前記更新回数データを更新するステップと、
前記更新用データと更新前データの両方または前記更新用データのみを用いて更新後データを復元するステップと
を有するデータ更新方法。 A data update method for updating data in an electronic device using update data stored in a portable storage medium,
Presence or absence of data update permission when updating data by a data update device that performs data update processing in the electronic device based on update number data including information on the number of times data can be updated using the update data Determining
Reading the update data based on the data update permission;
Updating the update count data when the data for update is read by the data update device with the data update permission;
And a step of restoring post-update data using both the update data and pre-update data or only the update data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004260476A JP2005108202A (en) | 2003-09-11 | 2004-09-08 | Data updating system, data updating device and external storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003319446 | 2003-09-11 | ||
JP2004260476A JP2005108202A (en) | 2003-09-11 | 2004-09-08 | Data updating system, data updating device and external storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005108202A true JP2005108202A (en) | 2005-04-21 |
Family
ID=34554319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004260476A Withdrawn JP2005108202A (en) | 2003-09-11 | 2004-09-08 | Data updating system, data updating device and external storage medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005108202A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007189374A (en) * | 2006-01-12 | 2007-07-26 | Sharp Corp | Mobile electronic apparatus |
-
2004
- 2004-09-08 JP JP2004260476A patent/JP2005108202A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007189374A (en) * | 2006-01-12 | 2007-07-26 | Sharp Corp | Mobile electronic apparatus |
JP4489026B2 (en) * | 2006-01-12 | 2010-06-23 | シャープ株式会社 | Portable electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4860619B2 (en) | Memory card, application program holding method, and holding program | |
CN102591727B (en) | Method for processing application data and computing node | |
CN102934089B (en) | Error detection for files | |
JP2005011151A (en) | Memory card | |
US20080320245A1 (en) | Method for writing data of an atomic transaction to a memory device | |
JP4680686B2 (en) | Storage medium for computer terminal | |
WO2005088448A1 (en) | Method and apparatus for reliable in-place update | |
JP2009064159A (en) | Computer system, management computer, and data management method | |
WO2005026924A1 (en) | Data update system, data update device and external storage medium | |
JP2003216511A (en) | Non-volatile memory device, data updating method, data updating program and computer readable recording medium with recorded program | |
JP2008225672A (en) | Semiconductor memory device | |
JP2005108202A (en) | Data updating system, data updating device and external storage medium | |
JPWO2005041050A1 (en) | Recording medium, data processing apparatus, and data processing method | |
US8365296B2 (en) | Information processing apparatus, information processing method and computer readable medium having a program | |
CN102308287B (en) | Replicated file system for electronic devices | |
US20040133838A1 (en) | Method for recovering data in portable information device, portable information device, and computer product | |
JP3376331B2 (en) | Storage method using flash memory and storage medium storing storage control program | |
KR20060088654A (en) | System and method for recovering data in mobile terminal | |
JP2006065503A (en) | Recording medium storing right information, information processor, and method for managing right information | |
JP2008152593A (en) | Information terminal equipment | |
JP2010009553A (en) | Information processor, information processing method, and information processing program | |
JP3818130B2 (en) | Data management method and apparatus, data management program, and storage medium storing data management program | |
US20070274302A1 (en) | Data Storage Device, Memory Managing Method, and Program | |
KR100922102B1 (en) | Method for upgrade and backup in mobile terminal | |
JP2006139341A (en) | Nonvolatile memory system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060314 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060327 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20071107 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20071113 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20071120 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20080213 |