Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7409335B2 - IC cards, data transmission methods, and IC chips - Google Patents
[go: Go Back, main page]

JP7409335B2 - IC cards, data transmission methods, and IC chips - Google Patents

IC cards, data transmission methods, and IC chips Download PDF

Info

Publication number
JP7409335B2
JP7409335B2 JP2021023977A JP2021023977A JP7409335B2 JP 7409335 B2 JP7409335 B2 JP 7409335B2 JP 2021023977 A JP2021023977 A JP 2021023977A JP 2021023977 A JP2021023977 A JP 2021023977A JP 7409335 B2 JP7409335 B2 JP 7409335B2
Authority
JP
Japan
Prior art keywords
input
output port
data
card
time
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.)
Active
Application number
JP2021023977A
Other languages
Japanese (ja)
Other versions
JP2022126098A (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.)
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 JP2021023977A priority Critical patent/JP7409335B2/en
Publication of JP2022126098A publication Critical patent/JP2022126098A/en
Application granted granted Critical
Publication of JP7409335B2 publication Critical patent/JP7409335B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Description

本発明は、端末などの接続装置とデータを送受信するICカードに関する。 The present invention relates to an IC card that transmits and receives data to and from a connecting device such as a terminal.

近年、半導体集積回路であるICチップを実装したICカードの用途は広がり、ICカードが送受信するデータのサイズは増加傾向にある。更に、ICカードが物理的に過酷な環境で使用されることも増加している。 In recent years, the uses of IC cards mounted with IC chips, which are semiconductor integrated circuits, have been expanding, and the size of data transmitted and received by IC cards has been increasing. Furthermore, IC cards are increasingly being used in physically harsh environments.

例えば、IoT機器に実装するICカードであるSAM(Secure Application Module)には、インターネットで標準的に利用されているプロトコルであるTLS(Transport Layer Security)の相互認証に用いる暗号鍵およびデジタル証明書が格納される。暗号鍵(公開鍵)の鍵長にもよるが、鍵長が1024ビットの場合、デジタル証明書のサイズは約1Kバイトになる。また、SAMを実装するIoT機器は、屋外など、物理的に過酷な環境に設置されることが多い。 For example, SAM (Secure Application Module), which is an IC card installed in IoT devices, contains encryption keys and digital certificates used for mutual authentication of TLS (Transport Layer Security), which is a standard protocol used on the Internet. Stored. Although it depends on the length of the encryption key (public key), if the key length is 1024 bits, the size of the digital certificate will be approximately 1K bytes. Furthermore, IoT devices that implement SAM are often installed in physically harsh environments such as outdoors.

特殊なICカードでない限り、ICカードは、半二重通信方式で接続装置とシリアル通信する。半二重通信方式のシリアル通信に対応したICカードでは、ICカードと接続装置との間におけるコリジョン(ICカードと接続装置がほぼ同時にデータを送信すること)を回避するために、送信モードと受信モードを切り替えている。ICカードに係る国際規格である非特許文献1では、ICカードおよび接続装置は,データの送信が完了すると受信モードに切り替え、データの受信が完了すると送信モードに切り替える。 Unless the IC card is a special IC card, the IC card performs serial communication with a connecting device using a half-duplex communication method. For IC cards that support half-duplex serial communication, in order to avoid collisions between the IC card and the connected device (the IC card and the connected device transmit data almost simultaneously), the transmission mode and reception Switching modes. According to Non-Patent Document 1, which is an international standard related to IC cards, an IC card and a connecting device switch to a reception mode when data transmission is completed, and switch to a transmission mode when data reception is completed.

ISO/IEC 7816 Part3ISO/IEC 7816 Part3

ICカードが物理的に過酷な環境で使用されると、ICカードは、ノイズの影響を受け易くなる。ICカードがデータを送信している途中でノイズが発生すると、ノイズの影響により、ICカードと接続装置との間におけるコリジョンが発生し易くなる。これは、ノイズにより、接続装置またはICカードが誤動作するためと考えられる。当然のことながら、ICカードが送信するデータのサイズが増加すると、ICカードがデータを送受信している途中でノイズが発生し易くなり、ICカードと接続装置との間におけるコリジョンが発生し易くなる。 When IC cards are used in physically harsh environments, they become susceptible to noise. If noise occurs while the IC card is transmitting data, collisions between the IC card and the connecting device are likely to occur due to the influence of the noise. This is considered to be because the connected device or IC card malfunctions due to noise. Naturally, as the size of data transmitted by an IC card increases, noise is more likely to occur while the IC card is transmitting and receiving data, and collisions between the IC card and the connected device are more likely to occur. .

そこで、本発明は、ICカードが送受信するデータのサイズが大きく、かつ、ICカードが物理的に過酷な環境で使用されても、ICカードと接続装置との間におけるコリジョンの発生を防止できるICカード、データの送信方法およびICカード用のICチップを提供することを目的とする。 Therefore, the present invention provides an IC that can prevent collisions between an IC card and a connecting device even when the size of data transmitted and received by an IC card is large and the IC card is used in a physically harsh environment. The present invention aims to provide a card, a data transmission method, and an IC chip for an IC card.

上述した課題を解決する第1発明は、データの送信が完了すると受信モードに切り替え、データの受信が完了すると送信モードに切り替える半二重通信方式で接続装置とシリアル通信するICカードであって、データの送信を開始する際、接続装置からデータが送信されていないこと、および、ノイズが発生していないことを確認するために、入出力ポートの機能を入力ポートに設定して、入出力ポートのレベルがHighレベルになっている時間を計測し、前記時間が判定時間に達すると、入出力ポートの機能を出力ポートに設定して、データを送信する処理を開始する送信処理部を備えたことを特徴とするICカードである。なお、第1発明において、ISO/IEC 7816 Part3に規定されている「Block Guard Time」を判定時間とすることが好適である。 A first invention for solving the above-mentioned problems is an IC card that serially communicates with a connected device using a half-duplex communication method that switches to a reception mode when data transmission is completed, and switches to a transmission mode when data reception is completed, When starting data transmission, set the function of the input/output port to input port to confirm that data is not being transmitted from the connected device and that noise is not occurring. a transmission processing unit that measures the time during which the level of the input/output port is at a High level, and when the time reaches a determination time, sets the function of the input/output port to an output port and starts data transmission processing. This is an IC card that is characterized by: In the first invention, it is preferable to use "Block Guard Time" defined in ISO/IEC 7816 Part 3 as the determination time.

上述した課題を解決する第2発明は、データの送信が完了すると受信モードに切り替え、データの受信が完了すると送信モードに切り替える半二重通信方式でデータの送信を開始する際、接続装置からデータが送信されていないこと、および、ノイズが発生していないことを確認するために、入出力ポートの機能を入力ポートに設定して、入出力ポートのレベルがHighレベルになっている時間を計測するステップ、前記時間が判定時間に達すると、入出力ポートの機能を出力ポートに設定して、データを送信する処理を開始するステップを備えたことを特徴とするデータの送信方法である。なお、第2発明において、ISO/IEC 7816 Part3に規定されている「Block Guard Time」を判定時間とすることが好適である。 A second invention for solving the above-mentioned problem is that when data transmission is started using a half-duplex communication method, which switches to reception mode when data transmission is completed and switches to transmission mode when data reception is completed, data is sent from the connecting device. In order to confirm that the input/output port is not being transmitted and that noise is not occurring, set the input/output port function to input port and measure the time that the input/output port level is high. This data transmission method is characterized by comprising the steps of: setting the function of the input/output port to an output port and starting data transmission processing when the time reaches a determination time. Note that in the second invention, it is preferable to use "Block Guard Time" defined in ISO/IEC 7816 Part 3 as the determination time.

上述した課題を解決する第3発明は、データの送信が完了すると受信モードに切り替え、データの受信が完了すると送信モードに切り替える半二重通信方式でデータの送信を開始する際、接続装置からデータが送信されていないこと、および、ノイズが発生していないことを確認するために、入出力ポートの機能を入力ポートに設定して、入出力ポートのレベルがHighレベルになっている時間を計測し、前記時間が判定時間に達すると、入出力ポートの機能を出力ポートに設定して、データを送信する処理を開始する送信処理部を備えたICチップである。なお、第3発明において、ISO/IEC 7816 Part3に規定されている「Block Guard Time」を判定時間とすることが好適である。 A third invention that solves the above-mentioned problem is that when starting data transmission using a half-duplex communication method, which switches to reception mode when data transmission is completed and switches to transmission mode when data reception is completed, data is sent from the connecting device. In order to confirm that the input/output port is not being transmitted and that noise is not occurring, set the input/output port function to input port and measure the time that the input/output port level is high. However, when the time reaches a determination time, the IC chip includes a transmission processing unit that sets the function of the input/output port to an output port and starts processing to transmit data. In the third invention, it is preferable to use "Block Guard Time" defined in ISO/IEC 7816 Part 3 as the determination time.

上述した本発明によれば、ICカードは、データの送信を開始する前に、接続装置からデータが送信されていないこと、および、ノイズが発生していないことを確認できる。よって、本発明によれば、ICカードが送受信するデータのサイズが大きく、かつ、ICカードが物理的に過酷な環境で使用されても、ICカードと接続装置との間におけるコリジョンの発生を防止できる According to the present invention described above, the IC card can confirm that data is not being transmitted from the connected device and that noise is not occurring before starting data transmission. Therefore, according to the present invention, even if the size of data transmitted and received by the IC card is large and the IC card is used in a physically harsh environment, collisions between the IC card and the connecting device can be prevented. can

本実施形態に係るICカードと接続装置の接続を説明する図。FIG. 3 is a diagram illustrating a connection between an IC card and a connecting device according to the present embodiment. ICカードに実装するICチップを説明する図。FIG. 3 is a diagram illustrating an IC chip mounted on an IC card. ICカードが備える送信処理部の動作を説明する図。FIG. 3 is a diagram illustrating the operation of a transmission processing section included in the IC card.

ここから,本発明に係る実施形態について記載する。本実施形態は,本発明の理解を容易にするためのものである。本発明は,本実施形態に限定されるものではない。特に限定しない限り、各々の構成要素は単数でも複数でもよい。また,特に断りのない限り,図面は,本発明の理解を容易にするために描かれた模式的な図である。 From here, embodiments according to the present invention will be described. This embodiment is provided to facilitate understanding of the present invention. The present invention is not limited to this embodiment. Unless otherwise specified, each component may be singular or plural. Further, unless otherwise specified, the drawings are schematic diagrams drawn to facilitate understanding of the present invention.

図1は、本実施形態に係るICカード1と接続装置2の接続を説明する図である。接続装置2は、ICカード1と電気的に接続する端末になる。接続装置2には、通信装置または各種機器(例えば,IoT機器)が含まれる。ICカード1は、信号線20により接続装置2と接続する。このため、ICカード1の表面には、樹脂モールドしたICチップ12を実装した外部端子11が設けられている。 FIG. 1 is a diagram illustrating the connection between the IC card 1 and the connection device 2 according to the present embodiment. The connecting device 2 becomes a terminal that electrically connects to the IC card 1. The connection device 2 includes a communication device or various devices (for example, IoT devices). The IC card 1 is connected to the connecting device 2 through a signal line 20. For this reason, the surface of the IC card 1 is provided with an external terminal 11 on which a resin-molded IC chip 12 is mounted.

図1で図示したICカード1の形状は、ISO7810で規定されたID-000型になっている。ISO7810で規定されたID-000型は、スマートフォン、IoT機器などに実装されるSIMの形状である。ICカード1の形状は、図1で図示した形状に限定されない。例えば、ICカード1の形状は、クレジットカードおよびキャッシュカードで利用されているID-1型でもよい。更に、ICカード1は、eSIM(Embedded SIM)でもよい。 The shape of the IC card 1 shown in FIG. 1 is an ID-000 type defined by ISO7810. The ID-000 type specified by ISO7810 is a SIM shape that is installed in smartphones, IoT devices, etc. The shape of the IC card 1 is not limited to the shape illustrated in FIG. For example, the shape of the IC card 1 may be the ID-1 type used in credit cards and cash cards. Furthermore, the IC card 1 may be an eSIM (Embedded SIM).

図1で図示した外部端子11は、ISO7816-3に準じたものになっている。外部端子11に設けられた端子の数は8個であるが、本実施形態に係るICカード1が使用する端子の数は5個である。ICカード1に設けた外部端子11には、供給電圧端子C1、リセット端子C2、クロック端子C3、グランド端子C5および入出力端子C7が、ISO7816-3に従い配置されている。なお、本実施形態のICカード1では、端子C4、C6,C8は使用しないが、これらの少なくとも一つを使用する形態も想定できる。また、外部端子11の形状も任意である。 The external terminal 11 shown in FIG. 1 complies with ISO7816-3. Although the number of terminals provided in the external terminal 11 is eight, the number of terminals used by the IC card 1 according to this embodiment is five. In the external terminal 11 provided on the IC card 1, a supply voltage terminal C1, a reset terminal C2, a clock terminal C3, a ground terminal C5, and an input/output terminal C7 are arranged according to ISO7816-3. Although the IC card 1 of this embodiment does not use the terminals C4, C6, and C8, it is possible to envisage a configuration in which at least one of these terminals is used. Moreover, the shape of the external terminal 11 is also arbitrary.

接続装置2との接続に使用する5個の端子は、接続装置2とそれぞれ信号線20により接続している。外部端子11の供給電圧端子C1は、接続装置2の供給電圧端子T1と接続している。外部端子11のリセット端子C2は、接続装置2のリセット端子T2と接続している。外部端子11のクロック端子C3は、接続装置2のクロック端子T3と接続している。外部端子11のグランド端子C5は、接続装置2のグランド端子T5と接続している。外部端子11の入出力端子C7は、接続装置2の入出力端子T7と接続している。 Five terminals used for connection with the connection device 2 are connected to the connection device 2 through signal lines 20, respectively. The supply voltage terminal C1 of the external terminal 11 is connected to the supply voltage terminal T1 of the connecting device 2. The reset terminal C2 of the external terminal 11 is connected to the reset terminal T2 of the connection device 2. A clock terminal C3 of the external terminal 11 is connected to a clock terminal T3 of the connecting device 2. The ground terminal C5 of the external terminal 11 is connected to the ground terminal T5 of the connection device 2. The input/output terminal C7 of the external terminal 11 is connected to the input/output terminal T7 of the connecting device 2.

図2は、ICカード1に実装するICチップ12を説明する図である。ICカード1に実装するICチップ12は、CPU120(Central Processing Unit),入出力ポート121,クロックパルスジェネレータ123(図2では、CPG: Clock Pulse Generator)、ROM124(Read Only Memory),RAM125(Random Access Memory)、NVM126(Non-volatile memory)、タイマー122、および、これらが接続するバス127を含んでいる。また、ICチップ12は、ICカード1の外部端子11と接続するパッドとして、供給電圧パッドP1、グランドパッドP5、リセットパッドP2、クロックパッドP3および入出力パッドP7を含んでいる。 FIG. 2 is a diagram illustrating the IC chip 12 mounted on the IC card 1. The IC chip 12 mounted on the IC card 1 includes a CPU 120 (Central Processing Unit), an input/output port 121, a clock pulse generator 123 (CPG: Clock Pulse Generator in FIG. 2), a ROM 124 (Read Only Memory), and a RAM 125 (Random Access). memory), NVM 126 (Non-volatile memory), timer 122, and a bus 127 to which these are connected. Further, the IC chip 12 includes a supply voltage pad P1, a ground pad P5, a reset pad P2, a clock pad P3, and an input/output pad P7 as pads connected to the external terminals 11 of the IC card 1.

CPU120は、データや命令を処理する回路である。ROM124は、電気的に書き換えできない不揮発性メモリである。RAM125は、揮発性メモリである。NVM126は、電気的に書き換え可能な不揮発性メモリである。タイマー122は時間を計測する回路である。 The CPU 120 is a circuit that processes data and instructions. ROM 124 is a nonvolatile memory that cannot be electrically rewritten. RAM 125 is volatile memory. NVM 126 is an electrically rewritable nonvolatile memory. The timer 122 is a circuit that measures time.

外部端子11のグランド端子C5は、ICチップ12のグランドパッドP5と接続し、ICカード1と接続装置2において基準電圧は同じになる。外部端子11の供給電圧端子C1は、ICチップ12の供給電圧パッドP1と接続する。接続装置2から供給電圧端子C1を介して供給電圧パッドP1に供給された供給電圧がICチップ12の動作電圧になる。 The ground terminal C5 of the external terminal 11 is connected to the ground pad P5 of the IC chip 12, and the reference voltages in the IC card 1 and the connecting device 2 become the same. A supply voltage terminal C1 of the external terminal 11 is connected to a supply voltage pad P1 of the IC chip 12. The supply voltage supplied from the connection device 2 to the supply voltage pad P1 via the supply voltage terminal C1 becomes the operating voltage of the IC chip 12.

外部端子11のリセット端子C2は、ICチップ12のリセットパッドP2と接続している。リセットパッドP2はCPU120と接続している。接続装置2が外部端子11のリセット端子C2に入力したリセット信号は、リセットパッドP2を介して少なくともCPU120に入力される。 A reset terminal C2 of the external terminal 11 is connected to a reset pad P2 of the IC chip 12. Reset pad P2 is connected to CPU 120. The reset signal input by the connection device 2 to the reset terminal C2 of the external terminal 11 is input to at least the CPU 120 via the reset pad P2.

外部端子11のクロック端子C3は、ICチップ12のクロックパッドP3と接続している。クロックパッドP3はクロックパルスジェネレータ123と接続している。接続装置2が外部端子11のクロック端子C3に入力したクロック信号は、クロックパッドP3を介してクロックパルスジェネレータ123入力される。クロックパルスジェネレータ123は、クロックパッドP3に入力されたクロック信号から、CPU120が用いる内部クロックを生成する。 A clock terminal C3 of the external terminal 11 is connected to a clock pad P3 of the IC chip 12. Clock pad P3 is connected to clock pulse generator 123. The clock signal input by the connecting device 2 to the clock terminal C3 of the external terminal 11 is input to the clock pulse generator 123 via the clock pad P3. Clock pulse generator 123 generates an internal clock used by CPU 120 from the clock signal input to clock pad P3.

接続装置2と接続する外部端子11の入出力端子C7は、ICチップ12の入出力パッドP7と接続している。入出力パッドP7は、CPU120の外部インタフェースとなる回路である入出力ポート121と接続している。 The input/output terminal C7 of the external terminal 11 connected to the connection device 2 is connected to the input/output pad P7 of the IC chip 12. The input/output pad P7 is connected to an input/output port 121, which is a circuit that serves as an external interface for the CPU 120.

入出力ポート121は、外部端子11と接続している接続装置2とシリアルな半二重通信方式の通信を行えるように構成されている。入出力ポート121に係るレジスタの設定により、入出力ポート121は、入力ポートまたは出力ポートのいずれかとして機能する。 The input/output port 121 is configured to perform serial half-duplex communication with the connecting device 2 connected to the external terminal 11. Depending on the settings of the register related to the input/output port 121, the input/output port 121 functions as either an input port or an output port.

入出力ポート121の論理的なレベルは、LowレベルとHighレベルの2つである。CPU120の動作電圧に応じて、Lowレベルの電圧最大値とHighレベルの電圧最小値が定められるのが一般的である。出力ポートとして機能するとき、入出力ポート121は、入出力パッドP7にかける電圧を制御することで、出力する入出力ポート121のレベルを制御できる。入力ポートとして機能するとき、入出力ポート121は、入出力パッドP7にかかっている電圧を読み取ることで、入出力ポート121のレベルを判別できる。 The input/output port 121 has two logical levels: Low level and High level. Generally, a maximum low-level voltage value and a minimum high-level voltage value are determined according to the operating voltage of the CPU 120. When functioning as an output port, the input/output port 121 can control the output level of the input/output port 121 by controlling the voltage applied to the input/output pad P7. When functioning as an input port, the input/output port 121 can determine the level of the input/output port 121 by reading the voltage applied to the input/output pad P7.

ICカード1は、入出力ポート121を制御してデータを送信する機能である送信処理部10を備えている。送信処理部10は、CPU120を動作させるコンピュータプログラムにより実現される。このコンピュータプログラムは,ROM124またはNVM126などに記憶される。CPU120がこのコンピュータプログラムを実行することで、CPU120は、送信処理部10として機能する。なお、送信処理部10に係る機能は、ICカード1のオペレーティングシステムによって提供されるのが一般的である。 The IC card 1 includes a transmission processing section 10 that controls an input/output port 121 and transmits data. The transmission processing unit 10 is realized by a computer program that causes the CPU 120 to operate. This computer program is stored in the ROM 124, NVM 126, or the like. When the CPU 120 executes this computer program, the CPU 120 functions as the transmission processing section 10. Note that the functions related to the transmission processing section 10 are generally provided by the operating system of the IC card 1.

本発明の目的を達成するために、ICカード1が備える送信処理部10は、入出力ポート121を制御してデータを送信する処理を開始する前に、入出力ポート121のレベルを監視し、接続装置2からデータが送信されていないこと、および、ノイズが発生していないことを確認する。 In order to achieve the object of the present invention, the transmission processing unit 10 included in the IC card 1 monitors the level of the input/output port 121 before starting the process of controlling the input/output port 121 to transmit data. Confirm that no data is being sent from the connected device 2 and that no noise is occurring.

接続装置2とICカード1の間でデータの送受信が行われないとき、入出力ポート121のレベルはHighレベルである。接続装置2がデータを送信するとき、接続装置2によって入出力ポート121のレベルはLowレベルになる。また、接続装置2とICカード1を電気的に接続する信号線20にノイズがのることで、入出力ポート121のレベルがHighレベルからLowレベルに変わることがある。よって、入出力ポート121を制御してデータを送信する処理を開始する前に、入出力ポート121のレベルがLowレベルでないことを確認すれば、ICカード1の送信処理部10は、入出力ポート121を制御してデータを送信する処理を開始する前に、接続装置2からデータが送信されていないこと、および、ノイズが発生していないことを確認できる。 When data is not transmitted or received between the connecting device 2 and the IC card 1, the level of the input/output port 121 is High level. When the connecting device 2 transmits data, the level of the input/output port 121 becomes Low level by the connecting device 2. Further, noise may be added to the signal line 20 that electrically connects the connecting device 2 and the IC card 1, so that the level of the input/output port 121 may change from a high level to a low level. Therefore, before starting the process of controlling the input/output port 121 to transmit data, if it is confirmed that the level of the input/output port 121 is not Low level, the transmission processing unit 10 of the IC card 1 can control the input/output port 121. 121 to transmit data, it can be confirmed that no data is being transmitted from the connecting device 2 and that no noise is occurring.

具体的に、ICカード1の送信処理部10は、入出力ポート121を制御してデータを送信する処理を開始する際、Highレベルが続いている時間を計測する。そして、ICカード1が備える送信処理部10は、この時間が判定時間に達すると、判定時間の間、入出力ポート121のレベルはLowレベルにならなかったと判定し、データを送信する処理を開始する。 Specifically, when the transmission processing unit 10 of the IC card 1 starts the process of controlling the input/output port 121 to transmit data, it measures the time that the high level continues. Then, when this time reaches the determination time, the transmission processing unit 10 included in the IC card 1 determines that the level of the input/output port 121 did not become Low level during the determination time, and starts processing to transmit data. do.

図3は、ICカード1が備える送信処理部10の動作を説明する図である。図3の説明は、本発明に係るデータの送信方法の説明も兼ねている。 FIG. 3 is a diagram illustrating the operation of the transmission processing section 10 included in the IC card 1. The explanation of FIG. 3 also serves as an explanation of the data transmission method according to the present invention.

本実施形態に係る送信処理部10は、データの送信を開始する際、まず、最初のステップS1として、入出力ポート121の機能を入力ポートに設定する。 When starting data transmission, the transmission processing unit 10 according to the present embodiment first sets the function of the input/output port 121 as an input port as a first step S1.

次のステップS2にて、ICカード1の送信処理部10は、入出力ポート121のレベルがHighレベルになっている時間を計測するために、タイマー122の計測時間を初期化してから、タイマー122を作動させる。 In the next step S2, the transmission processing unit 10 of the IC card 1 initializes the measurement time of the timer 122 in order to measure the time period during which the level of the input/output port 121 is at the High level. Activate.

次のステップS3にて、ICカード1の送信処理部10は、入出力ポート121のレベルを確認する。入出力ポート121のレベルがLowレベルの場合、ICカード1の送信処理部10は、ステップ4にてタイマー122を停止させて、ステップS2に処理を戻す。入出力ポート121のレベルがHighレベルの場合、ステップS5にて、ICカード1の送信処理部10は、タイマー122の計測時間を確認する。ICカード1の送信処理部10は、タイマー122の計測時間が判定時間に達していない場合、ステップS3に処理を戻す。ICカード1の送信処理部10は、タイマー122の計測時間が判定時間に達している場合、ステップS6にて、入出力ポート121の機能を出力ポートに設定する。そして、ICカード1の送信処理部10は、ステップS7にて、データを送信する処理を開始して、図3の手順は終了する。データを送信する処理において、ICカード1の送信処理部10は、入出力ポート121を制御して、1ビットずつデータをビット順に送信する。 In the next step S3, the transmission processing unit 10 of the IC card 1 checks the level of the input/output port 121. If the level of the input/output port 121 is Low, the transmission processing unit 10 of the IC card 1 stops the timer 122 in step 4, and returns the process to step S2. If the level of the input/output port 121 is High level, the transmission processing unit 10 of the IC card 1 checks the time measured by the timer 122 in step S5. If the time measured by the timer 122 has not reached the determination time, the transmission processing unit 10 of the IC card 1 returns the process to step S3. If the time measured by the timer 122 has reached the determination time, the transmission processing unit 10 of the IC card 1 sets the function of the input/output port 121 to an output port in step S6. Then, the transmission processing unit 10 of the IC card 1 starts the process of transmitting data in step S7, and the procedure of FIG. 3 ends. In the process of transmitting data, the transmission processing unit 10 of the IC card 1 controls the input/output port 121 to transmit data bit by bit in bit order.

判定時間としては、例えば、ISO/IEC 7816 Part3に規定されている「Block Guard Time」を用いることが望ましい。「Block Guard Time」は接続装置2とICカード1の間における逆方向の連続したキャラクタの先頭エッジの最小間隔のことである。ISO/IEC 7816 Part3では、接続装置2からキャラクタを受信した後、ICカード1は、データを送信する前に「Block Guard Time」が経過するまで少なくとも待つ必要があるため、判定時間として、「Block Guard Time」を用いることが望ましいと言える。 As the determination time, it is desirable to use, for example, "Block Guard Time" specified in ISO/IEC 7816 Part 3. "Block Guard Time" is the minimum interval between the leading edges of consecutive characters in the opposite direction between the connecting device 2 and the IC card 1. In ISO/IEC 7816 Part 3, after receiving a character from the connecting device 2, the IC card 1 must wait at least until the "Block Guard Time" elapses before transmitting data. It can be said that it is desirable to use "Guard Time".

1 ICカード
10 送信処理部
11 外部端子
C7 入出力端子
12 ICチップ
120 CPU
121 入出力ポート
122 タイマー
P7 入出力パッド
2 接続装置
1 IC card 10 Transmission processing section 11 External terminal C7 Input/output terminal 12 IC chip 120 CPU
121 Input/output port 122 Timer P7 Input/output pad 2 Connection device

Claims (6)

データの送信が完了すると受信モードに切り替え、データの受信が完了すると送信モードに切り替える半二重通信方式で接続装置とシリアル通信するICカードであって、
データの送信を開始する際、接続装置からデータが送信されていないこと、および、ノイズが発生していないことを確認するために、入出力ポートの機能を入力ポートに設定して、入出力ポートのレベルがHighレベルになっている時間を計測し、前記時間が判定時間に達すると、入出力ポートの機能を出力ポートに設定して、データを送信する処理を開始する送信処理部を備えたことを特徴とするICカード。
An IC card that performs serial communication with a connected device using a half-duplex communication method that switches to a reception mode when data transmission is completed, and switches to a transmission mode when data reception is completed,
When starting data transmission, set the function of the input/output port to input port to confirm that data is not being transmitted from the connected device and that noise is not occurring. a transmission processing unit that measures the time during which the level of the input/output port is at a High level, and when the time reaches a determination time, sets the function of the input/output port to an output port and starts data transmission processing. An IC card that is characterized by
ISO/IEC 7816 Part3に規定されている「Block Guard Time」を判定時間とすることを特徴とする、請求項1に記載したICカード。 The IC card according to claim 1, characterized in that the determination time is "Block Guard Time" specified in ISO/IEC 7816 Part 3. データの送信が完了すると受信モードに切り替え、データの受信が完了すると送信モードに切り替える半二重通信方式でデータの送信を開始する際、接続装置からデータが送信されていないこと、および、ノイズが発生していないことを確認するために、入出力ポートの機能を入力ポートに設定して、入出力ポートのレベルがHighレベルになっている時間を計測するステップ、前記時間が判定時間に達すると、入出力ポートの機能を出力ポートに設定して、データを送信する処理を開始するステップを備えたことを特徴とするデータの送信方法。 When starting data transmission using the half-duplex communication method, which switches to reception mode when data transmission is completed and switches to transmission mode when data reception is completed, make sure that no data is being transmitted from the connected device and that there is no noise. In order to confirm that this has not occurred, a step of setting the function of the input/output port to an input port and measuring the time that the level of the input/output port is at High level, and when the time reaches the judgment time, , a method for transmitting data comprising the step of setting the function of an input/output port to an output port and starting processing to transmit data. ISO/IEC 7816 Part3に規定されている「Block Guard Time」を判定時間とすることを特徴とする、請求項3に記載したデータの送信方法。 4. The data transmission method according to claim 3, wherein the determination time is "Block Guard Time" defined in ISO/IEC 7816 Part 3. データの送信が完了すると受信モードに切り替え、データの受信が完了すると送信モードに切り替える半二重通信方式でデータの送信を開始する際、接続装置からデータが送信されていないこと、および、ノイズが発生していないことを確認するために、入出力ポートの機能を入力ポートに設定して、入出力ポートのレベルがHighレベルになっている時間を計測し、前記時間が判定時間に達すると、入出力ポートの機能を出力ポートに設定して、データを送信する処理を開始する送信処理部を備えたICチップ。 When starting data transmission using the half-duplex communication method, which switches to reception mode when data transmission is completed and switches to transmission mode when data reception is completed, make sure that no data is being transmitted from the connected device and that there is no noise. In order to confirm that this has not occurred, set the function of the input/output port to input port, measure the time that the level of the input/output port is at High level, and when the time reaches the judgment time, An IC chip equipped with a transmission processing unit that sets the function of an input/output port to an output port and starts processing to transmit data. ISO/IEC 7816 Part3に規定されている「Block Guard Time」を判定時間とすることを特徴とする、請求項5に記載したICチップ。 6. The IC chip according to claim 5, wherein the determination time is "Block Guard Time" defined in ISO/IEC 7816 Part 3.
JP2021023977A 2021-02-18 2021-02-18 IC cards, data transmission methods, and IC chips Active JP7409335B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021023977A JP7409335B2 (en) 2021-02-18 2021-02-18 IC cards, data transmission methods, and IC chips

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021023977A JP7409335B2 (en) 2021-02-18 2021-02-18 IC cards, data transmission methods, and IC chips

Publications (2)

Publication Number Publication Date
JP2022126098A JP2022126098A (en) 2022-08-30
JP7409335B2 true JP7409335B2 (en) 2024-01-09

Family

ID=83058759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021023977A Active JP7409335B2 (en) 2021-02-18 2021-02-18 IC cards, data transmission methods, and IC chips

Country Status (1)

Country Link
JP (1) JP7409335B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099740A (en) 2001-09-21 2003-04-04 Toshiba Corp Portable electronic device and method of outputting initial response thereof
JP2008016032A (en) 2006-07-07 2008-01-24 Samsung Electronics Co Ltd Smart card, smart card data communication method and system
JP2008033426A (en) 2006-07-26 2008-02-14 Dainippon Printing Co Ltd IC card with mode change function and IC card program
JP2009077097A (en) 2007-09-20 2009-04-09 Toshiba Corp Electronic device communication method
JP2009181332A (en) 2008-01-30 2009-08-13 Sony Corp Storage medium and contention control method
CN103186753A (en) 2011-12-28 2013-07-03 中兴通讯股份有限公司 Method and device for detecting initial rate of PSAM card
CN103218638A (en) 2013-04-16 2013-07-24 江苏中京智能科技有限公司 Method to achieve different radio frequency data transmission by means of MCU and double-interface CPU
JP2014021593A (en) 2012-07-13 2014-02-03 Dainippon Printing Co Ltd Ic card

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59228443A (en) * 1983-06-10 1984-12-21 Canon Inc Synchronizing device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099740A (en) 2001-09-21 2003-04-04 Toshiba Corp Portable electronic device and method of outputting initial response thereof
JP2008016032A (en) 2006-07-07 2008-01-24 Samsung Electronics Co Ltd Smart card, smart card data communication method and system
JP2008033426A (en) 2006-07-26 2008-02-14 Dainippon Printing Co Ltd IC card with mode change function and IC card program
JP2009077097A (en) 2007-09-20 2009-04-09 Toshiba Corp Electronic device communication method
JP2009181332A (en) 2008-01-30 2009-08-13 Sony Corp Storage medium and contention control method
CN103186753A (en) 2011-12-28 2013-07-03 中兴通讯股份有限公司 Method and device for detecting initial rate of PSAM card
JP2014021593A (en) 2012-07-13 2014-02-03 Dainippon Printing Co Ltd Ic card
CN103218638A (en) 2013-04-16 2013-07-24 江苏中京智能科技有限公司 Method to achieve different radio frequency data transmission by means of MCU and double-interface CPU

Also Published As

Publication number Publication date
JP2022126098A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
EP2105892B1 (en) Apparatus and method for initializing an IC card
JP4222509B2 (en) Storage device
US7614566B2 (en) Smart cards and smart card systems supporting multiple interfaces
CN101855644B (en) Smart storage device
US20060000917A1 (en) Multi-mode integrated circuit devices including mode detection and methods of operating the same
US8840031B2 (en) Smart card and a method for operating a smart card
EP1480162B1 (en) Universal serial bus (USB) smart card having enhanced testing features and related system, integrated circuit, and methods
JP2006518897A (en) Multi-protocol memory card
US6783078B1 (en) Universal serial bus (USB) smart card having read back testing features and related system, integrated circuit, and methods
US8060664B2 (en) Integrated circuit having a plurality of interfaces and integrated circuit card having the same
CN104239265A (en) Memory device
US7624211B2 (en) Method for bus width negotiation of data storage devices
WO2024149241A1 (en) Chip and data transmission method
US7143224B2 (en) Smart card for performing advance operations to enhance performance and related system, integrated circuit, and methods
EP1477883B1 (en) Smart card with enhanced security features and related system, integrated circuit, and methods
JP7409335B2 (en) IC cards, data transmission methods, and IC chips
US9495315B2 (en) Information processing device and data communication method
US11550685B2 (en) Mode controller and integrated circuit chip including the same
JP2012093857A (en) Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal
JP7444197B2 (en) Electronic information storage medium, cryptographic operation method selection method, and program
JP4915231B2 (en) Device having a function of outputting a monitored state, and computer equipment
JP2006172271A (en) Multi-application ic card, and program for ic card
JP2004102755A (en) Semiconductor integrated circuit
JP2007179294A (en) IC card and IC card program
KR20050008130A (en) Smart Card

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230414

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20230414

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230718

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230913

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: 20231121

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231204

R150 Certificate of patent or registration of utility model

Ref document number: 7409335

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150