JP3586848B2 - Contactless data carrier - Google Patents

Contactless data carrier Download PDF

Info

Publication number
JP3586848B2
JP3586848B2 JP23039995A JP23039995A JP3586848B2 JP 3586848 B2 JP3586848 B2 JP 3586848B2 JP 23039995 A JP23039995 A JP 23039995A JP 23039995 A JP23039995 A JP 23039995A JP 3586848 B2 JP3586848 B2 JP 3586848B2
Authority
JP
Japan
Prior art keywords
function
data
command
function selection
setting
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.)
Expired - Fee Related
Application number
JP23039995A
Other languages
Japanese (ja)
Other versions
JPH0973525A (en
Inventor
融 三浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tokin Corp
Original Assignee
NEC Tokin Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Tokin Corp filed Critical NEC Tokin Corp
Priority to JP23039995A priority Critical patent/JP3586848B2/en
Publication of JPH0973525A publication Critical patent/JPH0973525A/en
Application granted granted Critical
Publication of JP3586848B2 publication Critical patent/JP3586848B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、IDカード、定期券、及びプリペイドカード等のICカードに用いられ、非接触(例えば、電磁誘導方式、光方式、又は電波方式)による外部とのデータ通信によって内蔵メモリからデータの読み出し及びデータの書き替えを行うことのできる非接触型データキャリアに関する。
【0002】
【従来の技術】
一般に、この種の非接触型データキャリアとして、例えば、ICチップを内蔵したものが知られている。このICチップは、CPU、マスクROM、RAM、及び各種周辺素子等を備えるとともに電気的に書き替え可能なEEPROM(Electrically Erasable Programable Read Only Memory)が備えられている(EEPROMの代りに書き替え不能のPROMが備えられることもある)。そして、このICチップは塩化ビニル又は樹脂モールド等によって密封されている。
【0003】
さらに、この種の非接触型データキャリアとして、ゲートアレイによってロジック回路が構成された専用ICにEEPROM又はPROMを組み合わせた装置を内蔵したものも知られている。
【0004】
これら非接触型データキャリアは、外部とのデータ送受のためのデータ入出力用接続端子を有しておらず、電磁誘導、光、又は電波等を用いたデータ通信によって、つまり、非接触で、外部とデータの入出力を行っている。このように、非接触型データキャリアでは、非接触でデータ通信を行っている関係上、水、塵、及び静電気等の影響を受けることが少なく、耐環境性に優れている。
【0005】
加えて、接続端子又は磁気ヘッドに接触させる必要のある接触型ICカード(又は磁気カード)と比べて、非接触型データキャリアを備えるICカード(以下このICカードを非接触型ICカードと呼ぶ)では、カード書込読取装置(リーダー/ライター)へICカードを挿入する手間が省け、非接触型ICカード専用のリーダー/ライターに非接触型ICカードをかざすだけで非接触型ICカードが動作するので、操作性が向上する。
【0006】
【発明が解決しようとする課題】
ところで、非接触型データキャリアでは、通信方式、変調/復調方式、データの構成、用途等によってその回路構成が異なる。加えて、カードサイズ及びコインサイズ等の外観形状によってスペースが限られ、この限られたスペースに電子部品を収納(内蔵)しなければならない。このため、電子部品の高集積化を達成するとともにICを小型化しなければならない。従って、内蔵ICを専用に開発する必要がある。言い換えると、一旦開発された専用ICを内蔵する非接触型データキャリアは、その用途範囲が限定されてしまう。
【0007】
例えば、専用ICとしてEEPROMとの組み合わせで記憶データの読出及び書替を行うものを用いると、この非接触型データキャリアはプリペイドカード及びポイントカード等のデータ書替を必要とする用途に対しては不都合はないが、セキュリティーの観点からデータの書替が不要である読出専用のIDカード等の用途においては、基本的に書替機能を有するICを内蔵する非接触型データキャリアを用いるとセキュリティー上で不都合が発生する。
【0008】
加えて、データの暗号化処理を行う場合、専用ICが備えるアルゴリズム以外は使用できず、この結果、用途に応じた変更ができない。つまり、新たな専用ICの開発が必要となる。
【0009】
このように、従来の非接触型データキャリアは、耐環境性及び操作性に優れているものの用途範囲が専用ICに依存している関係上、その機能が専用ICに限定されてしまい、汎用性に乏しいという問題点がある。
【0010】
本発明の目的は、セキュリティー機能を損なうことなく複数の用途に用いることができる非接触型データキャリアを提供することにある。
【0011】
【課題を解決するための手段】
本発明によれば、データを記憶するメモリ手段を備え、外部読出書込装置からの読出コマンドに応じて前記データの読み出しを行うとともに書込コマンドに応じて前記メモリ手段にデータを書き込む非接触型データキャリアにおいて、前記メモリ手段の予め定められた格納領域には所定のデータが格納されており、電源が供給された際前記格納領域に前記所定のデータが格納されている否かを検出して前記格納領域に前記所定のデータが格納されていると機能設定モードとなって予め定められたパターンの機能設定許可信号を受け該機能設定許可信号のパターンが予め設定されたパターンと一致すると機能選択コマンドの入力を許可する第1の手段と、前記機能選択コマンドを受け該機能選択コマンドに応じて前記所定のデータを複数の機能の内一つを示す機能設定データに書き替える第2の手段と、前記複数の機能のうち前記機能設定データで指定される機能のみの動作を行う第3の手段とを有することを特徴とする非接触型データキャリアが得られる。そして、機能設定を行う際には、前記第1の手段に前記機能設定許可信号を与え前記第2の手段に前記機能設定コマンドを与える機能選択装置が非接触データキャリアに接続される。
【0012】
本発明では、機能設定を行う際、非接触データキャリアに機能選択装置が接続され、機能選択装置から電源が供給された際、格納領域に所定のデータが格納されていると機能設定モードとなって予め定められたパターン(例えば、4ビット又は8ビットのビットパターン)の機能設定許可信号を機能選択装置から受け機能設定許可信号のパターンが予め設定されたパターンと一致すると機能選択装置からの機能選択コマンドの入力を許可する。そして、機能選択コマンドに応じて所定のデータを複数の機能の内一つを示す機能設定データに書き替える。その後、複数の機能のうち機能設定データで指定される機能のみの動作を行う。このようにして、機能設定データで指定される機能のみで動作するようにしたから、一つの非接触型データキャリアを複数の用途(機能)に用いることができる。この際、機能選択コマンドによって機能選択できるのは一度だけであるから、セキュリティー機能を損なうことはない。
【0013】
つまり、予め複数の処理プログラムを入力した一つの専用ICを開発しておくと、その後、用途に合わせて機能設定を行うだけで、選択用途専用の非接触型データキャリアを得ることができる。しかも、一度記憶された機能選択データは、書替不能であるから、セキュリティー機能を損なうことはない。
【0014】
【発明の実施の形態】
以下本発明について図面を参照して説明する。
【0015】
図1を参照して、図示の非接触型データキャリアは、例えば、ICカードに用いられる。本実施例では、外部専用リーダー/ライター(図示せず)と電磁誘導によってデータ通信を行うものとし、データ通信を行う際には、電源(電力)も外部専用リーダー/ライターから電磁誘導によって与えられるものとする。
【0016】
非接触型データキャリアはコイル1及び専用IC30を備えており、この専用IC30はコイル1とともに薄い基板(図示せず)上に実装され、これら専用IC30及びコイル1を埋設するようにして塩化ビニル又は樹脂等で所定の形状に成形される。
【0017】
図示の専用IC30にはCPU7が備えられるとともにマスクROM9、RAM10、及びEEPROM11を備えている。マスクROM9には予め各種用途(各種機能)に応じた複数の制御プログラムが格納され、RAM10は後述するように制御処理の際用いられる。また、EEPROM11は外部からのデータを記憶するためのメモリとして用いられる。
【0018】
さらに、専用IC30には電源回路2、変調回路3、復調回路4、シリアル通信切換回路5、及びシリアル通信制御回路6、及び機能選択許可入力回路8が備えられている。
【0019】
データの読み出し等を行う際には、外部専用リーダー/ライターからの電磁誘導によってコイル1に発生する電力は専用IC30に与えられ、電源回路2によって整流され安定化される。そして、明確に図示はされていないが、電源回路2からの安定電力によって専用IC30、つまり、専用IC30の各ブロックは動作する。
【0020】
外部専用リーダー/ライターからコマンドが周波数変調信号で非接触型データキャリアに送られる。この周波数変調信号はコイル1を介して復調回路4に与えられ、ここで復調されて復調コマンドとしてシリアル通信切換回路5を介してシリアル通信制御回路6に与えられ、ここで復調コマンドはパラレル信号に変換された後CPU7に与えられる。
【0021】
外部専用リーダー/ライターから非接触型データキャリアに送られるコマンドには、例えば、読出コマンドと書込コマンドとがある。そして、書込コマンドには書込データが続いている。
【0022】
復調コマンド(つまり、パラレル信号)を受けると、CPU7はマスクROM9に格納された複数の制御プログラムのうち、後述ようにして設定された機能設定データで指定された制御プログラムに応じて復調コマンドを解釈する。この復調コマンドは必要に応じてRAM10に格納される。
【0023】
CPU7は解釈コマンドに応じて処理を実行する。つまり、読出処理又は書替処理(書込処理)を行う。例えば、読出処理の際には、CPU7はEEPROM11から読出コマンドで指定されたアドレスの内容(データ)を読み出す。この読出データは一旦RAM10に格納されるかもしれない。そして、読出データ(パラレルデータ)はCPU7からシリアル通信制御回路6に与えられる。シリアル通信制御回路6では、読出データをシリアルデータに変換して、シリアル通信切換回路5を介して変調回路3に与える。変調回路3ではシリアルデータを周波数変調信号に変調してコイル1を介して外部専用リーダー/ライターに与える。
【0024】
一方、書込処理の際には、書込コマンドに続く書込データをCPU7は一旦RAM10に格納した後、CPU7は書込コマンドで指定されたアドレスでEEPROM9に書込データを書き込む。
【0025】
図2も参照して、図示の例では、EEPROM11において、例えば、アドレス“00H”が機能設定用データ格納エリアとして指定されている。機能設定を行う際には、図2に示す機能選択設定装置が用いられる。図示の機能選択設定装置はシリアル通信回路15、電源回路16、及び機能選択許可信号設定回路17を備えている。そして、シリアル通信回路15にはシリアル通信入出力端子18及びPC(パーソナルコンピュータ)接続端子21が備えられ、電源回路16には電源出力端子19が備えられている。さらに、機能選択許可信号設定回路17には機能選択許可出力端子20が備えられている。
【0026】
一方、図1に示すように、専用ICには機能選択許可入力回路8が備えられており、この機能選択許可入力回路8には機能選択許可入力端子13が設けられている。さらに、図1に示すように、シリアル通信切換回路5にはシリアル通信入出力端子12が備えられ、電源回路2には電源入力端子14が備えられている。具体的には、これら機能選択許可入力端子13、シリアル通信入出力端子12、及び電源入力端子14は専用IC30が実装された基板上に設けられている。
【0027】
専用IC30の機能設定を行う際には、機能選択許可入力端子13、シリアル通信入出力端子12、及び電源入力端子14にそれぞれ機能選択許可出力端子20、シリアル通信入出力端子18、及び電源出力端子19が接続される。図示の例では、基板上の機能選択許可入力端子13、シリアル通信入出力端子12、及び電源入力端子14として銅箔を用いた円状パターンが用いられ、機能選択許可出力端子20、シリアル通信入出力端子18、及び電源出力端子19として導電性金属によるピン状端子が用いられる。そして、これらピン状端子を基板上の端子に押し当てるようにして接続を行った。これによって、電源回路16から電源回路2に電力が供給され、専用IC30の各ブロックが動作可能となる。
【0028】
ここで、図1乃至図3を参照して、いま、上述のようにして、専用IC30に図2に示す機能選択設定装置が接続されると、電源回路16から専用IC30に電力が供給され、これによって、CPU7が起動すると、周辺素子(各部)等の初期化が行われ、各部が動作可能状態となる(ステップs1)。
【0029】
次に、CPU7はEEPROM11の機能選択エリアであるアドレス“00H”のデータを読み出す(ステップs2)。そして、CPU7はこのデータが予め定められたデータ“FFH”であるか否かを調べる(ステップs3)。書き換えが行われていない初期状態においては、EEPROM11では、全てのアドレスデータが“FFH”を示しており、これによって、CPU7はEEPROM11の書き換えが行われたか否かを判断することができる。従って、アドレス“00H”の内容が“FFH”であると、CPU7は機能選択がおこなわれていないと判断して、機能選択ルーチン(機能選択モード)へ処理を移行する。
【0030】
機能選択許可信号設定回路17からは予め定められたビットパターン(例えば、4ビットのパターンで“1111”を除く)を有する機能選択許可信号が機能選択許可入力回路8に与えられており、機能選択ルーチンへ移行すると、CPU7は機能選択許可信号を機能選択許可入力回路8から受け取る(ステップs4)。
【0031】
なお、機能選択許可入力端子13は機能選択許可回路8内でプルアップされており、機能選択許可入力端子13が無接続状態であると、機能選択許可入力回路8にはビットパターン“1111”が与えられることになる。そして、ビットパターンが“1111”である際には、CPU7は正常に接続されていない、つまり、機能選択設定装置が無接続状態であると判断する。
【0032】
機能選択許可信号を受けると、CPU7はマスクROM9に予め格納されたビットパターン(以下設定値と呼ぶ)を読み出して(ステップs5)、機能選択許可信号のビットパターンとこの設定ビットパターン(設定値)とを比較する(ステップs6)。そして、機能選択許可信号のビットパターンと設定値とが一致すると、CPU7は機能設定コマンド受信待ちとなる(ステップs7)。この際、CPU7はシリアル通信切換回路5を制御してシリアル通信入出力端子12を有効とする。一方、機能選択許可信号のビットパターンと設定値とが不一致であると、CPU7は不正操作であるとみなして、処理を終了する。
【0033】
上述のようにして、シリアル通信入出力端子12が有効になると、CPU7とシリアル通信回路15との通信が可能となる。PC接続端子21に、例えば、パソコン(図示せず)が接続されており、パソコンから機能設定コマンド(機能選択データを含む)がシリアル通信によってCPU7に与えられる。
【0034】
CPU7では機能設定コマンドを受けると、コマンドの正当性を確認(チェック)して(ステップs8)、異常がなければ、機能設定コマンドで指定された機能選択データをEEPROM11のアドレス“00H”に書き込む(ステップs9)。これによって、機能選択処理が終了する。一方、機能設定コマンドが不正であると判断すると、CPU7は処理を終了する。
【0035】
上述のようにして、機能設定が行われた後の再起動においては、CPU7は機能設定コマンドを受け付けない。つまり、CPU7は一度機能設定コマンドを受け付けると、二度と機能設定コマンドを受け付けない。
【0036】
ここで、機能選択として、読出及び書込機能と読出専用機能とが選択できるものとすると、読出及び書込機能を設定する際には、例えば、EEPROM11のアドレス“00H”に機能設定データとして“00H”がセットされる。一方、読出専用機能を設定する際には、EEPROM11のアドレス“00H”に機能設定データとして“01H”がセットされる。
【0037】
従って、アドレス“00H”の内容が“FFH”でないと、CPU7は次にアドレス“00H”のデータが“00H”であるか否かを調べて(ステップs10)、“00H”であると、その後、コマンドに応じてCPU7はマスクROM9の読出/書込処理ルーチンを実行することになる(ステップs11)。つまり、CPU7は読出及び書込機能となる。
【0038】
一方、アドレス“00H”のデータが“00H”でないと、CPU7は次にアドレス“00H”のデータが“01H”であるか否かを調べて(ステップs12)、“01H”であると(この場合には、必ず“01H”である)、その後、コマンドに応じてCPU7はマスクROM9の読出専用機能処理ルーチンを実行することになる(ステップs13)。つまり、CPU7は読出専用機能となる。
【0039】
このようにして、読出及び書込機能が設定されると、EEPROM11の指定アドレスに対して読出及び書込を行うことができ、一方、読出専用機能が設定されると、EEPROM11の指定アドレスに対して読出のみを行うことができる。この結果、読出専用機能が選択されると、実質的にEEPROM11の書替機能がなくなり、あたかも電気的な書込動作ができないPROMを内蔵したことになる。
【0040】
なお、図示はされていないが、読出専用機能が設定された際には、一度だけEEPROM11にはアドレス“00H”以外のアドレスにID等のデータの書込処理が行われる。
【0041】
上述の実施例では、読出/書込機能と読出機能とを設定できる非接触型データキャリアについて説明したが、マスクROMの容量が大きければ、他の機能を付加することもできる。加えて、機能設定データ格納エリアを複数設けて、例えば、暗号処理等の機能も組み合わせて機能選択させるようにしてもよい。
【0042】
また、機能選択許可入力信号のビットパターンを複数用意して、各ビットパターンに応じて複数の機能を設定できる。さらに、機能選択の際、シリアル通信との組み合わせを適宜適用すれば、よりセキュリティーを高くすることができる。
【0043】
【発明の効果】
以上説明したように、本発明では、予め複数の処理プログラムを入力した一つの専用ICを開発しておくと、その後、用途に合わせて機能設定を行うだけで、設定用途専用の非接触型データキャリアを得ることができるという効果がある。しかも、一度記憶された機能選択データは、書替不能であるから、セキュリティー機能を損なうことはない。
【図面の簡単な説明】
【図1】本発明による非接触型データキャリアの一例を示すブロック図である。
【図2】図1に示す非接触データキャリアに対して機能設定を行う際に用いられる機能設定選択装置の一例を示すブロック図である。
【図3】図1に示す非接触型データキャリアの動作を説明するためのフローチャートである。
【符号の説明】
1 コイル
2,16 電源回路
3 変調回路
4 復調回路
5 シリアル通信切換回路
6 シリアル通信制御回路
7 CPU
8 機能選択許可入力回路
9 マスクROM
10 RAM
11 EEPROM
15 シリアル通信回路
17 機能選択許可信号設定回路
[0001]
TECHNICAL FIELD OF THE INVENTION
INDUSTRIAL APPLICABILITY The present invention is used for IC cards such as ID cards, commuter passes, and prepaid cards, and reads data from a built-in memory by non-contact (for example, electromagnetic induction, optical, or radio wave) data communication with the outside. And a non-contact data carrier capable of rewriting data.
[0002]
[Prior art]
In general, as this kind of non-contact type data carrier, for example, a type having a built-in IC chip is known. This IC chip includes a CPU, a mask ROM, a RAM, and various peripheral elements, and also includes an electrically rewritable electrically erasable programmable read only memory (EEPROM) (instead of an EEPROM, a non-rewritable EEPROM). A PROM may be provided). The IC chip is sealed with a vinyl chloride or resin mold or the like.
[0003]
Further, as this kind of non-contact type data carrier, there is also known a non-contact type data carrier in which a device in which an EEPROM or a PROM is combined with a dedicated IC in which a logic circuit is constituted by a gate array is incorporated.
[0004]
These non-contact data carriers do not have a data input / output connection terminal for data transmission / reception with the outside, and by electromagnetic communication, data communication using light, radio waves, or the like, that is, in a non-contact manner, Data input / output with the outside. As described above, the non-contact data carrier is less affected by water, dust, static electricity, and the like because of non-contact data communication, and is excellent in environmental resistance.
[0005]
In addition, compared to a contact type IC card (or a magnetic card) that needs to be brought into contact with a connection terminal or a magnetic head, an IC card having a non-contact type data carrier (hereinafter, this IC card is referred to as a non-contact type IC card) In this case, the trouble of inserting the IC card into the card writing / reading device (reader / writer) can be omitted, and the contactless IC card can be operated simply by holding the contactless IC card over the reader / writer dedicated to the contactless IC card. Therefore, operability is improved.
[0006]
[Problems to be solved by the invention]
The circuit configuration of a non-contact data carrier varies depending on the communication system, modulation / demodulation system, data configuration, application, and the like. In addition, a space is limited by an external shape such as a card size and a coin size, and electronic components must be stored (built-in) in the limited space. Therefore, it is necessary to achieve high integration of electronic components and to reduce the size of the IC. Therefore, it is necessary to develop a built-in IC exclusively. In other words, the application range of the non-contact type data carrier having the built-in dedicated IC once developed is limited.
[0007]
For example, if a dedicated IC that reads and rewrites stored data in combination with an EEPROM is used, this non-contact type data carrier is suitable for applications that require data rewriting such as prepaid cards and point cards. Although there is no inconvenience, in applications such as read-only ID cards that do not require data rewriting from a security point of view, use of a non-contact type data carrier with a built-in IC having a rewriting function is basically a security measure. Causes inconvenience.
[0008]
In addition, when performing data encryption processing, only the algorithm provided in the dedicated IC can be used, and as a result, it cannot be changed according to the application. That is, it is necessary to develop a new dedicated IC.
[0009]
As described above, the conventional non-contact type data carrier is excellent in environment resistance and operability, but its function is limited to the dedicated IC because the application range depends on the dedicated IC. There is a problem that is poor.
[0010]
An object of the present invention is to provide a contactless data carrier that can be used for a plurality of applications without impairing a security function.
[0011]
[Means for Solving the Problems]
According to the present invention, there is provided a non-contact type including a memory means for storing data, reading the data in response to a read command from an external read / write device, and writing data in the memory means in response to a write command. In the data carrier, predetermined data is stored in a predetermined storage area of the memory means, and when power is supplied, it is detected whether the predetermined data is stored in the storage area. When the predetermined data is stored in the storage area, a function setting mode is set, a function setting permission signal of a predetermined pattern is received, and a function selection is performed when the pattern of the function setting permission signal matches a predetermined pattern. First means for permitting command input; receiving the function selection command and converting the predetermined data into a plurality of functions in response to the function selection command; A second means for rewriting the function setting data indicating one of the plurality of functions, and a third means for performing an operation of only a function specified by the function setting data among the plurality of functions. A contact-type data carrier is obtained. Then, when performing the function setting, a function selection device that provides the function setting permission signal to the first means and provides the function setting command to the second means is connected to the non-contact data carrier.
[0012]
In the present invention, when performing the function setting, the function selection device is connected to the non-contact data carrier, and when power is supplied from the function selection device, the function setting mode is set when predetermined data is stored in the storage area. A function setting permission signal of a predetermined pattern (for example, a bit pattern of 4 bits or 8 bits) is received from the function selection device, and when the pattern of the function setting permission signal matches the predetermined pattern, the function from the function selection device is output. Allow input of selection commands. Then, the predetermined data is rewritten to function setting data indicating one of the plurality of functions according to the function selection command. Thereafter, the operation of only the function specified by the function setting data among the plurality of functions is performed. As described above, since only the function specified by the function setting data is operated, one non-contact data carrier can be used for a plurality of uses (functions). In this case, since the function can be selected only once by the function selection command, the security function is not impaired.
[0013]
That is, if a single dedicated IC in which a plurality of processing programs are input is developed in advance, a non-contact data carrier dedicated to the selected application can be obtained only by setting the functions according to the application. In addition, since the function selection data once stored is not rewritable, the security function is not impaired.
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, the present invention will be described with reference to the drawings.
[0015]
Referring to FIG. 1, the illustrated non-contact data carrier is used for, for example, an IC card. In this embodiment, data communication is performed by electromagnetic induction with an external dedicated reader / writer (not shown). When performing data communication, power (electric power) is also supplied from the external dedicated reader / writer by electromagnetic induction. Shall be.
[0016]
The non-contact type data carrier includes a coil 1 and a dedicated IC 30. The dedicated IC 30 is mounted together with the coil 1 on a thin substrate (not shown). It is formed into a predetermined shape with resin or the like.
[0017]
The illustrated dedicated IC 30 includes a CPU 7 and a mask ROM 9, a RAM 10, and an EEPROM 11. A plurality of control programs corresponding to various applications (various functions) are stored in the mask ROM 9 in advance, and the RAM 10 is used for control processing as described later. The EEPROM 11 is used as a memory for storing external data.
[0018]
Further, the dedicated IC 30 includes a power supply circuit 2, a modulation circuit 3, a demodulation circuit 4, a serial communication switching circuit 5, a serial communication control circuit 6, and a function selection permission input circuit 8.
[0019]
When reading data or the like, power generated in the coil 1 by electromagnetic induction from an external dedicated reader / writer is supplied to the dedicated IC 30 and rectified and stabilized by the power supply circuit 2. Although not explicitly shown, the dedicated IC 30, that is, each block of the dedicated IC 30 operates by stable power from the power supply circuit 2.
[0020]
A command is sent from the external dedicated reader / writer to the contactless data carrier as a frequency modulated signal. This frequency modulation signal is supplied to the demodulation circuit 4 via the coil 1 and demodulated here and supplied as a demodulation command to the serial communication control circuit 6 via the serial communication switching circuit 5, where the demodulation command is converted into a parallel signal. After the conversion, it is given to the CPU 7.
[0021]
Commands sent from the external dedicated reader / writer to the contactless data carrier include, for example, a read command and a write command. The write command is followed by write data.
[0022]
When receiving the demodulation command (that is, the parallel signal), the CPU 7 interprets the demodulation command according to the control program specified by the function setting data set as described later among the plurality of control programs stored in the mask ROM 9. I do. This demodulation command is stored in the RAM 10 as needed.
[0023]
The CPU 7 executes a process according to the interpretation command. That is, read processing or rewrite processing (write processing) is performed. For example, at the time of the reading process, the CPU 7 reads the content (data) of the address specified by the read command from the EEPROM 11. This read data may be temporarily stored in the RAM 10. Then, the read data (parallel data) is given from the CPU 7 to the serial communication control circuit 6. The serial communication control circuit 6 converts the read data into serial data and supplies the serial data to the modulation circuit 3 via the serial communication switching circuit 5. The modulation circuit 3 modulates the serial data into a frequency modulation signal and supplies the frequency modulation signal to the external dedicated reader / writer via the coil 1.
[0024]
On the other hand, in the writing process, after the CPU 7 temporarily stores the write data following the write command in the RAM 10, the CPU 7 writes the write data to the EEPROM 9 at the address specified by the write command.
[0025]
Referring to FIG. 2 as well, in the illustrated example, in the EEPROM 11, for example, an address “00H” is designated as a function setting data storage area. When performing the function setting, a function selection setting device shown in FIG. 2 is used. The illustrated function selection setting device includes a serial communication circuit 15, a power supply circuit 16, and a function selection permission signal setting circuit 17. The serial communication circuit 15 includes a serial communication input / output terminal 18 and a PC (personal computer) connection terminal 21, and the power supply circuit 16 includes a power output terminal 19. Further, the function selection permission signal setting circuit 17 has a function selection permission output terminal 20.
[0026]
On the other hand, as shown in FIG. 1, the dedicated IC is provided with a function selection permission input circuit 8, and the function selection permission input circuit 8 is provided with a function selection permission input terminal 13. Further, as shown in FIG. 1, the serial communication switching circuit 5 is provided with a serial communication input / output terminal 12, and the power supply circuit 2 is provided with a power input terminal 14. Specifically, the function selection permission input terminal 13, the serial communication input / output terminal 12, and the power supply input terminal 14 are provided on a board on which the dedicated IC 30 is mounted.
[0027]
When the function setting of the dedicated IC 30 is performed, the function selection permission input terminal 13, the serial communication input / output terminal 12, and the power supply input terminal 14 are respectively connected to the function selection permission output terminal 20, the serial communication input / output terminal 18, and the power supply output terminal. 19 is connected. In the illustrated example, circular patterns using copper foil are used as the function selection permission input terminal 13, the serial communication input / output terminal 12, and the power supply input terminal 14 on the board, and the function selection permission output terminal 20, the serial communication input terminal As the output terminal 18 and the power output terminal 19, pin-shaped terminals made of a conductive metal are used. The connection was performed by pressing these pin-shaped terminals against the terminals on the substrate. Thus, power is supplied from the power supply circuit 16 to the power supply circuit 2, and each block of the dedicated IC 30 becomes operable.
[0028]
Here, with reference to FIGS. 1 to 3, when the function selection setting device shown in FIG. 2 is connected to the dedicated IC 30 as described above, power is supplied from the power supply circuit 16 to the dedicated IC 30, Thus, when the CPU 7 is started, the initialization of the peripheral elements (each unit) and the like is performed, and each unit becomes operable (step s1).
[0029]
Next, the CPU 7 reads the data at the address “00H” which is the function selection area of the EEPROM 11 (step s2). Then, the CPU 7 checks whether or not this data is predetermined data "FFH" (step s3). In the initial state in which no rewriting is performed, all address data in the EEPROM 11 indicates “FFH”, whereby the CPU 7 can determine whether or not the EEPROM 11 has been rewritten. Therefore, if the content of the address "00H" is "FFH", the CPU 7 determines that the function has not been selected, and shifts the processing to the function selection routine (function selection mode).
[0030]
The function selection permission signal setting circuit 17 supplies a function selection permission signal having a predetermined bit pattern (for example, a 4-bit pattern excluding “1111”) to the function selection permission input circuit 8. Upon transition to the routine, the CPU 7 receives a function selection permission signal from the function selection permission input circuit 8 (step s4).
[0031]
The function selection permission input terminal 13 is pulled up in the function selection permission circuit 8, and when the function selection permission input terminal 13 is in a non-connection state, the function selection permission input circuit 8 has a bit pattern “1111”. Will be given. When the bit pattern is "1111", the CPU 7 determines that the connection is not normal, that is, the function selection setting device is in the non-connection state.
[0032]
Upon receiving the function selection permission signal, the CPU 7 reads out a bit pattern (hereinafter referred to as a set value) stored in advance in the mask ROM 9 (step s5), and determines the bit pattern of the function selection permission signal and the set bit pattern (set value). (Step s6). When the bit pattern of the function selection permission signal matches the set value, the CPU 7 waits for reception of a function setting command (step s7). At this time, the CPU 7 controls the serial communication switching circuit 5 to make the serial communication input / output terminal 12 valid. On the other hand, if the bit pattern of the function selection permission signal does not match the set value, the CPU 7 determines that the operation is an illegal operation and ends the process.
[0033]
As described above, when the serial communication input / output terminal 12 is enabled, communication between the CPU 7 and the serial communication circuit 15 becomes possible. For example, a personal computer (not shown) is connected to the PC connection terminal 21, and a function setting command (including function selection data) is given to the CPU 7 from the personal computer through serial communication.
[0034]
When the CPU 7 receives the function setting command, it checks (checks) the validity of the command (step s8), and if there is no abnormality, writes the function selection data specified by the function setting command to the address "00H" of the EEPROM 11 (step s8). Step s9). Thus, the function selection processing ends. On the other hand, when determining that the function setting command is invalid, the CPU 7 ends the processing.
[0035]
As described above, in the restart after the function setting is performed, the CPU 7 does not receive the function setting command. That is, once the CPU 7 receives the function setting command, it does not receive the function setting command again.
[0036]
Here, assuming that the read / write function and the read-only function can be selected as the function selection, when setting the read / write function, for example, the address “00H” of the EEPROM 11 is set as “function setting data” as the function setting data. 00H ”is set. On the other hand, when setting the read-only function, “01H” is set as the function setting data at the address “00H” of the EEPROM 11.
[0037]
Therefore, if the content of the address "00H" is not "FFH", the CPU 7 next checks whether or not the data of the address "00H" is "00H" (step s10). In response to the command, the CPU 7 executes a read / write processing routine of the mask ROM 9 (step s11). That is, the CPU 7 has a reading and writing function.
[0038]
On the other hand, if the data at the address “00H” is not “00H”, the CPU 7 next checks whether or not the data at the address “00H” is “01H” (step s12). In this case, it is always "01H"), and then the CPU 7 executes a read-only function processing routine of the mask ROM 9 in response to the command (step s13). That is, the CPU 7 has a read-only function.
[0039]
When the read and write functions are set in this way, reading and writing can be performed to the designated address of the EEPROM 11, while when the read-only function is set, the specified address of the EEPROM 11 can be read and written. Read only. As a result, when the read-only function is selected, the rewriting function of the EEPROM 11 is substantially eliminated, and a PROM that cannot perform an electrical writing operation is built in.
[0040]
Although not shown, when the read-only function is set, data such as an ID is written into the EEPROM 11 at an address other than the address “00H” only once.
[0041]
In the above embodiment, the non-contact type data carrier in which the read / write function and the read function can be set has been described. However, if the capacity of the mask ROM is large, other functions can be added. In addition, a plurality of function setting data storage areas may be provided and, for example, functions such as encryption processing may be combined and selected.
[0042]
Also, a plurality of bit patterns of the function selection permission input signal are prepared, and a plurality of functions can be set according to each bit pattern. Further, when selecting a function, by appropriately applying a combination with serial communication, security can be further enhanced.
[0043]
【The invention's effect】
As described above, according to the present invention, if one dedicated IC in which a plurality of processing programs are input is developed in advance, then only the function setting according to the application is performed and the non-contact type data dedicated to the setting application is used. There is an effect that a carrier can be obtained. In addition, since the function selection data once stored is not rewritable, it does not impair the security function.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating an example of a contactless data carrier according to the present invention.
FIG. 2 is a block diagram showing an example of a function setting selecting device used when setting functions on the non-contact data carrier shown in FIG. 1;
FIG. 3 is a flowchart illustrating an operation of the non-contact type data carrier shown in FIG. 1;
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Coil 2, 16 Power supply circuit 3 Modulation circuit 4 Demodulation circuit 5 Serial communication switching circuit 6 Serial communication control circuit 7 CPU
8 Function selection permission input circuit 9 Mask ROM
10 RAM
11 EEPROM
15 Serial communication circuit 17 Function selection permission signal setting circuit

Claims (3)

データを記憶するメモリ手段を備え、外部読出書込装置からの読出コマンドに応じて前記データの読み出しを行うとともに書込コマンドに応じて前記メモリ手段にデータを書き込む非接触型データキャリアにおいて、前記メモリ手段の予め定められた格納領域には所定のデータが格納されており、電源が供給された際前記格納領域に前記所定のデータが格納されている否かを検出して前記格納領域に前記所定のデータが格納されていると機能設定モードとなって予め定められたパターンの機能設定許可信号を受け該機能設定許可信号のパターンが予め設定されたパターンと一致すると機能選択コマンドの入力を許可する第1の手段と、前記機能選択コマンドを受け該機能選択コマンドに応じて前記所定のデータを複数の機能の内一つを示す機能設定データに書き替える第2の手段と、前記複数の機能のうち前記機能設定データで指定される機能のみの動作を行う第3の手段とを有することを特徴とする非接触型データキャリア。A non-contact type data carrier for storing data in accordance with a read command from an external read / write device, and for writing data in the memory in response to a write command; Predetermined data is stored in a predetermined storage area of the means, and when power is supplied, whether or not the predetermined data is stored in the storage area is detected, and the predetermined data is stored in the storage area. When the data is stored, a function setting mode is set, a function setting permission signal having a predetermined pattern is received, and when the pattern of the function setting permission signal matches a predetermined pattern, input of a function selection command is permitted. A first means for receiving the function selection command and displaying the predetermined data as one of a plurality of functions in accordance with the function selection command; Contactless data carrier, characterized in that it comprises second means for rewriting the setting data, and a third means for performing an operation of only the function specified in the function setting data of the plurality of functions. 請求項1に記載された非接触型データキャリアにおいて、機能設定を行う際、前記第1の手段に前記機能設定許可信号を与え前記第2の手段に前記機能設定コマンドを与える機能選択装置が前記第1及び前記第2の手段に接続されるようにしたことを特徴とする非接触型データキャリア。2. The function selection device according to claim 1, wherein, when setting a function, the function selection device that gives the function setting permission signal to the first means and gives the function setting command to the second means. A non-contact type data carrier connected to the first and second means. 請求項1又は2に記載された非接触型データキャリアにおいて、前記複数の機能は読出/書込機能と読出専用機能であることを特徴とする非接触型データキャリア。3. The non-contact data carrier according to claim 1, wherein the plurality of functions are a read / write function and a read-only function.
JP23039995A 1995-09-07 1995-09-07 Contactless data carrier Expired - Fee Related JP3586848B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23039995A JP3586848B2 (en) 1995-09-07 1995-09-07 Contactless data carrier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23039995A JP3586848B2 (en) 1995-09-07 1995-09-07 Contactless data carrier

Publications (2)

Publication Number Publication Date
JPH0973525A JPH0973525A (en) 1997-03-18
JP3586848B2 true JP3586848B2 (en) 2004-11-10

Family

ID=16907276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23039995A Expired - Fee Related JP3586848B2 (en) 1995-09-07 1995-09-07 Contactless data carrier

Country Status (1)

Country Link
JP (1) JP3586848B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031604A (en) * 2004-07-21 2006-02-02 Denso Wave Inc Non-contact communication system
JP5057829B2 (en) * 2007-04-17 2012-10-24 株式会社東芝 Portable electronic device and IC card

Also Published As

Publication number Publication date
JPH0973525A (en) 1997-03-18

Similar Documents

Publication Publication Date Title
KR100887083B1 (en) Ic module and cellular phone
US6375082B1 (en) Portable electronic device with contacting and noncontacting interfaces
US7624927B2 (en) Contactless card and a control method thereof
JP2005044375A (en) Communication card with input/output function
US5590193A (en) Method to secure the operations for accessing detachable cards for computers
JPH07306831A (en) Computer network system
JP3586848B2 (en) Contactless data carrier
KR19980024178A (en) Program recordable IC card and method
US20120234926A1 (en) Portable electronic apparatus
KR200329847Y1 (en) Usb driving device use smartcard reader
JP2007087168A (en) Composite portable electronic device and composite ic card
JP3983885B2 (en) Compound IC card and IC module for compound IC card
JP3243591B2 (en) Contactless data carrier
JP6092342B2 (en) Non-contact portable electronic device and method for issuing non-contact portable electronic device
JP5693824B2 (en) IC card processing device, IC card, and IC card processing system
JP4674835B2 (en) Contact / non-contact shared type IC chip, electronic information recording medium equipped with the IC chip, and electronic information recording medium control device.
JP7424536B1 (en) Electronic information storage medium, IC chip, IC card, communication parameter transmission method, and program
JP3685228B2 (en) Non-contact data carrier system
JP6009854B2 (en) IC card, portable electronic device, and IC card control program
KR100614128B1 (en) Terminal and rf card managing method of terminal
JP5875772B2 (en) Portable electronic device, control method for portable electronic device, and processing system for portable electronic device
KR19990038700A (en) Multi smart card using Java chip
KR100480204B1 (en) Method for protecting smart card from electric shock and the smart card
JP2001076108A (en) Non-contact ic card communication equipment
JP5684059B2 (en) IC card and control method of IC card

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040706

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040728

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040730

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090820

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090820

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100820

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100820

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110820

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120820

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120820

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130820

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140820

Year of fee payment: 10

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees