JPH0793194A - Data update method and IC card - Google Patents
Data update method and IC cardInfo
- Publication number
- JPH0793194A JPH0793194A JP5241095A JP24109593A JPH0793194A JP H0793194 A JPH0793194 A JP H0793194A JP 5241095 A JP5241095 A JP 5241095A JP 24109593 A JP24109593 A JP 24109593A JP H0793194 A JPH0793194 A JP H0793194A
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage area
- index
- area
- input
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】
【目的】第1の記憶領域と第2の記憶領域とを交互に使
用することにより、前払い金データあるいは課金データ
のような更新データを保護するデータ更新方式を提供す
る。
【構成】入出力手段11と、2つのデータから1つのデ
ータを出力する演算手段13と、データを記憶する2つ
の記憶領域15および16と、この2つの記憶領域の何
れかの記憶領域を示す指標を記憶するフラグ領域14
と、この指標によりデータを制御するデータ管理手段1
2とから構成され、フラグ領域14に記憶している指標
で示す記憶領域のデータと入出力手段11より得たデー
タとを演算手段13に送り、そのデータを指標で示す記
憶領域と反対の記憶領域に記録し、かつ正常に記録した
場合にのみ、指標をフラグ領域14に記録する。
(57) [Summary] [Object] To provide a data updating method for protecting update data such as advance payment data or billing data by alternately using the first storage area and the second storage area. [Structure] Input / output means 11, arithmetic means 13 for outputting one data from two data, two storage areas 15 and 16 for storing data, and one of these two storage areas are shown. Flag area 14 for storing the index
And a data management means 1 for controlling data by this index
2 and the data in the storage area indicated by the index stored in the flag area 14 and the data obtained from the input / output means 11 are sent to the arithmetic means 13, and the data is stored opposite to the storage area indicated by the index. The index is recorded in the flag area 14 only when it is recorded in the area and normally.
Description
【0001】[0001]
【産業上の利用分野】本発明は、前払い金データあるい
は課金データのように常に更新がなされるデータ(以
後、更新データと呼ぶ)を保護するデータ更新方式およ
びICカードに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data update system and an IC card for protecting data that is constantly updated (hereinafter referred to as update data) such as advance payment data or billing data.
【0002】[0002]
【従来の技術】課金データを磁気カードなどの記録媒体
に記録する場合、記憶容量が大きければ複数の記憶領域
を設け更新履歴を全て記録するが、記憶容量が小さけれ
ばひとつの記憶領域の中で課金データの更新を行ってい
く。ここでは、記憶容量が限られた後者の場合のデータ
更新方式について説明する。2. Description of the Related Art When billing data is recorded on a recording medium such as a magnetic card, a plurality of storage areas are provided if the storage capacity is large and all update history is recorded. Update the billing data. Here, a data update method in the latter case where the storage capacity is limited will be described.
【0003】図4は従来のデータ更新方式の構成図であ
る。60は磁気カードなどの情報記憶媒体、51は入出
力手段、52は読み出し手段、53は書き込み手段、5
4は演算手段および55は記録媒体60の中のひとつの
記憶領域である。50は少なくとも51から54で構成
され、記録媒体60を受け入れることが可能な情報処理
端末である。FIG. 4 is a block diagram of a conventional data updating method. Reference numeral 60 is an information storage medium such as a magnetic card, 51 is an input / output unit, 52 is a reading unit, 53 is a writing unit, 5
Reference numeral 4 is a calculation means, and 55 is one storage area in the recording medium 60. Reference numeral 50 is an information processing terminal configured to include at least 51 to 54 and capable of receiving the recording medium 60.
【0004】情報処理端末50が記憶領域55のデータ
を読み出す場合、読み出し手段52が記憶領域55から
データを読み出し、入出力手段51に引き渡す。When the information processing terminal 50 reads the data in the storage area 55, the reading means 52 reads the data from the storage area 55 and delivers it to the input / output means 51.
【0005】情報処理端末50が記憶領域55にデータ
書き込む場合、書き込み手段53が入出力手段51より
得たデータと記憶領域55のデータとを演算手段54に
引き渡し、演算手段54より得た結果を記憶領域55に
上書きする。ここで処理されるデータが課金データの場
合、演算手段54は入出力手段51より得たデータと記
憶領域55のデータとを加算し、この結果を出力する。
また、一般的な前払いシステム(以後、プリペイドシス
テムと呼ぶ)の演算手段54は記憶領域55のデータか
ら入出力手段51より得たデータを減算し、この結果を
出力する。When the information processing terminal 50 writes data in the storage area 55, the writing means 53 delivers the data obtained from the input / output means 51 and the data in the storage area 55 to the arithmetic means 54, and the result obtained from the arithmetic means 54 is obtained. Overwrite the storage area 55. When the data processed here is billing data, the calculation means 54 adds the data obtained from the input / output means 51 and the data in the storage area 55, and outputs the result.
Further, the calculation means 54 of a general prepaid system (hereinafter referred to as a prepaid system) subtracts the data obtained from the input / output means 51 from the data in the storage area 55 and outputs the result.
【0006】前述した更新履歴を全て記録する場合、デ
ータの読み出しおよび書き込みにあたって、最後に更新
されたデータの検索処理が必要であるが、このデータ更
新方式は、記憶領域がひとつであるため検索処理はもち
ろん無く、記憶容量の限定された記憶媒体において簡便
なものである。When all the above-mentioned update histories are recorded, a search process for the last updated data is necessary when reading and writing the data, but this data update method has a single storage area, so the search process is performed. Of course, it is simple in a storage medium having a limited storage capacity.
【0007】また、最近ではデータを複数の記憶領域に
同時に記憶し、その中のひとつの記憶領域で書き込み異
常を起こした場合でも、他の記憶領域にデータが存在し
ているため、以後の処理が存続できるようにした携帯可
能電子装置が検討されている。Further, recently, even if data is stored in a plurality of storage areas at the same time and a write error occurs in one of the storage areas, the data is still present in the other storage areas, and therefore the subsequent processing is performed. Are being considered for portable electronic devices.
【0008】[0008]
【発明が解決しようとする課題】更新データを記憶容量
が限られた記憶媒体のひとつの記憶領域へ記録する従来
のデータ更新方式では、データを記録している途中で記
憶媒体が情報処理端末から無理矢理に引き抜かれた場
合、記憶領域に記録したデータは異常なデータである可
能性が高い。また、データを複数の記憶領域に同時に記
憶する方式についても、余分な処理時間が増えるという
問題点があった。In the conventional data update method of recording update data in one storage area of a storage medium having a limited storage capacity, the storage medium is transferred from the information processing terminal while the data is being recorded. If the data is forcibly pulled out, the data recorded in the storage area is likely to be abnormal data. Further, even in the method of simultaneously storing data in a plurality of storage areas, there is a problem that extra processing time increases.
【0009】本発明はかかる点に鑑み、簡便に、記憶媒
体に記憶されているデータが破壊されないようなデータ
更新方式を提供することを目的とする。SUMMARY OF THE INVENTION In view of the above points, an object of the present invention is to provide a data updating system which can easily destroy data stored in a storage medium.
【0010】[0010]
【課題を解決するための手段】本発明は上記目的を達成
するために、データの入出力を行う入出力手段と、2つ
のデータから1つのデータを出力する演算手段と、デー
タを記憶する第1の記憶領域および第2の記憶領域と、
前記第1の記憶領域あるいは前記第2の記憶領域の何れ
かの記憶領域を示す指標を記憶するフラグ領域と、前記
フラグ領域の指標によりデータを制御するデータ管理手
段とから成り、前記データ管理手段は、前記フラグ領域
の指標で示す前記第1の記憶領域あるいは前記第2の記
憶領域のデータと前記入出力手段より得たデータとを前
記演算手段に送り、前記演算手段より得たデータを前記
フラグ領域の指標で示す記憶領域と反対の前記第1の記
憶領域あるいは前記第2の記憶領域に記録し、かつ正常
に記録した場合にのみ、前記演算手段より得たデータを
記録した記憶領域を示す指標を前記フラグ領域に記録す
る。さらに前記データ管理手段は、前記フラグ領域の指
標で示す前記第1の記憶領域あるいは前記第2の記憶領
域のデータを取り出し前記入出力手段に送ることを特徴
とするものである。In order to achieve the above object, the present invention provides an input / output means for inputting / outputting data, an arithmetic means for outputting one data from two data, and a data storing means. A first storage area and a second storage area;
The data management means comprises a flag area for storing an index indicating any one of the first storage area and the second storage area, and a data management means for controlling data according to the index of the flag area. Sends the data of the first storage area or the second storage area indicated by the index of the flag area and the data obtained from the input / output means to the arithmetic means, and the data obtained from the arithmetic means Only when the data is recorded in the first storage area or the second storage area opposite to the storage area indicated by the index of the flag area and normally recorded, The indicated index is recorded in the flag area. Further, the data management means is characterized in that the data of the first storage area or the second storage area indicated by the index of the flag area is taken out and sent to the input / output means.
【0011】[0011]
【作用】このように第1の記憶領域と第2の記憶領域と
を交互に使用することにより、前払い金データあるいは
課金データのような更新データを保護することが可能で
ある。By alternately using the first storage area and the second storage area in this way, it is possible to protect update data such as advance payment data or billing data.
【0012】[0012]
【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。図1は本発明のデータ更新方式の構
成図である。11は入出力手段、12はデータ管理手
段、13は演算手段であり、情報処理端末等(図示せ
ず)の構成要素である。また、14はフラグ領域、15
は記憶領域Aおよび16は記録領域Bであり、ICカー
ドの書き換え可能な不揮発性メモリあるいは磁気カード
の磁気ストライプ上などの記録媒体に確保される。図2
は本発明の一実施例における記録媒体の構成図である。
17はフラグ領域14、記憶領域A15および記録領域
B16を有する記録媒体であり、本実施例では、記憶領
域A15に記憶しているデータをX、記憶領域B16に
記憶しているデータをYとし、フラグ領域14に記憶領
域A15を示す指標としてAあるいは記憶領域B16を
示す指標としてBが記録され、最初に指標Aが記録され
ているものとする。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of the data updating method of the present invention. Reference numeral 11 is an input / output unit, 12 is a data management unit, 13 is a calculation unit, which is a component of an information processing terminal or the like (not shown). Further, 14 is a flag area, and 15
Storage areas A and 16 are recording areas B, which are secured in a rewritable nonvolatile memory of an IC card or a recording medium such as on a magnetic stripe of a magnetic card. Figure 2
FIG. 3 is a configuration diagram of a recording medium in an embodiment of the present invention.
Reference numeral 17 denotes a recording medium having a flag area 14, a storage area A15 and a recording area B16. In the present embodiment, the data stored in the storage area A15 is X, the data stored in the storage area B16 is Y, It is assumed that A is recorded as an index indicating the storage area A15 or B is recorded as an index indicating the storage area B16 in the flag area 14, and the index A is recorded first.
【0013】入出力手段11は入力されたデータをデー
タ管理手段12に送ることができ、かつデータ管理手段
12より得たデータを出力することができる。演算手段
13は、本発明のデータ更新方式を取り入れたシステム
が課金システムの場合、入出力手段11より得たデータ
と記憶媒体17に記憶されているデータとを加算し、こ
の結果を出力する。また、プリペイドシステムの場合、
記憶媒体17に記憶されているデータから入出力手段1
1より得たデータを減算し、この結果を出力するもので
ある。The input / output means 11 can send the input data to the data management means 12 and can output the data obtained from the data management means 12. When the system incorporating the data updating method of the present invention is a billing system, the computing means 13 adds the data obtained from the input / output means 11 and the data stored in the storage medium 17, and outputs the result. Also, in the case of prepaid system,
Input / output unit 1 based on the data stored in the storage medium 17
The data obtained from 1 is subtracted, and the result is output.
【0014】図3は本発明の一実施例におけるデータ管
理手段の処理の流れ図であり、図3を用いてデータ更新
方式の説明をする。FIG. 3 is a flow chart of the processing of the data management means in one embodiment of the present invention, and the data updating method will be described with reference to FIG.
【0015】データ管理手段12が、記憶媒体17から
データを読み出すと判断した場合(ステップ31)、記
憶媒体17のフラグ領域14に記憶されている指標を読
み出し、記憶領域A15あるいは記憶領域B16の何れ
から読み出すかを判断する(ステップ33)。ここで読
み出した指標が、Aの時、記憶領域A15からデータを
読み出し、入出力手段11に送る(ステップ36)。こ
こで読み出した指標が、Bの時、記憶領域B16からデ
ータを読み出し、入出力手段11に送る(ステップ3
7)。When the data management means 12 determines that the data is read from the storage medium 17 (step 31), the index stored in the flag area 14 of the storage medium 17 is read out and either the storage area A15 or the storage area B16 is read. It is determined whether to read from (step 33). When the index read here is A, the data is read from the storage area A15 and sent to the input / output unit 11 (step 36). When the index read here is B, the data is read from the storage area B16 and sent to the input / output means 11 (step 3).
7).
【0016】データ管理手段12が、入出力手段11か
ら得たデータ(ここでは、記号Zで示す)で記憶媒体1
7のデータを更新して書き込むと判断した場合(ステッ
プ31)、記憶媒体17のフラグ領域14に記憶されて
いる指標を読み出し、記憶領域A15あるいは記憶領域
B16の何れのデータを更新するかを判断する(ステッ
プ32)。ここで読み出した指標が、Aの時、記憶領域
A15に記憶されているデータXと入出力手段11から
得たデータZを演算手段13に送り、演算手段13の演
算結果をYとして記憶領域B16に記録する(ステップ
34)。正常に書き込み、更新が終了した場合、フラグ
領域14に記憶領域B16を示す指標Bを記録する(ス
テップ38)。この書き込み途中で異常が発生し記憶領
域B16のデータが破壊されても、記憶領域A15のデ
ータ、すなわち更新前のデータは破壊されていないた
め、引き続きデータの更新処理あるいは読み出し処理を
行うことができる。また、ステップ32で読み出した指
標がBの時、記憶領域B16に記憶されているデータY
と入出力手段11から得たデータZを演算手段13に送
り、演算手段13の演算結果をXとして記憶領域A15
に記録する(ステップ35)。正常に書き込み、更新が
終了した場合、フラグ領域14に記憶領域A15を示す
指標Aを記録する(ステップ39)。この書き込み途中
で異常が発生し記憶領域A15のデータが破壊されて
も、記憶領域B16のデータ、すなわち更新前のデータ
は破壊されていないため、引き続きデータの更新処理あ
るいは読み出し処理を行うことができる。The data management means 12 uses the data (indicated here by the symbol Z) obtained from the input / output means 11 as the storage medium 1.
When it is determined that the data of 7 is updated and written (step 31), the index stored in the flag area 14 of the storage medium 17 is read and it is determined which data of the storage area A15 or the storage area B16 is updated. (Step 32). When the index read out here is A, the data X stored in the storage area A15 and the data Z obtained from the input / output means 11 are sent to the arithmetic means 13, and the arithmetic result of the arithmetic means 13 is set to Y, and the storage area B16. (Step 34). When the writing and updating are completed normally, the index B indicating the storage area B16 is recorded in the flag area 14 (step 38). Even if an error occurs during the writing and the data in the storage area B16 is destroyed, the data in the storage area A15, that is, the data before the update is not destroyed, so that the update processing or the read processing of the data can be continuously performed. . When the index read in step 32 is B, the data Y stored in the storage area B16
And the data Z obtained from the input / output unit 11 are sent to the calculation unit 13, and the calculation result of the calculation unit 13 is set as X, and the storage area A15
(Step 35). When the writing and the updating are completed normally, the index A indicating the storage area A15 is recorded in the flag area 14 (step 39). Even if an error occurs during the writing and the data in the storage area A15 is destroyed, the data in the storage area B16, that is, the data before the update is not destroyed, so that the update processing or the read processing of the data can be continuously performed. .
【0017】本実施例における記録媒体17は、従来の
技術で記載した記録領域55に相当し、フラグ領域と2
つの記憶領域が必要となるが、記憶容量としては、デー
タの更新履歴を記憶する場合と比較して制限されるもの
ではない。また、本発明のデータ更新方式では、記憶容
量が限られた記憶媒体の記憶領域にデータを記録してい
る途中で異常が生じても最新の更新データを保護するこ
とが可能となった。The recording medium 17 in this embodiment corresponds to the recording area 55 described in the prior art and includes a flag area and a recording area 2.
Although one storage area is required, the storage capacity is not limited as compared with the case where the data update history is stored. Further, according to the data updating method of the present invention, it becomes possible to protect the latest updated data even if an abnormality occurs while recording data in the storage area of the storage medium having a limited storage capacity.
【0018】[0018]
【発明の効果】以上のように本発明によれば、本発明の
データ更新方式を有するICカードとこのICカードを
受け入れることのできる情報処理端末とを用いて、安全
性の高い、すなわちICカードの記憶領域にデータを記
録している途中でICカードが情報処理端末から無理矢
理に引き抜かれた場合でもデータを保護することが可能
な、課金システムあるいはプリペイドシステムを容易に
構築できる。As described above, according to the present invention, by using the IC card having the data updating system of the present invention and the information processing terminal capable of accepting the IC card, the security is high, that is, the IC card. It is possible to easily construct a billing system or a prepaid system capable of protecting data even if the IC card is forcibly pulled out from the information processing terminal while data is being recorded in the storage area.
【0019】また、フラグ領域14、記憶領域A15お
よび記憶領域B16のみを有するICカードあるいは磁
気カードとこれらカードを受け入れることのできる情報
処理端末とを用いて構築する課金システムあるいはプリ
ペイドシステムも容易に考えられる。A billing system or a prepaid system constructed by using an IC card or a magnetic card having only the flag area 14, the storage area A15 and the storage area B16 and an information processing terminal capable of accepting these cards can be easily considered. To be
【図1】本発明のデータ更新方式の構成図FIG. 1 is a block diagram of a data updating method of the present invention.
【図2】本発明の一実施例における記録媒体の構成図FIG. 2 is a configuration diagram of a recording medium according to an embodiment of the present invention.
【図3】本発明の一実施例におけるデータ管理手段の処
理の流れ図FIG. 3 is a flowchart of the processing of the data management means in the embodiment of the present invention.
【図4】従来のデータ更新方式の構成図FIG. 4 is a block diagram of a conventional data update method.
11 入出力手段 12 データ管理手段 13 演算手段 14 フラグ領域 15 記憶領域A 16 記憶領域B 11 Input / Output Means 12 Data Management Means 13 Computing Means 14 Flag Areas 15 Storage Areas A 16 Storage Areas B
Claims (4)
のデータから1つのデータを出力する演算手段と、デー
タを記憶する第1の記憶領域および第2の記憶領域と、
前記第1の記憶領域あるいは第2の記憶領域の何れかの
記憶領域を示す指標を記憶するフラグ領域と、前記フラ
グ領域の指標によりデータを制御するデータ管理手段と
から成り、前記データ管理手段は、前記フラグ領域の指
標で示す前記第1の記憶領域あるいは第2の記憶領域の
データと前記入出力手段より得たデータとを前記演算手
段に送り、前記演算手段より得たデータを前記フラグ領
域の指標で示す記憶領域とは反対の前記第1あるいは前
記第2の記憶領域に記録し、かつ正常に記録した場合に
のみ、前記演算手段より得たデータを記録した記憶領域
を示す指標を前記フラグ領域に記録し、さらに前記デー
タ管理手段は、前記フラグ領域の指標で示す前記第1あ
るいは前記第2の記憶領域のデータを取り出し前記入出
力手段に送ることを特徴とするデータ更新方式。1. An input / output means for inputting / outputting data, an arithmetic means for outputting one data from two data, a first storage area and a second storage area for storing the data,
The data management means comprises a flag area for storing an index indicating one of the first storage area and the second storage area, and a data management means for controlling data according to the index of the flag area. The data in the first storage area or the second storage area indicated by the index of the flag area and the data obtained from the input / output means are sent to the arithmetic means, and the data obtained from the arithmetic means is sent to the flag area. The index indicating the storage area in which the data obtained from the calculating means is recorded is recorded only when the data is recorded in the first or second storage area opposite to the storage area indicated by The data is recorded in a flag area, and the data management means extracts the data in the first or second storage area indicated by the index of the flag area and sends it to the input / output means. Data update method according to claim.
Cカード。2. An I having the data updating method according to claim 1.
C card.
第2の記憶領域とを有する記録媒体と、前記記録媒体を
受け入れることが可能であり少なくとも入出力手段と演
算手段とデータ管理手段とを有する情報処理端末とから
構成されるデータ更新方式。3. A recording medium having at least a flag area, a first storage area and a second storage area, and at least an input / output means, a computing means and a data management means capable of receiving the recording medium. A data update method composed of an information processing terminal included therein.
るデータ更新方式。4. A data updating method in which the recording medium according to claim 3 is an IC card.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5241095A JPH0793194A (en) | 1993-09-28 | 1993-09-28 | Data update method and IC card |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5241095A JPH0793194A (en) | 1993-09-28 | 1993-09-28 | Data update method and IC card |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0793194A true JPH0793194A (en) | 1995-04-07 |
Family
ID=17069217
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5241095A Pending JPH0793194A (en) | 1993-09-28 | 1993-09-28 | Data update method and IC card |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0793194A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000357216A (en) * | 1999-06-15 | 2000-12-26 | Dainippon Printing Co Ltd | IC card |
-
1993
- 1993-09-28 JP JP5241095A patent/JPH0793194A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000357216A (en) * | 1999-06-15 | 2000-12-26 | Dainippon Printing Co Ltd | IC card |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0907142B1 (en) | Memory card apparatus | |
| JP2529868B2 (en) | Recording method of information recording medium | |
| JPS60205688A (en) | Portable medium | |
| JPS61211788A (en) | Ic card | |
| JPH0776983B2 (en) | IC card | |
| JP3231448B2 (en) | IC card | |
| JP2718129B2 (en) | IC card | |
| JP3088867B2 (en) | IC card | |
| JP3129865B2 (en) | Data validation method | |
| JP2524321Y2 (en) | IC card | |
| JPH04152488A (en) | IC card | |
| WO2026013236A1 (en) | Digital signature scheme | |
| JPH11353426A (en) | IC card information backup method, IC card | |
| JP2537198B2 (en) | Portable electronic devices | |
| JP2003085047A (en) | Data input device, double entry check method, and data tampering prevention system | |
| JP3054119B2 (en) | Portable electronic devices | |
| JPH0573391A (en) | Data base update system | |
| JPS63223994A (en) | Portable electronic equipment | |
| JPS63228283A (en) | Portable electronic equipment | |
| JPS63271787A (en) | Information processor | |
| JPS63228282A (en) | Portable electronic equipment | |
| JPS6225346A (en) | Electronic journal file constitution system | |
| JPS6225392A (en) | Information memory reusing system | |
| JPS63223995A (en) | Portable electronic equipment | |
| JPS6175984A (en) | Integrated circuit card |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Effective date: 20040420 Free format text: JAPANESE INTERMEDIATE CODE: A02 |