[go: up one dir, main page]

JP2014071522A - Ic card, ic card processing program, and communication method - Google Patents

Ic card, ic card processing program, and communication method Download PDF

Info

Publication number
JP2014071522A
JP2014071522A JP2012215156A JP2012215156A JP2014071522A JP 2014071522 A JP2014071522 A JP 2014071522A JP 2012215156 A JP2012215156 A JP 2012215156A JP 2012215156 A JP2012215156 A JP 2012215156A JP 2014071522 A JP2014071522 A JP 2014071522A
Authority
JP
Japan
Prior art keywords
speed communication
external device
card
communication
low
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
JP2012215156A
Other languages
Japanese (ja)
Inventor
Masanari Yamada
真生 山田
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2012215156A priority Critical patent/JP2014071522A/en
Publication of JP2014071522A publication Critical patent/JP2014071522A/en
Pending legal-status Critical Current

Links

Images

Abstract

【課題】低速通信状態から高速通信状態へ遷移する際に通信誤りが発生した場合であっても、迅速に正常な通信状態へ復帰するための手段を講じさせることが可能なICカード、ICカードの処理プログラム、及び通信方法を提供する。
【解決手段】ICカード1は、低速通信が設定されているときに読取装置2から高速通信要求を受信した場合、高速通信応答を読取装置2へ送信し、且つ低速通信から高速通信に設定変更し、その後、読取装置2から受信した命令を解釈できない場合、該命令の再送要求を該読取装置2へ送信することなく、処理を停止する。
【選択図】図3
An IC card and an IC card capable of taking a means for quickly returning to a normal communication state even when a communication error occurs when transitioning from a low-speed communication state to a high-speed communication state A processing program and a communication method are provided.
When a high speed communication request is received from a reading device 2 when low speed communication is set, the IC card 1 transmits a high speed communication response to the reading device 2 and changes the setting from low speed communication to high speed communication. Thereafter, when the command received from the reading device 2 cannot be interpreted, the process is stopped without transmitting a retransmission request for the command to the reading device 2.
[Selection] Figure 3

Description

本発明は、外部機器との間で低速通信と高速通信との何れかを選択して設定可能なICカードの技術分野に関する。   The present invention relates to a technical field of an IC card that can be set by selecting either low-speed communication or high-speed communication with an external device.

暗号解読技術の進歩により、ITシステムは高いセキュリティレベルを要求されつつある。強固なITシステムを実現するために、そのセキュリティを司る暗号鍵の長さも次第に伸長され、それに伴って通信データ量も拡大の一途を辿っている。大量のデータをストレスなく送受信するためには、通信速度を高めて、瞬時に大量のデータを交換する必要がある。高速な通信は、接続された双方の機器が高速通信可能な機能を備えていなければ実現できず、片方だけが備えていたとしても実現できるものではない。そのため、不特定多数の機器が相互に接続されるITシステムにおいて高いセキュリティを実現し、かつ、いずれの機器も支障なく通信できることを保証するためには、それぞれの機器の起動時にはいかなる機器が相手であっても動作可能な通信速度に設定しておき、高速通信機能を持った機器同士が接続されていることを認識した後に高速通信を開始するような通信規約が必要となる。   Due to advances in cryptanalysis technology, IT systems are being required to have a high security level. In order to realize a strong IT system, the length of the encryption key that controls the security is gradually expanded, and the amount of communication data is steadily expanding accordingly. In order to transmit and receive large amounts of data without stress, it is necessary to increase the communication speed and exchange large amounts of data instantaneously. High-speed communication cannot be realized unless both connected devices have a function capable of high-speed communication, and even if only one of them has. Therefore, in order to achieve high security in an IT system in which a large number of unspecified devices are connected to each other, and to ensure that any device can communicate without any problem, any device is the other party when starting each device. Even if it exists, it is set to a communication speed that can be operated, and a communication protocol that starts high-speed communication after recognizing that devices having a high-speed communication function are connected is required.

例えば、特許文献1に開示されたICカードでは、低速通信プロトコルで通信する低速インターフェイスと、高速通信プロトコルで通信する高速インターフェイスとを備えており、低速インターフェイスを通して外部機器からリセット信号を受信した場合に、当該リセット信号に応じて高速通信プロトコル情報を含む初期応答情報(ATR(Answer To Reset))を低速通信で外部機器へ送信するようになっている。これにより、ICカードは、高速通信プロトコル情報に応じて外部機器から、高速通信への設定変更の要求を受信すると、低速通信から高速通信に設定変更、つまり、通信速度を変更し、その後は外部機器との間で高速通信を行う。   For example, the IC card disclosed in Patent Document 1 includes a low-speed interface that communicates with a low-speed communication protocol and a high-speed interface that communicates with a high-speed communication protocol, and when a reset signal is received from an external device through the low-speed interface. In response to the reset signal, initial response information (ATR (Answer To Reset)) including high-speed communication protocol information is transmitted to an external device by low-speed communication. As a result, when the IC card receives a request to change the setting from the external device to the high-speed communication according to the high-speed communication protocol information, the IC card changes the setting from the low-speed communication to the high-speed communication. High-speed communication with equipment.

ところで、高速通信によって伝達される電気的な信号は、ノイズの影響を非常に受けやすい。ノイズは回路素子やケーブルの特性によって発生する内部的なノイズと、電磁波等の影響によって発生する外部的なノイズに分類できるが、高速通信による信号間隔の短い通信形態においては、いずれのノイズも信号の読み取りを誤らせる原因となる。一般的な通信規約には、異常な信号を受信した際に実施すべき誤り訂正や再送要求等の取り扱いを定めたルールが存在する。これは特に高速通信中に発生しやすい信号の誤りに対して、速やかに誤りを解消し、正常な通信状態へ復帰するために有効な手段である。   By the way, an electrical signal transmitted by high-speed communication is very susceptible to noise. Noise can be classified into internal noise generated by the characteristics of circuit elements and cables, and external noise generated by the influence of electromagnetic waves, etc., but in the communication mode with a short signal interval by high-speed communication, any noise is a signal. It may cause the reading error. In general communication rules, there are rules that define the handling of error correction, retransmission request, and the like that should be performed when an abnormal signal is received. This is an effective means for quickly resolving an error and returning to a normal communication state for a signal error that is likely to occur during high-speed communication.

特表2009−527044号公報Special table 2009-527044 gazette

しかしながら、高速通信中に発生した誤りは比較的容易に解消できるが、低速通信状態から高速通信状態への切り替え中に発生した誤りに対する挙動は、通信中の機器同士が相互に異なった解釈に陥り、誤りが解決せずに正常な通信状態へ復帰できなくなる場合がある。   However, errors that occur during high-speed communication can be resolved relatively easily, but the behavior for errors that occur during switching from the low-speed communication state to the high-speed communication state is interpreted differently by the devices that are communicating. In some cases, the error cannot be resolved and the normal communication state cannot be restored.

そこで、本発明は、上記点等に鑑みてなされたものであり、低速通信状態から高速通信状態へ遷移する際に通信誤りが発生した場合であっても、迅速に正常な通信状態へ復帰するための手段を講じさせることが可能なICカード、ICカードの処理プログラム、及び通信方法を提供することを目的とする。   Therefore, the present invention has been made in view of the above points and the like, and even when a communication error occurs when transitioning from the low-speed communication state to the high-speed communication state, the normal communication state is quickly restored. An object of the present invention is to provide an IC card, a processing program for the IC card, and a communication method capable of taking measures for the purpose.

上記課題を解決するために、請求項1に記載の発明は、外部機器との間で低速通信と高速通信との何れかを選択して設定可能なICカードであって、前記低速通信が設定されているときに前記外部機器から高速通信への設定変更の要求を受信した場合、前記設定変更の承諾を示す電文を該外部機器へ送信し、且つ前記低速通信から高速通信に設定変更する設定変更手段と、前記電文が前記外部機器へ送信された後、該外部機器から受信した命令を解釈できない場合、該命令の再送要求を該外部機器へ送信することなく、処理を停止する処理停止手段と、を備えることを特徴とする。   In order to solve the above problems, the invention according to claim 1 is an IC card that can be set by selecting either low speed communication or high speed communication with an external device, and the low speed communication is set. When a request for changing the setting from the external device to high-speed communication is received from the external device, a message indicating acceptance of the setting change is transmitted to the external device, and the setting is changed from the low-speed communication to the high-speed communication. A changing means and a process stopping means for stopping the process without transmitting a request for retransmission of the command to the external device when the command received from the external device cannot be interpreted after the message is transmitted to the external device. And.

請求項2に記載の発明は、請求項1に記載のICカードにおいて、前記電文が前記外部機器へ送信された後に該外部機器から送信される前記命令は、低速通信により送信される命令であることを特徴とする。   According to a second aspect of the present invention, in the IC card according to the first aspect, the command transmitted from the external device after the telegram is transmitted to the external device is a command transmitted by low-speed communication. It is characterized by that.

請求項3に記載の発明は、外部機器との間で低速通信と高速通信との何れかを選択して設定可能なICカードに含まれるコンピュータを、前記低速通信が設定されているときに前記外部機器から高速通信への設定変更の要求を受信した場合、前記設定変更の承諾を示す電文を該外部機器へ送信し、且つ前記低速通信から高速通信に設定変更するステップと、前記電文が前記外部機器へ送信された後、該外部機器から受信した命令を解釈できない場合、該命令の再送要求を該外部機器へ送信することなく、処理を停止するステップと、を実行させることを特徴とする。   According to a third aspect of the present invention, there is provided a computer included in an IC card that can be set by selecting either low speed communication or high speed communication with an external device when the low speed communication is set. When receiving a setting change request from an external device to high-speed communication, transmitting a message indicating acceptance of the setting change to the external device and changing the setting from low-speed communication to high-speed communication; and When the command received from the external device cannot be interpreted after being transmitted to the external device, the step of stopping the processing without transmitting a retransmission request for the command to the external device is executed. .

請求項4に記載の発明は、外部機器との間で低速通信と高速通信との何れかを選択して設定可能なICカードにより行われる通信方法であって、前記低速通信が設定されているときに前記外部機器から高速通信への設定変更の要求を受信した場合、前記設定変更の承諾を示す電文を該外部機器へ送信し、且つ前記低速通信から高速通信に設定変更するステップと、前記電文が前記外部機器へ送信された後、該外部機器から受信した命令を解釈できない場合、該命令の再送要求を該外部機器へ送信することなく、処理を停止するステップと、を含むことを特徴とする。   The invention according to claim 4 is a communication method performed by an IC card that can be set by selecting either low-speed communication or high-speed communication with an external device, wherein the low-speed communication is set. When receiving a setting change request from the external device to high-speed communication, transmitting a message indicating acceptance of the setting change to the external device, and changing the setting from the low-speed communication to the high-speed communication, And a step of stopping the process without transmitting a request for retransmission of the command to the external device when the command received from the external device cannot be interpreted after the message is transmitted to the external device. And

本発明によれば、低速通信状態から高速通信状態へ遷移する際に通信誤りが発生した場合であっても、迅速に正常な通信状態へ復帰するための手段を講じさせることができる。   According to the present invention, even when a communication error occurs when transitioning from a low-speed communication state to a high-speed communication state, a means for quickly returning to a normal communication state can be taken.

ICカードに搭載されるICチップの概要構成例を示すブロック図である。It is a block diagram which shows the example of a schematic structure of the IC chip mounted in an IC card. 低速通信状態から高速通信状態へ遷移する際に通信誤りが発生した場合の従来の挙動の一例を示す図である。It is a figure which shows an example of the conventional behavior when a communication error generate | occur | produces when changing from a low-speed communication state to a high-speed communication state. 本実施形態に係るICカード1におけるCPU11の処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process of CPU11 in the IC card 1 which concerns on this embodiment.

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

先ず、図1を参照して、ICカードに搭載されるICチップ(例えば1チップマイクロコンピュータ)の構成及び機能等について説明する。図1は、ICカードに搭載されるICチップの概要構成例を示すブロック図である。ICカード1は、読取装置(リーダライタ)2との間で低速通信と高速通信との何れかを選択して設定可能になっている。ICカード1は、金融、通信、交通等の様々な分野で用いられるICカードの他、携帯電話機やスマートホン等の携帯端末に搭載されるICカードとして適用可能である。読取装置2は、ICカード1の対向機器である外部機器の一例である。   First, with reference to FIG. 1, the configuration and functions of an IC chip (for example, a one-chip microcomputer) mounted on an IC card will be described. FIG. 1 is a block diagram illustrating a schematic configuration example of an IC chip mounted on an IC card. The IC card 1 can be set by selecting either low-speed communication or high-speed communication with the reading device (reader / writer) 2. The IC card 1 can be applied as an IC card mounted on a portable terminal such as a mobile phone or a smart phone, in addition to an IC card used in various fields such as finance, communication, and traffic. The reading device 2 is an example of an external device that is a device opposite to the IC card 1.

図1に示すように、ICチップCは、信号処理を担うCPU(Central Processing Unit)11、ROM(Read Only Memory)12、不揮発性メモリ(例えばフラッシュメモリやEEPROM)13、データを一時記憶するRAM(Random Access Memory)14、及びI/Oポート(入出力ポート)15等を備えている。I/Oポート15は、図1に示すように、ISO/IEC7816等によって定められた、C1〜C8の8個の端子を有する。ここで、C1端子は電源端子(VCC)であり、C5端子はグランド端子(GND)である。また、C2端子は、リセット端子(RST)であり、読取装置2からリセット信号を入力するために用いられる。また、C3端子は、クロック端子(CLK)であクロック信号を入力するために用いられる。C7端子は、読取装置2との間のインターフェイスを担う端子であり、読取装置2との間の通信のために用いられる。   As shown in FIG. 1, an IC chip C includes a CPU (Central Processing Unit) 11 that performs signal processing, a ROM (Read Only Memory) 12, a nonvolatile memory (for example, a flash memory or an EEPROM) 13, and a RAM that temporarily stores data. (Random Access Memory) 14 and an I / O port (input / output port) 15 are provided. As shown in FIG. 1, the I / O port 15 has eight terminals C1 to C8 defined by ISO / IEC7816 or the like. Here, the C1 terminal is a power supply terminal (VCC), and the C5 terminal is a ground terminal (GND). The C2 terminal is a reset terminal (RST) and is used for inputting a reset signal from the reading device 2. The C3 terminal is a clock terminal (CLK) used for inputting a clock signal. The C7 terminal is a terminal that serves as an interface with the reading device 2 and is used for communication with the reading device 2.

ROM12又は不揮発性メモリ13には、オペレーティングシステム、及び本発明の処理プログラムが予め記憶されている。ROM12又は不揮発性メモリ13には、ATR(ATR情報)等が予め記憶されている。   The ROM 12 or the non-volatile memory 13 stores an operating system and the processing program of the present invention in advance. The ROM 12 or the nonvolatile memory 13 stores ATR (ATR information) and the like in advance.

CPU11は、本発明の処理プログラムを実行することにより、本発明の設定変更手段及び処理停止手段として機能する。これにより、CPU11は、低速通信が設定されているときに読取装置2から高速通信への設定変更の要求(以下、「高速通信要求」という)を受信した場合、高速通信への設定変更の承諾を示す(つまり、速度設定の変更を承諾した旨を示す)応答(以下、「高速通信応答」という)を該読取装置2へ送信し、且つ低速通信から高速通信に設定変更する。そして、CPU11は、上記高速通信応答が読取装置2へ送信された後、該読取装置2から受信した命令を解釈できない場合、該命令の再送要求を該読取装置2へ送信することなく、処理を停止するようになっている。これにより、低速通信状態から高速通信状態へ遷移する際に通信誤りが発生した場合であっても、迅速に正常な(通常の)通信状態へ復帰するための手段を講じることが可能となる。   The CPU 11 functions as a setting change unit and a process stop unit of the present invention by executing the processing program of the present invention. As a result, when the CPU 11 receives a setting change request to the high speed communication (hereinafter referred to as “high speed communication request”) from the reading device 2 when the low speed communication is set, the CPU 11 accepts the setting change to the high speed communication. A response indicating that the change of the speed setting has been accepted (hereinafter referred to as “high-speed communication response”) is transmitted to the reading device 2 and the setting is changed from low-speed communication to high-speed communication. When the instruction received from the reading device 2 cannot be interpreted after the high-speed communication response is transmitted to the reading device 2, the CPU 11 performs processing without transmitting a retransmission request for the command to the reading device 2. It comes to stop. As a result, even if a communication error occurs when transitioning from the low-speed communication state to the high-speed communication state, it is possible to take measures for quickly returning to the normal (normal) communication state.

ここで、図2を参照して、低速通信状態から高速通信状態へ遷移する際に通信誤りが発生した場合の従来の挙動について説明する。図2は、低速通信状態から高速通信状態へ遷移する際に通信誤りが発生した場合の従来の挙動の一例を示す図である。従来のICカードと読取装置2は低速通信に設定された通信状態から挙動を開始する。図2において、読取装置2は、通信状態を高速に設定するために、ICカードへ高速通信要求を送信する(ステップS101)。高速通信要求に応じることが可能なICカードは、高速通信要求を受信した場合、高速切換処理を実行することで、高速通信への設定変更の承諾を示す電文(メッセージ)を含む高速通信応答(言い換えれば、速度設定変更承諾)を読取装置2へ送信し(ステップS102)、当該送信が完了した直後に低速通信から高速通信に設定変更(つまり、速度設定を変更)する。これにより、まだ低速通信状態のままである読取装置2へ低速通信により高速通信応答が送信され(つまり、低速の応答メッセージが送信され)、高速通信状態に切り換わった読取装置2から送信される後続の命令を受信することが可能になる。しかし、ICカードから送信された高速通信応答に含まれる設定変更の承諾を示す電文にノイズが発生し、ICカードから読取装置2へ届くまでの間に信号の形状が異常になってしまった場合(つまり、通信誤りが発生した場合)には、読取装置2から送信された高速通信要求がICカードによって承諾されたことを確認できないため、読取装置2の通信速度は変更されずに低速通信の設定が維持される。こうして、低速通信状態の読取装置2は、受信誤り判定処理により通信誤りを判定すると、電文の再送要求(命令)を低速通信によりICカードへ送信する(ステップS103)。一方、読取装置2から再送要求を受信したICカードは、既に高速通信状態に設定を変更しているため、読取装置2からの再送要求を解釈できない(言い換えれば、正確に読み取ることができない)。これにより、ICカードは、受信誤り判定処理により通信誤りを判定すると、命令の再送要求を高速通信により読取装置2へ送信することになる(ステップS104)。その後、このようなやり取りは、予め設定されたリトライ回数に応じて行われる。つまり、ICカードと読取装置2とは相互に異なった解釈に陥り、誤りが解決せずに正常な通信状態へ復帰できなくなる。   Here, with reference to FIG. 2, the conventional behavior when a communication error occurs when transitioning from the low-speed communication state to the high-speed communication state will be described. FIG. 2 is a diagram illustrating an example of conventional behavior when a communication error occurs when transitioning from a low-speed communication state to a high-speed communication state. The conventional IC card and the reading device 2 start to behave from a communication state set to low-speed communication. In FIG. 2, the reading device 2 transmits a high-speed communication request to the IC card in order to set the communication state at high speed (step S101). When an IC card capable of responding to a high-speed communication request receives a high-speed communication request, a high-speed communication response including a message (message) indicating acceptance of a setting change to high-speed communication is performed by executing high-speed switching processing ( In other words, a speed setting change approval) is transmitted to the reading device 2 (step S102), and the setting is changed from low speed communication to high speed communication (that is, the speed setting is changed) immediately after the transmission is completed. Thereby, a high-speed communication response is transmitted by low-speed communication (that is, a low-speed response message is transmitted) to the reading device 2 that is still in the low-speed communication state, and is transmitted from the reading device 2 that has been switched to the high-speed communication state. Subsequent instructions can be received. However, when a noise is generated in a message indicating acceptance of the setting change included in the high-speed communication response transmitted from the IC card, and the signal shape becomes abnormal before reaching the reading device 2 from the IC card. (That is, when a communication error occurs), since it is not possible to confirm that the high-speed communication request transmitted from the reading device 2 has been accepted by the IC card, the communication speed of the reading device 2 is not changed and the low-speed communication Settings are maintained. Thus, when the reading device 2 in the low-speed communication state determines a communication error by the reception error determination process, it transmits a message retransmission request (command) to the IC card by low-speed communication (step S103). On the other hand, since the IC card that has received the retransmission request from the reading device 2 has already been changed to the high-speed communication state, the retransmission request from the reading device 2 cannot be interpreted (in other words, it cannot be accurately read). Thus, when the IC card determines a communication error by the reception error determination process, it transmits a command retransmission request to the reading device 2 by high-speed communication (step S104). Thereafter, such exchange is performed according to a preset number of retries. That is, the IC card and the reading device 2 fall into different interpretations and cannot return to a normal communication state without solving the error.

次に、図3を参照して、本実施形態に係るICカード1におけるCPU11の処理について説明する。図3は、本実施形態に係るICカード1におけるCPU11の処理の一例を示すフローチャートである。図3に示す処理は、例えば、読取装置2から受信されたリセット信号に応じてATRを読取装置2へ送信した際に開始される。   Next, processing of the CPU 11 in the IC card 1 according to the present embodiment will be described with reference to FIG. FIG. 3 is a flowchart showing an example of processing of the CPU 11 in the IC card 1 according to the present embodiment. The process illustrated in FIG. 3 is started, for example, when an ATR is transmitted to the reading device 2 in response to a reset signal received from the reading device 2.

図3に示すステップS1では、ICカード1におけるCPU11は、低速通信に設定する(つまり、通信速度を低速に設定)する。次いで、CPU11は、読取装置2から命令を受信すると(ステップS2)、受信された命令が高速通信要求であるか否かを判定する(ステップS3)。受信された命令が高速通信要求でないと判定された場合(ステップS3:NO)、ステップS4へ進む。一方、受信された命令が高速通信要求であると判定された場合(ステップS3:YES)、ステップS6へ進む。   In step S1 shown in FIG. 3, the CPU 11 in the IC card 1 sets low-speed communication (that is, sets the communication speed to low speed). Next, when receiving a command from the reading device 2 (step S2), the CPU 11 determines whether or not the received command is a high-speed communication request (step S3). When it is determined that the received command is not a high-speed communication request (step S3: NO), the process proceeds to step S4. On the other hand, when it is determined that the received command is a high-speed communication request (step S3: YES), the process proceeds to step S6.

ステップS4では、CPU11は、受信した命令の内容を実行する。次いで、CPU11は、実行完了通知を読取装置2へ送信し(ステップS5)、次の命令待ち状態となる。   In step S4, the CPU 11 executes the content of the received command. Next, the CPU 11 transmits an execution completion notice to the reading device 2 (step S5), and waits for the next command.

一方、ステップS6では、CPU11は、高速通信応答を読取装置2へ送信する。次いで、CPU11は、低速通信から高速通信に設定変更(つまり、通信速度を高速に設定)する(ステップS7)。次いで、CPU11は、読取装置2から命令を受信すると(ステップS8)、受信された命令を解釈できるか否かを判定する(ステップS9)。CPU11は、受信した命令を解釈できる場合(ステップS9:YES)、受信した命令の内容を実行し(ステップS10)、実行完了通知を読取装置2へ送信し(ステップS11)、次の命令待ち状態となる。   On the other hand, in step S <b> 6, the CPU 11 transmits a high-speed communication response to the reading device 2. Next, the CPU 11 changes the setting from low speed communication to high speed communication (that is, sets the communication speed to high speed) (step S7). Next, when receiving a command from the reading device 2 (step S8), the CPU 11 determines whether or not the received command can be interpreted (step S9). When the received command can be interpreted (step S9: YES), the CPU 11 executes the content of the received command (step S10), transmits an execution completion notification to the reading device 2 (step S11), and waits for the next command. It becomes.

一方、CPU11は、受信した命令を解釈できない場合(ステップS9:NO)、該命令の再送要求を該読取装置2へ送信することなく、処理を停止する(ステップS12)。このように、本実施形態に係るICカード1は、高速通信応答を送信した直後にのみ動作するプログラムを起動する。これは、高速通信応答の送信を記録するフラグを元にして起動されても良いし、高速通信応答を送信した直後に動作するように連続して起動されていても良い。こうして、高速通信応答を送信した直後に、解釈できない命令を受信した場合には、ICカード1は何も応答せずに停止状態となる。この停止状態は、CPU11を初期化した状態であっても良いし、ソフトウェアが無限にループしている状態でも構わない。CPU11を初期化した状態は、電源投入直後のCPU11が上記リセット信号を待っている状態と同一の状態を指す。CPU11を初期化した状態としては、例えば、レジスタの値を初期化し、かつプログラムカウンタが異常値を指している状態がある。なお、CPU11を初期化された場合とソフトウェアが無限にループしている場合とのいずれにおいても、例えば、ただちにエラーが報知される。これにより、ユーザによりリセット操作される。   On the other hand, if the received command cannot be interpreted (step S9: NO), the CPU 11 stops the process without transmitting a request for retransmission of the command to the reading device 2 (step S12). Thus, the IC card 1 according to the present embodiment starts a program that operates only immediately after transmitting a high-speed communication response. This may be activated based on a flag that records the transmission of the high-speed communication response, or may be activated continuously so as to operate immediately after the transmission of the high-speed communication response. Thus, immediately after transmitting a high-speed communication response, if an instruction that cannot be interpreted is received, the IC card 1 does not respond to anything and enters a stopped state. This stopped state may be a state in which the CPU 11 is initialized, or a state in which the software loops infinitely. The state in which the CPU 11 is initialized indicates the same state as the state in which the CPU 11 is waiting for the reset signal immediately after the power is turned on. As a state in which the CPU 11 is initialized, for example, there is a state in which a register value is initialized and a program counter indicates an abnormal value. Note that an error is immediately notified, for example, when the CPU 11 is initialized or when the software loops indefinitely. Thereby, a reset operation is performed by the user.

以上説明したように、上記実施形態によれば、ICカード1は、低速通信が設定されているときに読取装置2から高速通信要求を受信した場合、高速通信応答を読取装置2へ送信し、且つ低速通信から高速通信に設定変更し、その後、読取装置2から受信した命令を解釈できない場合、該命令の再送要求を該読取装置2へ送信することなく、処理を停止するように構成したので、高速通信応答に含まれる電文にノイズが発生し通信誤りが発生した場合であっても、ICカード1と読取装置2とが相互に異なった解釈に陥ることを回避することができる。つまり、低速通信状態から高速通信状態へ遷移する際に通信誤りが発生した場合であっても、当該通信誤りに対して、ICカード1と読取装置2とが目的とは異なる挙動を実施して、誤りを解決しなくなってしまう問題を解消し、迅速に正常な通信状態へ復帰するための手段を講じることができる。   As described above, according to the embodiment, when the IC card 1 receives a high-speed communication request from the reading device 2 when the low-speed communication is set, the IC card 1 transmits a high-speed communication response to the reading device 2, In addition, when the setting is changed from low-speed communication to high-speed communication, and the instruction received from the reader 2 cannot be interpreted thereafter, the processing is stopped without transmitting a retransmission request for the instruction to the reader 2. Even when a noise is generated in a message included in the high-speed communication response and a communication error occurs, it is possible to avoid the IC card 1 and the reading device 2 from being interpreted differently. That is, even when a communication error occurs when transitioning from the low-speed communication state to the high-speed communication state, the IC card 1 and the reading device 2 perform different behaviors from the intended purpose for the communication error. Therefore, it is possible to solve the problem that the error is not solved and to take a means for quickly returning to the normal communication state.

1 ICカード
2 読取装置
11 CPU
12 ROM
13 不揮発性メモリ
14 RAM
15 I/Oポート
1 IC card 2 reader 11 CPU
12 ROM
13 Nonvolatile memory 14 RAM
15 I / O port

Claims (4)

外部機器との間で低速通信と高速通信との何れかを選択して設定可能なICカードであって、
前記低速通信が設定されているときに前記外部機器から高速通信への設定変更の要求を受信した場合、前記設定変更の承諾を示す応答を該外部機器へ送信し、且つ前記低速通信から高速通信に設定変更する設定変更手段と、
前記応答が前記外部機器へ送信された後、該外部機器から受信した命令を解釈できない場合、該命令の再送要求を該外部機器へ送信することなく、処理を停止する処理停止手段と、
を備えることを特徴とするICカード。
An IC card that can be set by selecting either low-speed communication or high-speed communication with an external device,
When the low speed communication is set, when a request for changing the setting from the external device to the high speed communication is received, a response indicating acceptance of the setting change is transmitted to the external device, and the low speed communication is transmitted from the low speed communication to the high speed communication. A setting change means for changing the setting to
If the command received from the external device cannot be interpreted after the response is transmitted to the external device, a process stop means for stopping the process without transmitting a retransmission request for the command to the external device;
An IC card comprising:
前記応答が前記外部機器へ送信された後に該外部機器から送信される前記命令は、低速通信により送信される命令であることを特徴とする請求項1に記載のICカード。   The IC card according to claim 1, wherein the command transmitted from the external device after the response is transmitted to the external device is a command transmitted by low-speed communication. 外部機器との間で低速通信と高速通信との何れかを選択して設定可能なICカードに含まれるコンピュータを、
前記低速通信が設定されているときに前記外部機器から高速通信への設定変更の要求を受信した場合、前記設定変更の承諾を示す応答を該外部機器へ送信し、且つ前記低速通信から高速通信に設定変更するステップと、
前記応答が前記外部機器へ送信された後、該外部機器から受信した命令を解釈できない場合、該命令の再送要求を該外部機器へ送信することなく、処理を停止するステップと、
を実行させることを特徴とするICカードの処理プログラム。
A computer included in an IC card that can be set by selecting either low-speed communication or high-speed communication with an external device.
When the low speed communication is set, when a request for changing the setting from the external device to the high speed communication is received, a response indicating acceptance of the setting change is transmitted to the external device, and the low speed communication is transmitted from the low speed communication to the high speed communication. A step to change the setting to
If the command received from the external device cannot be interpreted after the response is transmitted to the external device, the process stops without transmitting a retransmission request for the command to the external device;
An IC card processing program characterized in that
外部機器との間で低速通信と高速通信との何れかを選択して設定可能なICカードにより行われる通信方法であって、
前記低速通信が設定されているときに前記外部機器から高速通信への設定変更の要求を受信した場合、前記設定変更の承諾を示す応答を該外部機器へ送信し、且つ前記低速通信から高速通信に設定変更するステップと、
前記応答が前記外部機器へ送信された後、該外部機器から受信した命令を解釈できない場合、該命令の再送要求を該外部機器へ送信することなく、処理を停止するステップと、
を含むことを特徴とする通信方法。
A communication method performed by an IC card that can be set by selecting either low-speed communication or high-speed communication with an external device,
When the low speed communication is set, when a request for changing the setting from the external device to the high speed communication is received, a response indicating acceptance of the setting change is transmitted to the external device, and the low speed communication from the high speed communication is performed. A step to change the setting to
If the command received from the external device cannot be interpreted after the response is transmitted to the external device, the process stops without transmitting a retransmission request for the command to the external device;
A communication method comprising:
JP2012215156A 2012-09-27 2012-09-27 Ic card, ic card processing program, and communication method Pending JP2014071522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012215156A JP2014071522A (en) 2012-09-27 2012-09-27 Ic card, ic card processing program, and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012215156A JP2014071522A (en) 2012-09-27 2012-09-27 Ic card, ic card processing program, and communication method

Publications (1)

Publication Number Publication Date
JP2014071522A true JP2014071522A (en) 2014-04-21

Family

ID=50746698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012215156A Pending JP2014071522A (en) 2012-09-27 2012-09-27 Ic card, ic card processing program, and communication method

Country Status (1)

Country Link
JP (1) JP2014071522A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009527044A (en) * 2006-02-17 2009-07-23 ケーティーフリーテル・カンパニー・リミテッド IC card, terminal equipped with IC card, and initialization method thereof
JP2009223827A (en) * 2008-03-18 2009-10-01 Toshiba Corp Information storing medium and information storing medium processing apparatus
JP2010176582A (en) * 2009-01-30 2010-08-12 Dainippon Printing Co Ltd Ic chip, ic card, issuing device, issuing method and issuing system
JP2011150597A (en) * 2010-01-22 2011-08-04 Toshiba Corp Communication apparatus, medium and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009527044A (en) * 2006-02-17 2009-07-23 ケーティーフリーテル・カンパニー・リミテッド IC card, terminal equipped with IC card, and initialization method thereof
JP2009223827A (en) * 2008-03-18 2009-10-01 Toshiba Corp Information storing medium and information storing medium processing apparatus
JP2010176582A (en) * 2009-01-30 2010-08-12 Dainippon Printing Co Ltd Ic chip, ic card, issuing device, issuing method and issuing system
JP2011150597A (en) * 2010-01-22 2011-08-04 Toshiba Corp Communication apparatus, medium and method

Similar Documents

Publication Publication Date Title
EP2770782B1 (en) Wireless data communication
US9262711B2 (en) NFC tag, communication method and system
CN108055089B (en) Method and device for determining working frequency of NFC device
WO2022252561A1 (en) Card swiping method, card controller, electronic device and storage medium
EP3016342B1 (en) Mobile device, method for facilitating a transaction, computer program, article of manufacture
CN104135757A (en) Method and device of reducing power consumption of terminal as well as baseband chip
JP5516323B2 (en) IC chip, IC chip initialization method, IC chip processing program, portable terminal
JP2012093857A (en) Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal
JP7468754B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RECEPTION BLOCK PROCESSING METHOD, AND PROGRAM
JP6241340B2 (en) Information processing apparatus, information processing method, and information processing program
JP2014071522A (en) Ic card, ic card processing program, and communication method
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
JP5724694B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROCESSING PROGRAM
JP6182940B2 (en) IC card, status word output method, and status word output processing program
JP6686725B2 (en) Electronic information storage medium, information processing method, and information processing program
JP5991119B2 (en) COMMUNICATION SYSTEM, IC CARD, IC CARD PROCESSING PROGRAM, EXTERNAL DEVICE, AND COMMUNICATION METHOD
JP2008152525A (en) Device having a function of outputting a monitored state, and computer equipment
JP5762941B2 (en) IC card, portable electronic device, and IC card control program
JP2006309331A (en) IC card and command processing method mounted on IC card
JP6092342B2 (en) Non-contact portable electronic device and method for issuing non-contact portable electronic device
JP6326835B2 (en) Information processing apparatus, IC card, command processing method, and command processing program
JP2011060002A (en) Ic chip, ic card, and initial response data transmitting method
JP7206942B2 (en) Electronic information storage medium, IC chip, initial setting method, and initial setting program
JP2007087120A (en) IC card mounted with a plurality of OSs, and issuance delegation method
JP2008276572A (en) Non-contact IC card

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160513

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160719

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20160809