JP2005284900A - Ic card device with communication function - Google Patents

Ic card device with communication function Download PDF

Info

Publication number
JP2005284900A
JP2005284900A JP2004100144A JP2004100144A JP2005284900A JP 2005284900 A JP2005284900 A JP 2005284900A JP 2004100144 A JP2004100144 A JP 2004100144A JP 2004100144 A JP2004100144 A JP 2004100144A JP 2005284900 A JP2005284900 A JP 2005284900A
Authority
JP
Japan
Prior art keywords
contact
card
power supply
terminal
circuit
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.)
Granted
Application number
JP2004100144A
Other languages
Japanese (ja)
Other versions
JP4355247B2 (en
Inventor
Minoru Takami
高見  穣
Shinichiro Fukushima
真一郎 福島
Masumi Moriya
真寿美 森谷
Shin Aikawa
慎 相川
Kazunori Hashimoto
和則 橋本
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2004100144A priority Critical patent/JP4355247B2/en
Publication of JP2005284900A publication Critical patent/JP2005284900A/en
Application granted granted Critical
Publication of JP4355247B2 publication Critical patent/JP4355247B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To achieve a non-contact communication function by using a contact IC card. <P>SOLUTION: A main circuit of a mobile phone is connected to a terminal 7a for external connection, and an antenna for non-contact communication is connected to an antenna terminal 18. A switching circuit 10 switches a contact IC card to the side of the main circuit and the side of a contact IC card control circuit 11. When no waves are received by the antenna, the contact IC card 4 is connected to the side of the main circuit, and the contact IC card 4 can be controlled from the main circuit side and can be used as a contact type IC card. When a carrier wave is received by the antenna, the switching circuit 10 switches the contact IC card 4 to the side of the contact IC card control circuit 11, and it is possible to perform non-contact communication through a transmission/reception circuit 12, an RF detection/modulation circuit 14, etc. by using the contact IC card 4. Thus the contact IC card 4 can be used as a non-contact IC card. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、携帯電話などの端末に搭載されたICカードを制御する通信機能付きICカード装置に関する。   The present invention relates to an IC card device with a communication function for controlling an IC card mounted on a terminal such as a mobile phone.

非接触ICカードは、その内部に記録されたデータを容易に読み出せない利点を持っており、このため、非接触ICカードに、例えば、電子マネー情報を記録して利用するシステムが登場してきている。その一例として、非接触ICカードの機能を携帯電話に内蔵して利用するシステムも提案されている(例えば、特許文献1参照)。   The non-contact IC card has an advantage that data recorded therein can not be easily read. For this reason, for example, a system for recording and using electronic money information has appeared on the non-contact IC card. Yes. As an example, a system that uses the function of a non-contact IC card in a mobile phone has been proposed (see, for example, Patent Document 1).

これは、非接触ICカードの非接触通信機能を利用して、携帯電話などの端末を非接触ICカードとして機能させるものである。かかる端末に新しくICカードの機能を搭載する際に、非接触通信機能を持つICカードを搭載するものであった。
特開2003−36427号公報
This uses a non-contact communication function of a non-contact IC card to make a terminal such as a mobile phone function as a non-contact IC card. When a new IC card function is mounted on such a terminal, an IC card having a non-contact communication function is mounted.
JP 2003-36427 A

ところで、従来の携帯電話では、接触通信機能を有するICカード(接触ICカード)が搭載されているものもあり、かかる接触ICカードには、電話番号などのセキュリティを確保する必要な情報がセキュリティを持たせて格納されている。このために、かかる携帯電話に非接触通信機能を持たせるためには、かかる接触ICカードに加えて、非接触ICカードを搭載することが必要となり、情報を書き込み格納し、これを読み出すことが可能な本質的に同じ機能を持ったICカードを複数搭載しなければならず、また、そのための機構も必要となって携帯電話のコスト上昇を招く問題があった。   By the way, some conventional mobile phones are equipped with an IC card (contact IC card) having a contact communication function, and such contact IC cards have security information such as a telephone number for ensuring security. It has been stored. For this reason, in order to provide such a mobile phone with a non-contact communication function, it is necessary to mount a non-contact IC card in addition to the contact IC card, and information can be written and stored and read out. There is a problem that a plurality of IC cards having essentially the same function as possible must be mounted, and a mechanism for that purpose is required, resulting in an increase in the cost of the mobile phone.

本発明の目的は、かかる問題を解消し、接触ICカードを用いて、非接触通信機能をも実現可能とした通信機能付きICカード装置を提供することにある。   An object of the present invention is to provide an IC card device with a communication function that can solve such a problem and can realize a non-contact communication function using a contact IC card.

上記目的を達成するために、本発明は、接触ICカードを搭載し、メイン回路から接触ICカードを制御することにより、メイン回路と接触ICカードとの間で接触通信を行なうICカード装置であって、非接触通信を行なうための非接触通信用アンテナと、非接触通信用アンテナの受信信号を処理する処理手段と、接触ICカードのメイン回路への接続と処理手段への接続とを切り替える切替手段とを設け、非接触通信用アンテナで非接触通信が行なわれるときには、切替手段は、処理手段を選択して、処理手段を該接触ICカードに接続するものである。   In order to achieve the above object, the present invention is an IC card device that carries a contact communication between a main circuit and a contact IC card by mounting a contact IC card and controlling the contact IC card from the main circuit. Switching for switching between a contactless communication antenna for contactless communication, a processing means for processing a received signal of the contactless communication antenna, and a connection of the contact IC card to the main circuit and a connection to the processing means When the non-contact communication is performed by the non-contact communication antenna, the switching unit selects the processing unit and connects the processing unit to the contact IC card.

そして、非接触アンテナからの受信信号に基づいて電源電圧を生成する電源生成手段と、電源生成手段が電源電圧を生成することを検知する検知手段とを設け、切替手段は、電源生成手段による電源電圧の生成を検知したとき、接触ICカードへの接続を前記処理手段側に切り替えるものである。   A power generation unit configured to generate a power supply voltage based on a received signal from the non-contact antenna; and a detection unit configured to detect that the power generation unit generates a power supply voltage. When the generation of the voltage is detected, the connection to the contact IC card is switched to the processing means side.

さらに、メイン回路から電源電圧が供給されているときには、電源電圧を接触ICカードに供給し、メイン回路から電源電圧が供給されず、電源生成手段から電源電圧が供給されているときには、電源電圧を前記接触ICカードに供給する電源切替手段を設けたものである。   Further, when the power supply voltage is supplied from the main circuit, the power supply voltage is supplied to the contact IC card. When the power supply voltage is not supplied from the main circuit and the power supply voltage is supplied from the power supply generation means, the power supply voltage is supplied. Power supply switching means for supplying to the contact IC card is provided.

さらに、接触通信と非接触通信とでプロトコルが異なるものであって、接触ICカードに接続するメイン回路と処理手段との切替手段による切替えに応じて、接触ICカードでの処理手順を該当するプロトコルに応じた手順とするものである。   Furthermore, the protocol differs between contact communication and non-contact communication, and the processing procedure in the contact IC card is changed according to the switching by the switching means between the main circuit connected to the contact IC card and the processing means. According to the procedure.

さらに、処理手段は、接触ICカードを制御する制御手段を有し、切替手段によって接触ICカードがメイン回路に接続されているときには、接触ICカードはメイン回路によって制御され、切替手段によって接触ICカードが処理手段に接続されているときには、制御手段によって制御されるものである。   Further, the processing means has a control means for controlling the contact IC card. When the contact IC card is connected to the main circuit by the switching means, the contact IC card is controlled by the main circuit, and the contact IC card is controlled by the switching means. Is connected to the processing means, it is controlled by the control means.

さらに、非接触アンテナからの受信信号に基づいて電源電圧を生成する電源生成手段と、電源生成手段が電源電圧を生成することを検知する検知手段とを設けるとともに、処理手段は、切替手段を制御する切替制御手段を備え、切替制御手段は、電源生成手段による電源電圧の生成を検知したとき、切替手段を制御して接触ICカードへの接続を処理手段側に切り替えるものである。   Furthermore, a power generation unit that generates a power supply voltage based on a received signal from the non-contact antenna and a detection unit that detects that the power generation unit generates a power supply voltage are provided, and the processing unit controls the switching unit. The switching control means controls the switching means to switch the connection to the contact IC card to the processing means side when detecting the generation of the power supply voltage by the power generation means.

また、本発明は、非接触アンテナからの受信信号に基づいて電源電圧を生成する電源生成手段と、電源生成手段が電源電圧を生成することを検知する検知手段とを設けるとともに、処理手段は、切替手段を制御する切替制御手段を備え、切替制御手段は、電源生成手段による電源電圧の生成を検知したとき、切替手段を制御して接触ICカードへの接続を処理手段側に切り替えるものである。   In addition, the present invention includes a power generation unit that generates a power supply voltage based on a received signal from a non-contact antenna, a detection unit that detects that the power generation unit generates a power supply voltage, and the processing unit includes: A switching control means is provided for controlling the switching means, and the switching control means controls the switching means to switch the connection to the contact IC card to the processing means side when detecting the generation of the power supply voltage by the power generation means. .

さらに、メイン回路から電源電圧が供給されているときには、電源電圧を接触ICカードに供給し、メイン回路から電源電圧が供給されず、電源生成手段から電源電圧が供給されているときには、電源電圧を前記接触ICカードに供給する電源切替手段を設けたものである。   Further, when the power supply voltage is supplied from the main circuit, the power supply voltage is supplied to the contact IC card. When the power supply voltage is not supplied from the main circuit and the power supply voltage is supplied from the power supply generation means, the power supply voltage is supplied. Power supply switching means for supplying to the contact IC card is provided.

さらに、接触通信と非接触通信とでプロトコルが異なるものであって、処理手段は、非接触通信用アンテナの非接触通信用のプロトコルによる受信信号を接触通信のプロトコルによる信号に変換して接触ICカードに供給し、接触ICカードからの接触通信のプロトコルにより信号を非接触通信のプロトコルに変換して非接触通信用アンテナから送信させるプロトコル変換手段を有するものである。   Further, the contact communication and the non-contact communication have different protocols, and the processing means converts the received signal based on the non-contact communication protocol of the non-contact communication antenna into a signal based on the contact communication protocol to convert the contact IC into a contact IC. It has protocol conversion means for supplying a signal to the card, converting the signal into a non-contact communication protocol by a contact communication protocol from the contact IC card, and transmitting the signal from the non-contact communication antenna.

さらに、切替手段によって接触ICカードがメイン回路側に接続されているときには、メイン回路から供給されるクロックを基に接触ICカード用のクロックを生成し、切替手段によって接触ICカードが処理手段側に接続されているときには、非接触通信用アンテナによる受信信号を基に接触ICカード用のクロックを生成するものである。   Further, when the contact IC card is connected to the main circuit side by the switching means, a clock for the contact IC card is generated based on the clock supplied from the main circuit, and the contact IC card is moved to the processing means side by the switching means. When connected, a clock for a contact IC card is generated based on a signal received by a non-contact communication antenna.

さらに、メイン回路から切替手段への指令により、切替手段が接触ICカードとメイン回路との接続状態を接触ICカードと処理手段との接続状態に変更することを禁止可能に構成したものである。   Further, the switching means can be prohibited from changing the connection state between the contact IC card and the main circuit to the connection state between the contact IC card and the processing means by a command from the main circuit to the switching means.

本発明によると、携帯端末に接触ICカードを搭載することにより、かかる携帯端末を、接触式のICカードとしても使用することができるし、また、非接触式のICカードとしても使用することが可能となり、接触ICカードを用いるだけで、接触式と非接触式との双方のICカード機能を得ることができる。   According to the present invention, by mounting a contact IC card on a mobile terminal, the mobile terminal can be used as a contact IC card, or can be used as a non-contact IC card. It is possible to obtain both contact type and non-contact type IC card functions only by using a contact IC card.

本発明によると、従来から利用されているプロトコルに準拠したICカードを利用して、接触通信と非接触通信を行なうことができる。   According to the present invention, contact communication and non-contact communication can be performed using an IC card compliant with a conventionally used protocol.

以下、本発明の実施形態を図面により説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は本発明による通信機能付きICカード装置の第1の実施形態を示す構成図であって、1は携帯電話、2は携帯電話のメイン回路、3はコンパニオンチップ、4は接触ICカード、5は非接触通信用アンテナ、6は同調用コンデンサ、7はメイン回路用端子、8はICカード用端子である。   FIG. 1 is a block diagram showing a first embodiment of an IC card device with a communication function according to the present invention, wherein 1 is a mobile phone, 2 is a main circuit of the mobile phone, 3 is a companion chip, 4 is a contact IC card, Reference numeral 5 is a non-contact communication antenna, 6 is a tuning capacitor, 7 is a main circuit terminal, and 8 is an IC card terminal.

同図において、携帯電話1には、接触ICカード4が搭載されており、また、非接触通信用アンテナ5が接続されたコンパニオンチップ3が設けられている。この非接触通信用アンテナ5に並列に共振周波数を調整するための同調用コンデンサ5が接続されている。このコンパニオンチップ3には、メイン回路用端子7とICカード用端子8とが設けられており、このメイン回路用端子7によって携帯電話1のメイン回路2が、また、このICカード用端子8によって携帯電話機1に搭載された接触ICカード4が夫々、コンバニオンチップ3に接続されている。   In the figure, the mobile phone 1 is equipped with a contact IC card 4 and a companion chip 3 to which a non-contact communication antenna 5 is connected. A tuning capacitor 5 for adjusting the resonance frequency is connected to the non-contact communication antenna 5 in parallel. The companion chip 3 is provided with a main circuit terminal 7 and an IC card terminal 8, and the main circuit terminal 7 allows the main circuit 2 of the mobile phone 1 to be connected to the companion chip 3. A contact IC card 4 mounted on the mobile phone 1 is connected to the combination chip 3.

図2は図1におけるコンパニオンチップ3の一具体例を示すブロック図であって、7aは外部接続端子、7bは非接触電源検出端子、7cは外部接続用BUSY(ビジー)端子、7dは外部接続用切替禁止端子、10は切替回路、11は接触ICカード制御回路、12は送受信回路、13はデータバッファ、14はRF(無線周波)検波/変調回路、15は電源生成回路、16は電源切替端子、17はクロック生成回路、18はアンテナ端子であり、図1に対応する部分には同一符号を付けている。   2 is a block diagram showing a specific example of the companion chip 3 in FIG. 1, in which 7a is an external connection terminal, 7b is a non-contact power supply detection terminal, 7c is an external connection BUSY (busy) terminal, and 7d is an external connection. Switching prohibition terminal, 10 is a switching circuit, 11 is a contact IC card control circuit, 12 is a transmission / reception circuit, 13 is a data buffer, 14 is an RF (radio frequency) detection / modulation circuit, 15 is a power generation circuit, 16 is a power switching Reference numeral 17 denotes a clock generation circuit, 18 denotes an antenna terminal, and parts corresponding to those in FIG.

同図において、コンパニオンチップ3には、外部接続用端子7aと非接触電源検出端子7bと外部接続用BUSY端子7cと外部接続用切替禁止端子7dとが設けられており、これら端子7a〜7dは図1でのメイン回路用端子7をなしていてメイン回路2(図1)に接続されている。また、アンテナ端子18は非接触通信用アンテナ5(図1)に接続されている。   In the figure, the companion chip 3 is provided with an external connection terminal 7a, a non-contact power source detection terminal 7b, an external connection BUSY terminal 7c, and an external connection switching prohibition terminal 7d. These terminals 7a to 7d are The main circuit terminal 7 in FIG. 1 is formed and connected to the main circuit 2 (FIG. 1). The antenna terminal 18 is connected to the non-contact communication antenna 5 (FIG. 1).

コンパニオンチップ3内では、外部接続用端子7aのRST(リセット)端子とCLK(クロック)端子とIO(入出力)端子とが切替回路10に接続されており、電源端子が電源切替回路16に接続され、GND(接地)端子が接地されている。また、非接触電源検出端子7bは電源切替回路7bに接続され、外部接続用BUSY端子7cと外部接続用切替禁止端子7dとは切替回路10に接続されている。コンパニオンチップ3には、外部接続用端子7aにより、メイン回路2からクロックやリセットパルス,電源電圧が供給され、また、メイン回路2との間でデータのやり取りを行なう。   In the companion chip 3, the RST (reset) terminal, the CLK (clock) terminal, and the IO (input / output) terminal of the external connection terminal 7 a are connected to the switching circuit 10, and the power supply terminal is connected to the power supply switching circuit 16. The GND (ground) terminal is grounded. The non-contact power source detection terminal 7b is connected to the power source switching circuit 7b, and the external connection BUSY terminal 7c and the external connection switching prohibition terminal 7d are connected to the switching circuit 10. The companion chip 3 is supplied with a clock, a reset pulse, and a power supply voltage from the main circuit 2 through an external connection terminal 7 a, and exchanges data with the main circuit 2.

切替回路10は、また、ICカード用端子8により、接触ICカード4と接続されている。このICカード用端子8は、接触ICカード4の電源端子に接続される端子と、RST端子に接続される端子と、CLK端子に接続される端子と、IO端子に接続される端子と、GND端子に接続される端子と、増設IOに接続される端子とからなっている。かかるICカード用端子8により、切替回路10から接触ICカード4に電源電圧やリセットパルス,クロックが供給され、切替回路10と接触ICカード4との間でデータのやり取りが行なわれ、接触ICカード4が接地される。なお、接触ICカード4の増設IO端子は、IO端子とは別のプロトコルで切替回路10,接触ICカード4間のデータのやり取りを行なうためのものである。   The switching circuit 10 is also connected to the contact IC card 4 by an IC card terminal 8. The IC card terminal 8 includes a terminal connected to the power supply terminal of the contact IC card 4, a terminal connected to the RST terminal, a terminal connected to the CLK terminal, a terminal connected to the IO terminal, and a GND. It consists of a terminal connected to the terminal and a terminal connected to the expansion IO. The IC card terminal 8 supplies a power supply voltage, a reset pulse, and a clock from the switching circuit 10 to the contact IC card 4, and data is exchanged between the switching circuit 10 and the contact IC card 4. 4 is grounded. The additional IO terminal of the contact IC card 4 is for exchanging data between the switching circuit 10 and the contact IC card 4 using a protocol different from that of the IO terminal.

非接触通信用アンテナ5(図1)は、アンテナ端子18により、RF検波/変調回路14に接続されている。このRF検波/変調回路14は、非接触通信するデータをRF変調して非接触通信用アンテナ5に供給し、この非接触通信用アンテナ5で受信したRF信号を検波し、送受信回路12に供給する。電源生成回路15は、非接触通信用アンテナ5で高周波のRF信号を受信すると、その一部がRF検波変調回路14から供給され、このRF信号を基に電源電圧を生成する。この電源生成回路15で生成された電源電圧は、電源切替回路16を介して接触ICカード制御回路11や送受信回路などに供給され、また、さらに、切替回路10とICカード用端子8とを介して接触ICカード4に供給することができる。また、外部接続用端子7aを介してメイン回路2(図1)から電源電圧も、上記と同様、電源切替回路16を介して接触ICカード制御回路11や送受信回路などに供給され、さらに、切替回路10とICカード用端子8とを介して接触ICカード4に供給することができる。電源切替回路16は、電源電圧が外部接続用7aから供給されるか、電源生成回路15から供給されるかを判断(検出)する機能を備えており、電源生成回路15から電源電圧が供給されるときには、これを検出して非接触電源検出端子7bからメイン回路2にその旨を通知する情報を送り、また、切替回路10にも通知する。   The contactless communication antenna 5 (FIG. 1) is connected to the RF detection / modulation circuit 14 by an antenna terminal 18. This RF detection / modulation circuit 14 RF-modulates data for non-contact communication and supplies it to the non-contact communication antenna 5, detects an RF signal received by the non-contact communication antenna 5, and supplies it to the transmission / reception circuit 12. To do. When the high-frequency RF signal is received by the non-contact communication antenna 5, a part of the power generation circuit 15 is supplied from the RF detection modulation circuit 14, and generates a power supply voltage based on this RF signal. The power supply voltage generated by the power supply generation circuit 15 is supplied to the contact IC card control circuit 11 and the transmission / reception circuit via the power supply switching circuit 16, and further via the switching circuit 10 and the IC card terminal 8. Can be supplied to the contact IC card 4. The power supply voltage is also supplied from the main circuit 2 (FIG. 1) via the external connection terminal 7a to the contact IC card control circuit 11 and the transmission / reception circuit via the power supply switching circuit 16 in the same manner as described above. The contact IC card 4 can be supplied via the circuit 10 and the IC card terminal 8. The power supply switching circuit 16 has a function of determining (detecting) whether the power supply voltage is supplied from the external connection 7 a or the power supply generation circuit 15, and the power supply voltage is supplied from the power supply generation circuit 15. When this is detected, information for notifying this is sent to the main circuit 2 from the non-contact power source detection terminal 7b, and the switching circuit 10 is also notified.

接触ICカード4は、外部接続用端子7a,切替回路10及びICカード用端子8を介してメイン回路2から制御されるが、非接触通信用アンテナ5で非接触通信を行なうときには、切替回路10及びICカード用端子8を介して接触ICカード制御回路11から制御される。接触ICカード4がメイン回路2によって制御されるときには、接触ICカード4の増設IO端子が“L(低レベル)”に設定され、ISO7816仕様の接触式ICカードの通信制御手順に従って制御されるが、非接触通信の際に接触ICカード制御回路11によって制御されるときには、接触ICカード4の増設IO端子が“H(高レベル)”に設定され、ISO14443仕様の手順に従って制御される。   The contact IC card 4 is controlled from the main circuit 2 via the external connection terminal 7a, the switching circuit 10 and the IC card terminal 8, but when the contactless communication antenna 5 performs the contactless communication, the switching circuit 10 The contact IC card control circuit 11 controls the IC card via the IC card terminal 8. When the contact IC card 4 is controlled by the main circuit 2, the additional IO terminal of the contact IC card 4 is set to “L (low level)”, and is controlled according to the communication control procedure of the contact IC card of the ISO7816 specification. When controlled by the contact IC card control circuit 11 during non-contact communication, the additional IO terminal of the contact IC card 4 is set to “H (high level)” and controlled according to the procedure of the ISO 14443 specification.

かかる構成によると、切替回路10が外部接続用端子7aを選択し、接触ICカード4がメイン回路2に接続されるときには、これら間で接触通信が行なわれ、切替回路10が接触ICカード制御回路11側を選択し、接触ICカード4が接触ICカード制御回路11と接続されるときには、非接触通信用アンテナ5により、非接触通信を行なうことができる。これら接触通信と非接触通信とでは、互いにプロトコルが異なるものであり、ここで、接触通信の場合には、上記のように、接触式のICカードに対して規定されているISO7816仕様に準拠し、非接触通信の場合には、非接触式のICカードに対して規定されているISO14443仕様に準拠する。   According to this configuration, when the switching circuit 10 selects the external connection terminal 7a and the contact IC card 4 is connected to the main circuit 2, contact communication is performed between them, and the switching circuit 10 is connected to the contact IC card control circuit. When the contact 11 card is selected and the contact IC card 4 is connected to the contact IC card control circuit 11, the contactless communication antenna 5 can perform contactless communication. The contact communication and non-contact communication have different protocols. In the case of contact communication, as described above, it conforms to the ISO7816 specification defined for contact IC cards. In the case of non-contact communication, it conforms to the ISO14443 specification defined for non-contact type IC cards.

次に、図2に示すコンパニオンチップ3の動作について説明するが、まず、メイン回路2から接触ICカード4を制御する場合の動作について説明する。   Next, the operation of the companion chip 3 shown in FIG. 2 will be described. First, the operation when the contact IC card 4 is controlled from the main circuit 2 will be described.

この場合には、メイン回路2は、コンパニオンチップ3を活性化するために、外部接続用端7aの電源端子,CLK端子,RST端子及びIO端子にISO7816仕様の接触式ICカードの通信制御手順に従って信号を供給する。コンパニオンチップ3では、切替回路10は、電源生成回路15から電源切替回路16に電源供給がなされていないことが電源切替回路16から通知されているときには、接触ICカード4側に切り替わり、コンパニオンチップ3がこの接触ICカード4とデータ通信をすることができるようにする。切替回路10のかかる切替えタイミングは外部接続用端子7aの電源端子に電源電圧が供給された時点であって、このことが電源切替回路16から通知されると、切替回路10が上記の切替え動作を行なう。   In this case, in order to activate the companion chip 3, the main circuit 2 follows the communication control procedure of the contact type IC card of the ISO7816 specification to the power supply terminal, the CLK terminal, the RST terminal and the IO terminal of the external connection terminal 7a. Supply the signal. In the companion chip 3, the switching circuit 10 switches to the contact IC card 4 side when the power switching circuit 16 notifies that the power generation circuit 15 does not supply power to the power switching circuit 16. Enables data communication with the contact IC card 4. The switching timing of the switching circuit 10 is the time when the power supply voltage is supplied to the power supply terminal of the external connection terminal 7a. When this is notified from the power supply switching circuit 16, the switching circuit 10 performs the above switching operation. Do.

切替回路10のこの切替え動作により、外部接続用端子7aのRST端子,CLK端子及びIO端子が夫々ICカード4のRST端子,CLK端子及びIO端子に接続されることになる。また、このようなメイン回路2からの制御の場合には、切替回路10は、かかる切替えとともに、接触ICカード4の増設IO端子を“L”に設定し、接触ICカード4に外部接続用端子7a、従って、メイン回路2と接続したことを通知する。   By this switching operation of the switching circuit 10, the RST terminal, the CLK terminal and the IO terminal of the external connection terminal 7a are connected to the RST terminal, the CLK terminal and the IO terminal of the IC card 4, respectively. Further, in the case of such control from the main circuit 2, the switching circuit 10 sets the additional IO terminal of the contact IC card 4 to “L” and switches the external IC terminal to the contact IC card 4 along with the switching. 7a, therefore, the fact that the main circuit 2 has been connected is notified.

これ以降は、ISO7816仕様に従う手順で接触ICカード4のCLK端子,IO端子及びRST端子が処理される。ICカード4では、その増設IO端子が“L”の状態であることから、ISO7816仕様に従う活性化処理が開始されたことを検知し、これに応答してISO7816仕様に従うATR(Anser to Reset)を送出し、接触式のICカードとして処理を開始する。   Thereafter, the CLK terminal, the IO terminal, and the RST terminal of the contact IC card 4 are processed according to the procedure according to the ISO7816 specification. In IC card 4, since the additional IO terminal is in the “L” state, it detects that activation processing according to the ISO7816 specification has started, and in response to this, performs ATR (Anser to Reset) according to the ISO7816 specification. Send out and start processing as a contact IC card.

切替回路10は、ICカード4からこのATRを取得すると、外部接続用端子7aからメイン回路2に出力する。メイン回路2は、このATRを受けると、コンパニオンチップ3の外部接続用端子7aのIO端子にISO7816仕様に従うコマンドデータを出力する。このコマンドデータは、切替回路10を介し、IO端子からICカード4に供給される。ICカード4はそのIO端子から入力されたこのコマンドデータを処理し、その応答としてISO7816仕様に従うレスポンスデータとしてIO端子から出力する。このレスポンスデータは、切替回路10及び外部接続用端子7aのIO端子を介してメイン回路2に返される。   When acquiring the ATR from the IC card 4, the switching circuit 10 outputs the ATR from the external connection terminal 7a to the main circuit 2. Upon receiving this ATR, the main circuit 2 outputs command data according to the ISO7816 specification to the IO terminal of the external connection terminal 7a of the companion chip 3. This command data is supplied to the IC card 4 from the IO terminal via the switching circuit 10. The IC card 4 processes the command data input from the IO terminal and outputs the response data from the IO terminal as response data according to the ISO7816 specification. This response data is returned to the main circuit 2 via the switching circuit 10 and the IO terminal of the external connection terminal 7a.

このようにして、メイン回路2は、必要な処理を終えると、ISO7816仕様に従う手順で電源を切断する非活性化処理を行なう。これにより、切替回路10を介して、ICカード用端子8のRST端子,CLK端子及びIO端子が同様に非活性化処理となる。ICカード4は、この非活性化処理を検出すると、その動作を終了する。同時に、コンパニオンチップ3も動作を停止する。   In this way, when the main circuit 2 finishes the necessary processing, the main circuit 2 performs the deactivation processing for cutting off the power supply according to the procedure according to the ISO7816 specification. Accordingly, the RST terminal, the CLK terminal, and the IO terminal of the IC card terminal 8 are similarly deactivated through the switching circuit 10. When the IC card 4 detects this deactivation process, the operation ends. At the same time, the companion chip 3 also stops operating.

以上のように、接触ICカード4に対してメイン回路2から制御が行なわれるが、この制御動作をメイン回路2から見ると、コンパニオンチップ3があたかも通常のISO7816仕様に従うICカード(即ち、接触ICカード)と見える動作を行なっていることになる。   As described above, the contact IC card 4 is controlled from the main circuit 2. When this control operation is viewed from the main circuit 2, the companion chip 3 is as if an IC card (that is, a contact IC) according to the normal ISO7816 specification. Card).

メイン回路2は、必要に応じて、コンパニオンチップ3を介してICカード4に所定の処理を実行させることができる。例えば、図3(a)に示すように、携帯電話1が他の携帯電話機と通話するための携帯電話ネットワーク100に接続されたデータ管理サーバ101から電文を取得する場合、取得した電文中の所望のデータを接触ICカード4に書き込んだり、また、このデータ管理サーバ101の指示により、接触ICカード4に書き込まれているデータを読み出すようにすることもできる。   The main circuit 2 can cause the IC card 4 to execute a predetermined process via the companion chip 3 as necessary. For example, as shown in FIG. 3A, when acquiring a message from the data management server 101 connected to the cell phone network 100 for the mobile phone 1 to make a call with another mobile phone, the desired in the acquired message The data written in the contact IC card 4 can be read out according to an instruction from the data management server 101.

このような場合には、メイン回路2がデータ管理サーバ101から取得した電文から所望のデータを抽出し、このデータをコンパニオンチップ3にISO7816仕様に従う手順で書き込みの処理を行なうと、上記のような制御動作が行なわれて、接触ICカード4にこのデータが書き込まれる。また、データ管理サーバ101から送られた電文の中にデータ読込み指令があると、メイン回路2がこのデータ読込み指令を抽出し、コンパニオンチップ3を介して接触ICカード4に送る。接触ICカード4はこの指令に該当するデータをコンパニオンチップ3を介してメイン回路2に送り、メイン回路2は取り込んだこのデータをデータ管理サーバ101に携帯電話ネットワーク100を介して送信する。   In such a case, when the main circuit 2 extracts desired data from the message acquired from the data management server 101, and writes this data to the companion chip 3 according to the procedure according to the ISO7816 specifications, A control operation is performed, and this data is written to the contact IC card 4. When a data read command is included in the message sent from the data management server 101, the main circuit 2 extracts this data read command and sends it to the contact IC card 4 via the companion chip 3. The contact IC card 4 sends data corresponding to the command to the main circuit 2 via the companion chip 3, and the main circuit 2 sends the captured data to the data management server 101 via the mobile phone network 100.

なお、かかる動作もISO7816仕様に従う手順で行なわれるものであり、接触ICカード4の増設IO端子も“L”に保持されている。   This operation is also performed in accordance with the ISO7816 specification, and the additional IO terminal of the contact IC card 4 is also held at “L”.

以上の動作は単にデータの読み書きを行なうものであるが、データ管理サーバ101や接触ICカード4とで相互に暗号化機能や復号化機能,署名生成機能,署名検証機能を夫々持たせ、これら機能を使用することにより、相互認証や暗号通信や暗号鍵交換などの暗号処理を行なうようにしてもよいことは勿論である。   The above operation simply reads and writes data, but the data management server 101 and the contact IC card 4 have an encryption function, a decryption function, a signature generation function, and a signature verification function, respectively. It goes without saying that encryption processing such as mutual authentication, encryption communication, and encryption key exchange may be performed by using.

次に、コンパニオンチップ3が非活性化処理によって動作を停止しているときに、非接触用アンテナ端子5でISO14443仕様に従うキャリア電波を受信した場合の制御動作について説明する。   Next, a description will be given of the control operation when the carrier wave conforming to the ISO14443 specification is received by the non-contact antenna terminal 5 when the operation of the companion chip 3 is stopped by the deactivation process.

非接触用アンテナ端子5でキャリア電波が受信されると、その受信RF信号がRF検波/変調回路14に供給される。RF検波/変調回路14では、このRF信号が検波されるのであるが、このRF信号は電源生成回路15にも供給され、検波され、安定化されて必要な電圧値の電源電圧が生成される。この電源電圧は電源切替回路16に供給される。このとき、コンパニオンチップ3が非活性化処理によって動作を停止しているので、外部接続用端子7aの電源端子を介してこの電源切替回路16にメイン回路2から電源電圧が供給されていない。このような場合には、電源切替回路16は、電源生成回路15から供給される電源電圧を切替回路10や接触ICカード制御回路11,送受信回路12などのコンパニオンチップ3の各部に供給するとともに、これとほぼ同時に、非接触電源検出端子7bを“H”として、電源生成回路15から電源電圧が供給されていることをメイン回路2に通知し、同様の通知を切替回路10に対しても行なう。   When the carrier radio wave is received at the non-contact antenna terminal 5, the received RF signal is supplied to the RF detection / modulation circuit 14. The RF detection / modulation circuit 14 detects this RF signal, but this RF signal is also supplied to the power generation circuit 15 to be detected and stabilized to generate a power supply voltage having a necessary voltage value. . This power supply voltage is supplied to the power supply switching circuit 16. At this time, since the operation of the companion chip 3 is stopped by the deactivation processing, the power supply voltage is not supplied from the main circuit 2 to the power supply switching circuit 16 via the power supply terminal of the external connection terminal 7a. In such a case, the power supply switching circuit 16 supplies the power supply voltage supplied from the power supply generation circuit 15 to each part of the companion chip 3 such as the switching circuit 10, the contact IC card control circuit 11, and the transmission / reception circuit 12, and the like. At substantially the same time, the non-contact power source detection terminal 7b is set to “H” to notify the main circuit 2 that the power source voltage is supplied from the power source generation circuit 15, and the same notification is also given to the switching circuit 10. .

RF検波/変調回路14は、また、受信したRF信号をクロック生成回路17にも供給する。このとき、外部接続用端子7aのCLK端子からクロックが入力されていないので、クロック生成回路211は供給されたRF信号からISO14443仕様に従う動作用のクロックを生成し、切替回路10や接触ICカード制御回路11,送受信回路12などのコンパニオンチップ3の各部に供給する。   The RF detection / modulation circuit 14 also supplies the received RF signal to the clock generation circuit 17. At this time, since no clock is input from the CLK terminal of the external connection terminal 7a, the clock generation circuit 211 generates an operation clock according to the ISO14443 specification from the supplied RF signal, and controls the switching circuit 10 and the contact IC card. This is supplied to each part of the companion chip 3 such as the circuit 11 and the transmission / reception circuit 12.

切替回路10は、電源生成回路15から電源電圧が供給されているという通知を電源切替回路16から受けると、接触ICカード制御回路11を接触ICカード4に接続するように切り替わる。これにより、接触ICカード制御回路11からの接触ICカード4のリセット制御やクロック制御,電源制御が可能となる。また、これとほぼ同時に、切替回路10は外部接続用BUSY端子7cを“H”にし、接触ICカード4が非接触通信に利用中であることをメイン回路2に通知する。   When the switching circuit 10 receives a notification that the power supply voltage is supplied from the power generation circuit 15 from the power switching circuit 16, the switching circuit 10 switches to connect the contact IC card control circuit 11 to the contact IC card 4. Thereby, reset control, clock control, and power supply control of the contact IC card 4 from the contact IC card control circuit 11 are possible. At substantially the same time, the switching circuit 10 sets the external connection BUSY terminal 7c to “H” to notify the main circuit 2 that the contact IC card 4 is being used for non-contact communication.

接触ICカード制御回路11は、切替回路10によって接触ICカード4に接続されるとともに、この切替回路10に対して電源制御を行ない、電源切替回路16から供給される電源電圧をIO端子から接触ICカード4に供給する。また、このとき、切替回路10では、接触ICカード4の増設IO端子を“H”とする。その後、接触ICカード制御回路11はリセット制御,クロック制御を行なって、ISO14443仕様に従う手順で活性化処理を行ない、接触ICカード4にクロックを供給し、また、そのRST端子を制御する。   The contact IC card control circuit 11 is connected to the contact IC card 4 by the switching circuit 10, performs power control on the switching circuit 10, and supplies the power supply voltage supplied from the power switching circuit 16 from the IO terminal to the contact IC. Supply to card 4. At this time, the switching circuit 10 sets the additional IO terminal of the contact IC card 4 to “H”. Thereafter, the contact IC card control circuit 11 performs reset control and clock control, performs activation processing according to the procedure according to the ISO14443 specification, supplies a clock to the contact IC card 4, and controls its RST terminal.

接触ICカード4は、この活性化処理に従って動作を開始するが、その増設IO端子が“H”となっているため、応答として、ISO7816仕様で定義されたATRではなく、動作開始を伝える1バイトのデータ“Ox3B"のみを出力して活性化される。切替回路10は、このデータ“Ox3B"を接触ICカード制御回路11に渡す。接触ICカード制御回路11は、このデータ“Ox3B"により、接触ICカード4が正しく活性化されたことを認識する。   The contact IC card 4 starts to operate according to this activation process, but since its additional IO terminal is “H”, as a response, it is not an ATR defined in the ISO7816 specification, but 1 byte that tells the start of operation. Only data “Ox3B” is output and activated. The switching circuit 10 passes this data “Ox3B” to the contact IC card control circuit 11. The contact IC card control circuit 11 recognizes that the contact IC card 4 is correctly activated based on the data “Ox3B”.

その後、アンテナ端子18からの受信RF信号は、RF検波/変調回路14で検波されて送受信回路12に供給され、この受信信号に含まれるISO14443仕様のデータ列のコマンドデータが検出されてデータバッファ13に蓄えられる。データバッファ212にISO14443仕様で定義されるデータサイズ分のデータが蓄積されると、送受信回路12はコマンドデータの受信が完了したことを接触ICカード制御回路11に通知する。接触ICカード制御回路11は、この通知をうけると、送受信回路12を介してデータバッファ13からこのコマンドデータを取り込み、切替回路10を介して接触ICカード4に送る。   Thereafter, the received RF signal from the antenna terminal 18 is detected by the RF detection / modulation circuit 14 and supplied to the transmission / reception circuit 12, and the command data of the data string of the ISO14443 specification included in this reception signal is detected and the data buffer 13 is detected. Stored in When data of the data size defined by the ISO14443 specification is stored in the data buffer 212, the transmission / reception circuit 12 notifies the contact IC card control circuit 11 that the reception of command data is completed. Upon receiving this notification, the contact IC card control circuit 11 takes in the command data from the data buffer 13 via the transmission / reception circuit 12 and sends it to the contact IC card 4 via the switching circuit 10.

接触ICカード4では、このコマンドデータがそのIO端子から入力されるが、このとき、その増設IO端子が“H”の状態にあるので、IO端子から入力されたコマンドデータを非接触通信で受信されたISO14443仕様に従うデータと解釈し、これに対して必要な応答データを作成する。この応答データは接触ICカード4のIO端子から出力され、切替回路10を介して接触ICカード制御回路11に供給される。接触ICカード制御回路11は、この応答データをデータバッファ13に転送するとともに、送受信回路12に対して返信応答処理を指示する制御を行なう。送受信回路12は、この指示に従って、データバッファ13から応答データを取り込む。この応答データはRF検波/変調回路14でISO14443仕様に従って変調されてRF信号となり、アンテナ端子18から非接触用アンテナ5に供給されて、キャリア電波として送信される。   In the contact IC card 4, this command data is input from the IO terminal. At this time, since the additional IO terminal is in the “H” state, the command data input from the IO terminal is received by non-contact communication. It is interpreted as data conforming to the ISO14443 specification, and necessary response data is created for this. This response data is output from the IO terminal of the contact IC card 4 and supplied to the contact IC card control circuit 11 via the switching circuit 10. The contact IC card control circuit 11 transfers the response data to the data buffer 13 and controls the transmission / reception circuit 12 to instruct a reply response process. The transmission / reception circuit 12 fetches response data from the data buffer 13 in accordance with this instruction. This response data is modulated by the RF detection / modulation circuit 14 in accordance with the ISO 14443 specification to become an RF signal, supplied from the antenna terminal 18 to the non-contact antenna 5 and transmitted as a carrier wave.

非接触通信用アンテナ5での上記のコマンドデータの受信が終わっても、このコマンドデータに対する応答データの送信が終了するまでは、非接触通信用アンテナ5からクロックのみからなるキャリア電波が受信されており、これが電源生成回路15に供給されるとともに、クロック生成回路17にも供給されている。このため、応答データの送信が終了するまで、電源生成回路15で安定した電源電圧が生成されてコンパニオンチップ3の各部に供給されているし、また、ISO14443仕様に準拠したクロックがクロック生成回路17で生成されてコンパニオンチップ3の各部に供給されている。   Even after the reception of the command data at the non-contact communication antenna 5 is completed, a carrier wave consisting of only a clock is received from the non-contact communication antenna 5 until the transmission of response data to the command data is completed. This is supplied to the power generation circuit 15 and also to the clock generation circuit 17. Therefore, until the transmission of the response data is completed, a stable power supply voltage is generated by the power supply generation circuit 15 and supplied to each part of the companion chip 3, and a clock conforming to the ISO14443 specification is supplied to the clock generation circuit 17 And supplied to each part of the companion chip 3.

応答データの送信が終了すると、非接触通信用アンテナ5からのISO14443仕様に従うキャリア電波の受信も終了し、これにより、電源生成回路15から電源電圧が供給されなくなるし、また、クロック生成回路17でのクロックの生成も終了する。これに伴って接触ICカード4もコンパニオンチップ3も非活性化状態となって動作を停止し、また、接触ICカード4の増設IO端子も“L”となる。   When the transmission of the response data is completed, the reception of the carrier wave in accordance with the ISO14443 specification from the non-contact communication antenna 5 is also terminated, whereby the power supply voltage is not supplied from the power generation circuit 15 and the clock generation circuit 17 The generation of the clock is also terminated. As a result, both the contact IC card 4 and the companion chip 3 are deactivated to stop the operation, and the additional IO terminal of the contact IC card 4 is also set to “L”.

以上の動作は、上記コマンドデータの送信側からみると、コンパニオンチップ3があたかも通常のISO14443仕様に従う非接触ICカードと見える動作を行なっていることになる。   The above operation is that the companion chip 3 looks as if it is a non-contact IC card according to the normal ISO14443 specification when viewed from the command data transmission side.

ところで、上記のコマンドデータの送信側として、図3(b)に示すように、非接触ICカードリーダライタ103を備えた端末制御装置104とすることができる。上記の動作では、端末制御装置104が非接触ICカードリーダライタ103からコマンドデータを乗せたキャリア電波105を送信し、応答データをキャリア電波106で非接触ICカードリーダライタ103に返すものである。このことからして、携帯電話1は非接触通信機能を備えていることになる。   By the way, as shown in FIG. 3B, the terminal control device 104 provided with the non-contact IC card reader / writer 103 can be used as the command data transmission side. In the above operation, the terminal control device 104 transmits a carrier wave 105 carrying command data from the non-contact IC card reader / writer 103 and returns response data to the non-contact IC card reader / writer 103 using the carrier wave 106. Therefore, the mobile phone 1 has a non-contact communication function.

また、端末制御装置104は、必要に応じて、非接触ICカードリーダライタ103を制御することにより、コンパニオンチップ3を介して接触ICカード4に処理を実行させることができる。例えば、端末制御装置104が所望のデータをコンパニオンチップ3にISO14443仕様に従う手順で書き込みの処理を行なうと、接触ICカード4にこのデータが書き込まれることになるし、また、端末制御装置104がコンパニオンチップ3を介して接触ICカード4からデータを読み込むこともでき、これにより、端末制御装置104は読み込んだデータに対して必要な処理を施すことができる。   Further, the terminal control device 104 can cause the contact IC card 4 to execute processing via the companion chip 3 by controlling the non-contact IC card reader / writer 103 as necessary. For example, when the terminal control device 104 writes desired data to the companion chip 3 in accordance with the procedure according to the ISO 14443 specification, this data is written to the contact IC card 4, and the terminal control device 104 Data can also be read from the contact IC card 4 via the chip 3, whereby the terminal control device 104 can perform necessary processing on the read data.

なお、以上の動作は単にデータの読み書きをするものであったが、端末制御装置104や接触ICカード4に夫々暗号化機能や復号化機能,署名生成機能,署名検証機能を持たせ、これらを用いて相互認証や暗号通信や暗号鍵交換などの暗号処理を行なうこともできる。   Although the above operation is merely for reading and writing data, the terminal control device 104 and the contact IC card 4 are provided with an encryption function, a decryption function, a signature generation function, and a signature verification function, respectively. It is also possible to perform encryption processing such as mutual authentication, encryption communication, and encryption key exchange.

次に、メイン回路2によってコンパニオンチップ3が活性化処理され、外部接続用端子7aからの信号で処理動作を実行中に、非接触通信用アンテナ5で非接触ICカードリーダライタ103(図3)からのISO14443仕様に従うキャリア電波105が受信された場合の動作を説明する。   Next, the companion chip 3 is activated by the main circuit 2, and the non-contact IC card reader / writer 103 (FIG. 3) is used by the non-contact communication antenna 5 while the processing operation is being executed with the signal from the external connection terminal 7a. The operation when the carrier radio wave 105 conforming to the ISO14443 specification is received will be described.

RF検波/変調回路14は、非接触通信用アンテナ5で非接触ICカードリーダライタ103(図3(b))からのキャリア電波105を受信することによってアンテナ端子18から入力される受信RF信号を検波するとともに、電源生成回路15にも供給する。電源生成回路15はこのRF信号を検波して安定な電源電圧を生成し、電源切替回路16に供給する。電源切替回路16は、このとき、外部接続用端子7aの電源端子から電源電圧が供給されているので、電源生成回路15から供給された電源電源電圧を選択せず、そのまま外部接続用端子7aの電源端子から供給される電源電圧をそのままコンバニオンチップ3の各部に供給し続ける。しかし、電源切替回路16は、外部接続用端子7aの電源端子からの電源電圧をそのままコンバニオンチップ3の各部に供給し続けても、電源生成回路15が電源電圧が供給されたことを検知し、非接触電源検出端子7bを“H”として、この旨をメイン回路2に通知するとともに、切替回路10にも通知する。従って、電源切替回路16からのかかる通知は、非接触通信用アンテナ5で非接触通信が行なわれるか否かの通知ということになる。   The RF detection / modulation circuit 14 receives the received RF signal input from the antenna terminal 18 by receiving the carrier wave 105 from the non-contact IC card reader / writer 103 (FIG. 3B) by the non-contact communication antenna 5. While detecting, it supplies also to the power supply generation circuit 15. FIG. The power supply generation circuit 15 detects this RF signal, generates a stable power supply voltage, and supplies it to the power supply switching circuit 16. At this time, since the power supply voltage is supplied from the power supply terminal of the external connection terminal 7a, the power supply switching circuit 16 does not select the power supply voltage supplied from the power supply generation circuit 15 and directly uses the power supply voltage of the external connection terminal 7a. The power supply voltage supplied from the power supply terminal is continuously supplied to each part of the companion chip 3 as it is. However, the power supply switching circuit 16 detects that the power supply voltage is supplied even if the power supply voltage from the power supply terminal of the external connection terminal 7a is continuously supplied to each part of the companion chip 3 as it is. The non-contact power supply detection terminal 7b is set to “H”, and this is notified to the main circuit 2 and also to the switching circuit 10. Therefore, the notification from the power supply switching circuit 16 is a notification as to whether or not non-contact communication is performed by the non-contact communication antenna 5.

RF検波/変調回路14は、また、受信RF信号をクロック生成回路17にも供給し、ISO14443仕様に準拠したクロックを生成させる。このクロックはコンパニオンチップ3の各部に供給される。   The RF detection / modulation circuit 14 also supplies the received RF signal to the clock generation circuit 17 to generate a clock conforming to the ISO14443 specification. This clock is supplied to each part of the companion chip 3.

また、切替回路10は、電源切替回路16から電源生成回路15からの電源電圧が供給されているという電源切替回路16からの通知により、非接触通信用アンテナ5による非接触通信が開始したと認識して、接触ICカード4の接続を外部接続用端子7a、従って、メイン回路2側から接触ICカード制御回路11側に切り替える。また、切替回路10は、これとほぼ同時に、外部接続用BUSY端子7cを“H”として、接触ICカード4が非接触通信に利用中であることをメイン回路2に通知し、さらに、接触ICカード4の増設IO端子を“H”とする。外部接続用端子7aからの信号で処理動作を実行中の接触ICカード4は、増設IO端子が“H”となったことを検出すると、現在の状態を内部のメモリに記録して保持する。   Further, the switching circuit 10 recognizes that the non-contact communication by the non-contact communication antenna 5 has started by the notification from the power switching circuit 16 that the power supply voltage from the power generation circuit 15 is supplied from the power switching circuit 16. Then, the connection of the contact IC card 4 is switched from the external connection terminal 7a, and hence from the main circuit 2 side to the contact IC card control circuit 11 side. At the same time, the switching circuit 10 sets the external connection BUSY terminal 7c to “H” to notify the main circuit 2 that the contact IC card 4 is being used for non-contact communication. The expansion IO terminal of card 4 is set to “H”. When the contact IC card 4 that is executing the processing operation with the signal from the external connection terminal 7a detects that the additional IO terminal has become “H”, the current state is recorded and held in the internal memory.

しかる後、接触ICカード制御回路11は、接触ICカード4を制御可能とするために、接触ICカード4のRST端子のみを利用してISO7816仕様で定義されるウォームリセットを発生する。接触ICカード4は、このウォームリセットに従う動作を開始するが、その増設IO端子が“H”となっているため、ISO7816仕様で定義されたATRではなく、動作開始を伝える1バイトのデータ“Ox3B”のみを出力して活性化される。切替回路10は、この1バイトのデータを接触ICカード制御回路11に送り、接触ICカード制御回路11は、この1バイトのデータを受けることにより、接触ICカード4が正しく活性化されたことを認識する。   Thereafter, the contact IC card control circuit 11 generates a warm reset defined by the ISO7816 specification using only the RST terminal of the contact IC card 4 so that the contact IC card 4 can be controlled. The contact IC card 4 starts the operation according to this warm reset, but since the additional IO terminal is “H”, it is not ATR defined in the ISO7816 specification, but 1-byte data “Ox3B” that indicates the operation start. Only "" is output and activated. The switching circuit 10 sends the 1-byte data to the contact IC card control circuit 11, and the contact IC card control circuit 11 confirms that the contact IC card 4 has been activated correctly by receiving the 1-byte data. recognize.

一方、アンテナ端子18からの受信RF信号は、RF検波/変調回路14で検波された後、送受信回路12に供給されてキャリア電波に乗せられて受信されたISO14443仕様に従うコマンドデータが検出され、データ列として認識されてデータバッファ13に蓄えられる。このデータバッファ212にISO14443仕様で定義されるデータサイズ分のデータ(即ち、コマンドデータ)が蓄積されると、送受信回路12は、データ受信が完了したことを接触ICカード制御回路11に通知する。この通知を受けた接触ICカード制御回路11は、送受信回路12を介してデータバッファ13から蓄積したデータを取り込み、切替回路10を介して接触ICカード4に供給する。   On the other hand, the received RF signal from the antenna terminal 18 is detected by the RF detection / modulation circuit 14 and then supplied to the transmission / reception circuit 12 to be received on the carrier wave and received as command data in accordance with the ISO14443 specification. Recognized as a column and stored in the data buffer 13. When data corresponding to the data size defined by the ISO14443 specification (that is, command data) is accumulated in the data buffer 212, the transmission / reception circuit 12 notifies the contact IC card control circuit 11 that the data reception is completed. Upon receiving this notification, the contact IC card control circuit 11 takes in the data accumulated from the data buffer 13 via the transmission / reception circuit 12 and supplies it to the contact IC card 4 via the switching circuit 10.

接触ICカード4は、このデータをそのIO端子から取り込むが、このとき、その増設IO端子が“H”状態に設定されているので、この取り込んだデータを、非接触通信によるデータとして、ISO14443仕様に従う解釈を施し、これに対して必要な応答データを作成する。この応答データは、接触ICカード4のIO端子から、切替回路10を介して、接触ICカード制御回路11に供給される。接触ICカード制御回路11は、受け取ったこの応答データをデータバッファ13に転送し、送受信回路12に対して返信応答処理を指示する。送受信回路12は、指示に従ってデータベース13から応答データを読み取り、RF検波/変調回路14に供給する。RF検波/変調回路14は、ISO14443仕様に従う応答手段を用いて受信しているRF信号の搬送波(このときには、無変調)に乗せる変調処理を行なう。このRF検波/変調回路14から出力されるRF信号はアンテナ端子18からアンテナ5に供給される。これにより、応答データが受信しているキャリア電波に乗って送信され、図3(b)に示す非接触ICカードリーダライタ103に返される。   The contact IC card 4 captures this data from its IO terminal. At this time, since the additional IO terminal is set to the “H” state, this captured data is defined as ISO 14443 specifications as data by non-contact communication. The necessary response data is created. This response data is supplied from the IO terminal of the contact IC card 4 to the contact IC card control circuit 11 via the switching circuit 10. The contact IC card control circuit 11 transfers the received response data to the data buffer 13 and instructs the transmission / reception circuit 12 to perform a reply response process. The transmission / reception circuit 12 reads the response data from the database 13 according to the instruction and supplies the response data to the RF detection / modulation circuit 14. The RF detection / modulation circuit 14 performs a modulation process on a carrier wave (in this case, no modulation) of the received RF signal by using response means according to the ISO14443 specification. The RF signal output from the RF detection / modulation circuit 14 is supplied from the antenna terminal 18 to the antenna 5. As a result, the response data is transmitted on the received carrier wave and returned to the non-contact IC card reader / writer 103 shown in FIG.

以上の動作により、非接触ICカードリーダライタ103から見ると、コンパニオンチップ3があたかも通常のISO14443仕様に従う非接触ICカードとして見えることになる。   With the above operation, when viewed from the non-contact IC card reader / writer 103, the companion chip 3 appears as if it is a non-contact IC card according to the normal ISO14443 specification.

非接触ICカードリーダライタ103は、コンパニオンチップ3から応答データを受信し、その後、キャリア電波105が受信されなくなると、電源生成回路15から電源切替回路16への電源電圧の出力も終了するが、このときも、外部接続用端子7aの電源端子から電源電圧が供給されているため、電源切替回路16からコンパニオンチップ3の各部に電源電圧が供給され続ける。しかし、切替回路10は、電源生成回路15から電源電圧が供給されないことが電源切替回路16から通知されるので、非接触電源検出端子7bを“L”にし、電源生成回路15から電源電圧が供給されなくなったことをメイン回路2に通知する。   When the contactless IC card reader / writer 103 receives the response data from the companion chip 3 and then no longer receives the carrier wave 105, the output of the power supply voltage from the power supply generation circuit 15 to the power supply switching circuit 16 ends. Also at this time, since the power supply voltage is supplied from the power supply terminal of the external connection terminal 7a, the power supply voltage is continuously supplied from the power supply switching circuit 16 to each part of the companion chip 3. However, since the switching circuit 10 is notified from the power supply switching circuit 16 that the power supply voltage is not supplied from the power generation circuit 15, the non-contact power supply detection terminal 7 b is set to “L” and the power supply voltage is supplied from the power generation circuit 15. The main circuit 2 is notified that it has been stopped.

また、切替回路10は、電源生成回路15から電源電圧が供給されないことが電源切替回路16から通知されるので、接触ICカード4を接触ICカード制御回路11側から外部接続用端子7a側に切り替え、接触ICカード4がメイン回路2に接続された状態とする。これとともに、切替回路10は、接触ICカード4の増設IO端子を“H”から“L”に切り替える。また、メイン回路2から外部接続用端子7aのCLK端子にクロックが供給され、このクロックが切替回路10からクロック生成回路17に供給されてISO7816仕様に準拠したクロックが生成される。このクロックがコンパニオンチップ3の各部に供給される。   Further, since the switching circuit 10 notifies the power supply switching circuit 16 that the power supply voltage is not supplied from the power generation circuit 15, the contact IC card 4 is switched from the contact IC card control circuit 11 side to the external connection terminal 7a side. The contact IC card 4 is connected to the main circuit 2. At the same time, the switching circuit 10 switches the additional IO terminal of the contact IC card 4 from “H” to “L”. Also, a clock is supplied from the main circuit 2 to the CLK terminal of the external connection terminal 7a, and this clock is supplied from the switching circuit 10 to the clock generation circuit 17 to generate a clock conforming to the ISO7816 specification. This clock is supplied to each part of the companion chip 3.

接触ICカード4は、増設IO端子が“L”に切り替えられたことを検出すると、その内部のメモリに保持されているウォームリセット前の状態を読み出して設定、メイン回路2から外部接続用端子7aのIO端子及び切替回路10を介して供給されるデータなどの処理を再開する。   When the contact IC card 4 detects that the additional IO terminal is switched to “L”, the state before the warm reset held in the internal memory is read and set, and the external connection terminal 7 a from the main circuit 2. The processing of the data supplied via the IO terminal and the switching circuit 10 is resumed.

このようにして、接触ICカード4は、メイン回路2の制御による処理の実行中、非接触ICカードリーダライタからキャリア電波105を受信しても、その処理を中断するだけであって、このキャリア電波105の受信が終了すると、中断していた処理を再開して継続することになる。   Thus, even if the contact IC card 4 receives the carrier wave 105 from the non-contact IC card reader / writer during the execution of the process under the control of the main circuit 2, the contact IC card 4 only interrupts the process. When reception of the radio wave 105 is completed, the interrupted process is resumed and continued.

以上、第1の実施形態の動作を説明したが、コンパニオンチップ3がメイン回路2の制御によって活性化処理し、外部接続用端子7aからの信号で動作しているときに、アンテナ端子18からISO14443仕様に従うキャリア電波105による受信RF信号が入力されたときには、外部接続用端子7aのIO端子やCLK端子から入力されるデータなどの信号やクロックは利用されないことになる。このため、メイン回路2は、コンパニオンチップ3の外部接続用BUSY端子7cを監視し、これが“H”であるときには、外部接続用端子7aからのデータの送出や応答の処理を待つ。外部接続用BUSY端子7cが“L”となり、メイン回路2が、これを検出すると、中断していたそれまでの処理を再開して継続する。   Although the operation of the first embodiment has been described above, when the companion chip 3 is activated by the control of the main circuit 2 and is operated by a signal from the external connection terminal 7a, the antenna terminal 18 performs ISO14443. When a reception RF signal by the carrier wave 105 according to the specification is input, a signal such as data or a clock input from the IO terminal or the CLK terminal of the external connection terminal 7a is not used. For this reason, the main circuit 2 monitors the external connection BUSY terminal 7c of the companion chip 3, and when it is "H", it waits for data transmission from the external connection terminal 7a and response processing. When the external connection BUSY terminal 7c becomes “L” and the main circuit 2 detects this, the interrupted processing is resumed and continued.

メイン回路2は、外部接続用端子7aを介してのデータの送出やデータの受信を行なっているときに、コンパニオンチップ3の外部接続用BUSY端子7cが“H”となると、それまでの送信や受信の処理を中断し、その後、外部接続用BUSY端子7cが“L”となると、中断したそれまでの処理を再開して継続する。このとき、ISO7816仕様で定義された処理プロトコルに従う送信や受信の処理が完結していない場合には、再度この送信若しくは受信を行なう動作となる。接触ICカード4は、増設IO端子が“L”に変化したことを検出すると、接触内部のメモリに保持しているウォームリセット前の状態を読み出して設定するが、このとき、中断した状態が受信の処理を完結したものでない場合には、接触ICカード4の内部の受信データを保持しているバッファ(図示せず)を一度クリアしてから、再度受信を開始する。送信の途中である場合には、前に戻って再度送信を開始する。   When the main circuit 2 is transmitting data or receiving data via the external connection terminal 7a, if the external connection BUSY terminal 7c of the companion chip 3 becomes "H", When the reception processing is interrupted and then the external connection BUSY terminal 7c becomes "L", the interrupted processing is resumed and continued. At this time, if transmission or reception processing according to the processing protocol defined in the ISO7816 specification is not completed, the operation is performed again for transmission or reception. When the contact IC card 4 detects that the additional IO terminal has changed to “L”, the state before the warm reset stored in the memory inside the contact is read and set. At this time, the interrupted state is received. If the above processing is not completed, the buffer (not shown) holding the reception data inside the contact IC card 4 is once cleared, and then reception is started again. If it is in the middle of transmission, it goes back and starts transmission again.

また、コンパニオンチップ3がメイン回路2の制御によって活性化処理し、外部接続用端子7aからの信号で動作しているときに、アンテナ端子18からISO14443仕様に従うキャリア電波105による受信RF信号が入力されたときでも、メイン回路2は外部接続用端子7aの電源端子に電源電圧を送り続ける。メイン回路2は、コンパニオンチップ3の非接触電源検出端子7bを監視し、これが“H”となっても、電源電圧を外部接続用端子7aの電源端子に供給し続ける。この電源電圧が、電源切替回路16により、コンパニオンチップ3の各部に供給される。なお、メイン回路2から電源電圧が供給されていない状態にあるときに、アンテナ端子18からISO14443仕様に従うキャリア電波105による受信RF信号が入力されたときには、電源切替回路16により、電源生成回路15で生成される電源電圧がコンパニオンチップ3の各部に供給されることになる。これによって、接触ICカード4にも、この電源電圧が供給される。   In addition, when the companion chip 3 is activated by the control of the main circuit 2 and operates with a signal from the external connection terminal 7a, an RF signal received by the carrier radio wave 105 according to the ISO14443 specification is input from the antenna terminal 18. The main circuit 2 continues to send the power supply voltage to the power supply terminal of the external connection terminal 7a. The main circuit 2 monitors the non-contact power supply detection terminal 7b of the companion chip 3 and continues to supply the power supply voltage to the power supply terminal of the external connection terminal 7a even if it becomes “H”. This power supply voltage is supplied to each part of the companion chip 3 by the power supply switching circuit 16. When the power supply voltage is not supplied from the main circuit 2 and a reception RF signal based on the carrier wave 105 conforming to the ISO14443 specification is input from the antenna terminal 18, the power generation circuit 15 The generated power supply voltage is supplied to each part of the companion chip 3. As a result, this power supply voltage is also supplied to the contact IC card 4.

コンパニオンチップ3が非活性化処理によって動作を停止した状態にあるときに、アンテナ端子18からISO14443仕様に従うキャリア電波105による受信RF信号が入力されたときには、メインかいろ2が、コンパニオンチップ3の非接触電源検出端子7bが“H”であることを検出しても、外部接続用端子7aの電源端子に電源電圧を供給した場合には、電源切替回路16がこの電源端子の電源電圧をコンパニオンチップ3の各部に供給する。これによって、接触ICカード4にも、この電源電圧が供給される。   When the companion chip 3 is in a state where the operation is stopped by the deactivation process, when the reception RF signal by the carrier wave 105 conforming to the ISO14443 specification is input from the antenna terminal 18, the main color 2 is not connected to the companion chip 3. Even if it is detected that the contact power supply detection terminal 7b is “H”, when the power supply voltage is supplied to the power supply terminal of the external connection terminal 7a, the power supply switching circuit 16 supplies the power supply voltage of the power supply terminal to the companion chip. 3 is supplied to each part. As a result, this power supply voltage is also supplied to the contact IC card 4.

ここで、外部接続用切替禁止端子7dは、通常の動作では、メイン回路2が“L”に設定しているが、これを“H”にした場合には、切替回路10は外部接続用端子7a(従って、メイン回路2)側から接触ICカード制御回路11側への切替え動作を行なわないし、クロック生成回路17に対しても、外部接続端子7aから切替回路10を介して供給されるクロックをそのまま取り込み、RF検波/変調回路14からの受信RF信号によるクロックへの切替え動作も禁止する。以上の動作により、メイン回路2は、外部接続用切替禁止端子7dを“H”とすることにより、非接触通信用アンテナ5でキャリア電波105を受信しても、そのまま接触ICカード4での処理を継続させることができる。   Here, the switching prohibition terminal 7d for external connection is set to "L" by the main circuit 2 in normal operation. However, when this is set to "H", the switching circuit 10 is an external connection terminal. 7a (therefore, the main circuit 2) side is not switched to the contact IC card control circuit 11 side, and the clock supplied to the clock generation circuit 17 from the external connection terminal 7a via the switching circuit 10 is not used. The operation of switching to the clock by the received RF signal from the RF detection / modulation circuit 14 is also prohibited. With the above operation, the main circuit 2 sets the external connection switching prohibition terminal 7d to “H”, so that even if the carrier wave 105 is received by the non-contact communication antenna 5, the processing by the contact IC card 4 is performed as it is. Can be continued.

以上のように、この第1の実施形態によると、図3(a)に示すように、データ管理サーバ101からデータを取り込んで携帯電話1に搭載の接触ICカード4に書き込んだり、データ管理サーバ101からこの接触ICカード4のデータを読み取ったりすることができるし、図3(b)に示すように、非接触ICカードリーダライタ103による非接触通信でもって、端末制御装置104が携帯電話1の接触ICカード4にデータを書き込んだり、この接触ICカード4からデータを読み取ったりすることができるものであって、例えば、携帯電話ネットワーク100(図3(a))上のサーバから電子マネーを取り込んで接触ICカード4に書き込み、この電子マネーを端末制御装置104で引き去るといった使い方が可能となる。   As described above, according to the first embodiment, as shown in FIG. 3A, data is taken from the data management server 101 and written to the contact IC card 4 mounted on the mobile phone 1, or the data management server. The data of the contact IC card 4 can be read from the terminal 101, and as shown in FIG. 3B, the terminal control device 104 is connected to the mobile phone 1 by non-contact communication by the non-contact IC card reader / writer 103. Data can be written to or read from the contact IC card 4, and for example, electronic money can be obtained from a server on the mobile phone network 100 (FIG. 3A). It is possible to use it by taking it in and writing it into the contact IC card 4 and withdrawing this electronic money by the terminal control device 104.

また、接触ICカード4を外部接続用端子7aを介して制御することにより、携帯電話1の接触ICカード4を接触式のICカードとして利用しているときに、非接触ICカードリーダライタ103からのキャリア電波105を受信した場合には、この接触ICカード4を非接触式のICカードとして動作させることが優先的に実行される。このため、例えば、あるエリアの入退場口に非接触ICカードリーダライタ103を配し、入退場口で電子マネーを引き去るようなシステムにこの携帯電話機1を利用する場合、携帯電話1の接触ICカード4を接触式のICカードとして利用していても、入退場口では、自動的に非接触式のICカードとして機能することになるので、そのまま通過することができる。   Further, by controlling the contact IC card 4 via the external connection terminal 7a, when the contact IC card 4 of the mobile phone 1 is used as a contact IC card, the contactless IC card reader / writer 103 When the carrier radio wave 105 is received, the contact IC card 4 is preferentially executed as a non-contact type IC card. Therefore, for example, when the mobile phone 1 is used in a system in which the contactless IC card reader / writer 103 is arranged at an entrance / exit of an area and electronic money is withdrawn at the entrance / exit, the contact of the mobile phone 1 Even if the IC card 4 is used as a contact type IC card, it can function as a non-contact type IC card automatically at the entrance / exit, so that it can pass as it is.

さらに、外部接続用切替禁止端子7dにより、キャリア電波105を受信しても、携帯電話1の接触ICカード4をそのまま接触式のICカードとして利用することもできる。   Furthermore, even if the carrier wave 105 is received by the external connection switching prohibiting terminal 7d, the contact IC card 4 of the mobile phone 1 can be used as it is as a contact IC card.

図4は本発明による通信機能付きICカード装置の第2の実施形態の要部を示すブロック図であって、19はマイコン(マイクロコンピュータ)、20はR/W(読み書き)機能、21は非接触プロトコル処理機能であり、図2に対応する部分には同一符号を付けて重複する説明を省略する。   FIG. 4 is a block diagram showing the main part of a second embodiment of the IC card device with communication function according to the present invention, in which 19 is a microcomputer (microcomputer), 20 is an R / W (read / write) function, and 21 is non-display. This is a contact protocol processing function, and parts corresponding to those in FIG.

同図において、この第2の実施形態は、その全体構成は図1と同様であり、その利用形態も、図3(a),(b)と同様であるが、コンパニオンチップ3において、図2での接触ICカード制御回路11の代わりに、中央演算装置としてのマイコンを用いるものである。このマイコン19にも、電源切替回路16から電源電圧が供給され、クロック生成回路17からクロックが供給される。マイコン19は、接触ICカード4の制御機能と接触カード通信制御機能とプロトコル変換機能とを行なうR/W機能20と、非接触プロトコル処理機能21とを備えている。   In this figure, the second embodiment has the same overall configuration as that of FIG. 1, and its usage is the same as that of FIGS. 3 (a) and 3 (b). In the companion chip 3, FIG. Instead of the contact IC card control circuit 11, the microcomputer as a central processing unit is used. The microcomputer 19 is also supplied with a power supply voltage from the power supply switching circuit 16 and with a clock from the clock generation circuit 17. The microcomputer 19 includes an R / W function 20 that performs a control function of the contact IC card 4, a contact card communication control function, and a protocol conversion function, and a non-contact protocol processing function 21.

なお、以下では、説明を簡略化するために、これらR/W機能20と非接触プロトコル処理機能21とを手段とみなし、夫々が制御,処理の動作を行なうような記載をすることにする。   In the following, in order to simplify the description, the R / W function 20 and the non-contact protocol processing function 21 are regarded as means, and description is made so that each performs control and processing operations.

また、接触ICカード4は、ISO7816仕様に従う端子(電源端子,RST端子,IO端子及びGND端子)のみを有し、図2における接触ICカード4のような増設IO端子を備えていない。切替回路10の端子は、接触ICカード4を制御するためのISO7816仕様に準拠した端子となっている。   Further, the contact IC card 4 has only terminals (power supply terminal, RST terminal, IO terminal and GND terminal) according to the ISO7816 specification, and does not have an additional IO terminal like the contact IC card 4 in FIG. The terminal of the switching circuit 10 is a terminal conforming to the ISO7816 specification for controlling the contact IC card 4.

なお、電源切替回路16は、電源生成回路15から電源電圧が供給されているか否かの通知を、切替回路10ではなく、マイコン19に行なう。   The power supply switching circuit 16 notifies the microcomputer 19 instead of the switching circuit 10 whether the power supply voltage is supplied from the power generation circuit 15.

次に、この第2の実施形態の動作を説明する。   Next, the operation of the second embodiment will be described.

メイン回路2(図1)からの外部接続用端子7aを介したISO7816仕様に準拠した手順と制御により、コンパニオンチップ3と接触ICカード4を接触式のICカードとして利用する手順と動作は、図2で説明した第1の実施形態と同様である。   The procedure and operation of using the companion chip 3 and the contact IC card 4 as a contact IC card by the procedure and control conforming to the ISO7816 specification via the external connection terminal 7a from the main circuit 2 (FIG. 1) are shown in FIG. This is the same as the first embodiment described in FIG.

次に、コンパニオンチップ3が非活性化処理によって動作を停止しているときに、非接触用アンテナ端子5(図1)でISO14443仕様に従うキャリア電波を受信した場合の制御動作について説明する。   Next, a description will be given of the control operation when the carrier wave according to the ISO14443 specification is received at the non-contact antenna terminal 5 (FIG. 1) when the operation of the companion chip 3 is stopped by the deactivation process.

非接触用アンテナ端子5でキャリア電波が受信されると、その受信RF信号がRF検波/変調回路14に供給される。RF検波/変調回路14では、このRF信号が検波されるのであるが、このRF信号は電源生成回路15にも供給され、検波され、安定化されて必要な電圧値の電源電圧が生成される。この電源電圧は電源切替回路16に供給される。このとき、コンパニオンチップ3が非活性化処理によって動作を停止しているので、外部接続用端子7aの電源端子を介してこの電源切替回路16にメイン回路2から電源電圧が供給されていない。このような場合には、電源切替回路16は、電源生成回路15から供給される電源電圧を切替回路10や接触ICカード制御回路11,送受信回路12などのコンパニオンチップ3の各部に供給するとともに、これとほぼ同時に、非接触電源検出端子7bを“H”として、電源生成回路15から電源電圧が供給されていることをメイン回路2に通知し、同様の通知を切替回路10に対しても行なう。   When the carrier radio wave is received at the non-contact antenna terminal 5, the received RF signal is supplied to the RF detection / modulation circuit 14. The RF detection / modulation circuit 14 detects this RF signal, but this RF signal is also supplied to the power generation circuit 15 to be detected and stabilized to generate a power supply voltage having a necessary voltage value. . This power supply voltage is supplied to the power supply switching circuit 16. At this time, since the operation of the companion chip 3 is stopped by the deactivation processing, the power supply voltage is not supplied from the main circuit 2 to the power supply switching circuit 16 via the power supply terminal of the external connection terminal 7a. In such a case, the power supply switching circuit 16 supplies the power supply voltage supplied from the power supply generation circuit 15 to each part of the companion chip 3 such as the switching circuit 10, the contact IC card control circuit 11, and the transmission / reception circuit 12, and the like. At substantially the same time, the non-contact power source detection terminal 7b is set to “H” to notify the main circuit 2 that the power source voltage is supplied from the power source generation circuit 15, and the same notification is also given to the switching circuit 10. .

RF検波/変調回路14は、また、受信したRF信号をクロック生成回路17にも供給する。このとき、外部接続用端子7aのCLK端子からクロックが入力されていないので、クロック生成回路211は供給されたRF信号からISO14443仕様に従う動作用のクロックを生成し、切替回路10や接触ICカード制御回路11,送受信回路12などのコンパニオンチップ3の各部に供給する。   The RF detection / modulation circuit 14 also supplies the received RF signal to the clock generation circuit 17. At this time, since no clock is input from the CLK terminal of the external connection terminal 7a, the clock generation circuit 211 generates an operation clock according to the ISO14443 specification from the supplied RF signal, and controls the switching circuit 10 and the contact IC card. This is supplied to each part of the companion chip 3 such as the circuit 11 and the transmission / reception circuit 12.

この場合、電源生成回路15から電源電圧が供給されておらず、それが電源切替回路16から通知されることにより、マイコン19のR/W機能20が切替回路10を外部接続用端子7a側からマイコン19側に切り替える。これにより、接触ICカード4がマイコン19に接続され、これら間でデータのやり取りを可能にする状態となる。しかる後、マイコン19のR/W機能20はリセット制御やクロック制御,電源制御を実行し、接触ICカード4を制御可能な状態にする。これとともに、外部接続用BUSY端子7cが“H”となり、接触ICカード4が利用中であることをメイン回路2に通知する。R/W機能20の電源制御により、電源切替回路16から切替回路10を介して接触ICカード4に電源電圧が供給される。しかる後、R/W機能20はリセット制御やクロック制御を実行して、ISO7816仕様に従う活性化の手順で接触ICカード4にクロックを供給し、また、そのRST端子を制御する。   In this case, the power supply voltage is not supplied from the power supply generation circuit 15 and is notified from the power supply switching circuit 16, whereby the R / W function 20 of the microcomputer 19 connects the switching circuit 10 from the external connection terminal 7 a side. Switch to the microcomputer 19 side. As a result, the contact IC card 4 is connected to the microcomputer 19 so that data can be exchanged between them. Thereafter, the R / W function 20 of the microcomputer 19 executes reset control, clock control, and power supply control so that the contact IC card 4 can be controlled. At the same time, the external connection BUSY terminal 7c becomes “H” to notify the main circuit 2 that the contact IC card 4 is in use. A power supply voltage is supplied from the power supply switching circuit 16 to the contact IC card 4 through the switching circuit 10 by the power supply control of the R / W function 20. Thereafter, the R / W function 20 executes reset control and clock control, supplies a clock to the contact IC card 4 by an activation procedure according to the ISO7816 specification, and controls its RST terminal.

接触ICカード4は、この活性化処理に従って動作を開始し、これに応答してISO7816仕様に従う1バイトのATRを出力して活性化される。このATRは切替回路10を介してマイコン19に供給され、R/W機能20が接触ICカード4が正しく活性化されたことを認識する。そしてR/W機能20と接触ICカード4とで、ISO7816仕様に従うコマンドとレスポンスのやり取りを行なわれることになる。   The contact IC card 4 starts to operate according to this activation process, and in response to this, outputs a 1-byte ATR according to the ISO7816 specification and is activated. This ATR is supplied to the microcomputer 19 via the switching circuit 10, and the R / W function 20 recognizes that the contact IC card 4 has been activated correctly. The R / W function 20 and the contact IC card 4 exchange commands and responses according to the ISO7816 specification.

この第2の実施形態では、ISO7816仕様に準拠した「select File」コマンドを用い、接触ICカード4の非接触処理機能を選択する。これにより、接触ICカード4は非接触通信で受信されたデータの処理を行なうことができる。   In the second embodiment, a non-contact processing function of the contact IC card 4 is selected using a “select File” command conforming to the ISO7816 specification. Thereby, the contact IC card 4 can process the data received by non-contact communication.

非接触通信用アンテナ5でキヤリア電波が受信されることによってアンテナ端子18から入力されるRF信号は、RF検波/変調回路14で検波されて、送受信回路12に供給される。送受信回路12では、RF検波/変調回路14の検波出力からISO14443仕様に従うコマンドデータが検出され、そのデータ列として認識されてデータバッファ13に蓄えられる。データバッファ13でISO14443仕様で定義されるデータサイズ分のデータ(この場合には、コマンドデータを含む)が蓄積されると、送受信回路12はマイコン19にデータ受信が完了したことを通知する。   The RF signal input from the antenna terminal 18 when the carrier radio wave is received by the non-contact communication antenna 5 is detected by the RF detection / modulation circuit 14 and supplied to the transmission / reception circuit 12. In the transmission / reception circuit 12, command data conforming to the ISO 14443 specification is detected from the detection output of the RF detection / modulation circuit 14, recognized as a data string, and stored in the data buffer 13. When data corresponding to the data size defined in the ISO14443 specification (including command data in this case) is accumulated in the data buffer 13, the transmission / reception circuit 12 notifies the microcomputer 19 that the data reception has been completed.

この通知を受けると、マイコン19の非接触プロトコル処理機能21は、マイコン19は送受信回路12を介してデータバッファ13から受信したデータを取り込み、ISO14443仕様に従う解釈を施してコマンドデータのみを抽出する。このコマンドデータが抽出されると、これを基にR/W機能20がコマンドデータを受信したことを検知して、このコマンドデータをISO14443仕様からISO7816仕様に順処したものにプロトコル変換し、切替回路10及びICカード用端子8を介して接触ICカード4のIO端子に送る。   Upon receiving this notification, the non-contact protocol processing function 21 of the microcomputer 19 takes in the data received from the data buffer 13 via the transmission / reception circuit 12 and performs interpretation according to the ISO 14443 specification to extract only the command data. When this command data is extracted, based on this, the R / W function 20 detects that the command data has been received, converts the command data from ISO14443 specification to ISO7816 specification, and converts the command data. The data is sent to the IO terminal of the contact IC card 4 via the circuit 10 and the IC card terminal 8.

接触ICカード4は、このコマンドデータを取り込んで、これを既に選択起動された非接触処理機能(ISO7816仕様)に対するデータとして処理を施し、必要な応答データを作成する。この応答データはICカード用端子8のIO端子を経由して切替回路10に送られ、切替回路10はこの応答データをマイコン19のR/W機能20に送る。   The contact IC card 4 takes in this command data, processes it as data for the non-contact processing function (ISO7816 specification) that has already been selectively activated, and creates necessary response data. This response data is sent to the switching circuit 10 via the IO terminal of the IC card terminal 8, and the switching circuit 10 sends this response data to the R / W function 20 of the microcomputer 19.

R/W機能20は、この応答データをISO7816仕様からISO14443仕様に準拠したものにプロトコル変換して非接触プロトコル処理機能21に渡す。非接触プロトコル処理機能21は、取り込んだ応答データにISO14443仕様で必要なデータを付加してデータバッファ13に転送し、また、送受信回路12に対して返信応答処理を指示する制御を行なう。送受信回路12は、この指示に従って、データバッファ13から応答データを取り込み、RF検波/変調回路14に供給する。応答データは、RF検波/変調回路14でISO14443仕様に従う応答手段を用いて受信RF信号の搬送波(このときには、無変調)に乗せる変調処理がなされ、アンテナ端子18から非接触通信用アンテナ5に供給されて非接触ICカードリーダライタ103(図3(b))に送信される。   The R / W function 20 converts the response data from the ISO 7816 specification to the one conforming to the ISO 14443 specification and passes the converted data to the non-contact protocol processing function 21. The non-contact protocol processing function 21 adds data required by the ISO 14443 specification to the fetched response data and transfers it to the data buffer 13, and controls the transmission / reception circuit 12 to instruct reply response processing. In accordance with this instruction, the transmission / reception circuit 12 captures response data from the data buffer 13 and supplies it to the RF detection / modulation circuit 14. The response data is modulated by the RF detection / modulation circuit 14 so as to be carried on the carrier wave (in this case, unmodulated) of the received RF signal using response means in accordance with the ISO14443 specification, and is supplied from the antenna terminal 18 to the antenna 5 for non-contact communication. Then, it is transmitted to the non-contact IC card reader / writer 103 (FIG. 3B).

その後、非接触通信用アンテナ5でキャリア電波が受信されなくなると、電源切替回路16に対する電源生成回路15は電源電圧を生成しなくなる。このため、クロック生成回路17もクロックの生成を中止するし、接触ICカード4も非活性化状態となって動作を停止する。   Thereafter, when the carrier radio wave is not received by the non-contact communication antenna 5, the power generation circuit 15 for the power switching circuit 16 does not generate the power voltage. For this reason, the clock generation circuit 17 also stops generating the clock, and the contact IC card 4 is also deactivated to stop its operation.

以上の動作が、第1の実施形態と同様、非接触ICカードリーダライタ103から見ると、コンパニオンチップ3があたかも通常のISO14443仕様に従う非接触ICカードの動作に見える点は、第1の実施形態の場合と同様である。   As in the first embodiment, the above operation is similar to the first embodiment in that the companion chip 3 appears to be an operation of a non-contact IC card according to the normal ISO14443 specification. It is the same as the case of.

次に、コンパニオンチップ3が活性化処理して外部接続用端子7aからの信号で動作しているときに、アンテナ端子18からISO14443仕様に従うキャリア電波105の受信によるRF信号が入力された場合には、RF検波/変調回路14は、このキャリア電波の受信RF信号を電源生成回路15に供給する。電源生成回路402は、このRF信号を検波して必要な電圧値の安定化した電源電圧を電源切替回路16に供給する。このとき、外部接続用端子7aの電源端子から電源が供給されているため、電源切替回路16は、電源生成回路15から供給された電源電圧ではなく、外部接続用端子7aの電源端子から供給される電源電圧をコンパニオンチップ3の各部に供給し続ける。また、これとほぼ同時に、電源切替回路16は非接触電源検出端子7bを“H”とし、電源生成回路15から電源電圧が供給されていることをメイン回路2に通知する。   Next, when the companion chip 3 is activated and operates with a signal from the external connection terminal 7a, when an RF signal is received from the antenna terminal 18 by receiving the carrier wave 105 according to the ISO14443 specification. The RF detection / modulation circuit 14 supplies the received RF signal of the carrier wave to the power generation circuit 15. The power supply generation circuit 402 detects this RF signal and supplies the power supply switching circuit 16 with a stabilized power supply voltage having a necessary voltage value. At this time, since the power is supplied from the power supply terminal of the external connection terminal 7a, the power supply switching circuit 16 is supplied from the power supply terminal of the external connection terminal 7a, not the power supply voltage supplied from the power supply generation circuit 15. The power supply voltage is continuously supplied to each part of the companion chip 3. At substantially the same time, the power supply switching circuit 16 sets the non-contact power supply detection terminal 7b to “H” and notifies the main circuit 2 that the power supply voltage is supplied from the power supply generation circuit 15.

RF検波/変調回路14は、また、アンテス端子18から入力されるRF信号をクロック生成回路17にも供給する。クロック生成回路17はこのRF信号からISO14443仕様に準拠したクロックを生成し、コンパニオンチップ3の各部に供給する点は第1の実施形態と同様であるが、電源生成回路15から電源電圧が供給されていることの通知が電源切替回路16からあると、マイコン19のR/W機能20は、これを検出して、切替回路10を切替え制御してマイコン19のR/W機能20を接触ICカード4に接続し、これら間でデータのやり取りができるようにし、これとほぼ同時に、外部接続用BUSY端子7cを“H”として、接触ICカード4が利用中であることをメイン回路2に通知させる。   The RF detection / modulation circuit 14 also supplies the RF signal input from the ante terminal 18 to the clock generation circuit 17. The clock generation circuit 17 generates a clock conforming to the ISO14443 specification from this RF signal and supplies it to each part of the companion chip 3 as in the first embodiment, but the power supply voltage is supplied from the power supply generation circuit 15. If the power supply switching circuit 16 notifies that the power is switched, the R / W function 20 of the microcomputer 19 detects this and controls the switching circuit 10 to control the R / W function 20 of the microcomputer 19 with the contact IC card. 4 to allow data to be exchanged between them, and almost simultaneously, the external connection BUSY terminal 7c is set to “H” to notify the main circuit 2 that the contact IC card 4 is in use. .

そして、R/W機能20は、リセット処理を行なう前に、ISO7816仕様で定義される「select File」コマンドを用いて、接触ICカード4の非接触処理機能を選択する。これに伴って、接触ICカード4は、このときのメイン回路2からの信号の状態を内部のメモリに記録して保持し、しかる後、処理機能が接触処理機能から非接触処理機能に切り替えられ、非接触通信で送られてきたデータに対する処理を行なうことができるようになる。   The R / W function 20 selects the non-contact processing function of the contact IC card 4 using a “select File” command defined in the ISO7816 specification before performing the reset process. Along with this, the contact IC card 4 records and holds the state of the signal from the main circuit 2 at this time in the internal memory, and then the processing function is switched from the contact processing function to the non-contact processing function. Thus, it is possible to perform processing on data sent by non-contact communication.

一方、非接触通信用アンテナ5でのキャリア電波の受信によってアンテナ端子18から入力されたRF信号は、上記と同様に、RF検波/変調回路14や送受信回路12で処理されてコマンドデータが検出され、このコマンドデータがデータバッファ13や非接触プロトコル処理機能21を介してR/W機能20に供給される。このコマンドデータはR/W機能20でISO14443仕様からISO7816仕様に準拠したものにプロトコル変換されて、接触ICカード4に供給される。接触ICカード4では、このコマンドデータが非接触処理されて応答データが生成され、上記と同様、切替回路10を介してマイコン19のR/W機能20に供給され、ISO14443仕様に準拠したデータにプロトコル変換される。そして、このISO14443仕様に準拠した応答データは、非接触プロトコル処理機能21,送受信回路12,RF検波/変調回路14で処理されて受信されたRF信号に乗せられ、アンテナ端子18が非接触通信用アンテナ5に供給されることにより、キャリア電波に乗って非接触ICカードリーダライタ103に送信される。   On the other hand, the RF signal input from the antenna terminal 18 by the reception of the carrier wave by the non-contact communication antenna 5 is processed by the RF detection / modulation circuit 14 and the transmission / reception circuit 12 in the same manner as described above to detect command data. The command data is supplied to the R / W function 20 via the data buffer 13 and the non-contact protocol processing function 21. The R / W function 20 converts this command data into a protocol that conforms to the ISO 14443 specification and conforms to the ISO 7816 specification, and is supplied to the contact IC card 4. In the contact IC card 4, this command data is processed in a non-contact manner, response data is generated, and is supplied to the R / W function 20 of the microcomputer 19 via the switching circuit 10 as described above, and converted into data conforming to the ISO14443 specification. Protocol conversion is performed. The response data compliant with the ISO 14443 specification is put on the RF signal received by processing by the non-contact protocol processing function 21, the transmission / reception circuit 12, and the RF detection / modulation circuit 14, and the antenna terminal 18 is used for non-contact communication. By being supplied to the antenna 5, it is transmitted to the non-contact IC card reader / writer 103 on the carrier wave.

以上の動作は、非接触ICカードリーダライタ103から見ると、第1の実施形態の場合と同様、コンパニオンチップ3があたかも通常のISO14443仕様に従う非接触ICカードの動作に見えることになる。   When viewed from the non-contact IC card reader / writer 103, the above operation appears as if the companion chip 3 is an operation of a non-contact IC card according to the normal ISO14443 specification, as in the case of the first embodiment.

非接触通信用アンテナ5でISO14443仕様に従うキャリア電波が受信されなくなると、電源生成回路15から電源切替回路16に電源電圧が供給されなくなるが、外部接続用端子7aの電源端子から入力される電源電圧が電源切替回路16からコンパニオウチップ3の各部に供給される。このとき、非接触電源検出端子7bが“L”となり、これにより、電源生成回路15から電源電圧が供給されなくなったことがメイン回路2に通知する。クロック生成回路17も、外部接続用端子7aのCLK端子から切替回路10を介して供給されるクロックをコンパニオウチップ3の各部に供給するように制御される。   When the non-contact communication antenna 5 does not receive carrier waves according to the ISO14443 specification, the power supply voltage is not supplied from the power generation circuit 15 to the power supply switching circuit 16, but the power supply voltage input from the power supply terminal of the external connection terminal 7a. Is supplied from the power supply switching circuit 16 to each part of the companion chip 3. At this time, the non-contact power source detection terminal 7b becomes “L”, thereby notifying the main circuit 2 that the power source voltage is not supplied from the power source generating circuit 15. The clock generation circuit 17 is also controlled to supply a clock supplied from the CLK terminal of the external connection terminal 7 a via the switching circuit 10 to each part of the companion chip 3.

しかる後、R/W機能20は、電源切替回路16から電源生成回路15から電源電圧が供給されなくなったという電源切替回路16からの通知に基づいて、切替回路10の切替え制御を行ない、接触ICカード4を外部接続用端子7a側に切り替えさせるとともに、ISO7816仕様に準拠した「Select File」コマンドを用いて、接触ICカード4が接触処理を行なうようにする。   Thereafter, the R / W function 20 controls the switching of the switching circuit 10 based on the notification from the power switching circuit 16 that the power supply voltage is not supplied from the power switching circuit 16 to the contact IC. The card 4 is switched to the external connection terminal 7a side, and the contact IC card 4 performs a contact process using a “Select File” command conforming to the ISO7816 specification.

そこで、接触ICカード4では、その内部メモリに保持している状態が読み出されて設定され、外部接続用端子7aのIO端子から入力される信号の処理が可能となる。   Therefore, in the contact IC card 4, the state held in the internal memory is read and set, and the signal input from the IO terminal of the external connection terminal 7a can be processed.

なお、ここでは、接触ICカード4の状態を内部メモリに記録するために、「Selecet File」コマンドによる状態データの退避と復帰、処理の切替えを行なったが、この切り替えの際、「Selecet File」コマンドの処理時間が非接触通信処理の処理時間に追加されるものとなるため、かかる処理を省き、代わりに、リセットにより、非接触通信に対する処理を行なうまでに行なわれていた処理をキャンセルし、非接触通信処理を開始するまでの処理時間のより短縮するようにしてもよい。   In this case, in order to record the state of the contact IC card 4 in the internal memory, the state data is saved and restored by the “Selecet File” command, and the processing is switched. Since the processing time of the command is added to the processing time of the non-contact communication processing, such processing is omitted, and instead, the processing performed until the processing for the non-contact communication is canceled by reset, You may make it shorten the processing time until a non-contact communication process is started.

以上のように、この第2の実施形態では、第1の実施形態が奏する効果に加え、ICカード用端子8をISO7816で定義された信号線としてのみ利用するものであるから、接触ICカード4としては、従来から利用されているISO7816準拠のICカードを利用できることになる。   As described above, in the second embodiment, in addition to the effects of the first embodiment, the IC card terminal 8 is used only as a signal line defined by ISO7816. As a result, it is possible to use a conventional IC card conforming to ISO7816.

本発明による通信機能付きICカード装置の第1の実施形態を示すブロック図である。It is a block diagram which shows 1st Embodiment of the IC card apparatus with a communication function by this invention. 図1におけるコンパニオンチップの一具体例を示すブロック図である。It is a block diagram which shows one specific example of the companion chip | tip in FIG. 本発明による通信機能付きICカード装置を利用したシステムの具体例を示す構成図である。It is a block diagram which shows the specific example of the system using the IC card apparatus with a communication function by this invention. 本発明による通信機能付きICカード装置の第2の実施形態の要部を示すブロック図である。It is a block diagram which shows the principal part of 2nd Embodiment of the IC card apparatus with a communication function by this invention.

符号の説明Explanation of symbols

1 携帯電話
2 メイン回路
3 コンパニオンチップ
4 接触ICカード
5 非接触通信用アンテナ
7 メイン回路用端子
7a 外部接続用端子
7b 非接触電源検出端子
7c 外部接続用BUSY端子
7d 外部接続用切替禁止端子
8 ICカード用端子
10 切替回路
11 接触ICカード制御回路
12 送受信回路
13 データバッファ
14 RF検波/変調回路
15 電源生成回路
16 電源切替端子
17 クロック生成回路
18 アンテナ端子
19 マイコン
20 R/W機能
21 非接触プロトコル処理機能
DESCRIPTION OF SYMBOLS 1 Mobile phone 2 Main circuit 3 Companion chip 4 Contact IC card 5 Non-contact communication antenna 7 Main circuit terminal 7a External connection terminal 7b Non-contact power source detection terminal 7c External connection BUSY terminal 7d External connection switching prohibition terminal 8 IC Card terminal 10 Switching circuit 11 Contact IC card control circuit 12 Transmission / reception circuit 13 Data buffer 14 RF detection / modulation circuit 15 Power generation circuit 16 Power switching terminal 17 Clock generation circuit 18 Antenna terminal 19 Microcomputer 20 R / W function 21 Non-contact protocol Processing function

Claims (10)

接触ICカードを搭載し、メイン回路から該接触ICカードを制御することにより、該メイン回路と該接触ICカードとの間で接触通信を行なうICカード装置であって、
非接触通信を行なうための非接触通信用アンテナと、
該非接触通信用アンテナの受信信号を処理する処理手段と、
該接触ICカードの該メイン回路への接続と該処理手段への接続とを切り替える切替手段と
を設け、該非接触通信用アンテナで非接触通信が行なわれるときには、該切替手段は、該処理手段を選択して、該処理手段を該接触ICカードに接続することを特徴とする通信機能付きICカード装置。
An IC card device that carries a contact communication between the main circuit and the contact IC card by mounting the contact IC card and controlling the contact IC card from the main circuit,
A contactless communication antenna for performing contactless communication;
Processing means for processing a received signal of the non-contact communication antenna;
And switching means for switching between connection of the contact IC card to the main circuit and connection to the processing means. When non-contact communication is performed by the non-contact communication antenna, the switching means switches the processing means to An IC card device with a communication function, wherein the processing means is selected and connected to the contact IC card.
請求項1において、
前記非接触アンテナからの受信信号に基づいて電源電圧を生成する電源生成手段と、
該電源生成手段が電源電圧を生成することを検知する検知手段と
を設け、前記切替手段は、該電源生成手段による電源電圧の生成を検知したとき、前記接触ICカードへの接続を前記処理手段側に切り替えることを特徴とする通信機能付きICカード装置。
In claim 1,
Power supply generating means for generating a power supply voltage based on a received signal from the non-contact antenna;
Detecting means for detecting that the power supply generating means generates a power supply voltage, and when the switching means detects the generation of the power supply voltage by the power supply generating means, the connection to the contact IC card is connected to the processing means. IC card device with communication function, characterized in that switching to the side is performed.
請求項2において、
前記メイン回路から電源電圧が供給されているときには、該電源電圧を前記接触ICカードに供給し、前記メイン回路から電源電圧が供給されず、前記電源生成手段から電源電圧が供給されているときには、該電源電圧を前記接触ICカードに供給する電源切替手段を設けたことを特徴とする通信機能付きICカード装置。
In claim 2,
When the power supply voltage is supplied from the main circuit, the power supply voltage is supplied to the contact IC card, the power supply voltage is not supplied from the main circuit, and the power supply voltage is supplied from the power supply generation unit. An IC card device with a communication function, comprising power supply switching means for supplying the power supply voltage to the contact IC card.
請求項1,2または3において、
前記接触通信と前記非接触通信とでプロトコルが異なるものであって、
前記接触ICカードに接続する前記メイン回路と前記処理手段との前記切替手段による切替えに応じて、前記接触ICカードでの処理手順を該当するプロトコルに応じた手順とすることを特徴とする通信機能付きICカード装置。
In claim 1, 2 or 3,
The contact communication and the non-contact communication have different protocols,
A communication function characterized in that, according to switching by the switching means between the main circuit connected to the contact IC card and the processing means, the processing procedure in the contact IC card is a procedure according to a corresponding protocol. IC card device.
請求項1,2,3または4において、
前記処理手段は、前記接触ICカードを制御する制御手段を有し、
前記切替手段によって前記接触ICカードが前記メイン回路に接続されているときには、前記接触ICカードは前記メイン回路によって制御され、前記切替手段によって前記接触ICカードが前記処理手段に接続されているときには、該制御手段によって制御されることを特徴とする通信機能付きICカード装置。
In claim 1, 2, 3 or 4,
The processing means has control means for controlling the contact IC card,
When the contact IC card is connected to the main circuit by the switching means, the contact IC card is controlled by the main circuit, and when the contact IC card is connected to the processing means by the switching means, An IC card device with a communication function controlled by the control means.
請求項1において、
前記非接触アンテナからの受信信号に基づいて電源電圧を生成する電源生成手段と、該電源生成手段が電源電圧を生成することを検知する検知手段とを設けるとともに、
前記処理手段は、前記切替手段を制御する切替制御手段を備え、
該切替制御手段は、該電源生成手段による電源電圧の生成を検知したとき、前記切替手段を制御して前記接触ICカードへの接続を前記処理手段側に切り替えることを特徴とする通信機能付きICカード装置。
In claim 1,
A power generation unit that generates a power supply voltage based on a reception signal from the non-contact antenna, and a detection unit that detects that the power generation unit generates a power supply voltage, and
The processing means includes switching control means for controlling the switching means,
The switching control means, when detecting the generation of the power supply voltage by the power generation means, controls the switching means to switch the connection to the contact IC card to the processing means side. Card device.
請求項6において、
前記メイン回路から電源電圧が供給されているときには、該電源電圧を前記接触ICカードに供給し、前記メイン回路から電源電圧が供給されず、前記電源生成手段から電源電圧が供給されているときには、該電源電圧を前記接触ICカードに供給する電源切替手段を設けたことを特徴とする通信機能付きICカード装置。
In claim 6,
When the power supply voltage is supplied from the main circuit, the power supply voltage is supplied to the contact IC card, the power supply voltage is not supplied from the main circuit, and the power supply voltage is supplied from the power supply generation unit. An IC card device with a communication function, comprising power supply switching means for supplying the power supply voltage to the contact IC card.
請求項6または7において、
前記接触通信と前記非接触通信とでプロトコルが異なるものであって、
前記処理手段は、前記非接触通信用アンテナの該非接触通信用のプロトコルによる受信信号を該接触通信のプロトコルによる信号に変換して前記接触ICカードに供給し、前記接触ICカードからの該接触通信のプロトコルにより信号を該非接触通信のプロトコルに変換して前記非接触通信用アンテナから送信させるプロトコル変換手段を有することを特徴とする通信機能付きICカード装置。
In claim 6 or 7,
The contact communication and the non-contact communication have different protocols,
The processing means converts a signal received by the non-contact communication protocol of the non-contact communication antenna into a signal according to the contact communication protocol and supplies the signal to the contact IC card, and the contact communication from the contact IC card. An IC card device with a communication function, comprising protocol conversion means for converting a signal into the non-contact communication protocol according to the protocol and transmitting the signal from the non-contact communication antenna.
請求項1〜8のいずれか1つにおいて、
前記切替手段によって前記接触ICカードが前記メイン回路側に接続されているときには、前記メイン回路から供給されるクロックを基に前記接触ICカード用のクロックを生成し、
前記切替手段によって前記接触ICカードが前記処理手段側に接続されているときには、前記非接触通信用アンテナによる受信信号を基に前記接触ICカード用のクロックを生成することを特徴とする通信機能付きICカード装置。
In any one of Claims 1-8,
When the contact IC card is connected to the main circuit side by the switching means, the clock for the contact IC card is generated based on the clock supplied from the main circuit,
When the contact IC card is connected to the processing means by the switching means, a clock for the contact IC card is generated based on a signal received by the non-contact communication antenna. IC card device.
請求項1〜9のいずれか1つにおいて、
前記メイン回路から前記切替手段への指令により、前記切替手段が前記接触ICカードと前記メイン回路との接続状態を前記接触ICカードと前記処理手段との接続状態に変更することを禁止可能に構成したことを特徴とする通信機能付きICカード装置。
In any one of Claims 1-9,
The switching unit can be prohibited from changing the connection state between the contact IC card and the main circuit to the connection state between the contact IC card and the processing unit in response to a command from the main circuit to the switching unit. An IC card device with a communication function.
JP2004100144A 2004-03-30 2004-03-30 IC card device with communication function Expired - Fee Related JP4355247B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004100144A JP4355247B2 (en) 2004-03-30 2004-03-30 IC card device with communication function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004100144A JP4355247B2 (en) 2004-03-30 2004-03-30 IC card device with communication function

Publications (2)

Publication Number Publication Date
JP2005284900A true JP2005284900A (en) 2005-10-13
JP4355247B2 JP4355247B2 (en) 2009-10-28

Family

ID=35183192

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004100144A Expired - Fee Related JP4355247B2 (en) 2004-03-30 2004-03-30 IC card device with communication function

Country Status (1)

Country Link
JP (1) JP4355247B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016200994A (en) * 2015-04-10 2016-12-01 株式会社ソシオネクスト Integrated circuit, diagnostic system, and diagnostic method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7247125B2 (en) 2020-01-22 2023-03-28 株式会社東芝 microcontroller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016200994A (en) * 2015-04-10 2016-12-01 株式会社ソシオネクスト Integrated circuit, diagnostic system, and diagnostic method

Also Published As

Publication number Publication date
JP4355247B2 (en) 2009-10-28

Similar Documents

Publication Publication Date Title
JP4239988B2 (en) Communication system, communication apparatus, wired communication apparatus, and communication method
US7975921B2 (en) NFC reader having a passive operating mode with low electrical consumption
JP4539071B2 (en) Portable wireless communication device.
JP3617509B2 (en) IC card, information processing terminal, three-party data communication system and method
KR101316679B1 (en) Data communication system, device for executing ic card function, control method for the device, and information processing terminal
EP3766012B1 (en) Power management
KR101210000B1 (en) Microprocessor card
JP4544263B2 (en) Communication system and memory card
JP2009147423A (en) Communication device
US7472834B2 (en) Dual-mode smart card
US20080283617A1 (en) Contactless card and a control method thereof
US9107238B2 (en) Information processing device, information processing method, and program
US20110058220A1 (en) Communication system, communication apparatus, and communication control method
US8123136B2 (en) Processing apparatus of portable electronic devices, portable electronic device, and processing system of portable electronic devices
JP2008294610A (en) Communicating system and communication device
AU2013229126B2 (en) Dual-interface adapter device
JP2006178556A (en) Contact type data communication equipment, transmitting and receiving device and method
US8560007B2 (en) Apparatus and method for supporting different types of universal integrated circuit cards
KR100761252B1 (en) Selection Device of RF Antenna in Mobile Telecommunication Terminal
JP2006236200A (en) Card type storage device and host device thereof
JP4321490B2 (en) Non-contact communication system
JP4355247B2 (en) IC card device with communication function
JP2004341634A (en) Mobile device, data transmission/reception method and data transmission/reception program
JP5487206B2 (en) Portable electronic device and method for controlling portable electronic device
KR20110125758A (en) Data storing device for near field communication

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060831

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090709

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090731

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120807

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120807

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130807

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees