JP2008003811A - Information communication medium and communication condition control method - Google Patents

Information communication medium and communication condition control method Download PDF

Info

Publication number
JP2008003811A
JP2008003811A JP2006171854A JP2006171854A JP2008003811A JP 2008003811 A JP2008003811 A JP 2008003811A JP 2006171854 A JP2006171854 A JP 2006171854A JP 2006171854 A JP2006171854 A JP 2006171854A JP 2008003811 A JP2008003811 A JP 2008003811A
Authority
JP
Japan
Prior art keywords
communication
condition
communication condition
initial
external device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006171854A
Other languages
Japanese (ja)
Inventor
Atsushi Takahashi
厚志 高橋
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2006171854A priority Critical patent/JP2008003811A/en
Publication of JP2008003811A publication Critical patent/JP2008003811A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information communication medium which is superior in switching efficiency of communication conditions (communication protocols and a communication rate). <P>SOLUTION: The information communication medium is made of a card main body having a module embedded thereinto, and the module includes: a storage means wherein an initial communication condition out of a plurality of communication conditions is stored; a communication means which communicates with an external device; and a control means which transmits the initial communication condition stored in the storage means to the external device through the communication means in response to reception of a request for a communication condition from the external device through the communication means and rewrites the initial communication condition stored in the storage means with a requested communication condition in response to reception of a request for communication condition change from the external device through the communication means. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、通信条件の切り替えが可能なICカード等の情報通信媒体に関する。また、本発明は、情報通信媒体の通信条件の切り替えを制御する通信条件制御方法に関する。   The present invention relates to an information communication medium such as an IC card capable of switching communication conditions. The present invention also relates to a communication condition control method for controlling switching of communication conditions of an information communication medium.

近年、安全性に優れるICカードの普及が目覚しい。このようなICカードは、電力供給が断たれてもデータを保持する事が可能な不揮発性メモリ、リーダライタと通信可能な通信I/F、各種動作を実行するCPU、CPUの動作プログラム等を記憶するROM、及びデータを一時的に記憶するRAMを有する(特許文献1参照)。RAMには、例えばリーダライタと通信する通信プロトコル及び通信レートが格納されている。   In recent years, IC cards with excellent safety have been widely used. Such an IC card includes a non-volatile memory that can retain data even when power supply is cut off, a communication I / F that can communicate with a reader / writer, a CPU that performs various operations, a CPU operation program, and the like. It has a ROM for storing data and a RAM for temporarily storing data (see Patent Document 1). In the RAM, for example, a communication protocol and a communication rate for communicating with the reader / writer are stored.

ICカードは、ICカードが活性化するために必要なVcc、GND、CLK、RESET信号等の供給を受けると、活性化シーケンスを起動し、ATR(answer to reset)を出力する。この時、ATR送信後に行う通信プロトコル、通信レートがRAMに格納される。   When the IC card receives supply of Vcc, GND, CLK, RESET signal and the like necessary for activating the IC card, the IC card starts an activation sequence and outputs an ATR (answer to reset). At this time, a communication protocol and a communication rate performed after ATR transmission are stored in the RAM.

その後、リーダライタとICカードの間でPPS交換が行われ、PPSが正常に交換された場合、PPSに格納されている情報に基づき通信プロトコル、通信レートが切り替えられ、切り替えられた通信プロトコル、通信レートがRAMに格納される。つまり、ICカードは、ATRによりデフォルトの通信条件(通信プロトコル、通信レート)を示し、かつ、PPSにより通信条件を切り替えることができる。
特開平9−231113
Thereafter, PPS exchange is performed between the reader / writer and the IC card, and when the PPS is exchanged normally, the communication protocol and communication rate are switched based on the information stored in the PPS. The rate is stored in RAM. That is, the IC card can indicate default communication conditions (communication protocol, communication rate) by ATR, and can switch communication conditions by PPS.
JP-A-9-231113

上記したように、従来は、通信プロトコル、通信レートを切り替える必要がある場合には、カードがATRを送信した後、リーダライタとICカードの間でPPSを交換して、通信プロトコル、通信レートを切り替えている。   As described above, conventionally, when it is necessary to switch the communication protocol and communication rate, after the card transmits ATR, the PPS is exchanged between the reader / writer and the IC card, and the communication protocol and communication rate are changed. Switching.

しかし、毎回同一のリーダライタに接続される場合でも、同様の手順を踏み、通信プロトコル、通信レートを切り替えなければならず、通信効率が悪いという問題がある。   However, even when connected to the same reader / writer each time, the same procedure must be followed to switch the communication protocol and communication rate, resulting in poor communication efficiency.

本発明の目的は、上記課題を解決するためになされたものであり、通信条件(通信プロトコル、通信レート)の切り替え効率に優れた情報通信媒体及び通信条件制御方法を提供することにある。   An object of the present invention is to provide an information communication medium and a communication condition control method that are excellent in switching efficiency of communication conditions (communication protocol, communication rate).

この発明の情報通信媒体及び通信条件制御方法は、以下のように構成されている。   The information communication medium and communication condition control method of the present invention are configured as follows.

(1)この発明の情報通信媒体は、モジュールが埋め込まれたカード本体により構成され、前記モジュールは、複数の通信条件の中の初期通信条件を記憶する記憶手段と、外部機器と通信する通信手段と、前記通信手段を介して前記外部機器からの通信条件の要求を受信し、前記通信手段を介して前記外部機器に対して前記記憶手段に記憶された前記初期通信条件を送信し、前記通信手段を介して前記外部機器からの通信条件の変更要求を受信することに基づき前記記憶手段に記憶されている前記初期通信条件を変更要求された通信条件へ書き換える制御手段とを備えている。   (1) An information communication medium according to the present invention includes a card body in which a module is embedded. The module includes a storage unit that stores initial communication conditions among a plurality of communication conditions, and a communication unit that communicates with an external device. And receiving a request for communication conditions from the external device via the communication means, transmitting the initial communication conditions stored in the storage means to the external device via the communication means, and Control means for rewriting the initial communication condition stored in the storage means to the communication condition requested to be changed based on receiving a communication condition change request from the external device via the means.

(2)この発明の通信条件制御方法は、外部機器からの通信条件の要求を受信し、前記外部機器に対して初期通信条件を送信し、前記外部機器からの通信条件の変更要求を受信することに基づき前記初期通信条件を変更要求された通信条件へ書き換える。   (2) The communication condition control method of the present invention receives a communication condition request from an external device, transmits an initial communication condition to the external device, and receives a communication condition change request from the external device. The initial communication condition is rewritten to the communication condition requested to be changed.

本発明によれば、通信条件(通信プロトコル、通信レート)の切り替え効率に優れた情報通信媒体及び通信条件制御方法を提供できる。   According to the present invention, it is possible to provide an information communication medium and a communication condition control method excellent in switching efficiency of communication conditions (communication protocol, communication rate).

以下、図面を参照し、本発明の実施形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の一実施形態に係る通信システムの概略構成を示す図である。図1に示すように、通信システムは、通信端末1及びICカード(情報通信媒体)2を備えている。   FIG. 1 is a diagram showing a schematic configuration of a communication system according to an embodiment of the present invention. As shown in FIG. 1, the communication system includes a communication terminal 1 and an IC card (information communication medium) 2.

通信端末1は、制御部11、ディスプレイ12、キーボード13、カードリーダ/ライタ14、及びテンキー15を備えている。制御部11は、各種アプリケーションを実行したり、各種データを入出力する。ディスプレイ12は、ICカード2との通信結果等を表示する。キーボード13は、オペレータの入力操作に対応して、文字や数字等のデータを制御部11へ入力する。カードリーダ/ライタ14は、ICカード2から読み取ったデータを受信したり、ICカード2に対して書き込むデータを送信したりする。テンキー15は、オペレータの入力操作に対応して、PINなどの識別データを制御部11へ入力する。   The communication terminal 1 includes a control unit 11, a display 12, a keyboard 13, a card reader / writer 14, and a numeric keypad 15. The control unit 11 executes various applications and inputs / outputs various data. The display 12 displays a result of communication with the IC card 2 and the like. The keyboard 13 inputs data such as characters and numbers to the control unit 11 in response to an input operation by the operator. The card reader / writer 14 receives data read from the IC card 2 and transmits data to be written to the IC card 2. The numeric keypad 15 inputs identification data such as a PIN to the control unit 11 in response to an input operation by the operator.

一方のICカード2は、図2に示すように、コンタクト部21、電力供給回路23、受信回路24、送信回路25、制御部26、ROM27、RAM28、不揮発性メモリ29を備えている。コンタクト部21は、カードリーダ/ライタ14と接続し、通信端末1からの信号を受信したり、通信端末1に対して信号を送信したりする。つまり、コンタクト部21は、ICカードが活性化するために必要なVcc、GND、CLK、RESET信号を受けたり、通信端末1との間でデータを送受信するためのI/Fとして機能する。受信回路24は、通信端末1から受信したデータを制御部26に出力する。電力供給回路23は、コンタクト部21から入力されたVccを安定化して動作電力を生成し、この動作電力を制御部26やその他の回路部へ供給する。送信回路25は、制御部26からの送信データを出力する。制御部26は、通信端末1から送信されるコマンドを実行する。RAM28は、制御部26で実行する処理結果等を一時的に格納する。ROM27は、制御部26で実行される制御プログラム等を記憶する。不揮発性メモリ29は、電力供給回路23からの電力供給が断たれた後も、制御部26で実行される処理結果を保持する。   As shown in FIG. 2, one IC card 2 includes a contact unit 21, a power supply circuit 23, a reception circuit 24, a transmission circuit 25, a control unit 26, a ROM 27, a RAM 28, and a nonvolatile memory 29. The contact unit 21 is connected to the card reader / writer 14 and receives a signal from the communication terminal 1 or transmits a signal to the communication terminal 1. That is, the contact unit 21 functions as an I / F for receiving Vcc, GND, CLK, and RESET signals necessary for activating the IC card and transmitting / receiving data to / from the communication terminal 1. The receiving circuit 24 outputs the data received from the communication terminal 1 to the control unit 26. The power supply circuit 23 stabilizes Vcc input from the contact unit 21 to generate operating power, and supplies this operating power to the control unit 26 and other circuit units. The transmission circuit 25 outputs transmission data from the control unit 26. The control unit 26 executes a command transmitted from the communication terminal 1. The RAM 28 temporarily stores processing results executed by the control unit 26. The ROM 27 stores a control program executed by the control unit 26 and the like. The non-volatile memory 29 holds the processing result executed by the control unit 26 even after the power supply from the power supply circuit 23 is cut off.

例えば、ROM27には、初期通信条件(通信プロトコル、通信パラメータ(例えば通信レート)など)を含む複数の通信条件(複数の通信プロトコル、複数の通信パラメータ(例えば複数の通信レート))が記憶される。ICカード2側でこれら複数の通信条件を切り替えることにより、ICカード2と通信方式の異なる複数の通信端末との通信が可能となる。RAM28には、ROM27に記憶された複数の通信条件の中から選択された通信条件が記憶される。例えば、図3に示すように、RAM28には、通信端末1と通信すべき通信プロトコル281、通信端末1と通信すべき通信パラメータ(通信レート282)が記憶される。また、図4に示すように、不揮発性メモリ29には、COLDリセット後に、出力すべきATR値291が記憶される。COLDリセットについては、後に詳しく説明する。   For example, the ROM 27 stores a plurality of communication conditions (a plurality of communication protocols, a plurality of communication parameters (for example, a plurality of communication rates)) including initial communication conditions (communication protocol, communication parameters (for example, a communication rate)). . By switching the plurality of communication conditions on the IC card 2 side, communication with a plurality of communication terminals having different communication methods from the IC card 2 becomes possible. The RAM 28 stores communication conditions selected from a plurality of communication conditions stored in the ROM 27. For example, as shown in FIG. 3, the RAM 28 stores a communication protocol 281 to be communicated with the communication terminal 1 and a communication parameter (communication rate 282) to be communicated with the communication terminal 1. As shown in FIG. 4, the non-volatile memory 29 stores an ATR value 291 to be output after COLD reset. The COLD reset will be described in detail later.

次に、図5及び図6に示すフローチャートを参照して、通信端末1とICカード2との通信について説明する。図5は、通信端末1とICカード2との第1回目の通信処理(ATR書き換え可能)の一例を示すフローチャートであり、図6は、第1回目の通信処理で通信条件が書き換えられ、その後の通信端末1とICカード2との第2回目以降の通信処理(ATR書き換え可能)の一例を説明するためのフローチャートである。   Next, communication between the communication terminal 1 and the IC card 2 will be described with reference to flowcharts shown in FIGS. FIG. 5 is a flowchart showing an example of the first communication process (ATR rewriting is possible) between the communication terminal 1 and the IC card 2, and FIG. 6 shows the communication conditions rewritten in the first communication process. 5 is a flowchart for explaining an example of communication processing (ATR rewritable) after the second time between the communication terminal 1 and the IC card 2.

図5に示すように、通信端末1は、ICカード2のコンタクト部21に、Vcc、GND、CLK、RESET信号を供給し、活性化シーケンスを起動する(ST101)。このときの電力供給レベル(Vcc)とRESET信号(RST)との関係は、Vcc:ローレベル(L)→ハイレベル(H)、RST:ローレベル(L)→ハイレベル(H)である。つまり、電力供給開始及びリセット信号出力の関係が成立するリセットを、図7に示すように、COLD_RESETと呼ぶ。   As shown in FIG. 5, the communication terminal 1 supplies the Vcc, GND, CLK, and RESET signals to the contact unit 21 of the IC card 2 and activates the activation sequence (ST101). The relationship between the power supply level (Vcc) and the RESET signal (RST) at this time is Vcc: low level (L) → high level (H), and RST: low level (L) → high level (H). That is, the reset that satisfies the relationship between the start of power supply and the output of the reset signal is referred to as COLD_RESET as shown in FIG.

ICカード2は、通信端末1から活性化シーケンスが起動された場合、動作できるようスタートアップ処理を行い、不揮発性メモリ29からATR値(初期通信条件(初期値))を読み出し、ATR値を通信端末1へ送信する。同時に、不揮発性メモリ29に格納されているATR値から、通信すべき通信プロトコル、通信レートを判断し、RAM28に格納する(ST102)。   When the activation sequence is activated from the communication terminal 1, the IC card 2 performs start-up processing so that it can operate, reads the ATR value (initial communication condition (initial value)) from the nonvolatile memory 29, and uses the ATR value as the communication terminal. Send to 1. At the same time, the communication protocol to be communicated and the communication rate are determined from the ATR value stored in the nonvolatile memory 29, and stored in the RAM 28 (ST102).

通信端末1(制御部11)は、ATR値に基づき、通信すべき通信プロトコル(第1提示プロトコル)及び通信レート(TA1の値)を判断する(ST103)。通信端末1は、これら通信プロトコル及び通信レートにより通信可能と判断すると(ST104、NO)、これら通信プロトコル及び通信レートによる通信を開始し、通信端末1とICカード2の間でアプリケーションが実行され、実行終了すると、ICカード2は非活性化される。   Based on the ATR value, communication terminal 1 (control unit 11) determines a communication protocol (first presentation protocol) and communication rate (value of TA1) to be communicated (ST103). When the communication terminal 1 determines that communication is possible based on these communication protocols and communication rates (ST104, NO), it starts communication using these communication protocols and communication rates, and an application is executed between the communication terminal 1 and the IC card 2. When the execution is completed, the IC card 2 is deactivated.

逆に、通信端末1は、これら通信プロトコル及び通信レートにより通信不能と判断すると、RESET信号を供給する。このときの電力供給レベル(Vcc)とRESET信号(RST)との関係は、Vcc:ハイレベル(H)→ハイレベル(H)、RST:ローレベル(L)→ハイレベル(H)である。つまり、電力供給の継続及びリセット信号再出力の関係が成立するリセットを、図7に示すように、WARM_RESETと呼ぶ。ICカード2は、WARM_RESETに基づき、ATR値を初期値に書き戻す。このケースでは、不揮発性メモリ29に格納されているATR値が初期値(初期通信条件)であり、実質的にATR値はそのままとなる。従って、再度、通信を試みても通信エラーとなる(複数回通信エラー)。その結果、通信端末1は、複数回通信エラーにより通信不能と判断し(ST104、YES)、PPSリクエストを送信し(ST105)、通信条件の変更、例えば通信レートの変更を要求する。   Conversely, when the communication terminal 1 determines that communication is impossible due to these communication protocols and communication rates, it supplies a RESET signal. The relationship between the power supply level (Vcc) and the RESET signal (RST) at this time is Vcc: high level (H) → high level (H), and RST: low level (L) → high level (H). That is, the reset that satisfies the relationship between the continuation of power supply and the reset signal re-output is referred to as WARM_RESET as shown in FIG. The IC card 2 writes the ATR value back to the initial value based on WARM_RESET. In this case, the ATR value stored in the nonvolatile memory 29 is an initial value (initial communication condition), and the ATR value is substantially unchanged. Therefore, even if communication is attempted again, a communication error occurs (multiple communication errors). As a result, the communication terminal 1 determines that communication is impossible due to multiple communication errors (ST104, YES), transmits a PPS request (ST105), and requests a change in communication conditions, for example, a change in communication rate.

ICカード2は、通信端末1から受信したPPSリクエストをチェックし、有効か無効か判断する(ST106)。ICカード2がPPSリクエスト有効と判断すると(ST106、YES)、PPSレスポンスを送信する。同時に、PPSリクエストに基づき、PPSレスポンス送信後に、通信すべき通信プロトコル及び通信レートを判断し、これら通信プロトコル及び通信レートをRAM28に格納する(ST107)。同時に、不揮発性メモリ29のATR値(初期通信条件(初期値))をRAM28に格納した通信プロトコル及び通信レートへ書き換える。つまり、第1提示プロトコル及びTA1を書き換える。なお、PPSリクエストが無効であれば、通信プロトコル及び通信レートは変更されない。以降、通信端末1とICカード2の間で、アプリケーションが実行され、実行終了すると、ICカード2は非活性化される。   The IC card 2 checks the PPS request received from the communication terminal 1 and determines whether it is valid or invalid (ST106). When the IC card 2 determines that the PPS request is valid (ST106, YES), a PPS response is transmitted. At the same time, based on the PPS request, after transmitting the PPS response, the communication protocol and communication rate to be communicated are determined, and these communication protocol and communication rate are stored in the RAM 28 (ST107). At the same time, the ATR value (initial communication condition (initial value)) of the nonvolatile memory 29 is rewritten to the communication protocol and communication rate stored in the RAM 28. That is, the first presentation protocol and TA1 are rewritten. If the PPS request is invalid, the communication protocol and communication rate are not changed. Thereafter, the application is executed between the communication terminal 1 and the IC card 2, and when the execution is completed, the IC card 2 is deactivated.

再度、活性化された場合であって(ST101)、前回と同一の通信プロトコル及び通信レートで通信が可能であれば、PPSリクエスト及びPPSレスポンスにより通信プロトコル及び通信レートの変更処理は省略される。つまり、前回と同一の初期通信条件(前回、通信条件の書き換えが発生しなかった場合)で通信が可能な場合は、不揮発性メモリ29には初期通信条件が格納されており、不揮発性メモリ29に格納された初期通信条件が利用される。また、前回と同一の書き換えられた通信条件(前回、通信条件の書き換えが発生した場合)で通信可能な場合は、不揮発性メモリ29には書き換えられた通信条件が格納されており、不揮発性メモリ29に格納された書き換えられた通信条件が利用される。   If it is activated again (ST101) and communication is possible with the same communication protocol and communication rate as the previous time, the processing for changing the communication protocol and communication rate is omitted by the PPS request and the PPS response. That is, when communication is possible under the same initial communication conditions as in the previous time (when the communication conditions were not rewritten last time), the initial communication conditions are stored in the nonvolatile memory 29, and the nonvolatile memory 29 The initial communication condition stored in is used. Further, when communication is possible under the same rewritten communication condition as the previous time (when the communication condition is rewritten last time), the rewritten communication condition is stored in the non-volatile memory 29. The rewritten communication condition stored in 29 is used.

次に、図6を参照して、上記説明した第1回目の通信処理で通信条件が書き換えられ、その後の通信端末1とICカード2との第2回目以降の通信処理の一例をより詳細に説明する。図6に示すように、通信端末1は、ICカード2のコンタクト部21に、Vcc、GND、CLK、RESET信号を供給し、活性化シーケンスを起動する(ST201)。このときの電力供給レベル(Vcc)とRESET信号(RST)との関係は、Vcc:ローレベル(L)→ハイレベル(H)、RST:ローレベル(L)→ハイレベル(H)である。つまり、電力供給開始及びリセット信号出力の関係が成立するリセットを、図7に示すように、COLD_RESETと呼ぶ。   Next, referring to FIG. 6, the communication condition is rewritten in the first communication process described above, and an example of the second and subsequent communication processes between the communication terminal 1 and the IC card 2 is described in more detail. explain. As shown in FIG. 6, the communication terminal 1 supplies the Vcc, GND, CLK, and RESET signals to the contact unit 21 of the IC card 2 and activates the activation sequence (ST201). The relationship between the power supply level (Vcc) and the RESET signal (RST) at this time is Vcc: low level (L) → high level (H), and RST: low level (L) → high level (H). That is, the reset that satisfies the relationship between the start of power supply and the output of the reset signal is referred to as COLD_RESET as shown in FIG.

ICカード2は、通信端末1から活性化シーケンスが起動された場合、動作できるようスタートアップ処理を行い、不揮発性メモリ29から書き換えられているATR値(書き換えられている通信条件)を読み出し、ATR値を通信端末1へ送信する。同時に、不揮発性メモリ29に格納されている書き換えられているATR値から、通信すべき通信プロトコル、通信レートを判断し、RAM28に格納する(ST202)。   When the activation sequence is activated from the communication terminal 1, the IC card 2 performs a startup process so that it can operate, reads the rewritten ATR value (rewritten communication condition) from the nonvolatile memory 29, and the ATR value Is transmitted to the communication terminal 1. At the same time, the communication protocol and communication rate to be communicated are determined from the rewritten ATR value stored in the nonvolatile memory 29, and stored in the RAM 28 (ST202).

通信端末1(制御部11)は、ATR値に基づき、通信すべき通信プロトコル及び通信レートを判断する(ST203)。通信端末1は、これら通信プロトコル及び通信レート(書き換えられている通信条件)により通信可能と判断すると(ST204、NO)、これら通信プロトコル及び通信レートによる通信を開始し、通信端末1とICカード2の間でアプリケーションが実行され、実行終了すると、ICカード2は非活性化される。   Communication terminal 1 (control unit 11) determines a communication protocol and a communication rate to be communicated based on the ATR value (ST203). If the communication terminal 1 determines that communication is possible based on these communication protocols and communication rates (rewritten communication conditions) (NO in ST204), the communication terminal 1 starts communication using these communication protocols and communication rates, and the communication terminal 1 and the IC card 2 When the application is executed in between, and the execution is completed, the IC card 2 is deactivated.

逆に、通信端末1は、これら通信プロトコル及び通信レート(書き換えられている通信条件)により通信不能と判断すると(ST204、YES)、RESET信号を供給する(ST205)。このときの電力供給レベル(Vcc)とRESET信号(RST)との関係は、Vcc:ハイレベル(H)→ハイレベル(H)、RST:ローレベル(L)→ハイレベル(H)である。つまり、電力供給の継続及びリセット信号再出力の関係が成立するリセットを、図7に示すように、WARM_RESETと呼ぶ。   Conversely, when communication terminal 1 determines that communication is impossible based on these communication protocols and communication rates (rewritten communication conditions) (ST204, YES), it supplies a RESET signal (ST205). The relationship between the power supply level (Vcc) and the RESET signal (RST) at this time is Vcc: high level (H) → high level (H), and RST: low level (L) → high level (H). That is, the reset that satisfies the relationship between the continuation of power supply and the reset signal re-output is referred to as WARM_RESET as shown in FIG.

ICカード2は、WARM_RESETに基づき、書き換えられているATR値を初期値に書き戻す(ST206)。つまり、不揮発性メモリ29に格納されている書き換えられているATR値(書き換えられている通信条件)が初期値(初期通信条件)へ書き戻される。   The IC card 2 writes the rewritten ATR value back to the initial value based on WARM_RESET (ST206). That is, the rewritten ATR value (rewritten communication condition) stored in the nonvolatile memory 29 is written back to the initial value (initial communication condition).

その後、ICカード2は、動作できるようスタートアップ処理を行い、不揮発性メモリ29からATR値(初期通信条件(初期値))を読み出し、ATR値を通信端末1へ送信する。同時に、不揮発性メモリ29に格納されているATR値から、通信すべき通信プロトコル、通信レートを判断し、RAM28に格納する(ST207)。   Thereafter, the IC card 2 performs startup processing so that it can operate, reads the ATR value (initial communication condition (initial value)) from the nonvolatile memory 29, and transmits the ATR value to the communication terminal 1. At the same time, the communication protocol to be communicated and the communication rate are determined from the ATR value stored in the nonvolatile memory 29, and stored in the RAM 28 (ST207).

通信端末1(制御部11)は、ATR値に基づき、通信すべき通信プロトコル(第1提示プロトコル)及び通信レート(TA1の値)を判断する(ST208)。通信端末1は、これら通信プロトコル及び通信レートにより通信可能と判断すると(ST209、NO)、これら通信プロトコル及び通信レートによる通信を開始し、通信端末1とICカード2の間でアプリケーションが実行され、実行終了すると、ICカード2は非活性化される。   Communication terminal 1 (control unit 11) determines a communication protocol (first presentation protocol) and a communication rate (value of TA1) to be communicated based on the ATR value (ST208). When the communication terminal 1 determines that communication is possible based on these communication protocols and communication rates (ST209, NO), communication using these communication protocols and communication rates is started, and an application is executed between the communication terminal 1 and the IC card 2, When the execution is completed, the IC card 2 is deactivated.

逆に、通信端末1は、複数回通信エラーにより通信不能と判断し(ST209、YES)、PPSリクエストを送信し(ST210)、通信条件の変更、例えば通信レートの変更を要求する。   Conversely, the communication terminal 1 determines that communication is impossible due to multiple communication errors (ST209, YES), transmits a PPS request (ST210), and requests a change in communication conditions, for example, a change in communication rate.

ICカード2は、通信端末1から受信したPPSリクエストをチェックし、有効か無効か判断する(ST211)。ICカード2がPPSリクエスト有効と判断すると(ST211、YES)、PPSレスポンスを送信する。同時に、PPSリクエストに基づき、PPSレスポンス送信後に、通信すべき通信プロトコル及び通信レートを判断し、これら通信プロトコル及び通信レートをRAM28に格納する(ST212)。同時に、不揮発性メモリ29のATR値(初期通信条件(初期値))をRAM28に格納した通信プロトコル及び通信レートへ書き換える。つまり、第1提示プロトコル及びTA1を書き換える。なお、PPSリクエストが無効であれば、通信プロトコル及び通信レートは変更されない。以降、通信端末1とICカード2の間で、アプリケーションが実行され、実行終了すると、ICカード2は非活性化される。   The IC card 2 checks the PPS request received from the communication terminal 1 and determines whether it is valid or invalid (ST211). If the IC card 2 determines that the PPS request is valid (ST211, YES), it transmits a PPS response. At the same time, based on the PPS request, after transmitting the PPS response, the communication protocol and communication rate to be communicated are determined, and the communication protocol and communication rate are stored in the RAM 28 (ST212). At the same time, the ATR value (initial communication condition (initial value)) of the nonvolatile memory 29 is rewritten to the communication protocol and communication rate stored in the RAM 28. That is, the first presentation protocol and TA1 are rewritten. If the PPS request is invalid, the communication protocol and communication rate are not changed. Thereafter, the application is executed between the communication terminal 1 and the IC card 2, and when the execution is completed, the IC card 2 is deactivated.

次に、ATR値を書き換えることができないケースについて説明する。図8は、ATR値を書き換えることができない通信処理の一例を示すフローチャートである。   Next, a case where the ATR value cannot be rewritten will be described. FIG. 8 is a flowchart illustrating an example of communication processing in which the ATR value cannot be rewritten.

図8に示すように、通信端末は、ICカードに、Vcc、GND、CLK、RESET信号を供給し、活性化シーケンスを起動する(ST301)。   As shown in FIG. 8, the communication terminal supplies the Vcc, GND, CLK, and RESET signals to the IC card, and activates the activation sequence (ST301).

ICカードは、通信端末から活性化シーケンスが起動された場合、動作できるようスタートアップ処理を行い、不揮発性メモリからATR値(初期通信条件(初期値))を読み出し、ATR値を通信端末へ送信する。同時に、不揮発性メモリに格納されているATR値から、通信すべき通信プロトコル、通信レートを判断し、RAMに格納する(ST302)。   When the activation sequence is activated from the communication terminal, the IC card performs a startup process so that it can operate, reads the ATR value (initial communication condition (initial value)) from the nonvolatile memory, and transmits the ATR value to the communication terminal. . At the same time, the communication protocol and communication rate to be communicated are determined from the ATR value stored in the nonvolatile memory, and stored in the RAM (ST302).

通信端末は、ATR値に基づき、通信すべき通信プロトコル(第1提示プロトコル)及び通信レート(TA1の値)を判断する(ST303)。通信端末は、これら通信プロトコル及び通信レートにより通信可能と判断すると(ST304、NO)、これら通信プロトコル及び通信レートによる通信を開始し、通信端末とICカードの間でアプリケーションが実行され、実行終了すると、ICカードは非活性化される。   Based on the ATR value, the communication terminal determines the communication protocol to be communicated (first presentation protocol) and the communication rate (value of TA1) (ST303). When the communication terminal determines that communication is possible based on these communication protocols and communication rates (ST304, NO), the communication terminal starts communication using these communication protocols and communication rates, and when the application is executed between the communication terminal and the IC card, the execution ends. The IC card is deactivated.

逆に、通信端末は、これら通信プロトコル及び通信レートにより通信不能と判断すると(ST304、YES)、PPSリクエストを送信し(ST305)、通信条件の変更、例えば通信レートの変更を要求する。   Conversely, when the communication terminal determines that communication is impossible based on these communication protocols and communication rates (ST304, YES), the communication terminal transmits a PPS request (ST305) and requests a change in communication conditions, for example, a change in communication rate.

ICカードは、通信端末から受信したPPSリクエストをチェックし、有効か無効か判断する(ST306)。ICカードがPPSリクエスト有効と判断すると(ST306、YES)、PPSレスポンスを送信する。同時に、PPSリクエストに基づき、PPSレスポンス送信後に、通信すべき通信プロトコル及び通信レートを判断し、これら通信プロトコル及び通信レートをRAMに格納する(ST307)。なお、PPSリクエストが無効であれば、通信プロトコル及び通信レートは変更されない。以降、通信端末とICカードの間で、アプリケーションが実行され、実行終了すると、ICカードは非活性化される。   The IC card checks the PPS request received from the communication terminal and determines whether it is valid or invalid (ST306). If the IC card determines that the PPS request is valid (ST306, YES), it transmits a PPS response. At the same time, based on the PPS request, after transmitting the PPS response, the communication protocol and communication rate to be communicated are determined, and the communication protocol and communication rate are stored in the RAM (ST307). If the PPS request is invalid, the communication protocol and communication rate are not changed. Thereafter, the application is executed between the communication terminal and the IC card, and when the execution is completed, the IC card is deactivated.

再度、活性化された場合であって(ST301)、初期通信条件で通信が可能な場合に限り不揮発性メモリ29に格納されている初期通信条件を利用することができ(通信条件の変更処理は不要)、前回と同一の変更された通信条件で通信が可能な場合には不揮発性メモリ29に格納されている初期通信条件を利用することはできず、再度の通信条件の変更処理が必要となる。つまり、このようなケースでは、ATR送信、PPS交換という同一のシーケンスを活性化毎に踏む必要がある。   If it is activated again (ST301), the initial communication condition stored in the non-volatile memory 29 can be used only when communication is possible under the initial communication condition (communication condition change processing is performed). Unnecessary), when communication is possible under the same changed communication conditions as the previous time, the initial communication conditions stored in the non-volatile memory 29 cannot be used, and it is necessary to change the communication conditions again. Become. That is, in such a case, it is necessary to follow the same sequence of ATR transmission and PPS exchange every activation.

以下に、本実施形態についてまとめる。   The present embodiment will be summarized below.

ICカード2は、前回変更した通信条件(通信プロトコル及び通信レート)を不揮発性メモリ29により記憶し、今回の通信で最初に不揮発性メモリ29に記憶された通信条件を利用する。より具体的には、ICカード2は、COLD_RESETに基づき不揮発性メモリ29に記憶された通信条件(前回の通信条件)を提示し、WARM_RESETに基づき不揮発性メモリ29に記憶された通信条件(前回の通信条件)を初期通信条件に書き戻して、書き戻した初期通信条件を提示する。これにより、前回と同じ通信条件で通信可能な場合に通信条件の変更処理が不要となり、前回と同じ通信条件で通信不能な場合には初期通信条件により通信がトライされる(この場合も変更処理は不要)。書き戻された初期通信条件でも通信不能な場合に、通信条件の変更処理が実行される。   The IC card 2 stores the previously changed communication conditions (communication protocol and communication rate) in the nonvolatile memory 29 and uses the communication conditions initially stored in the nonvolatile memory 29 in the current communication. More specifically, the IC card 2 presents the communication condition (previous communication condition) stored in the nonvolatile memory 29 based on COLD_RESET, and the communication condition (previous communication condition) stored in the nonvolatile memory 29 based on WARM_RESET. (Communication condition) is written back to the initial communication condition, and the written initial communication condition is presented. This eliminates the need to change the communication conditions when communication is possible under the same communication conditions as the previous time. If communication is not possible under the same communication conditions as the previous time, communication is tried according to the initial communication conditions (also in this case, the change process). Is not required). If communication is impossible even with the initial communication condition written back, a process for changing the communication condition is executed.

従来は、ICカードが前回と同一の端末に接続され、同一の通信プロトコル、通信レートで通信を行う場合でも、端末とICカードでPPS交換を行うという手順が必要であり、毎回同じ手順を踏む必要があった。本実施形態により、PPS交換が成功した時、その通信プロトコル、通信レートが、第一提示プロトコルとなるように、ATR値を書き換えることにより、次回、活性化された時に、前回と同じ通信プロトコル、通信レートになる。これにより、PPS交換を省略することができる。   Conventionally, even when an IC card is connected to the same terminal as the previous one and communicates with the same communication protocol and communication rate, a procedure for PPS exchange between the terminal and the IC card is necessary, and the same procedure is followed each time. There was a need. According to the present embodiment, when the PPS exchange is successful, when the communication protocol and communication rate are activated next time by rewriting the ATR value so that the communication protocol and communication rate become the first presentation protocol, It becomes a communication rate. Thereby, the PPS exchange can be omitted.

なお、本願発明は、上記実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、各実施形態は可能な限り適宜組み合わせて実施してもよく、その場合組み合わせた効果が得られる。更に、上記実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適当な組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除された構成が発明として抽出され得る。   Note that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the invention in the implementation stage. In addition, the embodiments may be appropriately combined as much as possible, and in that case, the combined effect can be obtained. Further, the above embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment, the problem described in the column of the problem to be solved by the invention can be solved, and the effect described in the column of the effect of the invention Can be obtained as an invention.

図1は、本発明の一実施形態に係る通信システムの概略構成を示す図である。FIG. 1 is a diagram showing a schematic configuration of a communication system according to an embodiment of the present invention. 図2は、本発明の一実施形態に係るICカードの概略構成を示す図である。FIG. 2 is a diagram showing a schematic configuration of an IC card according to an embodiment of the present invention. 図3は、ICカードのRAMに格納されるデータの一例を示す図である。FIG. 3 is a diagram illustrating an example of data stored in the RAM of the IC card. 図4は、ICカードの不揮発性メモリに格納されるデータの一例を示す図である。FIG. 4 is a diagram illustrating an example of data stored in the nonvolatile memory of the IC card. 図5は、通信端末とICカードとの第1回目の通信処理(ATR書き換え可能)の一例を示すフローチャートである。FIG. 5 is a flowchart showing an example of the first communication process (ATR rewriting is possible) between the communication terminal and the IC card. 図6は、第1回目の通信処理で通信条件が書き換えられ、その後の通信端末とICカードとの第2回目以降の通信処理(ATR書き換え可能)の一例を説明するためのフローチャートである。FIG. 6 is a flowchart for explaining an example of the second and subsequent communication processes (ATR rewrite is possible) between the communication terminal and the IC card after the communication conditions are rewritten in the first communication process. 図7は、COLD_RESETとWARM_RESETを説明するための図である。FIG. 7 is a diagram for explaining COLD_RESET and WARM_RESET. 図8は、ATR値を書き換えることができない通信処理の一例を示すフローチャートである。FIG. 8 is a flowchart illustrating an example of communication processing in which the ATR value cannot be rewritten.

符号の説明Explanation of symbols

1…通信端末、2…ICカード(情報通信媒体)、11…制御部、12…ディスプレイ、13…キーボード、14…カードリーダ/ライタ、15…テンキー、21…コンタクト部、23…電力供給回路、24…受信回路、25…送信回路、26…制御部、27…ROM、28…RAM、29…不揮発性メモリ DESCRIPTION OF SYMBOLS 1 ... Communication terminal, 2 ... IC card (information communication medium), 11 ... Control part, 12 ... Display, 13 ... Keyboard, 14 ... Card reader / writer, 15 ... Numeric keypad, 21 ... Contact part, 23 ... Power supply circuit, 24 ... Receiving circuit 25 ... Transmitting circuit 26 ... Control unit 27 ... ROM 28 ... RAM 29 ... Non-volatile memory

Claims (9)

モジュールが埋め込まれたカード本体により構成される情報通信媒体であって、
前記モジュールは、
複数の通信条件の中の初期通信条件を記憶する記憶手段と、
外部機器と通信する通信手段と、
前記通信手段を介して前記外部機器からの通信条件の要求を受信し、前記通信手段を介して前記外部機器に対して前記記憶手段に記憶された前記初期通信条件を送信し、前記通信手段を介して前記外部機器からの通信条件の変更要求を受信することに基づき前記記憶手段に記憶されている前記初期通信条件を変更要求された通信条件へ書き換える制御手段と、
を備えたことを特徴とする情報通信媒体。
An information communication medium composed of a card body in which a module is embedded,
The module is
Storage means for storing an initial communication condition among a plurality of communication conditions;
A communication means for communicating with an external device;
A request for communication conditions from the external device is received via the communication means, the initial communication conditions stored in the storage means are transmitted to the external device via the communication means, and the communication means is Control means for rewriting the initial communication condition stored in the storage means to the communication condition requested to be changed based on receiving the communication condition change request from the external device via
An information communication medium comprising:
前記通信手段は、通信条件書き換え後に受信した通信条件の要求に対応して、書き換えられた書換通信条件を送信することを特徴とする請求項1に記載の情報通信媒体。   The information communication medium according to claim 1, wherein the communication unit transmits the rewritten communication condition rewritten in response to the request for the communication condition received after rewriting the communication condition. 前記制御手段は、前記通信手段を介して前記書換通信条件での通信エラーの受信に基づき前記記憶手段に記憶されている前記書換通信条件を前記初期通信条件へ書き戻し、前記通信手段を介して書き戻した前記初期通信条件を送信することを特徴とする請求項2に記載の情報通信媒体。   The control means writes back the rewrite communication condition stored in the storage means to the initial communication condition based on reception of a communication error under the rewrite communication condition via the communication means, and via the communication means The information communication medium according to claim 2, wherein the written initial communication condition is transmitted. モジュールが埋め込まれたカード本体により構成される情報通信媒体であって、
前記モジュールは、
複数の通信条件の中の初期通信条件を記憶する記憶手段と、
外部機器と通信する通信手段と、
前記通信手段を介して前記外部機器からの活性化の要求を受信し、電力供給開始及びリセット信号出力に基づき前記通信手段を介して前記外部機器に対して前記記憶手段に記憶された前記初期通信条件を送信し、前記通信手段を介して前記外部機器からの通信条件の変更要求を受信することに基づき前記記憶手段に記憶されている前記初期通信条件を変更要求された通信条件へ書き換える制御手段と、
を備えたことを特徴とする情報通信媒体。
An information communication medium composed of a card body in which a module is embedded,
The module is
Storage means for storing an initial communication condition among a plurality of communication conditions;
A communication means for communicating with an external device;
The initial communication received from the external device via the communication means and stored in the storage means for the external device via the communication means based on the power supply start and reset signal output Control means for transmitting a condition and rewriting the initial communication condition stored in the storage means to the communication condition requested to be changed based on receiving a request for changing the communication condition from the external device via the communication means When,
An information communication medium comprising:
前記通信手段は、通信条件書き換え後に受信した活性化の要求に対応して、書き換えられた書換通信条件を送信することを特徴とする請求項4に記載の情報通信媒体。   5. The information communication medium according to claim 4, wherein the communication means transmits the rewritten communication condition rewritten in response to the activation request received after rewriting the communication condition. 前記制御手段は、前記通信手段を介する前記書換通信条件での通信エラー受信時の電力供給の継続及びリセット信号再出力に基づき前記記憶手段に記憶されている前記書換通信条件を前記初期通信条件へ書き戻し、前記通信手段を介して書き戻した前記初期通信条件を送信することを特徴とする請求項5に記載の情報通信媒体。   The control means changes the rewrite communication condition stored in the storage means to the initial communication condition based on continuation of power supply upon reception of a communication error under the rewrite communication condition via the communication means and reset signal re-output. 6. The information communication medium according to claim 5, wherein the initial communication condition written back and transmitted via the communication means is transmitted. 外部機器からの通信条件の要求を受信し、
前記外部機器に対して初期通信条件を送信し、
前記外部機器からの通信条件の変更要求を受信することに基づき前記初期通信条件を変更要求された通信条件へ書き換える、
ことを特徴とする通信条件制御方法。
Receives communication condition requests from external devices,
Send initial communication conditions to the external device,
Rewriting the initial communication condition to the requested communication condition based on receiving the communication condition change request from the external device,
A communication condition control method characterized by the above.
通信条件書き換え後に受信した通信条件の要求に対応して、書き換えられた書換通信条件を送信することを特徴とする請求項7に記載の通信条件制御方法。   8. The communication condition control method according to claim 7, wherein the rewritten communication condition that has been rewritten is transmitted in response to the request for the communication condition received after rewriting the communication condition. 前記書換通信条件での通信エラーの受信に基づき前記書換通信条件を前記初期通信条件へ書き戻し、書き戻した前記初期通信条件を送信することを特徴とする請求項8に記載の通信条件制御方法。   9. The communication condition control method according to claim 8, wherein the rewritten communication condition is written back to the initial communication condition based on reception of a communication error in the rewritten communication condition, and the rewritten initial communication condition is transmitted. .
JP2006171854A 2006-06-21 2006-06-21 Information communication medium and communication condition control method Pending JP2008003811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006171854A JP2008003811A (en) 2006-06-21 2006-06-21 Information communication medium and communication condition control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006171854A JP2008003811A (en) 2006-06-21 2006-06-21 Information communication medium and communication condition control method

Publications (1)

Publication Number Publication Date
JP2008003811A true JP2008003811A (en) 2008-01-10

Family

ID=39008145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006171854A Pending JP2008003811A (en) 2006-06-21 2006-06-21 Information communication medium and communication condition control method

Country Status (1)

Country Link
JP (1) JP2008003811A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011060002A (en) * 2009-09-10 2011-03-24 Dainippon Printing Co Ltd Ic chip, ic card, and initial response data transmitting method
JP2013105280A (en) * 2011-11-11 2013-05-30 Dainippon Printing Co Ltd Ic card and computer program for ic card

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011060002A (en) * 2009-09-10 2011-03-24 Dainippon Printing Co Ltd Ic chip, ic card, and initial response data transmitting method
JP2013105280A (en) * 2011-11-11 2013-05-30 Dainippon Printing Co Ltd Ic card and computer program for ic card

Similar Documents

Publication Publication Date Title
JP4817836B2 (en) Card and host equipment
JP2006011818A (en) Portable electronic device and method for controlling portable electronic device
JP3958243B2 (en) IC card and its OS startup method
JP2002123806A (en) Ic card, data update control method, data/message restoration control method, and storage medium with control program recorded thereon
JP2006236200A (en) Card type storage device and host device thereof
JP5103803B2 (en) IC card with mode change function and IC card program
JP2008003811A (en) Information communication medium and communication condition control method
JP2011022841A (en) Processing system for portable electronic apparatus, portable electronic apparatus, and processing apparatus for portable electronic apparatus
JP4904966B2 (en) IC card with mode change function and IC card program
JP2007087168A (en) Composite portable electronic device and composite ic card
JP2007115187A (en) Portable electronic device and ic card
JP3718564B2 (en) IC card
JP4590201B2 (en) Data carrier and data carrier program
JP7439847B2 (en) Electronic information storage medium, key data setting method, and program
JP4840012B2 (en) IC card with mode change function and IC card program
JP2013122690A (en) Ic card, portable electronic device and ic card control method
JP2930258B2 (en) Portable electronic devices
JP5693824B2 (en) IC card processing device, IC card, and IC card processing system
JP2006172271A (en) Multi-application ic card, and program for ic card
US8074023B2 (en) In-system programming to switch memory access from one area to another in memory cards
JP2006293706A (en) Multi-application ic card with application updating function
JP7444197B2 (en) Electronic information storage medium, cryptographic operation method selection method, and program
JP7468757B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RESPONSE TRANSMISSION METHOD, AND PROGRAM
JP2004185419A (en) Portable electronic medium, issuing system of portable electronic medium, processing method, and issuing method
JP5341947B2 (en) IC card, control method of IC card, and control method of portable electronic device